@regulaforensics/vp-frontend-document-components 9.8.3056-nightly → 9.8.3057-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: () => {
|
|
@@ -12983,11 +12992,11 @@ function gx(e, t) {
|
|
|
12983
12992
|
var n, r;
|
|
12984
12993
|
let i = {
|
|
12985
12994
|
[hi.BarcodeMRZ]: {
|
|
12986
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12995
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-934752b36",
|
|
12987
12996
|
DEV: "./wasm/barcode-mrz/"
|
|
12988
12997
|
},
|
|
12989
12998
|
[hi.BoundsLite]: {
|
|
12990
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12999
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.8/boundslite/525c71b7-934752b36",
|
|
12991
13000
|
DEV: "./wasm/bounds-lite/"
|
|
12992
13001
|
}
|
|
12993
13002
|
};
|
|
@@ -13429,7 +13438,7 @@ function cS(e) {
|
|
|
13429
13438
|
let t = yield Us({
|
|
13430
13439
|
cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
|
|
13431
13440
|
cameraID: n.camera.deviceId,
|
|
13432
|
-
sdkVersion: "9.8.
|
|
13441
|
+
sdkVersion: "9.8.3057-rc",
|
|
13433
13442
|
serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
|
|
13434
13443
|
});
|
|
13435
13444
|
sS(`Metadata: ${JSON.stringify(t)}`);
|
|
@@ -14181,7 +14190,7 @@ function KS(e) {
|
|
|
14181
14190
|
try {
|
|
14182
14191
|
var n;
|
|
14183
14192
|
if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
|
|
14184
|
-
let e = yield Us({ sdkVersion: "9.8.
|
|
14193
|
+
let e = yield Us({ sdkVersion: "9.8.3057-rc" });
|
|
14185
14194
|
yield a.createBackendTransaction(e, a.imageProcessParam);
|
|
14186
14195
|
}
|
|
14187
14196
|
let e = yield a.processImage(t, o);
|
|
@@ -20784,7 +20793,7 @@ function bA(e, t) {
|
|
|
20784
20793
|
}
|
|
20785
20794
|
var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
|
|
20786
20795
|
constructor() {
|
|
20787
|
-
vA(this, "_worker", null), vA(this, "_initializeListener", null), vA(this, "_processingListener", null), vA(this, "_queueService", new Xk()), vA(this, "_initProcess", null), vA(this, "version", { component: "9.8.
|
|
20796
|
+
vA(this, "_worker", null), vA(this, "_initializeListener", null), vA(this, "_processingListener", null), vA(this, "_queueService", new Xk()), vA(this, "_initProcess", null), vA(this, "version", { component: "9.8.3057-rc" }), vA(this, "onFinalize", null), vA(this, "isPrepared", !1), vA(this, "isInitialized", !1), vA(this, "isProcessing", !1), vA(this, "initData", null), vA(this, "recognizerProcessParam", { processParam: {} }), vA(this, "imageProcessParam", { processParam: {} }), vA(this, "recognizeListener", null), vA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-934752b36"), vA(this, "pageIdx", null);
|
|
20788
20797
|
}
|
|
20789
20798
|
get processingListener() {
|
|
20790
20799
|
return this._processingListener;
|
|
@@ -20837,7 +20846,7 @@ var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
|
|
|
20837
20846
|
var n;
|
|
20838
20847
|
SA("Preparing the service");
|
|
20839
20848
|
{
|
|
20840
|
-
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/
|
|
20849
|
+
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.8/barcodemrz/525c71b7-934752b36", r = hA(e && n ? gx(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Di}`)).text();
|
|
20841
20850
|
n || (i = hx(i, r));
|
|
20842
20851
|
let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
|
|
20843
20852
|
t._worker = new Worker(o), URL.revokeObjectURL(o);
|
|
@@ -20876,7 +20885,7 @@ var xA = $s.create("wasm"), SA = $s.create("main"), CA = class {
|
|
|
20876
20885
|
hostName: (n = document.location) == null ? void 0 : n.origin,
|
|
20877
20886
|
license: e == null ? void 0 : e.license
|
|
20878
20887
|
},
|
|
20879
|
-
telemetry: yield Us({ sdkVersion: "9.8.
|
|
20888
|
+
telemetry: yield Us({ sdkVersion: "9.8.3057-rc" }),
|
|
20880
20889
|
processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
|
|
20881
20890
|
}
|
|
20882
20891
|
}), 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.3057-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.1058-rc",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|