@regulaforensics/vp-frontend-document-components 7.6.2135-rc → 7.6.2136-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
@@ -11255,29 +11255,27 @@ function K9() {
11255
11255
  }, [_]), _e.useEffect(() => {
11256
11256
  let S = !0;
11257
11257
  const g = a === Wt.PREPARING || a === Wt.REQUESTING;
11258
- if (!f || o !== null || !g) return;
11259
- const R = MD(t, f, e);
11260
- return Ha("Selected camera: ".concat(JSON.stringify(R))), He(this, null, function* () {
11258
+ return !f || !g ? void 0 : (He(this, null, function* () {
11261
11259
  try {
11262
- const P = ur.isFirefox ? ID : 0;
11263
- yield xD(P);
11264
- const L = yield wD(r, R, e);
11265
- if (S)
11260
+ const A = ur.isFirefox ? ID : 0;
11261
+ yield xD(A);
11262
+ const P = MD(t, f, e), L = yield wD(r, P, e);
11263
+ if (Ha("Selected camera: ".concat(JSON.stringify(P))), S)
11266
11264
  C.current = L.camera.deviceId, c(L);
11267
11265
  else {
11268
11266
  if (!L.stream) return;
11269
11267
  ZE(L.stream);
11270
11268
  }
11271
- } catch (P) {
11272
- if (Ha("Get video error: ".concat(P)), !S) return;
11273
- c((L) => kn(kn({}, L), {}, {
11269
+ } catch (A) {
11270
+ if (Ha("Get video error: ".concat(A)), !S) return;
11271
+ c((P) => kn(kn({}, P), {}, {
11274
11272
  status: Wt.UNKNOWN_ERROR
11275
11273
  }));
11276
11274
  }
11277
11275
  }), () => {
11278
11276
  S = !1;
11279
- };
11280
- }, [f, o, t, e, a, r]), _e.useEffect(() => () => {
11277
+ });
11278
+ }, [f, t, e, a, r.width, r.height]), _e.useEffect(() => () => {
11281
11279
  o && ZE(o);
11282
11280
  }, [o]), _e.useEffect(() => {
11283
11281
  if (!e || !C.current) return;
@@ -17276,7 +17274,7 @@ function Vw(t, r, e, a, o) {
17276
17274
  }), J = {
17277
17275
  platform: "Web",
17278
17276
  osVersion: "".concat(ur.osVersion),
17279
- sdkVersion: "7.6.2135-rc".trim(),
17277
+ sdkVersion: "7.6.2136-rc".trim(),
17280
17278
  hostAppId: (Z = s.recognizerProcessParam.processParam.backendProcessing) === null || Z === void 0 ? void 0 : Z.serviceURL,
17281
17279
  userID: kD(AD),
17282
17280
  deviceModel: "".concat(ur.osName, "/").concat(ur.osVersion, " ").concat(ur.browserName, "/").concat(ur.fullBrowserVersion),
@@ -23642,8 +23640,8 @@ class $_e {
23642
23640
  processParam: {}
23643
23641
  }), xr(this, "imageProcessParam", {
23644
23642
  processParam: {}
23645
- }), xr(this, "recognizeListener", null), xr(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/7.6/f1529df7-158e7ce2e"), xr(this, "version", {
23646
- component: "7.6.2135-rc".trim()
23643
+ }), xr(this, "recognizeListener", null), xr(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/7.6/802de662-158e7ce2e"), xr(this, "version", {
23644
+ component: "7.6.2136-rc".trim()
23647
23645
  });
23648
23646
  }
23649
23647
  get processingListener() {
@@ -23715,7 +23713,7 @@ class $_e {
23715
23713
  return He(this, null, function* () {
23716
23714
  var r, e;
23717
23715
  wr("Preparing the service");
23718
- const a = "ProcMgr.worker.js", o = this.workerPath === "https://wasm-development.regulaforensics.com/document/rc/7.6/f1529df7-158e7ce2e", s = V_e(this.workerPath);
23716
+ const a = "ProcMgr.worker.js", o = this.workerPath === "https://wasm-development.regulaforensics.com/document/rc/7.6/802de662-158e7ce2e", s = V_e(this.workerPath);
23719
23717
  {
23720
23718
  let _ = yield (yield fetch("".concat(s, "/").concat(a))).text();
23721
23719
  o || (_ = Nw(_, s));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-document-components",
3
- "version": "7.6.2135-rc",
3
+ "version": "7.6.2136-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.js",