@gradio/upload 0.10.0 → 0.10.2
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/package.json +5 -5
- package/src/Upload.svelte +1 -1
- package/src/UploadProgress.svelte +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @gradio/upload
|
2
2
|
|
3
|
+
## 0.10.2
|
4
|
+
|
5
|
+
### Dependency updates
|
6
|
+
|
7
|
+
- @gradio/client@0.19.1
|
8
|
+
- @gradio/upload@0.10.2
|
9
|
+
|
10
|
+
## 0.10.1
|
11
|
+
|
12
|
+
### Fixes
|
13
|
+
|
14
|
+
- [#8252](https://github.com/gradio-app/gradio/pull/8252) [`22df61a`](https://github.com/gradio-app/gradio/commit/22df61a26adf8023f6dd49c051979990e8d3879a) - Client node fix. Thanks @pngwn!
|
15
|
+
|
16
|
+
### Dependency updates
|
17
|
+
|
18
|
+
- @gradio/atoms@0.7.3
|
19
|
+
- @gradio/client@0.19.0
|
20
|
+
- @gradio/icons@0.4.1
|
21
|
+
- @gradio/upload@0.10.1
|
22
|
+
|
3
23
|
## 0.10.0
|
4
24
|
|
5
25
|
### Features
|
package/package.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/upload",
|
3
|
-
"version": "0.10.
|
3
|
+
"version": "0.10.2",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"main": "src/index.ts",
|
7
7
|
"author": "",
|
8
8
|
"license": "ISC",
|
9
9
|
"dependencies": {
|
10
|
-
"@gradio/
|
11
|
-
"@gradio/
|
12
|
-
"@gradio/
|
13
|
-
"@gradio/upload": "^0.10.0",
|
10
|
+
"@gradio/atoms": "^0.7.3",
|
11
|
+
"@gradio/icons": "^0.4.1",
|
12
|
+
"@gradio/client": "^0.19.1",
|
14
13
|
"@gradio/utils": "^0.4.1",
|
14
|
+
"@gradio/upload": "^0.10.2",
|
15
15
|
"@gradio/wasm": "^0.10.1"
|
16
16
|
},
|
17
17
|
"main_changeset": true,
|
package/src/Upload.svelte
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
export let show_progress = true;
|
21
21
|
export let max_file_size: number | null = null;
|
22
22
|
export let upload: Client["upload"];
|
23
|
-
export let stream_handler: Client["
|
23
|
+
export let stream_handler: Client["stream"];
|
24
24
|
|
25
25
|
let upload_id: string;
|
26
26
|
let file_data: FileData[];
|
@@ -7,9 +7,9 @@
|
|
7
7
|
export let upload_id: string;
|
8
8
|
export let root: string;
|
9
9
|
export let files: FileData[];
|
10
|
-
export let stream_handler: Client["
|
10
|
+
export let stream_handler: Client["stream"];
|
11
11
|
|
12
|
-
let stream: ReturnType<Client["
|
12
|
+
let stream: Awaited<ReturnType<Client["stream"]>>;
|
13
13
|
let progress = false;
|
14
14
|
let current_file_upload: FileDataWithProgress;
|
15
15
|
let file_to_display: FileDataWithProgress;
|
@@ -37,8 +37,8 @@
|
|
37
37
|
return (file.progress * 100) / (file.size || 0) || 0;
|
38
38
|
}
|
39
39
|
|
40
|
-
onMount(() => {
|
41
|
-
stream = stream_handler(
|
40
|
+
onMount(async () => {
|
41
|
+
stream = await stream_handler(
|
42
42
|
new URL(`${root}/upload_progress?upload_id=${upload_id}`)
|
43
43
|
);
|
44
44
|
|