@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
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/{3dAvatarProvider-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
|
|
5
5
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
6
6
|
function createDocumentCaptureActor(options) {
|
|
7
7
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
//#endregion
|
|
11
10
|
//#region src/modules/document-capture/documentCaptureManager.ts
|
|
12
11
|
function resolveMode(config) {
|
|
@@ -292,6 +291,5 @@ function createDocumentCaptureManagerFromActor(actor) {
|
|
|
292
291
|
instrumentation: createManagerInstrumentation(eventModuleNames.document, { getErrorPayload: getDocumentCaptureErrorPayload })
|
|
293
292
|
});
|
|
294
293
|
}
|
|
295
|
-
|
|
296
294
|
//#endregion
|
|
297
|
-
export { createDocumentCaptureManagerFromActor as n, createDocumentCaptureManager as t };
|
|
295
|
+
export { createDocumentCaptureManagerFromActor as n, createDocumentCaptureManager as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
6
|
+
import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";
|
|
7
|
+
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
8
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
11
11
|
processV5CLogbook: "v5cMultiPageLogbook",
|
|
@@ -22,8 +22,7 @@ const MULTI_PAGE_TYPES = [
|
|
|
22
22
|
"financeSettlement"
|
|
23
23
|
];
|
|
24
24
|
const DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024;
|
|
25
|
-
const
|
|
26
|
-
const OTHER_DOCUMENT_TYPES = new Set([
|
|
25
|
+
const OTHER_DOCUMENT_TYPES = /* @__PURE__ */ new Set([
|
|
27
26
|
"otherDocument1",
|
|
28
27
|
"otherDocument2",
|
|
29
28
|
"otherDocument3"
|
|
@@ -33,7 +32,6 @@ const DOCUMENT_CAPTURE_ERROR_CODES = {
|
|
|
33
32
|
UPLOAD_FAILED: "UPLOAD_FAILED"
|
|
34
33
|
};
|
|
35
34
|
const DOCUMENT_CAPTURE_FINALIZE_ERROR_CODES = { UNEXPECTED_ERROR: "UNEXPECTED_ERROR" };
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
36
|
//#region src/modules/document-capture/documentCaptureUploadService.ts
|
|
39
37
|
function isMultiPageDocumentType(processingType) {
|
|
@@ -82,7 +80,6 @@ async function finalizeDocument({ processingType, signal }) {
|
|
|
82
80
|
}
|
|
83
81
|
return data;
|
|
84
82
|
}
|
|
85
|
-
|
|
86
83
|
//#endregion
|
|
87
84
|
//#region src/modules/document-capture/documentCaptureStateMachine.ts
|
|
88
85
|
const documentCaptureMachine = setup({
|
|
@@ -206,7 +203,7 @@ const documentCaptureMachine = setup({
|
|
|
206
203
|
id: "documentCapture",
|
|
207
204
|
initial: "tutorial",
|
|
208
205
|
context: ({ input }) => {
|
|
209
|
-
const { processingType = "addressStatement", captureMode, allowSkipDocumentCapture, disableSkipPoa, captureAttempts =
|
|
206
|
+
const { processingType = "addressStatement", captureMode, allowSkipDocumentCapture, disableSkipPoa, captureAttempts = 3, sendBase64 = false, maxFileSize = DEFAULT_MAX_FILE_SIZE, onlyPdf = false, title, text, step2Title, step2Text } = input.config;
|
|
210
207
|
return {
|
|
211
208
|
config: {
|
|
212
209
|
processingType,
|
|
@@ -498,6 +495,5 @@ const documentCaptureMachine = setup({
|
|
|
498
495
|
closed: { type: "final" }
|
|
499
496
|
}
|
|
500
497
|
});
|
|
501
|
-
|
|
502
498
|
//#endregion
|
|
503
|
-
export { DOCUMENT_CAPTURE_ERROR_CODES as n, documentCaptureMachine as t };
|
|
499
|
+
export { DOCUMENT_CAPTURE_ERROR_CODES as n, documentCaptureMachine as t };
|
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { c as DynamicFormsValidationErrors, d as Question, f as Screen, l as DynamicFormsConfig, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager, u as InputType } from "./dynamicFormsManager-HQhUJCLg.js";
|
|
1
|
+
import { c as DynamicFormsValidationErrors, d as Question, f as Screen, l as DynamicFormsConfig, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager, u as InputType } from "./dynamicFormsManager-Dposae2l.js";
|
|
5
2
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import "./apiError-DkOXfFBu.esm.js";
|
|
6
|
-
import "./dateUtils-BW6mBV6p.esm.js";
|
|
7
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DdpJI6ne.esm.js";
|
|
8
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-C3jlNlWK.esm.js";
|
|
9
|
-
|
|
10
|
-
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-COik5bJ7.esm.js";
|
|
3
|
+
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
//#endregion
|
|
11
10
|
//#region src/modules/dynamic-forms/dynamicFormsManager.ts
|
|
12
11
|
/**
|
|
@@ -106,9 +105,21 @@ function mapState(snapshot) {
|
|
|
106
105
|
}
|
|
107
106
|
function createApi({ actor, trackElementClicked }) {
|
|
108
107
|
return {
|
|
108
|
+
/**
|
|
109
|
+
* Initializes the dynamic forms flow.
|
|
110
|
+
* Transitions from 'idle' to 'loadingScreens' or 'inputting'.
|
|
111
|
+
* Must be called before any other method.
|
|
112
|
+
*/
|
|
109
113
|
load() {
|
|
110
114
|
actor.send({ type: "LOAD" });
|
|
111
115
|
},
|
|
116
|
+
/**
|
|
117
|
+
* Updates the answer value for a single question.
|
|
118
|
+
* Should be called when state is 'inputting'.
|
|
119
|
+
*
|
|
120
|
+
* @param questionId - The question ID from the screen definition
|
|
121
|
+
* @param value - The raw user input value (formatting is stripped in Core before submission)
|
|
122
|
+
*/
|
|
112
123
|
setAnswer(questionId, value) {
|
|
113
124
|
actor.send({
|
|
114
125
|
type: "ANSWER_CHANGED",
|
|
@@ -116,6 +127,15 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
116
127
|
value
|
|
117
128
|
});
|
|
118
129
|
},
|
|
130
|
+
/**
|
|
131
|
+
* Reports the format validity of a question's current value.
|
|
132
|
+
* Used for fields with format constraints (PHONE, EMAIL, CPF).
|
|
133
|
+
* A `false` entry feeds into the `formatViaAnswerValidity` validation rule
|
|
134
|
+
* and surfaces as a `validationErrors[questionId]` entry once validated.
|
|
135
|
+
*
|
|
136
|
+
* @param questionId - The question ID from the screen definition
|
|
137
|
+
* @param isValid - Whether the current value passes format validation
|
|
138
|
+
*/
|
|
119
139
|
setAnswerValidity(questionId, isValid) {
|
|
120
140
|
actor.send({
|
|
121
141
|
type: "ANSWER_VALIDITY_CHANGED",
|
|
@@ -123,16 +143,31 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
123
143
|
isValid
|
|
124
144
|
});
|
|
125
145
|
},
|
|
146
|
+
/**
|
|
147
|
+
* Triggers validation for a single field (e.g., on blur).
|
|
148
|
+
* Populates or clears `validationErrors[questionId]` accordingly.
|
|
149
|
+
*
|
|
150
|
+
* @param questionId - The question ID from the screen definition
|
|
151
|
+
*/
|
|
126
152
|
validateField(questionId) {
|
|
127
153
|
actor.send({
|
|
128
154
|
type: "VALIDATE_FIELD",
|
|
129
155
|
questionId
|
|
130
156
|
});
|
|
131
157
|
},
|
|
158
|
+
/**
|
|
159
|
+
* Submits the current screen's answers.
|
|
160
|
+
* Transitions to 'submitting', then advances to the next screen or 'finished'.
|
|
161
|
+
* Answer submission failures are fire-and-forget and do not block progression.
|
|
162
|
+
*/
|
|
132
163
|
submit() {
|
|
133
164
|
trackElementClicked?.("submit");
|
|
134
165
|
actor.send({ type: "SUBMIT" });
|
|
135
166
|
},
|
|
167
|
+
/**
|
|
168
|
+
* Dismisses the module from 'misconfigured' state.
|
|
169
|
+
* Fix the config (provide `screens` or `flowId`) rather than calling `reset()`.
|
|
170
|
+
*/
|
|
136
171
|
close() {
|
|
137
172
|
trackElementClicked?.("close");
|
|
138
173
|
actor.send({ type: "CLOSE" });
|
|
@@ -163,6 +198,5 @@ function createDynamicFormsManagerFromActor(actor) {
|
|
|
163
198
|
instrumentation: createManagerInstrumentation(eventModuleNames.forms, { getEventScreenName: getDynamicFormsScreenName })
|
|
164
199
|
});
|
|
165
200
|
}
|
|
166
|
-
|
|
167
201
|
//#endregion
|
|
168
|
-
export { createDynamicFormsManagerFromActor as n, createDynamicFormsManager as t };
|
|
202
|
+
export { createDynamicFormsManagerFromActor as n, createDynamicFormsManager as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
4
|
//#region src/modules/dynamic-forms/types.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Input types supported by dynamic form questions.
|
|
8
7
|
* `inputType` on `Question` is optional so unknown future API values degrade
|
package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
+
import { n as toIncodeApiError, t as IncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
6
|
+
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsFields.ts
|
|
8
8
|
function getEffectiveType(question) {
|
|
9
9
|
return question.inputType ?? question.overrides ?? "TEXT";
|
|
@@ -32,7 +32,6 @@ function buildScreenFields(formScreen) {
|
|
|
32
32
|
validation: buildQuestionValidation(q)
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/modules/dynamic-forms/dynamicFormsValidators.ts
|
|
38
37
|
const VALIDATORS = {
|
|
@@ -68,7 +67,6 @@ function validateScreenField(answers, questionId, fields, answerValidity) {
|
|
|
68
67
|
answerValidity
|
|
69
68
|
}, field.validation);
|
|
70
69
|
}
|
|
71
|
-
|
|
72
70
|
//#endregion
|
|
73
71
|
//#region src/modules/dynamic-forms/dynamicFormsServices.ts
|
|
74
72
|
async function fetchForms(flowId, signal) {
|
|
@@ -87,7 +85,6 @@ async function submitFormAnswer(params, signal) {
|
|
|
87
85
|
throw toIncodeApiError(endpoints.dynamicFormsSubmitAnswer, error);
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
|
-
|
|
91
88
|
//#endregion
|
|
92
89
|
//#region src/modules/dynamic-forms/dynamicFormsStateMachine.ts
|
|
93
90
|
const INVALID_LOGIN_HINT_STATUS = 4301;
|
|
@@ -345,6 +342,5 @@ const dynamicFormsMachine = setup({
|
|
|
345
342
|
closed: { type: "final" }
|
|
346
343
|
}
|
|
347
344
|
});
|
|
348
|
-
|
|
349
345
|
//#endregion
|
|
350
|
-
export { dynamicFormsMachine as t };
|
|
346
|
+
export { dynamicFormsMachine as t };
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-DCOl8zy6.js";
|
|
6
|
-
import { c as AddressSuggestion } from "./types-B6KIOo6S.js";
|
|
7
|
-
import "./canvas-COIxuirO.js";
|
|
8
|
-
import "./createFaceAvatar-BjBu2CrU.js";
|
|
9
|
-
import { i as FlowModuleConfig } from "./types-NizIIgLD.js";
|
|
10
|
-
import { c as EkybCountry, d as EkybValidationErrors, f as UboEntry, l as EkybFieldDef, n as EkybState, o as ekybMachine, r as createEkybManager, s as EkybConfig, t as EkybManager, u as EkybValidationError } from "./ekybManager-CZUVEWMw.js";
|
|
11
|
-
|
|
1
|
+
import "./StateMachine-EDpYWy0i.js";
|
|
2
|
+
import { c as AddressSuggestion } from "./types-Bk_6dmDa.js";
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-BnEHzP1K.js";
|
|
4
|
+
import { c as EkybCountry, d as EkybValidationErrors, f as UboEntry, l as EkybFieldDef, n as EkybState, o as ekybMachine, r as createEkybManager, s as EkybConfig, t as EkybManager, u as EkybValidationError } from "./ekybManager-CBX0tM04.js";
|
|
12
5
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
13
6
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
14
7
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
|
-
import "./stats-BVy52wLy.esm.js";
|
|
6
|
-
import "./sessionInitializer-Dx_oPfHP.esm.js";
|
|
7
|
-
import "./getBrowser-CZ66VtC7.esm.js";
|
|
8
|
-
import "./browserSimulation-CQjwFn0Z.esm.js";
|
|
9
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
10
|
-
import "./tri-Calc36Ny.esm.js";
|
|
11
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
12
|
-
import "./apiError-DkOXfFBu.esm.js";
|
|
13
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BmfNaHRF.esm.js";
|
|
14
|
-
import "./addressSearch-B2NxSpHl.esm.js";
|
|
15
|
-
import "./session--C2lbjK5.esm.js";
|
|
16
|
-
import "./videoSelfieSteps-DAky5sq5.esm.js";
|
|
17
|
-
import "./flowServices-CJXaWFlZ.esm.js";
|
|
18
|
-
import { t as createEkybManager } from "./ekybManager-l67BnqxH.esm.js";
|
|
19
|
-
|
|
20
|
-
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
1
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-DmZLm35R.esm.js";
|
|
2
|
+
import { t as createEkybManager } from "./ekybManager-BTcW4poN.esm.js";
|
|
3
|
+
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-DmZLm35R.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -10,7 +10,6 @@ import { t as ekybMachine } from "./ekybStateMachine-BmfNaHRF.esm.js";
|
|
|
10
10
|
function createEkybActor(options) {
|
|
11
11
|
return createActor(ekybMachine, { input: { config: options.config } }).start();
|
|
12
12
|
}
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/modules/ekyb/ekybManager.ts
|
|
16
15
|
/**
|
|
@@ -82,15 +81,18 @@ function mapState(snapshot) {
|
|
|
82
81
|
}
|
|
83
82
|
function createApi({ actor, trackElementClicked }) {
|
|
84
83
|
return {
|
|
84
|
+
/** Initializes the eKYB flow — builds form fields from the provided config */
|
|
85
85
|
load() {
|
|
86
86
|
actor.send({ type: "LOAD" });
|
|
87
87
|
},
|
|
88
|
+
/** Sets the country and resets/revalidates fields */
|
|
88
89
|
setCountry(country) {
|
|
89
90
|
actor.send({
|
|
90
91
|
type: "SET_COUNTRY",
|
|
91
92
|
country
|
|
92
93
|
});
|
|
93
94
|
},
|
|
95
|
+
/** Sets a form field value and clears its current validation error */
|
|
94
96
|
setField(name, value) {
|
|
95
97
|
actor.send({
|
|
96
98
|
type: "DATA_CHANGED",
|
|
@@ -98,16 +100,19 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
98
100
|
value
|
|
99
101
|
});
|
|
100
102
|
},
|
|
103
|
+
/** Runs single-field validation (call on blur) */
|
|
101
104
|
validateField(name) {
|
|
102
105
|
actor.send({
|
|
103
106
|
type: "VALIDATE_FIELD",
|
|
104
107
|
name
|
|
105
108
|
});
|
|
106
109
|
},
|
|
110
|
+
/** Adds a new UBO entry (max 8) */
|
|
107
111
|
addUbo() {
|
|
108
112
|
trackElementClicked?.("addUbo");
|
|
109
113
|
actor.send({ type: "ADD_UBO" });
|
|
110
114
|
},
|
|
115
|
+
/** Removes a UBO entry by index */
|
|
111
116
|
removeUbo(index) {
|
|
112
117
|
trackElementClicked?.(`removeUbo.${index}`);
|
|
113
118
|
actor.send({
|
|
@@ -115,6 +120,7 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
115
120
|
index
|
|
116
121
|
});
|
|
117
122
|
},
|
|
123
|
+
/** Sets a UBO field (name or surname) */
|
|
118
124
|
setUboField(index, field, value) {
|
|
119
125
|
actor.send({
|
|
120
126
|
type: "SET_UBO_FIELD",
|
|
@@ -123,26 +129,31 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
123
129
|
value
|
|
124
130
|
});
|
|
125
131
|
},
|
|
132
|
+
/** Searches for address suggestions (debounced) */
|
|
126
133
|
searchAddress(query) {
|
|
127
134
|
actor.send({
|
|
128
135
|
type: "SEARCH_ADDRESS",
|
|
129
136
|
query
|
|
130
137
|
});
|
|
131
138
|
},
|
|
139
|
+
/** Fills address fields from a selected suggestion */
|
|
132
140
|
selectAddress(suggestion) {
|
|
133
141
|
actor.send({
|
|
134
142
|
type: "SELECT_ADDRESS",
|
|
135
143
|
suggestion
|
|
136
144
|
});
|
|
137
145
|
},
|
|
146
|
+
/** Submits the form (requires isValid to be true) */
|
|
138
147
|
submit() {
|
|
139
148
|
trackElementClicked?.("submit");
|
|
140
149
|
actor.send({ type: "SUBMIT" });
|
|
141
150
|
},
|
|
151
|
+
/** Retries from failure state, returning to the form */
|
|
142
152
|
retry() {
|
|
143
153
|
trackElementClicked?.("retry");
|
|
144
154
|
actor.send({ type: "RETRY" });
|
|
145
155
|
},
|
|
156
|
+
/** Closes/dismisses the module */
|
|
146
157
|
close() {
|
|
147
158
|
trackElementClicked?.("close");
|
|
148
159
|
actor.send({ type: "CLOSE" });
|
|
@@ -163,6 +174,5 @@ function createEkybManagerFromActor(actor) {
|
|
|
163
174
|
function createEkybManager(options) {
|
|
164
175
|
return createEkybManagerFromActor(createEkybActor(options));
|
|
165
176
|
}
|
|
166
|
-
|
|
167
177
|
//#endregion
|
|
168
|
-
export { createEkybManagerFromActor as n, createEkybManager as t };
|
|
178
|
+
export { createEkybManagerFromActor as n, createEkybManager as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
import { c as AddressSuggestion, l as FieldDef } from "./types-Bk_6dmDa.js";
|
|
5
5
|
//#region src/modules/ekyb/types.d.ts
|
|
6
6
|
type UboEntry = {
|
|
7
7
|
id: string;
|
|
@@ -59,7 +59,6 @@ type CreateEkybActorOptions = {
|
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/modules/ekyb/ekybManager.d.ts
|
|
62
|
-
|
|
63
62
|
type EkybLoadingState = {
|
|
64
63
|
status: 'loading';
|
|
65
64
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
+
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DH-IPF-w.esm.js";
|
|
6
|
+
import { t as getFlow } from "./flowServices-BQEUaMg6.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
|
-
const UBO_INPUT_LIMIT = 8;
|
|
9
8
|
/**
|
|
10
9
|
* Countries available in all environments.
|
|
11
10
|
* Sorted alphabetically by display name.
|
|
@@ -78,8 +77,6 @@ const UBO_FIELD_LABELS = {
|
|
|
78
77
|
name: "ekyb.uboName",
|
|
79
78
|
surname: "ekyb.uboSurname"
|
|
80
79
|
};
|
|
81
|
-
const CNPJ_FORMATTED_LENGTH = 18;
|
|
82
|
-
const CNPJ_CLEAN_LENGTH = 14;
|
|
83
80
|
const INVALID_CNPJ_PATTERNS = [
|
|
84
81
|
"00000000000000",
|
|
85
82
|
"11111111111111",
|
|
@@ -121,7 +118,6 @@ const CNPJ_SECOND_DIGIT_FACTORS = [
|
|
|
121
118
|
3,
|
|
122
119
|
2
|
|
123
120
|
];
|
|
124
|
-
|
|
125
121
|
//#endregion
|
|
126
122
|
//#region src/modules/ekyb/ekybUtils.ts
|
|
127
123
|
/**
|
|
@@ -175,7 +171,6 @@ function hasAtLeastOneAddressField(formData) {
|
|
|
175
171
|
function requiresAddressValidation(countryCode) {
|
|
176
172
|
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
177
173
|
}
|
|
178
|
-
|
|
179
174
|
//#endregion
|
|
180
175
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
181
176
|
function cleanCnpjString(cnpj) {
|
|
@@ -193,8 +188,8 @@ function calculateVerificationDigit(cnpjString, factors) {
|
|
|
193
188
|
function validateCNPJ(cnpjInput) {
|
|
194
189
|
if (!cnpjInput || typeof cnpjInput !== "string") return false;
|
|
195
190
|
let cnpj = cnpjInput.trim();
|
|
196
|
-
if (cnpj.length ===
|
|
197
|
-
if (cnpj.length !==
|
|
191
|
+
if (cnpj.length === 18) cnpj = cleanCnpjString(cnpj);
|
|
192
|
+
if (cnpj.length !== 14) return false;
|
|
198
193
|
if (!/^\d+$/.test(cnpj)) return false;
|
|
199
194
|
if (INVALID_CNPJ_PATTERNS.includes(cnpj)) return false;
|
|
200
195
|
const first = calculateVerificationDigit(cnpj, CNPJ_FIRST_DIGIT_FACTORS);
|
|
@@ -298,7 +293,8 @@ function validateUboGroup(ubos, hasUbos) {
|
|
|
298
293
|
function validateEkybForm(values, fields, country, ubos, hasUbos) {
|
|
299
294
|
const validators = createValidators();
|
|
300
295
|
const perField = fields.reduce((acc, field) => {
|
|
301
|
-
const
|
|
296
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
297
|
+
const error = evaluateRules(value, field.validation, field, validators);
|
|
302
298
|
if (error) acc[field.name] = error;
|
|
303
299
|
return acc;
|
|
304
300
|
}, {});
|
|
@@ -318,7 +314,8 @@ function validateEkybField(values, fieldName, fields) {
|
|
|
318
314
|
const field = fields.find((f) => f.name === fieldName);
|
|
319
315
|
if (!field) return void 0;
|
|
320
316
|
const validators = createValidators();
|
|
321
|
-
|
|
317
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
318
|
+
return evaluateRules(value, field.validation, field, validators);
|
|
322
319
|
}
|
|
323
320
|
/**
|
|
324
321
|
* Single UBO field validation (blur-triggered).
|
|
@@ -345,7 +342,6 @@ function validateEkybUboField(ubos, fieldKey) {
|
|
|
345
342
|
function requiresCnpjValidation(country) {
|
|
346
343
|
return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
|
|
347
344
|
}
|
|
348
|
-
|
|
349
345
|
//#endregion
|
|
350
346
|
//#region src/modules/ekyb/ekybActions.ts
|
|
351
347
|
function buildEkybValidationRules(fieldName, required, country) {
|
|
@@ -418,7 +414,6 @@ function buildEkybSubmitPayload(ctx) {
|
|
|
418
414
|
}
|
|
419
415
|
return payload;
|
|
420
416
|
}
|
|
421
|
-
|
|
422
417
|
//#endregion
|
|
423
418
|
//#region src/modules/ekyb/ekybGuards.ts
|
|
424
419
|
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
@@ -432,7 +427,6 @@ const isSupportedCountryGuard = ({ event }) => {
|
|
|
432
427
|
const { country } = event;
|
|
433
428
|
return isSupportedCountry(country);
|
|
434
429
|
};
|
|
435
|
-
|
|
436
430
|
//#endregion
|
|
437
431
|
//#region src/modules/ekyb/ekybServices.ts
|
|
438
432
|
/** Fetches the onboarding flow and extracts the EKYB module configuration */
|
|
@@ -447,12 +441,10 @@ async function submitEkyb(data, signal) {
|
|
|
447
441
|
if (!res.ok) throw new Error(`POST ${endpoints.ekybSubmit} failed: ${res.status} ${res.statusText}`);
|
|
448
442
|
return res.data;
|
|
449
443
|
}
|
|
450
|
-
|
|
451
444
|
//#endregion
|
|
452
445
|
//#region src/modules/ekyb/ekybActors.ts
|
|
453
446
|
const fetchEkybModuleConfigActor = fromPromise(async ({ signal }) => fetchEkybModuleConfig(signal));
|
|
454
447
|
const submitEkybActor = fromPromise(async ({ input, signal }) => submitEkyb(input, signal));
|
|
455
|
-
|
|
456
448
|
//#endregion
|
|
457
449
|
//#region src/modules/ekyb/ekybStateMachine.ts
|
|
458
450
|
const ADDRESS_AUTOCOMPLETE_KEYS = [
|
|
@@ -531,7 +523,7 @@ const ekybMachine = setup({
|
|
|
531
523
|
},
|
|
532
524
|
validationErrors: void 0,
|
|
533
525
|
ubos,
|
|
534
|
-
canAddUbo: hasUbos && ubos.length <
|
|
526
|
+
canAddUbo: hasUbos && ubos.length < 8,
|
|
535
527
|
hasUbos,
|
|
536
528
|
_nextUboId: nextId
|
|
537
529
|
};
|
|
@@ -574,14 +566,14 @@ const ekybMachine = setup({
|
|
|
574
566
|
}];
|
|
575
567
|
return {
|
|
576
568
|
ubos,
|
|
577
|
-
canAddUbo: ubos.length <
|
|
569
|
+
canAddUbo: ubos.length < 8,
|
|
578
570
|
_nextUboId: newId + 1
|
|
579
571
|
};
|
|
580
572
|
}),
|
|
581
573
|
removeUbo: assign(({ context, event }) => {
|
|
582
574
|
const { index } = event;
|
|
583
575
|
const ubos = context.ubos.filter((_, i) => i !== index);
|
|
584
|
-
const canAddUbo = ubos.length <
|
|
576
|
+
const canAddUbo = ubos.length < 8;
|
|
585
577
|
const errs = context.validationErrors;
|
|
586
578
|
let newErrors;
|
|
587
579
|
if (errs) {
|
|
@@ -781,6 +773,5 @@ const ekybMachine = setup({
|
|
|
781
773
|
closed: { type: "final" }
|
|
782
774
|
}
|
|
783
775
|
});
|
|
784
|
-
|
|
785
776
|
//#endregion
|
|
786
|
-
export { SUPPORTED_COUNTRIES as a, DEV_ONLY_COUNTRIES as i, toEkybConfig as n, isSupportedCountry as o, ALL_COUNTRIES as r, ekybMachine as t };
|
|
777
|
+
export { SUPPORTED_COUNTRIES as a, DEV_ONLY_COUNTRIES as i, toEkybConfig as n, isSupportedCountry as o, ALL_COUNTRIES as r, ekybMachine as t };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-B6KIOo6S.js";
|
|
5
|
-
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-ClRqj2rg.js";
|
|
6
|
-
|
|
1
|
+
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
2
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
7
3
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
8
|
-
|
|
9
4
|
/**
|
|
10
5
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
|
11
6
|
*
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
6
|
-
import "./cpf-B9htWzDt.esm.js";
|
|
7
|
-
import "./addressSearch-B2NxSpHl.esm.js";
|
|
8
|
-
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-BD8GjdL5.esm.js";
|
|
9
|
-
import { t as createEkycManager } from "./ekycManager-B_uUa1iN.esm.js";
|
|
10
|
-
|
|
11
|
-
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
1
|
+
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
|
|
2
|
+
import { t as createEkycManager } from "./ekycManager-BSMlIpGA.esm.js";
|
|
3
|
+
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
6
|
declare const ekycMachine: any;
|
|
7
7
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -13,7 +13,6 @@ type CreateEkycActorOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/modules/ekyc/ekycManager.d.ts
|
|
16
|
-
|
|
17
16
|
type EkycLoadingState = {
|
|
18
17
|
status: 'loading';
|
|
19
18
|
};
|