@regulaforensics/vp-frontend-face-components 8.4.2341-nightly → 8.4.2342-rc

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.js CHANGED
@@ -5445,7 +5445,16 @@ 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, p = {
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 = {
5449
5458
  deviceId: u || t.deviceId,
5450
5459
  label: c.label || t.label,
5451
5460
  groupId: d || t.groupId,
@@ -5527,7 +5536,7 @@ var lo = (e) => {
5527
5536
  cameraID: e.deviceId,
5528
5537
  label: e.label,
5529
5538
  groupId: e.groupId,
5530
- facing: e.facing === nr.user || e.facing === void 0 ? "front" : "back"
5539
+ facing: e.facing === nr.user ? "front" : "back"
5531
5540
  }))), a && (p.serviceUrl = a), r && (p.currentCameraInfo = { cameraID: r }), s) {
5532
5541
  p.rawUA = s.userAgent;
5533
5542
  let e = s.deviceMemory;
@@ -6384,7 +6393,7 @@ var tc = Ys.create("main"), nc = {
6384
6393
  livenessType: Fo.ACTIVE,
6385
6394
  holdStillDuration: void 0,
6386
6395
  timeoutInterval: void 0,
6387
- workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87",
6396
+ workerPath: "https://wasm-development.regulaforensics.com/face/rc/8.4/525c71b7-5bf028816",
6388
6397
  detectOcclusion: !0,
6389
6398
  captureButton: !1
6390
6399
  }, rc = (e) => Zs(Zs({}, nc), {}, {
@@ -7610,7 +7619,7 @@ function Tl(e) {
7610
7619
  var El = Li(function(e, t) {
7611
7620
  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);
7612
7621
  return X(() => {
7613
- C((v.facing === nr.user || v.facing === void 0) && m === or.mirror);
7622
+ C(v.facing === nr.user && m === or.mirror);
7614
7623
  }, [v.facing, m]), X(() => {
7615
7624
  f == null || f(S);
7616
7625
  }, [S]), $r(t, () => ({ changeMirror: () => {
@@ -9500,7 +9509,7 @@ var Gd = Ys.create("wasm"), Kd = class {
9500
9509
  });
9501
9510
  return;
9502
9511
  }
9503
- let r = Vd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87";
9512
+ let r = Vd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/rc/8.4/525c71b7-5bf028816";
9504
9513
  try {
9505
9514
  let e = yield (yield fetch(r + "/Liveness.worker.js")).text();
9506
9515
  i || (e = Zo(e, r));
@@ -9521,7 +9530,7 @@ var Gd = Ys.create("wasm"), Kd = class {
9521
9530
  }), t.worker.postMessage({
9522
9531
  target: "worker-init",
9523
9532
  URL: document.URL,
9524
- currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.4/ea4225d0-0b50bfb87",
9533
+ currentScriptUrl: "https://wasm-development.regulaforensics.com/face/rc/8.4/525c71b7-5bf028816",
9525
9534
  preMain: !0
9526
9535
  }));
9527
9536
  })();
@@ -9884,7 +9893,7 @@ var gf = 1500, _f = (e) => e * 1e3, vf = Ys.create("main"), yf = (e) => e === Fo
9884
9893
  metadata: {
9885
9894
  serviceUrl: l || "https://faceapi.regulaforensics.com",
9886
9895
  hostAppId: po(),
9887
- sdkVersion: Yo("8.4.2341-nightly"),
9896
+ sdkVersion: Yo("8.4.2342-rc"),
9888
9897
  deviceModel: `${La.osName}/${La.osVersion} ${La.browserName}/${La.fullBrowserVersion}`,
9889
9898
  camera: h.camera
9890
9899
  }
@@ -9897,7 +9906,7 @@ var gf = 1500, _f = (e) => e * 1e3, vf = Ys.create("main"), yf = (e) => e === Fo
9897
9906
  let n = yield mo({
9898
9907
  cameras: [...h.sortedDevices.frontCameras, ...h.sortedDevices.backCameras],
9899
9908
  cameraID: h.camera.deviceId,
9900
- sdkVersion: Yo("8.4.2341-nightly"),
9909
+ sdkVersion: Yo("8.4.2342-rc"),
9901
9910
  serviceUrl: l || "https://faceapi.regulaforensics.com",
9902
9911
  customMetadata: x
9903
9912
  });
@@ -10443,7 +10452,7 @@ function pp() {
10443
10452
  videoElementParams: A,
10444
10453
  recordService: w,
10445
10454
  initialBrowserVideoResolution: sp
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 }, [
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 }, [
10447
10456
  n == null ? void 0 : n.videoRecordingSaveVideo,
10448
10457
  p,
10449
10458
  x
@@ -13240,7 +13249,7 @@ var Wp = Ys.create("main"), Gp = [
13240
13249
  this.dispatchEvent(t), Wp(`Component event: ${JSON.stringify(t.detail)}`);
13241
13250
  }
13242
13251
  get version() {
13243
- return "8.4.2341-nightly";
13252
+ return "8.4.2342-rc";
13244
13253
  }
13245
13254
  set translations(e) {
13246
13255
  this._translations = e, this._mounted && this.render();
@@ -13679,7 +13688,7 @@ var gm = Ys.create("main"), _m = [
13679
13688
  });
13680
13689
  }
13681
13690
  get version() {
13682
- return "8.4.2341-nightly";
13691
+ return "8.4.2342-rc";
13683
13692
  }
13684
13693
  set translations(e) {
13685
13694
  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.2341-nightly",
3
+ "version": "8.4.2342-rc",
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",