@gradio/model3d 0.18.0 → 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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @gradio/model3d
2
2
 
3
+ ## 0.18.2
4
+
5
+ ### Dependency updates
6
+
7
+ - @gradio/client@2.4.0
8
+ - @gradio/utils@0.14.0
9
+ - @gradio/atoms@0.26.1
10
+ - @gradio/statustracker@0.15.2
11
+ - @gradio/upload@0.18.2
12
+
13
+ ## 0.18.1
14
+
15
+ ### Dependency updates
16
+
17
+ - @gradio/statustracker@0.15.1
18
+ - @gradio/icons@0.16.0
19
+ - @gradio/atoms@0.26.0
20
+ - @gradio/client@2.3.1
21
+ - @gradio/upload@0.18.1
22
+
3
23
  ## 0.18.0
4
24
 
5
25
  ### Features
package/Model3D.test.ts CHANGED
@@ -28,12 +28,13 @@ 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") ||
35
35
  msg.includes("Invalid URL") ||
36
- msg.includes("Unsupported property type")
36
+ msg.includes("Unsupported property type") ||
37
+ msg.includes("postProcessManager")
37
38
  ) {
38
39
  e.preventDefault();
39
40
  }
@@ -43,10 +44,6 @@ beforeAll(() => {
43
44
  window.addEventListener("unhandledrejection", suppress_3d_library_errors);
44
45
  });
45
46
 
46
- afterAll(() => {
47
- window.removeEventListener("unhandledrejection", suppress_3d_library_errors);
48
- });
49
-
50
47
  const base_props = {
51
48
  label: "3D Model",
52
49
  show_label: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/model3d",
3
- "version": "0.18.0",
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.25.0",
17
- "@gradio/client": "^2.3.0",
18
- "@gradio/icons": "^0.15.1",
19
- "@gradio/statustracker": "^0.15.0",
20
- "@gradio/upload": "^0.18.0",
21
- "@gradio/utils": "^0.13.0"
16
+ "@gradio/atoms": "^0.26.1",
17
+ "@gradio/statustracker": "^0.15.2",
18
+ "@gradio/icons": "^0.16.0",
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.16.2"
24
+ "@gradio/preview": "^0.17.0"
25
25
  },
26
26
  "main_changeset": true,
27
27
  "main": "./Index.svelte",