@gradio/upload 0.5.6 → 0.5.8

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,10 +1,24 @@
1
1
  # @gradio/upload
2
2
 
3
+ ## 0.5.8
4
+
5
+ ### Features
6
+
7
+ - [#6931](https://github.com/gradio-app/gradio/pull/6931) [`6c863af`](https://github.com/gradio-app/gradio/commit/6c863af92fa9ceb5c638857eb22cc5ddb718d549) - Fix functional tests. Thanks [@aliabid94](https://github.com/aliabid94)!
8
+
9
+ ## 0.5.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`d406855`](https://github.com/gradio-app/gradio/commit/d4068557953746662235d595ec435c42ceb24414)]:
14
+ - @gradio/client@0.9.4
15
+ - @gradio/upload@0.5.7
16
+
3
17
  ## 0.5.6
4
18
 
5
19
  ### Fixes
6
20
 
7
- - [#6766](https://github.com/gradio-app/gradio/pull/6766) [`73268ee`](https://github.com/gradio-app/gradio/commit/73268ee2e39f23ebdd1e927cb49b8d79c4b9a144) - Improve source selection UX. Thanks [@hannahblair](https://github.com/hannahblair)!
21
+ - [#6766](https://github.com/gradio-app/gradio/pull/6766) [`73268ee`](https://github.com/gradio-app/gradio/commit/73268ee2e39f23ebdd1e927cb49b8d79c4b9a144) - Improve source selection UX. Thanks [@hannahblair](https://github.com/hannahblair)!
8
22
 
9
23
  ## 0.5.5
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/upload",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -8,10 +8,10 @@
8
8
  "license": "ISC",
9
9
  "dependencies": {
10
10
  "@gradio/atoms": "^0.4.1",
11
- "@gradio/client": "^0.9.3",
12
- "@gradio/upload": "^0.5.6",
13
- "@gradio/icons": "^0.3.2",
14
- "@gradio/utils": "^0.2.0"
11
+ "@gradio/client": "^0.10.0",
12
+ "@gradio/utils": "^0.2.0",
13
+ "@gradio/upload": "^0.5.8",
14
+ "@gradio/icons": "^0.3.2"
15
15
  },
16
16
  "main_changeset": true,
17
17
  "exports": {
package/src/Upload.svelte CHANGED
@@ -48,14 +48,12 @@
48
48
  for (let i = 0; i < items.length; i++) {
49
49
  const type = items[i].types.find((t) => t.startsWith("image/"));
50
50
  if (type) {
51
- dispatch("load", null);
52
51
  items[i].getType(type).then(async (blob) => {
53
52
  const file = new File(
54
53
  [blob],
55
54
  `clipboard.${type.replace("image/", "")}`
56
55
  );
57
- const f = await load_files([file]);
58
- dispatch("load", f?.[0]);
56
+ await load_files([file]);
59
57
  });
60
58
  break;
61
59
  }