@gradio/model3d 0.4.2 → 0.4.4

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,21 @@
1
1
  # @gradio/model3d
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`2f805a7dd`](https://github.com/gradio-app/gradio/commit/2f805a7dd3d2b64b098f659dadd5d01258290521), [`f816136a0`](https://github.com/gradio-app/gradio/commit/f816136a039fa6011be9c4fb14f573e4050a681a)]:
8
+ - @gradio/upload@0.4.2
9
+ - @gradio/atoms@0.2.2
10
+ - @gradio/icons@0.2.1
11
+ - @gradio/statustracker@0.3.2
12
+
13
+ ## 0.4.3
14
+
15
+ ### Fixes
16
+
17
+ - [#6414](https://github.com/gradio-app/gradio/pull/6414) [`da1e31832`](https://github.com/gradio-app/gradio/commit/da1e31832f85ec76540e474ae35badfde8a18b6f) - Fix Model3D download button and other issues. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
18
+
3
19
  ## 0.4.2
4
20
 
5
21
  ### Patch Changes
package/Index.svelte CHANGED
@@ -114,7 +114,14 @@
114
114
  on:change={({ detail }) => (value = detail)}
115
115
  on:drag={({ detail }) => (dragging = detail)}
116
116
  on:change={({ detail }) => gradio.dispatch("change", detail)}
117
- on:clear={() => gradio.dispatch("clear")}
117
+ on:clear={() => {
118
+ value = null;
119
+ gradio.dispatch("clear");
120
+ }}
121
+ on:load={({ detail }) => {
122
+ value = detail;
123
+ gradio.dispatch("upload");
124
+ }}
118
125
  i18n={gradio.i18n}
119
126
  >
120
127
  <UploadText i18n={gradio.i18n} type="file" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/model3d",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -10,11 +10,11 @@
10
10
  "@types/babylon": "^6.16.6",
11
11
  "babylonjs": "^4.2.1",
12
12
  "babylonjs-loaders": "^4.2.1",
13
- "@gradio/atoms": "^0.2.1",
14
- "@gradio/client": "^0.8.0",
15
- "@gradio/icons": "^0.2.0",
16
- "@gradio/statustracker": "^0.3.1",
17
- "@gradio/upload": "^0.4.0",
13
+ "@gradio/atoms": "^0.2.2",
14
+ "@gradio/client": "^0.8.1",
15
+ "@gradio/icons": "^0.2.1",
16
+ "@gradio/statustracker": "^0.3.2",
17
+ "@gradio/upload": "^0.4.2",
18
18
  "@gradio/utils": "^0.2.0"
19
19
  },
20
20
  "main_changeset": true,
@@ -94,7 +94,7 @@
94
94
  <div class="buttons">
95
95
  <IconButton Icon={Undo} label="Undo" on:click={() => handle_undo()} />
96
96
  <a
97
- href={value.path}
97
+ href={value.url}
98
98
  target={window.__is_colab__ ? "_blank" : null}
99
99
  download={window.__is_colab__ ? null : value.orig_name || value.path}
100
100
  >
@@ -60,6 +60,7 @@
60
60
  await tick();
61
61
  reset_scene();
62
62
  dispatch("change", value);
63
+ dispatch("load", value);
63
64
  }
64
65
 
65
66
  async function handle_clear(): Promise<void> {
@@ -70,6 +71,7 @@
70
71
  value = null;
71
72
  await tick();
72
73
  dispatch("clear");
74
+ dispatch("change");
73
75
  }
74
76
 
75
77
  async function handle_undo(): Promise<void> {
@@ -80,6 +82,7 @@
80
82
  change: FileData | null;
81
83
  clear: undefined;
82
84
  drag: boolean;
85
+ load: FileData;
83
86
  }>();
84
87
 
85
88
  let dragging = false;