@incodetech/core 0.0.0-dev-20260713-506b2caa → 0.0.0-dev-20260714-84eb7a5b
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-D_SAp-m_.esm.js → 3dAvatarProvider-CjCu0kkb.esm.js} +1 -1
- package/dist/{Face2DProvider-CqUgP8ro.esm.js → Face2DProvider-BHP2bgkR.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-D-SuPeaR.d.ts → FaceDetectionProvider-sjxLCtCj.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CCTvyShE.d.ts → IWasmUtilCapability-67CL2B5T.d.ts} +2 -2
- package/dist/{OpenViduRecordingProvider-DUJbCdJS.esm.js → OpenViduRecordingProvider-DBD6mCgy.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-2WEq2BPh.d.ts → StreamCanvasCapture-B-gbqrCw.d.ts} +2 -2
- package/dist/ae-signature.d.ts +4 -4
- package/dist/antifraud.d.ts +4 -4
- package/dist/{antifraudManager-DGdmAXUw.d.ts → antifraudManager-Cb7V8LfR.d.ts} +2 -2
- package/dist/authentication.d.ts +19 -19
- package/dist/authentication.esm.js +7 -7
- package/dist/{authenticationManager-BxjPAQjy.esm.js → authenticationManager-DMLa3SgO.esm.js} +2 -2
- package/dist/{authenticationManager-D_hu_JQz.d.ts → authenticationManager-DrjNztmP.d.ts} +3 -3
- package/dist/{authenticationStateMachine-1dW-EM34.esm.js → authenticationStateMachine-D2cBhpfh.esm.js} +2 -2
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/camera.d.ts +1 -1
- package/dist/certificate-issuance.d.ts +31 -31
- package/dist/consent.d.ts +4 -4
- package/dist/{consentManager-BBLuAEtO.d.ts → consentManager-BAol4bsP.d.ts} +49 -49
- package/dist/cpf-ocr.d.ts +4 -4
- package/dist/{cpfOcrManager-DiuFeIlv.d.ts → cpfOcrManager-C0EgKkQQ.d.ts} +19 -19
- package/dist/{createFaceAvatar-DoRExjKD.esm.js → createFaceAvatar-B3VyVrXD.esm.js} +3 -3
- package/dist/{createFaceAvatar-Cq8XaOFg.d.ts → createFaceAvatar-v31npknQ.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +4 -4
- package/dist/{crossDocumentDataMatchManager-BjgY5K5j.d.ts → crossDocumentDataMatchManager-CnHoAGC7.d.ts} +2 -2
- package/dist/curp-validation.d.ts +10 -10
- package/dist/{curpValidationManager-Dh5pbMIh.d.ts → curpValidationManager-CeEgDRDi.d.ts} +3 -3
- package/dist/custom-fields.d.ts +3 -3
- package/dist/custom-watchlist.d.ts +2 -2
- package/dist/{deepsightLoader-Br33KOpX.esm.js → deepsightLoader-CjKCURKj.esm.js} +2 -2
- package/dist/document-capture.d.ts +6 -6
- package/dist/document-upload.d.ts +48 -48
- package/dist/{documentCaptureManager-Cg45h7_W.d.ts → documentCaptureManager-BduN2sRl.d.ts} +229 -229
- package/dist/dynamic-forms.d.ts +4 -4
- package/dist/{dynamicFormsManager-6myIq8JT.d.ts → dynamicFormsManager-DSNMQlC3.d.ts} +2 -2
- package/dist/ekyb.d.ts +9 -9
- package/dist/ekyb.esm.js +4 -4
- package/dist/{ekybStateMachine-BiPcOX5p.esm.js → ekybStateMachine-Dt5sOCoX.esm.js} +1 -1
- package/dist/ekyc.d.ts +6 -78
- package/dist/ekyc.esm.js +3 -146
- package/dist/ekycManager-KcUwIdYs.d.ts +98 -0
- package/dist/ekycManager-thjwh_uT.esm.js +149 -0
- package/dist/electronic-signature.d.ts +4 -4
- package/dist/email.d.ts +5 -5
- package/dist/email.esm.js +3 -3
- package/dist/{emailManager-C3txxrRg.d.ts → emailManager-BW2hseKJ.d.ts} +3 -3
- package/dist/{emailManager-CMLBFHqK.esm.js → emailManager-DOA8AXYQ.esm.js} +2 -2
- package/dist/{emailStateMachine-COK_8IDp.esm.js → emailStateMachine-B2MptyiU.esm.js} +1 -1
- package/dist/extensibility.d.ts +41 -40
- package/dist/extensibility.esm.js +38 -35
- package/dist/face-match.d.ts +3 -3
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CN95eDaX.d.ts → faceCaptureManagerFactory-B-xH9qFE.d.ts} +13 -13
- package/dist/{faceCaptureManagerFactory-7LOCpq26.esm.js → faceCaptureManagerFactory-Cgphf_pX.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CcPBTCx_.esm.js → faceCaptureSetup-Bd_qCt6v.esm.js} +3 -3
- package/dist/{faceMatchManager-CQiSAocW.d.ts → faceMatchManager-CCq_XLv2.d.ts} +3 -3
- package/dist/{faceMatchManager-DBLomalC.esm.js → faceMatchManager-z7hbiLBH.esm.js} +1 -1
- package/dist/field-comparison.d.ts +4 -4
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Dr99pXex.d.ts → fieldComparisonManager-r99cyWRu.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +5 -5
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow-events.d.ts +8 -8
- package/dist/flow.d.ts +14 -14
- package/dist/flow.esm.js +5 -5
- package/dist/{flowServices-xoG2v-Zg.esm.js → flowServices-CDBzGrq9.esm.js} +1 -1
- package/dist/geolocation.d.ts +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-D5Lo-VE4.d.ts → geolocationManager-DC_bGi5H.d.ts} +2 -2
- package/dist/{geolocationManager-Y9FZP1w1.esm.js → geolocationManager-PzNDt1bv.esm.js} +1 -1
- package/dist/government-validation.d.ts +4 -4
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-BqNYD2XO.esm.js → governmentValidationStateMachine-RUvohGIS.esm.js} +1 -1
- package/dist/home.d.ts +18 -18
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +4 -4
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.d.ts +4 -4
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +16 -16
- package/dist/id.esm.js +8 -8
- package/dist/{idCaptureManager-C5Ko6NhX.d.ts → idCaptureManager-CzyKv7x6.d.ts} +12 -12
- package/dist/{idCaptureManager-CvcIYCbR.esm.js → idCaptureManager-DWvLW483.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-DWRtZU8U.esm.js → idCaptureStateMachine-DLT-T2yB.esm.js} +6 -6
- package/dist/{idOcrManager-DjytGOv2.esm.js → idOcrManager--cuvWT7w.esm.js} +1 -1
- package/dist/{idOcrManager-BztGAfB0.d.ts → idOcrManager-DzHpEuO0.d.ts} +54 -54
- package/dist/{idVerificationManager-xpHq_s6f.esm.js → idVerificationManager-BhAwLh2D.esm.js} +1 -1
- package/dist/{idVerificationManager-DDy-difD.d.ts → idVerificationManager-Y1-ZVyma.d.ts} +27 -27
- package/dist/identity-reuse.d.ts +4 -4
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-PHtuVw5T.esm.js → identityReuseManager-BHdQQJ5P.esm.js} +1 -1
- package/dist/{identityReuseManager-CU0zYV7u.d.ts → identityReuseManager-BIu1_jPK.d.ts} +33 -33
- package/dist/{index-Bl4synmA.d.ts → index-BTIELBrO.d.ts} +2 -2
- package/dist/{index-U-zHjUn0.d.ts → index-D845j9QR.d.ts} +151 -151
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +10 -10
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DzZATI2M.d.ts → mandatoryConsentManager-Cy-vPF5k.d.ts} +53 -53
- package/dist/{mandatoryConsentManager-DlfGdZ58.esm.js → mandatoryConsentManager-DOcK1k6q.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-DOX32waz.esm.js → onDeviceFaceResults-CXqiz6o1.esm.js} +2 -2
- package/dist/openviduLazy-C5QPlhKX.esm.js +3 -0
- package/dist/{openviduLazy-B8Io9NMC.esm.js → openviduLazy-Cv86aS2h.esm.js} +1 -1
- package/dist/personhood.d.ts +16 -16
- package/dist/personhood.esm.js +3 -3
- package/dist/phone.d.ts +5 -5
- package/dist/phone.esm.js +3 -3
- package/dist/{phoneManager-RmMuAM_h.esm.js → phoneManager-C2hbNl_W.esm.js} +2 -2
- package/dist/{phoneManager-Bt4GpgTV.d.ts → phoneManager-DfcjlYoj.d.ts} +3 -3
- package/dist/{phoneStateMachine-CX4rvv0t.esm.js → phoneStateMachine-ZaquBwPP.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-COOmW1Y3.esm.js → recordingService-B901joV2.esm.js} +3 -3
- package/dist/redirect-to-mobile.d.ts +4 -4
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-AY6GnTCO.d.ts → redirectToMobileManager-BFf63F5S.d.ts} +2 -2
- package/dist/{redirectToMobileManager-BAg8VZjc.esm.js → redirectToMobileManager-CArNr2Fc.esm.js} +1 -1
- package/dist/selfie.d.ts +19 -19
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieManager-CSc7GgWc.esm.js → selfieManager-A_EE0I_a.esm.js} +2 -2
- package/dist/{selfieManager-xfzu2VxN.d.ts → selfieManager-CfKSPlLr.d.ts} +3 -3
- package/dist/{selfieStateMachine-BpCqqPy0.esm.js → selfieStateMachine-CAdZCJfF.esm.js} +2 -2
- package/dist/session.d.ts +7 -7
- package/dist/session.esm.js +3 -3
- package/dist/{sessionInitializer-Co7APszQ.esm.js → sessionInitializer-CZfhs1Af.esm.js} +2 -2
- package/dist/{setup-C-KKsxNp.esm.js → setup-B-KjXF9e.esm.js} +2 -2
- package/dist/{setup-D1e0UBPP.d.ts → setup-C9azSPgy.d.ts} +2 -2
- package/dist/signature.d.ts +3 -3
- package/dist/signature.esm.js +1 -1
- package/dist/{tri-BzQijCrD.esm.js → tri-Cn0g8xLX.esm.js} +1 -1
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-ByOqNnU3.esm.js → tri.esm-DJDT0c68.esm.js} +1 -1
- package/dist/tri.esm.js +1 -1
- package/dist/trust-graph.d.ts +4 -4
- package/dist/{types-DMwx1WSD.d.ts → types-Bq6I7Tbd.d.ts} +1 -1
- package/dist/{types-DjUVRt1t.d.ts → types-CFx_SPaH.d.ts} +3 -3
- package/dist/{types-C7UUDE5w.d.ts → types-CHY2ZSXW.d.ts} +1 -1
- package/dist/{types-q_JqcrUi.d.ts → types-DhN4qd9T.d.ts} +2 -2
- package/dist/video-selfie.d.ts +14 -14
- package/dist/video-selfie.esm.js +5 -5
- package/dist/wasm.d.ts +3 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/watchlist-for-business.d.ts +2 -2
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.d.ts +2 -2
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +170 -170
- package/dist/workflow.esm.js +29 -29
- package/package.json +1 -1
- package/dist/openviduLazy-iOxoNARd.esm.js +0 -3
- /package/dist/{Actor-CVuNUOJR.d.ts → Actor-D__xf-S9.d.ts} +0 -0
- /package/dist/{IVisibilityObserverCapability-CnatuAB2.d.ts → IVisibilityObserverCapability-BWiR2wii.d.ts} +0 -0
- /package/dist/{Manager-Nf1FHI2l.d.ts → Manager-D4FerOEH.d.ts} +0 -0
- /package/dist/{PrivacyLensProvider-lI9Re3Vo.esm.js → PrivacyLensProvider-DdNBghgC.esm.js} +0 -0
- /package/dist/{StateMachine-BbQn0WGQ.d.ts → StateMachine-IH5gwvRc.d.ts} +0 -0
- /package/dist/{browser-DlFgHpoC-2zr0Hz4y.esm.js → browser-DlFgHpoC-71PTjAHo.esm.js} +0 -0
- /package/dist/{camera-BKIKKx_i.d.ts → camera-d1f2p-kb.d.ts} +0 -0
- /package/dist/{canvas-BObFM-qd.d.ts → canvas-6lBxtuDn.d.ts} +0 -0
- /package/dist/{deepsightService-DM-bFcoC.d.ts → deepsightService-szDosYMr.d.ts} +0 -0
- /package/dist/{faceMatchStateMachine-BMQd3rrh.esm.js → faceMatchStateMachine-R89dO4W8.esm.js} +0 -0
- /package/dist/{fieldComparisonManager-DGpPHZ-4.esm.js → fieldComparisonManager-D3ii0cu6.esm.js} +0 -0
- /package/dist/{flowCompletionService-BM0VfDdG.esm.js → flowCompletionService-CmLw0M5w.esm.js} +0 -0
- /package/dist/{flowCompletionService-D67Cat5z.d.ts → flowCompletionService-oENcBdj6.d.ts} +0 -0
- /package/dist/{geolocationStateMachine-BXpXtbpl.esm.js → geolocationStateMachine-DaCuXXsG.esm.js} +0 -0
- /package/dist/{http-CrBBn_W2.esm.js → http-Be7sLlwP.esm.js} +0 -0
- /package/dist/{idCaptureDefaults-DK4ykzxh.esm.js → idCaptureDefaults-BRzPff0h.esm.js} +0 -0
- /package/dist/{idOcrStateMachine-DLuOVNIt.esm.js → idOcrStateMachine-BUpCUsFQ.esm.js} +0 -0
- /package/dist/{idVerificationStateMachine-DgoR-BBg.esm.js → idVerificationStateMachine-BM9O-8Ef.esm.js} +0 -0
- /package/dist/{identityReuseStateMachine-DmnM1BAa.esm.js → identityReuseStateMachine-9A4J3lOb.esm.js} +0 -0
- /package/dist/{index--OYuPcRj.d.ts → index-CmD84PXB.d.ts} +0 -0
- /package/dist/{invokeOnCaptureCallback-DlCKlJWr.esm.js → invokeOnCaptureCallback-C1cpCmPj.esm.js} +0 -0
- /package/dist/{lib-DmWhcCPD.esm.js → lib-DQrpzNM-.esm.js} +0 -0
- /package/dist/{mandatoryConsentStateMachine-CrkH9XLD.esm.js → mandatoryConsentStateMachine-HU0NnLsD.esm.js} +0 -0
- /package/dist/{mediapipeShared-DRjYsEf3.esm.js → mediapipeShared-Bk_3uEgM.esm.js} +0 -0
- /package/dist/{otp-nhnnp9FM.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-_n_me71J.d.ts → otp-Cc9mVS4s.d.ts} +0 -0
- /package/dist/{qe-signature-jpyR9x3e.esm.js → qe-signature-Ces-NrOq.esm.js} +0 -0
- /package/dist/{redirectToMobileStateMachine-jTHPayFp.esm.js → redirectToMobileStateMachine-CFh7ch0g.esm.js} +0 -0
- /package/dist/{runChildModule-DfryCG-j.esm.js → runChildModule-DuSlT0xP.esm.js} +0 -0
- /package/dist/{signatureStateMachine-CUWvEuOb.esm.js → signatureStateMachine-Bw615tMS.esm.js} +0 -0
- /package/dist/{types-4Zm5rOiY.d.ts → types-B6J7yeLF.d.ts} +0 -0
- /package/dist/{types-BvBOuDuK.d.ts → types-D54cpe17.d.ts} +0 -0
- /package/dist/{warmup-BLb08x_r.d.ts → warmup-6G-VPvwz.d.ts} +0 -0
- /package/dist/{watchlistForBusinessStateMachine-fc_8PwqF.esm.js → watchlistForBusinessStateMachine-wzZuYOIU.esm.js} +0 -0
- /package/dist/{watchlistStateMachine-BnXwv9fp.esm.js → watchlistStateMachine-C0fEH_Xu.esm.js} +0 -0
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
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-
|
|
1
|
+
import "./StateMachine-IH5gwvRc.js";
|
|
2
|
+
import "./Manager-D4FerOEH.js";
|
|
3
|
+
import "./Actor-D__xf-S9.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-DSNMQlC3.js";
|
|
5
5
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-D4FerOEH.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-D__xf-S9.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/dynamic-forms/types.d.ts
|
|
5
5
|
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./camera-
|
|
5
|
-
import "./types-
|
|
6
|
-
import { c as AddressSuggestion, l as FieldDef } from "./types-
|
|
7
|
-
import "./canvas-
|
|
8
|
-
import "./createFaceAvatar-
|
|
9
|
-
import { i as FlowModuleConfig } from "./types-
|
|
1
|
+
import "./StateMachine-IH5gwvRc.js";
|
|
2
|
+
import { t as Manager } from "./Manager-D4FerOEH.js";
|
|
3
|
+
import "./Actor-D__xf-S9.js";
|
|
4
|
+
import "./camera-d1f2p-kb.js";
|
|
5
|
+
import "./types-Bq6I7Tbd.js";
|
|
6
|
+
import { c as AddressSuggestion, l as FieldDef } from "./types-D54cpe17.js";
|
|
7
|
+
import "./canvas-6lBxtuDn.js";
|
|
8
|
+
import "./createFaceAvatar-v31npknQ.js";
|
|
9
|
+
import { i as FlowModuleConfig } from "./types-DhN4qd9T.js";
|
|
10
10
|
|
|
11
11
|
//#region src/modules/ekyb/types.d.ts
|
|
12
12
|
type UboEntry = {
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -3,18 +3,18 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./stats-BVy52wLy.esm.js";
|
|
6
|
-
import "./sessionInitializer-
|
|
6
|
+
import "./sessionInitializer-CZfhs1Af.esm.js";
|
|
7
7
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
8
8
|
import "./platform-0Ot-bF_a.esm.js";
|
|
9
9
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
10
|
-
import "./tri-
|
|
10
|
+
import "./tri-Cn0g8xLX.esm.js";
|
|
11
11
|
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
12
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-
|
|
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-Dt5sOCoX.esm.js";
|
|
14
14
|
import "./addressSearch-B2NxSpHl.esm.js";
|
|
15
15
|
import "./session--C2lbjK5.esm.js";
|
|
16
16
|
import "./videoSelfieSteps-DAky5sq5.esm.js";
|
|
17
|
-
import "./flowServices-
|
|
17
|
+
import "./flowServices-CDBzGrq9.esm.js";
|
|
18
18
|
|
|
19
19
|
//#region src/modules/ekyb/ekybActor.ts
|
|
20
20
|
/**
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
3
|
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
4
4
|
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-B2NxSpHl.esm.js";
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
5
|
+
import { t as getFlow } from "./flowServices-CDBzGrq9.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,83 +1,11 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig,
|
|
1
|
+
import "./StateMachine-IH5gwvRc.js";
|
|
2
|
+
import "./Manager-D4FerOEH.js";
|
|
3
|
+
import "./Actor-D__xf-S9.js";
|
|
4
|
+
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-D54cpe17.js";
|
|
5
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-KcUwIdYs.js";
|
|
5
6
|
|
|
6
|
-
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
7
|
-
declare const ekycMachine: any;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/modules/ekyc/ekycActor.d.ts
|
|
10
|
-
type CreateEkycActorOptions = {
|
|
11
|
-
config: EkycConfig;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/modules/ekyc/ekycManager.d.ts
|
|
15
|
-
|
|
16
|
-
type EkycLoadingState = {
|
|
17
|
-
status: 'loading';
|
|
18
|
-
};
|
|
19
|
-
type EkycFormState = {
|
|
20
|
-
status: 'form';
|
|
21
|
-
fields: EkycFieldDef[];
|
|
22
|
-
values: EkycFormValues;
|
|
23
|
-
validationErrors?: EkycValidationErrors;
|
|
24
|
-
/** True iff `validationErrors` is empty. Optimistic semantic: starts true on initial render. */
|
|
25
|
-
isValid: boolean;
|
|
26
|
-
addressSuggestions: AddressSuggestion[];
|
|
27
|
-
prefilled: Record<string, boolean>;
|
|
28
|
-
hideEmail: boolean;
|
|
29
|
-
fieldsCountry: string;
|
|
30
|
-
submitError: string;
|
|
31
|
-
};
|
|
32
|
-
type EkycSubmittingState = {
|
|
33
|
-
status: 'submitting';
|
|
34
|
-
};
|
|
35
|
-
type EkycSuccessState = {
|
|
36
|
-
status: 'success';
|
|
37
|
-
};
|
|
38
|
-
type EkycErrorState = {
|
|
39
|
-
status: 'error';
|
|
40
|
-
errorMessage: string;
|
|
41
|
-
};
|
|
42
|
-
type EkycMisconfiguredState = {
|
|
43
|
-
status: 'misconfigured';
|
|
44
|
-
};
|
|
45
|
-
type EkycFinishedState = {
|
|
46
|
-
status: 'finished';
|
|
47
|
-
};
|
|
48
|
-
type EkycClosedState = {
|
|
49
|
-
status: 'closed';
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Discriminated union of all possible eKYC manager states.
|
|
53
|
-
*/
|
|
54
|
-
type EkycState = EkycLoadingState | EkycFormState | EkycSubmittingState | EkycSuccessState | EkycErrorState | EkycMisconfiguredState | EkycFinishedState | EkycClosedState;
|
|
55
|
-
/**
|
|
56
|
-
* Creates an eKYC manager for headless or UI-driven usage.
|
|
57
|
-
*/
|
|
58
|
-
declare function createEkycManager(options: CreateEkycActorOptions): Manager<EkycState> & {
|
|
59
|
-
/** Initializes the eKYC flow — fetches config and pre-fill data */
|
|
60
|
-
load(): void;
|
|
61
|
-
/** Sets a form field value. Clears any existing validation error for this field. */
|
|
62
|
-
setField(name: string, value: string): void;
|
|
63
|
-
/** Validates a single field (e.g., on blur). Populates or clears `validationErrors[name]`. */
|
|
64
|
-
validateField(name: string): void;
|
|
65
|
-
/** Initiates a debounced address autocomplete search */
|
|
66
|
-
searchAddress(query: string): void;
|
|
67
|
-
/** Selects an address suggestion and populates address fields */
|
|
68
|
-
selectAddress(suggestion: AddressSuggestion): void;
|
|
69
|
-
/** Submits the form. Runs full-form validation; advances only when no errors. */
|
|
70
|
-
submit(): void;
|
|
71
|
-
/** Retries from failure state, returning to the form */
|
|
72
|
-
retry(): void;
|
|
73
|
-
/** Skips verification from failure state */
|
|
74
|
-
skip(): void;
|
|
75
|
-
/** Closes/dismisses the module */
|
|
76
|
-
close(): void;
|
|
77
|
-
};
|
|
78
|
-
type EkycManager = ReturnType<typeof createEkycManager>;
|
|
79
|
-
//#endregion
|
|
80
7
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
8
|
+
|
|
81
9
|
/**
|
|
82
10
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
|
83
11
|
*
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,154 +1,11 @@
|
|
|
1
1
|
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
2
|
import "./api-DsbUi7TO.esm.js";
|
|
3
|
-
import
|
|
3
|
+
import "./events-aeCkGlnn.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
|
-
import
|
|
5
|
+
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
6
6
|
import "./cpf-B9htWzDt.esm.js";
|
|
7
7
|
import "./addressSearch-B2NxSpHl.esm.js";
|
|
8
8
|
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-66T_0Hhx.esm.js";
|
|
9
|
+
import { t as createEkycManager } from "./ekycManager-thjwh_uT.esm.js";
|
|
9
10
|
|
|
10
|
-
//#region src/modules/ekyc/ekycActor.ts
|
|
11
|
-
/**
|
|
12
|
-
* Creates and starts an eKYC actor.
|
|
13
|
-
* The actor begins in 'idle' state, ready to receive LOAD.
|
|
14
|
-
*/
|
|
15
|
-
function createEkycActor(options) {
|
|
16
|
-
return createActor(ekycMachine, { input: { config: options.config } }).start();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/modules/ekyc/ekycManager.ts
|
|
21
|
-
/**
|
|
22
|
-
* Maps an eKYC state-machine snapshot to the exact Figma "Tracked Events"
|
|
23
|
-
* screen name. Source: eKYC Figma file → Tracked Events canvas
|
|
24
|
-
* (`https://www.figma.com/design/TWgYZVhurQCizfC4tfLEut/eKYC---eKYB---Ready-for-Dev?node-id=2977-10474`).
|
|
25
|
-
* Family is `eKYC.*` and section names are returned verbatim, emitted as-is
|
|
26
|
-
* on `event.screen` by `createManagerInstrumentation` (e.g. `eKYC.filled`,
|
|
27
|
-
* `eKYC.verify`). See `docs/patterns/INSTRUMENTATION.md`.
|
|
28
|
-
*
|
|
29
|
-
* Note the canvas uses `eKYC.filled` for the entry surface (not
|
|
30
|
-
* `eKYC.default`) and `eKYC.verify` for the submit-in-flight surface (the
|
|
31
|
-
* success instance lives inside the verify section).
|
|
32
|
-
*
|
|
33
|
-
* State → screen mapping rationale:
|
|
34
|
-
*
|
|
35
|
-
* - `idle` / `loading` / `prefilling` collapse onto `eKYC.filled` — the
|
|
36
|
-
* prefill round-trip happens before the user sees the form, but Figma does
|
|
37
|
-
* not define a dedicated loading/prefill surface (the per-country
|
|
38
|
-
* `eKYC-empty *` instances in the `eKYC-States` section are visual
|
|
39
|
-
* references, not analytics screens). Keeping the family on `eKYC.filled`
|
|
40
|
-
* avoids falling back to a generic `eKYC.loading` default and mixing
|
|
41
|
-
* taxonomies in dashboards.
|
|
42
|
-
* - `submitting` → `eKYC.verify` (verifying surface).
|
|
43
|
-
* - `success`/`finished` → `eKYC.success` so the terminal `finished` state
|
|
44
|
-
* stays on the visible success canvas.
|
|
45
|
-
* - `misconfigured` is intentionally unmapped — Figma does not define a
|
|
46
|
-
* misconfiguration surface, and the misconfigured state is an SDK
|
|
47
|
-
* configuration error rather than a user-visible journey screen.
|
|
48
|
-
* - `closed` is intentionally unmapped (terminal user-dismissed state —
|
|
49
|
-
* handled by `moduleClosed`).
|
|
50
|
-
*/
|
|
51
|
-
function getEkycScreenName(snapshot) {
|
|
52
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
53
|
-
if (stateName === void 0) return void 0;
|
|
54
|
-
switch (stateName) {
|
|
55
|
-
case "idle":
|
|
56
|
-
case "loading":
|
|
57
|
-
case "prefilling":
|
|
58
|
-
case "form": return "eKYC.filled";
|
|
59
|
-
case "submitting": return "eKYC.verify";
|
|
60
|
-
case "success":
|
|
61
|
-
case "finished": return "eKYC.success";
|
|
62
|
-
case "error": return "eKYC.error";
|
|
63
|
-
default: return;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function mapState(snapshot) {
|
|
67
|
-
const typedSnapshot = snapshot;
|
|
68
|
-
const { context } = typedSnapshot;
|
|
69
|
-
if (typedSnapshot.matches("idle") || typedSnapshot.matches("loading") || typedSnapshot.matches("prefilling")) return { status: "loading" };
|
|
70
|
-
if (typedSnapshot.matches("form")) return {
|
|
71
|
-
status: "form",
|
|
72
|
-
fields: context.fields,
|
|
73
|
-
values: context.values,
|
|
74
|
-
validationErrors: context.validationErrors,
|
|
75
|
-
isValid: Object.keys(context.validationErrors ?? {}).length === 0,
|
|
76
|
-
addressSuggestions: context.addressSuggestions,
|
|
77
|
-
prefilled: context.prefilled,
|
|
78
|
-
hideEmail: context.hideEmail,
|
|
79
|
-
fieldsCountry: context.fieldsCountry,
|
|
80
|
-
submitError: context.submitError
|
|
81
|
-
};
|
|
82
|
-
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
83
|
-
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
84
|
-
if (typedSnapshot.matches("error")) return {
|
|
85
|
-
status: "error",
|
|
86
|
-
errorMessage: context.errorMessage
|
|
87
|
-
};
|
|
88
|
-
if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
|
|
89
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
90
|
-
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
91
|
-
return { status: "loading" };
|
|
92
|
-
}
|
|
93
|
-
function createApi({ actor, trackElementClicked }) {
|
|
94
|
-
return {
|
|
95
|
-
load() {
|
|
96
|
-
actor.send({ type: "LOAD" });
|
|
97
|
-
},
|
|
98
|
-
setField(name, value) {
|
|
99
|
-
actor.send({
|
|
100
|
-
type: "DATA_CHANGED",
|
|
101
|
-
name,
|
|
102
|
-
value
|
|
103
|
-
});
|
|
104
|
-
},
|
|
105
|
-
validateField(name) {
|
|
106
|
-
actor.send({
|
|
107
|
-
type: "VALIDATE_FIELD",
|
|
108
|
-
name
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
searchAddress(query) {
|
|
112
|
-
actor.send({
|
|
113
|
-
type: "SEARCH_ADDRESS",
|
|
114
|
-
query
|
|
115
|
-
});
|
|
116
|
-
},
|
|
117
|
-
selectAddress(suggestion) {
|
|
118
|
-
actor.send({
|
|
119
|
-
type: "SELECT_ADDRESS",
|
|
120
|
-
suggestion
|
|
121
|
-
});
|
|
122
|
-
},
|
|
123
|
-
submit() {
|
|
124
|
-
trackElementClicked?.("submit");
|
|
125
|
-
actor.send({ type: "SUBMIT" });
|
|
126
|
-
},
|
|
127
|
-
retry() {
|
|
128
|
-
trackElementClicked?.("retry");
|
|
129
|
-
actor.send({ type: "RETRY" });
|
|
130
|
-
},
|
|
131
|
-
skip() {
|
|
132
|
-
trackElementClicked?.("skip");
|
|
133
|
-
actor.send({ type: "SKIP" });
|
|
134
|
-
},
|
|
135
|
-
close() {
|
|
136
|
-
trackElementClicked?.("close");
|
|
137
|
-
actor.send({ type: "CLOSE" });
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Creates an eKYC manager for headless or UI-driven usage.
|
|
143
|
-
*/
|
|
144
|
-
function createEkycManager(options) {
|
|
145
|
-
return createManager({
|
|
146
|
-
actor: createEkycActor(options),
|
|
147
|
-
mapState,
|
|
148
|
-
createApi,
|
|
149
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.ekyc, { getEventScreenName: getEkycScreenName })
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//#endregion
|
|
154
11
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { t as Manager } from "./Manager-D4FerOEH.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-D__xf-S9.js";
|
|
3
|
+
import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-D54cpe17.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
|
+
declare const ekycMachine: any;
|
|
7
|
+
type EkycMachine = typeof ekycMachine;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/modules/ekyc/ekycActor.d.ts
|
|
10
|
+
type EkycActor = ActorRefFrom<EkycMachine>;
|
|
11
|
+
type CreateEkycActorOptions = {
|
|
12
|
+
config: EkycConfig;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/modules/ekyc/ekycManager.d.ts
|
|
16
|
+
|
|
17
|
+
type EkycLoadingState = {
|
|
18
|
+
status: 'loading';
|
|
19
|
+
};
|
|
20
|
+
type EkycFormState = {
|
|
21
|
+
status: 'form';
|
|
22
|
+
fields: EkycFieldDef[];
|
|
23
|
+
values: EkycFormValues;
|
|
24
|
+
validationErrors?: EkycValidationErrors;
|
|
25
|
+
/** True iff `validationErrors` is empty. Optimistic semantic: starts true on initial render. */
|
|
26
|
+
isValid: boolean;
|
|
27
|
+
addressSuggestions: AddressSuggestion[];
|
|
28
|
+
prefilled: Record<string, boolean>;
|
|
29
|
+
hideEmail: boolean;
|
|
30
|
+
fieldsCountry: string;
|
|
31
|
+
submitError: string;
|
|
32
|
+
};
|
|
33
|
+
type EkycSubmittingState = {
|
|
34
|
+
status: 'submitting';
|
|
35
|
+
};
|
|
36
|
+
type EkycSuccessState = {
|
|
37
|
+
status: 'success';
|
|
38
|
+
};
|
|
39
|
+
type EkycErrorState = {
|
|
40
|
+
status: 'error';
|
|
41
|
+
errorMessage: string;
|
|
42
|
+
};
|
|
43
|
+
type EkycMisconfiguredState = {
|
|
44
|
+
status: 'misconfigured';
|
|
45
|
+
};
|
|
46
|
+
type EkycFinishedState = {
|
|
47
|
+
status: 'finished';
|
|
48
|
+
};
|
|
49
|
+
type EkycClosedState = {
|
|
50
|
+
status: 'closed';
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Discriminated union of all possible eKYC manager states.
|
|
54
|
+
*/
|
|
55
|
+
type EkycState = EkycLoadingState | EkycFormState | EkycSubmittingState | EkycSuccessState | EkycErrorState | EkycMisconfiguredState | EkycFinishedState | EkycClosedState;
|
|
56
|
+
declare function createEkycManagerFromActor(actor: EkycActor): Manager<EkycState> & {
|
|
57
|
+
/** Initializes the eKYC flow — fetches config and pre-fill data */
|
|
58
|
+
load(): void;
|
|
59
|
+
/** Sets a form field value. Clears any existing validation error for this field. */
|
|
60
|
+
setField(name: string, value: string): void;
|
|
61
|
+
/** Validates a single field (e.g., on blur). Populates or clears `validationErrors[name]`. */
|
|
62
|
+
validateField(name: string): void;
|
|
63
|
+
/** Initiates a debounced address autocomplete search */
|
|
64
|
+
searchAddress(query: string): void;
|
|
65
|
+
/** Selects an address suggestion and populates address fields */
|
|
66
|
+
selectAddress(suggestion: AddressSuggestion): void;
|
|
67
|
+
/** Submits the form. Runs full-form validation; advances only when no errors. */
|
|
68
|
+
submit(): void;
|
|
69
|
+
/** Retries from failure state, returning to the form */
|
|
70
|
+
retry(): void;
|
|
71
|
+
/** Skips verification from failure state */
|
|
72
|
+
skip(): void;
|
|
73
|
+
/** Closes/dismisses the module */
|
|
74
|
+
close(): void;
|
|
75
|
+
};
|
|
76
|
+
declare function createEkycManager(options: CreateEkycActorOptions): Manager<EkycState> & {
|
|
77
|
+
/** Initializes the eKYC flow — fetches config and pre-fill data */
|
|
78
|
+
load(): void;
|
|
79
|
+
/** Sets a form field value. Clears any existing validation error for this field. */
|
|
80
|
+
setField(name: string, value: string): void;
|
|
81
|
+
/** Validates a single field (e.g., on blur). Populates or clears `validationErrors[name]`. */
|
|
82
|
+
validateField(name: string): void;
|
|
83
|
+
/** Initiates a debounced address autocomplete search */
|
|
84
|
+
searchAddress(query: string): void;
|
|
85
|
+
/** Selects an address suggestion and populates address fields */
|
|
86
|
+
selectAddress(suggestion: AddressSuggestion): void;
|
|
87
|
+
/** Submits the form. Runs full-form validation; advances only when no errors. */
|
|
88
|
+
submit(): void;
|
|
89
|
+
/** Retries from failure state, returning to the form */
|
|
90
|
+
retry(): void;
|
|
91
|
+
/** Skips verification from failure state */
|
|
92
|
+
skip(): void;
|
|
93
|
+
/** Closes/dismisses the module */
|
|
94
|
+
close(): void;
|
|
95
|
+
};
|
|
96
|
+
type EkycManager = ReturnType<typeof createEkycManager>;
|
|
97
|
+
//#endregion
|
|
98
|
+
export { EkycActor as a, createEkycManagerFromActor as i, EkycState as n, ekycMachine as o, createEkycManager as r, EkycManager as t };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
|
|
2
|
+
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
|
+
import { t as ekycMachine } from "./ekycStateMachine-66T_0Hhx.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/ekyc/ekycActor.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates and starts an eKYC actor.
|
|
8
|
+
* The actor begins in 'idle' state, ready to receive LOAD.
|
|
9
|
+
*/
|
|
10
|
+
function createEkycActor(options) {
|
|
11
|
+
return createActor(ekycMachine, { input: { config: options.config } }).start();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/modules/ekyc/ekycManager.ts
|
|
16
|
+
/**
|
|
17
|
+
* Maps an eKYC state-machine snapshot to the exact Figma "Tracked Events"
|
|
18
|
+
* screen name. Source: eKYC Figma file → Tracked Events canvas
|
|
19
|
+
* (`https://www.figma.com/design/TWgYZVhurQCizfC4tfLEut/eKYC---eKYB---Ready-for-Dev?node-id=2977-10474`).
|
|
20
|
+
* Family is `eKYC.*` and section names are returned verbatim, emitted as-is
|
|
21
|
+
* on `event.screen` by `createManagerInstrumentation` (e.g. `eKYC.filled`,
|
|
22
|
+
* `eKYC.verify`). See `docs/patterns/INSTRUMENTATION.md`.
|
|
23
|
+
*
|
|
24
|
+
* Note the canvas uses `eKYC.filled` for the entry surface (not
|
|
25
|
+
* `eKYC.default`) and `eKYC.verify` for the submit-in-flight surface (the
|
|
26
|
+
* success instance lives inside the verify section).
|
|
27
|
+
*
|
|
28
|
+
* State → screen mapping rationale:
|
|
29
|
+
*
|
|
30
|
+
* - `idle` / `loading` / `prefilling` collapse onto `eKYC.filled` — the
|
|
31
|
+
* prefill round-trip happens before the user sees the form, but Figma does
|
|
32
|
+
* not define a dedicated loading/prefill surface (the per-country
|
|
33
|
+
* `eKYC-empty *` instances in the `eKYC-States` section are visual
|
|
34
|
+
* references, not analytics screens). Keeping the family on `eKYC.filled`
|
|
35
|
+
* avoids falling back to a generic `eKYC.loading` default and mixing
|
|
36
|
+
* taxonomies in dashboards.
|
|
37
|
+
* - `submitting` → `eKYC.verify` (verifying surface).
|
|
38
|
+
* - `success`/`finished` → `eKYC.success` so the terminal `finished` state
|
|
39
|
+
* stays on the visible success canvas.
|
|
40
|
+
* - `misconfigured` is intentionally unmapped — Figma does not define a
|
|
41
|
+
* misconfiguration surface, and the misconfigured state is an SDK
|
|
42
|
+
* configuration error rather than a user-visible journey screen.
|
|
43
|
+
* - `closed` is intentionally unmapped (terminal user-dismissed state —
|
|
44
|
+
* handled by `moduleClosed`).
|
|
45
|
+
*/
|
|
46
|
+
function getEkycScreenName(snapshot) {
|
|
47
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
48
|
+
if (stateName === void 0) return void 0;
|
|
49
|
+
switch (stateName) {
|
|
50
|
+
case "idle":
|
|
51
|
+
case "loading":
|
|
52
|
+
case "prefilling":
|
|
53
|
+
case "form": return "eKYC.filled";
|
|
54
|
+
case "submitting": return "eKYC.verify";
|
|
55
|
+
case "success":
|
|
56
|
+
case "finished": return "eKYC.success";
|
|
57
|
+
case "error": return "eKYC.error";
|
|
58
|
+
default: return;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function mapState(snapshot) {
|
|
62
|
+
const typedSnapshot = snapshot;
|
|
63
|
+
const { context } = typedSnapshot;
|
|
64
|
+
if (typedSnapshot.matches("idle") || typedSnapshot.matches("loading") || typedSnapshot.matches("prefilling")) return { status: "loading" };
|
|
65
|
+
if (typedSnapshot.matches("form")) return {
|
|
66
|
+
status: "form",
|
|
67
|
+
fields: context.fields,
|
|
68
|
+
values: context.values,
|
|
69
|
+
validationErrors: context.validationErrors,
|
|
70
|
+
isValid: Object.keys(context.validationErrors ?? {}).length === 0,
|
|
71
|
+
addressSuggestions: context.addressSuggestions,
|
|
72
|
+
prefilled: context.prefilled,
|
|
73
|
+
hideEmail: context.hideEmail,
|
|
74
|
+
fieldsCountry: context.fieldsCountry,
|
|
75
|
+
submitError: context.submitError
|
|
76
|
+
};
|
|
77
|
+
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
78
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
79
|
+
if (typedSnapshot.matches("error")) return {
|
|
80
|
+
status: "error",
|
|
81
|
+
errorMessage: context.errorMessage
|
|
82
|
+
};
|
|
83
|
+
if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
|
|
84
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
85
|
+
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
86
|
+
return { status: "loading" };
|
|
87
|
+
}
|
|
88
|
+
function createApi({ actor, trackElementClicked }) {
|
|
89
|
+
return {
|
|
90
|
+
load() {
|
|
91
|
+
actor.send({ type: "LOAD" });
|
|
92
|
+
},
|
|
93
|
+
setField(name, value) {
|
|
94
|
+
actor.send({
|
|
95
|
+
type: "DATA_CHANGED",
|
|
96
|
+
name,
|
|
97
|
+
value
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
validateField(name) {
|
|
101
|
+
actor.send({
|
|
102
|
+
type: "VALIDATE_FIELD",
|
|
103
|
+
name
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
searchAddress(query) {
|
|
107
|
+
actor.send({
|
|
108
|
+
type: "SEARCH_ADDRESS",
|
|
109
|
+
query
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
selectAddress(suggestion) {
|
|
113
|
+
actor.send({
|
|
114
|
+
type: "SELECT_ADDRESS",
|
|
115
|
+
suggestion
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
submit() {
|
|
119
|
+
trackElementClicked?.("submit");
|
|
120
|
+
actor.send({ type: "SUBMIT" });
|
|
121
|
+
},
|
|
122
|
+
retry() {
|
|
123
|
+
trackElementClicked?.("retry");
|
|
124
|
+
actor.send({ type: "RETRY" });
|
|
125
|
+
},
|
|
126
|
+
skip() {
|
|
127
|
+
trackElementClicked?.("skip");
|
|
128
|
+
actor.send({ type: "SKIP" });
|
|
129
|
+
},
|
|
130
|
+
close() {
|
|
131
|
+
trackElementClicked?.("close");
|
|
132
|
+
actor.send({ type: "CLOSE" });
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function createEkycManagerFromActor(actor) {
|
|
137
|
+
return createManager({
|
|
138
|
+
actor,
|
|
139
|
+
mapState,
|
|
140
|
+
createApi,
|
|
141
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.ekyc, { getEventScreenName: getEkycScreenName })
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function createEkycManager(options) {
|
|
145
|
+
return createEkycManagerFromActor(createEkycActor(options));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//#endregion
|
|
149
|
+
export { createEkycManagerFromActor as n, createEkycManager as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-
|
|
1
|
+
import "./StateMachine-IH5gwvRc.js";
|
|
2
|
+
import "./Manager-D4FerOEH.js";
|
|
3
|
+
import "./Actor-D__xf-S9.js";
|
|
4
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-D845j9QR.js";
|
|
5
5
|
export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/email.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-
|
|
5
|
-
import "./otp-
|
|
1
|
+
import "./StateMachine-IH5gwvRc.js";
|
|
2
|
+
import "./Manager-D4FerOEH.js";
|
|
3
|
+
import "./Actor-D__xf-S9.js";
|
|
4
|
+
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-BW2hseKJ.js";
|
|
5
|
+
import "./otp-Cc9mVS4s.js";
|
|
6
6
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -3,8 +3,8 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import "./events-aeCkGlnn.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
6
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
7
|
-
import "./otp-
|
|
8
|
-
import { t as createEmailManager } from "./emailManager-
|
|
6
|
+
import { t as emailMachine } from "./emailStateMachine-B2MptyiU.esm.js";
|
|
7
|
+
import "./otp-Bfnzf7I3.esm.js";
|
|
8
|
+
import { t as createEmailManager } from "./emailManager-DOA8AXYQ.esm.js";
|
|
9
9
|
|
|
10
10
|
export { createEmailManager, emailMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { t as OtpValidationErrors } from "./otp-
|
|
1
|
+
import { t as Manager } from "./Manager-D4FerOEH.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-D__xf-S9.js";
|
|
3
|
+
import { t as OtpValidationErrors } from "./otp-Cc9mVS4s.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/email/types.d.ts
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
|
|
2
2
|
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
4
|
-
import { t as OTP_CODE_LENGTH } from "./otp-
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-B2MptyiU.esm.js";
|
|
4
|
+
import { t as OTP_CODE_LENGTH } from "./otp-Bfnzf7I3.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/email/emailActor.ts
|
|
7
7
|
function createEmailActor(options) {
|
|
@@ -2,7 +2,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.j
|
|
|
2
2
|
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
4
4
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-
|
|
5
|
+
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-Bfnzf7I3.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/email/emailServices.ts
|
|
8
8
|
function getEmailServerFailureReason(error, invalidStatus) {
|