Move wavesurfer dep to js/audio (#6382)

* Move wavesurfer dep to js/audio

* Add code

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Freddy Boulton 2023-11-12 12:18:11 -05:00 committed by GitHub
parent de998b2812
commit 2090aad731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 8 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/audio": patch
"gradio": patch
---
fix:Move wavesurfer dep to js/audio

View File

@ -18,7 +18,9 @@
"extendable-media-recorder": "^9.0.0",
"extendable-media-recorder-wav-encoder": "^7.0.76",
"resize-observer-polyfill": "^1.5.1",
"svelte-range-slider-pips": "^2.0.1"
"svelte-range-slider-pips": "^2.0.1",
"wavesurfer.js": "^7.4.2",
"@types/wavesurfer.js": "^6.0.10"
},
"main_changeset": true,
"main": "index.ts",

View File

@ -86,8 +86,7 @@
"typescript": "^5.0.0",
"typescript-svelte-plugin": "^0.3.34",
"vite": "^4.3.9",
"vitest": "^0.34.0",
"wavesurfer.js": "^7.4.2"
"vitest": "^0.34.0"
},
"devDependencies": {
"@storybook/addon-a11y": "^7.5.1",

View File

@ -170,9 +170,6 @@ importers:
vitest:
specifier: ^0.34.0
version: 0.34.6(jsdom@22.1.0)(less@4.1.3)(playwright@1.39.0)
wavesurfer.js:
specifier: ^7.4.2
version: 7.4.2
devDependencies:
'@storybook/addon-a11y':
specifier: ^7.5.1
@ -579,6 +576,9 @@ importers:
'@gradio/wasm':
specifier: workspace:^
version: link:../wasm
'@types/wavesurfer.js':
specifier: ^6.0.10
version: 6.0.10
extendable-media-recorder:
specifier: ^9.0.0
version: 9.0.0
@ -591,6 +591,9 @@ importers:
svelte-range-slider-pips:
specifier: ^2.0.1
version: 2.0.2
wavesurfer.js:
specifier: ^7.4.2
version: 7.4.2
js/box:
dependencies:

View File

@ -93,10 +93,11 @@ def test_show(capsys):
@pytest.mark.xfail
def test_build(tmp_path):
@pytest.mark.parametrize("template", ["Audio", "Video", "Image", "Textbox"])
def test_build(template, tmp_path):
_create(
"TestTextbox",
template="Textbox",
template=template,
directory=tmp_path,
overwrite=True,
install=True,