@webspatial/react-sdk 0.1.22 → 1.0.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/README.md +4 -5
- package/dist/default/index.js +7 -6
- package/dist/default/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js +5 -3
- package/dist/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx/jsx-runtime.js +5 -3
- package/dist/jsx/jsx-runtime.js.map +1 -1
- package/dist/jsx/jsx-runtime.web.js +1 -1
- package/dist/web/index.js +7 -6
- package/dist/web/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@ The React SDK from the WebSpatial SDK makes the WebSpatial API immediately avail
|
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [Development Guide](../../docs/en/development-guide/README.md)
|
|
12
|
+
- [Introduction](https://webspatial.dev/docs/introduction)
|
|
13
|
+
- [Quick Example](https://webspatial.dev/docs/quick-example)
|
|
14
|
+
- [Core Concepts](https://webspatial.dev/docs/core-concepts)
|
|
15
|
+
- [Development Guide](https://webspatial.dev/docs/development-guide)
|
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.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.0.0"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "avp"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -739,8 +739,7 @@ var defaultSceneConfig = {
|
|
|
739
739
|
defaultSize: {
|
|
740
740
|
width: 900,
|
|
741
741
|
height: 700
|
|
742
|
-
}
|
|
743
|
-
resizability: "automatic"
|
|
742
|
+
}
|
|
744
743
|
};
|
|
745
744
|
var CONTEXT_WINDOW_URL = "webspatial://createWindowContext";
|
|
746
745
|
var originalOpen = window.open;
|
|
@@ -3687,8 +3686,7 @@ async function setHtmlVisible(visible) {
|
|
|
3687
3686
|
function checkHtmlVisible() {
|
|
3688
3687
|
const computedStyle = getComputedStyle(document.documentElement);
|
|
3689
3688
|
const visibility = computedStyle.getPropertyValue("visibility") !== "hidden";
|
|
3690
|
-
|
|
3691
|
-
setHtmlVisible(visibility && widthGtZero);
|
|
3689
|
+
setHtmlVisible(visibility);
|
|
3692
3690
|
}
|
|
3693
3691
|
function hijackDocumentElementStyle() {
|
|
3694
3692
|
const rawDocumentStyle = document.documentElement.style;
|
|
@@ -3774,6 +3772,9 @@ function monitorHTMLAttributeChange() {
|
|
|
3774
3772
|
attributes: true,
|
|
3775
3773
|
attributeFilter: ["style", "class"]
|
|
3776
3774
|
});
|
|
3775
|
+
window.addEventListener("load", () => {
|
|
3776
|
+
checkCSSProperties();
|
|
3777
|
+
});
|
|
3777
3778
|
}
|
|
3778
3779
|
function spatialPolyfill() {
|
|
3779
3780
|
if (!isWebSpatialEnv) {
|
|
@@ -3789,7 +3790,7 @@ function spatialPolyfill() {
|
|
|
3789
3790
|
}
|
|
3790
3791
|
|
|
3791
3792
|
// src/index.ts
|
|
3792
|
-
var version = "0.
|
|
3793
|
+
var version = "1.0.0";
|
|
3793
3794
|
export {
|
|
3794
3795
|
CSSSpatialDiv,
|
|
3795
3796
|
CSSSpatialPrimitive,
|