@regulaforensics/vp-frontend-document-components 9.8.3057-rc → 9.8.3058-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/525c71b7-934752b36",
12986
+ PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/1f2f3f65-3891c6632",
12996
12987
  DEV: "./wasm/barcode-mrz/"
12997
12988
  },
12998
12989
  [hi.BoundsLite]: {
12999
- PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/boundslite/525c71b7-934752b36",
12990
+ PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/boundslite/1f2f3f65-3891c6632",
13000
12991
  DEV: "./wasm/bounds-lite/"
13001
12992
  }
13002
12993
  };
@@ -13438,7 +13429,7 @@ function cS(e) {
13438
13429
  let t = yield Us({
13439
13430
  cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
13440
13431
  cameraID: n.camera.deviceId,
13441
- sdkVersion: "9.8.3057-rc",
13432
+ sdkVersion: "9.8.3058-nightly",
13442
13433
  serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
13443
13434
  });
13444
13435
  sS(`Metadata: ${JSON.stringify(t)}`);
@@ -14190,7 +14181,7 @@ function KS(e) {
14190
14181
  try {
14191
14182
  var n;
14192
14183
  if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
14193
- let e = yield Us({ sdkVersion: "9.8.3057-rc" });
14184
+ let e = yield Us({ sdkVersion: "9.8.3058-nightly" });
14194
14185
  yield a.createBackendTransaction(e, a.imageProcessParam);
14195
14186
  }
14196
14187
  let e = yield a.processImage(t, o);
@@ -20793,7 +20784,7 @@ function bA(e, t) {
20793
20784
  }
20794
20785
  var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
20795
20786
  constructor() {
20796
- vA(this, "_worker", null), vA(this, "_initializeListener", null), vA(this, "_processingListener", null), vA(this, "_queueService", new Xk()), vA(this, "_initProcess", null), vA(this, "version", { component: "9.8.3057-rc" }), vA(this, "onFinalize", null), vA(this, "isPrepared", !1), vA(this, "isInitialized", !1), vA(this, "isProcessing", !1), vA(this, "initData", null), vA(this, "recognizerProcessParam", { processParam: {} }), vA(this, "imageProcessParam", { processParam: {} }), vA(this, "recognizeListener", null), vA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-934752b36"), vA(this, "pageIdx", null);
20787
+ vA(this, "_worker", null), vA(this, "_initializeListener", null), vA(this, "_processingListener", null), vA(this, "_queueService", new Xk()), vA(this, "_initProcess", null), vA(this, "version", { component: "9.8.3058-nightly" }), vA(this, "onFinalize", null), vA(this, "isPrepared", !1), vA(this, "isInitialized", !1), vA(this, "isProcessing", !1), vA(this, "initData", null), vA(this, "recognizerProcessParam", { processParam: {} }), vA(this, "imageProcessParam", { processParam: {} }), vA(this, "recognizeListener", null), vA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/1f2f3f65-3891c6632"), vA(this, "pageIdx", null);
20797
20788
  }
20798
20789
  get processingListener() {
20799
20790
  return this._processingListener;
@@ -20846,7 +20837,7 @@ var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
20846
20837
  var n;
20847
20838
  SA("Preparing the service");
20848
20839
  {
20849
- let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-934752b36", r = hA(e && n ? gx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20840
+ let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/1f2f3f65-3891c6632", r = hA(e && n ? gx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20850
20841
  n || (i = hx(i, r));
20851
20842
  let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
20852
20843
  t._worker = new Worker(o), URL.revokeObjectURL(o);
@@ -20885,7 +20876,7 @@ var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
20885
20876
  hostName: (n = document.location) == null ? void 0 : n.origin,
20886
20877
  license: e == null ? void 0 : e.license
20887
20878
  },
20888
- telemetry: yield Us({ sdkVersion: "9.8.3057-rc" }),
20879
+ telemetry: yield Us({ sdkVersion: "9.8.3058-nightly" }),
20889
20880
  processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
20890
20881
  }
20891
20882
  }), 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.3057-rc",
3
+ "version": "9.8.3058-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.1058-rc",
25
+ "@regulaforensics/document-reader-webclient": "^9.8.1057-nightly",
26
26
  "qrcode.react": "^4.2.0"
27
27
  }
28
28
  }