@liveroom-tech/react-immersive 5.1.0 → 5.3.0

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.
Files changed (48) hide show
  1. package/LICENSE +10 -6
  2. package/README.md +106 -3427
  3. package/dist/binding-builder.css +1 -1
  4. package/dist/binding-builder.js +64 -13
  5. package/dist/binding-builder.mjs +1 -1
  6. package/dist/chunk-4FDMYUGT.mjs +3 -0
  7. package/dist/chunk-CV4E7DOO.mjs +79 -0
  8. package/dist/chunk-F4WT3HEK.mjs +1 -0
  9. package/dist/chunk-FPJZDEON.mjs +1 -0
  10. package/dist/chunk-JHKMRMJH.mjs +1 -0
  11. package/dist/chunk-TW2M4UXT.mjs +1 -0
  12. package/dist/chunk-W24UP6NM.mjs +1 -0
  13. package/dist/hosted.css +1 -1
  14. package/dist/hosted.d.mts +8 -5
  15. package/dist/hosted.d.ts +8 -5
  16. package/dist/hosted.js +63 -12
  17. package/dist/hosted.mjs +1 -1
  18. package/dist/index.css +1 -1
  19. package/dist/index.d.mts +48 -9
  20. package/dist/index.d.ts +48 -9
  21. package/dist/index.js +62 -11
  22. package/dist/index.mjs +1 -1
  23. package/dist/materialVariants-DjTuiWmN.d.mts +314 -0
  24. package/dist/materialVariants-DjTuiWmN.d.ts +314 -0
  25. package/dist/modelInfo-BQ5UZu95.d.ts +43 -0
  26. package/dist/modelInfo-CcYpydB7.d.mts +43 -0
  27. package/dist/{ModelViewer-Bj-KjiDL.d.mts → modelViewerProps-BalkRDni.d.ts} +133 -12
  28. package/dist/{ModelViewer-BkQ73y6N.d.ts → modelViewerProps-DdsJDRB7.d.mts} +133 -12
  29. package/dist/{objectCatalog-BIeXURoq.d.ts → rendererBackend-C_Jb4_Jy.d.mts} +47 -5
  30. package/dist/{objectCatalog-BIeXURoq.d.mts → rendererBackend-C_Jb4_Jy.d.ts} +47 -5
  31. package/dist/simple-model-viewer.css +1 -1
  32. package/dist/simple-model-viewer.d.mts +32 -4
  33. package/dist/simple-model-viewer.d.ts +32 -4
  34. package/dist/simple-model-viewer.js +3 -3
  35. package/dist/simple-model-viewer.mjs +1 -1
  36. package/dist/utils.d.mts +5 -4
  37. package/dist/utils.d.ts +5 -4
  38. package/dist/utils.js +1 -1
  39. package/dist/utils.mjs +1 -1
  40. package/package.json +3 -1
  41. package/dist/chunk-32WCLPTZ.mjs +0 -1
  42. package/dist/chunk-CSGNL4XU.mjs +0 -3
  43. package/dist/chunk-F2ILTIPG.mjs +0 -28
  44. package/dist/chunk-SEESCGUS.mjs +0 -1
  45. package/dist/chunk-V6GALFL5.mjs +0 -1
  46. package/dist/chunk-WN6GMMHF.mjs +0 -1
  47. package/dist/modelInfo-DnkmTGMd.d.mts +0 -23
  48. package/dist/modelInfo-DnkmTGMd.d.ts +0 -23
package/dist/hosted.d.mts CHANGED
@@ -1,10 +1,11 @@
1
1
  import * as react from 'react';
2
- import { RefObject } from 'react';
3
- import { o as ObjectBinding, Z as SceneConfig } from './objectCatalog-BIeXURoq.mjs';
2
+ import { MutableRefObject } from 'react';
3
+ import { o as ObjectBinding, a1 as SceneConfig } from './rendererBackend-C_Jb4_Jy.mjs';
4
4
  import { B as BindingBuilderProps } from './publicProps-tJuWZgT3.mjs';
5
- import { l as ModelViewerProps } from './ModelViewer-Bj-KjiDL.mjs';
6
5
  import { Object3D } from 'three';
7
- import './modelInfo-DnkmTGMd.mjs';
6
+ import { n as ModelViewerProps } from './modelViewerProps-DdsJDRB7.mjs';
7
+ import './materialVariants-DjTuiWmN.mjs';
8
+ import './modelInfo-CcYpydB7.mjs';
8
9
  import '@react-three/drei';
