@regulaforensics/vp-frontend-document-components 9.8.3047-rc → 9.8.3048-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.iife.js +6 -6
- package/dist/main.js +10 -19
- package/package.json +2 -2
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: () => {
|
|
@@ -12990,11 +12981,11 @@ function hx(e, t) {
|
|
|
12990
12981
|
var n, r;
|
|
12991
12982
|
let i = {
|
|
12992
12983
|
[hi.BarcodeMRZ]: {
|
|
12993
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12984
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/ea4225d0-0b50bfb87",
|
|
12994
12985
|
DEV: "./wasm/barcode-mrz/"
|
|
12995
12986
|
},
|
|
12996
12987
|
[hi.BoundsLite]: {
|
|
12997
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12988
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.8/boundslite/ea4225d0-0b50bfb87",
|
|
12998
12989
|
DEV: "./wasm/bounds-lite/"
|
|
12999
12990
|
}
|
|
13000
12991
|
};
|
|
@@ -13436,7 +13427,7 @@ function sS(e) {
|
|
|
13436
13427
|
let t = yield Us({
|
|
13437
13428
|
cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
|
|
13438
13429
|
cameraID: n.camera.deviceId,
|
|
13439
|
-
sdkVersion: "9.8.
|
|
13430
|
+
sdkVersion: "9.8.3048-nightly",
|
|
13440
13431
|
serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
|
|
13441
13432
|
});
|
|
13442
13433
|
oS(`Metadata: ${JSON.stringify(t)}`);
|
|
@@ -14188,7 +14179,7 @@ function GS(e) {
|
|
|
14188
14179
|
try {
|
|
14189
14180
|
var n;
|
|
14190
14181
|
if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
|
|
14191
|
-
let e = yield Us({ sdkVersion: "9.8.
|
|
14182
|
+
let e = yield Us({ sdkVersion: "9.8.3048-nightly" });
|
|
14192
14183
|
yield a.createBackendTransaction(e, a.imageProcessParam);
|
|
14193
14184
|
}
|
|
14194
14185
|
let e = yield a.processImage(t, o);
|
|
@@ -20791,7 +20782,7 @@ function yA(e, t) {
|
|
|
20791
20782
|
}
|
|
20792
20783
|
var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
20793
20784
|
constructor() {
|
|
20794
|
-
_A(this, "_worker", null), _A(this, "_initializeListener", null), _A(this, "_processingListener", null), _A(this, "_queueService", new Yk()), _A(this, "_initProcess", null), _A(this, "version", { component: "9.8.
|
|
20785
|
+
_A(this, "_worker", null), _A(this, "_initializeListener", null), _A(this, "_processingListener", null), _A(this, "_queueService", new Yk()), _A(this, "_initProcess", null), _A(this, "version", { component: "9.8.3048-nightly" }), _A(this, "onFinalize", null), _A(this, "isPrepared", !1), _A(this, "isInitialized", !1), _A(this, "isProcessing", !1), _A(this, "initData", null), _A(this, "recognizerProcessParam", { processParam: {} }), _A(this, "imageProcessParam", { processParam: {} }), _A(this, "recognizeListener", null), _A(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/ea4225d0-0b50bfb87"), _A(this, "pageIdx", null);
|
|
20795
20786
|
}
|
|
20796
20787
|
get processingListener() {
|
|
20797
20788
|
return this._processingListener;
|
|
@@ -20844,7 +20835,7 @@ var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
|
20844
20835
|
var n;
|
|
20845
20836
|
xA("Preparing the service");
|
|
20846
20837
|
{
|
|
20847
|
-
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/
|
|
20838
|
+
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.8/barcodemrz/ea4225d0-0b50bfb87", r = mA(e && n ? hx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
|
|
20848
20839
|
n || (i = mx(i, r));
|
|
20849
20840
|
let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
|
|
20850
20841
|
t._worker = new Worker(o), URL.revokeObjectURL(o);
|
|
@@ -20883,7 +20874,7 @@ var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
|
20883
20874
|
hostName: (n = document.location) == null ? void 0 : n.origin,
|
|
20884
20875
|
license: e == null ? void 0 : e.license
|
|
20885
20876
|
},
|
|
20886
|
-
telemetry: yield Us({ sdkVersion: "9.8.
|
|
20877
|
+
telemetry: yield Us({ sdkVersion: "9.8.3048-nightly" }),
|
|
20887
20878
|
processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
|
|
20888
20879
|
}
|
|
20889
20880
|
}), 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.
|
|
3
|
+
"version": "9.8.3048-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.
|
|
25
|
+
"@regulaforensics/document-reader-webclient": "^9.8.1052-nightly",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|