@gradio/uploadbutton 0.1.0-beta.7 → 0.1.1

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,20 @@
1
1
  # @gradio/uploadbutton
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Features
6
+
7
+ - [#6181](https://github.com/gradio-app/gradio/pull/6181) [`62ec2075c`](https://github.com/gradio-app/gradio/commit/62ec2075ccad8025a7721a08d0f29eb5a4f87fad) - modify preprocess to use pydantic models. Thanks [@abidlabs](https://github.com/abidlabs)!
8
+
9
+ ## 0.1.0
10
+
11
+ ### Features
12
+
13
+ - [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - fix circular dependency with client + upload. Thanks [@pngwn](https://github.com/pngwn)!
14
+ - [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Image v4. Thanks [@pngwn](https://github.com/pngwn)!
15
+ - [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Publish all components to npm. Thanks [@pngwn](https://github.com/pngwn)!
16
+ - [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Custom components. Thanks [@pngwn](https://github.com/pngwn)!
17
+
3
18
  ## 0.1.0-beta.7
4
19
 
5
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/uploadbutton",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.1",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "main": "./Index.svelte",
15
15
  "dependencies": {
16
- "@gradio/button": "^0.2.0-beta.7",
17
- "@gradio/client": "^0.7.0-beta.1",
18
- "@gradio/upload": "^0.3.0-beta.6",
19
- "@gradio/utils": "^0.2.0-beta.6"
16
+ "@gradio/button": "^0.2.1",
17
+ "@gradio/client": "^0.7.1",
18
+ "@gradio/upload": "^0.3.1",
19
+ "@gradio/utils": "^0.2.0"
20
20
  }
21
21
  }
@@ -52,9 +52,9 @@
52
52
  all_file_data = (await upload(all_file_data, root))?.filter(
53
53
  (x) => x !== null
54
54
  ) as FileData[];
55
- dispatch("change", all_file_data);
56
- dispatch("upload", all_file_data);
57
- value = all_file_data;
55
+ value = file_count === "single" ? all_file_data?.[0] : all_file_data
56
+ dispatch("change", value);
57
+ dispatch("upload", value);
58
58
  }
59
59
 
60
60
  async function loadFilesFromUpload(e: Event): Promise<void> {