@gradio/file 0.5.2 → 0.5.4
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 +13 -1
- package/package.json +7 -7
- package/shared/FilePreview.svelte +4 -0
- package/shared/FileUpload.svelte +1 -14
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @gradio/file
|
2
2
|
|
3
|
+
## 0.5.4
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
- [#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)!
|
8
|
+
|
9
|
+
## 0.5.3
|
10
|
+
|
11
|
+
### Fixes
|
12
|
+
|
13
|
+
- [#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)!
|
14
|
+
|
3
15
|
## 0.5.2
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -366,4 +378,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
|
|
366
378
|
- Updated dependencies []:
|
367
379
|
- @gradio/utils@0.0.2
|
368
380
|
- @gradio/atoms@0.0.2
|
369
|
-
- @gradio/upload@0.0.2
|
381
|
+
- @gradio/upload@0.0.2
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/file",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.4",
|
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/client": "^0.12.
|
11
|
-
"@gradio/atoms": "^0.5.3",
|
10
|
+
"@gradio/client": "^0.12.2",
|
12
11
|
"@gradio/icons": "^0.3.3",
|
13
|
-
"@gradio/
|
14
|
-
"@gradio/
|
15
|
-
"@gradio/
|
16
|
-
"@gradio/
|
12
|
+
"@gradio/atoms": "^0.5.3",
|
13
|
+
"@gradio/statustracker": "^0.4.8",
|
14
|
+
"@gradio/wasm": "^0.7.0",
|
15
|
+
"@gradio/upload": "^0.7.5",
|
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
|