diff --git a/ui/packages/app/package.json b/ui/packages/app/package.json index 838d4dc51f..9e2fc42e72 100644 --- a/ui/packages/app/package.json +++ b/ui/packages/app/package.json @@ -12,19 +12,24 @@ "vite": "^2.7.13" }, "dependencies": { - "@types/d3-dsv": "^3.0.0", - "@types/d3-scale": "^4.0.2", - "@types/d3-shape": "^3.0.2", + "@gradio/audio": "workspace:^0.0.1", + "@gradio/button": "workspace:^0.0.1", + "@gradio/carousel": "workspace:^0.0.1", + "@gradio/chart": "workspace:^0.0.1", + "@gradio/chatbot": "workspace:^0.0.1", + "@gradio/file": "workspace:^0.0.1", + "@gradio/form": "workspace:^0.0.1", + "@gradio/highlighted-text": "workspace:^0.0.1", + "@gradio/html": "workspace:^0.0.1", + "@gradio/image": "workspace:^0.0.1", + "@gradio/json": "workspace:^0.0.1", + "@gradio/label": "workspace:^0.0.1", + "@gradio/table": "workspace:^0.0.1", + "@gradio/theme": "workspace:^0.0.1", + "@gradio/upload": "workspace:^0.0.1", + "@gradio/video": "workspace:^0.0.1", "autoprefixer": "^9.8.8", - "cropperjs": "^1.5.12", - "d3-dsv": "^3.0.1", - "d3-scale": "^4.0.2", - "d3-shape": "^3.1.0", - "lazy-brush": "^1.0.1", "mime-types": "^2.1.34", - "resize-observer-polyfill": "^1.5.1", - "svelte-i18n": "^3.3.13", - "svelte-range-slider-pips": "^2.0.1", - "tui-image-editor": "^3.15.2" + "svelte-i18n": "^3.3.13" } } diff --git a/ui/packages/app/src/components/Audio/Audio.svelte b/ui/packages/app/src/components/Audio/Audio.svelte new file mode 100644 index 0000000000..49ae854223 --- /dev/null +++ b/ui/packages/app/src/components/Audio/Audio.svelte @@ -0,0 +1,23 @@ + + + (value = detail)} +/> diff --git a/ui/packages/app/src/components/input/Audio/Example.svelte b/ui/packages/app/src/components/Audio/Example.svelte similarity index 100% rename from ui/packages/app/src/components/input/Audio/Example.svelte rename to ui/packages/app/src/components/Audio/Example.svelte diff --git a/ui/packages/app/src/components/input/Audio/Interpretation.svelte b/ui/packages/app/src/components/Audio/Interpretation.svelte similarity index 82% rename from ui/packages/app/src/components/input/Audio/Interpretation.svelte rename to ui/packages/app/src/components/Audio/Interpretation.svelte index 27e1d955cf..d595235c8d 100644 --- a/ui/packages/app/src/components/input/Audio/Interpretation.svelte +++ b/ui/packages/app/src/components/Audio/Interpretation.svelte @@ -1,7 +1,7 @@ - - - {#if value === null} - {#if source === "microphone"} - {#if recording} - - Stop Recording - - {:else} - - Record - - {/if} - {:else if source === "upload"} - - {$_("interface.drop_audio")} - - {$_("interface.or")} - - {$_("interface.click_to_upload")} - - {/if} - {:else} - (mode = "edit")} - absolute={false} - {theme} - {static_src} - /> - - - - {#if mode === "edit" && player?.duration} - - {/if} - {/if} - - - diff --git a/ui/packages/audio/src/Audio.svelte b/ui/packages/audio/src/Audio.svelte index 38f401e7f7..8f25ef198e 100644 --- a/ui/packages/audio/src/Audio.svelte +++ b/ui/packages/audio/src/Audio.svelte @@ -1,6 +1,12 @@ - +