imagine-curator-sdk 0.2.0 → 0.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imagine-curator-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Imagine Curator SDK - React components for 3D visualization and rendering",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/lib.js",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^18.0.0",
|
|
18
|
-
"react-dom": "^18.0.0"
|
|
18
|
+
"react-dom": "^18.0.0",
|
|
19
|
+
"react-unity-webgl": "^8.7.4"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@djthoms/pretty-checkbox": "^3.1.0",
|
|
@@ -130,7 +131,6 @@
|
|
|
130
131
|
"react-tagsinput": "^3.19.0",
|
|
131
132
|
"react-time-ago": "^7.1.9",
|
|
132
133
|
"react-toastify": "^8.1.1",
|
|
133
|
-
"react-unity-webgl": "^8.7.4",
|
|
134
134
|
"react-use": "^17.3.2",
|
|
135
135
|
"react-video-thumbnail": "^0.1.3",
|
|
136
136
|
"react-youtube": "^10.1.0",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import PubSub from 'pubsub-js';
|
|
2
2
|
import * as ReactUnityWebGL from 'react-unity-webgl';
|
|
3
|
-
// Handle different export styles between versions
|
|
4
|
-
const Unity = ReactUnityWebGL.Unity || ReactUnityWebGL.default?.
|
|
5
|
-
console.log('ReactUnityWebGL:', ReactUnityWebGL);
|
|
6
|
-
console.log('Unity component:', Unity);
|
|
3
|
+
// Handle different export styles between versions (default.default for nested ES module interop)
|
|
4
|
+
const Unity = ReactUnityWebGL.Unity || ReactUnityWebGL.default?.default || ReactUnityWebGL.default;
|
|
7
5
|
import { useContext, useState, useEffect, useRef } from 'react';
|
|
8
6
|
import { unitycontext } from '../../../hooks/useUnityContext';
|
|
9
7
|
import { useParams, useSearchParams } from 'react-router-dom';
|