@regulaforensics/vp-frontend-face-components 6.4.1454-nightly → 6.4.1456-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
@@ -9928,7 +9928,7 @@ const i6 = Bt.create("main"), I1 = {
9928
9928
  livenessType: _s.ACTIVE,
9929
9929
  holdStillDuration: void 0,
9930
9930
  timeoutInterval: void 0,
9931
- workerPath: "https://wasm.regulaforensics.com/face/nightly/6.4/dc2306e9-6e18e808e",
9931
+ workerPath: "https://wasm.regulaforensics.com/face/nightly/6.4/91a0c97f-dbe66248f",
9932
9932
  detectOcclusion: !0
9933
9933
  }, M6 = (e) => xc(xc({}, I1), {}, {
9934
9934
  onEvent: () => i6('Function "onEvent" not defined.'),
@@ -11181,12 +11181,13 @@ function lx() {
11181
11181
  });
11182
11182
  }
11183
11183
  function Lg(e, t, r, n, i, M, o, u, s) {
11184
- const l = e / t, I = r / n, c = (s === Pr.contain ? I < l : I > l) ? e / r : t / n, D = (e / c - r) / 2, j = (t / c - n) / 2;
11184
+ const l = e / t, I = r / n, c = (s === Pr.contain ? I < l : I > l) ? e / r : t / n, D = (e / c - r) / 2, j = (t / c - n) / 2, N = i / c, d = M / c, T = o / c - D, y = r - (T + N), A = u / c - j;
11185
11185
  return {
11186
- width: i / c,
11187
- height: M / c,
11188
- left: o / c - D,
11189
- top: u / c - j
11186
+ width: N,
11187
+ height: d,
11188
+ left: T,
11189
+ right: y,
11190
+ top: A
11190
11191
  };
11191
11192
  }
11192
11193
  function cx(e, t) {
@@ -12289,7 +12290,7 @@ class AR {
12289
12290
  }
12290
12291
  prepare(t) {
12291
12292
  return Ce(this, null, function* () {
12292
- const r = "Liveness.worker.js", n = Q.getState().workerPath, i = Q.getState().workerPath === "https://wasm.regulaforensics.com/face/nightly/6.4/dc2306e9-6e18e808e";
12293
+ const r = "Liveness.worker.js", n = Q.getState().workerPath, i = Q.getState().workerPath === "https://wasm.regulaforensics.com/face/nightly/6.4/91a0c97f-dbe66248f";
12293
12294
  try {
12294
12295
  let o = yield (yield fetch(n + "/" + r)).text();
12295
12296
  i || (o = o$(o, n));
@@ -12307,7 +12308,7 @@ class AR {
12307
12308
  }), this.worker.postMessage({
12308
12309
  target: "worker-init",
12309
12310
  URL: document.URL,
12310
- currentScriptUrl: "https://wasm.regulaforensics.com/face/nightly/6.4/dc2306e9-6e18e808e",
12311
+ currentScriptUrl: "https://wasm.regulaforensics.com/face/nightly/6.4/91a0c97f-dbe66248f",
12311
12312
  preMain: !0
12312
12313
  }));
12313
12314
  });
@@ -12650,7 +12651,7 @@ const hR = 1500, r2 = (e) => e * 1e3, Rc = Bt.create("main"), mR = (e, t, r, n,
12650
12651
  config: D,
12651
12652
  metadata: {
12652
12653
  hostAppId: e.url || Ri,
12653
- sdkVersion: XT("6.4.1454-nightly"),
12654
+ sdkVersion: XT("6.4.1456-nightly"),
12654
12655
  deviceModel: "".concat(Wu, "/").concat(ql, " ").concat(sa, "/").concat(Kl),
12655
12656
  camera: e.videoStatusParams.camera
12656
12657
  }
@@ -12671,7 +12672,7 @@ const hR = 1500, r2 = (e) => e * 1e3, Rc = Bt.create("main"), mR = (e, t, r, n,
12671
12672
  }), j = {
12672
12673
  platform: "Web",
12673
12674
  osVersion: "".concat(ql),
12674
- sdkVersion: XT("6.4.1454-nightly"),
12675
+ sdkVersion: XT("6.4.1456-nightly"),
12675
12676
  hostAppId: e.url || Ri,
12676
12677
  userID: c,
12677
12678
  deviceModel: "".concat(Wu, "/").concat(ql, " ").concat(sa, "/").concat(Kl),
@@ -12985,7 +12986,8 @@ function FR() {
12985
12986
  width: 0,
12986
12987
  height: 0,
12987
12988
  left: 0,
12988
- top: 0
12989
+ top: 0,
12990
+ right: 0
12989
12991
  }), [De, S] = f.useState({
12990
12992
  videoStatus: _.PREPARING,
12991
12993
  camera: {
@@ -14773,7 +14775,7 @@ class Z4e extends HTMLElement {
14773
14775
  this.dispatchEvent(r), _4e("Component event: ".concat(JSON.stringify(r.detail)));
14774
14776
  }
14775
14777
  get version() {
14776
- return "".concat("6.4.1454-nightly".trim());
14778
+ return "".concat("6.4.1456-nightly".trim());
14777
14779
  }
14778
14780
  set translations(t) {
14779
14781
  this._translations = t, this._mounted && this.render();
@@ -15121,7 +15123,7 @@ class lje extends HTMLElement {
15121
15123
  });
15122
15124
  }
15123
15125
  get version() {
15124
- return "".concat("6.4.1454-nightly".trim());
15126
+ return "".concat("6.4.1456-nightly".trim());
15125
15127
  }
15126
15128
  set translations(t) {
15127
15129
  this._translations = t, 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.1454-nightly",
3
+ "version": "6.4.1456-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",