@webspatial/react-sdk 1.5.0 → 1.6.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.
- package/dist/default/index.d.ts +14 -0
- package/dist/default/index.js +367 -231
- package/dist/default/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js +1 -1
- package/dist/jsx/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.web.js +1 -1
- package/dist/web/index.d.ts +14 -0
- package/dist/web/index.js +371 -235
- package/dist/web/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(){
|
|
3
3
|
if(typeof window === 'undefined') return;
|
|
4
4
|
if(!window.__webspatialsdk__) window.__webspatialsdk__ = {}
|
|
5
|
-
window.__webspatialsdk__['react-sdk-version'] = "1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.6.0"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "avp"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(){
|
|
3
3
|
if(typeof window === 'undefined') return;
|
|
4
4
|
if(!window.__webspatialsdk__) window.__webspatialsdk__ = {}
|
|
5
|
-
window.__webspatialsdk__['react-sdk-version'] = "1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.6.0"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
package/dist/jsx/jsx-runtime.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(){
|
|
3
3
|
if(typeof window === 'undefined') return;
|
|
4
4
|
if(!window.__webspatialsdk__) window.__webspatialsdk__ = {}
|
|
5
|
-
window.__webspatialsdk__['react-sdk-version'] = "1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.6.0"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "avp"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(){
|
|
3
3
|
if(typeof window === 'undefined') return;
|
|
4
4
|
if(!window.__webspatialsdk__) window.__webspatialsdk__ = {}
|
|
5
|
-
window.__webspatialsdk__['react-sdk-version'] = "1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.6.0"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
package/dist/web/index.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ type Spatialized2DElementContainerProps<P extends ElementType> = SpatialEventPro
|
|
|
52
52
|
};
|
|
53
53
|
type SpatializedStatic3DContainerProps = SpatialEventProps<SpatializedStatic3DElementRef> & Omit<React__default.ComponentPropsWithoutRef<'div'>, 'onLoad' | 'onError'> & {
|
|
54
54
|
src?: string;
|
|
55
|
+
autoPlay?: boolean;
|
|
56
|
+
loop?: boolean;
|
|
57
|
+
children?: React__default.ReactNode;
|
|
55
58
|
onLoad?: (event: ModelLoadEvent) => void;
|
|
56
59
|
onError?: (event: ModelLoadEvent) => void;
|
|
57
60
|
spatialEventOptions?: SpatialEventOptions;
|
|
@@ -62,6 +65,11 @@ type SpatializedStatic3DElementRef = SpatializedDivElementRef & {
|
|
|
62
65
|
currentSrc: string;
|
|
63
66
|
ready: Promise<ModelLoadEvent>;
|
|
64
67
|
entityTransform: DOMMatrixReadOnly;
|
|
68
|
+
play(): Promise<void>;
|
|
69
|
+
pause(): Promise<void>;
|
|
70
|
+
readonly paused: boolean;
|
|
71
|
+
readonly duration: number;
|
|
72
|
+
playbackRate: number;
|
|
65
73
|
};
|
|
66
74
|
type CurrentTarget<T extends SpatializedElementRef> = {
|
|
67
75
|
currentTarget: T;
|
|
@@ -127,6 +135,9 @@ declare const SpatializedStatic3DElementContainer: React$1.ForwardRefExoticCompo
|
|
|
127
135
|
onSpatialMagnifyEnd?: ((event: SpatialMagnifyEndEvent<SpatializedStatic3DElementRef>) => void) | undefined;
|
|
128
136
|
} & Omit<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onLoad" | "onError"> & {
|
|
129
137
|
src?: string;
|
|
138
|
+
autoPlay?: boolean;
|
|
139
|
+
loop?: boolean;
|
|
140
|
+
children?: React.ReactNode;
|
|
130
141
|
onLoad?: (event: ModelLoadEvent) => void;
|
|
131
142
|
onError?: (event: ModelLoadEvent) => void;
|
|
132
143
|
spatialEventOptions?: SpatialEventOptions;
|
|
@@ -357,6 +368,9 @@ declare const Model: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
357
368
|
onSpatialMagnifyEnd?: ((event: SpatialMagnifyEndEvent<SpatializedStatic3DElementRef>) => void) | undefined;
|
|
358
369
|
} & Omit<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onLoad" | "onError"> & {
|
|
359
370
|
src?: string;
|
|
371
|
+
autoPlay?: boolean;
|
|
372
|
+
loop?: boolean;
|
|
373
|
+
children?: React.ReactNode;
|
|
360
374
|
onLoad?: (event: ModelLoadEvent) => void;
|
|
361
375
|
onError?: (event: ModelLoadEvent) => void;
|
|
362
376
|
spatialEventOptions?: SpatialEventOptions;
|