@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.11
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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +8 -8
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
- package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +40 -4
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-BSnbg4HO.esm.js → api-CZpuJuZl.esm.js} +1 -1
- package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BamZ815u.esm.js} +1 -1
- package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
- package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
- package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B2F_VeAo.d.ts} +8 -7
- package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
- package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
- package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +5 -4
- package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
- package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +18 -20
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
- package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-CCtbmrFd.esm.js} +3 -2
- package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +8 -7
- package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-XpxgCAoC.esm.js} +11 -10
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
- package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-nwJRel2s.esm.js} +333 -64
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-FcqA6oU4.esm.js} +44 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +7 -5
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
- package/dist/events-CP3yOzAl.esm.js +299 -0
- package/dist/events.d.ts +3 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +39 -39
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +14 -7
- package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
- package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
- package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +18 -6
- package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-DG016L6E.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +47 -11
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-BpeAbbXc.esm.js} +2 -2
- package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-rDg1bAMs.esm.js} +373 -12
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
- package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +4 -3
- package/dist/id-selfie-flow.esm.js +12 -11
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +1 -1
- package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
- package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +7 -6
- package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +21 -19
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +97 -0
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-Btj1EhiM.d.ts → index-DM43R87x.d.ts} +1 -1
- package/dist/{index-CSPOoqah.d.ts → index-DxYNO94y.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +8 -7
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +9 -8
- package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
- package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
- package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
- package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
- package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
- package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
- package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +3 -3
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
- package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
- package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
- package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
- package/dist/{session-D0DWDKp9.esm.js → session-C7x_iJ-p.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-k-hKIBg8.esm.js} +9 -8
- package/dist/{setup-BpjzWqR1.esm.js → setup-BRbhjHiU.esm.js} +10 -9
- package/dist/{setup-CG6oLkAa.d.ts → setup-CpXbdA1X.d.ts} +1 -1
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-C2sigf9p.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-DaUNvo-o.esm.js → tri-CI2exudk.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-DhW2O8mB.esm.js} +6 -3
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-CgihAhT_.d.ts → types-9wlf1-GE.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/{types-BqlZSoZ-.d.ts → types-Cpdum4vi.d.ts} +1 -1
- package/dist/{types-Cbm9J2yF.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-P9LzsfRo.d.ts → types-DJPU3W2M.d.ts} +1 -1
- package/dist/{events-C7h7oaTE.esm.js → types-DYYMdAGv.esm.js} +3 -298
- package/dist/{types-TisHEbBg.d.ts → types-Ddc4Tr_f.d.ts} +28 -1
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +6 -6
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
- package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +51 -43
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +6 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
- package/dist/types-kLsU6Jkt.d.ts +0 -6
package/dist/flow.esm.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import "./events-CP3yOzAl.esm.js";
|
|
2
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
3
|
-
import { a as resolveDashboardModuleConfig, c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as
|
|
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-rDg1bAMs.esm.js";
|
|
5
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
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-BpeAbbXc.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CXLcOcXN.esm.js";
|
|
10
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
9
11
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
10
12
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
11
13
|
id: "noOpFlowModule",
|
|
@@ -376,6 +378,15 @@ function createModuleLoader(registry) {
|
|
|
376
378
|
}
|
|
377
379
|
//#endregion
|
|
378
380
|
//#region src/modules/flow/orchestratedFlowStateMachine.ts
|
|
381
|
+
/**
|
|
382
|
+
* Whether only the step's own machine can end it: a host's `completeModule()`,
|
|
383
|
+
* or a continuable `errorModule()`, is dropped while it runs (owner decision
|
|
384
|
+
* 12). Today that is the identity search, whose answer the reuse step after it
|
|
385
|
+
* reads.
|
|
386
|
+
*/
|
|
387
|
+
function endsOnlyThroughItsMachine(step) {
|
|
388
|
+
return step === "IDENTITY_SEARCH";
|
|
389
|
+
}
|
|
379
390
|
function getModuleConfig(module, flow) {
|
|
380
391
|
if (!module || !flow) return {};
|
|
381
392
|
return resolveFlowModuleConfig(module, flow);
|
|
@@ -401,7 +412,8 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
401
412
|
isHomeContinueLoading,
|
|
402
413
|
deferActivation: context.deferActivation,
|
|
403
414
|
activationResolved: false,
|
|
404
|
-
skipFaceMatch: false
|
|
415
|
+
skipFaceMatch: false,
|
|
416
|
+
armedPresets: []
|
|
405
417
|
};
|
|
406
418
|
}
|
|
407
419
|
function createInitialContext(input) {
|
|
@@ -423,22 +435,41 @@ function createInitialContext(input) {
|
|
|
423
435
|
function homeScreenEnabled(context, flow) {
|
|
424
436
|
return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
|
|
425
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Whether a machine is registered for a module key, eagerly or lazily. Reads
|
|
440
|
+
* the registries when it is called: `<incode-flow>` fills its lazy registry
|
|
441
|
+
* inside `getFlow`, so a check made after `getFlow` sees the keys it added.
|
|
442
|
+
*/
|
|
443
|
+
function canResolveModule(context, key) {
|
|
444
|
+
return context.registeredModules[key] != null || context.lazyRegisteredModules[key] != null;
|
|
445
|
+
}
|
|
426
446
|
function shouldEnterHome(context) {
|
|
427
447
|
if (!homeScreenEnabled(context, context.flow)) return false;
|
|
428
448
|
const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
429
449
|
return context.currentStepIndex === firstRealIndex;
|
|
430
450
|
}
|
|
431
451
|
const prefetchedLazyModules = /* @__PURE__ */ new WeakSet();
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
452
|
+
/**
|
|
453
|
+
* The steps that can run after the current one: the next step, or, on a
|
|
454
|
+
* step where a preset decides the path, the next step on each path.
|
|
455
|
+
*/
|
|
456
|
+
function getStepsThatMayRunNext(context) {
|
|
457
|
+
return stepsThatMayRunNext({
|
|
458
|
+
armedPresets: context.armedPresets,
|
|
459
|
+
steps: context.steps,
|
|
460
|
+
currentStepIndex: context.currentStepIndex
|
|
440
461
|
});
|
|
441
462
|
}
|
|
463
|
+
function prefetchNextLazyModules(context) {
|
|
464
|
+
for (const nextStep of getStepsThatMayRunNext(context)) {
|
|
465
|
+
const nextLazyModule = context.lazyRegisteredModules[nextStep];
|
|
466
|
+
if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) continue;
|
|
467
|
+
prefetchedLazyModules.add(nextLazyModule);
|
|
468
|
+
nextLazyModule().catch(() => {
|
|
469
|
+
prefetchedLazyModules.delete(nextLazyModule);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
}
|
|
442
473
|
const homeContinueOn = { HOME_CONTINUE: { actions: "setHomeContinueLoading" } };
|
|
443
474
|
const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
444
475
|
types: {
|
|
@@ -449,9 +480,21 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
449
480
|
actors: {
|
|
450
481
|
resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
|
|
451
482
|
fetchFlow: fromPromise(async ({ input, signal }) => {
|
|
452
|
-
const
|
|
483
|
+
const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
|
|
484
|
+
const arming = armFlowPresets(served, input.canResolve);
|
|
485
|
+
if (arming.status === "misconfigured") return {
|
|
486
|
+
flow: served,
|
|
487
|
+
arming
|
|
488
|
+
};
|
|
489
|
+
const flow = arming.armedPresets.length > 0 ? {
|
|
490
|
+
...served,
|
|
491
|
+
flowModules: arming.modules
|
|
492
|
+
} : served;
|
|
453
493
|
await loadFlowConfigConverters(flow);
|
|
454
|
-
return
|
|
494
|
+
return {
|
|
495
|
+
flow,
|
|
496
|
+
arming
|
|
497
|
+
};
|
|
455
498
|
}),
|
|
456
499
|
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
|
|
457
500
|
runChildModule,
|
|
@@ -476,7 +519,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
476
519
|
setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
|
|
477
520
|
clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
|
|
478
521
|
setFlowData: assign(({ event }) => {
|
|
479
|
-
const flow =
|
|
522
|
+
const { flow, arming } = event.output;
|
|
480
523
|
const flowModules = flow.flowModules ?? [];
|
|
481
524
|
const firstModule = flowModules[0];
|
|
482
525
|
const config = getModuleConfig(firstModule, flow);
|
|
@@ -486,7 +529,84 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
486
529
|
currentStepIndex: flowModules.length > 0 ? 0 : -1,
|
|
487
530
|
currentStep: firstModule?.key,
|
|
488
531
|
config,
|
|
489
|
-
currentModuleMachine: void 0
|
|
532
|
+
currentModuleMachine: void 0,
|
|
533
|
+
armedPresets: arming.status === "armed" ? arming.armedPresets : []
|
|
534
|
+
};
|
|
535
|
+
}),
|
|
536
|
+
setMisconfiguredFlowError: assign(({ event }) => {
|
|
537
|
+
const { arming } = event.output;
|
|
538
|
+
if (arming.status !== "misconfigured") return {};
|
|
539
|
+
return {
|
|
540
|
+
error: arming.message,
|
|
541
|
+
moduleErrorCode: arming.moduleErrorCode
|
|
542
|
+
};
|
|
543
|
+
}),
|
|
544
|
+
reportArmedPresets: ({ event }) => {
|
|
545
|
+
const { flow, arming } = event.output;
|
|
546
|
+
if (arming.status !== "armed") return;
|
|
547
|
+
const steps = flow.flowModules.map((module) => module.key);
|
|
548
|
+
for (const preset of arming.armedPresets) {
|
|
549
|
+
const module = flowPresetAnalyticsModule(preset);
|
|
550
|
+
const screenName = `${module}.started`;
|
|
551
|
+
screenOpened(module, screenName, { steps });
|
|
552
|
+
screenClosed(module, screenName);
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
reportMisconfiguredFlow: ({ event }) => {
|
|
556
|
+
const { arming } = event.output;
|
|
557
|
+
if (arming.status !== "misconfigured") return;
|
|
558
|
+
addEvent({
|
|
559
|
+
code: "errorTriggered",
|
|
560
|
+
module: flowPresetAnalyticsModule(arming.preset),
|
|
561
|
+
payload: {
|
|
562
|
+
errorCode: arming.moduleErrorCode,
|
|
563
|
+
advanced: false,
|
|
564
|
+
missing: arming.missing,
|
|
565
|
+
unsupported: arming.unsupported,
|
|
566
|
+
unregistered: arming.unregistered
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
reportPresetDecisions: ({ context, event }) => {
|
|
571
|
+
const ending = event;
|
|
572
|
+
const decisions = decideFlowPresets({
|
|
573
|
+
armedPresets: context.armedPresets,
|
|
574
|
+
steps: context.steps,
|
|
575
|
+
currentStepIndex: context.currentStepIndex,
|
|
576
|
+
ending: {
|
|
577
|
+
output: ending.output,
|
|
578
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
for (const decision of decisions) {
|
|
582
|
+
const screenName = `${decision.analyticsModule}.${decision.outcome}`;
|
|
583
|
+
screenOpened(decision.analyticsModule, screenName, {
|
|
584
|
+
decidedAfter: context.currentStep,
|
|
585
|
+
errorCode: ending.moduleErrorCode,
|
|
586
|
+
skippedModules: decision.skipped.map((index) => context.steps[index])
|
|
587
|
+
});
|
|
588
|
+
screenClosed(decision.analyticsModule, screenName);
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
removeSkippedPresetMembers: assign(({ context, event }) => {
|
|
592
|
+
const ending = event;
|
|
593
|
+
const removed = applyFlowPresets({
|
|
594
|
+
armedPresets: context.armedPresets,
|
|
595
|
+
steps: context.steps,
|
|
596
|
+
currentStepIndex: context.currentStepIndex,
|
|
597
|
+
ending: {
|
|
598
|
+
output: ending.output,
|
|
599
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
if (removed.length === 0 || !context.flow) return {};
|
|
603
|
+
const kept = (_, index) => !removed.includes(index);
|
|
604
|
+
return {
|
|
605
|
+
steps: context.steps.filter(kept),
|
|
606
|
+
flow: {
|
|
607
|
+
...context.flow,
|
|
608
|
+
flowModules: context.flow.flowModules.filter(kept)
|
|
609
|
+
}
|
|
490
610
|
};
|
|
491
611
|
}),
|
|
492
612
|
setActivatedFlow: assign(({ context, event }) => {
|
|
@@ -539,11 +659,22 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
539
659
|
}),
|
|
540
660
|
setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
|
|
541
661
|
prefetchNextModule: ({ context }) => {
|
|
542
|
-
|
|
662
|
+
prefetchNextLazyModules(context);
|
|
543
663
|
},
|
|
544
664
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
545
665
|
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
546
666
|
setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
|
|
667
|
+
trackFailingModuleError: ({ context, event }) => {
|
|
668
|
+
const { moduleErrorCode } = event;
|
|
669
|
+
addEvent({
|
|
670
|
+
code: "errorTriggered",
|
|
671
|
+
module: context.currentStep,
|
|
672
|
+
payload: moduleErrorCode === void 0 ? { advanced: false } : {
|
|
673
|
+
errorCode: moduleErrorCode,
|
|
674
|
+
advanced: false
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
},
|
|
547
678
|
trackAdvanceableModuleError: ({ context, event }) => {
|
|
548
679
|
addEvent({
|
|
549
680
|
code: "errorTriggered",
|
|
@@ -557,7 +688,9 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
557
688
|
},
|
|
558
689
|
guards: {
|
|
559
690
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
560
|
-
|
|
691
|
+
isEarlySearchCompletion: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && event.fromChild !== true,
|
|
692
|
+
isAdvanceableSearchError: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && isAdvanceableError(event.moduleErrorCode),
|
|
693
|
+
isMisconfiguredFlow: ({ event }) => "output" in event && event.output.arming.status === "misconfigured",
|
|
561
694
|
isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
|
|
562
695
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
563
696
|
isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
|
|
@@ -567,17 +700,18 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
567
700
|
activatesBeforeFirstModule: ({ context, event }) => {
|
|
568
701
|
if (!("output" in event)) return false;
|
|
569
702
|
if (!context.deferActivation || context.activationResolved) return false;
|
|
570
|
-
const flow = event.output;
|
|
703
|
+
const { flow } = event.output;
|
|
571
704
|
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
572
705
|
if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
|
|
573
|
-
if (!(context
|
|
706
|
+
if (!canResolveModule(context, firstModuleKey)) return false;
|
|
574
707
|
return !homeScreenEnabled(context, flow);
|
|
575
708
|
},
|
|
576
709
|
hasModule: ({ context, event }) => {
|
|
577
710
|
if (!("output" in event)) return false;
|
|
578
|
-
const
|
|
711
|
+
const { flow } = event.output;
|
|
712
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
579
713
|
if (!firstModuleKey) return false;
|
|
580
|
-
return context
|
|
714
|
+
return canResolveModule(context, firstModuleKey);
|
|
581
715
|
},
|
|
582
716
|
hasCurrentModuleMachine: ({ event }) => {
|
|
583
717
|
if (!("output" in event)) return false;
|
|
@@ -600,22 +734,31 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
600
734
|
invoke: {
|
|
601
735
|
id: "fetchFlow",
|
|
602
736
|
src: "fetchFlow",
|
|
603
|
-
input: ({ context }) => ({
|
|
737
|
+
input: ({ context }) => ({
|
|
738
|
+
getFlow: context.getFlow,
|
|
739
|
+
canResolve: (key) => canResolveModule(context, key)
|
|
740
|
+
}),
|
|
604
741
|
onDone: [
|
|
742
|
+
{
|
|
743
|
+
target: "error",
|
|
744
|
+
guard: "isMisconfiguredFlow",
|
|
745
|
+
actions: ["setMisconfiguredFlowError", "reportMisconfiguredFlow"]
|
|
746
|
+
},
|
|
605
747
|
{
|
|
606
748
|
target: "resolvingActivation",
|
|
607
749
|
guard: "activatesBeforeFirstModule",
|
|
608
|
-
actions: "setFlowData"
|
|
750
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
609
751
|
},
|
|
610
752
|
{
|
|
611
753
|
target: "resolvingModule",
|
|
612
754
|
guard: "hasModule",
|
|
613
|
-
actions: "setFlowData"
|
|
755
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
614
756
|
},
|
|
615
757
|
{
|
|
616
758
|
target: "error",
|
|
617
759
|
actions: assign({ error: ({ event }) => {
|
|
618
|
-
const
|
|
760
|
+
const { flow } = event.output;
|
|
761
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
619
762
|
return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
|
|
620
763
|
} })
|
|
621
764
|
}
|
|
@@ -724,13 +867,6 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
724
867
|
config: context.config
|
|
725
868
|
};
|
|
726
869
|
},
|
|
727
|
-
onDone: [{
|
|
728
|
-
target: "completing",
|
|
729
|
-
guard: "isLastStep"
|
|
730
|
-
}, {
|
|
731
|
-
target: "resolvingModule",
|
|
732
|
-
actions: "incrementStep"
|
|
733
|
-
}],
|
|
734
870
|
onError: {
|
|
735
871
|
target: "error",
|
|
736
872
|
actions: "setError"
|
|
@@ -738,40 +874,42 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
738
874
|
},
|
|
739
875
|
on: {
|
|
740
876
|
MODULE_COMPLETE: [
|
|
877
|
+
{ guard: "isEarlySearchCompletion" },
|
|
741
878
|
{
|
|
742
879
|
target: "resolvingHandoffCompletion",
|
|
743
880
|
guard: "isOnboardingFinishedSignal"
|
|
744
881
|
},
|
|
745
882
|
{
|
|
746
|
-
target: "
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
883
|
+
target: "advancing",
|
|
884
|
+
actions: [
|
|
885
|
+
"persistSkipFaceMatch",
|
|
886
|
+
"reportPresetDecisions",
|
|
887
|
+
"removeSkippedPresetMembers"
|
|
888
|
+
]
|
|
752
889
|
}
|
|
753
890
|
],
|
|
754
891
|
MODULE_ERROR: [
|
|
755
|
-
{
|
|
756
|
-
guard: "isAdvanceableModuleErrorOnLastStep",
|
|
757
|
-
target: "completing",
|
|
758
|
-
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
759
|
-
},
|
|
892
|
+
{ guard: "isAdvanceableSearchError" },
|
|
760
893
|
{
|
|
761
894
|
guard: "isAdvanceableModuleError",
|
|
762
|
-
target: "
|
|
895
|
+
target: "advancing",
|
|
763
896
|
actions: [
|
|
764
897
|
"setModuleErrorCode",
|
|
765
898
|
"trackAdvanceableModuleError",
|
|
766
|
-
"
|
|
899
|
+
"reportPresetDecisions",
|
|
900
|
+
"removeSkippedPresetMembers"
|
|
767
901
|
]
|
|
768
902
|
},
|
|
769
903
|
{
|
|
770
904
|
target: "error",
|
|
771
|
-
actions: [
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
905
|
+
actions: [
|
|
906
|
+
"setModuleErrorCode",
|
|
907
|
+
"trackFailingModuleError",
|
|
908
|
+
assign(({ event }) => {
|
|
909
|
+
const rawError = event.error;
|
|
910
|
+
return { error: rawError === void 0 ? void 0 : String(rawError) };
|
|
911
|
+
})
|
|
912
|
+
]
|
|
775
913
|
}
|
|
776
914
|
],
|
|
777
915
|
COMPLETE_FLOW: { target: "completing" },
|
|
@@ -785,6 +923,13 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
785
923
|
}
|
|
786
924
|
}
|
|
787
925
|
},
|
|
926
|
+
advancing: { always: [{
|
|
927
|
+
target: "completing",
|
|
928
|
+
guard: "isLastStep"
|
|
929
|
+
}, {
|
|
930
|
+
target: "resolvingModule",
|
|
931
|
+
actions: "incrementStep"
|
|
932
|
+
}] },
|
|
788
933
|
resolvingHandoffCompletion: {
|
|
789
934
|
entry: assign({ completedOnMobile: true }),
|
|
790
935
|
after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
|
|
@@ -858,7 +1003,8 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
858
1003
|
presentation: {
|
|
859
1004
|
isAwaitingReady: awaitingOrchestrator,
|
|
860
1005
|
lazyModuleKey,
|
|
861
|
-
shouldPrefetchHome
|
|
1006
|
+
shouldPrefetchHome,
|
|
1007
|
+
prefetchModuleKeys: lazyModuleKey === void 0 ? [] : getStepsThatMayRunNext(snapshot.context)
|
|
862
1008
|
}
|
|
863
1009
|
};
|
|
864
1010
|
}
|
|
@@ -866,7 +1012,7 @@ function getMappedStatus(snapshot) {
|
|
|
866
1012
|
const { value } = snapshot;
|
|
867
1013
|
if (value === "idle") return "idle";
|
|
868
1014
|
if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
|
|
869
|
-
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
1015
|
+
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || value === "advancing" || typeof value === "object") return "loading";
|
|
870
1016
|
if (value === "finished") return "finished";
|
|
871
1017
|
if (value === "error") return "error";
|
|
872
1018
|
return "ready";
|
|
@@ -963,7 +1109,7 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
963
1109
|
function getCanNext() {
|
|
964
1110
|
const snapshot = getSnapshot();
|
|
965
1111
|
const { currentStepIndex, steps } = snapshot.context;
|
|
966
|
-
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
|
|
1112
|
+
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1 && !endsOnlyThroughItsMachine(snapshot.context.currentStep);
|
|
967
1113
|
}
|
|
968
1114
|
function getModuleConfig(moduleKey) {
|
|
969
1115
|
const snapshot = getSnapshot();
|
|
@@ -1061,8 +1207,18 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
1061
1207
|
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
1062
1208
|
*/
|
|
1063
1209
|
send(event) {
|
|
1210
|
+
if ("fromChild" in event) {
|
|
1211
|
+
const { fromChild: _fromChild, ...rest } = event;
|
|
1212
|
+
actor.send(rest);
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1064
1215
|
actor.send(event);
|
|
1065
1216
|
},
|
|
1217
|
+
/**
|
|
1218
|
+
* True while a step runs that `completeModule()` would move past to
|
|
1219
|
+
* another step. False on the last step, and on a step only its own machine
|
|
1220
|
+
* can end, such as the identity search.
|
|
1221
|
+
*/
|
|
1066
1222
|
get canNext() {
|
|
1067
1223
|
return getCanNext();
|
|
1068
1224
|
},
|
|
@@ -1128,4 +1284,4 @@ function createOrchestratedFlowManager(options) {
|
|
|
1128
1284
|
}), { getInterviewId: options.getInterviewId });
|
|
1129
1285
|
}
|
|
1130
1286
|
//#endregion
|
|
1131
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
1287
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-BpeAbbXc.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BamZ815u.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}` : ""}`;
|