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