@regulaforensics/vp-frontend-face-components 6.5.1629-nightly → 6.5.1631-nightly
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 +103 -0
- package/dist/main.iife.js +3 -3
- package/dist/main.js +34 -33
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -9232,7 +9232,7 @@ function K5() {
|
|
9232
9232
|
var Zi = K5();
|
9233
9233
|
const ex = "_button_eou6w_1", tx = {
|
9234
9234
|
button: ex
|
9235
|
-
}, rx = ["children", "onClick"];
|
9235
|
+
}, rx = ["part", "children", "onClick"];
|
9236
9236
|
function nx(r, n) {
|
9237
9237
|
if (r == null) return {};
|
9238
9238
|
var i, M, c = ix(r, n);
|
@@ -9253,10 +9253,11 @@ function ix(r, n) {
|
|
9253
9253
|
}
|
9254
9254
|
function Jg(r) {
|
9255
9255
|
let {
|
9256
|
-
|
9257
|
-
|
9258
|
-
|
9259
|
-
|
9256
|
+
part: n = "button",
|
9257
|
+
children: i,
|
9258
|
+
onClick: M
|
9259
|
+
} = r, c = nx(r, rx);
|
9260
|
+
return /* @__PURE__ */ u.jsx("button", EN(bM({ part: n, className: tx.button, onClick: M }, c), { children: i }));
|
9260
9261
|
}
|
9261
9262
|
var je = Pi();
|
9262
9263
|
const ax = /* @__PURE__ */ S2(je), ox = {}, I1 = (r) => {
|
@@ -10786,7 +10787,7 @@ const Fx = Mn.create("main"), J1 = {
|
|
10786
10787
|
livenessType: fo.ACTIVE,
|
10787
10788
|
holdStillDuration: void 0,
|
10788
10789
|
timeoutInterval: void 0,
|
10789
|
-
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/6.5/
|
10790
|
+
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/6.5/40d37fe3-9701d74ac",
|
10790
10791
|
detectOcclusion: !0
|
10791
10792
|
}, Wx = (r) => yI(yI({}, J1), {}, {
|
10792
10793
|
onEvent: () => Fx('Function "onEvent" not defined.'),
|
@@ -11053,7 +11054,7 @@ function Kr(r) {
|
|
11053
11054
|
}, []), /* @__PURE__ */ u.jsx("div", { className: Bn["info-message"], children: /* @__PURE__ */ u.jsxs("div", { className: Bn["text-container"], children: [
|
11054
11055
|
i === "verified" ? (
|
11055
11056
|
// customized from css
|
11056
|
-
/* @__PURE__ */ u.jsx("div", { className: Bn.done })
|
11057
|
+
/* @__PURE__ */ u.jsx("div", { part: "success-screen-image", className: Bn.done })
|
11057
11058
|
) : /* @__PURE__ */ u.jsx(WM, { type: i, size: I, color: g }),
|
11058
11059
|
/* @__PURE__ */ u.jsx("p", { "data-e2e": "info-msg-title", className: Bn.title, children: n }),
|
11059
11060
|
/* @__PURE__ */ u.jsx("p", { className: Bn.subtitle, children: M }),
|
@@ -11062,7 +11063,7 @@ function Kr(r) {
|
|
11062
11063
|
" ",
|
11063
11064
|
j
|
11064
11065
|
] }),
|
11065
|
-
c && /* @__PURE__ */ u.jsx("div", { className: Bn.button, children: /* @__PURE__ */ u.jsx(Jg, { onClick: c, children: y("tryAgain") }) })
|
11066
|
+
c && /* @__PURE__ */ u.jsx("div", { className: Bn.button, children: /* @__PURE__ */ u.jsx(Jg, { part: "info-screen-button", onClick: c, children: y("tryAgain") }) })
|
11066
11067
|
] }) });
|
11067
11068
|
}
|
11068
11069
|
function t4() {
|
@@ -11112,7 +11113,7 @@ function K2(r) {
|
|
11112
11113
|
};
|
11113
11114
|
});
|
11114
11115
|
const A = je.useMemo(() => Mt.isDesktop && y && y !== 0 && y !== 180, [y]);
|
11115
|
-
return /* @__PURE__ */ u.jsxs("div", { className: "".concat(go.window, " ").concat(A ? go.windowRotate : ""), "data-device": Mt.isMobile && c || A ? "mobile" : "desktop", "data-direction": M, "data-locale": j, children: [
|
11116
|
+
return /* @__PURE__ */ u.jsxs("div", { className: "".concat(go.window, " ").concat(A ? go.windowRotate : ""), "data-device": Mt.isMobile && c || A ? "mobile" : "desktop", "data-direction": M, "data-locale": j, part: "wc-container", children: [
|
11116
11117
|
Mt.isMobileOnly && I && /* @__PURE__ */ u.jsx(Kr, { type: "portrait-orientation-only", title: g("onlyPortraitOrientation"), subtitle: g("turnDeviceIntoPortrait"), iconColor: "#DC4343" }),
|
11117
11118
|
i,
|
11118
11119
|
/* @__PURE__ */ u.jsx("header", { className: go.header, children: !D && /* @__PURE__ */ u.jsx("button", { "data-e2e": "cross", onClick: n, children: /* @__PURE__ */ u.jsx(WM, { type: "cross", color: "rgba(0, 0, 0, 0.6)" }) }) }),
|
@@ -13063,24 +13064,24 @@ function qE(r) {
|
|
13063
13064
|
} = Zi.useLocalize();
|
13064
13065
|
return /* @__PURE__ */ u.jsx("div", { className: Lr["instruction-window"], children: /* @__PURE__ */ u.jsxs("div", { className: Lr.container, children: [
|
13065
13066
|
/* @__PURE__ */ u.jsxs("div", { className: Lr.text, children: [
|
13066
|
-
/* @__PURE__ */ u.jsx("div", { className: Lr.title, children: n }),
|
13067
|
-
/* @__PURE__ */ u.jsx("div", { className: Lr.subtitle, children: i })
|
13067
|
+
/* @__PURE__ */ u.jsx("div", { part: "onboarding-screen-title", className: Lr.title, children: n }),
|
13068
|
+
/* @__PURE__ */ u.jsx("div", { part: "onboarding-screen-subtitle", className: Lr.subtitle, children: i })
|
13068
13069
|
] }),
|
13069
13070
|
/* @__PURE__ */ u.jsxs("div", { className: Lr["icon-container"], children: [
|
13070
13071
|
/* @__PURE__ */ u.jsxs("div", { className: Lr["icon-block"], children: [
|
13071
|
-
/* @__PURE__ */ u.jsx("div", { className: "".concat(Lr.icon, " ").concat(Lr.illumination) }),
|
13072
|
+
/* @__PURE__ */ u.jsx("div", { part: "onboarding-screen-illumination", className: "".concat(Lr.icon, " ").concat(Lr.illumination) }),
|
13072
13073
|
I("illumination")
|
13073
13074
|
] }),
|
13074
13075
|
/* @__PURE__ */ u.jsxs("div", { className: Lr["icon-block"], children: [
|
13075
|
-
/* @__PURE__ */ u.jsx("div", { className: "".concat(Lr.icon, " ").concat(Lr["no-accessories"]) }),
|
13076
|
+
/* @__PURE__ */ u.jsx("div", { part: "onboarding-screen-accessories", className: "".concat(Lr.icon, " ").concat(Lr["no-accessories"]) }),
|
13076
13077
|
I("noAccessories")
|
13077
13078
|
] }),
|
13078
13079
|
/* @__PURE__ */ u.jsxs("div", { className: Lr["icon-block"], children: [
|
13079
|
-
/* @__PURE__ */ u.jsx("div", { className: "".concat(Lr.icon, " ").concat(Lr["camera-on-eye"]) }),
|
13080
|
+
/* @__PURE__ */ u.jsx("div", { part: "onboarding-screen-camera-level", className: "".concat(Lr.icon, " ").concat(Lr["camera-on-eye"]) }),
|
13080
13081
|
I("cameraLevel")
|
13081
13082
|
] })
|
13082
13083
|
] }),
|
13083
|
-
/* @__PURE__ */ u.jsx(Jg, { "data-e2e": "get-ready", onClick: c, children: M })
|
13084
|
+
/* @__PURE__ */ u.jsx(Jg, { part: "onboarding-screen-start-button", "data-e2e": "get-ready", onClick: c, children: M })
|
13084
13085
|
] }) });
|
13085
13086
|
}
|
13086
13087
|
function i2(r, n) {
|
@@ -13461,7 +13462,7 @@ const uz = je.forwardRef(function(n, i) {
|
|
13461
13462
|
}, [g]);
|
13462
13463
|
const f = je.useMemo(() => {
|
13463
13464
|
if (M === i)
|
13464
|
-
return /* @__PURE__ */ u.jsx("circle", { className: _t.currentSector, strokeWidth: y.sectorRadius / 3, transform: "rotate(".concat(-i * j - Px, " ").concat(c, " ").concat(I, ")"), strokeDasharray: y.strokeDashArrayFill, strokeDashoffset: y.strokeOffset, fill: "none", stroke: "var(--camera-screen-sector-active)", r: y.sectorRadius, cx: c, cy: I, mask: "url(#readinessMask)" });
|
13465
|
+
return /* @__PURE__ */ u.jsx("circle", { part: "camera-screen-sector-active", className: _t.currentSector, strokeWidth: y.sectorRadius / 3, transform: "rotate(".concat(-i * j - Px, " ").concat(c, " ").concat(I, ")"), strokeDasharray: y.strokeDashArrayFill, strokeDashoffset: y.strokeOffset, fill: "none", stroke: "var(--camera-screen-sector-active)", r: y.sectorRadius, cx: c, cy: I, mask: "url(#readinessMask)" });
|
13465
13466
|
}, [i, M]);
|
13466
13467
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
13467
13468
|
/* @__PURE__ */ u.jsx("defs", { children: /* @__PURE__ */ u.jsxs("mask", { id: "targetSectorMask", x: "0", y: "0", children: [
|
@@ -13561,7 +13562,7 @@ const Hz = (r) => {
|
|
13561
13562
|
opacity: i ? 1 : 0,
|
13562
13563
|
transition: "opacity .3s",
|
13563
13564
|
transitionDelay: ".5s"
|
13564
|
-
}, children: /* @__PURE__ */ u.jsx("div", { style: {
|
13565
|
+
}, children: /* @__PURE__ */ u.jsx("div", { part: "camera-screen-sector-target", style: {
|
13565
13566
|
width: n * 2 + c,
|
13566
13567
|
height: n * 2 + c,
|
13567
13568
|
borderRadius: "".concat(n + c, "px"),
|
@@ -13579,7 +13580,7 @@ function Vz(r) {
|
|
13579
13580
|
let {
|
13580
13581
|
children: n
|
13581
13582
|
} = r;
|
13582
|
-
return /* @__PURE__ */ u.jsx(u.Fragment, { children: n && /* @__PURE__ */ u.jsx("div", { className: _t["message-container"], children: /* @__PURE__ */ u.jsx("span", { "data-e2e": "message-text", children: n }) }) });
|
13583
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: n && /* @__PURE__ */ u.jsx("div", { part: "camera-screen-front-hint-label", className: _t["message-container"], children: /* @__PURE__ */ u.jsx("span", { "data-e2e": "message-text", children: n }) }) });
|
13583
13584
|
}
|
13584
13585
|
const Zz = je.memo(Vz), Gz = {
|
13585
13586
|
[lt.PREPARING]: "preparingCamera",
|
@@ -13729,7 +13730,7 @@ function Wz(r) {
|
|
13729
13730
|
] }),
|
13730
13731
|
/* @__PURE__ */ u.jsx("rect", { mask: H(), x: "0", y: "0", width: J.viewBoxWidth, height: J.viewBoxHeight, fill: "white" }),
|
13731
13732
|
Q && typeof f == "number" && /* @__PURE__ */ u.jsx(pd, { numSectors: y, targetSector: f, currSector: D, centerX: J.viewBoxWidth / 2, centerY: J.viewBoxHeight / 2, sectorRadius: J.frameRX }),
|
13732
|
-
/* @__PURE__ */ u.jsx("ellipse", { mask: X(), className: "".concat(U ? _t.done : "", " ").concat(I ? "" : _t.hide), cx: J.maskCX, cy: J.maskCY, rx: Q ? J.maskRX : J.frameRX, ry: Q ? J.maskRX : J.frameRY, fill: "none", stroke: V ? "var(--camera-screen-stroke-normal)" : "", strokeWidth: S() })
|
13733
|
+
/* @__PURE__ */ u.jsx("ellipse", { part: "camera-screen-stroke-normal", mask: X(), className: "".concat(U ? _t.done : "", " ").concat(I ? "" : _t.hide), cx: J.maskCX, cy: J.maskCY, rx: Q ? J.maskRX : J.frameRX, ry: Q ? J.maskRX : J.frameRY, fill: "none", stroke: V ? "var(--camera-screen-stroke-normal)" : "", strokeWidth: S() })
|
13733
13734
|
] }),
|
13734
13735
|
/* @__PURE__ */ u.jsx(Hz, { maskRY: J.maskRY, rotateDeg: ie, isSectorMode: Q }),
|
13735
13736
|
O && /* @__PURE__ */ u.jsx(Cd, { roundRadiusY: J.maskRY, targetSector: Q ? f : D, setCameraBlur: fe, isSectorMode: Q, message: c, facePosition: x, centerX: J.viewBoxWidth / 2, centerY: J.viewBoxHeight / 2 }),
|
@@ -13873,7 +13874,7 @@ class up {
|
|
13873
13874
|
}
|
13874
13875
|
prepare(n) {
|
13875
13876
|
return ir(this, null, function* () {
|
13876
|
-
const i = "Liveness.worker.js", M = we.getState().workerPath, c = ap(M), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/6.5/
|
13877
|
+
const i = "Liveness.worker.js", M = we.getState().workerPath, c = ap(M), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/6.5/40d37fe3-9701d74ac";
|
13877
13878
|
try {
|
13878
13879
|
let j = yield (yield fetch(c + "/" + i)).text();
|
13879
13880
|
I || (j = GE(j, c));
|
@@ -13891,7 +13892,7 @@ class up {
|
|
13891
13892
|
}), this.worker.postMessage({
|
13892
13893
|
target: "worker-init",
|
13893
13894
|
URL: document.URL,
|
13894
|
-
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/6.5/
|
13895
|
+
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/6.5/40d37fe3-9701d74ac",
|
13895
13896
|
preMain: !0
|
13896
13897
|
}));
|
13897
13898
|
});
|
@@ -14250,7 +14251,7 @@ const Ap = 1500, c2 = (r) => r * 1e3, Tg = Mn.create("main"), xp = (r) => r ===
|
|
14250
14251
|
metadata: {
|
14251
14252
|
serviceUrl: D || xa,
|
14252
14253
|
hostAppId: n2(),
|
14253
|
-
sdkVersion: r2("6.5.
|
14254
|
+
sdkVersion: r2("6.5.1631-nightly"),
|
14254
14255
|
deviceModel: "".concat(Mt.osName, "/").concat(Mt.osVersion, " ").concat(Mt.browserName, "/").concat(Mt.fullBrowserVersion),
|
14255
14256
|
camera: x.camera
|
14256
14257
|
}
|
@@ -14271,7 +14272,7 @@ const Ap = 1500, c2 = (r) => r * 1e3, Tg = Mn.create("main"), xp = (r) => r ===
|
|
14271
14272
|
}), Y = {
|
14272
14273
|
platform: "Web",
|
14273
14274
|
osVersion: "".concat(Mt.osVersion),
|
14274
|
-
sdkVersion: r2("6.5.
|
14275
|
+
sdkVersion: r2("6.5.1631-nightly"),
|
14275
14276
|
hostAppId: n2(),
|
14276
14277
|
serviceUrl: D || xa,
|
14277
14278
|
userID: V,
|
@@ -14802,7 +14803,7 @@ const Hp = "_container_e810x_1", Vp = "_spinner_e810x_15", y2 = {
|
|
14802
14803
|
spinner: Vp
|
14803
14804
|
};
|
14804
14805
|
function Zp() {
|
14805
|
-
return /* @__PURE__ */ u.jsx("div", { className: y2.container, children: /* @__PURE__ */ u.jsx("div", { className: y2.spinner }) });
|
14806
|
+
return /* @__PURE__ */ u.jsx("div", { className: y2.container, children: /* @__PURE__ */ u.jsx("div", { part: "processing-screen-progress", className: y2.spinner }) });
|
14806
14807
|
}
|
14807
14808
|
function D2(r) {
|
14808
14809
|
let {
|
@@ -14838,20 +14839,20 @@ function Wp(r) {
|
|
14838
14839
|
j || g();
|
14839
14840
|
}, []), /* @__PURE__ */ u.jsxs("div", { className: Vr["retry-screen"], children: [
|
14840
14841
|
/* @__PURE__ */ u.jsxs("div", { className: Vr.text, children: [
|
14841
|
-
/* @__PURE__ */ u.jsx("p", { "data-e2e": "retry-msg-title", className: Vr.title, children: I("letsTryAgainTitle") }),
|
14842
|
-
/* @__PURE__ */ u.jsx("p", { className: Vr.subtitle, children: I("followGuidelinesText") })
|
14842
|
+
/* @__PURE__ */ u.jsx("p", { part: "retry-screen-title-text", "data-e2e": "retry-msg-title", className: Vr.title, children: I("letsTryAgainTitle") }),
|
14843
|
+
/* @__PURE__ */ u.jsx("p", { part: "retry-screen-subtitle-text", className: Vr.subtitle, children: I("followGuidelinesText") })
|
14843
14844
|
] }),
|
14844
14845
|
/* @__PURE__ */ u.jsxs("div", { className: Vr.icons, children: [
|
14845
14846
|
((n = B1[M]) === null || n === void 0 ? void 0 : n.type) !== 1 && /* @__PURE__ */ u.jsxs("div", { className: Vr["icon-item"], children: [
|
14846
|
-
/* @__PURE__ */ u.jsx("div", { className: "".concat(Vr["icon-bg"], " ").concat(Vr["no-smile"]) }),
|
14847
|
-
/* @__PURE__ */ u.jsx("p", { className: Vr["icon-subtitle"], children: I("noMaskSunglassesHeaddress") })
|
14847
|
+
/* @__PURE__ */ u.jsx("div", { part: "retry-screen-environment-image", className: "".concat(Vr["icon-bg"], " ").concat(Vr["no-smile"]) }),
|
14848
|
+
/* @__PURE__ */ u.jsx("p", { part: "retry-screen-environment-text", className: Vr["icon-subtitle"], children: I("noMaskSunglassesHeaddress") })
|
14848
14849
|
] }),
|
14849
14850
|
((i = B1[M]) === null || i === void 0 ? void 0 : i.type) !== 2 && /* @__PURE__ */ u.jsxs("div", { className: Vr["icon-item"], children: [
|
14850
|
-
/* @__PURE__ */ u.jsx("div", { className: "".concat(Vr["icon-bg"], " ").concat(Vr["no-glare"]) }),
|
14851
|
-
/* @__PURE__ */ u.jsx("p", { className: Vr["icon-subtitle"], children: I("ambientLighting") })
|
14851
|
+
/* @__PURE__ */ u.jsx("div", { part: "retry-screen-person-image", className: "".concat(Vr["icon-bg"], " ").concat(Vr["no-glare"]) }),
|
14852
|
+
/* @__PURE__ */ u.jsx("p", { part: "retry-screen-person-text", className: Vr["icon-subtitle"], children: I("ambientLighting") })
|
14852
14853
|
] })
|
14853
14854
|
] }),
|
14854
|
-
/* @__PURE__ */ u.jsx(Jg, { onClick: c, children: I("retryButtonText") })
|
14855
|
+
/* @__PURE__ */ u.jsx(Jg, { part: "retry-screen-retry-button", onClick: c, children: I("retryButtonText") })
|
14855
14856
|
] });
|
14856
14857
|
}
|
14857
14858
|
const M4 = je.memo(() => {
|
@@ -16494,7 +16495,7 @@ class NW extends HTMLElement {
|
|
16494
16495
|
this.dispatchEvent(i), jW("Component event: ".concat(JSON.stringify(i.detail)));
|
16495
16496
|
}
|
16496
16497
|
get version() {
|
16497
|
-
return "".concat("6.5.
|
16498
|
+
return "".concat("6.5.1631-nightly".trim());
|
16498
16499
|
}
|
16499
16500
|
set translations(n) {
|
16500
16501
|
this._translations = n, this._mounted && this.render();
|
@@ -16926,7 +16927,7 @@ class hW extends HTMLElement {
|
|
16926
16927
|
});
|
16927
16928
|
}
|
16928
16929
|
get version() {
|
16929
|
-
return "".concat("6.5.
|
16930
|
+
return "".concat("6.5.1631-nightly".trim());
|
16930
16931
|
}
|
16931
16932
|
set translations(n) {
|
16932
16933
|
this._translations = n, this._mounted && this.render();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
3
|
-
"version": "6.5.
|
3
|
+
"version": "6.5.1631-nightly",
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"main": "./dist/main.iife.js",
|