@vincentt-xr/sdk 2.0.0-alpha.21 → 2.0.0-alpha.23

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.
Files changed (96) hide show
  1. package/GROUNDING.md +138 -2
  2. package/components.json +61 -1
  3. package/dist/{CanonicalHeadFrame-CQe2YX9a.js → CanonicalHeadFrame-ZSfpHH_w.js} +3 -3
  4. package/dist/{DebuggerUI-CKYrYmod.js → DebuggerUI-C_c1B-2p.js} +1 -1
  5. package/dist/{FaceRetouch-l7y4oZBu.js → FaceRetouch-4tV3RYa-.js} +4 -4
  6. package/dist/{TextLabel-C-AibH5A.cjs → TextLabel-DWBSNwRA.cjs} +2 -2
  7. package/dist/{TextLabel-fEF1o3wE.js → TextLabel-XSfkeWDJ.js} +172 -172
  8. package/dist/{bodyMaskMaterial-BOdSJUEM.js → bodyMaskMaterial-BF6Gm6hz.js} +1 -1
  9. package/dist/{cache-Mu-VO_6E.js → cache-CbX-0Rgn.js} +2 -2
  10. package/dist/components/Button/index.d.ts +1 -1
  11. package/dist/components/CaptureShareScreen/index.d.ts +27 -0
  12. package/dist/components/FaceSwap/settings.d.ts +1 -1
  13. package/dist/components/HtmlRegion/index.d.ts +1 -1
  14. package/dist/components/IntroScreen/index.d.ts +31 -0
  15. package/dist/components/Light/index.d.ts +1 -1
  16. package/dist/components/Model/index.d.ts +1 -1
  17. package/dist/components/Object3D/index.d.ts +1 -1
  18. package/dist/components/PaintedFace/index.d.ts +1 -1
  19. package/dist/components/ScreenShape/index.d.ts +8 -0
  20. package/dist/components/ScreenText/liveEditable.d.ts +1 -1
  21. package/dist/components/SplashScreen/index.d.ts +38 -0
  22. package/dist/components/TextLabel/TextLabel.d.ts +3 -0
  23. package/dist/components/index.d.ts +3 -0
  24. package/dist/contexts-awO81p6d.cjs +1 -0
  25. package/dist/contexts-hhxufDg2.js +714 -0
  26. package/dist/debug-ui/media-source.js +1 -1
  27. package/dist/debug-ui.cjs +1 -1
  28. package/dist/debug-ui.js +11 -11
  29. package/dist/{drawNormalizedCrop-D606u5-F.js → drawNormalizedCrop-8RzfrVNS.js} +5 -5
  30. package/dist/editor-defs/live.d.ts +28 -0
  31. package/dist/editor-defs/live.generated.d.ts +2 -0
  32. package/dist/editor-defs/types.d.ts +1 -1
  33. package/dist/editor-scenes.cjs +1 -1
  34. package/dist/editor-scenes.js +419 -40
  35. package/dist/entries/core.d.ts +10 -0
  36. package/dist/entries/editor-scenes.d.ts +1 -6
  37. package/dist/face-effects.cjs +67 -67
  38. package/dist/face-effects.js +1276 -1275
  39. package/dist/{getFaceInfo-Mt44zlej.js → getFaceInfo-B1pPvyh9.js} +1 -1
  40. package/dist/hooks/captureStore.d.ts +25 -0
  41. package/dist/hooks/useCapture.d.ts +28 -0
  42. package/dist/hooks/useShare.d.ts +37 -0
  43. package/dist/{index-CbBCl2ZU.js → index-BTVIMj8H.js} +2 -2
  44. package/dist/{index-BDxJWWyy.js → index-BmeB_V6I.js} +48 -48
  45. package/dist/{index-D5NbXaCn.js → index-CW4yk2jC.js} +272 -263
  46. package/dist/{index-B0EYdofX.js → index-Cw6HeUjE.js} +1 -1
  47. package/dist/{index-Bn72laBn.js → index-DSrRFuRp.js} +1 -1
  48. package/dist/{index-CM3jkleV.js → index-DTkbQ5OA.js} +27 -25
  49. package/dist/{index-CicO_Tnw.js → index-Dmhh2RjM.js} +1 -1
  50. package/dist/index-hEANh5cP.cjs +21 -0
  51. package/dist/{index-fDwL47CM.cjs → index-rCxTueDx.cjs} +2 -2
  52. package/dist/instructions.cjs +1 -1
  53. package/dist/instructions.js +8 -8
  54. package/dist/{internal-BoFDq5hC.js → internal-DDcTDvPS.js} +3 -3
  55. package/dist/internal.js +2 -2
  56. package/dist/{landmarks-C3LvDhMt.js → landmarks-BB8jyfJA.js} +1 -1
  57. package/dist/live.generated-Do4jgrUN.js +116 -0
  58. package/dist/live.generated-n5ZV_2Gt.cjs +1 -0
  59. package/dist/low-level.cjs +1 -1
  60. package/dist/low-level.js +17 -17
  61. package/dist/main.cjs +1 -1
  62. package/dist/main.js +1081 -884
  63. package/dist/overlay/consumer.d.ts +36 -0
  64. package/dist/overlay/grammar.d.ts +74 -0
  65. package/dist/overlay/region.d.ts +23 -0
  66. package/dist/particles.js +5 -5
  67. package/dist/product.js +2 -2
  68. package/dist/{providers-Bxt_MfPK.js → providers-Q4H0Ii-y.js} +3 -3
  69. package/dist/{renderGroups-uYPzUa66.js → renderGroups-LVQ0Af0t.js} +1 -1
  70. package/dist/{renderPasses-C0wu5Cwg.js → renderPasses-DYc2-EBT.js} +7 -7
  71. package/dist/scene-object.cjs +1 -1
  72. package/dist/scene-object.js +2 -2
  73. package/dist/{segmentation-DccvYBBO.js → segmentation-BWHRt2hE.js} +1 -1
  74. package/dist/{selectors-J06V0eDb.js → selectors-kj5g3uv2.js} +3 -3
  75. package/dist/{session-CYiWfcvz.js → session-CMz1ao3i.js} +1 -1
  76. package/dist/tracking.js +25 -25
  77. package/dist/{trigger-CQviD4xp.js → trigger-8fpI9g9S.js} +7 -7
  78. package/dist/{useBodies-DOuwRuew.js → useBodies-CH4ZUECn.js} +2 -2
  79. package/dist/useEditOverrides-BmvpLYPU.js +85 -0
  80. package/dist/useEditOverrides-DMAMGzlF.cjs +1 -0
  81. package/dist/{useFaceInfo-XUGYTdfN.js → useFaceInfo-BV77B-r4.js} +4 -4
  82. package/dist/{useFaceResultReader-D8wXbF1L.js → useFaceResultReader-DgOPK1Z6.js} +1 -1
  83. package/dist/{useIrisTracking-B0uLWgNE.js → useIrisTracking-D6mv7coz.js} +10 -10
  84. package/dist/useLiveProps-Bz9wifGN.cjs +1 -0
  85. package/dist/useLiveProps-CMkyV6Dt.js +28 -0
  86. package/dist/{useXRCapabilities-DPUOvpdf.js → useXRCapabilities-FAY2ve86.js} +1 -1
  87. package/dist/utils/useEditOverlay.d.ts +33 -0
  88. package/dist/utils/useEditOverrides.d.ts +10 -0
  89. package/dist/utils/useLiveProps.d.ts +8 -0
  90. package/package.json +1 -1
  91. package/settings.json +1 -1
  92. package/dist/contexts-CSz9stBV.cjs +0 -1
  93. package/dist/contexts-Cl-4dUOI.js +0 -667
  94. package/dist/index-BkjRuUdW.cjs +0 -21
  95. package/dist/useEditOverrides-BBkK8cN2.js +0 -41
  96. package/dist/useEditOverrides-CgapHJzA.cjs +0 -1
