@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12
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-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
- package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
- 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-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.esm.js} +6 -7
- 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-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
- package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
- package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
- package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
- package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
- package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +2 -2
- 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-DPT8E9zV.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.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-B0YKqYtZ.d.ts} +9 -8
- package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
- package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
- 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-BIQ-SYcR.esm.js} +6 -5
- 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-BKUDQ55W.esm.js} +6 -4
- package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +16 -17
- 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-CPhONu5i.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
- package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +15 -15
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
- package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
- package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
- package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
- 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-DWCL912J.esm.js} +39 -16
- package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
- package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
- package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -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-BHnxFx7u.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
- package/dist/events-CsPmTidH.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +41 -41
- 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-BjVIUTMM.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
- package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
- package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
- package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
- package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
- 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-Chn80m_n.esm.js} +7 -7
- 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-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +48 -12
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
- package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
- 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-dgMVi0ed.esm.js} +5 -3
- package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +4 -6
- 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 +5 -4
- package/dist/id-selfie-flow.esm.js +13 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
- package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
- package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
- package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
- package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +4 -6
- 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 +96 -0
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
- package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
- package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-DNQX9k5e.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-D-mVF14T.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
- package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
- package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
- package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
- 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-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
- package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.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-CLGnDCDl.esm.js} +7 -6
- 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-Djb_daci.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
- package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
- package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
- package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
- package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
- package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.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-BUUpdBy6.esm.js} +11 -12
- package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
- package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.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-DSW5-ZO0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.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-B5Yh5glk.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
- package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
- package/dist/types-C2uJrJrS.d.ts +6 -0
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
- package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
- package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
- package/dist/video-selfie.d.ts +6 -5
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.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-CfLnsL8p.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
- package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +53 -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 +11 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- 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
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-DKtU0H-F.esm.js";
|
|
6
|
+
//#region src/modules/document-signature/documentSignatureActor.ts
|
|
7
|
+
function createDocumentSignatureActor(options) {
|
|
8
|
+
return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/modules/document-signature/documentSignatureManager.ts
|
|
12
|
+
function readingFields(context) {
|
|
13
|
+
return {
|
|
14
|
+
title: context.config.title,
|
|
15
|
+
subtitle: context.config.subTitle,
|
|
16
|
+
consentText: context.config.consentText,
|
|
17
|
+
documents: context.documents,
|
|
18
|
+
reachedEndIds: context.reachedEndIds,
|
|
19
|
+
allRead: hasReadAll(context),
|
|
20
|
+
canSign: canOpenSign(context)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function sheetFields(context) {
|
|
24
|
+
return {
|
|
25
|
+
method: context.method,
|
|
26
|
+
typedName: context.typedName,
|
|
27
|
+
maxTypedNameLength: 100,
|
|
28
|
+
canSubmit: canSubmitSignature(context)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function mapState(snapshot) {
|
|
32
|
+
const typed = snapshot;
|
|
33
|
+
const { context } = typed;
|
|
34
|
+
if (typed.matches("loading")) return { status: "loading" };
|
|
35
|
+
if (typed.matches("reading")) return {
|
|
36
|
+
status: "reading",
|
|
37
|
+
...readingFields(context)
|
|
38
|
+
};
|
|
39
|
+
if (typed.matches("signing")) return {
|
|
40
|
+
status: "signing",
|
|
41
|
+
...readingFields(context),
|
|
42
|
+
...sheetFields(context)
|
|
43
|
+
};
|
|
44
|
+
if (typed.matches("submitting")) return {
|
|
45
|
+
status: "submitting",
|
|
46
|
+
...readingFields(context),
|
|
47
|
+
...sheetFields(context)
|
|
48
|
+
};
|
|
49
|
+
if (typed.matches("signed")) return {
|
|
50
|
+
status: "signed",
|
|
51
|
+
documents: context.documents,
|
|
52
|
+
hasDownloads: hasDownloads(context)
|
|
53
|
+
};
|
|
54
|
+
if (typed.matches("signFailed")) return { status: "signFailed" };
|
|
55
|
+
if (typed.matches("finished")) return { status: "finished" };
|
|
56
|
+
if (typed.matches("error")) return {
|
|
57
|
+
status: "error",
|
|
58
|
+
error: context.error ?? "LOAD_FAILED"
|
|
59
|
+
};
|
|
60
|
+
return { status: "idle" };
|
|
61
|
+
}
|
|
62
|
+
function createApi({ actor, trackElementClicked }) {
|
|
63
|
+
return {
|
|
64
|
+
/** Loads the session's documents. */
|
|
65
|
+
load() {
|
|
66
|
+
actor.send({ type: "LOAD" });
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Reports that a document's end is on screen. Repeated calls are ignored.
|
|
70
|
+
* Pass `scrolled: true` when the user scrolled there: then reaching the last
|
|
71
|
+
* end opens the sign sheet.
|
|
72
|
+
*/
|
|
73
|
+
reachedEnd(documentId, scrolled = false) {
|
|
74
|
+
actor.send({
|
|
75
|
+
type: "DOCUMENT_REACHED_END",
|
|
76
|
+
documentId,
|
|
77
|
+
scrolled
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
/** Opens the sign sheet. Ignored until `canSign` is true. */
|
|
81
|
+
openSign() {
|
|
82
|
+
trackElementClicked?.("sign");
|
|
83
|
+
actor.send({ type: "OPEN_SIGN" });
|
|
84
|
+
},
|
|
85
|
+
/** Closes the sign sheet without signing. */
|
|
86
|
+
closeSign() {
|
|
87
|
+
actor.send({ type: "CLOSE_SIGN" });
|
|
88
|
+
},
|
|
89
|
+
/** Switches between drawing and typing the name. */
|
|
90
|
+
selectMethod(method) {
|
|
91
|
+
actor.send({
|
|
92
|
+
type: "SELECT_METHOD",
|
|
93
|
+
method
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
/** Reports the total stroke length, in CSS pixels, of the drawn signature. */
|
|
97
|
+
setDrawing(inkLength) {
|
|
98
|
+
actor.send({
|
|
99
|
+
type: "DRAWING_CHANGED",
|
|
100
|
+
inkLength
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
/** Updates the typed name. */
|
|
104
|
+
setTypedName(typedName) {
|
|
105
|
+
actor.send({
|
|
106
|
+
type: "TYPED_NAME_CHANGED",
|
|
107
|
+
typedName
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* Signs every document. For a drawn signature, pass the PNG as base64
|
|
112
|
+
* without the `data:` prefix. For a typed name, call it without arguments.
|
|
113
|
+
*/
|
|
114
|
+
submit(signatureBase64) {
|
|
115
|
+
trackElementClicked?.("confirmAndSign");
|
|
116
|
+
actor.send({
|
|
117
|
+
type: "SUBMIT",
|
|
118
|
+
signatureBase64
|
|
119
|
+
});
|
|
120
|
+
},
|
|
121
|
+
/** After a failed sign or a failed load, loads the documents again. */
|
|
122
|
+
retry() {
|
|
123
|
+
trackElementClicked?.("tryAgain");
|
|
124
|
+
actor.send({ type: "RETRY" });
|
|
125
|
+
},
|
|
126
|
+
/** Leaves the signed screen and finishes the module. Only needed when it shows download links. */
|
|
127
|
+
continue() {
|
|
128
|
+
trackElementClicked?.("continue");
|
|
129
|
+
actor.send({ type: "CONTINUE" });
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function createDocumentSignatureManager(options) {
|
|
134
|
+
return createDocumentSignatureManagerFromActor(createDocumentSignatureActor(options));
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Creates a Document Signature manager from a pre-built actor.
|
|
138
|
+
* Use it when you override the machine with `.provide()`.
|
|
139
|
+
*/
|
|
140
|
+
function createDocumentSignatureManagerFromActor(actor) {
|
|
141
|
+
return createManager({
|
|
142
|
+
actor,
|
|
143
|
+
mapState,
|
|
144
|
+
createApi,
|
|
145
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.documentSignature)
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { createDocumentSignatureManager, createDocumentSignatureManagerFromActor, documentSignatureMachine };
|
package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-jtQHasPA.esm.js";
|
|
5
7
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
6
8
|
function createDocumentCaptureActor(options) {
|
|
7
9
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, d as DoneActorEvent, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, p as ErrorActorEvent, r as ActorRef, s as AnyActorRef, t as ActionFunction, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
5
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
5
|
-
import { a as DocumentCaptureErrorCode, c as DocumentType, d as FinalizeDocumentResponse, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as DocumentUploadStatus } from "./types-
|
|
6
|
+
import { a as DocumentCaptureErrorCode, c as DocumentType, d as FinalizeDocumentResponse, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as DocumentUploadStatus } from "./types-CaVUb1DL.js";
|
|
6
7
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
7
8
|
declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
8
9
|
type: "CAPTURE";
|
|
@@ -262,7 +263,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
262
263
|
type: "fileSizeOkForNonGallery";
|
|
263
264
|
params: unknown;
|
|
264
265
|
};
|
|
265
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "
|
|
266
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
266
267
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
267
268
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
268
269
|
readonly id: "documentCapture";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
3
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
4
|
-
import { a as stopCameraStream } from "./camera-
|
|
5
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
6
|
-
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
7
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
|
+
import { a as stopCameraStream } from "./camera-CJKApt0x.esm.js";
|
|
5
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
6
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BJIaHxvI.esm.js";
|
|
7
|
+
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-6qVHvj76.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
11
11
|
processV5CLogbook: "v5cMultiPageLogbook",
|
|
@@ -109,7 +109,6 @@ async function uploadDocumentCapture({ file, base64Image, sendBase64 = false, pr
|
|
|
109
109
|
signal,
|
|
110
110
|
onUploadProgress: onProgress
|
|
111
111
|
});
|
|
112
|
-
if (!response.ok) throw new Error(`Document upload failed: ${response.status}`);
|
|
113
112
|
if (!(response.data.success || response.data.status === "SUCCESS" || response.data.status === "ADD_NEXT_PAGE" || response.data.status === "OPTIONAL_PAGE_CAPTURE")) throw new DocumentUploadRejectedError("Document upload rejected by server", response.data.status);
|
|
114
113
|
return response.data;
|
|
115
114
|
}
|
|
@@ -120,9 +119,7 @@ function resolveMultiPageDocumentType(processingType) {
|
|
|
120
119
|
async function finalizeDocument({ processingType, signal }) {
|
|
121
120
|
const type = resolveMultiPageDocumentType(processingType);
|
|
122
121
|
if (!type) throw new Error(`finalizeDocument only supports multi-page types (${MULTI_PAGE_TYPES.join(", ")})`);
|
|
123
|
-
const
|
|
124
|
-
if (!response.ok) throw new Error(`Document finalize failed: ${response.status}`);
|
|
125
|
-
const data = response.data;
|
|
122
|
+
const data = (await api.post(endpoints.finalizeDocument, { type }, { signal })).data;
|
|
126
123
|
if (!data) throw new Error("Document finalize rejected by server");
|
|
127
124
|
if (!(data.success || data.status === "SUCCESS")) throw new DocumentUploadRejectedError(`Document finalize rejected by server (status: ${data.status ?? "unknown"})`, data.status);
|
|
128
125
|
return data;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import "./events-CsPmTidH.esm.js";
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-BDuL1wTs.esm.js";
|
|
5
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
+
//#region src/modules/document-signature/documentSignatureServices.ts
|
|
8
|
+
/** Lists the session's documents in display order. Throws on failure. */
|
|
9
|
+
async function getDocuments(signal) {
|
|
10
|
+
try {
|
|
11
|
+
return [...(await api.get(endpoints.documentSignatureDocuments, { signal })).data.documents].sort((a, b) => a.order - b.order);
|
|
12
|
+
} catch (error) {
|
|
13
|
+
toIncodeApiError(endpoints.documentSignatureDocuments, error);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** Signs every listed document with one signature. Idempotent on the backend. Throws on failure. */
|
|
17
|
+
async function signDocuments(body, signal) {
|
|
18
|
+
try {
|
|
19
|
+
return (await api.post(endpoints.documentSignatureSign, body, { signal })).data;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
toIncodeApiError(endpoints.documentSignatureSign, error);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/** How long the signed screen stays before the module finishes, when it has no download links. */
|
|
25
|
+
const SIGNED_DISPLAY_MS = 1500;
|
|
26
|
+
const SCREEN = "documentSignature";
|
|
27
|
+
function track(code, payload = {}) {
|
|
28
|
+
addEvent({
|
|
29
|
+
code,
|
|
30
|
+
module: eventModuleNames.documentSignature,
|
|
31
|
+
screen: SCREEN,
|
|
32
|
+
payload
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function isTypedNameValid(name) {
|
|
36
|
+
const trimmed = name.trim();
|
|
37
|
+
return trimmed.length > 1 && trimmed.length <= 100 && !/[\r\n]/.test(trimmed);
|
|
38
|
+
}
|
|
39
|
+
const isSigned = (documents) => documents.some((d) => Boolean(d.signatureId));
|
|
40
|
+
/** True when the user has scrolled every document to its end. */
|
|
41
|
+
function hasReadAll(context) {
|
|
42
|
+
return context.documents.every((d) => context.reachedEndIds.includes(d.documentId));
|
|
43
|
+
}
|
|
44
|
+
/** True when the user may open the sign sheet. */
|
|
45
|
+
function canOpenSign(context) {
|
|
46
|
+
return context.config.requireScrollToEnd === false || hasReadAll(context);
|
|
47
|
+
}
|
|
48
|
+
/** True when the signed screen shows download links, so the user leaves it with Continue. */
|
|
49
|
+
function hasDownloads(context) {
|
|
50
|
+
return context.config.allowDownload === true && context.documents.some((d) => Boolean(d.signedUrl));
|
|
51
|
+
}
|
|
52
|
+
/** True when the current signature input is complete enough to submit. */
|
|
53
|
+
function canSubmitSignature(context) {
|
|
54
|
+
return context.method === "draw" ? context.inkLength >= 60 : isTypedNameValid(context.typedName);
|
|
55
|
+
}
|
|
56
|
+
function isFirstReachedEnd(context, event) {
|
|
57
|
+
const { documentId } = event;
|
|
58
|
+
return !context.reachedEndIds.includes(documentId) && context.documents.some((d) => d.documentId === documentId);
|
|
59
|
+
}
|
|
60
|
+
const outputOf = (event) => event.output;
|
|
61
|
+
const documentSignatureMachine = setup({
|
|
62
|
+
types: {
|
|
63
|
+
context: {},
|
|
64
|
+
events: {},
|
|
65
|
+
input: {}
|
|
66
|
+
},
|
|
67
|
+
actors: {
|
|
68
|
+
getDocuments: fromPromise(({ signal }) => getDocuments(signal)),
|
|
69
|
+
signDocuments: fromPromise(({ input, signal }) => signDocuments(input, signal))
|
|
70
|
+
},
|
|
71
|
+
actions: {
|
|
72
|
+
setDocuments: assign(({ context, event }) => {
|
|
73
|
+
const documents = outputOf(event);
|
|
74
|
+
return {
|
|
75
|
+
documents,
|
|
76
|
+
reachedEndIds: context.reachedEndIds.filter((id) => documents.some((d) => d.documentId === id))
|
|
77
|
+
};
|
|
78
|
+
}),
|
|
79
|
+
setSignedDocuments: assign(({ event }) => ({ documents: outputOf(event).documents })),
|
|
80
|
+
addReachedEnd: assign(({ context, event }) => {
|
|
81
|
+
const { documentId } = event;
|
|
82
|
+
return { reachedEndIds: [...context.reachedEndIds, documentId] };
|
|
83
|
+
}),
|
|
84
|
+
trackReachedEnd: ({ event }) => {
|
|
85
|
+
const { documentId } = event;
|
|
86
|
+
track("documentSignatureReachedEnd", { documentId });
|
|
87
|
+
},
|
|
88
|
+
resetSignatureInput: assign({
|
|
89
|
+
method: () => "draw",
|
|
90
|
+
inkLength: () => 0,
|
|
91
|
+
typedName: () => "",
|
|
92
|
+
signatureBase64: () => void 0
|
|
93
|
+
}),
|
|
94
|
+
setMethod: assign(({ event }) => ({
|
|
95
|
+
method: event.method,
|
|
96
|
+
inkLength: 0,
|
|
97
|
+
typedName: ""
|
|
98
|
+
})),
|
|
99
|
+
trackTypedSelected: () => track("documentSignatureTypedSignatureSelected"),
|
|
100
|
+
setInkLength: assign(({ event }) => ({ inkLength: event.inkLength })),
|
|
101
|
+
setTypedName: assign(({ event }) => ({ typedName: event.typedName })),
|
|
102
|
+
setSignatureImage: assign(({ event }) => ({ signatureBase64: event.signatureBase64 })),
|
|
103
|
+
setNoDocumentsError: assign({ error: () => "NO_DOCUMENTS" }),
|
|
104
|
+
setLoadError: assign({ error: () => "LOAD_FAILED" })
|
|
105
|
+
},
|
|
106
|
+
guards: {
|
|
107
|
+
outputIsSigned: ({ event }) => isSigned(outputOf(event)),
|
|
108
|
+
outputIsEmpty: ({ event }) => outputOf(event).length === 0,
|
|
109
|
+
isFirstReachedEnd: ({ context, event }) => isFirstReachedEnd(context, event),
|
|
110
|
+
finishesReading: ({ context, event }) => event.scrolled === true && isFirstReachedEnd(context, event) && context.documents.every((d) => d.documentId === event.documentId || context.reachedEndIds.includes(d.documentId)),
|
|
111
|
+
hasNoDownloads: ({ context }) => !hasDownloads(context),
|
|
112
|
+
canOpenSign: ({ context }) => canOpenSign(context),
|
|
113
|
+
isTypeMethod: ({ event }) => event.method === "type",
|
|
114
|
+
canSubmit: ({ context, event }) => canSubmitSignature(context) && (context.method === "type" || !!event.signatureBase64)
|
|
115
|
+
}
|
|
116
|
+
}).createMachine({
|
|
117
|
+
id: "documentSignature",
|
|
118
|
+
initial: "idle",
|
|
119
|
+
context: ({ input }) => ({
|
|
120
|
+
config: input.config,
|
|
121
|
+
documents: [],
|
|
122
|
+
reachedEndIds: [],
|
|
123
|
+
method: "draw",
|
|
124
|
+
inkLength: 0,
|
|
125
|
+
typedName: "",
|
|
126
|
+
signatureBase64: void 0,
|
|
127
|
+
error: void 0
|
|
128
|
+
}),
|
|
129
|
+
states: {
|
|
130
|
+
idle: { on: { LOAD: "loading" } },
|
|
131
|
+
loading: { invoke: {
|
|
132
|
+
src: "getDocuments",
|
|
133
|
+
onDone: [
|
|
134
|
+
{
|
|
135
|
+
target: "signed",
|
|
136
|
+
guard: "outputIsSigned",
|
|
137
|
+
actions: "setDocuments"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
target: "error",
|
|
141
|
+
guard: "outputIsEmpty",
|
|
142
|
+
actions: "setNoDocumentsError"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
target: "reading",
|
|
146
|
+
actions: "setDocuments"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
onError: {
|
|
150
|
+
target: "error",
|
|
151
|
+
actions: "setLoadError"
|
|
152
|
+
}
|
|
153
|
+
} },
|
|
154
|
+
reading: { on: {
|
|
155
|
+
DOCUMENT_REACHED_END: [{
|
|
156
|
+
target: "signing",
|
|
157
|
+
guard: "finishesReading",
|
|
158
|
+
actions: [
|
|
159
|
+
"addReachedEnd",
|
|
160
|
+
"trackReachedEnd",
|
|
161
|
+
"resetSignatureInput"
|
|
162
|
+
]
|
|
163
|
+
}, {
|
|
164
|
+
guard: "isFirstReachedEnd",
|
|
165
|
+
actions: ["addReachedEnd", "trackReachedEnd"]
|
|
166
|
+
}],
|
|
167
|
+
OPEN_SIGN: {
|
|
168
|
+
target: "signing",
|
|
169
|
+
guard: "canOpenSign",
|
|
170
|
+
actions: "resetSignatureInput"
|
|
171
|
+
}
|
|
172
|
+
} },
|
|
173
|
+
signing: { on: {
|
|
174
|
+
CLOSE_SIGN: "reading",
|
|
175
|
+
SELECT_METHOD: [{
|
|
176
|
+
guard: "isTypeMethod",
|
|
177
|
+
actions: ["setMethod", "trackTypedSelected"]
|
|
178
|
+
}, { actions: "setMethod" }],
|
|
179
|
+
DRAWING_CHANGED: { actions: "setInkLength" },
|
|
180
|
+
TYPED_NAME_CHANGED: { actions: "setTypedName" },
|
|
181
|
+
SUBMIT: {
|
|
182
|
+
target: "submitting",
|
|
183
|
+
guard: "canSubmit",
|
|
184
|
+
actions: "setSignatureImage"
|
|
185
|
+
}
|
|
186
|
+
} },
|
|
187
|
+
submitting: { invoke: {
|
|
188
|
+
src: "signDocuments",
|
|
189
|
+
input: ({ context }) => {
|
|
190
|
+
const documentIds = context.documents.map((d) => d.documentId);
|
|
191
|
+
return context.method === "type" ? {
|
|
192
|
+
documentIds,
|
|
193
|
+
typedName: context.typedName.trim()
|
|
194
|
+
} : {
|
|
195
|
+
documentIds,
|
|
196
|
+
signatureBase64: context.signatureBase64 ?? ""
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
onDone: {
|
|
200
|
+
target: "signed",
|
|
201
|
+
actions: "setSignedDocuments"
|
|
202
|
+
},
|
|
203
|
+
onError: "signFailed"
|
|
204
|
+
} },
|
|
205
|
+
signFailed: { on: { RETRY: "loading" } },
|
|
206
|
+
signed: {
|
|
207
|
+
after: { [SIGNED_DISPLAY_MS]: {
|
|
208
|
+
target: "finished",
|
|
209
|
+
guard: "hasNoDownloads"
|
|
210
|
+
} },
|
|
211
|
+
on: { CONTINUE: "finished" }
|
|
212
|
+
},
|
|
213
|
+
finished: { type: "final" },
|
|
214
|
+
error: { on: { RETRY: "loading" } }
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
//#endregion
|
|
218
|
+
export { hasReadAll as a, hasDownloads as i, canSubmitSignature as n, documentSignatureMachine as r, canOpenSign as t };
|
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
2
|
-
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
2
|
+
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-C45pTncO.js";
|
|
3
3
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Kauq2oB-.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-B6Bv32wU.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Kauq2oB-.esm.js";
|
|
5
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
8
|
function createDynamicFormsActor(options) {
|
|
7
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { i as Screen, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsFields.d.ts
|
|
6
6
|
/** Map of `questionId` → currently-displayed i18n error key. */
|
package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BDuL1wTs.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
5
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
6
7
|
//#region src/modules/dynamic-forms/dynamicFormsFields.ts
|
|
7
8
|
function getEffectiveType(question) {
|
|
@@ -38,7 +39,9 @@ const VALIDATORS = {
|
|
|
38
39
|
formatViaAnswerValidity: ({ questionId, answerValidity }, rule) => answerValidity[questionId] === false ? rule.errorKey : void 0
|
|
39
40
|
};
|
|
40
41
|
const normalizeValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
41
|
-
function evaluateRules(input, rules) {
|
|
42
|
+
function evaluateRules(input, rules, inputType) {
|
|
43
|
+
const dateError = inputType === "DATE" ? calendarDateError(input.value.trim()) : void 0;
|
|
44
|
+
if (dateError) return dateError;
|
|
42
45
|
for (const rule of rules) {
|
|
43
46
|
const error = rule.type === "required" ? VALIDATORS.required(input) : VALIDATORS.formatViaAnswerValidity(input, rule);
|
|
44
47
|
if (error) return error;
|
|
@@ -51,7 +54,7 @@ function validateScreenForm(answers, fields, answerValidity) {
|
|
|
51
54
|
value: normalizeValue(answers[field.questionId]),
|
|
52
55
|
questionId: field.questionId,
|
|
53
56
|
answerValidity
|
|
54
|
-
}, field.validation);
|
|
57
|
+
}, field.validation, field.inputType);
|
|
55
58
|
if (error) errors[field.questionId] = error;
|
|
56
59
|
return errors;
|
|
57
60
|
}, {});
|
|
@@ -64,15 +67,13 @@ function validateScreenField(answers, questionId, fields, answerValidity) {
|
|
|
64
67
|
value: normalizeValue(answers[questionId]),
|
|
65
68
|
questionId,
|
|
66
69
|
answerValidity
|
|
67
|
-
}, field.validation);
|
|
70
|
+
}, field.validation, field.inputType);
|
|
68
71
|
}
|
|
69
72
|
//#endregion
|
|
70
73
|
//#region src/modules/dynamic-forms/dynamicFormsServices.ts
|
|
71
74
|
async function fetchForms(flowId, signal) {
|
|
72
75
|
const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=DYNAMIC_FORMS`;
|
|
73
|
-
|
|
74
|
-
if (!res.ok) throw new Error(`GET ${endpoints.moduleConfig} failed: ${res.status} ${res.statusText}`);
|
|
75
|
-
return res.data;
|
|
76
|
+
return (await api.get(url, { signal })).data;
|
|
76
77
|
}
|
|
77
78
|
/**
|
|
78
79
|
* Fetches Form Pre-fill values resolved from the interview. Keyed by session
|
|
@@ -80,9 +81,7 @@ async function fetchForms(flowId, signal) {
|
|
|
80
81
|
* `prefillSource`. A failure throws — the machine degrades to a blank form.
|
|
81
82
|
*/
|
|
82
83
|
async function fetchPrefill(signal) {
|
|
83
|
-
|
|
84
|
-
if (!res.ok) throw new Error(`GET ${endpoints.dynamicFormsPrefill} failed: ${res.status} ${res.statusText}`);
|
|
85
|
-
return res.data;
|
|
84
|
+
return (await api.get(endpoints.dynamicFormsPrefill, { signal })).data;
|
|
86
85
|
}
|
|
87
86
|
async function submitFormAnswer(params, signal) {
|
|
88
87
|
try {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
2
|
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-B2DGXHe6.js";
|
|
4
4
|
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BflWuTe4.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as ALL_COUNTRIES, f as SUPPORTED_COUNTRIES, l as DEV_ONLY_COUNTRIES, m as isSupportedCountry, o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-Vjb6_mFt.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-wi135kG-.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
5
5
|
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-Vjb6_mFt.esm.js";
|
|
5
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
8
|
/**
|
|
7
9
|
* Creates and starts an eKYB actor.
|