@incodetech/core 2.2.0 → 2.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-BHIeAamR.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-BIAtLa8k.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/types-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-3NSENVwp.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
- package/dist/trueSight-B_icM8r2.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DEzgjz7C.esm.js";
|
|
5
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
|
+
function createWatchlistForBusinessActor() {
|
|
7
|
+
return createActor(watchlistForBusinessMachine).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Watchlist-for-Business state-machine snapshot to the exact Figma
|
|
13
|
+
* "Tracked Events" screen name. Source: Watchlist for Business Figma
|
|
14
|
+
* file (`https://www.figma.com/design/BfHifNPAvPTpBlnMEDfg4J/Watchlist-for-Business---Latest-Design?node-id=3031-82920`).
|
|
15
|
+
* Family is `watchlist.*`, shared with global watchlist and custom
|
|
16
|
+
* watchlist — each manager keeps its own module token per the
|
|
17
|
+
* AdSign/QSign precedent.
|
|
18
|
+
*
|
|
19
|
+
* `idle` and `finished` are intentionally unmapped — the Figma canvas does
|
|
20
|
+
* not define screens for them; `finished` collapses into `moduleClosed`.
|
|
21
|
+
*/
|
|
22
|
+
function getWatchlistForBusinessScreenName(snapshot) {
|
|
23
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
24
|
+
if (stateName === void 0) return void 0;
|
|
25
|
+
switch (stateName) {
|
|
26
|
+
case "form": return snapshot.context.isValid ? "watchlist.filled" : "watchlist.default";
|
|
27
|
+
case "submitting": return "watchlist.processing";
|
|
28
|
+
case "success": return "watchlist.success";
|
|
29
|
+
default: return;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function mapState(snapshot) {
|
|
33
|
+
const typedSnapshot = snapshot;
|
|
34
|
+
const { context } = typedSnapshot;
|
|
35
|
+
if (typedSnapshot.matches("form")) return {
|
|
36
|
+
status: "form",
|
|
37
|
+
country: context.country,
|
|
38
|
+
businessName: context.businessName,
|
|
39
|
+
isValid: context.isValid,
|
|
40
|
+
validationErrors: context.validationErrors,
|
|
41
|
+
canSubmit: Object.keys(context.validationErrors ?? {}).length === 0
|
|
42
|
+
};
|
|
43
|
+
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
44
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
45
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
46
|
+
return { status: "idle" };
|
|
47
|
+
}
|
|
48
|
+
function createApi({ actor, trackElementClicked }) {
|
|
49
|
+
return {
|
|
50
|
+
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
51
|
+
load() {
|
|
52
|
+
actor.send({ type: "LOAD" });
|
|
53
|
+
},
|
|
54
|
+
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
55
|
+
setCountry(country) {
|
|
56
|
+
actor.send({
|
|
57
|
+
type: "SET_COUNTRY",
|
|
58
|
+
country
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
/** Updates the business name field and recomputes validity. */
|
|
62
|
+
setBusinessName(value) {
|
|
63
|
+
actor.send({
|
|
64
|
+
type: "SET_BUSINESS_NAME",
|
|
65
|
+
value
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
/** Submits the form. Only transitions when `isValid` is true. */
|
|
69
|
+
submit() {
|
|
70
|
+
trackElementClicked?.("submit");
|
|
71
|
+
actor.send({ type: "SUBMIT" });
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Creates a watchlist-for-business manager for headless or UI-driven usage.
|
|
77
|
+
*
|
|
78
|
+
* On API error the module completes silently (fire-and-forget).
|
|
79
|
+
*
|
|
80
|
+
* @example Headless usage
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
83
|
+
*
|
|
84
|
+
* const manager = createWatchlistForBusinessManager();
|
|
85
|
+
* manager.subscribe((state) => {
|
|
86
|
+
* if (state.status === 'finished') console.log('Done');
|
|
87
|
+
* });
|
|
88
|
+
* manager.load();
|
|
89
|
+
* manager.setCountry('MX');
|
|
90
|
+
* manager.setBusinessName('Acme Corp');
|
|
91
|
+
* manager.submit();
|
|
92
|
+
* manager.stop();
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
function createWatchlistForBusinessManager() {
|
|
96
|
+
return createWatchlistForBusinessManagerFromActor(createWatchlistForBusinessActor());
|
|
97
|
+
}
|
|
98
|
+
function createWatchlistForBusinessManagerFromActor(actor) {
|
|
99
|
+
return createManager({
|
|
100
|
+
actor,
|
|
101
|
+
mapState,
|
|
102
|
+
createApi,
|
|
103
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlistForBusiness, { getEventScreenName: getWatchlistForBusinessScreenName })
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { createWatchlistForBusinessManagerFromActor as n, createWatchlistForBusinessManager as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
|
|
5
|
+
declare const watchlistForBusinessMachine: any;
|
|
6
|
+
type WatchlistForBusinessMachine = typeof watchlistForBusinessMachine;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.d.ts
|
|
9
|
+
type WatchlistForBusinessActor = ActorRefFrom<WatchlistForBusinessMachine>;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/modules/watchlist-for-business/types.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for the watchlist-for-business module.
|
|
14
|
+
*
|
|
15
|
+
* No server-side configuration is required — the module collects
|
|
16
|
+
* country and business name from the user and submits them to the
|
|
17
|
+
* business watchlist endpoint.
|
|
18
|
+
*/
|
|
19
|
+
type WatchlistForBusinessConfig = Record<string, never>;
|
|
20
|
+
type WatchlistForBusinessValidationErrors = {
|
|
21
|
+
businessName?: string;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
|
|
25
|
+
/** Waiting for `load()` to be called. */
|
|
26
|
+
type WatchlistForBusinessIdleState = {
|
|
27
|
+
status: 'idle';
|
|
28
|
+
};
|
|
29
|
+
/** Form is ready — use `setCountry()`, `setBusinessName()`, and `submit()`. */
|
|
30
|
+
type WatchlistForBusinessFormState = {
|
|
31
|
+
status: 'form';
|
|
32
|
+
country: string;
|
|
33
|
+
businessName: string;
|
|
34
|
+
isValid: boolean;
|
|
35
|
+
validationErrors?: WatchlistForBusinessValidationErrors;
|
|
36
|
+
canSubmit: boolean;
|
|
37
|
+
};
|
|
38
|
+
/** API request in flight. */
|
|
39
|
+
type WatchlistForBusinessSubmittingState = {
|
|
40
|
+
status: 'submitting';
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* API succeeded — success screen visible for ~3 s before transitioning
|
|
44
|
+
* to `finished`.
|
|
45
|
+
*/
|
|
46
|
+
type WatchlistForBusinessSuccessState = {
|
|
47
|
+
status: 'success';
|
|
48
|
+
};
|
|
49
|
+
/** Module complete. Fires regardless of API outcome (fire-and-forget). */
|
|
50
|
+
type WatchlistForBusinessFinishedState = {
|
|
51
|
+
status: 'finished';
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Discriminated union of all possible watchlist-for-business manager states.
|
|
55
|
+
*/
|
|
56
|
+
type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBusinessFormState | WatchlistForBusinessSubmittingState | WatchlistForBusinessSuccessState | WatchlistForBusinessFinishedState;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a watchlist-for-business manager for headless or UI-driven usage.
|
|
59
|
+
*
|
|
60
|
+
* On API error the module completes silently (fire-and-forget).
|
|
61
|
+
*
|
|
62
|
+
* @example Headless usage
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
65
|
+
*
|
|
66
|
+
* const manager = createWatchlistForBusinessManager();
|
|
67
|
+
* manager.subscribe((state) => {
|
|
68
|
+
* if (state.status === 'finished') console.log('Done');
|
|
69
|
+
* });
|
|
70
|
+
* manager.load();
|
|
71
|
+
* manager.setCountry('MX');
|
|
72
|
+
* manager.setBusinessName('Acme Corp');
|
|
73
|
+
* manager.submit();
|
|
74
|
+
* manager.stop();
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
|
|
78
|
+
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
79
|
+
load(): void;
|
|
80
|
+
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
81
|
+
setCountry(country: string): void;
|
|
82
|
+
/** Updates the business name field and recomputes validity. */
|
|
83
|
+
setBusinessName(value: string): void;
|
|
84
|
+
/** Submits the form. Only transitions when `isValid` is true. */
|
|
85
|
+
submit(): void;
|
|
86
|
+
};
|
|
87
|
+
declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForBusinessActor): Manager<WatchlistForBusinessState> & {
|
|
88
|
+
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
89
|
+
load(): void;
|
|
90
|
+
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
91
|
+
setCountry(country: string): void;
|
|
92
|
+
/** Updates the business name field and recomputes validity. */
|
|
93
|
+
setBusinessName(value: string): void;
|
|
94
|
+
/** Submits the form. Only transitions when `isValid` is true. */
|
|
95
|
+
submit(): void;
|
|
96
|
+
};
|
|
97
|
+
type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { createWatchlistForBusinessManager as a, WatchlistForBusinessValidationErrors as c, WatchlistForBusinessState as i, WatchlistForBusinessActor as l, WatchlistForBusinessFormState as n, createWatchlistForBusinessManagerFromActor as o, WatchlistForBusinessManager as r, WatchlistForBusinessConfig as s, WatchlistForBusinessFinishedState as t, watchlistForBusinessMachine as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
@@ -14,6 +14,7 @@ const DEFAULT_COUNTRY = "US";
|
|
|
14
14
|
function computeIsValid(businessName) {
|
|
15
15
|
return businessName.trim().length > 0;
|
|
16
16
|
}
|
|
17
|
+
const BUSINESS_NAME_REQUIRED_ERROR = "dynamicForms.fieldRequired";
|
|
17
18
|
const watchlistForBusinessMachine = setup({
|
|
18
19
|
types: {
|
|
19
20
|
context: {},
|
|
@@ -33,7 +34,12 @@ const watchlistForBusinessMachine = setup({
|
|
|
33
34
|
businessName: value,
|
|
34
35
|
isValid: computeIsValid(value)
|
|
35
36
|
};
|
|
36
|
-
})
|
|
37
|
+
}),
|
|
38
|
+
clearBusinessNameValidationError: assign(({ context, event }) => {
|
|
39
|
+
if (event.type !== "SET_BUSINESS_NAME" || !context.validationErrors?.businessName) return {};
|
|
40
|
+
return { validationErrors: void 0 };
|
|
41
|
+
}),
|
|
42
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: computeIsValid(context.businessName) ? void 0 : { businessName: BUSINESS_NAME_REQUIRED_ERROR } }))
|
|
37
43
|
},
|
|
38
44
|
guards: { isValid: ({ context }) => context.isValid }
|
|
39
45
|
}).createMachine({
|
|
@@ -42,17 +48,18 @@ const watchlistForBusinessMachine = setup({
|
|
|
42
48
|
context: {
|
|
43
49
|
country: DEFAULT_COUNTRY,
|
|
44
50
|
businessName: "",
|
|
45
|
-
isValid: false
|
|
51
|
+
isValid: false,
|
|
52
|
+
validationErrors: void 0
|
|
46
53
|
},
|
|
47
54
|
states: {
|
|
48
55
|
idle: { on: { LOAD: { target: "form" } } },
|
|
49
56
|
form: { on: {
|
|
50
57
|
SET_COUNTRY: { actions: "setCountry" },
|
|
51
|
-
SET_BUSINESS_NAME: { actions: "setBusinessName" },
|
|
52
|
-
SUBMIT: {
|
|
58
|
+
SET_BUSINESS_NAME: { actions: ["setBusinessName", "clearBusinessNameValidationError"] },
|
|
59
|
+
SUBMIT: [{
|
|
53
60
|
target: "submitting",
|
|
54
61
|
guard: "isValid"
|
|
55
|
-
}
|
|
62
|
+
}, { actions: "setValidationErrors" }]
|
|
56
63
|
} },
|
|
57
64
|
submitting: { invoke: {
|
|
58
65
|
id: "submitWatchlistForBusiness",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-DvOby3a-.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
6
|
function createWatchlistActor() {
|
|
7
7
|
return createActor(watchlistMachine).start();
|
package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistServices.ts
|
package/dist/workflow.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { t as CallbackActorLogic } from "./callback-645_omgz.js";
|
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
5
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
6
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
7
|
-
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-
|
|
6
|
+
import { o as FlowEventSubscribable } from "./index-DLcJT5YP.js";
|
|
7
|
+
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s7.js";
|
|
8
8
|
//#region src/modules/workflow/types.d.ts
|
|
9
9
|
/** Possible node types returned by the workflow server. */
|
|
10
10
|
type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
|
|
@@ -111,7 +111,7 @@ type WorkflowClosedState = {
|
|
|
111
111
|
};
|
|
112
112
|
type WorkflowErrorState = {
|
|
113
113
|
status: 'error';
|
|
114
|
-
error
|
|
114
|
+
error?: string;
|
|
115
115
|
errorCode?: number;
|
|
116
116
|
moduleErrorCode?: string;
|
|
117
117
|
};
|
|
@@ -161,8 +161,12 @@ declare function createWorkflowManager(options?: CreateWorkflowManagerOptions):
|
|
|
161
161
|
* `HINT_NOT_PROVIDED`) advances via `processNode`; any other error
|
|
162
162
|
* transitions to the terminal error state. Callers always forward the code
|
|
163
163
|
* and let core classify — no per-module branching in the UI.
|
|
164
|
+
*
|
|
165
|
+
* Omit `error` to let the UI fall back to its own generic error copy (e.g.
|
|
166
|
+
* TerminalErrorPage's `common.unexpectedError`) instead of surfacing a
|
|
167
|
+
* raw/technical string.
|
|
164
168
|
*/
|
|
165
|
-
errorModule(error
|
|
169
|
+
errorModule(error?: string, moduleErrorCode?: string): void;
|
|
166
170
|
/**
|
|
167
171
|
* Advance from the launch (home) screen into the first workflow node.
|
|
168
172
|
* No-op when the workflow is not currently waiting on the home screen
|
|
@@ -330,10 +334,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
330
334
|
id: string | undefined;
|
|
331
335
|
};
|
|
332
336
|
}>, Values<{
|
|
333
|
-
setError: {
|
|
334
|
-
type: "setError";
|
|
335
|
-
params: NonReducibleUnknown;
|
|
336
|
-
};
|
|
337
337
|
setLoadingResult: {
|
|
338
338
|
type: "setLoadingResult";
|
|
339
339
|
params: NonReducibleUnknown;
|
|
@@ -366,6 +366,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
366
366
|
type: "setFinishStatusFailed";
|
|
367
367
|
params: NonReducibleUnknown;
|
|
368
368
|
};
|
|
369
|
+
setError: {
|
|
370
|
+
type: "setError";
|
|
371
|
+
params: NonReducibleUnknown;
|
|
372
|
+
};
|
|
369
373
|
setModuleError: {
|
|
370
374
|
type: "setModuleError";
|
|
371
375
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-B0sGlozZ.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService
|
|
4
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
6
|
-
import { t as endpoints } from "./endpoints-
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import { g as toEkybConfig } from "./flowServices-f5Ruz7R9.esm.js";
|
|
3
|
+
import { l as trueSightLog } from "./trueSightService-CKrrfV0Q.esm.js";
|
|
4
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BLoK7SP9.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-D0v5hFyN.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-B5FwukTQ.esm.js";
|
|
10
9
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
11
10
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
12
11
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
13
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-DzulxM4_.esm.js";
|
|
14
13
|
import "./ae-signature.esm.js";
|
|
15
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
16
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
17
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
18
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
19
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
20
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
21
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
22
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
23
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
24
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
25
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
26
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
27
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
28
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
29
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BHxehiJZ.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DJ0zUm-A.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BBD5h8c4.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-DbUmqWgV.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-DvUPC_8S.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-qZVgkKgP.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CWOATHfE.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-obKr4IIp.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-DjhHQXZ8.esm.js";
|
|
23
|
+
import { t as ekycMachine } from "./ekycStateMachine-CmdW2gVm.esm.js";
|
|
24
|
+
import { t as emailMachine } from "./emailStateMachine-CyPFZ7dW.esm.js";
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-fwMmNtOi.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-CmqihkUy.esm.js";
|
|
27
|
+
import { t as phoneMachine } from "./phoneStateMachine-jl8LJKCo.esm.js";
|
|
28
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-DvOby3a-.esm.js";
|
|
29
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DEzgjz7C.esm.js";
|
|
30
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-CQgnATo5.esm.js";
|
|
31
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DSDAk7WZ.esm.js";
|
|
32
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-33UvRAHE.esm.js";
|
|
33
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-v3otpT-L.esm.js";
|
|
34
|
+
import { t as signatureMachine } from "./signatureStateMachine-BHPwkJZS.esm.js";
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DpG0TFOU.esm.js";
|
|
36
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-D1ZnEqdd.esm.js";
|
|
37
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-BPGrQZEm.esm.js";
|
|
38
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-BUc5FXYy.esm.js";
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-CLtbWhSK.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-TuyGE00X.esm.js";
|
|
41
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
41
42
|
import "./qe-signature.esm.js";
|
|
42
|
-
import { t as
|
|
43
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
|
|
43
44
|
//#region src/internal/orchestration/defaultModules.ts
|
|
44
45
|
/**
|
|
45
46
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -81,7 +82,8 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
81
82
|
INCODE_WATCHLIST: customWatchlistMachine,
|
|
82
83
|
CERTIFICATE_ISSUANCE: certificateIssuanceMachine,
|
|
83
84
|
IDENTITY_REUSE: identityReuseMachine,
|
|
84
|
-
DYNAMIC_FORMS: dynamicFormsMachine
|
|
85
|
+
DYNAMIC_FORMS: dynamicFormsMachine,
|
|
86
|
+
VIDEO_ONBOARDING: videoSelfieFlowModuleMachine
|
|
85
87
|
};
|
|
86
88
|
/**
|
|
87
89
|
* Per-module config mappers for orchestrators (workflow / flow).
|
|
@@ -352,7 +354,10 @@ const workflowMachine = setup({
|
|
|
352
354
|
errorCode: code
|
|
353
355
|
};
|
|
354
356
|
}),
|
|
355
|
-
setModuleError: assign(({ event }) =>
|
|
357
|
+
setModuleError: assign(({ event }) => {
|
|
358
|
+
const rawError = event.error;
|
|
359
|
+
return { error: rawError === void 0 ? void 0 : String(rawError) };
|
|
360
|
+
}),
|
|
356
361
|
setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
|
|
357
362
|
trackAdvanceableModuleError: ({ context, event }) => {
|
|
358
363
|
const moduleErrorCode = event.moduleErrorCode;
|
|
@@ -750,7 +755,7 @@ function mapState(snapshot) {
|
|
|
750
755
|
if (snapshot.matches("closed")) return { status: "closed" };
|
|
751
756
|
if (snapshot.matches("error")) return {
|
|
752
757
|
status: "error",
|
|
753
|
-
error: context.error
|
|
758
|
+
error: context.error,
|
|
754
759
|
errorCode: context.errorCode,
|
|
755
760
|
moduleErrorCode: context.moduleErrorCode
|
|
756
761
|
};
|
|
@@ -807,6 +812,10 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
807
812
|
* `HINT_NOT_PROVIDED`) advances via `processNode`; any other error
|
|
808
813
|
* transitions to the terminal error state. Callers always forward the code
|
|
809
814
|
* and let core classify — no per-module branching in the UI.
|
|
815
|
+
*
|
|
816
|
+
* Omit `error` to let the UI fall back to its own generic error copy (e.g.
|
|
817
|
+
* TerminalErrorPage's `common.unexpectedError`) instead of surfacing a
|
|
818
|
+
* raw/technical string.
|
|
810
819
|
*/
|
|
811
820
|
errorModule(error, moduleErrorCode) {
|
|
812
821
|
actor.send({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-rc.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -140,11 +140,6 @@
|
|
|
140
140
|
"types": "./dist/home.d.ts",
|
|
141
141
|
"import": "./dist/home.esm.js"
|
|
142
142
|
},
|
|
143
|
-
"./document-upload": {
|
|
144
|
-
"source": "./src/modules/document-upload/index.ts",
|
|
145
|
-
"types": "./dist/document-upload.d.ts",
|
|
146
|
-
"import": "./dist/document-upload.esm.js"
|
|
147
|
-
},
|
|
148
143
|
"./document-capture": {
|
|
149
144
|
"source": "./src/modules/document-capture/index.ts",
|
|
150
145
|
"types": "./dist/document-capture.d.ts",
|
|
@@ -272,13 +267,12 @@
|
|
|
272
267
|
}
|
|
273
268
|
},
|
|
274
269
|
"files": [
|
|
275
|
-
"dist"
|
|
270
|
+
"dist",
|
|
271
|
+
"THIRD_PARTY_NOTICES.txt"
|
|
276
272
|
],
|
|
277
|
-
"dependencies": {
|
|
278
|
-
"@zxing/browser": "0.1.5"
|
|
279
|
-
},
|
|
280
273
|
"devDependencies": {
|
|
281
274
|
"@vitest/coverage-v8": "4.1.10",
|
|
275
|
+
"@zxing/browser": "0.1.5",
|
|
282
276
|
"tsdown": "^0.22.8",
|
|
283
277
|
"typescript": "^5.9.3",
|
|
284
278
|
"vitest": "4.1.10",
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { t as resolveLocalStorage } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
|
-
//#region ../infra/src/providers/browser/BrowserStorageProvider.ts
|
|
3
|
-
/**
|
|
4
|
-
* Browser-based storage provider wrapping localStorage.
|
|
5
|
-
* Handles JSON serialization/deserialization automatically.
|
|
6
|
-
*
|
|
7
|
-
* Degrades silently when the host makes localStorage unreachable: reads return
|
|
8
|
-
* `null` and writes are no-ops. Deliberately quiet — hosts that harden against
|
|
9
|
-
* self-XSS by deleting the global would otherwise see a warning on every call.
|
|
10
|
-
*/
|
|
11
|
-
var BrowserStorageProvider = class {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves a value from localStorage.
|
|
14
|
-
* @param key - The storage key
|
|
15
|
-
* @returns The stored value, or null if not found or storage is unavailable
|
|
16
|
-
* @throws Error if stored value is invalid JSON
|
|
17
|
-
*/
|
|
18
|
-
async get(key) {
|
|
19
|
-
const storage = resolveLocalStorage();
|
|
20
|
-
if (!storage) return null;
|
|
21
|
-
try {
|
|
22
|
-
const item = storage.getItem(key);
|
|
23
|
-
if (item === null) return null;
|
|
24
|
-
return JSON.parse(item);
|
|
25
|
-
} catch (error) {
|
|
26
|
-
if (error instanceof SyntaxError) throw new Error(`Invalid JSON stored at key "${key}": ${error.message}`);
|
|
27
|
-
throw error;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Stores a value in localStorage. No-op when storage is unavailable.
|
|
32
|
-
* @param key - The storage key
|
|
33
|
-
* @param value - The value to store (will be serialized as JSON)
|
|
34
|
-
* @throws Error if value cannot be serialized or quota is exceeded
|
|
35
|
-
*/
|
|
36
|
-
async set(key, value) {
|
|
37
|
-
const storage = resolveLocalStorage();
|
|
38
|
-
if (!storage) return;
|
|
39
|
-
try {
|
|
40
|
-
const serialized = JSON.stringify(value);
|
|
41
|
-
storage.setItem(key, serialized);
|
|
42
|
-
} catch (error) {
|
|
43
|
-
if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
|
|
44
|
-
if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
|
|
45
|
-
throw error;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Removes a value from localStorage. No-op when storage is unavailable.
|
|
50
|
-
* @param key - The storage key to remove
|
|
51
|
-
*/
|
|
52
|
-
async remove(key) {
|
|
53
|
-
const storage = resolveLocalStorage();
|
|
54
|
-
if (!storage) return;
|
|
55
|
-
storage.removeItem(key);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Clears all values from localStorage. No-op when storage is unavailable.
|
|
59
|
-
*/
|
|
60
|
-
async clear() {
|
|
61
|
-
const storage = resolveLocalStorage();
|
|
62
|
-
if (!storage) return;
|
|
63
|
-
storage.clear();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
export { BrowserStorageProvider as t };
|