@vincentt-xr/sdk 2.0.0-alpha.17 → 2.0.0-alpha.19
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 +225 -0
- package/components.json +221 -0
- package/dist/{CanonicalHeadFrame-vn-jM9fG.js → CanonicalHeadFrame-CQe2YX9a.js} +3 -3
- package/dist/{DebuggerUI-DDpU-nBF.js → DebuggerUI-CKYrYmod.js} +1 -1
- package/dist/{FaceRetouch-D2xH5OpW.js → FaceRetouch-l7y4oZBu.js} +4 -4
- package/dist/Scenes-BX0bR1j4.js +44 -0
- package/dist/Scenes-Dtt8UGE8.cjs +1 -0
- package/dist/audio/AudioPlayer.d.ts +2 -1
- package/dist/{bodyMaskMaterial-C3aXItLo.js → bodyMaskMaterial-BOdSJUEM.js} +1 -1
- package/dist/{cache-C85JjyZA.js → cache-Mu-VO_6E.js} +2 -2
- package/dist/components/Button/index.d.ts +23 -0
- package/dist/components/Button/safeLink.d.ts +6 -0
- package/dist/components/HtmlRegion/index.d.ts +8 -0
- package/dist/components/Light/index.d.ts +26 -0
- package/dist/components/Model/index.d.ts +16 -0
- package/dist/components/Object3D/index.d.ts +13 -0
- package/dist/components/PaintedFace/index.d.ts +24 -0
- package/dist/components/ScreenImage/types.d.ts +2 -2
- package/dist/components/ScreenText/types.d.ts +2 -1
- package/dist/components/ThemeProvider/index.d.ts +24 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/{contexts-B5GODwuV.js → contexts-Cl-4dUOI.js} +2 -2
- package/dist/debug-ui/media-source.js +1 -1
- package/dist/debug-ui.cjs +1 -1
- package/dist/debug-ui.js +11 -11
- package/dist/{drawNormalizedCrop-BLfB484W.js → drawNormalizedCrop-D606u5-F.js} +5 -5
- package/dist/editor-defs/definitions.d.ts +2 -0
- package/dist/editor-defs/index.d.ts +3 -0
- package/dist/editor-defs/types.d.ts +54 -0
- package/dist/editor-sample/sample.d.ts +15 -0
- package/dist/editor-scenes.cjs +1 -1
- package/dist/editor-scenes.js +39 -25
- package/dist/entries/core.d.ts +13 -1
- package/dist/entries/face-effects.d.ts +2 -0
- package/dist/face-effects.cjs +68 -68
- package/dist/face-effects.js +1353 -1333
- package/dist/{getFaceInfo-D_tCSQC7.js → getFaceInfo-Mt44zlej.js} +1 -1
- package/dist/{index-B9DdHE4u.js → index-B0EYdofX.js} +1 -1
- package/dist/{index-CTqQJj5p.js → index-BDxJWWyy.js} +85 -85
- package/dist/{index-DlP4xxaT.js → index-Bn72laBn.js} +4 -4
- package/dist/{index-Otoo-rph.js → index-CM3jkleV.js} +240 -223
- package/dist/{index-D10O6vqR.js → index-CbBCl2ZU.js} +2 -2
- package/dist/{index-CNt8esFO.js → index-CicO_Tnw.js} +1 -1
- package/dist/{index-Z5eKEUdE.js → index-D5NbXaCn.js} +4 -4
- package/dist/{index-D_pgrgJg.cjs → index-fDwL47CM.cjs} +3 -3
- package/dist/instructions.js +7 -7
- package/dist/{internal-TD4QhIry.js → internal-BoFDq5hC.js} +3 -3
- package/dist/internal.js +2 -2
- package/dist/{landmarks-vLy5QKt6.js → landmarks-C3LvDhMt.js} +1 -1
- package/dist/low-level.js +17 -17
- package/dist/main.cjs +1 -1
- package/dist/main.js +1046 -814
- package/dist/particles.js +5 -5
- package/dist/product.js +2 -2
- package/dist/{providers-DmJlgrDD.js → providers-Bxt_MfPK.js} +3 -3
- package/dist/{renderGroups-BcQYy_J2.js → renderGroups-uYPzUa66.js} +1 -1
- package/dist/{renderPasses-DIPTIU_x.js → renderPasses-C0wu5Cwg.js} +4 -4
- package/dist/scene-object.js +2 -2
- package/dist/scenes/Scenes.d.ts +17 -0
- package/dist/scenes/edit.d.ts +9 -1
- package/dist/{segmentation-CZs5aVvY.js → segmentation-DccvYBBO.js} +9 -9
- package/dist/{selectors-K5JKCWxw.js → selectors-J06V0eDb.js} +1 -1
- package/dist/{session-DHBNTyJJ.js → session-CYiWfcvz.js} +1 -1
- package/dist/tracking.js +25 -25
- package/dist/{trigger-BwZ81ENx.js → trigger-CQviD4xp.js} +155 -155
- package/dist/{useBodies-BMKHXAOL.js → useBodies-DOuwRuew.js} +2 -2
- package/dist/{useFaceInfo-BNVdnprN.js → useFaceInfo-XUGYTdfN.js} +4 -4
- package/dist/{useFaceResultReader-B15wn6RB.js → useFaceResultReader-D8wXbF1L.js} +1 -1
- package/dist/{useIrisTracking-CYm-KDIZ.js → useIrisTracking-B0uLWgNE.js} +10 -10
- package/dist/{useXRCapabilities-ClWlG5_Y.js → useXRCapabilities-DPUOvpdf.js} +1 -1
- package/package.json +6 -2
- package/settings.json +1 -1
- package/dist/Scenes-B30XZfTq.js +0 -29
- package/dist/Scenes-BLL7YvLw.cjs +0 -1
|
@@ -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-
|
|
4
|
-
import { u as v } from "./landmarks-
|
|
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";
|
|
5
5
|
const X = (t, o) => {
|
|
6
6
|
var r;
|
|
7
7
|
for (let n = 0; n < m.body.max; n += 1)
|
|
@@ -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-
|
|
2
|
+
import { X as E, j as C, f as N, g as _ } from "./index-BDxJWWyy.js";
|
|
3
3
|
import { useThree as b } from "@react-three/fiber";
|
|
4
|
-
import { g as y } from "./getFaceInfo-
|
|
5
|
-
import { u as T } from "./useFaceResultReader-
|
|
6
|
-
import { u as S } from "./landmarks-
|
|
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";
|
|
7
7
|
const X = ({
|
|
8
8
|
active: i = !0,
|
|
9
9
|
holdMs: l = 250,
|
|
@@ -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-
|
|
6
|
-
import { C as _, b as He, c as $t, d as Zt, a as Jt, e as e0, u as t0 } from "./CanonicalHeadFrame-
|
|
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-
|
|
8
|
-
import { a as i0, g as l0, d as P } from "./getFaceInfo-
|
|
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";
|
|
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-
|
|
15
|
+
import { c as Ke } from "./segmentation-DccvYBBO.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-
|
|
18
|
+
import { T as A0, u as Dt } from "./index-CbBCl2ZU.js";
|
|
19
19
|
import { R as y0 } from "./uv-DJU_XfmN.js";
|
|
20
|
-
import { f as v0, b as R0 } from "./selectors-
|
|
21
|
-
import { u as M0 } from "./useBodies-
|
|
22
|
-
import { c as E0, I as b0, u as tt } from "./providers-
|
|
23
|
-
import { u as C0 } from "./landmarks-
|
|
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";
|
|
24
24
|
const x0 = {
|
|
25
25
|
"body.head": 0,
|
|
26
26
|
"body.leftShoulder": 11,
|
|
@@ -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-
|
|
2
|
+
import { d as g } from "./index-BDxJWWyy.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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentt-xr/sdk",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.19",
|
|
4
4
|
"description": "XR SDK by Vincentt",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"/dist",
|
|
20
20
|
"GROUNDING.md",
|
|
21
21
|
"settings.json",
|
|
22
|
+
"components.json",
|
|
22
23
|
"docs/api",
|
|
23
24
|
"docs/examples",
|
|
24
25
|
"docs/guides",
|
|
@@ -99,7 +100,8 @@
|
|
|
99
100
|
"import": "./dist/debug-ui/default-setting.js",
|
|
100
101
|
"require": "./dist/debug-ui/default-setting.cjs"
|
|
101
102
|
},
|
|
102
|
-
"./settings.json": "./settings.json"
|
|
103
|
+
"./settings.json": "./settings.json",
|
|
104
|
+
"./components.json": "./components.json"
|
|
103
105
|
},
|
|
104
106
|
"peerDependencies": {
|
|
105
107
|
"@google/model-viewer": "^4.0.0",
|
|
@@ -189,6 +191,8 @@
|
|
|
189
191
|
"lint:check": "eslint lib --max-warnings 0",
|
|
190
192
|
"settings:generate": "node scripts/settings-decl.mjs",
|
|
191
193
|
"settings:check": "node scripts/settings-decl.mjs --check",
|
|
194
|
+
"components:generate": "node scripts/gen-components.mjs",
|
|
195
|
+
"components:check": "node scripts/gen-components.mjs --check",
|
|
192
196
|
"example:build": "vite build --config example/vite.config.ts",
|
|
193
197
|
"example:preview": "vite preview --config example/vite.config.ts --outDir dist-example",
|
|
194
198
|
"release": "commit-and-tag-version"
|
package/settings.json
CHANGED
package/dist/Scenes-B30XZfTq.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as s, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { Children as p, isValidElement as u, Fragment as f } from "react";
|
|
3
|
-
const r = "vctScene";
|
|
4
|
-
function a({ children: t }) {
|
|
5
|
-
return /* @__PURE__ */ s(c, { children: t });
|
|
6
|
-
}
|
|
7
|
-
a[r] = !0;
|
|
8
|
-
function o(t) {
|
|
9
|
-
const e = [];
|
|
10
|
-
for (const n of p.toArray(t)) {
|
|
11
|
-
if (!u(n)) continue;
|
|
12
|
-
if (n.type === f) {
|
|
13
|
-
e.push(...o(n.props.children));
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
const i = n.type;
|
|
17
|
-
typeof i == "string" || i[r] !== !0 || typeof n.props.id == "string" && e.push({ id: n.props.id, element: n });
|
|
18
|
-
}
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
function l({ current: t, children: e }) {
|
|
22
|
-
const n = o(e).find((i) => i.id === t);
|
|
23
|
-
return n ? n.element : null;
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
a as S,
|
|
27
|
-
l as a,
|
|
28
|
-
o as s
|
|
29
|
-
};
|
package/dist/Scenes-BLL7YvLw.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),r=require("react"),o="vctScene";function u({children:n}){return s.jsx(s.Fragment,{children:n})}u[o]=!0;function c(n){const t=[];for(const e of r.Children.toArray(n)){if(!r.isValidElement(e))continue;if(e.type===r.Fragment){t.push(...c(e.props.children));continue}const i=e.type;typeof i=="string"||i[o]!==!0||typeof e.props.id=="string"&&t.push({id:e.props.id,element:e})}return t}function p({current:n,children:t}){const e=c(t).find(i=>i.id===n);return e?e.element:null}exports.Scene=u;exports.Scenes=p;exports.sceneEntries=c;
|