@regulaforensics/vp-frontend-document-components 7.5.2027-nightly → 7.5.2028-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
@@ -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.2027-nightly".trim(),
17676
+ sdkVersion: "7.5.2028-rc".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/nightly/7.5/eec41d4d-42f3c8b93"), br(this, "version", {
23644
- component: "7.5.2027-nightly".trim()
23643
+ }), br(this, "recognizeListener", null), br(this, "workerPath", "https://wasm.regulaforensics.com/document/rc/7.5/f5f1b02f-d911f3424"), br(this, "version", {
23644
+ component: "7.5.2028-rc".trim()
23645
23645
  });
23646
23646
  }
23647
23647
  get processingListener() {
@@ -23678,13 +23678,6 @@ 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
- }
23688
23681
  sendMessage(r) {
23689
23682
  return this._queueService.addTask(() => new Promise((t, i) => {
23690
23683
  if (!this._worker)
@@ -23704,14 +23697,14 @@ class Yde {
23704
23697
  }
23705
23698
  }
23706
23699
  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));
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) : []);
23700
+ }, Lr("Send message to worker: { target: ".concat(r.target, ", method: ").concat(r.method, " }")), this._worker.postMessage(r);
23708
23701
  }));
23709
23702
  }
23710
23703
  prepare() {
23711
23704
  return Ve(this, null, function* () {
23712
23705
  var r, t;
23713
23706
  Lr("Preparing the service");
23714
- const i = "ProcMgr.worker.js", o = this.workerPath === "https://wasm.regulaforensics.com/document/nightly/7.5/eec41d4d-42f3c8b93", s = qde(this.workerPath);
23707
+ const i = "ProcMgr.worker.js", o = this.workerPath === "https://wasm.regulaforensics.com/document/rc/7.5/f5f1b02f-d911f3424", s = qde(this.workerPath);
23715
23708
  {
23716
23709
  let f = yield (yield fetch("".concat(s, "/").concat(i))).text();
23717
23710
  o || (f = dx(f, s));
@@ -23798,14 +23791,13 @@ class Yde {
23798
23791
  process(r, t) {
23799
23792
  return Ve(this, null, function* () {
23800
23793
  var i;
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;
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;
23803
23796
  });
23804
23797
  }
23805
23798
  processImage(r, t) {
23806
23799
  return Ve(this, null, function* () {
23807
- const i = this.prepareImageData(r);
23808
- return this.doProcess(jn.processImage, t || this.imageProcessParam, i);
23800
+ return this.doProcess(jn.processImage, t || this.imageProcessParam, r);
23809
23801
  });
23810
23802
  }
23811
23803
  startNewPage() {
@@ -23860,9 +23852,7 @@ class Yde {
23860
23852
  method: jn.addDataToPackage,
23861
23853
  request: t,
23862
23854
  preMain: !0,
23863
- data: [{
23864
- data: r.buffer
23865
- }]
23855
+ data: r
23866
23856
  }), Lr("Data added to package");
23867
23857
  });
23868
23858
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-document-components",
3
- "version": "7.5.2027-nightly",
3
+ "version": "7.5.2028-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",
@@ -23,7 +23,7 @@
23
23
  "test": "jest --testPathPattern=src/tests"
24
24
  },
25
25
  "dependencies": {
26
- "@regulaforensics/document-reader-webclient": "^7.5.214-nightly",
26
+ "@regulaforensics/document-reader-webclient": "^7.5.215-rc",
27
27
  "qrcode.react": "^3.1.0"
28
28
  }
29
29
  }