@@ -0,0 +1,36 @@
1
+ import { OverlaySlot } from '../utils/useEditOverlay';
2
+ import { OverlayReason } from './grammar';
3
+ /** The bridge's overlay host: a non-writable global on the frame window, in console mode only. */
4
+ export declare const OVERLAY_GLOBAL = "__VCT_EDIT_OVERLAY__";
5
+ export interface OverlaySnapshot {
6
+ readonly base: string;
7
+ readonly rev: number;
8
+ readonly entries: readonly unknown[];
9
+ }
10
+ export interface OverlayApplyResult {
11
+ readonly failed: readonly {
12
+ readonly s: string;
13
+ readonly reason: OverlayReason;
14
+ }[];
15
+ }
16
+ export interface OverlayConsumer {
17
+ readonly buildId?: string;
18
+ /** Replaces the previous snapshot entirely. Returns the stamps it could not show. */
19
+ apply(snapshot: OverlaySnapshot): OverlayApplyResult;
20
+ }
21
+ export interface OverlayHost {
22
+ register(consumer: OverlayConsumer): boolean;
23
+ stampOf(props: object): string | undefined;
24
+ /** Re-reports the failures for the current rev; the SDK calls it when a stamp reported unknown-stamp mounts later. */
25
+ reportFailures?(result: OverlayApplyResult): void;
26
+ }
27
+ export declare function createOverlayConsumer(stampOf: (props: object) => string | undefined, onLateMount?: (result: OverlayApplyResult) => void): {
28
+ slot: OverlaySlot;
29
+ consumer: OverlayConsumer;
30
+ };
31
+ /**
32
+ * Registers the consumer with the bridge's overlay host during module evaluation (the bridge
33
+ * advertises `overlay/1` only if this ran before its hello). False, and nothing installed,
34
+ * where the page has no host.
35
+ */
36
+ export declare function registerOverlayConsumer(): boolean;
@@ -0,0 +1,74 @@
1
+ export type OverlayReason = "unknown-stamp" | "base-mismatch" | "cap" | "grammar" | "id-collision" | "not-representable";
2
+ export declare const OVERLAY_ENTRY_CAP = 400;
3
+ export declare const OVERLAY_STRING_CAP = 16384;
4
+ /**
5
+ * A region's children as a render plan: the root is `{tag: "fragment"}` (its children may be
6
+ * slots) or one allowlisted element; below it only allowlisted tags with allowlisted string
7
+ * attributes, text, and nothing else. A slot names a direct child element of the region by stamp.
8
+ */
9
+ export type PlanChild = string | {
10
+ slot: string;
11
+ } | PlanNode;
12
+ export interface PlanNode {
13
+ tag: string;
14
+ attrs?: {
15
+ [name: string]: string;
16
+ };
17
+ children: PlanChild[];
18
+ }
19
+ export type ParsedEntry = {
20
+ k: "prop";
21
+ s: string;
22
+ key: string;
23
+ value: unknown;
24
+ } | {
25
+ k: "text";
26
+ s: string;
27
+ text: string;
28
+ } | {
29
+ k: "region";
30
+ s: string;
31
+ plan: PlanNode;
32
+ }
33
+ /** A region text piece: the `nth` text of the region that reads `from`, shown as `text`. */
34
+ | {
35
+ k: "piece";
36
+ s: string;
37
+ text: string;
38
+ from: string;
39
+ nth: number;
40
+ }
41
+ /** A well-formed kind a later slice applies (assets, structure, text pieces). */
42
+ | {
43
+ k: "later";
44
+ s: string | undefined;
45
+ };
46
+ export type ParseResult = {
47
+ ok: true;
48
+ entry: ParsedEntry;
49
+ } | {
50
+ ok: false;
51
+ reason: OverlayReason;
52
+ s?: string;
53
+ };
54
+ export declare function isForbiddenKey(k: string): boolean;
55
+ /** A key as the registry names it: a prop, or a dotted path into an object prop. */
56
+ export declare function isSafeKey(key: unknown): key is string;
57
+ /** Plain JSON only: own properties, no forbidden names at any depth, bounded in depth, nodes and string size. */
58
+ export declare function checkValue(value: unknown): "ok" | "grammar" | "cap";
59
+ /** The tags a region plan may name (the engine's region grammar). */
60
+ export declare const PLAN_TAGS: readonly string[];
61
+ /** Element levels below the root fragment; elements, strings and slots in a plan; an attribute value; a src. */
62
+ export declare const PLAN_MAX_DEPTH = 12;
63
+ export declare const PLAN_MAX_NODES = 1000;
64
+ /**
65
+ * A region plan as the frame renders it: a fresh copy of its known fields, or the verdict (`cap`
66
+ * for depth, nodes or a string over its limit, `grammar` for anything else, and grammar wins).
67
+ * Iterative, so a deep plan cannot overflow the stack.
68
+ */
69
+ export declare function parsePlan(root: unknown): {
70
+ plan: PlanNode;
71
+ } | {
72
+ fault: "cap" | "grammar";
73
+ };
74
+ export declare function parseEntry(raw: unknown): ParseResult;
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ import { PlanNode } from './grammar';
3
+ export type RenderedPlan = {
4
+ node: ReactNode;
5
+ } | {
6
+ fault: "not-representable";
7
+ };
8
+ export declare function renderPlan(plan: PlanNode, children: ReactNode, stampOf: (props: object) => string | undefined): RenderedPlan;
9
+ export interface PieceEdit {
10
+ from: string;
11
+ nth: number;
12
+ text: string;
13
+ }
14
+ /**
15
+ * The region's own children with text pieces replaced: the `nth` text node (in document order,
16
+ * through the region's own elements only, never inside a `data-locked` element or a component)
17
+ * whose collapsed text is `from` shows `text`, keeping its edge whitespace. `missed` is true when
18
+ * a piece found no node, and the caller then shows nothing new.
19
+ */
20
+ export declare function applyPieces(children: ReactNode, pieces: readonly PieceEdit[]): {
21
+ node: ReactNode;
22
+ missed: boolean;
23
+ };
package/dist/particles.js CHANGED
@@ -4,13 +4,13 @@ var u = (e, t, i) => Dt(e, typeof t != "symbol" ? t + "" : t, i);
4
4
  import { useThree as V } from "@react-three/fiber";
