@regulaforensics/vp-frontend-document-components 9.8.3051-nightly → 9.8.3052-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.iife.js +6 -6
- package/dist/main.js +19 -10
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -6052,7 +6052,16 @@ 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
|
|
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,
|
|
@@ -6134,7 +6143,7 @@ var zs = (e) => {
|
|
|
6134
6143
|
cameraID: e.deviceId,
|
|
6135
6144
|
label: e.label,
|
|
6136
6145
|
groupId: e.groupId,
|
|
6137
|
-
facing: e.facing === Bi.user
|
|
6146
|
+
facing: e.facing === Bi.user ? "front" : "back"
|
|
6138
6147
|
}))), a && (p.serviceUrl = a), r && (p.currentCameraInfo = { cameraID: r }), s) {
|
|
6139
6148
|
p.rawUA = s.userAgent;
|
|
6140
6149
|
let e = s.deviceMemory;
|
|
@@ -6612,7 +6621,7 @@ function Tc(e) {
|
|
|
6612
6621
|
var Ec = _o(function(e, t) {
|
|
6613
6622
|
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);
|
|
6614
6623
|
return J(() => {
|
|
6615
|
-
C(
|
|
6624
|
+
C(v.facing === Bi.user && m === Gi.mirror);
|
|
6616
6625
|
}, [v.facing, m]), J(() => {
|
|
6617
6626
|
f == null || f(S);
|
|
6618
6627
|
}, [S]), Ma(t, () => ({ changeMirror: () => {
|
|
@@ -12981,11 +12990,11 @@ function hx(e, t) {
|
|
|
12981
12990
|
var n, r;
|
|
12982
12991
|
let i = {
|
|
12983
12992
|
[hi.BarcodeMRZ]: {
|
|
12984
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12993
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-729aeb321",
|
|
12985
12994
|
DEV: "./wasm/barcode-mrz/"
|
|
12986
12995
|
},
|
|
12987
12996
|
[hi.BoundsLite]: {
|
|
12988
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12997
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/boundslite/525c71b7-729aeb321",
|
|
12989
12998
|
DEV: "./wasm/bounds-lite/"
|
|
12990
12999
|
}
|
|
12991
13000
|
};
|
|
@@ -13427,7 +13436,7 @@ function sS(e) {
|
|
|
13427
13436
|
let t = yield Us({
|
|
13428
13437
|
cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
|
|
13429
13438
|
cameraID: n.camera.deviceId,
|
|
13430
|
-
sdkVersion: "9.8.
|
|
13439
|
+
sdkVersion: "9.8.3052-rc",
|
|
13431
13440
|
serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
|
|
13432
13441
|
});
|
|
13433
13442
|
oS(`Metadata: ${JSON.stringify(t)}`);
|
|
@@ -14179,7 +14188,7 @@ function GS(e) {
|
|
|
14179
14188
|
try {
|
|
14180
14189
|
var n;
|
|
14181
14190
|
if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
|
|
14182
|
-
let e = yield Us({ sdkVersion: "9.8.
|
|
14191
|
+
let e = yield Us({ sdkVersion: "9.8.3052-rc" });
|
|
14183
14192
|
yield a.createBackendTransaction(e, a.imageProcessParam);
|
|
14184
14193
|
}
|
|
14185
14194
|
let e = yield a.processImage(t, o);
|
|
@@ -20782,7 +20791,7 @@ function yA(e, t) {
|
|
|
20782
20791
|
}
|
|
20783
20792
|
var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
20784
20793
|
constructor() {
|
|
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.
|
|
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.3052-rc" }), _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/rc/9.8/barcodemrz/525c71b7-729aeb321"), _A(this, "pageIdx", null);
|
|
20786
20795
|
}
|
|
20787
20796
|
get processingListener() {
|
|
20788
20797
|
return this._processingListener;
|
|
@@ -20835,7 +20844,7 @@ var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
|
20835
20844
|
var n;
|
|
20836
20845
|
xA("Preparing the service");
|
|
20837
20846
|
{
|
|
20838
|
-
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/
|
|
20847
|
+
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-729aeb321", r = mA(e && n ? hx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
|
|
20839
20848
|
n || (i = mx(i, r));
|
|
20840
20849
|
let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
|
|
20841
20850
|
t._worker = new Worker(o), URL.revokeObjectURL(o);
|
|
@@ -20874,7 +20883,7 @@ var bA = $s.create("wasm"), xA = $s.create("main"), SA = class {
|
|
|
20874
20883
|
hostName: (n = document.location) == null ? void 0 : n.origin,
|
|
20875
20884
|
license: e == null ? void 0 : e.license
|
|
20876
20885
|
},
|
|
20877
|
-
telemetry: yield Us({ sdkVersion: "9.8.
|
|
20886
|
+
telemetry: yield Us({ sdkVersion: "9.8.3052-rc" }),
|
|
20878
20887
|
processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
|
|
20879
20888
|
}
|
|
20880
20889
|
}), 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.3052-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",
|
|
@@ -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.1055-rc",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|