@liveroom-tech/react-immersive 4.2.10 → 4.3.1
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 +0 -24
- package/dist/chunk-7X37KAPE.mjs +1 -0
- package/dist/chunk-IUALYWYG.mjs +26 -0
- package/dist/{chunk-WVKZCAVE.mjs → chunk-K7DMBJBJ.mjs} +1 -1
- package/dist/hosted.css +1 -0
- package/dist/hosted.d.mts +97 -0
- package/dist/hosted.d.ts +97 -0
- package/dist/hosted.js +3689 -0
- package/dist/hosted.mjs +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +13 -418
- package/dist/index.d.ts +13 -418
- package/dist/index.js +8 -8
- package/dist/index.mjs +1 -26
- package/dist/{utils-BkdZxLFF.d.mts → objectBinding-CBRYMYk6.d.mts} +48 -62
- package/dist/{utils-BkdZxLFF.d.ts → objectBinding-CBRYMYk6.d.ts} +48 -62
- package/dist/publicProps-BST1E8an.d.mts +349 -0
- package/dist/publicProps-Bv3_PCP0.d.ts +349 -0
- package/dist/utils.d.mts +18 -1
- package/dist/utils.d.ts +18 -1
- package/dist/utils.mjs +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -649,15 +649,9 @@ configuration as the viewers:
|
|
|
649
649
|
```ts
|
|
650
650
|
type BindingBuilderProps = {
|
|
651
651
|
licenseKey: string;
|
|
652
|
-
licenseValidationUrl?: string;
|
|
653
652
|
dracoDecoderPath?: string | false;
|
|
654
653
|
ktx2TranscoderPath?: string | false;
|
|
655
654
|
meshopt?: boolean;
|
|
656
|
-
project?: BindingBuilderProject | null;
|
|
657
|
-
onProjectChange?: (snapshot: BindingBuilderProjectSnapshot, origin: "local" | "remote") => void;
|
|
658
|
-
projectChangeDebounceMs?: number;
|
|
659
|
-
onModelUpload?: (file: File) => Promise<BindingBuilderProjectModel>;
|
|
660
|
-
onEditLeaseChange?: (featureId: string, editing: boolean) => void;
|
|
661
655
|
};
|
|
662
656
|
```
|
|
663
657
|
|
|
@@ -982,24 +976,6 @@ ending in `.glb`, `.gltf`, `.obj`, `.fbx`, or `.usdz` are detected automatically
|
|
|
982
976
|
|
|
983
977
|
License key for the library. Required.
|
|
984
978
|
|
|
985
|
-
### `licenseValidationUrl`
|
|
986
|
-
|
|
987
|
-
Optional. Points license validation at a different endpoint, for first-party or
|
|
988
|
-
self-hosted consoles that proxy validation through their own origin instead of
|
|
989
|
-
calling `react-immersive.liveroom.dev` cross-origin.
|
|
990
|
-
|
|
991
|
-
This is not a way to self-approve a license. When this prop is set, a successful
|
|
992
|
-
response is only accepted if it carries an `offlineGrant` signed by the React
|
|
993
|
-
Immersive license service, verified against the ECDSA public key pinned in this
|
|
994
|
-
package — and the resulting `environment` and `tier` are read from that signed
|
|
995
|
-
grant, not from the surrounding JSON body. An endpoint that returns
|
|
996
|
-
`{"valid": true}` without a valid grant is treated as a broken license server:
|
|
997
|
-
the SDK falls back to a previously verified grant if one is cached, and
|
|
998
|
-
otherwise fails closed.
|
|
999
|
-
|
|
1000
|
-
In practice the endpoint must be a deployment of the official validation route
|
|
1001
|
-
configured with `LICENSE_GRANT_PRIVATE_KEY`.
|
|
1002
|
-
|
|
1003
979
|
### `objectBindings`
|
|
1004
980
|
|
|
1005
981
|
A map keyed by the model node name. Each key should match a mesh name from the GLB/GLTF file.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as B}from"./chunk-K7DMBJBJ.mjs";function f(n){return typeof n=="object"&&!Array.isArray(n)}function j(n,e){return"group"in e?n.group===e.group:"tag"in e?n.tags?.includes(e.tag)??!1:n.type===e.type}function c(n,e){if(f(e))return Object.entries(n).filter(([,i])=>j(i,e)).map(([i])=>i);let r=(typeof e=="string"?[e]:e).map(i=>B(n,i)).filter(i=>i!==null);return[...new Set(r)]}function O(n,e){return c(n,e).map(t=>n[t]).filter(t=>t!==void 0)}function g(n){if(typeof n!="object"||n===null)return!1;let e=Object.getPrototypeOf(n);return e===Object.prototype||e===null}function o(n,e){if(!g(e))return e;let t=g(n)?{...n}:{};for(let r of Object.keys(e)){let i=e[r];t[r]=g(i)?o(t[r],i):i}return t}function y(n){return Array.isArray(n)&&n.length>0&&typeof n[0]!="string"}function m(n,e,t){let r=y(e)?e:[{ids:e,patch:t??{}}],i=n;for(let d of r)for(let s of c(i,d.ids)){let p=i[s];if(!p)continue;let a=o(p,d.patch);i===n&&(i={...n}),i[s]=a}return i}function S(n){return{style:{material:n}}}function P(n){return n}function K(n,e){return o(n,e)}export{c as a,O as b,m as c,S as d,P as e,K as f};
|