@gradio/model3d 0.9.0 → 0.10.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,38 @@
1
1
  # @gradio/model3d
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Fixes
6
+
7
+ - [#8252](https://github.com/gradio-app/gradio/pull/8252) [`22df61a`](https://github.com/gradio-app/gradio/commit/22df61a26adf8023f6dd49c051979990e8d3879a) - Client node fix. Thanks @pngwn!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/atoms@0.7.3
12
+ - @gradio/statustracker@0.5.2
13
+ - @gradio/client@0.19.0
14
+ - @gradio/icons@0.4.1
15
+ - @gradio/upload@0.10.1
16
+
17
+ ## 0.10.0
18
+
19
+ ### Features
20
+
21
+ - [#8209](https://github.com/gradio-app/gradio/pull/8209) [`b9afe93`](https://github.com/gradio-app/gradio/commit/b9afe93915401df5bd6737c89395c2477acfa585) - Rename `eventSource_Factory` and `fetch_implementation`. Thanks @hannahblair!
22
+
23
+ ### Fixes
24
+
25
+ - [#8179](https://github.com/gradio-app/gradio/pull/8179) [`6a218b4`](https://github.com/gradio-app/gradio/commit/6a218b4148095aaa0c58d8c20973ba01c8764fc2) - rework upload to be a class method + pass client into each component. Thanks @pngwn!
26
+
27
+ ### Dependency updates
28
+
29
+ - @gradio/atoms@0.7.2
30
+ - @gradio/client@0.18.0
31
+ - @gradio/upload@0.10.0
32
+ - @gradio/utils@0.4.1
33
+ - @gradio/wasm@0.10.1
34
+ - @gradio/statustracker@0.5.1
35
+
3
36
  ## 0.9.0
4
37
 
5
38
  ### Highlights
package/Index.svelte CHANGED
@@ -127,6 +127,8 @@
127
127
  }}
128
128
  i18n={gradio.i18n}
129
129
  max_file_size={gradio.max_file_size}
130
+ upload={gradio.client.upload}
131
+ stream_handler={gradio.client.stream}
130
132
  >
131
133
  <UploadText i18n={gradio.i18n} type="file" />
132
134
  </Model3DUpload>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/model3d",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,16 +12,16 @@
12
12
  "babylonjs-loaders": "^4.2.1",
13
13
  "dequal": "^2.0.2",
14
14
  "gsplat": "^1.0.5",
15
- "@gradio/client": "^0.17.0",
16
- "@gradio/atoms": "^0.7.1",
17
- "@gradio/upload": "^0.9.0",
18
- "@gradio/icons": "^0.4.0",
19
- "@gradio/statustracker": "^0.5.0",
20
- "@gradio/utils": "^0.4.0",
21
- "@gradio/wasm": "^0.10.0"
15
+ "@gradio/client": "^0.19.0",
16
+ "@gradio/atoms": "^0.7.3",
17
+ "@gradio/utils": "^0.4.1",
18
+ "@gradio/icons": "^0.4.1",
19
+ "@gradio/upload": "^0.10.1",
20
+ "@gradio/statustracker": "^0.5.2",
21
+ "@gradio/wasm": "^0.10.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@gradio/preview": "^0.8.0"
24
+ "@gradio/preview": "^0.9.0"
25
25
  },
26
26
  "main_changeset": true,
27
27
  "main": "./Index.svelte",
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { createEventDispatcher, tick } from "svelte";
3
3
  import { Upload, ModifyUpload } from "@gradio/upload";
4
- import type { FileData } from "@gradio/client";
4
+ import type { FileData, Client } from "@gradio/client";
5
5
  import { BlockLabel } from "@gradio/atoms";
6
6
  import { File } from "@gradio/icons";
7
7
  import type { I18nFormatter } from "@gradio/utils";
@@ -24,6 +24,8 @@
24
24
  null,
25
25
  null
26
26
  ];
27
+ export let upload: Client["upload"];
28
+ export let stream_handler: Client["stream"];
27
29
 
28
30
  async function handle_upload({
29
31
  detail
@@ -86,6 +88,8 @@
86
88
 
87
89
  {#if value === null}
88
90
  <Upload
91
+ {upload}
92
+ {stream_handler}
89
93
  on:load={handle_upload}
90
94
  {root}
91
95
  {max_file_size}