@gradio/uploadbutton 0.1.5 → 0.2.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,19 @@
1
1
  # @gradio/uploadbutton
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]:
8
+ - @gradio/upload@0.5.0
9
+ - @gradio/button@0.2.7
10
+
11
+ ## 0.2.0
12
+
13
+ ### Features
14
+
15
+ - [#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)!
16
+
3
17
  ## 0.1.5
4
18
 
5
19
  ### Patch Changes
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.5",
3
+ "version": "0.2.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.5",
17
- "@gradio/upload": "^0.4.1",
16
+ "@gradio/button": "^0.2.7",
17
+ "@gradio/client": "^0.8.1",
18
18
  "@gradio/utils": "^0.2.0",
19
- "@gradio/client": "^0.8.1"
19
+ "@gradio/upload": "^0.5.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