@gradio/file 0.5.3 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.5.3
4
10
 
5
11
  ### Fixes
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@gradio/file",
3
- "version": "0.5.3",
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.2",
11
+ "@gradio/icons": "^0.3.3",
10
12
  "@gradio/atoms": "^0.5.3",
11
13
  "@gradio/statustracker": "^0.4.8",
12
- "@gradio/client": "^0.12.1",
13
- "@gradio/icons": "^0.3.3",
14
- "@gradio/utils": "^0.3.0",
15
- "@gradio/wasm": "^0.6.0",
16
- "@gradio/upload": "^0.7.4"
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,
@@ -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={accept_file_types}
63
+ filetype={file_types}
77
64
  {file_count}
78
65
  {root}
79
66
  bind:dragging