@gradio/downloadbutton 0.1.4 → 0.1.6

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,22 @@
1
1
  # @gradio/downloadbutton
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Dependency updates
6
+
7
+ - @gradio/button@0.2.29
8
+ - @gradio/client@0.15.0
9
+
10
+ ## 0.1.5
11
+
12
+ ### Fixes
13
+
14
+ - [#7862](https://github.com/gradio-app/gradio/pull/7862) [`0e125d7`](https://github.com/gradio-app/gradio/commit/0e125d7befe436509af6a41b5c92de0ac6d6057c) - Trigger click event from `gr.DownloadButton` even when no file is present. Thanks @abidlabs!
15
+
16
+ ### Dependency updates
17
+
18
+ - @gradio/button@0.2.28
19
+
3
20
  ## 0.1.4
4
21
 
5
22
  ### Dependency updates
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@gradio/downloadbutton",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
7
7
  "license": "ISC",
8
8
  "private": false,
9
9
  "dependencies": {
10
- "@gradio/button": "^0.2.27",
11
- "@gradio/client": "^0.14.0",
10
+ "@gradio/button": "^0.2.29",
11
+ "@gradio/client": "^0.15.0",
12
12
  "@gradio/utils": "^0.3.0"
13
13
  },
14
14
  "main": "./Index.svelte",
@@ -16,6 +16,7 @@
16
16
  const dispatch = createEventDispatcher();
17
17
 
18
18
  function download_file(): void {
19
+ dispatch("click");
19
20
  if (!value?.url) {
20
21
  return;
21
22
  }
@@ -33,7 +34,6 @@
33
34
  document.body.appendChild(a);
34
35
  a.click();
35
36
  document.body.removeChild(a);
36
- dispatch("click");
37
37
  }
38
38
  </script>
39
39