@gradio/file 0.6.0 → 0.7.1
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 +33 -0
- package/Index.svelte +2 -0
- package/package.json +9 -9
- package/shared/FileUpload.svelte +5 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,38 @@
|
|
1
1
|
# @gradio/file
|
2
2
|
|
3
|
+
## 0.7.1
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
- [#8252](https://github.com/gradio-app/gradio/pull/8252) [`22df61a`](https://github.com/gradio-app/gradio/commit/22df61a26adf8023f6dd49c051979990e8d3879a) - Client node fix. Thanks @pngwn!
|
8
|
+
|
9
|
+
### Dependency updates
|
10
|
+
|
11
|
+
- @gradio/atoms@0.7.3
|
12
|
+
- @gradio/statustracker@0.5.2
|
13
|
+
- @gradio/client@0.19.0
|
14
|
+
- @gradio/icons@0.4.1
|
15
|
+
- @gradio/upload@0.10.1
|
16
|
+
|
17
|
+
## 0.7.0
|
18
|
+
|
19
|
+
### Features
|
20
|
+
|
21
|
+
- [#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!
|
22
|
+
|
23
|
+
### Fixes
|
24
|
+
|
25
|
+
- [#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!
|
26
|
+
|
27
|
+
### Dependency updates
|
28
|
+
|
29
|
+
- @gradio/atoms@0.7.2
|
30
|
+
- @gradio/client@0.18.0
|
31
|
+
- @gradio/upload@0.10.0
|
32
|
+
- @gradio/utils@0.4.1
|
33
|
+
- @gradio/wasm@0.10.1
|
34
|
+
- @gradio/statustracker@0.5.1
|
35
|
+
|
3
36
|
## 0.6.0
|
4
37
|
|
5
38
|
### Highlights
|
package/Index.svelte
CHANGED
package/package.json
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/file",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.1",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
7
7
|
"license": "ISC",
|
8
8
|
"private": false,
|
9
9
|
"dependencies": {
|
10
|
-
"@gradio/atoms": "^0.7.
|
11
|
-
"@gradio/icons": "^0.4.
|
12
|
-
"@gradio/
|
13
|
-
"@gradio/
|
14
|
-
"@gradio/
|
15
|
-
"@gradio/utils": "^0.4.
|
16
|
-
"@gradio/wasm": "^0.10.
|
10
|
+
"@gradio/atoms": "^0.7.3",
|
11
|
+
"@gradio/icons": "^0.4.1",
|
12
|
+
"@gradio/client": "^0.19.0",
|
13
|
+
"@gradio/upload": "^0.10.1",
|
14
|
+
"@gradio/statustracker": "^0.5.2",
|
15
|
+
"@gradio/utils": "^0.4.1",
|
16
|
+
"@gradio/wasm": "^0.10.1"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
|
-
"@gradio/preview": "^0.
|
19
|
+
"@gradio/preview": "^0.9.0"
|
20
20
|
},
|
21
21
|
"main": "./Index.svelte",
|
22
22
|
"main_changeset": true,
|
package/shared/FileUpload.svelte
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<script lang="ts">
|
2
2
|
import { createEventDispatcher, tick } from "svelte";
|
3
3
|
import { Upload, ModifyUpload } from "@gradio/upload";
|
4
|
-
import type { FileData } from "@gradio/client";
|
4
|
+
import type { FileData, Client } from "@gradio/client";
|
5
5
|
import { BlockLabel } from "@gradio/atoms";
|
6
6
|
import { File } from "@gradio/icons";
|
7
7
|
|
@@ -19,6 +19,8 @@
|
|
19
19
|
export let height: number | undefined = undefined;
|
20
20
|
export let i18n: I18nFormatter;
|
21
21
|
export let max_file_size: number | null = null;
|
22
|
+
export let upload: Client["upload"];
|
23
|
+
export let stream_handler: Client["stream"];
|
22
24
|
|
23
25
|
async function handle_upload({
|
24
26
|
detail
|
@@ -67,6 +69,8 @@
|
|
67
69
|
{root}
|
68
70
|
bind:dragging
|
69
71
|
on:error
|
72
|
+
{stream_handler}
|
73
|
+
{upload}
|
70
74
|
>
|
71
75
|
<slot />
|
72
76
|
</Upload>
|