@incodetech/core 2.4.1-agentic.1 → 2.4.1-agentic.10
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/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-CAY43vSI.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +9 -9
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/{MultipartRecordingProvider-D9mauUdS.esm.js → MultipartRecordingProvider-BfQPSgSO.esm.js} +5 -0
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
- package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CyCrQnZR.esm.js} +1 -1
- package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BObuHBjn.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Dfrd2-26.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
- package/dist/{api-CpP4PS4S.esm.js → api-BSnbg4HO.esm.js} +2 -0
- package/dist/{apiError-DH-CH4Nz.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
- package/dist/{attemptCarry-WOkfvFMw.esm.js → attemptCarry-zQH85Elh.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DjX0XDyH.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
- package/dist/{authenticationManager-CWmh7aSY.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BMbZL8wm.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-C1nETQos.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-DThXMDqr.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-bjfVXO7p.d.ts → consentManager-7aHaehwF.d.ts} +6 -6
- package/dist/{consentManager-DMlSL6Ax.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
- package/dist/{consentStateMachine-DIYSMxKQ.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
- package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BFTdiEDB.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DNpC3wyf.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
- package/dist/{curpValidationManager-z8428oCM.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-B3iVsDyt.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CvI-pDT3.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
- package/dist/{customWatchlistManager-BuHtUb0y.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-CiVD9wyF.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
- package/dist/{deepsightLoader-B7DEYoyY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +5 -5
- package/dist/{addressSearch-DzbE9Ogt.esm.js → definitionSource-BHNxbuiv.esm.js} +2 -72
- package/dist/{desktopCameraElection-BGMtYwk3.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DLPqruXJ.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +2 -2
- package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-DDfviFg0.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-DCvWQhFG.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DfqCEPg9.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-USQMB-uV.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-CR8YSYux.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
- package/dist/{ekybStateMachine-kHwdz6hm.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +6 -4
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DymCvmVB.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
- package/dist/{ekycManager-DlGIn9wA.d.ts → ekycManager-q1fos6IY.d.ts} +1 -1
- package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
- package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
- package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
- package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
- package/dist/{ekycStateMachine-CoFCUJ2z.esm.js → ekycStateMachine-DBTczgGE.esm.js} +584 -534
- package/dist/{ekycUtils-GRuMELYr.esm.js → ekycUtils-Dcff8BOD.esm.js} +24 -6
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BCE3uA3z.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGoE3CUe.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
- package/dist/{emailStateMachine-KgHfDNvM.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
- package/dist/{events-ggpBBaZ8.esm.js → events-C7h7oaTE.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +18 -17
- package/dist/extensibility.esm.js +37 -36
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DV2ULUYS.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-Dp90bedH.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
- package/dist/{faceCaptureSetup-ZfiWg0fo.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +11 -11
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
- package/dist/{faceMatchManager-D2xKPjjQ.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-CUvwiQi9.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
- package/dist/{feature-management-BbCIA4og.esm.js → feature-management-CmKTG_T5.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DgDbEeFZ.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-BZeklojR.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +2 -2
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +31 -16
- package/dist/flow.esm.js +76 -15
- package/dist/{flowCompletionService-CcCnPs_T.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
- package/dist/{flowServices-Dmnc8Rye.esm.js → flowServices-Ca2vKNt2.esm.js} +29 -10
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BJJ3m_I8.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CTI3m4Ie.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CjChjZ3C.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-AEbn3Afi.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -19
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +8 -8
- 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-Dszuq9ng.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
- package/dist/{idCaptureManager-B3oR4RnA.esm.js → idCaptureManager-B5xqok0L.esm.js} +8 -8
- package/dist/{idCaptureManager-CCA2D1Ah.d.ts → idCaptureManager-CG8zbAp0.d.ts} +7 -7
- package/dist/{idCaptureServices-DK0QboqT.esm.js → idCaptureServices-BIF_7rub.esm.js} +6 -6
- package/dist/{idCaptureStateMachine-zzar9MPy.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +47 -19
- package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-B5xeI2lg.d.ts} +2 -2
- package/dist/{idOcrManager-xyEZNOBa.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DNKXh4Rn.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
- package/dist/{idVerificationManager-DdnvYfgN.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DtIBCa32.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CcpovlfD.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DxZFWy47.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
- package/dist/{index-DC0P2Vzw.d.ts → index-CSPOoqah.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BJ0GVHGr.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-DpGOp4Su.esm.js → kybChecksManager-CnqwgKoV.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-B43NAnv7.esm.js → kybChecksStateMachine-Be41K_NS.esm.js} +5 -4
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-B88Sm5nd.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +22 -13
- package/dist/{mandatoryConsentManager-B4vCYslr.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-DWslYPA3.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
- package/dist/{multipartRecordingService-BTqkHGG9.esm.js → multipartRecordingService-CCiRpByl.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-CZpORUWY.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneFormat-JJNaWthV.esm.js → phoneFormat-DEpESpz2.esm.js} +13 -1
- package/dist/{phoneManager-Dy5tODCU.esm.js → phoneManager-C-qD3p3N.esm.js} +2 -2
- package/dist/{phoneServices-DJgyOzU2.esm.js → phoneServices-BdR1nmSO.esm.js} +1 -1
- package/dist/{phoneStateMachine-DnlPhnw7.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +2 -2
- package/dist/{processFaceMatch-Bst83HaS.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-CTko6Cjn.esm.js → recordingService-BVSCo0ac.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CgGaT2NP.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-CbhN8uVN.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +2 -2
- package/dist/{resolveForm-O7-r79VA.esm.js → resolveForm-f9PhUo9j.esm.js} +1 -209
- package/dist/{runChildModule-BffFArwl.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
- package/dist/{sdkVersion-CDd_gaR7.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-f4MgAG2A.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
- package/dist/{selfieManager-hopelYEk.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
- package/dist/{selfieManager-DmZFzs1-.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
- package/dist/{selfieStateMachine-DaZIVv3Q.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
- package/dist/{session-CdSX4wsZ.esm.js → session-D0DWDKp9.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DsL7X2j9.esm.js → sessionInitializer-I92b2dmL.esm.js} +20 -9
- package/dist/{setup-DDahygZs.esm.js → setup-BpjzWqR1.esm.js} +12 -15
- package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CwqjcxPg.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
- package/dist/{signatureStateMachine-DBVDd1Eu.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
- package/dist/{stats-CatA2dea.esm.js → stats-C2sigf9p.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +378 -0
- package/dist/step-up.esm.js +639 -0
- package/dist/{tri-DG6priFa.esm.js → tri-DaUNvo-o.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-GuLthUVK.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-BPm1JSu7.d.ts → types-BqlZSoZ-.d.ts} +5 -5
- package/dist/{types-Csh8vzPo.d.ts → types-Cbm9J2yF.d.ts} +1 -1
- package/dist/{types-BEVHQbbC.d.ts → types-CgihAhT_.d.ts} +3 -3
- package/dist/{types-CuMJ2M7D.d.ts → types-DEa3taWc.d.ts} +8 -1
- package/dist/{types-Cd0J0F9D.d.ts → types-P9LzsfRo.d.ts} +3 -2
- package/dist/{types-CRaFu6wS.d.ts → types-TisHEbBg.d.ts} +9 -3
- package/dist/types-kLsU6Jkt.d.ts +6 -0
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +8 -8
- package/dist/{videoSelfieCameraWarmer-e3irGfcO.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +14 -12
- package/dist/{videoSelfieStepDetector-Dv3Mgws-.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-9iKKNNuW.esm.js} +46 -4
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-C3v3s_4H.esm.js} +22 -10
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DqUpAEj_.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DdaPl2PS.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
- package/dist/{watchlistManager-CdpXzT4B.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
- package/dist/{watchlistStateMachine-ofHW_lPk.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
- package/dist/workflow.d.ts +226 -41
- package/dist/workflow.esm.js +157 -61
- package/package.json +11 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-J6g6iKe_.d.ts +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-C_puwvVn.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-DHYTBCIn.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-KZROt6l3.esm.js";
|
|
4
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-I92b2dmL.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
7
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-lRIgn5Ic.esm.js";
|
|
8
8
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
9
9
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
1
|
//#region src/shared/addressSuggestion.ts
|
|
5
2
|
/** Shown when an autocomplete suggestion has no street (city/region-level result). */
|
|
6
3
|
const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
|
|
@@ -86,6 +83,7 @@ const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
|
|
|
86
83
|
CN: 6,
|
|
87
84
|
IN: 6,
|
|
88
85
|
NG: 6,
|
|
86
|
+
RO: 6,
|
|
89
87
|
SG: 6,
|
|
90
88
|
IL: 7
|
|
91
89
|
};
|
|
@@ -183,72 +181,4 @@ function createBundledDefinitionSource(definitions) {
|
|
|
183
181
|
return { select: (query) => byQuery.get(queryKey(query)) };
|
|
184
182
|
}
|
|
185
183
|
//#endregion
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* The rollout switch for form definitions (ENG-59781): one all-or-nothing
|
|
189
|
-
* answer to "do eKYC and eKYB build their forms from catalog definitions, or
|
|
190
|
-
* with today's builders?". Both module adapters ask it before selecting a
|
|
191
|
-
* definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
|
|
192
|
-
* (`internal/forms`) knows nothing about it.
|
|
193
|
-
*
|
|
194
|
-
* Off by default, so every source and country keeps today's builder. A
|
|
195
|
-
* catalog-only eKYC source, one today's builder never knew, uses its
|
|
196
|
-
* definition either way, since it has no old path to fall back to.
|
|
197
|
-
*
|
|
198
|
-
* This is Incode's rollout decision, not the integrator's: it is not a
|
|
199
|
-
* `setup()` option. A later step reads a Statsig gate here instead of the
|
|
200
|
-
* constant.
|
|
201
|
-
*/
|
|
202
|
-
const ENABLED_BY_DEFAULT = false;
|
|
203
|
-
/** Whether sources and countries with a form definition use it. */
|
|
204
|
-
function isFormDefinitionsEnabled() {
|
|
205
|
-
return ENABLED_BY_DEFAULT;
|
|
206
|
-
}
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/shared/addressSearch.ts
|
|
209
|
-
/** Searches for address suggestions via the address autocomplete API. */
|
|
210
|
-
async function searchAddress(query, signal) {
|
|
211
|
-
const res = await api.post(endpoints.addressAutocomplete, { search: query }, { signal });
|
|
212
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addressAutocomplete} failed: ${res.status} ${res.statusText}`);
|
|
213
|
-
return { apiResponse: { items: (res.data.apiResponse?.items ?? []).map((item, i) => {
|
|
214
|
-
const addr = item.address ?? item;
|
|
215
|
-
return {
|
|
216
|
-
id: item.id ?? i,
|
|
217
|
-
label: addr.label ?? item.title ?? "",
|
|
218
|
-
street: addr.street,
|
|
219
|
-
city: addr.city,
|
|
220
|
-
stateCode: addr.stateCode ?? addr.state,
|
|
221
|
-
postalCode: addr.postalCode,
|
|
222
|
-
houseNumber: addr.houseNumber,
|
|
223
|
-
countryCode: addr.countryCode
|
|
224
|
-
};
|
|
225
|
-
}) } };
|
|
226
|
-
}
|
|
227
|
-
const DEBOUNCE_MS = 300;
|
|
228
|
-
/**
|
|
229
|
-
* XState callback actor that debounces address search requests.
|
|
230
|
-
* Cancels in-flight HTTP requests when the actor is stopped.
|
|
231
|
-
*/
|
|
232
|
-
const debounceSearchActor = fromCallback(({ input, sendBack }) => {
|
|
233
|
-
const timerProvider = BrowserTimerProvider.getInstance();
|
|
234
|
-
const controller = new AbortController();
|
|
235
|
-
const handle = timerProvider.setTimeout(async () => {
|
|
236
|
-
try {
|
|
237
|
-
sendBack({
|
|
238
|
-
type: "RESULTS",
|
|
239
|
-
suggestions: (await searchAddress(input.query, controller.signal)).apiResponse?.items ?? []
|
|
240
|
-
});
|
|
241
|
-
} catch {
|
|
242
|
-
if (!controller.signal.aborted) sendBack({
|
|
243
|
-
type: "RESULTS",
|
|
244
|
-
suggestions: []
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
}, DEBOUNCE_MS);
|
|
248
|
-
return () => {
|
|
249
|
-
timerProvider.clearTimeout(handle);
|
|
250
|
-
controller.abort();
|
|
251
|
-
};
|
|
252
|
-
});
|
|
253
|
-
//#endregion
|
|
254
|
-
export { FIXED_DIGIT_POSTAL_CODE_LENGTH as a, getPostalCodeMaxLength as c, fillFromSuggestion as d, getStreetLevelErrorForSuggestion as f, createBundledDefinitionSource as i, validatePostalCode as l, searchAddress as n, formatPostalCode as o, isFormDefinitionsEnabled as r, getPostalCodeErrorKey as s, debounceSearchActor as t, STREET_LEVEL_REQUIRED_ERROR as u };
|
|
184
|
+
export { getPostalCodeMaxLength as a, fillFromSuggestion as c, getPostalCodeErrorKey as i, getStreetLevelErrorForSuggestion as l, FIXED_DIGIT_POSTAL_CODE_LENGTH as n, validatePostalCode as o, formatPostalCode as r, STREET_LEVEL_REQUIRED_ERROR as s, createBundledDefinitionSource as t };
|
package/dist/{desktopCameraElection-BGMtYwk3.esm.js → desktopCameraElection-Dvvw7PRY.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE_OWNERSHIP_DOMAIN } from "./warmup-
|
|
3
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE_OWNERSHIP_DOMAIN } from "./warmup-9iKKNNuW.esm.js";
|
|
3
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-C_puwvVn.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
import { l as markCameraGrantedInDocument, n as enumerateVideoDevices, o as clearCameraGrantedInDocument, s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-
|
|
7
|
+
import { l as queryCameraPermission } from "./permissionServices-CZpORUWY.esm.js";
|
|
8
8
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
9
9
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
10
10
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-CyNndVAT.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DDfviFg0.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-C7PW_Ah9.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-BG5TuqJz.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
package/dist/{documentCaptureManager-DLPqruXJ.esm.js → documentCaptureManager-BG5TuqJz.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
4
|
+
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-C7PW_Ah9.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();
|
|
@@ -262,7 +262,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
262
262
|
type: "fileSizeOkForNonGallery";
|
|
263
263
|
params: unknown;
|
|
264
264
|
};
|
|
265
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "
|
|
265
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "capturing" | "failure" | "initCamera" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
|
|
266
266
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
267
267
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
268
268
|
readonly id: "documentCapture";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
import { a as stopCameraStream } from "./camera-E_Kcre4O.esm.js";
|
|
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-
|
|
5
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CZpORUWY.esm.js";
|
|
6
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DjQUR1du.esm.js";
|
|
7
|
+
import { t as carryAttempts } from "./attemptCarry-zQH85Elh.esm.js";
|
|
8
8
|
import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
@@ -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-2ZHyejBc.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-B0bpHhhJ.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-2ZHyejBc.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();
|
package/dist/{dynamicFormsStateMachine-USQMB-uV.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-Bmwy1Fa7.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Manager-C9T5amUN.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-TisHEbBg.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
5
|
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BLOkwmWO.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
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-C7HKaeVr.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-P9mC7W9J.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-C7HKaeVr.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
|
+
import { n as getFlow } from "./flowServices-Ca2vKNt2.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
6
|
-
import {
|
|
6
|
+
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
7
|
import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Co1ottYN.esm.js";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorKey, l as getStreetLevelErrorForSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
9
|
+
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
|
|
10
|
+
import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-B_4JYKa-.esm.js";
|
|
9
11
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
10
12
|
const buildPostalCodeParams = (country) => {
|
|
11
13
|
const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
|
|
2
|
+
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
|
|
3
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-PPGVZbWk.js";
|
|
4
|
+
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
|
7
|
+
* configuration that is already normalized passes through unchanged.
|
|
8
|
+
*
|
|
9
|
+
* - `check` and `mandatory` are `true` only when served as `true`; a `null`
|
|
10
|
+
* check hides the field.
|
|
11
|
+
* - `fields` stays `undefined` when the configuration has no `fields` array:
|
|
12
|
+
* the flat dashboard shape, which the module can't render.
|
|
13
|
+
* - `source`, `displayMode` and other per-field keys are dropped.
|
|
14
|
+
*/
|
|
15
|
+
declare function toEkycPrefillConfig(raw: EkycPrefillModuleConfig | EkycPrefillConfig | undefined): EkycPrefillConfig;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycValidationError as EkycPrefillFieldError, type EkycValidationErrors as EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillInputFormat, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycFormValues as EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-C6BFFKxc.esm.js";
|
|
3
|
+
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
2
|
-
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-
|
|
3
|
-
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-DEa3taWc.js";
|
|
3
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-q1fos6IY.js";
|
|
4
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
2
|
-
import { l as toEkycConfig } from "./ekycUtils-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
|
|
2
|
+
import { l as toEkycConfig } from "./ekycUtils-Dcff8BOD.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-CeeJoRFY.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
4
|
+
import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYC actor.
|
|
@@ -2,7 +2,7 @@ import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
4
|
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
5
|
-
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-DEa3taWc.js";
|
|
6
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
7
7
|
declare const ekycMachine: any;
|
|
8
8
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
|
+
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
|
|
3
|
+
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
4
|
+
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
5
|
+
function createEkycPrefillActor(options = {}) {
|
|
6
|
+
return createActor(ekycPrefillMachine, { input: { config: options.config } }).start();
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/modules/ekyc-prefill/ekycPrefillManager.ts
|
|
10
|
+
function mapState(snapshot) {
|
|
11
|
+
const typedSnapshot = snapshot;
|
|
12
|
+
const { context } = typedSnapshot;
|
|
13
|
+
if (typedSnapshot.matches("form") && context.prepared) {
|
|
14
|
+
const { prepared, values, invalidFormats } = context;
|
|
15
|
+
const canSubmit = Object.keys(validateForm(prepared, values, invalidFormats)).length === 0 && !isAnyOfMissing(prepared, values);
|
|
16
|
+
return {
|
|
17
|
+
status: "form",
|
|
18
|
+
country: prepared.country,
|
|
19
|
+
fields: prepared.fields,
|
|
20
|
+
values,
|
|
21
|
+
errors: context.errors,
|
|
22
|
+
anyOf: prepared.anyOf && {
|
|
23
|
+
...prepared.anyOf,
|
|
24
|
+
showError: context.anyOfError
|
|
25
|
+
},
|
|
26
|
+
submitError: context.submitError,
|
|
27
|
+
canSubmit
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
31
|
+
if (typedSnapshot.matches("error")) return {
|
|
32
|
+
status: "error",
|
|
33
|
+
errorKind: context.errorKind,
|
|
34
|
+
errorMessage: context.errorMessage
|
|
35
|
+
};
|
|
36
|
+
if (typedSnapshot.matches("limitReached")) return { status: "limitReached" };
|
|
37
|
+
if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
|
|
38
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
39
|
+
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
40
|
+
return { status: "idle" };
|
|
41
|
+
}
|
|
42
|
+
function createApi({ actor, trackElementClicked }) {
|
|
43
|
+
return {
|
|
44
|
+
/** Builds the form from the configuration, or finishes at once when the backend runs the lookup itself. */
|
|
45
|
+
load() {
|
|
46
|
+
actor.send({ type: "LOAD" });
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Sets a field's value, formatted as typed, and clears its error. Pass
|
|
50
|
+
* `isValid: false` when the input itself knows the value is malformed
|
|
51
|
+
* (a phone number).
|
|
52
|
+
*/
|
|
53
|
+
setField(name, value, isValid) {
|
|
54
|
+
actor.send({
|
|
55
|
+
type: "SET_FIELD",
|
|
56
|
+
name,
|
|
57
|
+
value,
|
|
58
|
+
isValid
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
/** Validates one field, typically when it loses focus. */
|
|
62
|
+
validateField(name) {
|
|
63
|
+
actor.send({
|
|
64
|
+
type: "VALIDATE_FIELD",
|
|
65
|
+
name
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
/** Validates the form and, when it passes, runs the lookup. */
|
|
69
|
+
submit() {
|
|
70
|
+
trackElementClicked?.("submit");
|
|
71
|
+
actor.send({ type: "SUBMIT" });
|
|
72
|
+
},
|
|
73
|
+
/** Repeats the lookup that could not run. */
|
|
74
|
+
retry() {
|
|
75
|
+
trackElementClicked?.("retry");
|
|
76
|
+
actor.send({ type: "RETRY" });
|
|
77
|
+
},
|
|
78
|
+
/** Moves on after the lookup limit is reached. */
|
|
79
|
+
continue() {
|
|
80
|
+
trackElementClicked?.("continue");
|
|
81
|
+
actor.send({ type: "CONTINUE" });
|
|
82
|
+
},
|
|
83
|
+
/** Closes the module. */
|
|
84
|
+
close() {
|
|
85
|
+
trackElementClicked?.("close");
|
|
86
|
+
actor.send({ type: "CLOSE" });
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function createEkycPrefillManagerFromActor(actor) {
|
|
91
|
+
return createManager({
|
|
92
|
+
actor,
|
|
93
|
+
mapState,
|
|
94
|
+
createApi
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/** Creates an eKYC Pre-fill manager for headless or UI-driven usage. */
|
|
98
|
+
function createEkycPrefillManager(options = {}) {
|
|
99
|
+
return createEkycPrefillManagerFromActor(createEkycPrefillActor(options));
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { createEkycPrefillManagerFromActor as n, createEkycPrefillManager as t };
|