5
5
  import { forwardRef as Z, useMemo as Mt, useRef as W, useImperativeHandle as kt, useState as Lt, useEffect as q } from "react";
6
6
  import * as h from "three";
7
- import { p as Ot, e as _, j as Ft, t as J } from "./index-BDxJWWyy.js";
8
- import { u as Jt } from "./landmarks-C3LvDhMt.js";
7
+ import { p as Ot, e as _, j as Ft, t as J } from "./index-BmeB_V6I.js";
8
+ import { u as Jt } from "./landmarks-BB8jyfJA.js";
9
9
  import { a as At } from "./useLandmarkPoseFit-Bmb3h6Mw.js";
10
10
  import { jsx as D } from "react/jsx-runtime";
11
- import { f as Nt } from "./selectors-J06V0eDb.js";
12
- import { u as Vt, F as jt } from "./index-CbBCl2ZU.js";
13
- import { C as Bt, a as Gt } from "./CanonicalHeadFrame-CQe2YX9a.js";
11
+ import { e as Nt } from "./selectors-kj5g3uv2.js";
12
+ import { u as Vt, F as jt } from "./index-BTVIMj8H.js";
13
+ import { C as Bt, a as Gt } from "./CanonicalHeadFrame-ZSfpHH_w.js";
14
14
  const Ge = ["leftEye", "rightEye", "eyes"], Ut = [
15
15
  263,
16
16
  249,
package/dist/product.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as C, jsxs as J, Fragment as T } from "react/jsx-runtime";
2
2
  import { forwardRef as Z, useRef as j, useState as S, useCallback as w, useEffect as N, createElement as tt, useMemo as z } from "react";
3
- import { w as et, x as rt, y as nt } from "./index-BDxJWWyy.js";
4
- import { u as ot } from "./useXRCapabilities-DPUOvpdf.js";
3
+ import { w as et, x as rt, y as nt } from "./index-BmeB_V6I.js";
4
+ import { u as ot } from "./useXRCapabilities-FAY2ve86.js";
5
5
  let O = null;
