@gradio/multimodaltextbox 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/Index.svelte +2 -0
- package/package.json +8 -8
- package/shared/MultimodalTextbox.svelte +5 -1
- package/shared/utils.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @gradio/multimodaltextbox
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- [#8121](https://github.com/gradio-app/gradio/pull/8121) [`f5b710c`](https://github.com/gradio-app/gradio/commit/f5b710c919b0ce604ea955f0d5f4faa91095ca4a) - chore(deps): update dependency eslint to v9. Thanks @renovate!
|
|
8
|
+
- [#8209](https://github.com/gradio-app/gradio/pull/8209) [`b9afe93`](https://github.com/gradio-app/gradio/commit/b9afe93915401df5bd6737c89395c2477acfa585) - Rename `eventSource_Factory` and `fetch_implementation`. Thanks @hannahblair!
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
|
|
12
|
+
- [#8179](https://github.com/gradio-app/gradio/pull/8179) [`6a218b4`](https://github.com/gradio-app/gradio/commit/6a218b4148095aaa0c58d8c20973ba01c8764fc2) - rework upload to be a class method + pass client into each component. Thanks @pngwn!
|
|
13
|
+
|
|
14
|
+
### Dependency updates
|
|
15
|
+
|
|
16
|
+
- @gradio/atoms@0.7.2
|
|
17
|
+
- @gradio/client@0.18.0
|
|
18
|
+
- @gradio/upload@0.10.0
|
|
19
|
+
- @gradio/utils@0.4.1
|
|
20
|
+
- @gradio/statustracker@0.5.1
|
|
21
|
+
- @gradio/image@0.11.0
|
|
22
|
+
|
|
3
23
|
## 0.3.0
|
|
4
24
|
|
|
5
25
|
### Highlights
|
package/Index.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/multimodaltextbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@gradio/atoms": "^0.7.1",
|
|
18
17
|
"@gradio/icons": "^0.4.0",
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/
|
|
21
|
-
"@gradio/
|
|
22
|
-
"@gradio/
|
|
23
|
-
"@gradio/image": "^0.
|
|
18
|
+
"@gradio/atoms": "^0.7.2",
|
|
19
|
+
"@gradio/statustracker": "^0.5.1",
|
|
20
|
+
"@gradio/upload": "^0.10.0",
|
|
21
|
+
"@gradio/utils": "^0.4.1",
|
|
22
|
+
"@gradio/image": "^0.11.0",
|
|
23
|
+
"@gradio/client": "^0.18.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gradio/preview": "^0.
|
|
26
|
+
"@gradio/preview": "^0.9.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { BlockTitle } from "@gradio/atoms";
|
|
10
10
|
import { Upload } from "@gradio/upload";
|
|
11
11
|
import { Image } from "@gradio/image/shared";
|
|
12
|
-
import type { FileData,
|
|
12
|
+
import type { FileData, Client } from "@gradio/client";
|
|
13
13
|
import { Clear, File, Music, Video, Send } from "@gradio/icons";
|
|
14
14
|
import type { SelectData } from "@gradio/utils";
|
|
15
15
|
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
export let root: string;
|
|
36
36
|
export let file_types: string[] | null = null;
|
|
37
37
|
export let max_file_size: number | null = null;
|
|
38
|
+
export let upload: Client["upload"];
|
|
39
|
+
export let stream_handler: Client["stream_factory"];
|
|
38
40
|
|
|
39
41
|
let upload_component: Upload;
|
|
40
42
|
let hidden_upload: HTMLInputElement;
|
|
@@ -215,6 +217,8 @@
|
|
|
215
217
|
disable_click={true}
|
|
216
218
|
bind:hidden_upload
|
|
217
219
|
on:error
|
|
220
|
+
{upload}
|
|
221
|
+
{stream_handler}
|
|
218
222
|
>
|
|
219
223
|
{#if submit_btn !== null}
|
|
220
224
|
<button class:disabled class="submit-button" on:click={handle_submit}
|
package/shared/utils.ts
CHANGED