9
10
 
10
11
  declare const TEXTURE_KEYS: readonly ["texture", "metalnessMap", "roughnessMap", "emissiveMap", "alphaMap", "normalMap", "bumpMap", "aoMap", "displacementMap", "clearcoatMap", "clearcoatRoughnessMap", "clearcoatNormalMap", "anisotropyMap", "transmissionMap", "thicknessMap", "sheenColorMap", "sheenRoughnessMap", "specularIntensityMap", "specularColorMap"];
@@ -22,6 +23,8 @@ type ProjectModelViewerProps = ModelViewerProps & {
22
23
  * service, so this cannot approve a licence by itself.
23
24
  */
24
25
  licenseValidationUrl?: string;
26
+ /** An explicit clear command, distinct from clicking empty canvas space. */
27
+ onSelectionClear?: () => void;
25
28
  /** Reports transform-gizmo edit leases for collaborative hosts. */
26
29
  onObjectEditLeaseChange?: (binding: ObjectBinding, editing: boolean) => void;
27
30
  /** The loaded three.js scene, which the editor builds bindings from. */
@@ -39,7 +42,7 @@ type ProjectModelViewerProps = ModelViewerProps & {
39
42
  * Receives a function that ends Move/Zoom mode the way a plain canvas click
40
43
  * does, for the editor's own "Done positioning" button.
41
44
  */
42
- endTexturePositioningRef?: RefObject<(() => void) | null>;
45
+ endTexturePositioningRef?: MutableRefObject<(() => void) | null>;
43
46
  };
44
47
  declare function ProjectModelViewer(props: ProjectModelViewerProps): react.JSX.Element;
45
48
 
package/dist/hosted.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import * as react from 'react';
2
- import { RefObject } from 'react';
3
- import { o as ObjectBinding, Z as SceneConfig } from './objectCatalog-BIeXURoq.js';
2
+ import { MutableRefObject } from 'react';
3
+ import { o as ObjectBinding, a1 as SceneConfig } from './rendererBackend-C_Jb4_Jy.js';
4
4
  import { B as BindingBuilderProps } from './publicProps-tJuWZgT3.js';
5
- import { l as ModelViewerProps } from './ModelViewer-BkQ73y6N.js';
6
5
  import { Object3D } from 'three';
7
- import './modelInfo-DnkmTGMd.js';
6
+ import { n as ModelViewerProps } from './modelViewerProps-BalkRDni.js';
7
+ import './materialVariants-DjTuiWmN.js';
8
+ import './modelInfo-BQ5UZu95.js';
8
9
  import '@react-three/drei';
9
10
 
10
11
  declare const TEXTURE_KEYS: readonly ["texture", "metalnessMap", "roughnessMap", "emissiveMap", "alphaMap", "normalMap", "bumpMap", "aoMap", "displacementMap", "clearcoatMap", "clearcoatRoughnessMap", "clearcoatNormalMap", "anisotropyMap", "transmissionMap", "thicknessMap", "sheenColorMap", "sheenRoughnessMap", "specularIntensityMap", "specularColorMap"];
@@ -22,6 +23,8 @@ type ProjectModelViewerProps = ModelViewerProps & {
22
23
  * service, so this cannot approve a licence by itself.
23
24
  */
24
25
  licenseValidationUrl?: string;
26
+ /** An explicit clear command, distinct from clicking empty canvas space. */
27
+ onSelectionClear?: () => void;
25
28
  /** Reports transform-gizmo edit leases for collaborative hosts. */
26
29
  onObjectEditLeaseChange?: (binding: ObjectBinding, editing: boolean) => void;
27
30
  /** The loaded three.js scene, which the editor builds bindings from. */
@@ -39,7 +42,7 @@ type ProjectModelViewerProps = ModelViewerProps & {
39
42
  * Receives a function that ends Move/Zoom mode the way a plain canvas click
40
43
  * does, for the editor's own "Done positioning" button.
41
44
  */
42
- endTexturePositioningRef?: RefObject<(() => void) | null>;
45
+ endTexturePositioningRef?: MutableRefObject<(() => void) | null>;
43
46
  };
44
47
  declare function ProjectModelViewer(props: ProjectModelViewerProps): react.JSX.Element;
45
48