@gradio/file 0.5.3 → 0.5.5
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 +15 -2
- package/package.json +6 -6
- package/shared/FileUpload.svelte +1 -14
package/CHANGELOG.md
CHANGED
@@ -1,10 +1,23 @@
|
|
1
1
|
# @gradio/file
|
2
2
|
|
3
|
+
## 0.5.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`8181695`](https://github.com/gradio-app/gradio/commit/8181695e70187e8bc2bf7518697098c8d1b9843d)]:
|
8
|
+
- @gradio/upload@0.7.6
|
9
|
+
|
10
|
+
## 0.5.4
|
11
|
+
|
12
|
+
### Fixes
|
13
|
+
|
14
|
+
- [#7559](https://github.com/gradio-app/gradio/pull/7559) [`26356a6`](https://github.com/gradio-app/gradio/commit/26356a623c4196f48ca236d973a597831743cdb8) - Fixes: Invalid file_type breaks drag and drop. Thanks [@dawoodkhan82](https://github.com/dawoodkhan82)!
|
15
|
+
|
3
16
|
## 0.5.3
|
4
17
|
|
5
18
|
### Fixes
|
6
19
|
|
7
|
-
- [#7507](https://github.com/gradio-app/gradio/pull/7507) [`9c36572`](https://github.com/gradio-app/gradio/commit/9c36572e32aeec6e6352a861dfea6ee0f9a15e79) - Quick fix: File height overflow.
|
20
|
+
- [#7507](https://github.com/gradio-app/gradio/pull/7507) [`9c36572`](https://github.com/gradio-app/gradio/commit/9c36572e32aeec6e6352a861dfea6ee0f9a15e79) - Quick fix: File height overflow. Thanks [@dawoodkhan82](https://github.com/dawoodkhan82)!
|
8
21
|
|
9
22
|
## 0.5.2
|
10
23
|
|
@@ -372,4 +385,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
|
|
372
385
|
- Updated dependencies []:
|
373
386
|
- @gradio/utils@0.0.2
|
374
387
|
- @gradio/atoms@0.0.2
|
375
|
-
- @gradio/upload@0.0.2
|
388
|
+
- @gradio/upload@0.0.2
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/file",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.5",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -8,12 +8,12 @@
|
|
8
8
|
"private": false,
|
9
9
|
"dependencies": {
|
10
10
|
"@gradio/atoms": "^0.5.3",
|
11
|
-
"@gradio/
|
12
|
-
"@gradio/client": "^0.12.1",
|
11
|
+
"@gradio/client": "^0.12.2",
|
13
12
|
"@gradio/icons": "^0.3.3",
|
14
|
-
"@gradio/
|
15
|
-
"@gradio/
|
16
|
-
"@gradio/
|
13
|
+
"@gradio/upload": "^0.7.6",
|
14
|
+
"@gradio/statustracker": "^0.4.8",
|
15
|
+
"@gradio/wasm": "^0.7.0",
|
16
|
+
"@gradio/utils": "^0.3.0"
|
17
17
|
},
|
18
18
|
"main": "./Index.svelte",
|
19
19
|
"main_changeset": true,
|
package/shared/FileUpload.svelte
CHANGED
@@ -43,19 +43,6 @@
|
|
43
43
|
error: string;
|
44
44
|
}>();
|
45
45
|
|
46
|
-
let accept_file_types: string | null;
|
47
|
-
if (file_types == null) {
|
48
|
-
accept_file_types = null;
|
49
|
-
} else {
|
50
|
-
file_types = file_types.map((x) => {
|
51
|
-
if (x.startsWith(".")) {
|
52
|
-
return x;
|
53
|
-
}
|
54
|
-
return x + "/*";
|
55
|
-
});
|
56
|
-
accept_file_types = file_types.join(", ");
|
57
|
-
}
|
58
|
-
|
59
46
|
let dragging = false;
|
60
47
|
$: dispatch("drag", dragging);
|
61
48
|
</script>
|
@@ -73,7 +60,7 @@
|
|
73
60
|
{:else}
|
74
61
|
<Upload
|
75
62
|
on:load={handle_upload}
|
76
|
-
filetype={
|
63
|
+
filetype={file_types}
|
77
64
|
{file_count}
|
78
65
|
{root}
|
79
66
|
bind:dragging
|