@vincentt-xr/sdk 2.0.0-alpha.12 → 2.0.0-alpha.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/GROUNDING.md +70 -16
- package/dist/{TextLabel-C6F5xoaz.js → TextLabel--skGFws8.js} +1 -1
- package/dist/{TextLabel-ChZCoB3P.cjs → TextLabel-DPJBtkUS.cjs} +1 -1
- package/dist/components/ScreenImage/ScreenImage.d.ts +1 -1
- package/dist/components/ScreenImage/liveEditable.d.ts +12 -0
- package/dist/components/ScreenImage/types.d.ts +20 -2
- package/dist/components/ScreenText/index.d.ts +1 -1
- package/dist/components/ScreenText/liveEditable.d.ts +6 -0
- package/dist/components/TextLabel/types.d.ts +4 -1
- package/dist/debug-ui.cjs +1 -1
- package/dist/debug-ui.js +2 -2
- package/dist/{index-BzGLgXJm.cjs → index-BG4xgyTm.cjs} +5 -5
- package/dist/index-CD_JFx3g.js +1142 -0
- package/dist/{index-BaNlidsb.js → index-YI3Yidg_.js} +1 -1
- package/dist/{index-Cm3v6Dlg.cjs → index-nRQNXOVk.cjs} +1 -1
- package/dist/instructions.cjs +1 -1
- package/dist/instructions.js +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +4 -4
- package/dist/scene-object.cjs +1 -1
- package/dist/scene-object.js +1 -1
- package/dist/useEditOverrides-C8Kzr6M7.cjs +1 -0
- package/dist/useEditOverrides-DpPTA6BW.js +40 -0
- package/dist/utils/useEditOverrides.d.ts +1 -1
- package/package.json +1 -1
- package/settings.json +98 -4
- package/dist/index-bL819L-K.js +0 -1115
- package/dist/useEditOverrides-BTkPGVjN.js +0 -38
- package/dist/useEditOverrides-C3ZVXuIH.cjs +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { useSyncExternalStore as u } from "react";
|
|
2
|
-
const f = "__VCT_EDIT_OVERRIDES__";
|
|
3
|
-
function l() {
|
|
4
|
-
const t = globalThis[f];
|
|
5
|
-
return t && typeof t.subscribe == "function" && typeof t.version == "function" && typeof t.get == "function" ? t : void 0;
|
|
6
|
-
}
|
|
7
|
-
const y = () => () => {
|
|
8
|
-
}, s = () => 0, b = (t) => typeof t == "object" && t !== null && !Array.isArray(t) && (Object.getPrototypeOf(t) === Object.prototype || Object.getPrototypeOf(t) === null);
|
|
9
|
-
function O(t, r, e) {
|
|
10
|
-
let o = t;
|
|
11
|
-
for (let n = 0; n < r.length - 1; n += 1) {
|
|
12
|
-
const c = o[r[n]];
|
|
13
|
-
if (!b(c)) return !1;
|
|
14
|
-
const i = { ...c };
|
|
15
|
-
o[r[n]] = i, o = i;
|
|
16
|
-
}
|
|
17
|
-
return o[r[r.length - 1]] = e, !0;
|
|
18
|
-
}
|
|
19
|
-
function g(t, r) {
|
|
20
|
-
const e = l();
|
|
21
|
-
if (u(
|
|
22
|
-
e ? e.subscribe : y,
|
|
23
|
-
e ? e.version : s,
|
|
24
|
-
s
|
|
25
|
-
), !e) return t;
|
|
26
|
-
const o = e.get(t);
|
|
27
|
-
if (!o) return t;
|
|
28
|
-
let n = null;
|
|
29
|
-
for (const c of r) {
|
|
30
|
-
if (!Object.prototype.hasOwnProperty.call(o, c)) continue;
|
|
31
|
-
const i = n ?? { ...t };
|
|
32
|
-
O(i, c.split("."), o[c]) && (n = i);
|
|
33
|
-
}
|
|
34
|
-
return n ?? t;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
g as u
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("react"),f="__VCT_EDIT_OVERRIDES__";function l(){const t=globalThis[f];return t&&typeof t.subscribe=="function"&&typeof t.version=="function"&&typeof t.get=="function"?t:void 0}const y=()=>()=>{},s=()=>0,b=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null);function O(t,r,e){let n=t;for(let o=0;o<r.length-1;o+=1){const c=n[r[o]];if(!b(c))return!1;const i={...c};n[r[o]]=i,n=i}return n[r[r.length-1]]=e,!0}function E(t,r){const e=l();if(u.useSyncExternalStore(e?e.subscribe:y,e?e.version:s,s),!e)return t;const n=e.get(t);if(!n)return t;let o=null;for(const c of r){if(!Object.prototype.hasOwnProperty.call(n,c))continue;const i=o??{...t};O(i,c.split("."),n[c])&&(o=i)}return o??t}exports.useEditOverrides=E;
|