@regulaforensics/vp-frontend-document-components 9.8.3021-nightly → 9.8.3023-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,11 +6052,20 @@ 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,
6059
- facing: f || t.facing
6068
+ facing: f
6060
6069
  };
6061
6070
  return {
6062
6071
  status: zi.READY,
@@ -7382,6 +7391,7 @@ var Al = _o(function(e, t) {
7382
7391
  return r === void 0 || r ? Z("div", {
7383
7392
  ref: t,
7384
7393
  part: "container-copyright",
7394
+ "aria-hidden": "true",
7385
7395
  className: `${Ol.copyright} ${n == null ? "" : n}`,
7386
7396
  children: [Z("span", {
7387
7397
  "data-e2e": "powered-by",
@@ -12980,11 +12990,11 @@ function hx(e, t) {
12980
12990
  var n, r;
12981
12991
  let i = {
12982
12992
  [hi.BarcodeMRZ]: {
12983
- PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/6e25044c-960a7d746",
12993
+ PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/644d7b74-b82e9715d",
12984
12994
  DEV: "./wasm/barcode-mrz/"
12985
12995
  },
12986
12996
  [hi.BoundsLite]: {
12987
- PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/boundslite/6e25044c-960a7d746",
12997
+ PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/boundslite/644d7b74-b82e9715d",
12988
12998
  DEV: "./wasm/bounds-lite/"
12989
12999
  }
12990
13000
  };
@@ -13398,7 +13408,7 @@ function iS(e) {
13398
13408
  let t = yield Us({
13399
13409
  cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
13400
13410
  cameraID: n.camera.deviceId,
13401
- sdkVersion: "9.8.3021-nightly",
13411
+ sdkVersion: "9.8.3023-nightly",
13402
13412
  serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
13403
13413
  });
13404
13414
  rS(`Metadata: ${JSON.stringify(t)}`);
@@ -14127,7 +14137,7 @@ function HS(e) {
14127
14137
  try {
14128
14138
  var n;
14129
14139
  if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
14130
- let e = yield Us({ sdkVersion: "9.8.3021-nightly" });
14140
+ let e = yield Us({ sdkVersion: "9.8.3023-nightly" });
14131
14141
  yield a.createBackendTransaction(e, a.imageProcessParam);
14132
14142
  }
14133
14143
  let e = yield a.processImage(t, o);
@@ -16698,7 +16708,10 @@ function UE(e) {
16698
16708
  children: [Z("div", {
16699
16709
  part: "remote-scanner-qr",
16700
16710
  className: SC["qr-container"],
16701
- children: Z(YC, { value: p })
16711
+ children: Z(YC, {
16712
+ "aria-label": "QR code for scanning",
16713
+ value: p
16714
+ })
16702
16715
  }), l && Z(Yt, { children: [Z("div", {
16703
16716
  part: "remote-scanner-divider",
16704
16717
  className: SC.divider,
@@ -20727,7 +20740,7 @@ function gA(e, t) {
20727
20740
  }
20728
20741
  var _A = $s.create("wasm"), vA = $s.create("main"), yA = class {
20729
20742
  constructor() {
20730
- mA(this, "_worker", null), mA(this, "_initializeListener", null), mA(this, "_processingListener", null), mA(this, "_queueService", new Kk()), mA(this, "_initProcess", null), mA(this, "version", { component: "9.8.3021-nightly" }), mA(this, "onFinalize", null), mA(this, "isPrepared", !1), mA(this, "isInitialized", !1), mA(this, "isProcessing", !1), mA(this, "initData", null), mA(this, "recognizerProcessParam", { processParam: {} }), mA(this, "imageProcessParam", { processParam: {} }), mA(this, "recognizeListener", null), mA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/6e25044c-960a7d746"), mA(this, "pageIdx", null);
20743
+ mA(this, "_worker", null), mA(this, "_initializeListener", null), mA(this, "_processingListener", null), mA(this, "_queueService", new Kk()), mA(this, "_initProcess", null), mA(this, "version", { component: "9.8.3023-nightly" }), mA(this, "onFinalize", null), mA(this, "isPrepared", !1), mA(this, "isInitialized", !1), mA(this, "isProcessing", !1), mA(this, "initData", null), mA(this, "recognizerProcessParam", { processParam: {} }), mA(this, "imageProcessParam", { processParam: {} }), mA(this, "recognizeListener", null), mA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/644d7b74-b82e9715d"), mA(this, "pageIdx", null);
20731
20744
  }
20732
20745
  get processingListener() {
20733
20746
  return this._processingListener;
@@ -20780,7 +20793,7 @@ var _A = $s.create("wasm"), vA = $s.create("main"), yA = class {
20780
20793
  var n;
20781
20794
  vA("Preparing the service");
20782
20795
  {
20783
- let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/6e25044c-960a7d746", r = dA(e && n ? hx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20796
+ let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/644d7b74-b82e9715d", r = dA(e && n ? hx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
20784
20797
  n || (i = mx(i, r));
20785
20798
  let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
20786
20799
  t._worker = new Worker(o), URL.revokeObjectURL(o);
@@ -20819,7 +20832,7 @@ var _A = $s.create("wasm"), vA = $s.create("main"), yA = class {
20819
20832
  hostName: (n = document.location) == null ? void 0 : n.origin,
20820
20833
  license: e == null ? void 0 : e.license
20821
20834
  },
20822
- telemetry: yield Us({ sdkVersion: "9.8.3021-nightly" }),
20835
+ telemetry: yield Us({ sdkVersion: "9.8.3023-nightly" }),
20823
20836
  processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
20824
20837
  }
20825
20838
  }), 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.3021-nightly",
3
+ "version": "9.8.3023-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.1032-nightly",
25
+ "@regulaforensics/document-reader-webclient": "^9.8.1034-nightly",
26
26
  "qrcode.react": "^4.2.0"
27
27
  }
28
28
  }