@gradio/uploadbutton 0.4.2 → 0.4.3
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 +7 -1
- package/Index.svelte +2 -2
- package/UploadButton.stories.svelte +6 -0
- package/package.json +4 -4
- package/shared/UploadButton.svelte +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @gradio/uploadbutton
|
|
2
2
|
|
|
3
|
+
## 0.4.3
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#7126](https://github.com/gradio-app/gradio/pull/7126) [`5727b92`](https://github.com/gradio-app/gradio/commit/5727b92abc8a00a675bfc0a921b38de771af947b) - Allow buttons to take null value. Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
8
|
+
|
|
3
9
|
## 0.4.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -275,4 +281,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
|
|
|
275
281
|
- Updated dependencies [[`61129052`](https://github.com/gradio-app/gradio/commit/61129052ed1391a75c825c891d57fa0ad6c09fc8), [`667875b2`](https://github.com/gradio-app/gradio/commit/667875b2441753e74d25bd9d3c8adedd8ede11cd), [`67265a58`](https://github.com/gradio-app/gradio/commit/67265a58027ef1f9e4c0eb849a532f72eaebde48), [`8b4eb8ca`](https://github.com/gradio-app/gradio/commit/8b4eb8cac9ea07bde31b44e2006ca2b7b5f4de36), [`37caa2e0`](https://github.com/gradio-app/gradio/commit/37caa2e0fe95d6cab8beb174580fb557904f137f)]:
|
|
276
282
|
- @gradio/client@0.2.0
|
|
277
283
|
- @gradio/upload@0.0.3
|
|
278
|
-
- @gradio/button@0.1.0
|
|
284
|
+
- @gradio/button@0.1.0
|
package/Index.svelte
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export let elem_id = "";
|
|
11
11
|
export let elem_classes: string[] = [];
|
|
12
12
|
export let visible = true;
|
|
13
|
-
export let label: string;
|
|
13
|
+
export let label: string | null;
|
|
14
14
|
export let value: null | FileData | FileData[];
|
|
15
15
|
export let file_count: string;
|
|
16
16
|
export let file_types: string[] = [];
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
on:change={({ detail }) => handle_event(detail, "change")}
|
|
60
60
|
on:upload={({ detail }) => handle_event(detail, "upload")}
|
|
61
61
|
>
|
|
62
|
-
{gradio.i18n(label)}
|
|
62
|
+
{label ? gradio.i18n(label) : ""}
|
|
63
63
|
</UploadButton>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/uploadbutton",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "./Index.svelte",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@gradio/button": "^0.2.
|
|
16
|
+
"@gradio/button": "^0.2.18",
|
|
17
17
|
"@gradio/client": "^0.10.1",
|
|
18
|
-
"@gradio/upload": "^0.
|
|
19
|
-
"@gradio/utils": "^0.2.
|
|
18
|
+
"@gradio/upload": "^0.7.0",
|
|
19
|
+
"@gradio/utils": "^0.2.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
export let elem_id = "";
|
|
13
13
|
export let elem_classes: string[] = [];
|
|
14
14
|
export let visible = true;
|
|
15
|
-
export let label: string;
|
|
15
|
+
export let label: string | null;
|
|
16
16
|
export let value: null | FileData | FileData[];
|
|
17
17
|
export let file_count: string;
|
|
18
18
|
export let file_types: string[] = [];
|