@gradio/uploadbutton 0.1.4 → 0.2.0

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.2.0
4
+
5
+ ### Features
6
+
7
+ - [#6461](https://github.com/gradio-app/gradio/pull/6461) [`6b53330a5`](https://github.com/gradio-app/gradio/commit/6b53330a5be53579d9128aea4858713082ce302d) - UploadButton tests. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
8
+
9
+ ## 0.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`324867f63`](https://github.com/gradio-app/gradio/commit/324867f63c920113d89a565892aa596cf8b1e486)]:
14
+ - @gradio/client@0.8.1
15
+ - @gradio/button@0.2.5
16
+ - @gradio/upload@0.4.1
17
+
3
18
  ## 0.1.4
4
19
 
5
20
  ### Patch Changes
@@ -169,4 +184,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
169
184
  - Updated dependencies [[`61129052`](https://github.com/gradio-app/gradio/commit/61129052ed1391a75c825c891d57fa0ad6c09fc8), [`667875b2`](https://github.com/gradio-app/gradio/commit/667875b2441753e74d25bd9d3c8adedd8ede11cd), [`67265a58`](https://github.com/gradio-app/gradio/commit/67265a58027ef1f9e4c0eb849a532f72eaebde48), [`8b4eb8ca`](https://github.com/gradio-app/gradio/commit/8b4eb8cac9ea07bde31b44e2006ca2b7b5f4de36), [`37caa2e0`](https://github.com/gradio-app/gradio/commit/37caa2e0fe95d6cab8beb174580fb557904f137f)]:
170
185
  - @gradio/client@0.2.0
171
186
  - @gradio/upload@0.0.3
172
- - @gradio/button@0.1.0
187
+ - @gradio/button@0.1.0
package/Index.svelte CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  async function handle_event(
32
32
  detail: null | FileData | FileData[],
33
- event: "change" | "upload"
33
+ event: "change" | "upload" | "click"
34
34
  ): Promise<void> {
35
35
  value = detail;
36
36
  gradio.dispatch(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/uploadbutton",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
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.4",
17
- "@gradio/client": "^0.8.0",
18
- "@gradio/upload": "^0.4.0",
16
+ "@gradio/button": "^0.2.6",
17
+ "@gradio/client": "^0.8.1",
18
+ "@gradio/upload": "^0.4.2",
19
19
  "@gradio/utils": "^0.2.0"
20
20
  }
21
21
  }
@@ -35,6 +35,7 @@
35
35
  }
36
36
 
37
37
  function openFileUpload(): void {
38
+ dispatch("click");
38
39
  hidden_upload.click();
39
40
  }
40
41