@incodetech/welcome 1.85.0-20251118131934.0 → 1.85.0-20251118174739.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.
- package/dist/onBoarding.mjs +13 -31
- package/dist/onBoarding.umd.js +3 -3
- package/package.json +1 -1
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.32";
|
|
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 [
|
|
@@ -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-20251118174739.0";
|
|
8378
8378
|
function e$2(Be, Le) {
|
|
8379
8379
|
return function(Ye, tt) {
|
|
8380
8380
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -9504,7 +9504,7 @@ class DetectionSetup {
|
|
|
9504
9504
|
localStorage.setItem(
|
|
9505
9505
|
"isIPhone14OrHigher",
|
|
9506
9506
|
String(
|
|
9507
|
-
window.outerHeight === 852 && window.outerWidth === 393 || window.outerHeight === 932 && window.outerWidth === 430 || window.innerHeight === 631 && window.innerWidth === 375 || window.innerHeight === 874 && window.innerWidth === 402 || // iPhone 17
|
|
9507
|
+
window.outerHeight === 852 && window.outerWidth === 393 || window.outerHeight === 932 && window.outerWidth === 430 || window.innerHeight === 631 && window.innerWidth === 375 || window.innerHeight === 920 && window.innerWidth === 402 || window.outerHeight === 874 && window.outerWidth === 402 || window.innerHeight === 874 && window.innerWidth === 402 || // iPhone 17
|
|
9508
9508
|
window.outerHeight === 912 && window.outerWidth === 420 || // iPhone 17 Air
|
|
9509
9509
|
window.outerHeight === 873 && window.outerWidth === 402 || // iPhone 17 Pro
|
|
9510
9510
|
window.outerHeight === 956 && window.outerWidth === 440
|
|
@@ -259349,67 +259349,49 @@ path {
|
|
|
259349
259349
|
onClose: () => idFlowManager.onClose()
|
|
259350
259350
|
}
|
|
259351
259351
|
);
|
|
259352
|
-
}, addCameraFrontEvent = () => {
|
|
259353
|
-
addEvent({
|
|
259354
|
-
token: idFlowManager.getToken(),
|
|
259355
|
-
code: "cameraFrontId",
|
|
259356
|
-
payload: { cameraFrontId: !0 }
|
|
259357
|
-
});
|
|
259358
259352
|
}, addCameraBackEvent = () => {
|
|
259359
259353
|
addEvent({
|
|
259360
259354
|
token: idFlowManager.getToken(),
|
|
259361
259355
|
code: "cameraBackId",
|
|
259362
259356
|
payload: { cameraBackId: !0 }
|
|
259363
259357
|
});
|
|
259364
|
-
}, addCameraEvent = (Be) => {
|
|
259365
|
-
Be ? addCameraBackEvent() : addCameraFrontEvent();
|
|
259366
259358
|
}, IdFlow = ({ initialMode: Be }) => {
|
|
259367
259359
|
const {
|
|
259368
259360
|
completeWithError: Le,
|
|
259369
259361
|
captureConfiguration: Ye,
|
|
259370
259362
|
uiConfig: tt,
|
|
259371
259363
|
isDeepsightEnabled: nt
|
|
259372
|
-
} = useCaptureIdState(), ft = () => Ye.usSmartCapture && Be === "front" || Ye.onlyBack ? "back" : Be, ht = () => Ye.ageAssurance ? "ageVerification" : Ye.showTutorial ? "tutorial" : idFlowManager.getPermissionsGranted() ? "capture" : "permissions", [gt, At] = useState(ht()), xt =
|
|
259373
|
-
useEffect(() => {
|
|
259374
|
-
(gt === "permissions" || gt === "capture") && !xt.current && (addCameraEvent(
|
|
259375
|
-
Ye.onlyBack || Ye.usSmartCapture
|
|
259376
|
-
), xt.current = !0);
|
|
259377
|
-
}, [
|
|
259378
|
-
gt,
|
|
259379
|
-
Ye.onlyBack,
|
|
259380
|
-
Ye.usSmartCapture
|
|
259381
|
-
]);
|
|
259382
|
-
const Et = () => {
|
|
259364
|
+
} = useCaptureIdState(), ft = () => Ye.usSmartCapture && Be === "front" || Ye.onlyBack ? "back" : Be, ht = () => Ye.ageAssurance ? "ageVerification" : Ye.showTutorial ? "tutorial" : idFlowManager.getPermissionsGranted() ? "capture" : "permissions", [gt, At] = useState(ht()), xt = () => {
|
|
259383
259365
|
Ye.showTutorial ? At("tutorial") : idFlowManager.getPermissionsGranted() ? At("capture") : At("permissions");
|
|
259384
|
-
},
|
|
259366
|
+
}, Et = () => {
|
|
259385
259367
|
idFlowManager.getPermissionsGranted() ? At("capture") : At("permissions");
|
|
259386
|
-
},
|
|
259368
|
+
}, kt = () => {
|
|
259387
259369
|
At("capture");
|
|
259388
259370
|
};
|
|
259389
259371
|
if (gt === "ageVerification")
|
|
259390
259372
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
259391
259373
|
AgeVerification,
|
|
259392
259374
|
{
|
|
259393
|
-
onContinue:
|
|
259375
|
+
onContinue: xt,
|
|
259394
259376
|
mode: Be === "passport" ? "passport" : "id"
|
|
259395
259377
|
}
|
|
259396
259378
|
);
|
|
259397
259379
|
if (gt === "tutorial")
|
|
259398
|
-
return Be === "passport" ? /* @__PURE__ */ jsxRuntimeExports.jsx(PassportTutorial, { onContinue:
|
|
259380
|
+
return Be === "passport" ? /* @__PURE__ */ jsxRuntimeExports.jsx(PassportTutorial, { onContinue: Et }) : /* @__PURE__ */ jsxRuntimeExports.jsx(IdTutorial, { onContinue: Et });
|
|
259399
259381
|
if (gt === "permissions")
|
|
259400
259382
|
if (idFlowManager.getPermissionsGranted())
|
|
259401
|
-
|
|
259383
|
+
kt();
|
|
259402
259384
|
else
|
|
259403
259385
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
259404
259386
|
Permissions,
|
|
259405
259387
|
{
|
|
259406
|
-
onContinue:
|
|
259388
|
+
onContinue: kt,
|
|
259407
259389
|
uiConfig: tt,
|
|
259408
259390
|
onClose: () => idFlowManager.onClose(),
|
|
259409
|
-
emitError: (
|
|
259410
|
-
code:
|
|
259391
|
+
emitError: (Ct) => Le({
|
|
259392
|
+
code: Ct,
|
|
259411
259393
|
message: "Error in permissions",
|
|
259412
|
-
error: new Error(
|
|
259394
|
+
error: new Error(Ct)
|
|
259413
259395
|
}),
|
|
259414
259396
|
isDeepsightEnabled: nt
|
|
259415
259397
|
}
|