@regulaforensics/vp-frontend-document-components 7.5.2022 → 7.5.2024-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
@@ -17673,7 +17673,7 @@ function Rx(e, r, t, i, o) {
17673
17673
  }), q = {
17674
17674
  platform: "Web",
17675
17675
  osVersion: "".concat(lr.osVersion),
17676
- sdkVersion: "7.5.2022".trim(),
17676
+ sdkVersion: "7.5.2024-nightly".trim(),
17677
17677
  hostAppId: (pe = s.recognizerProcessParam.processParam.backendProcessing) === null || pe === void 0 ? void 0 : pe.serviceURL,
17678
17678
  userID: cD(Q6),
17679
17679
  deviceModel: "".concat(lr.osName, "/").concat(lr.osVersion, " ").concat(lr.browserName, "/").concat(lr.fullBrowserVersion),
@@ -23640,8 +23640,8 @@ class Yde {
23640
23640
  processParam: {}
23641
23641
  }), br(this, "imageProcessParam", {
23642
23642
  processParam: {}
23643
- }), br(this, "recognizeListener", null), br(this, "workerPath", "https://wasm.regulaforensics.com/document/release/7.5/f5f1b02f-238b22e4e"), br(this, "version", {
23644
- component: "7.5.2022".trim()
23643
+ }), br(this, "recognizeListener", null), br(this, "workerPath", "https://wasm.regulaforensics.com/document/nightly/7.5/eec41d4d-74a5e70ec"), br(this, "version", {
23644
+ component: "7.5.2024-nightly".trim()
23645
23645
  });
23646
23646
  }
23647
23647
  get processingListener() {
@@ -23678,6 +23678,13 @@ class Yde {
23678
23678
  imagesList: i
23679
23679
  });
23680
23680
  }
23681
+ prepareImageData(r) {
23682
+ return r.map((t) => ({
23683
+ width: t.width,
23684
+ height: t.height,
23685
+ data: t.data.buffer
23686
+ }));
23687
+ }
23681
23688
  sendMessage(r) {
23682
23689
  return this._queueService.addTask(() => new Promise((t, i) => {
23683
23690
  if (!this._worker)
@@ -23697,14 +23704,14 @@ class Yde {
23697
23704
  }
23698
23705
  }
23699
23706
  o.data.target === Tn.stdout && s6(JSON.stringify(o.data.content)), o.data.target === Tn.stderr && (s6(JSON.stringify(o.data.content)), i(o.data.content));
23700
- }, Lr("Send message to worker: { target: ".concat(r.target, ", method: ").concat(r.method, " }")), this._worker.postMessage(r);
23707
+ }, Lr("Send message to worker: { target: ".concat(r.target, ", method: ").concat(r.method, " }")), this._worker.postMessage(r, "data" in r && r.data ? r.data.map((o) => o.data) : []);
23701
23708
  }));
23702
23709
  }
23703
23710
  prepare() {
23704
23711
  return Ve(this, null, function* () {
23705
23712
  var r, t;
23706
23713
  Lr("Preparing the service");
23707
- const i = "ProcMgr.worker.js", o = this.workerPath === "https://wasm.regulaforensics.com/document/release/7.5/f5f1b02f-238b22e4e", s = qde(this.workerPath);
23714
+ const i = "ProcMgr.worker.js", o = this.workerPath === "https://wasm.regulaforensics.com/document/nightly/7.5/eec41d4d-74a5e70ec", s = qde(this.workerPath);
23708
23715
  {
23709
23716
  let f = yield (yield fetch("".concat(s, "/").concat(i))).text();
23710
23717
  o || (f = dx(f, s));
@@ -23791,13 +23798,14 @@ class Yde {
23791
23798
  process(r, t) {
23792
23799
  return Ve(this, null, function* () {
23793
23800
  var i;
23794
- const o = yield this.doProcess(jn.process, t || this.recognizerProcessParam, r);
23795
- return (i = this.recognizeListener) === null || i === void 0 || i.call(this, o), o;
23801
+ const o = this.prepareImageData(r), s = yield this.doProcess(jn.process, t || this.recognizerProcessParam, o);
23802
+ return (i = this.recognizeListener) === null || i === void 0 || i.call(this, s), s;
23796
23803
  });
23797
23804
  }
23798
23805
  processImage(r, t) {
23799
23806
  return Ve(this, null, function* () {
23800
- return this.doProcess(jn.processImage, t || this.imageProcessParam, r);
23807
+ const i = this.prepareImageData(r);
23808
+ return this.doProcess(jn.processImage, t || this.imageProcessParam, i);
23801
23809
  });
23802
23810
  }
23803
23811
  startNewPage() {
@@ -23852,7 +23860,9 @@ class Yde {
23852
23860
  method: jn.addDataToPackage,
23853
23861
  request: t,
23854
23862
  preMain: !0,
23855
- data: r
23863
+ data: [{
23864
+ data: r.buffer
23865
+ }]
23856
23866
  }), Lr("Data added to package");
23857
23867
  });
23858
23868
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-document-components",
3
- "version": "7.5.2022",
3
+ "version": "7.5.2024-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",
@@ -23,7 +23,7 @@
23
23
  "test": "jest --testPathPattern=src/tests"
24
24
  },
25
25
  "dependencies": {
26
- "@regulaforensics/document-reader-webclient": "^7.5.206",
26
+ "@regulaforensics/document-reader-webclient": "^7.5.210-nightly",
27
27
  "qrcode.react": "^3.1.0"
28
28
  }
29
29
  }