@regulaforensics/vp-frontend-face-components 6.4.1615-nightly → 6.4.1617-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.js CHANGED
@@ -10823,7 +10823,7 @@ const DE = on.create("main"), i1 = {
10823
10823
  livenessType: fM.ACTIVE,
10824
10824
  holdStillDuration: void 0,
10825
10825
  timeoutInterval: void 0,
10826
- workerPath: "https://wasm-development.regulaforensics.com/face/nightly/6.4/0f450b30-fe539cafd",
10826
+ workerPath: "https://wasm-development.regulaforensics.com/face/nightly/6.4/8f4417d0-82273b66b",
10827
10827
  detectOcclusion: !0
10828
10828
  }, yE = (r) => DI(DI({}, i1), {}, {
10829
10829
  onEvent: () => DE('Function "onEvent" not defined.'),
@@ -13229,29 +13229,27 @@ function pz() {
13229
13229
  }, [j]), je.useEffect(() => {
13230
13230
  let d = !0;
13231
13231
  const A = o === lt.PREPARING || o === lt.REQUESTING;
13232
- if (!y || c !== null || !A) return;
13233
- const f = Xf(r, y, i);
13234
- return Qi("Selected camera: ".concat(JSON.stringify(f))), Mr(this, null, function* () {
13232
+ return !y || !A ? void 0 : (Mr(this, null, function* () {
13235
13233
  try {
13236
- const w = ot.isFirefox ? xE : 0;
13237
- yield tz(w);
13238
- const p = yield qf(n, f, i);
13239
- if (d)
13234
+ const z = ot.isFirefox ? xE : 0;
13235
+ yield tz(z);
13236
+ const w = Xf(r, y, i), p = yield qf(n, w, i);
13237
+ if (Qi("Selected camera: ".concat(JSON.stringify(w))), d)
13240
13238
  x.current = p.camera.deviceId, g(p);
13241
13239
  else {
13242
13240
  if (!p.stream) return;
13243
13241
  I2(p.stream);
13244
13242
  }
13245
- } catch (w) {
13246
- if (Qi("Get video error: ".concat(w)), !d) return;
13247
- g((p) => qr(qr({}, p), {}, {
13243
+ } catch (z) {
13244
+ if (Qi("Get video error: ".concat(z)), !d) return;
13245
+ g((w) => qr(qr({}, w), {}, {
13248
13246
  status: lt.UNKNOWN_ERROR
13249
13247
  }));
13250
13248
  }
13251
13249
  }), () => {
13252
13250
  d = !1;
13253
- };
13254
- }, [y, c, r, i, o, n]), je.useEffect(() => () => {
13251
+ });
13252
+ }, [y, r, i, o, n.width, n.height]), je.useEffect(() => () => {
13255
13253
  c && I2(c);
13256
13254
  }, [c]), je.useEffect(() => {
13257
13255
  if (!i || !x.current) return;
@@ -13935,7 +13933,7 @@ class UL {
13935
13933
  }
13936
13934
  prepare(n) {
13937
13935
  return Mr(this, null, function* () {
13938
- const i = "Liveness.worker.js", o = we.getState().workerPath, c = mL(o), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/6.4/0f450b30-fe539cafd";
13936
+ const i = "Liveness.worker.js", o = we.getState().workerPath, c = mL(o), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/6.4/8f4417d0-82273b66b";
13939
13937
  try {
13940
13938
  let j = yield (yield fetch(c + "/" + i)).text();
13941
13939
  I || (j = yz(j, c));
@@ -13953,7 +13951,7 @@ class UL {
13953
13951
  }), this.worker.postMessage({
13954
13952
  target: "worker-init",
13955
13953
  URL: document.URL,
13956
- currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/6.4/0f450b30-fe539cafd",
13954
+ currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/6.4/8f4417d0-82273b66b",
13957
13955
  preMain: !0
13958
13956
  }));
13959
13957
  });
@@ -14312,7 +14310,7 @@ const $L = 1500, O2 = (r) => r * 1e3, Tg = on.create("main"), FL = (r) => r ===
14312
14310
  metadata: {
14313
14311
  serviceUrl: y || xM,
14314
14312
  hostAppId: A2(),
14315
- sdkVersion: T2("6.4.1615-nightly"),
14313
+ sdkVersion: T2("6.4.1617-nightly"),
14316
14314
  deviceModel: "".concat(ot.osName, "/").concat(ot.osVersion, " ").concat(ot.browserName, "/").concat(ot.fullBrowserVersion),
14317
14315
  camera: d.camera
14318
14316
  }
@@ -14333,7 +14331,7 @@ const $L = 1500, O2 = (r) => r * 1e3, Tg = on.create("main"), FL = (r) => r ===
14333
14331
  }), Y = {
14334
14332
  platform: "Web",
14335
14333
  osVersion: "".concat(ot.osVersion),
14336
- sdkVersion: T2("6.4.1615-nightly"),
14334
+ sdkVersion: T2("6.4.1617-nightly"),
14337
14335
  hostAppId: A2(),
14338
14336
  serviceUrl: y || xM,
14339
14337
  userID: V,
@@ -16556,7 +16554,7 @@ class HW extends HTMLElement {
16556
16554
  this.dispatchEvent(i), _W("Component event: ".concat(JSON.stringify(i.detail)));
16557
16555
  }
16558
16556
  get version() {
16559
- return "".concat("6.4.1615-nightly".trim());
16557
+ return "".concat("6.4.1617-nightly".trim());
16560
16558
  }
16561
16559
  set translations(n) {
16562
16560
  this._translations = n, this._mounted && this.render();
@@ -16988,7 +16986,7 @@ class nJ extends HTMLElement {
16988
16986
  });
16989
16987
  }
16990
16988
  get version() {
16991
- return "".concat("6.4.1615-nightly".trim());
16989
+ return "".concat("6.4.1617-nightly".trim());
16992
16990
  }
16993
16991
  set translations(n) {
16994
16992
  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.4.1615-nightly",
3
+ "version": "6.4.1617-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",