@regulaforensics/vp-frontend-face-components 8.4.2340-rc → 8.4.2341-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/dist/main.iife.js +7 -7
- package/dist/main.js +11 -20
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -5445,16 +5445,7 @@ function io() {
|
|
|
5445
5445
|
let s = yield navigator.mediaDevices.getUserMedia({
|
|
5446
5446
|
video: o,
|
|
5447
5447
|
audio: !1
|
|
5448
|
-
}), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode
|
|
5449
|
-
if (!f && t.facing) {
|
|
5450
|
-
let e = t.facing === nr.environment ? nr.user : nr.environment;
|
|
5451
|
-
try {
|
|
5452
|
-
(yield navigator.mediaDevices.getUserMedia({ video: { facingMode: { exact: t.facing } } })).getTracks().forEach((e) => e.stop()), f = t.facing;
|
|
5453
|
-
} catch (t) {
|
|
5454
|
-
f = e;
|
|
5455
|
-
}
|
|
5456
|
-
}
|
|
5457
|
-
let p = {
|
|
5448
|
+
}), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode, p = {
|
|
5458
5449
|
deviceId: u || t.deviceId,
|
|
5459
5450
|
label: c.label || t.label,
|
|
5460
5451
|
groupId: d || t.groupId,
|
|
@@ -5536,7 +5527,7 @@ var lo = (e) => {
|
|
|
5536
5527
|
cameraID: e.deviceId,
|
|
5537
5528
|
label: e.label,
|
|
5538
5529
|
groupId: e.groupId,
|
|
5539
|
-
facing: e.facing === nr.user ? "front" : "back"
|
|
5530
|
+
facing: e.facing === nr.user || e.facing === void 0 ? "front" : "back"
|
|
5540
5531
|
}))), a && (p.serviceUrl = a), r && (p.currentCameraInfo = { cameraID: r }), s) {
|
|
5541
5532
|
p.rawUA = s.userAgent;
|
|
5542
5533
|
let e = s.deviceMemory;
|
|
@@ -6393,7 +6384,7 @@ var tc = Ys.create("main"), nc = {
|
|
|
6393
6384
|
livenessType: Fo.ACTIVE,
|
|
6394
6385
|
holdStillDuration: void 0,
|
|
6395
6386
|
timeoutInterval: void 0,
|
|
6396
|
-
workerPath: "https://wasm-development.regulaforensics.com/face/
|
|
6387
|
+
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87",
|
|
6397
6388
|
detectOcclusion: !0,
|
|
6398
6389
|
captureButton: !1
|
|
6399
6390
|
}, rc = (e) => Zs(Zs({}, nc), {}, {
|
|
@@ -7619,7 +7610,7 @@ function Tl(e) {
|
|
|
7619
7610
|
var El = Li(function(e, t) {
|
|
7620
7611
|
let n = e.onVideoStatusChange, r = e.onVideoSizeChange, i = e.mode, a = e.resolution, o = e.onFailStatus, s = e.cameraId, c = e.onRecordService, l = e.videoRecord, u = e.onVideoStarted, d = e.onVideoStopped, f = e.onMirroringChange, p = e.mirrorType, m = p === void 0 ? or.mirror : p, h = pl(i, a, s), g = h.status, _ = h.stream, v = h.camera, y = h.sortedDevices, b = h.onPlay, x = bl(Yr(!1), 2), S = x[0], C = x[1], w = Qr(null), T = Qr(null), E = Qr(null);
|
|
7621
7612
|
return X(() => {
|
|
7622
|
-
C(v.facing === nr.user && m === or.mirror);
|
|
7613
|
+
C((v.facing === nr.user || v.facing === void 0) && m === or.mirror);
|
|
7623
7614
|
}, [v.facing, m]), X(() => {
|
|
7624
7615
|
f == null || f(S);
|
|
7625
7616
|
}, [S]), $r(t, () => ({ changeMirror: () => {
|
|
@@ -9509,7 +9500,7 @@ var Gd = Ys.create("wasm"), Kd = class {
|
|
|
9509
9500
|
});
|
|
9510
9501
|
return;
|
|
9511
9502
|
}
|
|
9512
|
-
let r = Vd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/
|
|
9503
|
+
let r = Vd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87";
|
|
9513
9504
|
try {
|
|
9514
9505
|
let e = yield (yield fetch(r + "/Liveness.worker.js")).text();
|
|
9515
9506
|
i || (e = Zo(e, r));
|
|
@@ -9530,7 +9521,7 @@ var Gd = Ys.create("wasm"), Kd = class {
|
|
|
9530
9521
|
}), t.worker.postMessage({
|
|
9531
9522
|
target: "worker-init",
|
|
9532
9523
|
URL: document.URL,
|
|
9533
|
-
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/
|
|
9524
|
+
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87",
|
|
9534
9525
|
preMain: !0
|
|
9535
9526
|
}));
|
|
9536
9527
|
})();
|
|
@@ -9893,7 +9884,7 @@ var gf = 1500, _f = (e) => e * 1e3, vf = Ys.create("main"), yf = (e) => e === Fo
|
|
|
9893
9884
|
metadata: {
|
|
9894
9885
|
serviceUrl: l || "https://faceapi.regulaforensics.com",
|
|
9895
9886
|
hostAppId: po(),
|
|
9896
|
-
sdkVersion: Yo("8.4.
|
|
9887
|
+
sdkVersion: Yo("8.4.2341-nightly"),
|
|
9897
9888
|
deviceModel: `${La.osName}/${La.osVersion} ${La.browserName}/${La.fullBrowserVersion}`,
|
|
9898
9889
|
camera: h.camera
|
|
9899
9890
|
}
|
|
@@ -9906,7 +9897,7 @@ var gf = 1500, _f = (e) => e * 1e3, vf = Ys.create("main"), yf = (e) => e === Fo
|
|
|
9906
9897
|
let n = yield mo({
|
|
9907
9898
|
cameras: [...h.sortedDevices.frontCameras, ...h.sortedDevices.backCameras],
|
|
9908
9899
|
cameraID: h.camera.deviceId,
|
|
9909
|
-
sdkVersion: Yo("8.4.
|
|
9900
|
+
sdkVersion: Yo("8.4.2341-nightly"),
|
|
9910
9901
|
serviceUrl: l || "https://faceapi.regulaforensics.com",
|
|
9911
9902
|
customMetadata: x
|
|
9912
9903
|
});
|
|
@@ -10452,7 +10443,7 @@ function pp() {
|
|
|
10452
10443
|
videoElementParams: A,
|
|
10453
10444
|
recordService: w,
|
|
10454
10445
|
initialBrowserVideoResolution: sp
|
|
10455
|
-
}), V = B.message, H = B.status, U = B.processingStage, W = B.request, te = B.debugOutput, ne = B.prepared, re = B.initialized, ie = B.images, ae = B.error, oe = B.ovals, G = B.step, se = B.currSector, ce = B.targetSector, le = B.numSectors, ue = B.readiness, de = B.publicKey, K = B.facePosition, fe = B.sha256, pe = B.targetExposure, me = F.camera.facing === nr.user ? pu["mirror-x"] : "", q = $f(Yr(null), 2), he = q[0], ge = q[1], _e = ei(() => p || !x ? !1 : { debug: n == null ? void 0 : n.videoRecordingSaveVideo }, [
|
|
10446
|
+
}), V = B.message, H = B.status, U = B.processingStage, W = B.request, te = B.debugOutput, ne = B.prepared, re = B.initialized, ie = B.images, ae = B.error, oe = B.ovals, G = B.step, se = B.currSector, ce = B.targetSector, le = B.numSectors, ue = B.readiness, de = B.publicKey, K = B.facePosition, fe = B.sha256, pe = B.targetExposure, me = F.camera.facing === nr.user || F.camera.facing === void 0 ? pu["mirror-x"] : "", q = $f(Yr(null), 2), he = q[0], ge = q[1], _e = ei(() => p || !x ? !1 : { debug: n == null ? void 0 : n.videoRecordingSaveVideo }, [
|
|
10456
10447
|
n == null ? void 0 : n.videoRecordingSaveVideo,
|
|
10457
10448
|
p,
|
|
10458
10449
|
x
|
|
@@ -13249,7 +13240,7 @@ var Wp = Ys.create("main"), Gp = [
|
|
|
13249
13240
|
this.dispatchEvent(t), Wp(`Component event: ${JSON.stringify(t.detail)}`);
|
|
13250
13241
|
}
|
|
13251
13242
|
get version() {
|
|
13252
|
-
return "8.4.
|
|
13243
|
+
return "8.4.2341-nightly";
|
|
13253
13244
|
}
|
|
13254
13245
|
set translations(e) {
|
|
13255
13246
|
this._translations = e, this._mounted && this.render();
|
|
@@ -13688,7 +13679,7 @@ var gm = Ys.create("main"), _m = [
|
|
|
13688
13679
|
});
|
|
13689
13680
|
}
|
|
13690
13681
|
get version() {
|
|
13691
|
-
return "8.4.
|
|
13682
|
+
return "8.4.2341-nightly";
|
|
13692
13683
|
}
|
|
13693
13684
|
set translations(e) {
|
|
13694
13685
|
this._translations = e, this._mounted && this.render();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2341-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",
|