@webspatial/react-sdk 0.1.13 → 0.1.14
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.js +2 -2
- package/dist/jsx/jsx-dev-runtime.d.ts +65 -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 +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.web.js +1 -1
- package/dist/web/index.js +2 -2
- package/package.json +2 -2
- package/dist/jsx/jsx-runtime-zHGvMrtA.d.ts +0 -66
package/dist/default/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.14"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "avp"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -3769,7 +3769,7 @@ function spatialPolyfill() {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
|
|
3771
3771
|
// src/index.ts
|
|
3772
|
-
var version = "0.1.
|
|
3772
|
+
var version = "0.1.14";
|
|
3773
3773
|
export {
|
|
3774
3774
|
CSSSpatialDiv,
|
|
3775
3775
|
CSSSpatialPrimitive,
|
|
@@ -1,4 +1,66 @@
|
|
|
1
1
|
export { Fragment } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
import 'react';
|
|
4
|
-
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { JSXSource } from 'react/jsx-dev-runtime';
|
|
4
|
+
|
|
5
|
+
declare function jsxs(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
6
|
+
declare function jsx(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
7
|
+
declare function jsxDEV(type: React.ElementType, props: unknown, key: React.Key, isStatic: boolean, source?: JSXSource, self?: unknown): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
8
|
+
|
|
9
|
+
type IsPreReact19 = 2 extends Parameters<React.FunctionComponent<any>>['length'] ? true : false;
|
|
10
|
+
/** @ts-ignore */
|
|
11
|
+
type ReactJSXElement = true extends IsPreReact19 ? JSX.Element : React.JSX.Element;
|
|
12
|
+
/** @ts-ignore */
|
|
13
|
+
type ReactJSXElementClass = true extends IsPreReact19 ? JSX.ElementClass : React.JSX.ElementClass;
|
|
14
|
+
/** @ts-ignore */
|
|
15
|
+
type ReactJSXElementAttributesProperty = true extends IsPreReact19 ? JSX.ElementAttributesProperty : React.JSX.ElementAttributesProperty;
|
|
16
|
+
/** @ts-ignore */
|
|
17
|
+
type ReactJSXElementChildrenAttribute = true extends IsPreReact19 ? JSX.ElementChildrenAttribute : React.JSX.ElementChildrenAttribute;
|
|
18
|
+
/** @ts-ignore */
|
|
19
|
+
type ReactJSXLibraryManagedAttributes<C, P> = true extends IsPreReact19 ? JSX.LibraryManagedAttributes<C, P> : React.JSX.LibraryManagedAttributes<C, P>;
|
|
20
|
+
/** @ts-ignore */
|
|
21
|
+
type ReactJSXIntrinsicAttributes = true extends IsPreReact19 ? JSX.IntrinsicAttributes : React.JSX.IntrinsicAttributes;
|
|
22
|
+
/** @ts-ignore */
|
|
23
|
+
type ReactJSXIntrinsicClassAttributes<T> = true extends IsPreReact19 ? JSX.IntrinsicClassAttributes<T> : React.JSX.IntrinsicClassAttributes<T>;
|
|
24
|
+
/** @ts-ignore */
|
|
25
|
+
type ReactJSXIntrinsicElements = true extends IsPreReact19 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements;
|
|
26
|
+
/** @ts-ignore */
|
|
27
|
+
type ReactJSXElementType = true extends IsPreReact19 ? string | React.JSXElementConstructor<any> : React.JSX.ElementType;
|
|
28
|
+
declare namespace WebSpatialJSX {
|
|
29
|
+
type ElementType = ReactJSXElementType;
|
|
30
|
+
interface Element extends ReactJSXElement {
|
|
31
|
+
}
|
|
32
|
+
interface ElementClass extends ReactJSXElementClass {
|
|
33
|
+
}
|
|
34
|
+
interface ElementAttributesProperty extends ReactJSXElementAttributesProperty {
|
|
35
|
+
}
|
|
36
|
+
interface ElementChildrenAttribute extends ReactJSXElementChildrenAttribute {
|
|
37
|
+
}
|
|
38
|
+
type LibraryManagedAttributes<C, P> = ReactJSXLibraryManagedAttributes<C, P>;
|
|
39
|
+
interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {
|
|
40
|
+
}
|
|
41
|
+
interface IntrinsicClassAttributes<T> extends ReactJSXIntrinsicClassAttributes<T> {
|
|
42
|
+
}
|
|
43
|
+
type IntrinsicElements = {
|
|
44
|
+
[K in keyof ReactJSXIntrinsicElements]: ReactJSXIntrinsicElements[K] & {
|
|
45
|
+
style?: React.CSSProperties;
|
|
46
|
+
'enable-xr'?: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
declare module 'react' {
|
|
51
|
+
interface CSSProperties {
|
|
52
|
+
'--xr-background-material'?: string;
|
|
53
|
+
'--xr-back'?: number | string;
|
|
54
|
+
'--xr-z-index'?: number | string;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare global {
|
|
59
|
+
interface CSSStyleDeclaration {
|
|
60
|
+
'--xr-background-material'?: string;
|
|
61
|
+
'--xr-back'?: number | string;
|
|
62
|
+
'--xr-z-index'?: number | string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
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.14"
|
|
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.14"
|
|
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.14"
|
|
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.14"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
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.14"
|
|
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.14";
|
|
3804
3804
|
export {
|
|
3805
3805
|
CSSSpatialDiv,
|
|
3806
3806
|
CSSSpatialPrimitive,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/react-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "React components for WebSpatial",
|
|
5
5
|
"main": "./dist/default/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18.0.0",
|
|
53
53
|
"react-dom": ">=18.0.0",
|
|
54
|
-
"@webspatial/core-sdk": "0.1.
|
|
54
|
+
"@webspatial/core-sdk": "0.1.14"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"@webspatial/core-sdk": {
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { JSXSource } from 'react/jsx-dev-runtime';
|
|
4
|
-
|
|
5
|
-
declare function jsxs(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
6
|
-
declare function jsx(type: React.ElementType, props: unknown, key?: React.Key): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
7
|
-
declare function jsxDEV(type: React.ElementType, props: unknown, key: React.Key, isStatic: boolean, source?: JSXSource, self?: unknown): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
8
|
-
|
|
9
|
-
type IsPreReact19 = 2 extends Parameters<React.FunctionComponent<any>>['length'] ? true : false;
|
|
10
|
-
/** @ts-ignore */
|
|
11
|
-
type ReactJSXElement = true extends IsPreReact19 ? JSX.Element : React.JSX.Element;
|
|
12
|
-
/** @ts-ignore */
|
|
13
|
-
type ReactJSXElementClass = true extends IsPreReact19 ? JSX.ElementClass : React.JSX.ElementClass;
|
|
14
|
-
/** @ts-ignore */
|
|
15
|
-
type ReactJSXElementAttributesProperty = true extends IsPreReact19 ? JSX.ElementAttributesProperty : React.JSX.ElementAttributesProperty;
|
|
16
|
-
/** @ts-ignore */
|
|
17
|
-
type ReactJSXElementChildrenAttribute = true extends IsPreReact19 ? JSX.ElementChildrenAttribute : React.JSX.ElementChildrenAttribute;
|
|
18
|
-
/** @ts-ignore */
|
|
19
|
-
type ReactJSXLibraryManagedAttributes<C, P> = true extends IsPreReact19 ? JSX.LibraryManagedAttributes<C, P> : React.JSX.LibraryManagedAttributes<C, P>;
|
|
20
|
-
/** @ts-ignore */
|
|
21
|
-
type ReactJSXIntrinsicAttributes = true extends IsPreReact19 ? JSX.IntrinsicAttributes : React.JSX.IntrinsicAttributes;
|
|
22
|
-
/** @ts-ignore */
|
|
23
|
-
type ReactJSXIntrinsicClassAttributes<T> = true extends IsPreReact19 ? JSX.IntrinsicClassAttributes<T> : React.JSX.IntrinsicClassAttributes<T>;
|
|
24
|
-
/** @ts-ignore */
|
|
25
|
-
type ReactJSXIntrinsicElements = true extends IsPreReact19 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements;
|
|
26
|
-
/** @ts-ignore */
|
|
27
|
-
type ReactJSXElementType = true extends IsPreReact19 ? string | React.JSXElementConstructor<any> : React.JSX.ElementType;
|
|
28
|
-
declare namespace WebSpatialJSX {
|
|
29
|
-
type ElementType = ReactJSXElementType;
|
|
30
|
-
interface Element extends ReactJSXElement {
|
|
31
|
-
}
|
|
32
|
-
interface ElementClass extends ReactJSXElementClass {
|
|
33
|
-
}
|
|
34
|
-
interface ElementAttributesProperty extends ReactJSXElementAttributesProperty {
|
|
35
|
-
}
|
|
36
|
-
interface ElementChildrenAttribute extends ReactJSXElementChildrenAttribute {
|
|
37
|
-
}
|
|
38
|
-
type LibraryManagedAttributes<C, P> = ReactJSXLibraryManagedAttributes<C, P>;
|
|
39
|
-
interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {
|
|
40
|
-
}
|
|
41
|
-
interface IntrinsicClassAttributes<T> extends ReactJSXIntrinsicClassAttributes<T> {
|
|
42
|
-
}
|
|
43
|
-
type IntrinsicElements = {
|
|
44
|
-
[K in keyof ReactJSXIntrinsicElements]: ReactJSXIntrinsicElements[K] & {
|
|
45
|
-
style?: React.CSSProperties;
|
|
46
|
-
'enable-xr'?: boolean;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
declare module 'react' {
|
|
51
|
-
interface CSSProperties {
|
|
52
|
-
'--xr-background-material'?: string;
|
|
53
|
-
'--xr-back'?: number | string;
|
|
54
|
-
'--xr-z-index'?: number | string;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
declare global {
|
|
59
|
-
interface CSSStyleDeclaration {
|
|
60
|
-
'--xr-background-material'?: string;
|
|
61
|
-
'--xr-back'?: number | string;
|
|
62
|
-
'--xr-z-index'?: number | string;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { WebSpatialJSX as W, jsx as a, jsxs as b, jsxDEV as j };
|