@gradio/upload 0.5.7 → 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,5 +1,11 @@
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
+
3
9
  ## 0.5.7
4
10
 
5
11
  ### Patch Changes
@@ -289,4 +295,4 @@ From the backend, streamed outputs are served from the `/stream/` endpoint inste
289
295
  ### Patch Changes
290
296
 
291
297
  - Updated dependencies []:
292
- - @gradio/atoms@0.0.2
298
+ - @gradio/atoms@0.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/upload",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -8,9 +8,9 @@
8
8
  "license": "ISC",
9
9
  "dependencies": {
10
10
  "@gradio/atoms": "^0.4.1",
11
- "@gradio/client": "^0.9.4",
12
- "@gradio/upload": "^0.5.7",
11
+ "@gradio/client": "^0.10.0",
13
12
  "@gradio/utils": "^0.2.0",
13
+ "@gradio/upload": "^0.5.8",
14
14
  "@gradio/icons": "^0.3.2"
15
15
  },
16
16
  "main_changeset": true,
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
  }