@incodetech/welcome 1.85.0-20251110114614.0 → 1.85.0-20251110183752.0
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.
|
@@ -158,7 +158,7 @@ declare class MlWasmJSApi {
|
|
|
158
158
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
159
159
|
getCheck(): string;
|
|
160
160
|
getMetadata(): string;
|
|
161
|
-
prc(
|
|
161
|
+
prc(): Promise<void>;
|
|
162
162
|
poc(output: object): Promise<void>;
|
|
163
163
|
pc(deviceId: string): Promise<void>;
|
|
164
164
|
private pipelineTypeToWasmEnum;
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -7772,7 +7772,7 @@ function getProfile(Be) {
|
|
|
7772
7772
|
throw new Error(`Profile not found for type: ${Be}`);
|
|
7773
7773
|
return Le;
|
|
7774
7774
|
}
|
|
7775
|
-
const wasmVersion = "v2.12.
|
|
7775
|
+
const wasmVersion = "v2.12.27";
|
|
7776
7776
|
function generateBundle() {
|
|
7777
7777
|
const Be = getFeatureFlag("id_text_barcode_readability") ? PipelineProfileName.IdCapture_3_02 : getFeatureFlag("id_model_hebrew_back_id") ? PipelineProfileName.IdCapture_2_02 : PipelineProfileName.IdCapture_2_01, Le = PipelineProfileName.SelfieWithQualityMetrics, Ye = PipelineProfileName.SelfieVideoSelfie, tt = PipelineProfileName.IdVideoSelfie_2_01;
|
|
7778
7778
|
return [
|
|
@@ -8269,12 +8269,12 @@ class MlWasmJSApi {
|
|
|
8269
8269
|
"Unable to get metadata, cpp API hasn't been initialized"
|
|
8270
8270
|
), this.utilityApi.setInspectorOpened(this.inspectorOpened_), this.utilityApi.getMetadata();
|
|
8271
8271
|
}
|
|
8272
|
-
async prc(
|
|
8272
|
+
async prc() {
|
|
8273
8273
|
return this.checkWasmInitialization(
|
|
8274
8274
|
"Unable to prc, cpp API hasn't been initialized"
|
|
8275
8275
|
), await this.wasmCallWrapper(
|
|
8276
8276
|
this.utilityApi.prc.bind(this.utilityApi),
|
|
8277
|
-
[
|
|
8277
|
+
[]
|
|
8278
8278
|
);
|
|
8279
8279
|
}
|
|
8280
8280
|
async poc(Le) {
|
|
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
|
|
|
8374
8374
|
);
|
|
8375
8375
|
}
|
|
8376
8376
|
}
|
|
8377
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8377
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251110183752.0";
|
|
8378
8378
|
function e$2(Be, Le) {
|
|
8379
8379
|
return function(Ye, tt) {
|
|
8380
8380
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -145703,7 +145703,7 @@ const multiPageDocumentTypes = [
|
|
|
145703
145703
|
}) : hn();
|
|
145704
145704
|
} else {
|
|
145705
145705
|
const hn = async (qn) => {
|
|
145706
|
-
u0.current ? (n0.current.srcObject = qn, _t(qn), await q0(qn), e0(!1), p0.current.resolve()) : (n0.current.autoplay = !1, n0.current.srcObject = qn, await MlWasmJSApi$1.prc(
|
|
145706
|
+
u0.current ? (n0.current.srcObject = qn, _t(qn), await q0(qn), e0(!1), p0.current.resolve()) : (n0.current.autoplay = !1, n0.current.srcObject = qn, await MlWasmJSApi$1.prc(), killStream(qn), u0.current = !0, await F0());
|
|
145707
145707
|
}, An = H0.getVideoTracks()[0];
|
|
145708
145708
|
onboardingAnalytics.updateCameraInfo(An);
|
|
145709
145709
|
const Dn = await onboardingAnalytics.checkForVirtualCameraByLabel(
|
|
@@ -216629,7 +216629,7 @@ path {
|
|
|
216629
216629
|
const [Ye, tt] = useState(Be), nt = () => {
|
|
216630
216630
|
tt("front");
|
|
216631
216631
|
}, ft = () => {
|
|
216632
|
-
tt("flipAnimation");
|
|
216632
|
+
addCameraBackEvent(), tt("flipAnimation");
|
|
216633
216633
|
}, ht = async () => {
|
|
216634
216634
|
await sleep(1e3), tt("back");
|
|
216635
216635
|
};
|
|
@@ -258383,6 +258383,20 @@ path {
|
|
|
258383
258383
|
onClose: () => idFlowManager.onClose()
|
|
258384
258384
|
}
|
|
258385
258385
|
);
|
|
258386
|
+
}, addCameraFrontEvent = () => {
|
|
258387
|
+
addEvent({
|
|
258388
|
+
token: idFlowManager.getToken(),
|
|
258389
|
+
code: "cameraFrontId",
|
|
258390
|
+
payload: { cameraFrontId: !0 }
|
|
258391
|
+
});
|
|
258392
|
+
}, addCameraBackEvent = () => {
|
|
258393
|
+
addEvent({
|
|
258394
|
+
token: idFlowManager.getToken(),
|
|
258395
|
+
code: "cameraBackId",
|
|
258396
|
+
payload: { cameraBackId: !0 }
|
|
258397
|
+
});
|
|
258398
|
+
}, addCameraEvent = (Be) => {
|
|
258399
|
+
Be ? addCameraBackEvent() : addCameraFrontEvent();
|
|
258386
258400
|
}, IdFlow = ({ initialMode: Be }) => {
|
|
258387
258401
|
const {
|
|
258388
258402
|
completeWithError: Le,
|
|
@@ -258391,27 +258405,37 @@ path {
|
|
|
258391
258405
|
isDeepsightEnabled: nt
|
|
258392
258406
|
} = useCaptureIdState(), ft = () => Ye.usSmartCapture && Be === "front" || Ye.onlyBack ? "back" : Be, [ht, gt] = useState(
|
|
258393
258407
|
Ye.showTutorial ? "tutorial" : idFlowManager.getPermissionsGranted() ? "capture" : "permissions"
|
|
258394
|
-
), At = ()
|
|
258408
|
+
), At = useRef(!1);
|
|
258409
|
+
useEffect(() => {
|
|
258410
|
+
(ht === "permissions" || ht === "capture") && !At.current && (addCameraEvent(
|
|
258411
|
+
Ye.onlyBack || Ye.usSmartCapture
|
|
258412
|
+
), At.current = !0);
|
|
258413
|
+
}, [
|
|
258414
|
+
ht,
|
|
258415
|
+
Ye.onlyBack,
|
|
258416
|
+
Ye.usSmartCapture
|
|
258417
|
+
]);
|
|
258418
|
+
const xt = () => {
|
|
258395
258419
|
idFlowManager.getPermissionsGranted() ? gt("capture") : gt("permissions");
|
|
258396
|
-
},
|
|
258420
|
+
}, Et = () => {
|
|
258397
258421
|
gt("capture");
|
|
258398
258422
|
};
|
|
258399
258423
|
if (ht === "tutorial")
|
|
258400
|
-
return Be === "passport" ? /* @__PURE__ */ jsxRuntimeExports.jsx(PassportTutorial, { onContinue:
|
|
258424
|
+
return Be === "passport" ? /* @__PURE__ */ jsxRuntimeExports.jsx(PassportTutorial, { onContinue: xt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(IdTutorial, { onContinue: xt });
|
|
258401
258425
|
if (ht === "permissions")
|
|
258402
258426
|
if (idFlowManager.getPermissionsGranted())
|
|
258403
|
-
|
|
258427
|
+
Et();
|
|
258404
258428
|
else
|
|
258405
258429
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
258406
258430
|
Permissions,
|
|
258407
258431
|
{
|
|
258408
|
-
onContinue:
|
|
258432
|
+
onContinue: Et,
|
|
258409
258433
|
uiConfig: tt,
|
|
258410
258434
|
onClose: () => idFlowManager.onClose(),
|
|
258411
|
-
emitError: (
|
|
258412
|
-
code:
|
|
258435
|
+
emitError: (kt) => Le({
|
|
258436
|
+
code: kt,
|
|
258413
258437
|
message: "Error in permissions",
|
|
258414
|
-
error: new Error(
|
|
258438
|
+
error: new Error(kt)
|
|
258415
258439
|
}),
|
|
258416
258440
|
isDeepsightEnabled: nt
|
|
258417
258441
|
}
|