6
6
  const st = () => typeof customElements < "u" && customElements.get("model-viewer") !== void 0, it = () => st() ? Promise.resolve() : (O || (O = import("@google/model-viewer").then(() => {
7
7
  }).catch((t) => {
@@ -6,11 +6,11 @@ import { useThree as ee, useLoader as te, useFrame as _ } from "@react-three/fib
6
6
  import { useMemo as g, useEffect as B, useRef as y, useState as W } from "react";
7
7
  import * as d from "three";
8
8
  import { R as se } from "./uv-DJU_XfmN.js";
9
- import { c as Y, b as L } from "./selectors-J06V0eDb.js";
9
+ import { c as Y, b as L } from "./selectors-kj5g3uv2.js";
10
10
  import { T as ne, s as H } from "./textures-BVwo9Z7z.js";
11
- import { z as re, A as ae, C as oe, D as V, F as ie, j as E, G as U, S as ce, I as le } from "./index-BDxJWWyy.js";
11
+ import { z as re, A as ae, C as oe, D as V, F as ie, j as E, G as U, S as ce, I as le } from "./index-BmeB_V6I.js";
12
12
  import { p as ue, S as de, r as fe, F as he, L as me, R as ve, a as pe, b as xe, O as ge, I as Te } from "./landmarkMask-DHivVjJm.js";
13
- import { u as X } from "./landmarks-C3LvDhMt.js";
13
+ import { u as X } from "./landmarks-BB8jyfJA.js";
14
14
  const K = (e = 1, s = 1) => {
15
15
  const t = new d.DataTexture(
16
16
  new Uint8Array(e * s),
@@ -1,4 +1,4 @@
1
- import { M as D, g as I } from "./renderPasses-C0wu5Cwg.js";
1
+ import { M as D, g as I } from "./renderPasses-DYc2-EBT.js";
2
2
  const p = {
3
3
  background: "background",
4
4
  scene3d: "general",
@@ -3,11 +3,11 @@ import { useLoader as fe, useThree as Bt, useFrame as zt } from "@react-three/fi
3
3
  import { useRef as o, useMemo as $, useState as qe, useCallback as He, useEffect as Se } from "react";
4
4
  import * as E from "three";
5
5
  import { MathUtils as Je, Color as Ht, Vector2 as Ve } from "three";
6
- import { J as se, q as Vt, j as jt, I as Wt } from "./index-BDxJWWyy.js";
7
- import { b as Xt, c as $t, f as Kt } from "./selectors-J06V0eDb.js";
8
- import { t as Yt, p as qt, F as Jt } from "./index-CbBCl2ZU.js";
6
+ import { J as se, q as Vt, j as jt, I as Wt } from "./index-BmeB_V6I.js";
7
+ import { b as Xt, c as $t, e as Kt } from "./selectors-kj5g3uv2.js";
8
+ import { t as Yt, p as qt, F as Jt } from "./index-BTVIMj8H.js";
9
9
  import { T as Ee, c as Qt, a as Zt, s as en } from "./textures-BVwo9Z7z.js";
10
- import { t as tn, c as nn, a as sn } from "./index-CicO_Tnw.js";
10
+ import { t as tn, c as nn, a as sn } from "./index-Dmhh2RjM.js";
11
11
  import { TransformControls as rn } from "@react-three/drei";
12
12
  const an = (e) => {
13
13
  const n = o(null);
@@ -1271,9 +1271,9 @@ export {
1271
1271
  pn as h,
1272
1272
  as as i,
1273
1273
  je as j,
1274
- ts as k,
1275
- Qe as l,
1276
- is as m,
1274
+ is as k,
1275
+ ts as l,
1276
+ Qe as m,
1277
1277
  ln as n,
1278
1278
  _e as o,
1279
1279
  rs as p,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BkjRuUdW.cjs"),t=require("./renderGroups-B0N58SIA.cjs");exports.addComponentToObject=e.addComponentToObject;exports.componentDefaults=e.componentDefaults;exports.createDefaultComponent=e.createDefaultComponent;exports.createDefaultFaceMeshRendererSettings=e.createDefaultFaceMeshRendererSettings;exports.createDefaultMaterialSettings=e.createDefaultMaterialSettings;exports.createDefaultMeshRendererSettings=e.createDefaultMeshRendererSettings;exports.createDefaultScreenImageSettings=e.createDefaultScreenImageSettings;exports.createDefaultScreenShapeSettings=e.createDefaultScreenShapeSettings;exports.createDefaultScreenTextSettings=e.createDefaultScreenTextSettings;exports.createDefaultScreenTransformSettings=e.createDefaultScreenTransformSettings;exports.createDefaultTextureSettings=e.createDefaultTextureSettings;exports.createDefaultTransformSettings=e.createDefaultTransformSettings;exports.createOrderedComponentsSelector=e.createOrderedComponentsSelector;exports.createSceneComponentId=e.createSceneComponentId;exports.createSceneId=e.createSceneId;exports.createSceneObject=e.createSceneObject;exports.createSceneObjectId=e.createSceneObjectId;exports.deleteSceneObject=e.deleteSceneObject;exports.getOrderedComponents=e.getOrderedComponents;exports.getSceneObjectChildren=e.getSceneObjectChildren;exports.moveComponent=e.moveComponent;exports.removeComponent=e.removeComponent;exports.replaceSceneComponent=e.replaceSceneComponent;exports.replaceSceneObject=e.replaceSceneObject;exports.setSceneObjectParent=e.setSceneObjectParent;exports.setSceneObjectParentPreserveWorldTransform=e.setSceneObjectParentPreserveWorldTransform;exports.setSceneObjectVisible=e.setSceneObjectVisible;exports.DEFAULT_RENDER_GROUP_IDS=t.DEFAULT_RENDER_GROUP_IDS;exports.RENDER_GROUP_POLICIES=t.RENDER_GROUP_POLICIES;exports.createRenderPlan=t.createRenderPlan;exports.getDefaultRenderGroupId=t.getDefaultRenderGroupId;exports.migrateToRenderGroups=t.migrateToRenderGroups;exports.moveObjectToGroup=t.moveObjectToGroup;exports.reorderObjectWithinGroup=t.reorderObjectWithinGroup;exports.reorderRenderGroup=t.reorderRenderGroup;exports.validateGroupCompatibility=t.validateGroupCompatibility;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-hEANh5cP.cjs"),t=require("./renderGroups-B0N58SIA.cjs");exports.addComponentToObject=e.addComponentToObject;exports.componentDefaults=e.componentDefaults;exports.createDefaultComponent=e.createDefaultComponent;exports.createDefaultFaceMeshRendererSettings=e.createDefaultFaceMeshRendererSettings;exports.createDefaultMaterialSettings=e.createDefaultMaterialSettings;exports.createDefaultMeshRendererSettings=e.createDefaultMeshRendererSettings;exports.createDefaultScreenImageSettings=e.createDefaultScreenImageSettings;exports.createDefaultScreenShapeSettings=e.createDefaultScreenShapeSettings;exports.createDefaultScreenTextSettings=e.createDefaultScreenTextSettings;exports.createDefaultScreenTransformSettings=e.createDefaultScreenTransformSettings;exports.createDefaultTextureSettings=e.createDefaultTextureSettings;exports.createDefaultTransformSettings=e.createDefaultTransformSettings;exports.createOrderedComponentsSelector=e.createOrderedComponentsSelector;exports.createSceneComponentId=e.createSceneComponentId;exports.createSceneId=e.createSceneId;exports.createSceneObject=e.createSceneObject;exports.createSceneObjectId=e.createSceneObjectId;exports.deleteSceneObject=e.deleteSceneObject;exports.getOrderedComponents=e.getOrderedComponents;exports.getSceneObjectChildren=e.getSceneObjectChildren;exports.moveComponent=e.moveComponent;exports.removeComponent=e.removeComponent;exports.replaceSceneComponent=e.replaceSceneComponent;exports.replaceSceneObject=e.replaceSceneObject;exports.setSceneObjectParent=e.setSceneObjectParent;exports.setSceneObjectParentPreserveWorldTransform=e.setSceneObjectParentPreserveWorldTransform;exports.setSceneObjectVisible=e.setSceneObjectVisible;exports.DEFAULT_RENDER_GROUP_IDS=t.DEFAULT_RENDER_GROUP_IDS;exports.RENDER_GROUP_POLICIES=t.RENDER_GROUP_POLICIES;exports.createRenderPlan=t.createRenderPlan;exports.getDefaultRenderGroupId=t.getDefaultRenderGroupId;exports.migrateToRenderGroups=t.migrateToRenderGroups;exports.moveObjectToGroup=t.moveObjectToGroup;exports.reorderObjectWithinGroup=t.reorderObjectWithinGroup;exports.reorderRenderGroup=t.reorderRenderGroup;exports.validateGroupCompatibility=t.validateGroupCompatibility;
@@ -1,5 +1,5 @@
1
- import { a, c as r, b as s, d as n, e as c, f as o, g as S, i as l, h as d, j as m, k as p, l as i, q as u, m as f, n as D, o as g, p as O, r as b, s as R, t as j, u as C, v as T, w as G, x as I, y as v, z as P, A as h } from "./index-D5NbXaCn.js";
2
- import { D as x, R as _, c as M, g as U, m as y, a as A, r as F, b as L, v as N } from "./renderGroups-uYPzUa66.js";
1
+ import { a, c as r, b as s, d as n, e as c, f as o, g as S, i as l, h as d, j as m, k as p, l as i, q as u, m as f, n as D, o as g, p as O, r as b, s as R, t as j, u as C, v as T, w as G, x as I, y as v, z as P, A as h } from "./index-CW4yk2jC.js";
2
+ import { D as x, R as _, c as M, g as U, m as y, a as A, r as F, b as L, v as N } from "./renderGroups-LVQ0Af0t.js";
3
3
  export {
4
4
  x as DEFAULT_RENDER_GROUP_IDS,
5
5
  _ as RENDER_GROUP_POLICIES,
@@ -3,7 +3,7 @@ var Me = (b, a, e) => a in b ? Ge(b, a, { enumerable: !0, configurable: !0, writ
3
3
  var ne = (b, a, e) => Me(b, typeof a != "symbol" ? a + "" : a, e);
4
4
  import * as P from "three";
5
5
  import { TrianglesDrawMode as Pe, TriangleFanDrawMode as Z, TriangleStripDrawMode as ge, Loader as _e, LoaderUtils as B, FileLoader as me, MeshPhysicalMaterial as v, Vector2 as Ae, Color as _, LinearSRGBColorSpace as y, SRGBColorSpace as I, SpotLight as Ce, PointLight as De, DirectionalLight as He, Matrix4 as q, Vector3 as C, Quaternion as xe, InstancedMesh as Ne, InstancedBufferAttribute as Ke, Object3D as ke, TextureLoader as Be, ImageBitmapLoader as Ie, BufferAttribute as U, InterleavedBuffer as qe, InterleavedBufferAttribute as ze, LinearMipmapLinearFilter as Te, NearestMipmapLinearFilter as Ue, LinearMipmapNearestFilter as Qe, NearestMipmapNearestFilter as We, LinearFilter as $, NearestFilter as Re, RepeatWrapping as ee, MirroredRepeatWrapping as Ve, ClampToEdgeWrapping as Xe, PointsMaterial as Je, Material as Q, LineBasicMaterial as Ye, MeshStandardMaterial as we, DoubleSide as Ze, MeshBasicMaterial as K, PropertyBinding as $e, BufferGeometry as ea, SkinnedMesh as aa, Mesh as ta, LineSegments as sa, Line as na, LineLoop as ia, Points as ra, Group as W, PerspectiveCamera as oa, MathUtils as ca, OrthographicCamera as ba, Skeleton as la, AnimationClip as da, Bone as fa, InterpolateDiscrete as pa, InterpolateLinear as Ee, Texture as ie, VectorKeyframeTrack as re, NumberKeyframeTrack as oe, QuaternionKeyframeTrack as ce, ColorManagement as be, FrontSide as ha, Interpolant as ua, Box3 as ga, Sphere as ma } from "three";
6
- import { q as je, v as Aa } from "./index-BDxJWWyy.js";
6
+ import { q as je, v as Aa } from "./index-BmeB_V6I.js";
7
7
  const se = (b) => {
8
8
  if (!b) return 0;
9
9
  const a = b.image;
@@ -1,5 +1,5 @@
1
1
  import { useSyncExternalStore as s, useMemo as u } from "react";
2
- import { u as d, m as g, s as p, i as h, c as S } from "./index-BDxJWWyy.js";
2
+ import { u as d, m as g, s as p, i as h, c as S } from "./index-BmeB_V6I.js";
3
3
  const r = () => d().session.store, o = (e) => (t) => e.subscribe(t), k = () => {
4
4
  const e = r();
5
5
  return s(
@@ -179,8 +179,8 @@ export {
179
179
  I as b,
180
180
  O as c,
181
181
  k as d,
182
- R as e,
183
- C as f,
182
+ C as e,
183
+ R as f,
184
184
  A as g,
185
185
  m as h,
186
186
  M as i,
@@ -1,4 +1,4 @@
1
- import { J as L, u as z, w as _, j as F } from "./index-BDxJWWyy.js";
1
+ import { J as L, u as z, w as _, j as F } from "./index-BmeB_V6I.js";
2
2
  import { jsx as r, jsxs as y } from "react/jsx-runtime";
3
3
  import { createPortal as W } from "react-dom";
4
4
  import { useState as m, useRef as R, useMemo as j, useEffect as h } from "react";
package/dist/tracking.js CHANGED
@@ -1,38 +1,38 @@
1
- import { T as me } from "./index-CbBCl2ZU.js";
2
- import { a as ts, F as rs } from "./index-CbBCl2ZU.js";
1
+ import { T as me } from "./index-BTVIMj8H.js";
2
+ import { a as ts, F as rs } from "./index-BTVIMj8H.js";
3
3
  import { jsx as N, jsxs as _t, Fragment as St } from "react/jsx-runtime";
4
4
  import { useThree as q, useFrame as U, createPortal as Rt } from "@react-three/fiber";
5
5
  import { useRef as _, useMemo as v, useCallback as Y, useContext as Se, useEffect as b, useState as W, createContext as At, useId as yt, useSyncExternalStore as Ot } from "react";
6
- import { j as J, t as $, J as Re, Q as Dt, n as Ke, f as bt, i as It, u as at, q as Nt } from "./index-BDxJWWyy.js";
7
- import { B as ss, T as os, Y as as, V as is, U as cs, W as us, Z as ls, e as ds, H as fs, R as hs, X as ms, _ as ps, h as gs, D as Ts, G as Es, $ as _s, a0 as Ss, C as Rs, g as As, a1 as ys } from "./index-BDxJWWyy.js";
6
+ import { j as J, t as $, J as Re, Q as Dt, n as Ke, f as bt, i as It, u as at, q as Nt } from "./index-BmeB_V6I.js";
7
+ import { B as ss, T as os, Y as as, V as is, U as cs, W as us, Z as ls, e as ds, H as fs, R as hs, X as ms, _ as ps, h as gs, D as Ts, G as Es, $ as _s, a0 as Ss, C as Rs, g as As, a1 as ys } from "./index-BmeB_V6I.js";
8
8
  import { R as pe } from "./uv-DJU_XfmN.js";
9
- import { u as fe, r as vt } from "./landmarks-C3LvDhMt.js";
10
- import { a as Ds } from "./landmarks-C3LvDhMt.js";
11
- import { r as xt, M as Ye, B as Ct, g as Ee, c as We, s as Mt, a as Ht } from "./useIrisTracking-B0uLWgNE.js";
12
- import { b as Is, j as Ns, C as vs, k as xs, l as Cs, m as Ms, e as Hs, D as Ls, p as ws, F as Fs, S as ks, f as Bs, h as Ps, d as Us, q as Gs, t as js, i as Ks, n as Ys, u as Ws, o as Vs } from "./useIrisTracking-B0uLWgNE.js";
13
- import { S as Lt, u as wt, B as Ft, a as it, b as kt, c as Bt, d as Pt, r as Ut, H as Gt, e as jt, O as Kt, m as Yt, f as ce, g as Ve, h as ue, i as Wt, j as Vt, k as zt, l as Xt, n as qt, o as Jt, s as be, p as $t, q as Qt, t as Zt, v as ze } from "./trigger-CQviD4xp.js";
14
- import { E as Xs, ab as qs, ac as Js, ad as $s, ae as Qs, a8 as Zs, x as eo, y as to, z as ro, A as no, C as so, a9 as oo, aa as ao, D as io, I as co, J as uo, K as lo, F as fo, Y as ho, Z as mo, _ as po, $ as go, a0 as To, P as Eo, T as _o, U as So, a5 as Ro, a1 as Ao, a2 as yo, a6 as Oo, V as Do, Q as bo, w as Io, X as No, R as vo, a3 as xo, a7 as Co, L as Mo, M as Ho, W as Lo, G as wo, af as Fo, ag as ko, a4 as Bo, N as Po } from "./trigger-CQviD4xp.js";
15
- import { d as er, S as Xe } from "./segmentation-DccvYBBO.js";
16
- import { a as Go } from "./segmentation-DccvYBBO.js";
9
+ import { u as fe, r as vt } from "./landmarks-BB8jyfJA.js";
10
+ import { a as Ds } from "./landmarks-BB8jyfJA.js";
11
+ import { r as xt, M as Ye, B as Ct, g as Ee, c as We, s as Mt, a as Ht } from "./useIrisTracking-D6mv7coz.js";
12
+ import { b as Is, j as Ns, C as vs, k as xs, l as Cs, m as Ms, e as Hs, D as Ls, p as ws, F as Fs, S as ks, f as Bs, h as Ps, d as Us, q as Gs, t as js, i as Ks, n as Ys, u as Ws, o as Vs } from "./useIrisTracking-D6mv7coz.js";
13
+ import { S as Lt, u as wt, B as Ft, a as it, b as kt, c as Bt, d as Pt, r as Ut, H as Gt, e as jt, O as Kt, m as Yt, f as ce, g as Ve, h as ue, i as Wt, j as Vt, k as zt, l as Xt, n as qt, o as Jt, s as be, p as $t, q as Qt, t as Zt, v as ze } from "./trigger-8fpI9g9S.js";
14
+ import { E as Xs, ab as qs, ac as Js, ad as $s, ae as Qs, a8 as Zs, x as eo, y as to, z as ro, A as no, C as so, a9 as oo, aa as ao, D as io, I as co, J as uo, K as lo, F as fo, Y as ho, Z as mo, _ as po, $ as go, a0 as To, P as Eo, T as _o, U as So, a5 as Ro, a1 as Ao, a2 as yo, a6 as Oo, V as Do, Q as bo, w as Io, X as No, R as vo, a3 as xo, a7 as Co, L as Mo, M as Ho, W as Lo, G as wo, af as Fo, ag as ko, a4 as Bo, N as Po } from "./trigger-8fpI9g9S.js";
15
+ import { d as er, S as Xe } from "./segmentation-BWHRt2hE.js";
16
+ import { a as Go } from "./segmentation-BWHRt2hE.js";
17
17
  import * as H from "three";
18
- import { l as tr, B as rr, g as nr } from "./index-B0EYdofX.js";
19
- import { n as Ko, o as Yo } from "./index-B0EYdofX.js";
18
+ import { l as tr, B as rr, g as nr } from "./index-Cw6HeUjE.js";
19
+ import { n as Ko, o as Yo } from "./index-Cw6HeUjE.js";
20
20
  import { H as ct } from "./settings-BJ7FMBsO.js";
21
21
  import { c as Vo, D as zo, G as Xo, a as qo, b as Jo, d as $o, p as Qo, e as Zo, r as ea, t as ta } from "./settings-BJ7FMBsO.js";
22
- import { b as sr, f as Le, g as or } from "./selectors-J06V0eDb.js";
23
- import { b as ar, r as ir, u as cr } from "./useBodies-DOuwRuew.js";
24
- import { a as na } from "./useBodies-DOuwRuew.js";
25
- import { d as ur } from "./drawNormalizedCrop-D606u5-F.js";
26
- import { u as oa } from "./drawNormalizedCrop-D606u5-F.js";
27
- import { B as ia, D as ca, F as ua, H as la, T as da, g as fa } from "./index-CicO_Tnw.js";
22
+ import { b as sr, e as Le, g as or } from "./selectors-kj5g3uv2.js";
23
+ import { b as ar, r as ir, u as cr } from "./useBodies-CH4ZUECn.js";
24
+ import { a as na } from "./useBodies-CH4ZUECn.js";
25
+ import { d as ur } from "./drawNormalizedCrop-8RzfrVNS.js";
26
+ import { u as oa } from "./drawNormalizedCrop-8RzfrVNS.js";
27
+ import { B as ia, D as ca, F as ua, H as la, T as da, g as fa } from "./index-Dmhh2RjM.js";
28
28
  import { r as qe, c as He, s as ut, a as lr, g as dr } from "./detector-K8aej4MB.js";
29
29
  import { D as ma } from "./detector-K8aej4MB.js";
30
- import { d as Je, a as fr, b as hr } from "./getFaceInfo-Mt44zlej.js";
31
- import { D as ga, e as Ta, h as Ea } from "./getFaceInfo-Mt44zlej.js";
30
+ import { d as Je, a as fr, b as hr } from "./getFaceInfo-B1pPvyh9.js";
31
+ import { D as ga, e as Ta, h as Ea } from "./getFaceInfo-B1pPvyh9.js";
32
32
  import { s as mr } from "./useInstructionHold-DOu-RpCM.js";
33
- import { u as pr } from "./useFaceInfo-XUGYTdfN.js";
34
- import { D as Sa, a as Ra } from "./useFaceInfo-XUGYTdfN.js";
35
- import { a as ya, b as Oa, P as Da, S as ba, d as Ia, e as Na, f as va } from "./providers-Bxt_MfPK.js";
33
+ import { u as pr } from "./useFaceInfo-BV77B-r4.js";
34
+ import { D as Sa, a as Ra } from "./useFaceInfo-BV77B-r4.js";
35
+ import { a as ya, b as Oa, P as Da, S as ba, d as Ia, e as Na, f as va } from "./providers-Q4H0Ii-y.js";
36
36
  import { D as Ca, e as Ma, r as Ha } from "./landmarkMask-DHivVjJm.js";
37
37
  const lt = {
38
38
  "hand.wrist": 0,
@@ -2,19 +2,19 @@ var Ls = Object.defineProperty;
2
2
  var Hs = (t, e, n) => e in t ? Ls(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var B = (t, e, n) => Hs(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { useCallback as Kn, useMemo as K, createContext as oe, useRef as st, useEffect as Z, useContext as qt, useState as Vs } from "react";
5
- import { p as Bs, u as Fs } from "./useFaceResultReader-D8wXbF1L.js";
5
+ import { p as Bs, u as Fs } from "./useFaceResultReader-DgOPK1Z6.js";
6
6
  import { jsx as at, jsxs as ie, Fragment as Ws } from "react/jsx-runtime";
7
7
  import { useThree as Ot, useFrame as ye, createPortal as Pe } from "@react-three/fiber";
8
8
  import * as c from "three";
9
- import { e as ut, j as Et, T as $e, B as m, t as Jt, J as re, H as Je, A as Us, k as Ps } from "./index-BDxJWWyy.js";
9
+ import { e as ut, j as Et, T as $e, B as m, t as Jt, J as re, H as Je, A as Us, k as Ps } from "./index-BmeB_V6I.js";
10
10
  import { c as Yn } from "./SkeletonUtils-C2r90MtN.js";
11
- import { b as te, f as $n } from "./selectors-J06V0eDb.js";
12
- import { u as qs } from "./useBodies-DOuwRuew.js";
11
+ import { b as te, e as $n } from "./selectors-kj5g3uv2.js";
12
+ import { u as qs } from "./useBodies-CH4ZUECn.js";
13
13
  import { a as de, s as Xe, L as Cs } from "./useLandmarkPoseFit-Bmb3h6Mw.js";
14
14
  import { R as zs } from "./uv-DJU_XfmN.js";
15
- import { u as ee } from "./landmarks-C3LvDhMt.js";
16
- import { S as be } from "./providers-Bxt_MfPK.js";
17
- import { b as js, y as Gs, z as Qs, H as Ze, v as Ks, x as Ys, o as $s, B as tn, k as Js, a as Xs, e as ft, r as Jn, m as Zs } from "./index-B0EYdofX.js";
15
+ import { u as ee } from "./landmarks-BB8jyfJA.js";
16
+ import { S as be } from "./providers-Q4H0Ii-y.js";
17
+ import { b as js, y as Gs, z as Qs, H as Ze, v as Ks, x as Ys, o as $s, B as tn, k as Js, a as Xs, e as ft, r as Jn, m as Zs } from "./index-Cw6HeUjE.js";
18
18
  import { g as to, r as en, c as eo, s as Xn, a as no } from "./detector-K8aej4MB.js";
19
19
  const _a = ({
20
20
  node: t,
@@ -1,7 +1,7 @@
1
1
  import { useFrame as S } from "@react-three/fiber";
2
2
  import { useState as g, useRef as f, useCallback as M, useId as h, useEffect as j } from "react";
3
- import { f as p, g as C, h as E, X as m, j as I } from "./index-BDxJWWyy.js";
4
- import { u as v } from "./landmarks-C3LvDhMt.js";
3
+ import { f as p, g as C, h as E, X as m, j as I } from "./index-BmeB_V6I.js";
4
+ import { u as v } from "./landmarks-BB8jyfJA.js";
5
5
  const X = (t, o) => {
6
6
  var r;
7
7
  for (let n = 0; n < m.body.max; n += 1)
@@ -0,0 +1,85 @@
1
+ import { useSyncExternalStore as b } from "react";
2
+ let s;
3
+ function P(t) {
4
+ s = t;
5
+ }
6
+ const y = () => () => {
7
+ }, l = () => {
8
+ }, d = () => 0;
9
+ function g(t, o, n) {
10
+ const e = s;
11
+ return b(
12
+ e ? e.subscribe : y,
13
+ e ? () => e.slice(t) : l,
14
+ l
15
+ ), e == null ? void 0 : e.resolve(t, o, n);
16
+ }
17
+ function R(t, o) {
18
+ var e;
19
+ const n = s;
20
+ return b(
21
+ n ? n.subscribe : y,
22
+ n ? () => n.slice(t) : l,
23
+ l
24
+ ), (e = n == null ? void 0 : n.region) == null ? void 0 : e.call(n, t, o);
25
+ }
26
+ function A() {
27
+ const t = s;
28
+ return b(t ? t.subscribe : y, t ? t.version : d, d);
29
+ }
30
+ function D(t, o, n) {
31
+ return s == null ? void 0 : s.resolve(t, o, n);
32
+ }
33
+ const v = "__VCT_EDIT_OVERRIDES__";
34
+ function S() {
35
+ const t = globalThis[v];
36
+ return t && typeof t.subscribe == "function" && typeof t.version == "function" && typeof t.get == "function" ? t : void 0;
37
+ }
38
+ const I = (t) => typeof t == "number" && Number.isFinite(t), L = (t) => typeof t == "string" && /^#[0-9a-fA-F]{6}$/.test(t), _ = () => () => {
39
+ }, E = () => 0, j = (t) => typeof t == "object" && t !== null && !Array.isArray(t) && (Object.getPrototypeOf(t) === Object.prototype || Object.getPrototypeOf(t) === null);
40
+ function V(t, o, n) {
41
+ let e = t;
42
+ for (let r = 0; r < o.length - 1; r += 1) {
43
+ const c = e[o[r]];
44
+ if (!j(c)) return !1;
45
+ const i = { ...c };
46
+ e[o[r]] = i, e = i;
47
+ }
48
+ return e[o[o.length - 1]] = n, !0;
49
+ }
50
+ function T(t, o, n) {
51
+ const e = S();
52
+ b(
53
+ e ? e.subscribe : _,
54
+ e ? e.version : E,
55
+ E
56
+ );
57
+ const r = g(
58
+ t,
59
+ o,
60
+ n
61
+ ), c = e == null ? void 0 : e.get(t);
62
+ if (!r && !c) return t;
63
+ let i = null;
64
+ for (const f of [r, c])
65
+ if (f)
66
+ for (const u of o) {
67
+ if (!Object.prototype.hasOwnProperty.call(f, u)) continue;
68
+ const a = n == null ? void 0 : n[u];
69
+ if (a && !a(f[u])) continue;
70
+ const O = i ?? { ...t };
71
+ V(O, u.split("."), f[u]) && (i = O);
72
+ }
73
+ return i ?? t;
74
+ }
75
+ export {
76
+ P as a,
77
+ A as b,
78
+ I as c,
79
+ R as d,
80
+ S as e,
81
+ L as i,
82
+ D as r,
83
+ V as s,
84
+ T as u
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";const y=require("react");let i;function g(e){i=e}const b=()=>()=>{},f=()=>{},a=()=>0;function _(e,o,n){const t=i;return y.useSyncExternalStore(t?t.subscribe:b,t?()=>t.slice(e):f,f),t==null?void 0:t.resolve(e,o,n)}function R(e,o){var t;const n=i;return y.useSyncExternalStore(n?n.subscribe:b,n?()=>n.slice(e):f,f),(t=n==null?void 0:n.region)==null?void 0:t.call(n,e,o)}function V(){const e=i;return y.useSyncExternalStore(e?e.subscribe:b,e?e.version:a,a)}function j(e,o,n){return i==null?void 0:i.resolve(e,o,n)}const L="__VCT_EDIT_OVERRIDES__";function d(){const e=globalThis[L];return e&&typeof e.subscribe=="function"&&typeof e.version=="function"&&typeof e.get=="function"?e:void 0}const P=e=>typeof e=="number"&&Number.isFinite(e),x=e=>typeof e=="string"&&/^#[0-9a-fA-F]{6}$/.test(e),h=()=>()=>{},v=()=>0,m=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null);function S(e,o,n){let t=e;for(let r=0;r<o.length-1;r+=1){const u=t[o[r]];if(!m(u))return!1;const s={...u};t[o[r]]=s,t=s}return t[o[o.length-1]]=n,!0}function A(e,o,n){const t=d();y.useSyncExternalStore(t?t.subscribe:h,t?t.version:v,v);const r=_(e,o,n),u=t==null?void 0:t.get(e);if(!r&&!u)return e;let s=null;for(const l of[r,u])if(l)for(const c of o){if(!Object.prototype.hasOwnProperty.call(l,c))continue;const O=n==null?void 0:n[c];if(O&&!O(l[c]))continue;const E=s??{...e};S(E,c.split("."),l[c])&&(s=E)}return s??e}exports.editStore=d;exports.isLiveColour=x;exports.isLiveNumber=P;exports.resolveEditOverlay=j;exports.setOverlaySlot=g;exports.setPath=S;exports.useEditOverlayVersion=V;exports.useEditOverrides=A;exports.useEditRegion=R;
@@ -1,9 +1,9 @@
1
1
  import { useMemo as x, useEffect as h, useCallback as p, useRef as R } from "react";
2
- import { X as E, j as C, f as N, g as _ } from "./index-BDxJWWyy.js";
2
+ import { X as E, j as C, f as N, g as _ } from "./index-BmeB_V6I.js";
3
3
  import { useThree as b } from "@react-three/fiber";
4
- import { g as y } from "./getFaceInfo-Mt44zlej.js";
5
- import { u as T } from "./useFaceResultReader-D8wXbF1L.js";
6
- import { u as S } from "./landmarks-C3LvDhMt.js";
4
+ import { g as y } from "./getFaceInfo-B1pPvyh9.js";
5
+ import { u as T } from "./useFaceResultReader-DgOPK1Z6.js";
6
+ import { u as S } from "./landmarks-BB8jyfJA.js";
7
7
  const X = ({
8
8
  active: i = !0,
9
9
  holdMs: l = 250,
@@ -1,5 +1,5 @@
1
1
  import { useState as E, useEffect as N } from "react";
2
- import { c as P } from "./getFaceInfo-Mt44zlej.js";
2
+ import { c as P } from "./getFaceInfo-B1pPvyh9.js";
3
3
  const S = (t, i) => t.map((e) => ({
4
4
  landmarks: e,
5
5
  bounds: P(e)
@@ -2,25 +2,25 @@ var Gt = Object.defineProperty;
2
2
  var Xt = (t, e, s) => e in t ? Gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var m = (t, e, s) => Xt(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import * as o from "three";
5
- import { t as $, k as kt, n as Te, J as ie, j as Tt, u as Kt, I as Yt, i as Qt, C as Ze } from "./index-BDxJWWyy.js";
6
- import { C as _, b as He, c as $t, d as Zt, a as Jt, e as e0, u as t0 } from "./CanonicalHeadFrame-CQe2YX9a.js";
7
- import { b as s0, a as r0, d as n0, e as a0, t as Ee, c as o0, s as Je } from "./index-CicO_Tnw.js";
8
- import { a as i0, g as l0, d as P } from "./getFaceInfo-Mt44zlej.js";
5
+ import { t as $, k as kt, n as Te, J as ie, j as Tt, u as Kt, I as Yt, i as Qt, C as Ze } from "./index-BmeB_V6I.js";
6
+ import { C as _, b as He, c as $t, d as Zt, a as Jt, e as e0, u as t0 } from "./CanonicalHeadFrame-ZSfpHH_w.js";
7
+ import { b as s0, a as r0, d as n0, e as a0, t as Ee, c as o0, s as Je } from "./index-Dmhh2RjM.js";
8
+ import { a as i0, g as l0, d as P } from "./getFaceInfo-B1pPvyh9.js";
9
9
  import { s as et, a as c0, L as u0, u as d0 } from "./useLandmarkPoseFit-Bmb3h6Mw.js";
10
10
  import { s as h0 } from "./similarityFit-Bbz-R8AY.js";
11
11
  import { C as z } from "./canonicalFace-BHwyCx1c.js";
12
12
  import { b as he, r as f0, a as p0, M as be } from "./renderState-CJNmj5jz.js";
13
13
  import { jsx as k, jsxs as m0, Fragment as g0 } from "react/jsx-runtime";
14
14
  import { useRef as T, useCallback as Nt, useMemo as oe, useState as Oe, useEffect as q, useContext as S0 } from "react";
15
- import { c as Ke } from "./segmentation-DccvYBBO.js";
15
+ import { c as Ke } from "./segmentation-BWHRt2hE.js";
16
16
  import { useThree as Ce, useFrame as Ut } from "@react-three/fiber";
17
17
  import { c as w0 } from "./SkeletonUtils-C2r90MtN.js";
18
- import { T as A0, u as Dt } from "./index-CbBCl2ZU.js";
18
+ import { T as A0, u as Dt } from "./index-BTVIMj8H.js";
19
19
  import { R as y0 } from "./uv-DJU_XfmN.js";
20
- import { f as v0, b as R0 } from "./selectors-J06V0eDb.js";
21
- import { u as M0 } from "./useBodies-DOuwRuew.js";
22
- import { c as E0, I as b0, u as tt } from "./providers-Bxt_MfPK.js";
23
- import { u as C0 } from "./landmarks-C3LvDhMt.js";
20
+ import { e as v0, b as R0 } from "./selectors-kj5g3uv2.js";
21
+ import { u as M0 } from "./useBodies-CH4ZUECn.js";
22
+ import { c as E0, I as b0, u as tt } from "./providers-Q4H0Ii-y.js";
23
+ import { u as C0 } from "./landmarks-BB8jyfJA.js";
24
24
  const x0 = {
25
25
  "body.head": 0,
26
26
  "body.leftShoulder": 11,
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./live.generated-n5ZV_2Gt.cjs"),v=require("./useEditOverrides-DMAMGzlF.cjs"),p=new Map;function d(e,s){const c=p.get(e);if(c&&s.length===0)return c;const i=u.LIVE_TABLE[e]??{},t={};for(const[f,r]of Object.entries(i)){const o=l=>u.liveAccepts(r,l);r.c==="file"&&(o.fileRef=!0),t[f]=o}const n={keys:[...Object.keys(i),...s],accept:t};return s.length===0&&p.set(e,n),n}function h(e,s,c=[],i={}){const t=d(e,c);return v.useEditOverrides(s,t.keys,{...t.accept,...i})}exports.useLiveProps=h;
@@ -0,0 +1,28 @@
1
+ import { L as l, l as h } from "./live.generated-Do4jgrUN.js";
2
+ import { u as k } from "./useEditOverrides-BmvpLYPU.js";
3
+ const p = /* @__PURE__ */ new Map();
4
+ function a(e, t) {
5
+ const s = p.get(e);
6
+ if (s && t.length === 0) return s;
7
+ const o = l[e] ?? {}, c = {};
8
+ for (const [f, r] of Object.entries(o)) {
9
+ const i = (u) => h(r, u);
10
+ r.c === "file" && (i.fileRef = !0), c[f] = i;
11
+ }
12
+ const n = { keys: [...Object.keys(o), ...t], accept: c };
13
+ return t.length === 0 && p.set(e, n), n;
14
+ }
15
+ function O(e, t, s = [], o = {}) {
16
+ const c = a(e, s);
17
+ return k(
18
+ t,
19
+ c.keys,
20
+ {
21
+ ...c.accept,
22
+ ...o
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ O as u
28
+ };
@@ -1,5 +1,5 @@
1
1
  import { useRef as m, useState as u, useCallback as E, useEffect as R } from "react";
2
- import { d as g } from "./index-BDxJWWyy.js";
2
+ import { d as g } from "./index-BmeB_V6I.js";
3
3
  const k = (t = {}) => {
4
4
  const { enabled: c = !0, timeoutMs: o, queryPermission: l } = t, f = (t.models ?? []).join("|"), i = m(t.models);
5
5
  i.current = t.models;
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * The seam between the core components and the editor's overlay consumer. Everything that decides
4
+ * what an overlay entry means (grammar, caps, reports to the bridge) lives in `lib/overlay/`, which
5
+ * only the edit entry imports. Core carries this slot, empty unless that entry registered into it,
6
+ * so a published or preview build has nothing to apply and `useEditOverlay` returns `undefined`.
7
+ */
8
+ export interface OverlaySlot {
9
+ subscribe(listener: () => void): () => void;
10
+ /** Stable per element until the entries for its stamp change; the render trigger. */
11
+ slice(props: object): unknown;
12
+ /** Changes whenever any element's entries change. */
13
+ version(): number;
14
+ /** The values the entries give this element, already checked against its own keys. */
15
+ resolve(props: object, keys: readonly string[], accept?: Partial<Record<string, (value: unknown) => boolean>>): Readonly<Record<string, unknown>> | undefined;
16
+ /** What an HTML region renders in place of its children, or `undefined` for its own children. */
17
+ region?(props: object, children: ReactNode): ReactNode | undefined;
18
+ }
19
+ /** Called once by the edit entry's consumer. */
20
+ export declare function setOverlaySlot(next: OverlaySlot): void;
21
+ /**
22
+ * Overlay values for the element whose props object this is, or `undefined` for none (always,
23
+ * outside an edit build). Call it with the component's own props object, before destructuring.
24
+ */
25
+ export declare function useEditOverlay(props: object, keys: readonly string[], accept?: Partial<Record<string, (value: unknown) => boolean>>): Readonly<Record<string, unknown>> | undefined;
26
+ /**
27
+ * The node an HTML region shows in place of its children while the overlay holds a plan for it,
28
+ * or `undefined` (always, outside an edit build, and whenever the plan is taken out).
29
+ */
30
+ export declare function useEditRegion(props: object, children: ReactNode): ReactNode | undefined;
31
+ /** For a parent that reads the overlay for several children at once (the edit `Scenes`). */
32
+ export declare function useEditOverlayVersion(): number;
33
+ export declare function resolveEditOverlay(props: object, keys: readonly string[], accept?: Partial<Record<string, (value: unknown) => boolean>>): Readonly<Record<string, unknown>> | undefined;