Fix Chatbot custom component template (#7038)

* move to core dependency

* add changeset

* lockfile

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Freddy Boulton 2024-01-17 21:22:14 +05:30 committed by GitHub
parent ec28b4e7c4
commit 6be3c2c47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 164 additions and 59 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/video": patch
"gradio": patch
---
fix:Fix Chatbot custom component template

View File

@ -16,9 +16,7 @@
"@gradio/utils": "workspace:^",
"@gradio/wasm": "workspace:^",
"@ffmpeg/ffmpeg": "^0.12.7",
"@ffmpeg/util": "^0.12.1"
},
"devDependencies": {
"@ffmpeg/util": "^0.12.1",
"mrmime": "^2.0.0"
},
"exports": {

View File

@ -1,4 +1,4 @@
lockfileVersion: '6.1'
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
@ -262,16 +262,16 @@ importers:
version: 2.0.0(@sveltejs/kit@1.26.0)
'@sveltejs/kit':
specifier: ^1.5.0
version: 1.26.0(svelte@4.2.2)(vite@4.5.0)
version: 1.26.0(svelte@4.2.3)(vite@4.5.0)
prettier:
specifier: ^3.0.0
version: 3.0.0
prettier-plugin-svelte:
specifier: ^3.0.0
version: 3.0.0(prettier@3.0.0)(svelte@4.2.2)
version: 3.0.0(prettier@3.0.0)(svelte@4.2.3)
svelte-check:
specifier: ^3.0.1
version: 3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.2)
version: 3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3)
typescript:
specifier: ^5.0.0
version: 5.0.2
@ -292,7 +292,7 @@ importers:
version: 3.0.0
mdsvex:
specifier: ^0.11.0
version: 0.11.0(svelte@4.2.2)
version: 0.11.0(svelte@4.2.3)
postcss:
specifier: '>=8.3.3 <9.0.0'
version: 8.4.27
@ -305,7 +305,7 @@ importers:
version: 2.0.2(@sveltejs/kit@1.27.6)
'@sveltejs/kit':
specifier: ^1.27.6
version: 1.27.6(svelte@4.2.2)(vite@4.5.0)
version: 1.27.6(svelte@4.2.3)(vite@4.5.0)
'@tailwindcss/forms':
specifier: ^0.5.0
version: 0.5.0(tailwindcss@3.1.6)
@ -1286,6 +1286,54 @@ importers:
specifier: ^0.15.3
version: 0.15.3(svelte@4.2.3)
js/preview/test/mychatbot/frontend:
dependencies:
'@gradio/atoms':
specifier: workspace:^
version: link:../../../../atoms
'@gradio/audio':
specifier: workspace:^
version: link:../../../../audio
'@gradio/client':
specifier: workspace:^
version: link:../../../../../client/js
'@gradio/icons':
specifier: workspace:^
version: link:../../../../icons
'@gradio/image':
specifier: workspace:^
version: link:../../../../image
'@gradio/markdown':
specifier: workspace:^
version: link:../../../../markdown
'@gradio/statustracker':
specifier: workspace:^
version: link:../../../../statustracker
'@gradio/theme':
specifier: workspace:^
version: link:../../../../theme
'@gradio/upload':
specifier: workspace:^
version: link:../../../../upload
'@gradio/utils':
specifier: workspace:^
version: link:../../../../utils
'@gradio/video':
specifier: workspace:^
version: link:../../../../video
'@types/dompurify':
specifier: ^3.0.2
version: 3.0.2
'@types/katex':
specifier: ^0.16.0
version: 0.16.0
'@types/prismjs':
specifier: 1.26.3
version: 1.26.3
dequal:
specifier: ^2.0.2
version: 2.0.2
js/preview/test/test/frontend:
dependencies:
'@gradio/atoms':
@ -1496,7 +1544,6 @@ importers:
'@gradio/wasm':
specifier: workspace:^
version: link:../wasm
devDependencies:
mrmime:
specifier: ^2.0.0
version: 2.0.0
@ -6755,7 +6802,7 @@ packages:
peerDependencies:
'@sveltejs/kit': ^1.0.0
dependencies:
'@sveltejs/kit': 1.26.0(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/kit': 1.26.0(svelte@4.2.3)(vite@4.5.0)
import-meta-resolve: 2.2.2
dev: true
@ -6764,7 +6811,7 @@ packages:
peerDependencies:
'@sveltejs/kit': ^1.0.0
dependencies:
'@sveltejs/kit': 1.27.6(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/kit': 1.27.6(svelte@4.2.3)(vite@4.5.0)
import-meta-resolve: 2.2.2
dev: true
@ -6773,7 +6820,7 @@ packages:
peerDependencies:
'@sveltejs/kit': ^1.5.0
dependencies:
'@sveltejs/kit': 1.27.6(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/kit': 1.27.6(svelte@4.2.3)(vite@4.5.0)
dev: true
/@sveltejs/adapter-vercel@3.0.3(@sveltejs/kit@1.27.6):
@ -6781,7 +6828,7 @@ packages:
peerDependencies:
'@sveltejs/kit': ^1.5.0
dependencies:
'@sveltejs/kit': 1.27.6(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/kit': 1.27.6(svelte@4.2.3)(vite@4.5.0)
'@vercel/nft': 0.23.1
esbuild: 0.18.20
transitivePeerDependencies:
@ -6789,7 +6836,7 @@ packages:
- supports-color
dev: false
/@sveltejs/kit@1.26.0(svelte@4.2.2)(vite@4.5.0):
/@sveltejs/kit@1.26.0(svelte@4.2.3)(vite@4.5.0):
resolution: {integrity: sha512-CV/AlTziC05yrz7UjVqEd0pH6+2dnrbmcnHGr2d3jXtmOgzNnlDkXtX8g3BfJ6nntsPD+0jtS2PzhvRHblRz4A==}
engines: {node: ^16.14 || >=18}
hasBin: true
@ -6798,7 +6845,7 @@ packages:
svelte: ^3.54.0 || ^4.0.0-next.0
vite: ^4.0.0
dependencies:
'@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.3)(vite@4.5.0)
'@types/cookie': 0.5.4
cookie: 0.5.0
devalue: 4.3.2
@ -6809,7 +6856,7 @@ packages:
sade: 1.8.1
set-cookie-parser: 2.6.0
sirv: 2.0.3
svelte: 4.2.2
svelte: 4.2.3
tiny-glob: 0.2.9
undici: 5.26.5
vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.62.0)(sugarss@4.0.1)
@ -6817,7 +6864,7 @@ packages:
- supports-color
dev: true
/@sveltejs/kit@1.27.6(svelte@4.2.2)(vite@4.5.0):
/@sveltejs/kit@1.27.6(svelte@4.2.3)(vite@4.5.0):
resolution: {integrity: sha512-GsjTkMbKzXdbeRg0tk8S7HNShQ4879ftRr0ZHaZfjbig1xQwG57Bvcm9U9/mpLJtCapLbLWUnygKrgcLISLC8A==}
engines: {node: ^16.14 || >=18}
hasBin: true
@ -6826,7 +6873,7 @@ packages:
svelte: ^3.54.0 || ^4.0.0-next.0 || ^5.0.0-next.0
vite: ^4.0.0
dependencies:
'@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.2)(vite@4.5.0)
'@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.3)(vite@4.5.0)
'@types/cookie': 0.5.4
cookie: 0.5.0
devalue: 4.3.2
@ -6837,7 +6884,7 @@ packages:
sade: 1.8.1
set-cookie-parser: 2.6.0
sirv: 2.0.3
svelte: 4.2.2
svelte: 4.2.3
tiny-glob: 0.2.9
undici: 5.26.5
vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.62.0)(sugarss@4.0.1)
@ -6859,21 +6906,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.2)(vite@4.5.0):
resolution: {integrity: sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==}
engines: {node: ^14.18.0 || >= 16}
peerDependencies:
'@sveltejs/vite-plugin-svelte': ^2.2.0
svelte: ^3.54.0 || ^4.0.0
vite: ^4.0.0
dependencies:
'@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.2)(vite@4.5.0)
debug: 4.3.4
svelte: 4.2.2
vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.62.0)(sugarss@4.0.1)
transitivePeerDependencies:
- supports-color
/@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.3)(vite@4.5.0):
resolution: {integrity: sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==}
engines: {node: ^14.18.0 || >= 16}
@ -6888,7 +6920,6 @@ packages:
vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.62.0)(sugarss@4.0.1)
transitivePeerDependencies:
- supports-color
dev: false
/@sveltejs/vite-plugin-svelte@2.5.2(svelte@4.2.2)(vite@4.3.9):
resolution: {integrity: sha512-Dfy0Rbl+IctOVfJvWGxrX/3m6vxPLH8o0x+8FA5QEyMUQMo4kGOVIojjryU7YomBAexOTAuYf1RT7809yDziaA==}
@ -6909,25 +6940,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@sveltejs/vite-plugin-svelte@2.5.2(svelte@4.2.2)(vite@4.5.0):
resolution: {integrity: sha512-Dfy0Rbl+IctOVfJvWGxrX/3m6vxPLH8o0x+8FA5QEyMUQMo4kGOVIojjryU7YomBAexOTAuYf1RT7809yDziaA==}
engines: {node: ^14.18.0 || >= 16}
peerDependencies:
svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0
vite: ^4.0.0
dependencies:
'@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.2)(vite@4.5.0)
debug: 4.3.4
deepmerge: 4.3.1
kleur: 4.1.5
magic-string: 0.30.5
svelte: 4.2.2
svelte-hmr: 0.15.3(svelte@4.2.2)
vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.62.0)(sugarss@4.0.1)
vitefu: 0.2.5(vite@4.5.0)
transitivePeerDependencies:
- supports-color
/@sveltejs/vite-plugin-svelte@2.5.2(svelte@4.2.3)(vite@4.5.0):
resolution: {integrity: sha512-Dfy0Rbl+IctOVfJvWGxrX/3m6vxPLH8o0x+8FA5QEyMUQMo4kGOVIojjryU7YomBAexOTAuYf1RT7809yDziaA==}
engines: {node: ^14.18.0 || >= 16}
@ -6946,7 +6958,6 @@ packages:
vitefu: 0.2.5(vite@4.5.0)
transitivePeerDependencies:
- supports-color
dev: false
/@tailwindcss/forms@0.5.0(tailwindcss@3.1.6):
resolution: {integrity: sha512-KzWugryEBFkmoaYcBE18rs6gthWCFHHO7cAZm2/hv3hwD67AzwP7udSCa22E7R1+CEJL/FfhYsJWrc0b1aeSzw==}
@ -12178,7 +12189,7 @@ packages:
/mdn-data@2.0.30:
resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
/mdsvex@0.11.0(svelte@4.2.2):
/mdsvex@0.11.0(svelte@4.2.3):
resolution: {integrity: sha512-gJF1s0N2nCmdxcKn8HDn0LKrN8poStqAicp6bBcsKFd/zkUBGLP5e7vnxu+g0pjBbDFOscUyI1mtHz+YK2TCDw==}
peerDependencies:
svelte: '>=3 <5'
@ -12186,7 +12197,7 @@ packages:
'@types/unist': 2.0.10
prism-svelte: 0.4.7
prismjs: 1.29.0
svelte: 4.2.2
svelte: 4.2.3
vfile-message: 2.0.4
dev: false
@ -12426,7 +12437,7 @@ packages:
/mrmime@2.0.0:
resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==}
engines: {node: '>=10'}
dev: true
dev: false
/ms@2.0.0:
resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}
@ -13317,6 +13328,17 @@ packages:
dependencies:
prettier: 3.0.0
svelte: 4.2.2
dev: false
/prettier-plugin-svelte@3.0.0(prettier@3.0.0)(svelte@4.2.3):
resolution: {integrity: sha512-l3RQcPty2UBCoRh3yb9c5XCAmxkrc4BptAnbd5acO1gmSJtChOWkiEjnOvh7hvmtT4V80S8gXCOKAq8RNeIzSw==}
peerDependencies:
prettier: ^3.0.0
svelte: ^3.2.0 || ^4.0.0-next.0
dependencies:
prettier: 3.0.0
svelte: 4.2.3
dev: true
/prettier@2.8.8:
resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
@ -14670,6 +14692,34 @@ packages:
- sass
- stylus
- sugarss
dev: false
/svelte-check@3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3):
resolution: {integrity: sha512-Uys9+R65cj8TmP8f5UpS7B2xKpNLYNxEWJsA5ZoKcWq/uwvABFF7xS6iPQGLoa7hxz0DS6xU60YFpmq06E4JxA==}
hasBin: true
peerDependencies:
svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0
dependencies:
'@jridgewell/trace-mapping': 0.3.20
chokidar: 3.5.3
fast-glob: 3.3.2
import-fresh: 3.3.0
picocolors: 1.0.0
sade: 1.8.1
svelte: 4.2.3
svelte-preprocess: 5.0.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3)(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- '@babel/core'
- coffeescript
- less
- postcss
- postcss-load-config
- pug
- sass
- stylus
- sugarss
dev: true
/svelte-eslint-parser@0.32.2(svelte@4.2.2):
resolution: {integrity: sha512-Ok9D3A4b23iLQsONrjqtXtYDu5ZZ/826Blaw2LeFZVTg1pwofKDG4mz3/GYTax8fQ0plRGHI6j+d9VQYy5Lo/A==}
@ -14834,6 +14884,57 @@ packages:
strip-indent: 3.0.0
svelte: 4.2.2
typescript: 5.2.2
dev: false
/svelte-preprocess@5.0.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3)(typescript@5.2.2):
resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==}
engines: {node: '>= 14.10.0'}
requiresBuild: true
peerDependencies:
'@babel/core': ^7.10.2
coffeescript: ^2.5.1
less: ^3.11.3 || ^4.0.0
postcss: ^7 || ^8
postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0
pug: ^3.0.0
sass: ^1.26.8
stylus: ^0.55.0
sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0
svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0
typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0'
peerDependenciesMeta:
'@babel/core':
optional: true
coffeescript:
optional: true
less:
optional: true
postcss:
optional: true
postcss-load-config:
optional: true
pug:
optional: true
sass:
optional: true
stylus:
optional: true
sugarss:
optional: true
typescript:
optional: true
dependencies:
'@babel/core': 7.23.3
'@types/pug': 2.0.9
detect-indent: 6.1.0
less: 4.2.0
magic-string: 0.27.0
postcss: 8.4.27
sorcery: 0.11.0
strip-indent: 3.0.0
svelte: 4.2.3
typescript: 5.2.2
dev: true
/svelte-range-slider-pips@2.0.1:
resolution: {integrity: sha512-sCHvcTgi0ZYE4c/mwSsdALRsfuqEmpwTsSUdL+PUrumZ8u2gv1GKwZ3GohcAcTB6gfmqRBkyn6ujRXrOIga1gw==}