@webspatial/react-sdk 0.1.13 → 0.1.15
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 +0 -5
- package/dist/default/index.js +2 -2
- package/dist/default/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.d.ts +71 -3
- package/dist/jsx/jsx-dev-runtime.js +1 -1
- package/dist/jsx/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx/jsx-runtime.d.ts +2 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.web.js +1 -1
- package/dist/web/index.d.ts +0 -5
- package/dist/web/index.js +2 -2
- package/dist/web/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/jsx/jsx-runtime-zHGvMrtA.d.ts +0 -66
|
@@ -1,4 +1,72 @@
|
|
|
1
1
|
export { Fragment } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
import 'react';
|
|
4
|
-
import '
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { JSXSource } from 'react/jsx-dev-runtime';
|
|
4
|
+
import { WindowContainerOptions } from '@webspatial/core-sdk';
|
|
5
|
+
|
|
6
|
+
declare function jsxs(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
7
|
+
declare function jsx(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
8
|
+
declare function jsxDEV(type: React.ElementType, props: unknown, key: React.Key, isStatic: boolean, source?: JSXSource, self?: unknown): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
9
|
+
|
|
10
|
+
type IsPreReact19 = 2 extends Parameters<React.FunctionComponent<any>>['length'] ? true : false;
|
|
11
|
+
/** @ts-ignore */
|
|
12
|
+
type ReactJSXElement = true extends IsPreReact19 ? JSX.Element : React.JSX.Element;
|
|
13
|
+
/** @ts-ignore */
|
|
14
|
+
type ReactJSXElementClass = true extends IsPreReact19 ? JSX.ElementClass : React.JSX.ElementClass;
|
|
15
|
+
/** @ts-ignore */
|
|
16
|
+
type ReactJSXElementAttributesProperty = true extends IsPreReact19 ? JSX.ElementAttributesProperty : React.JSX.ElementAttributesProperty;
|
|
17
|
+
/** @ts-ignore */
|
|
18
|
+
type ReactJSXElementChildrenAttribute = true extends IsPreReact19 ? JSX.ElementChildrenAttribute : React.JSX.ElementChildrenAttribute;
|
|
19
|
+
/** @ts-ignore */
|
|
20
|
+
type ReactJSXLibraryManagedAttributes<C, P> = true extends IsPreReact19 ? JSX.LibraryManagedAttributes<C, P> : React.JSX.LibraryManagedAttributes<C, P>;
|
|
21
|
+
/** @ts-ignore */
|
|
22
|
+
type ReactJSXIntrinsicAttributes = true extends IsPreReact19 ? JSX.IntrinsicAttributes : React.JSX.IntrinsicAttributes;
|
|
23
|
+
/** @ts-ignore */
|
|
24
|
+
type ReactJSXIntrinsicClassAttributes<T> = true extends IsPreReact19 ? JSX.IntrinsicClassAttributes<T> : React.JSX.IntrinsicClassAttributes<T>;
|
|
25
|
+
/** @ts-ignore */
|
|
26
|
+
type ReactJSXIntrinsicElements = true extends IsPreReact19 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements;
|
|
27
|
+
/** @ts-ignore */
|
|
28
|
+
type ReactJSXElementType = true extends IsPreReact19 ? string | React.JSXElementConstructor<any> : React.JSX.ElementType;
|
|
29
|
+
declare namespace WebSpatialJSX {
|
|
30
|
+
type ElementType = ReactJSXElementType;
|
|
31
|
+
interface Element extends ReactJSXElement {
|
|
32
|
+
}
|
|
33
|
+
interface ElementClass extends ReactJSXElementClass {
|
|
34
|
+
}
|
|
35
|
+
interface ElementAttributesProperty extends ReactJSXElementAttributesProperty {
|
|
36
|
+
}
|
|
37
|
+
interface ElementChildrenAttribute extends ReactJSXElementChildrenAttribute {
|
|
38
|
+
}
|
|
39
|
+
type LibraryManagedAttributes<C, P> = ReactJSXLibraryManagedAttributes<C, P>;
|
|
40
|
+
interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {
|
|
41
|
+
}
|
|
42
|
+
interface IntrinsicClassAttributes<T> extends ReactJSXIntrinsicClassAttributes<T> {
|
|
43
|
+
}
|
|
44
|
+
type IntrinsicElements = {
|
|
45
|
+
[K in keyof ReactJSXIntrinsicElements]: ReactJSXIntrinsicElements[K] & {
|
|
46
|
+
style?: React.CSSProperties;
|
|
47
|
+
'enable-xr'?: boolean;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
declare module 'react' {
|
|
52
|
+
interface CSSProperties {
|
|
53
|
+
'--xr-background-material'?: string;
|
|
54
|
+
'--xr-back'?: number | string;
|
|
55
|
+
'--xr-z-index'?: number | string;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface Window {
|
|
60
|
+
xrCurrentSceneDefaults: (defaultConfig: WindowContainerOptions) => Promise<WindowContainerOptions>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare global {
|
|
65
|
+
interface CSSStyleDeclaration {
|
|
66
|
+
'--xr-background-material'?: string;
|
|
67
|
+
'--xr-back'?: number | string;
|
|
68
|
+
'--xr-z-index'?: number | string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { WebSpatialJSX as JSX, jsxs as j, jsx, jsxDEV };
|
|
@@ -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'] = "0.1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "0.1.15"
|
|
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'] = "0.1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "0.1.15"
|
|
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'] = "0.1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "0.1.15"
|
|
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'] = "0.1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "0.1.15"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
package/dist/web/index.d.ts
CHANGED
|
@@ -170,11 +170,6 @@ declare function getSession(): SpatialSession | null;
|
|
|
170
170
|
|
|
171
171
|
declare function enableDebugTool(): void;
|
|
172
172
|
|
|
173
|
-
declare global {
|
|
174
|
-
interface Window {
|
|
175
|
-
xrCurrentSceneDefaults: (defaultConfig: WindowContainerOptions) => Promise<WindowContainerOptions>;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
173
|
declare const defaultSceneConfig: WindowContainerOptions;
|
|
179
174
|
declare class XRApp {
|
|
180
175
|
private static instance;
|
package/dist/web/index.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'] = "0.1.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "0.1.15"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -3800,7 +3800,7 @@ function spatialPolyfill() {
|
|
|
3800
3800
|
}
|
|
3801
3801
|
|
|
3802
3802
|
// src/index.ts
|
|
3803
|
-
var version = "0.1.
|
|
3803
|
+
var version = "0.1.15";
|
|
3804
3804
|
export {
|
|
3805
3805
|
CSSSpatialDiv,
|
|
3806
3806
|
CSSSpatialPrimitive,
|