@regulaforensics/vp-frontend-document-components 9.8.3071-nightly → 9.8.3072-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
@@ -6052,7 +6052,16 @@ function Ps() {
6052
6052
  let s = yield navigator.mediaDevices.getUserMedia({
6053
6053
  video: o,
6054
6054
  audio: !1
6055
- }), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode, p = {
6055
+ }), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode;
6056
+ if (!f && t.facing) {
6057
+ let e = t.facing === Bi.environment ? Bi.user : Bi.environment;
6058
+ try {
6059
+ (yield navigator.mediaDevices.getUserMedia({ video: { facingMode: { exact: t.facing } } })).getTracks().forEach((e) => e.stop()), f = t.facing;
6060
+ } catch (t) {
6061
+ f = e;
6062
+ }
6063
+ }
6064
+ let p = {
6056
6065
  deviceId: u || t.deviceId,
6057
6066
  label: c.label || t.label,
6058
6067
  groupId: d || t.groupId,
@@ -6134,7 +6143,7 @@ var zs = (e) => {
6134
6143
  cameraID: e.deviceId,
6135
6144
  label: e.label,
6136
6145
  groupId: e.groupId,
6137
- facing: e.facing === Bi.user || e.facing === void 0 ? "front" : "back"
6146
+ facing: e.facing === Bi.user ? "front" : "back"
6138
6147
  }))), a && (p.serviceUrl = a), r && (p.currentCameraInfo = { cameraID: r }), s) {
6139
6148
  p.rawUA = s.userAgent;
6140
6149
  let e = s.deviceMemory;
@@ -6612,7 +6621,7 @@ function Tc(e) {
6612
6621
  var Ec = _o(function(e, t) {
6613
6622
  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 ? Gi.mirror : p, h = fc(i, a, s), g = h.status, _ = h.stream, v = h.camera, y = h.sortedDevices, b = h.onPlay, x = bc(q(!1), 2), S = x[0], C = x[1], w = ja(null), T = ja(null), E = ja(null);
6614
6623
  return J(() => {
6615
- C((v.facing === Bi.user || v.facing === void 0) && m === Gi.mirror);
6624
+ C(v.facing === Bi.user && m === Gi.mirror);
6616
6625
  }, [v.facing, m]), J(() => {
6617
6626
  f == null || f(S);
6618
6627
  }, [S]), Ma(t, () => ({ changeMirror: () => {
@@ -12983,11 +12992,11 @@ function gx(e, t) {
12983
12992
  var n, r;
12984
12993
  let i = {
12985
12994
  [hi.BarcodeMRZ]: {
12986
- PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/14a8c2af-902ff2d5d",
12995
+ PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/81bd9f28-2eaca82d9",
12987
12996
  DEV: "./wasm/barcode-mrz/"
12988
12997
  },
12989
12998
  [hi.BoundsLite]: {
12990
- PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/boundslite/14a8c2af-902ff2d5d",
12999
+ PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/boundslite/81bd9f28-2eaca82d9",
12991
13000
  DEV: "./wasm/bounds-lite/"
12992
13001
  }
12993
13002
  };
@@ -13401,7 +13410,7 @@ function aS(e) {
13401
13410
  let t = yield Us({
13402
13411
  cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
13403
13412
  cameraID: n.camera.deviceId,
13404
- sdkVersion: "9.8.3071-nightly",
13413
+ sdkVersion: "9.8.3072-rc",
13405
13414
  serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
13406
13415
  });
13407
13416
  iS(`Metadata: ${JSON.stringify(t)}`);
@@ -14130,7 +14139,7 @@ function US(e) {
14130
14139
  try {
14131
14140
  var n;
14132
14141
  if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
14133
- let e = yield Us({ sdkVersion: "9.8.3071-nightly" });
14142
+ let e = yield Us({ sdkVersion: "9.8.3072-rc" });
14134
14143
  yield a.createBackendTransaction(e, a.imageProcessParam);
14135
14144
  }
14136
14145
  let e = yield a.processImage(t, o);
@@ -20733,7 +20742,7 @@ function _A(e, t) {
20733
20742
  }
20734
20743
  var vA = $s.create("wasm"), yA = $s.create("main"), bA = class {
20735
20744
  constructor() {
20736
- hA(this, "_worker", null), hA(this, "_initializeListener", null), hA(this, "_processingListener", null), hA(this, "_queueService", new qk()), hA(this, "_initProcess", null), hA(this, "version", { component: "9.8.3071-nightly" }), hA(this, "onFinalize", null), hA(this, "isPrepared", !1), hA(this, "isInitialized", !1), hA(this, "isProcessing", !1), hA(this, "initData", null), hA(this, "recognizerProcessParam", { processParam: {} }), hA(this, "imageProcessParam", { processParam: {} }), hA(this, "recognizeListener", null), hA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/14a8c2af-902ff2d5d"), hA(this, "pageIdx", null);
20745
+ hA(this, "_worker", null), hA(this, "_initializeListener", null), hA(this, "_processingListener", null), hA(this, "_queueService", new qk()), hA(this, "_initProcess", null), hA(this, "version", { component: "9.8.3072-rc" }), hA(this, "onFinalize", null), hA(this, "isPrepared", !1), hA(this, "isInitialized", !1), hA(this, "isProcessing", !1), hA(this, "initData", null), hA(this, "recognizerProcessParam", { processParam: {} }), hA(this, "imageProcessParam", { processParam: {} }), hA(this, "recognizeListener", null), hA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/81bd9f28-2eaca82d9"), hA(this, "pageIdx", null);
20737
20746
  }
20738
20747
  get processingListener() {
20739
20748
  return this._processingListener;
@@ -20786,7 +20795,7 @@ var vA = $s.create("wasm"), yA = $s.create("main"), bA = class {
20786
20795
  var n;
20787
20796
  yA("Preparing the service");
20788
20797
  {
20789
- let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/14a8c2af-902ff2d5d", r = fA(e && n ? gx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20798
+ let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/81bd9f28-2eaca82d9", r = fA(e && n ? gx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20790
20799
  n || (i = hx(i, r));
20791
20800
  let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
20792
20801
  t._worker = new Worker(o), URL.revokeObjectURL(o);
@@ -20825,7 +20834,7 @@ var vA = $s.create("wasm"), yA = $s.create("main"), bA = class {
20825
20834
  hostName: (n = document.location) == null ? void 0 : n.origin,
20826
20835
  license: e == null ? void 0 : e.license
20827
20836
  },
20828
- telemetry: yield Us({ sdkVersion: "9.8.3071-nightly" }),
20837
+ telemetry: yield Us({ sdkVersion: "9.8.3072-rc" }),
20829
20838
  processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
20830
20839
  }
20831
20840
  }), a = i.scenario, o = i.license;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-document-components",
3
- "version": "9.8.3071-nightly",
3
+ "version": "9.8.3072-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",
@@ -22,7 +22,7 @@
22
22
  "build": "vite build"
23
23
  },
24
24
  "dependencies": {
25
- "@regulaforensics/document-reader-webclient": "^9.8.1065-nightly",
25
+ "@regulaforensics/document-reader-webclient": "^9.8.1066-rc",
26
26
  "qrcode.react": "^4.2.0"
27
27
  }
28
28
  }