@gradio/model3d 0.18.1 → 0.18.2
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 +10 -0
- package/Model3D.test.ts +1 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/Model3D.test.ts
CHANGED
|
@@ -28,7 +28,7 @@ import Model3D from "./Index.svelte";
|
|
|
28
28
|
// that can complete after component cleanup, causing unhandled rejections.
|
|
29
29
|
// These are harmless race conditions in the 3D rendering libraries, not test bugs.
|
|
30
30
|
function suppress_3d_library_errors(e: PromiseRejectionEvent): void {
|
|
31
|
-
const msg = e.reason?.message ?? "";
|
|
31
|
+
const msg = String(e.reason?.message ?? e.reason ?? "");
|
|
32
32
|
if (
|
|
33
33
|
msg.includes("addEventListener") ||
|
|
34
34
|
msg.includes("Viewer is disposed") ||
|
|
@@ -44,10 +44,6 @@ beforeAll(() => {
|
|
|
44
44
|
window.addEventListener("unhandledrejection", suppress_3d_library_errors);
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
afterAll(() => {
|
|
48
|
-
window.removeEventListener("unhandledrejection", suppress_3d_library_errors);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
47
|
const base_props = {
|
|
52
48
|
label: "3D Model",
|
|
53
49
|
show_label: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/model3d",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"@types/babylon": "^6.16.9",
|
|
14
14
|
"dequal": "^2.0.3",
|
|
15
15
|
"gsplat": "^1.2.9",
|
|
16
|
-
"@gradio/atoms": "^0.26.
|
|
17
|
-
"@gradio/statustracker": "^0.15.
|
|
16
|
+
"@gradio/atoms": "^0.26.1",
|
|
17
|
+
"@gradio/statustracker": "^0.15.2",
|
|
18
18
|
"@gradio/icons": "^0.16.0",
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/
|
|
21
|
-
"@gradio/
|
|
19
|
+
"@gradio/upload": "^0.18.2",
|
|
20
|
+
"@gradio/client": "^2.4.0",
|
|
21
|
+
"@gradio/utils": "^0.14.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gradio/preview": "^0.
|
|
24
|
+
"@gradio/preview": "^0.17.0"
|
|
25
25
|
},
|
|
26
26
|
"main_changeset": true,
|
|
27
27
|
"main": "./Index.svelte",
|