@incodetech/core 0.0.0-dev-20261118-4e70dc73 → 0.0.0-dev-20261118-a5baca6e
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/{FaceDetectionProvider-B8VjYLtX.esm.js → FaceDetectionProvider-BWGLAUcT.esm.js} +4 -4
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Bx2a1X-l.esm.js → apiError-BSvcMDWp.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BeN9d9et.esm.js → authenticationManager-BdgHmyEG.esm.js} +3 -3
- package/dist/{authenticationManager-eYcurNiS.d.ts → authenticationManager-DeN8mraQ.d.ts} +1 -1
- package/dist/{authenticationStateMachine-D591MWdP.esm.js → authenticationStateMachine-3LoWXg-a.esm.js} +3 -3
- package/dist/camera.d.ts +5 -1
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DlvhoJYc.d.ts → consentManager-Bx_osBME.d.ts} +5 -5
- package/dist/{deepsightLoader-BNRWpi5D.esm.js → deepsightLoader-Bl0pNuNf.esm.js} +4 -4
- package/dist/{desktopCameraElection-Bu2QTynu.esm.js → desktopCameraElection-DGq3YDWU.esm.js} +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-Bt3-8L6d.esm.js → documentCaptureManager-D9LE-4ey.esm.js} +1 -1
- package/dist/{documentCaptureManager-BhGmZFF7.d.ts → documentCaptureManager-DLWTqjUr.d.ts} +2 -2
- package/dist/{documentCaptureStateMachine-BUy1LJ4r.esm.js → documentCaptureStateMachine-SXXKqpZz.esm.js} +4 -3
- package/dist/{documentSignatureStateMachine-3n12_IiO.esm.js → documentSignatureStateMachine-i3Ff_Eu-.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BoSFVRj1.esm.js → dynamicFormsManager-CFdNg1rT.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Q1Ryntc3.esm.js → dynamicFormsStateMachine-B3QwTmnp.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BS46AGjk.esm.js → ekybManager-lgZscObl.esm.js} +1 -1
- package/dist/{ekybStateMachine-X2Mvy5mZ.esm.js → ekybStateMachine-BE6HRAfU.esm.js} +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/{ekycPrefillManager-BNQXkYf5.esm.js → ekycPrefillManager-R76m9DQ3.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-HwtoiZkX.esm.js → ekycPrefillStateMachine-DzPUs_J0.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BaF5Hzmu.esm.js → electronicSignatureManager-BftT5_MQ.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-DhDPxxp-.d.ts → faceCaptureManagerFactory-D0pyWORs.d.ts} +10 -4
- package/dist/{faceCaptureManagerFactory-Da6Tfbo8.esm.js → faceCaptureManagerFactory-DF47tZXj.esm.js} +12 -7
- package/dist/{faceCaptureSetup-t20PYion.esm.js → faceCaptureSetup-BFPZy6WC.esm.js} +48 -34
- package/dist/{feature-management-C_-xbYLN.esm.js → feature-management-D3tsEbfQ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Dn9nzX6q.esm.js → flowCompletionService-B7VEC-6p.esm.js} +1 -1
- package/dist/{flowServices-BASJH6dk.esm.js → flowServices-BPUNQ6t0.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-MrZjrAYb.esm.js → geolocationManager-qzZYC2v_.esm.js} +1 -1
- package/dist/{geolocationStateMachine-wAE4tuGY.esm.js → geolocationStateMachine-C8GoJ7wP.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-CaRxd7_4.esm.js → idCaptureManager-CmMKMlMv.esm.js} +12 -6
- package/dist/{idCaptureManager-DzAMWmRO.d.ts → idCaptureManager-kmR_AuiW.d.ts} +5 -2
- package/dist/{idCaptureServices-CfXKITWC.esm.js → idCaptureServices-QCMz4i3g.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-BNxournC.esm.js → idCaptureStateMachine-CkQBNR5g.esm.js} +57 -40
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-CNGVEZ7B.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-CZ-qJ_Aa.d.ts → identityReuseManager-D_jiHp1n.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-VRf3BMre.esm.js → kybChecksManager-Dm0BvGqp.esm.js} +1 -1
- package/dist/{kybChecksStateMachine--xKRJ5aM.esm.js → kybChecksStateMachine-B0ld1vE7.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BGGbTEwN.d.ts → mandatoryConsentManager-EQg24XFE.d.ts} +5 -5
- package/dist/{permissionGuards-Dkz3FWte.esm.js → permissionGuards-BN_Tyjgt.esm.js} +1 -1
- package/dist/{permissionServices-IayHAnIi.esm.js → permissionServices-DB7ckY8v.esm.js} +16 -5
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-OzZ_AsrW.esm.js → runChildModule-B7yIPr42.esm.js} +1 -1
- package/dist/{sdkVersion-bwyLIRlS.esm.js → sdkVersion-Dyl2s20I.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DWaArwL1.esm.js → selfieErrorUtils-BV5VIq3v.esm.js} +1 -1
- package/dist/{selfieManager-C5a6Fw6W.d.ts → selfieManager-CAaZRbem.d.ts} +1 -1
- package/dist/{selfieManager-BjntOr-o.esm.js → selfieManager-CBYgnvRZ.esm.js} +3 -3
- package/dist/{selfieStateMachine-CZS_oXhL.esm.js → selfieStateMachine-DlTbqoOU.esm.js} +3 -3
- package/dist/{session-C1uJNFOS.esm.js → session-CawSv5pj.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Dj9Psc_3.esm.js → sessionInitializer-Bauw70jM.esm.js} +3 -3
- package/dist/{setup-DtedaNiv.esm.js → setup-L_AR4Em0.esm.js} +4 -4
- package/dist/{trueSightService-BoJpFzW9.esm.js → trueSightService-MT5_9XBE.esm.js} +1 -1
- package/dist/{types-BBHnkH6S.d.ts → types-Bybof0yq.d.ts} +8 -1
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CaVUb1DL.d.ts → types-Cy6Lx3L6.d.ts} +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-3D3LKUAj.esm.js → videoSelfieCameraWarmer-DDTpSiXF.esm.js} +4 -4
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +17 -17
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { r as getToken } from "./api-DSZSaaWr.esm.js";
|
|
3
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
4
|
-
import "./sessionInitializer-
|
|
3
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-MT5_9XBE.esm.js";
|
|
4
|
+
import "./sessionInitializer-Bauw70jM.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
|
|
6
6
|
import { s as isIPhone14OrHigher } from "./platform-GIg4uPWe.esm.js";
|
|
7
7
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
9
9
|
import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
12
|
-
import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DB7ckY8v.esm.js";
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-BWGLAUcT.esm.js";
|
|
12
|
+
import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-DGq3YDWU.esm.js";
|
|
13
13
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
14
14
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
15
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
15
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BN_Tyjgt.esm.js";
|
|
16
16
|
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
17
17
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
18
18
|
//#region src/internal/avatar/concealment.ts
|
|
@@ -925,6 +925,7 @@ const faceCaptureMachine = setup({
|
|
|
925
925
|
uploadError: void 0,
|
|
926
926
|
userNotRecognized: void 0,
|
|
927
927
|
permissionResult: void 0,
|
|
928
|
+
retryDeniedMotionPermission: false,
|
|
928
929
|
deepsightReady: false,
|
|
929
930
|
manualCaptureTriggered: false,
|
|
930
931
|
retainManualMode: false,
|
|
@@ -948,7 +949,7 @@ const faceCaptureMachine = setup({
|
|
|
948
949
|
setUploadErrorFromUploadValidation: assign({ uploadError: () => FACE_ERROR_CODES.SERVER }),
|
|
949
950
|
setTerminalError: assign({ error: () => "Authentication failed" }),
|
|
950
951
|
cleanup: () => void 0,
|
|
951
|
-
setPermissionResultFromEvent: assign({ permissionResult: ({ event }) => event.output }),
|
|
952
|
+
setPermissionResultFromEvent: assign({ permissionResult: ({ context, event }) => resolveStoredPermissionResult(event.output, context.permissionResult) }),
|
|
952
953
|
setPermissionDenied: assign({ permissionResult: () => "denied" }),
|
|
953
954
|
setPermissionPrompt: assign({ permissionResult: () => "prompt" }),
|
|
954
955
|
setPermissionRefresh: assign({ permissionResult: () => "refresh" }),
|
|
@@ -1136,6 +1137,7 @@ const faceCaptureMachine = setup({
|
|
|
1136
1137
|
uploadError: void 0,
|
|
1137
1138
|
userNotRecognized: carried.userNotRecognized,
|
|
1138
1139
|
permissionResult: void 0,
|
|
1140
|
+
retryDeniedMotionPermission: false,
|
|
1139
1141
|
deepsightReady: false,
|
|
1140
1142
|
encryptedBase64Image: void 0,
|
|
1141
1143
|
uploadRecordingId: void 0,
|
|
@@ -1383,33 +1385,45 @@ const faceCaptureMachine = setup({
|
|
|
1383
1385
|
BACK: "idle",
|
|
1384
1386
|
REQUEST_PERMISSION: "requesting"
|
|
1385
1387
|
} },
|
|
1386
|
-
requesting: {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1388
|
+
requesting: {
|
|
1389
|
+
exit: assign({ retryDeniedMotionPermission: false }),
|
|
1390
|
+
invoke: {
|
|
1391
|
+
id: "requestPermission",
|
|
1392
|
+
src: "requestPermission",
|
|
1393
|
+
input: ({ context }) => ({
|
|
1394
|
+
permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
|
|
1395
|
+
requestMotionPermission: context.config.ds === true,
|
|
1396
|
+
retryDeniedMotionPermission: context.retryDeniedMotionPermission,
|
|
1397
|
+
requestAudio: requestsFaceSessionAudio(context.config)
|
|
1398
|
+
}),
|
|
1399
|
+
onDone: [
|
|
1400
|
+
{
|
|
1401
|
+
target: "motionDenied",
|
|
1402
|
+
guard: ({ event }) => event.output === "motionDenied"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
target: "#faceCapture.capture",
|
|
1406
|
+
guard: "isReadyForCapture",
|
|
1407
|
+
actions: "setPermissionResultFromEvent"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
target: "denied",
|
|
1411
|
+
guard: ({ event }) => event.output === "denied",
|
|
1412
|
+
actions: "setPermissionResultFromEvent"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
target: "waitingForUser",
|
|
1416
|
+
actions: "setPermissionResultFromEvent"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
onError: { target: "denied" }
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
denied: { entry: "setPermissionRefresh" },
|
|
1423
|
+
motionDenied: { on: { REQUEST_PERMISSION: {
|
|
1424
|
+
target: "requesting",
|
|
1425
|
+
actions: assign({ retryDeniedMotionPermission: true })
|
|
1426
|
+
} } }
|
|
1413
1427
|
}
|
|
1414
1428
|
},
|
|
1415
1429
|
capture: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-Dyl2s20I.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-D3tsEbfQ.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/flow.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
|
6
6
|
import { t as EkycConfig } from "./types-DEa3taWc.js";
|
|
7
7
|
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-B2DGXHe6.js";
|
|
8
8
|
import { t as AuthenticationConfig } from "./types-C2uJrJrS.js";
|
|
9
|
-
import { r as DocumentCaptureConfig } from "./types-
|
|
9
|
+
import { r as DocumentCaptureConfig } from "./types-Cy6Lx3L6.js";
|
|
10
10
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
11
11
|
import { t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
12
|
-
import { u as IdCaptureConfig } from "./types-
|
|
12
|
+
import { u as IdCaptureConfig } from "./types-Bybof0yq.js";
|
|
13
13
|
import { r as MandatoryConsentConfig } from "./types-BkWUNheX.js";
|
|
14
14
|
import { t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
15
15
|
import { t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
2
|
import "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
4
|
-
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-
|
|
4
|
+
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-BPUNQ6t0.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-
|
|
9
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
8
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-B7VEC-6p.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B7yIPr42.esm.js";
|
|
10
10
|
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
11
11
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
12
12
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
package/dist/{flowCompletionService-Dn9nzX6q.esm.js → flowCompletionService-B7VEC-6p.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BSvcMDWp.esm.js";
|
|
3
3
|
//#region src/modules/flow/flowCompletionService.ts
|
|
4
4
|
const getFinishStatus = async (flowId, signal) => {
|
|
5
5
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as getWasmStatus } from "./warmup-BZOMg303.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
3
3
|
import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
4
|
-
import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-
|
|
5
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
4
|
+
import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-Bauw70jM.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D3tsEbfQ.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-BSvcMDWp.esm.js";
|
|
7
|
+
import "./session-CawSv5pj.esm.js";
|
|
8
8
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
9
9
|
import { a as prefetchStartInfo } from "./phoneServices-C9lFIuCM.esm.js";
|
|
10
10
|
//#region src/modules/flow/dashboardConfig.ts
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-qzZYC2v_.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-C8GoJ7wP.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
|
2
2
|
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
5
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-C8GoJ7wP.esm.js";
|
|
6
6
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
7
7
|
var BrowserGeolocationProvider = class {
|
|
8
8
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-wAE4tuGY.esm.js → geolocationStateMachine-C8GoJ7wP.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { i as isIOS, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
3
|
-
import { n as isConnectivityError } from "./apiError-
|
|
3
|
+
import { n as isConnectivityError } from "./apiError-BSvcMDWp.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-CNGVEZ7B.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-L_AR4Em0.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-BPUNQ6t0.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-BWGLAUcT.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CRn9jT4K.esm.js";
|
|
12
|
-
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
12
|
+
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-QCMz4i3g.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
14
|
-
import { r as getFinishStatus } from "./flowCompletionService-
|
|
15
|
-
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
14
|
+
import { r as getFinishStatus } from "./flowCompletionService-B7VEC-6p.esm.js";
|
|
15
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DDTpSiXF.esm.js";
|
|
16
16
|
import { t as CameraCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
17
17
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
18
18
|
/** Default autocapture window for the selfie step. */
|
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
3
|
-
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-
|
|
2
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-kmR_AuiW.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
6
|
-
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Bybof0yq.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-CkQBNR5g.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CmMKMlMv.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-QCMz4i3g.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-L_AR4Em0.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
3
3
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
4
4
|
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
@@ -9,10 +9,10 @@ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
|
9
9
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
10
10
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
|
|
11
11
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
12
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
12
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DB7ckY8v.esm.js";
|
|
13
13
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
14
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
15
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
14
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-CkQBNR5g.esm.js";
|
|
15
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-QCMz4i3g.esm.js";
|
|
16
16
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
|
|
17
17
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
18
18
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -84,6 +84,7 @@ function getPermissionStatus(snapshot) {
|
|
|
84
84
|
if (snapshot.matches({ permissions: "learnMore" })) return "learnMore";
|
|
85
85
|
if (snapshot.matches({ permissions: "requesting" })) return "requesting";
|
|
86
86
|
if (snapshot.matches({ permissions: "denied" })) return "denied";
|
|
87
|
+
if (snapshot.matches({ permissions: "motionDenied" })) return "motionDenied";
|
|
87
88
|
if (snapshot.matches({ permissions: "motionOnly" })) return "motionOnly";
|
|
88
89
|
}
|
|
89
90
|
function getCaptureStatus(snapshot) {
|
|
@@ -406,6 +407,7 @@ function mapState(snapshot, presentationStream) {
|
|
|
406
407
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
407
408
|
const snapshot = actor.getSnapshot();
|
|
408
409
|
if (snapshot.context.dependencies) snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
|
|
410
|
+
const isMotionDenied = () => actor.getSnapshot().matches({ permissions: "motionDenied" });
|
|
409
411
|
return {
|
|
410
412
|
load() {
|
|
411
413
|
const { config } = actor.getSnapshot().context;
|
|
@@ -468,9 +470,12 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
468
470
|
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
469
471
|
* the camera pre-warms it records the user's intent to continue, so the
|
|
470
472
|
* tutorial advances to capture as soon as the warm-up finishes).
|
|
473
|
+
*
|
|
474
|
+
* In `permissions.motionDenied` it asks iOS for Motion & Orientation again.
|
|
475
|
+
* Call it straight from a user tap: iOS only shows its prompt during one.
|
|
471
476
|
*/
|
|
472
477
|
requestPermission(options) {
|
|
473
|
-
if (options?.trigger !== "automatic") trackElementClicked?.("requestPermission");
|
|
478
|
+
if (options?.trigger !== "automatic") trackElementClicked?.(isMotionDenied() ? "primaryCTA.allowPermission" : "requestPermission");
|
|
474
479
|
actor.send({ type: "REQUEST_PERMISSION" });
|
|
475
480
|
},
|
|
476
481
|
goToLearnMore() {
|
|
@@ -482,7 +487,7 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
482
487
|
actor.send({ type: "BACK" });
|
|
483
488
|
},
|
|
484
489
|
close() {
|
|
485
|
-
trackElementClicked?.("close");
|
|
490
|
+
trackElementClicked?.(isMotionDenied() ? "secondaryCTA.quitProcess" : "close");
|
|
486
491
|
actor.send({ type: "QUIT" });
|
|
487
492
|
},
|
|
488
493
|
reset() {
|
|
@@ -711,6 +716,7 @@ function getPermissionScreen(value) {
|
|
|
711
716
|
case "idle":
|
|
712
717
|
case "requesting": return "idCapture.permissions";
|
|
713
718
|
case "denied": return "idCapture.permissions.requiredWeb";
|
|
719
|
+
case "motionDenied": return "idCapture.permissions.motionPermissionDenied";
|
|
714
720
|
case "learnMore": return "idCapture.permissions.required";
|
|
715
721
|
default: return "idCapture.permissions.default";
|
|
716
722
|
}
|
|
@@ -7,12 +7,12 @@ import "./index-DHuAkTe0.js";
|
|
|
7
7
|
import "./createFaceAvatar-BimBTONm.js";
|
|
8
8
|
import { a as RegulationTypes } from "./types-B2DGXHe6.js";
|
|
9
9
|
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-XcOtT1TP.js";
|
|
10
|
-
import { n as PermissionStatus } from "./types-
|
|
10
|
+
import { n as PermissionStatus } from "./types-CeEcakO7.js";
|
|
11
11
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
|
|
12
12
|
import { n as DeepsightService } from "./StreamCanvasCapture-BnBfA6fb.js";
|
|
13
13
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
14
14
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
15
|
-
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
15
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Bybof0yq.js";
|
|
16
16
|
//#region src/internal/http/endpoints.d.ts
|
|
17
17
|
/**
|
|
18
18
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -748,6 +748,9 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
748
748
|
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
749
749
|
* the camera pre-warms it records the user's intent to continue, so the
|
|
750
750
|
* tutorial advances to capture as soon as the warm-up finishes).
|
|
751
|
+
*
|
|
752
|
+
* In `permissions.motionDenied` it asks iOS for Motion & Orientation again.
|
|
753
|
+
* Call it straight from a user tap: iOS only shows its prompt during one.
|
|
751
754
|
*/
|
|
752
755
|
requestPermission(options?: {
|
|
753
756
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-L_AR4Em0.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-D3tsEbfQ.esm.js";
|
|
4
4
|
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
5
5
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
6
6
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
package/dist/{idCaptureStateMachine-BNxournC.esm.js → idCaptureStateMachine-CkQBNR5g.esm.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-L_AR4Em0.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
4
4
|
import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
5
5
|
import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
6
6
|
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
7
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
8
|
-
import { n as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-MT5_9XBE.esm.js";
|
|
8
|
+
import { n as getDisableIpify } from "./sessionInitializer-Bauw70jM.esm.js";
|
|
9
9
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
10
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
10
|
+
import { s as exposeExperimentOnce } from "./feature-management-D3tsEbfQ.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
|
|
12
12
|
import { d as isSamsungDevice, i as isIOS, l as isMacOsSafari, o as isIPad, s as isIPhone14OrHigher, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
13
|
-
import "./session-
|
|
13
|
+
import "./session-CawSv5pj.esm.js";
|
|
14
14
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
15
15
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
16
16
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
17
17
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-eYiyWjh0.esm.js";
|
|
18
18
|
import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
19
|
-
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-
|
|
20
|
-
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
19
|
+
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-DB7ckY8v.esm.js";
|
|
20
|
+
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-DGq3YDWU.esm.js";
|
|
21
21
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
22
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
22
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BN_Tyjgt.esm.js";
|
|
23
23
|
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
24
24
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
25
25
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
@@ -28,7 +28,7 @@ import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
|
28
28
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
29
29
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
30
30
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CRn9jT4K.esm.js";
|
|
31
|
-
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-
|
|
31
|
+
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-QCMz4i3g.esm.js";
|
|
32
32
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
33
33
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
34
34
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
@@ -1393,6 +1393,8 @@ const isSoleDigitalIdRedirectWithoutChooserGuard = ({ context }) => !(context.co
|
|
|
1393
1393
|
const isPermissionGrantedGuard = ({ event }) => {
|
|
1394
1394
|
return getPermissionOutput(event) === "granted";
|
|
1395
1395
|
};
|
|
1396
|
+
/** iOS refused Motion & Orientation; the camera permission is untouched. */
|
|
1397
|
+
const isMotionPermissionDeniedGuard = ({ event }) => getPermissionOutput(event) === "motionDenied";
|
|
1396
1398
|
const isReadyForCaptureGuard = ({ context, event }) => {
|
|
1397
1399
|
return isReadyForCaptureFromPermission(resolveStoredPermissionResult(getPermissionOutput(event), context.permissionResult), context.config.ds);
|
|
1398
1400
|
};
|
|
@@ -2038,7 +2040,7 @@ fromPromise(async ({ input }) => {
|
|
|
2038
2040
|
});
|
|
2039
2041
|
fromPromise(async ({ input }) => {
|
|
2040
2042
|
if (!input.dependencies) return;
|
|
2041
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2043
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Bl0pNuNf.esm.js");
|
|
2042
2044
|
return loadDeepsightSession({
|
|
2043
2045
|
ds: input.ds,
|
|
2044
2046
|
storage: input.dependencies.storage,
|
|
@@ -2121,6 +2123,7 @@ function getResetContextValues(context) {
|
|
|
2121
2123
|
forceFinishAfterProcessing: false,
|
|
2122
2124
|
uploadError: void 0,
|
|
2123
2125
|
permissionResult: void 0,
|
|
2126
|
+
retryDeniedMotionPermission: false,
|
|
2124
2127
|
resetDetection: void 0,
|
|
2125
2128
|
idType: void 0,
|
|
2126
2129
|
qualityElements: void 0,
|
|
@@ -2481,7 +2484,7 @@ function cleanup(service) {
|
|
|
2481
2484
|
service.cleanup();
|
|
2482
2485
|
} catch {}
|
|
2483
2486
|
}
|
|
2484
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2487
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-Bl0pNuNf.esm.js")).loadDeepsightSession(input)) {
|
|
2485
2488
|
let disposed = false;
|
|
2486
2489
|
let preparation;
|
|
2487
2490
|
let service;
|
|
@@ -4610,6 +4613,7 @@ const idCaptureMachine = setup({
|
|
|
4610
4613
|
hasShowDocumentChooser: hasShowDocumentChooserGuard,
|
|
4611
4614
|
needsCountryDetection: needsCountryDetectionGuard,
|
|
4612
4615
|
isPermissionGranted: ({ event }) => isPermissionGrantedGuard({ event: asPublicIdEvent(event) }),
|
|
4616
|
+
isMotionPermissionDenied: ({ event }) => isMotionPermissionDeniedGuard({ event: asPublicIdEvent(event) }),
|
|
4613
4617
|
isReadyForCapture: ({ context, event }) => isReadyForCaptureGuard({
|
|
4614
4618
|
context,
|
|
4615
4619
|
event: asPublicIdEvent(event)
|
|
@@ -4764,6 +4768,7 @@ const idCaptureMachine = setup({
|
|
|
4764
4768
|
forceFinishAfterProcessing: false,
|
|
4765
4769
|
uploadError: void 0,
|
|
4766
4770
|
permissionResult: void 0,
|
|
4771
|
+
retryDeniedMotionPermission: false,
|
|
4767
4772
|
resetDetection: void 0,
|
|
4768
4773
|
idType: void 0,
|
|
4769
4774
|
qualityElements: void 0,
|
|
@@ -5061,7 +5066,7 @@ const idCaptureMachine = setup({
|
|
|
5061
5066
|
id: "requestTutorialMotionPermission",
|
|
5062
5067
|
src: "requestMotionPermission",
|
|
5063
5068
|
onDone: [{
|
|
5064
|
-
target: "#idCapture.permissions.
|
|
5069
|
+
target: "#idCapture.permissions.motionDenied",
|
|
5065
5070
|
guard: ({ event }) => event.output === "denied"
|
|
5066
5071
|
}, { target: "#idCapture.permissions" }],
|
|
5067
5072
|
onError: { target: "#idCapture.permissions.denied" }
|
|
@@ -5130,34 +5135,46 @@ const idCaptureMachine = setup({
|
|
|
5130
5135
|
BACK: "idle",
|
|
5131
5136
|
REQUEST_PERMISSION: "requesting"
|
|
5132
5137
|
} },
|
|
5133
|
-
requesting: {
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5138
|
+
requesting: {
|
|
5139
|
+
exit: assign({ retryDeniedMotionPermission: false }),
|
|
5140
|
+
invoke: {
|
|
5141
|
+
id: "requestPermission",
|
|
5142
|
+
src: "requestPermission",
|
|
5143
|
+
input: ({ context, self }) => ({
|
|
5144
|
+
permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
|
|
5145
|
+
requestMotionPermission: context.config.ds === true,
|
|
5146
|
+
retryDeniedMotionPermission: context.retryDeniedMotionPermission,
|
|
5147
|
+
requestAudio: requestsIdSessionAudio(context.config),
|
|
5148
|
+
acceptStream: (value) => getIdProtectedCaptureController(self).storePreAcquiredStream(value)
|
|
5149
|
+
}),
|
|
5150
|
+
onDone: [
|
|
5151
|
+
{
|
|
5152
|
+
target: "motionDenied",
|
|
5153
|
+
guard: "isMotionPermissionDenied"
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
target: "#idCapture.capture",
|
|
5157
|
+
guard: "isReadyForCapture",
|
|
5158
|
+
actions: "setPermissionResultAndStream"
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
target: "denied",
|
|
5162
|
+
guard: ({ event }) => getPermissionResultFromEvent(event) === "denied",
|
|
5163
|
+
actions: "setPermissionResultAndStream"
|
|
5164
|
+
},
|
|
5165
|
+
{
|
|
5166
|
+
target: "waitingForUser",
|
|
5167
|
+
actions: "setPermissionResultAndStream"
|
|
5168
|
+
}
|
|
5169
|
+
],
|
|
5170
|
+
onError: { target: "denied" }
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
denied: { entry: assign({ permissionResult: () => "refresh" }) },
|
|
5174
|
+
motionDenied: { on: { REQUEST_PERMISSION: {
|
|
5175
|
+
target: "requesting",
|
|
5176
|
+
actions: assign({ retryDeniedMotionPermission: true })
|
|
5177
|
+
} } }
|
|
5161
5178
|
}
|
|
5162
5179
|
},
|
|
5163
5180
|
capture: {
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "submitting" | "inputting" | "loading" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as IdentityReuseConfig, f as IdentityReuseOutput, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, m as SubmitResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as ReusableDocument, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-
|
|
1
|
+
import { c as identityReuseMachine, d as IdentityReuseConfig, f as IdentityReuseOutput, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, m as SubmitResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as ReusableDocument, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-D_jiHp1n.js";
|
|
2
2
|
export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseOutput, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|