imagine-curator-sdk 0.2.5 → 0.2.7

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.5",
3
+ "version": "0.2.7",
4
4
  "description": "Imagine Curator SDK - React components for 3D visualization and rendering",
5
5
  "type": "module",
6
6
  "main": "src/lib.js",
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,14 +1,8 @@
1
- // Import Unity build files as URLs
2
- import loaderUrl from '../../assets/Build/LiveFurnishBuild.loader.js?url';
3
- import dataUrl from '../../assets/Build/LiveFurnishBuild.data?url';
4
- import frameworkUrl from '../../assets/Build/LiveFurnishBuild.framework.js?url';
5
- import codeUrl from '../../assets/Build/LiveFurnishBuild.wasm?url';
6
-
7
1
  export const UNITY_REF = {
8
- loaderUrl,
9
- dataUrl,
10
- frameworkUrl,
11
- codeUrl,
2
+ loaderUrl: '/Build/LiveFurnishBuild.loader.js',
3
+ dataUrl: '/Build/LiveFurnishBuild.data',
4
+ frameworkUrl: '/Build/LiveFurnishBuild.framework.js',
5
+ codeUrl: '/Build/LiveFurnishBuild.wasm',
12
6
  streamingAssetsUrl: 'StreamingAssets',
13
7
  companyName: 'DefaultCompany',
14
8
  productName: 'Live FurnishV2',
@@ -1,10 +1,11 @@
1
1
  import { COLOR_TYPE } from '../redux/slicers/admin/curatorStylesSlicer';
2
2
 
3
- // Import Unity build files as URLs (uses main build - configurator build not available)
4
- import loaderUrl from '../assets/Build/LiveFurnishBuild.loader.js?url';
5
- import dataUrl from '../assets/Build/LiveFurnishBuild.data?url';
6
- import frameworkUrl from '../assets/Build/LiveFurnishBuild.framework.js?url';
7
- import codeUrl from '../assets/Build/LiveFurnishBuild.wasm?url';
3
+ export const UNITY_REF = {
4
+ loaderUrl: '/Build/configurator/WebGLBuild.loader.js',
5
+ dataUrl: '/Build/configurator/WebGLBuild.data',
6
+ frameworkUrl: '/Build/configurator/WebGLBuild.framework.js',
7
+ codeUrl: '/Build/configurator/WebGLBuild.wasm',
8
+ };
8
9
 
9
10
  export const CONFIGURATOR_TYPE = {
10
11
  IMAGE: '1',
@@ -28,13 +29,6 @@ export const THEME = {
28
29
 
29
30
  export const NEW_CONFIGURATOR_ID = 'new';
30
31
 
31
- export const UNITY_REF = {
32
- loaderUrl,
33
- dataUrl,
34
- frameworkUrl,
35
- codeUrl,
36
- };
37
-
38
32
  export const EMPTY_CONFIGURATOR = {
39
33
  // use it to provide some default state when configurator data is fetching
40
34
  theme: null,
@@ -6,17 +6,11 @@ export const MODE_EDIT = 'edit';
6
6
  export const MODE_UPLOAD = 'upload';
7
7
  export const MODE_MOVE_TO_TEXTURES = 'move-to-textures';
8
8
 
9
- // Import Unity build files as URLs (uses main build - texture preview build not available)
10
- import loaderUrl from '../assets/Build/LiveFurnishBuild.loader.js?url';
11
- import dataUrl from '../assets/Build/LiveFurnishBuild.data?url';
12
- import frameworkUrl from '../assets/Build/LiveFurnishBuild.framework.js?url';
13
- import codeUrl from '../assets/Build/LiveFurnishBuild.wasm?url';
14
-
15
9
  export const UNITY_REF = {
16
- loaderUrl,
17
- dataUrl,
18
- frameworkUrl,
19
- codeUrl,
10
+ loaderUrl: '/Build/texture/TexturePreviewBuild.loader.js',
11
+ dataUrl: '/Build/texture/TexturePreviewBuild.data',
12
+ frameworkUrl: '/Build/texture/TexturePreviewBuild.framework.js',
13
+ codeUrl: '/Build/texture/TexturePreviewBuild.wasm',
20
14
  };
21
15
 
22
16
  export const MAX_UPLOAD_WIDTH_PIXELS = 16384;