@incodetech/core 2.1.0-rc.1 → 2.1.0-rc.3
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-ChciZmjE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-BpJM-gIl.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -8
- package/dist/BrowserVisibilityObserverProvider-rim9Jrz-.esm.js +25 -0
- package/dist/Face2DProvider-BeLlYBbB.esm.js +824 -0
- package/dist/FaceDetectionProvider-B78455D4.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BbWjgpiF.d.ts +12 -0
- package/dist/IWasmUtilCapability-d2XvzaCk.d.ts +145 -0
- package/dist/IpifyProvider-BRW14_uo.esm.js +51 -0
- package/dist/{OpenViduRecordingProvider-O4GjBseO.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
- package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
- package/dist/{StreamCanvasCapture-ImiDQdVA.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
- package/dist/{WasmUtilProvider-BKWm8rSA.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +26 -2
- package/dist/{addressSearch-DvmWXKZg.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
- package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +10 -7
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +7 -6
- package/dist/antifraudManager-BKdQoMFf.esm.js +84 -0
- package/dist/{antifraudManager-CznnhyvD.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
- package/dist/{antifraudStateMachine-Ccrb-Jxc.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
- package/dist/{api-CESGtpbH.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -13
- package/dist/authentication.esm.js +33 -27
- package/dist/{authenticationManager-CaiQbp-q.d.ts → authenticationManager-CdPbNS2H.d.ts} +13 -3
- package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Dtl1vcET.esm.js} +17 -8
- package/dist/{authenticationStateMachine-DkcGUMw5.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +20 -23
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-D7Wo4Nbx.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
- package/dist/browser-DlFgHpoC-qLKs75Qp.esm.js +1425 -0
- package/dist/{browserSimulation-B1dWiXp7.esm.js → browserSimulation-TsSoavQv.esm.js} +153 -1216
- package/dist/camera-DUkgmYMo.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/{StreamCanvasCapture-yyl20qd9.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +312 -0
- package/dist/certificate-issuance.esm.js +74 -0
- package/dist/certificateIssuanceStateMachine-C07m7qtP.esm.js +127 -0
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +7 -6
- package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-BtnPZUW4.esm.js} +30 -5
- package/dist/{consentManager-Cg5Sk2tv.d.ts → consentManager-DufVo9D9.d.ts} +55 -55
- package/dist/{consentStateMachine-BG3yL8aC.esm.js → consentStateMachine-DO2JqoZW.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +7 -6
- package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
- package/dist/{cpfOcrManager-Dg1s_TY5.d.ts → cpfOcrManager-DqZZ94Gt.d.ts} +19 -19
- package/dist/createFaceAvatar-B8pFpy6o.d.ts +401 -0
- package/dist/createFaceAvatar-BOHDKQRq.esm.js +46 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +6 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +7 -6
- package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-BafobPXC.esm.js} +52 -5
- package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-Co6LZAHT.d.ts} +4 -3
- package/dist/{curpValidationStateMachine-B7V_qp66.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
- package/dist/custom-fields.d.ts +4 -2
- package/dist/custom-fields.esm.js +49 -6
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +27 -6
- package/dist/{customWatchlistStateMachine-HmFybXLX.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
- package/dist/{deepsightLoader-8tnddNx-.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
- package/dist/{deepsightService-CrHmvx8X.esm.js → deepsightService-CDahSjGP.esm.js} +9 -38
- package/dist/deepsightService-CMB9XjES.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +178 -177
- package/dist/document-capture.esm.js +78 -14
- package/dist/document-upload.d.ts +51 -50
- package/dist/document-upload.esm.js +10 -9
- package/dist/{documentCaptureStateMachine-CUTUzUw_.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +8 -410
- package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
- package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
- package/dist/dynamicFormsStateMachine-BXHcaocI.esm.js +284 -0
- package/dist/ekyb.d.ts +10 -6
- package/dist/ekyb.esm.js +62 -17
- package/dist/{ekybStateMachine-klc-AImJ.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
- package/dist/ekyc.d.ts +5 -3
- package/dist/ekyc.esm.js +55 -9
- package/dist/{ekycStateMachine-CXbpaJJn.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +9 -6
- package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +135 -92
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +9 -8
- package/dist/{emailManager--D5G3ChB.esm.js → emailManager-B_XzEsXH.esm.js} +47 -6
- package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-fHASH6uo.d.ts} +4 -3
- package/dist/{emailStateMachine-CxTOMAjC.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
- package/dist/{endpoints-BeTK0Mlt.esm.js → endpoints-BzMJFAPV.esm.js} +15 -0
- package/dist/{events-Dvvriq9l.esm.js → events-CqGY1yMq.esm.js} +87 -206
- package/dist/events.d.ts +23 -16
- package/dist/events.esm.js +3 -2
- package/dist/extensibility.d.ts +37 -27
- package/dist/extensibility.esm.js +74 -57
- package/dist/externalFetch-CyhBfD-n.esm.js +22 -0
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +6 -5
- package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +115 -25
- package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
- package/dist/{faceCaptureSetup-B9t6bYze.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-DeXXzSuz.esm.js → faceMatchStateMachine-DUeUjEPx.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +6 -5
- package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
- package/dist/{fieldComparisonManager-Bu5TaSr3.d.ts → fieldComparisonManager-DdLqDeB2.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +13 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +34 -16
- package/dist/flow.esm.js +53 -30
- package/dist/flowCompletionService-BIqSTZcd.d.ts +28 -0
- package/dist/flowCompletionService-qEqh_g14.esm.js +42 -0
- package/dist/{flowServices-ChgTNggJ.esm.js → flowServices-C4piblgx.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -126
- package/dist/geolocation.esm.js +8 -87
- package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
- package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
- package/dist/{geolocationStateMachine-Dvh7X0wF.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
- package/dist/{getDeviceClass-C8Do2qYu.esm.js → getDeviceClass-DGGzzfqm.esm.js} +1 -1
- package/dist/getDeviceData-TrKM8NPh.esm.js +101 -0
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +43 -8
- package/dist/{governmentValidationStateMachine-DcJ-BfsC.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +5 -4
- package/dist/http.d.ts +1 -0
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +8 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +6 -5
- package/dist/id.d.ts +24 -13
- package/dist/id.esm.js +48 -33
- package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
- package/dist/{idCaptureManager-ChCNmgBj.d.ts → idCaptureManager-BVdvfJys.d.ts} +47 -12
- package/dist/{idCaptureManager-D3pwWutw.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +100 -15
- package/dist/{idCaptureStateMachine-B3AiDIsT.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +525 -439
- package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
- package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
- package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-kRxwImzO.esm.js → idVerificationStateMachine-oqiERKpg.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +7 -6
- package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
- package/dist/{identityReuseManager-Cww-NDtd.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
- package/dist/{identityReuseStateMachine-BfE5YiEr.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
- package/dist/{index-B5hPA0Bg.d.ts → index-DtUlD-bz.d.ts} +2 -2
- package/dist/{index-B9NysVDB.d.ts → index-Icld-cKW.d.ts} +175 -295
- package/dist/index-XTtxaahe.d.ts +93 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +16 -12
- package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
- package/dist/{lib-BY67lgbq.esm.js → lib-B050WTth.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +7 -6
- package/dist/{mandatoryConsentManager-Dq6WiOZh.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
- package/dist/{mandatoryConsentStateMachine-DtQNW1ji.esm.js → mandatoryConsentStateMachine-DkJJLHqC.esm.js} +3 -3
- package/dist/mediaRecorderOptions-C3NAkVgK.esm.js +42 -0
- package/dist/mediapipeShared-CRAKVElv.esm.js +67 -0
- package/dist/{recordingService-yRw7hfzU.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
- package/dist/{openviduLazy-Dh14JNJc.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
- package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
- package/dist/{permissionGuards-D0wGddy7.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
- package/dist/{permissionServices-Doec4X5L.esm.js → permissionServices-BJhGL13R.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1494 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +9 -8
- package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BOTcjXgs.d.ts} +4 -3
- package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-BWlxqbyD.esm.js} +48 -6
- package/dist/{phoneStateMachine-BiV0yoEx.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
- package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +10 -7
- package/dist/recordingService-m_1xCthr.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +9 -7
- package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
- package/dist/{redirectToMobileManager-BNe3IzC_.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DyAdRxfP.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +16 -28
- package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-0nQfjVVo.esm.js} +14 -24
- package/dist/selfie.d.ts +27 -14
- package/dist/selfie.esm.js +43 -30
- package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-D_ZFERsE.esm.js} +17 -8
- package/dist/{selfieManager-C2y_t6DG.d.ts → selfieManager-R0Jw5sjb.d.ts} +13 -3
- package/dist/{selfieStateMachine-Bv99bZJE.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
- package/dist/{session-DoVb-OcB.esm.js → session-9jIfKFCc.esm.js} +3 -3
- package/dist/session.d.ts +11 -8
- package/dist/session.esm.js +16 -12
- package/dist/{sessionInitializer-DRB-hgbV.esm.js → sessionInitializer-C_TYIgyk.esm.js} +16 -109
- package/dist/{setup-BwCluiw3.d.ts → setup-CpRnXxn8.d.ts} +61 -2
- package/dist/setup-DHc6OaHm.esm.js +562 -0
- package/dist/signature.d.ts +4 -2
- package/dist/signature.esm.js +49 -6
- package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-DtoiPzys.esm.js} +21 -39
- package/dist/{stats-BMNUG1AU.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-fHBUDlAP.esm.js +1194 -0
- package/dist/tri-BG1iJsr4.esm.js +399 -0
- package/dist/tri.d.ts +2 -0
- package/dist/tri.esm-DUC01NgO.esm.js +2593 -0
- package/dist/tri.esm.js +4 -0
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +4 -3
- package/dist/{types-NuT8ftBV.d.ts → types-BklZ_Wne.d.ts} +2 -1
- package/dist/{types-DOUhndhT.d.ts → types-BsYXnC5s.d.ts} +39 -3
- package/dist/{types-DsnEVMhr.esm.js → types-CMcxlSmH.esm.js} +2 -1
- package/dist/types-CxW2e0Ar.d.ts +132 -0
- package/dist/{types-Bj9hdFjU.d.ts → types-DgGlgyZT.d.ts} +1 -1
- package/dist/types-ElOJAGaM.esm.js +189 -0
- package/dist/urlUtils-BZqFU9rR.esm.js +16 -0
- package/dist/video-C2WIj6TS.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1509 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup-Dg8Lh-50.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -3
- package/dist/wasm.esm.js +17 -13
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +30 -7
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +28 -6
- package/dist/{watchlistForBusinessStateMachine-DMl8j2Ov.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
- package/dist/{watchlistStateMachine-DmQlqI6L.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
- package/dist/workflow.d.ts +296 -103
- package/dist/workflow.esm.js +137 -74
- package/dist/{xstate.esm-C9wncMQa.esm.js → xstate.esm-Bomq1a0z.esm.js} +54 -5
- package/package.json +26 -1
- package/dist/IpifyProvider-D4LWD15E.esm.js +0 -167
- package/dist/antifraudManager-CkV4u-LE.esm.js +0 -55
- package/dist/camera-DJWm3V4g.esm.js +0 -22
- package/dist/deepsightService-Dh5P-hLf.d.ts +0 -265
- package/dist/faceCaptureManagerFactory-CjdBUS6s.d.ts +0 -721
- package/dist/flowCompletionService-BdR2cGgB.d.ts +0 -19
- package/dist/flowCompletionService-DdGojV9K.esm.js +0 -20
- package/dist/getBrowser-C8DP7oTB.esm.js +0 -8
- package/dist/openviduLazy-B8L--0oe.esm.js +0 -3
- package/dist/setup-CUO4mErT.esm.js +0 -1037
- /package/dist/{Actor-Y0_Fj-KL.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-DhNc_x02.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-CB0I1Uf2.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
- /package/dist/{Manager-BHn8wH8K.d.ts → Manager-CJ3G2zqi.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-Bx7Mpzt0.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
- /package/dist/{StateMachine-BC_nGvrc.d.ts → StateMachine-C_AY4cs7.d.ts} +0 -0
- /package/dist/{apiError-B-j-gyDx.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
- /package/dist/{camera-SRBpPq2X.d.ts → camera-CNVUo-bC.d.ts} +0 -0
- /package/dist/{canvas-SKcRBxsk.esm.js → canvas-_I95hkPg.esm.js} +0 -0
- /package/dist/{chunk-CMUKZ2uL.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-BRzggV8G.esm.js → cpf-BKaho0j_.esm.js} +0 -0
- /package/dist/{dateUtils-AksLQmgV.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0olyNFS.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
- /package/dist/{http-Cai3IoLS.esm.js → http-BkiUT7EB.esm.js} +0 -0
- /package/dist/{otp-CGMdUzBC.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-DF5A0sFx.d.ts → otp-M4iy57XY.d.ts} +0 -0
- /package/dist/{platform-SKvEfCBh.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-DvGZI7BF.d.ts → types-D_IceWxT.d.ts} +0 -0
- /package/dist/{types-ya0LN_MX.d.ts → types-Duy2rDxF.d.ts} +0 -0
package/dist/workflow.esm.js
CHANGED
|
@@ -1,63 +1,77 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import "./BrowserTimerProvider-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./browserSimulation-
|
|
9
|
-
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import "./
|
|
16
|
-
import
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import "./
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
import {
|
|
42
|
-
import { t as
|
|
43
|
-
import "./
|
|
44
|
-
import { t as
|
|
45
|
-
import
|
|
46
|
-
import { t as
|
|
47
|
-
import {
|
|
48
|
-
import { t as
|
|
49
|
-
import { t as
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import { t as
|
|
55
|
-
import { t as
|
|
56
|
-
import
|
|
57
|
-
import "./
|
|
58
|
-
import { t as
|
|
59
|
-
import
|
|
60
|
-
import { t as
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
3
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
4
|
+
import { d as addEvent, n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
5
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
7
|
+
import "./stats-CYcScXcO.esm.js";
|
|
8
|
+
import "./browserSimulation-TsSoavQv.esm.js";
|
|
9
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-C_TYIgyk.esm.js";
|
|
10
|
+
import "./getDeviceData-TrKM8NPh.esm.js";
|
|
11
|
+
import "./thumbmarkAdapter-fHBUDlAP.esm.js";
|
|
12
|
+
import "./IpifyProvider-BRW14_uo.esm.js";
|
|
13
|
+
import "./platform-uIVQUnJP.esm.js";
|
|
14
|
+
import "./tri-BG1iJsr4.esm.js";
|
|
15
|
+
import { a as fromPromise, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
16
|
+
import "./urlUtils-BZqFU9rR.esm.js";
|
|
17
|
+
import "./externalFetch-CyhBfD-n.esm.js";
|
|
18
|
+
import { n as toIncodeApiError } from "./apiError-DNS2OCEX.esm.js";
|
|
19
|
+
import { n as electronicSignatureMachine } from "./electronicSignatureManager-DjzUzqZj.esm.js";
|
|
20
|
+
import "./ae-signature-DlElqFrZ.esm.js";
|
|
21
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-C0NGnP9W.esm.js";
|
|
22
|
+
import "./faceCaptureSetup-CDUVU1nl.esm.js";
|
|
23
|
+
import "./MotionSensorProvider-DCbId4De.esm.js";
|
|
24
|
+
import "./permissionServices-BJhGL13R.esm.js";
|
|
25
|
+
import "./camera-DUkgmYMo.esm.js";
|
|
26
|
+
import "./onDeviceFaceResults-DVBggeq8.esm.js";
|
|
27
|
+
import "./ITimerCapability-pltuG1E8.esm.js";
|
|
28
|
+
import "./canvas-_I95hkPg.esm.js";
|
|
29
|
+
import "./backCameraStream-ZyqrFyjO.esm.js";
|
|
30
|
+
import "./video-C2WIj6TS.esm.js";
|
|
31
|
+
import "./getDeviceClass-DavNdcxh.esm.js";
|
|
32
|
+
import "./deepsightService-CDahSjGP.esm.js";
|
|
33
|
+
import "./getDeviceClass-DGGzzfqm.esm.js";
|
|
34
|
+
import "./types-CMcxlSmH.esm.js";
|
|
35
|
+
import "./createFaceAvatar-BOHDKQRq.esm.js";
|
|
36
|
+
import "./StreamCanvasCapture-Bz17q4FP.esm.js";
|
|
37
|
+
import "./permissionGuards-BR2oN573.esm.js";
|
|
38
|
+
import "./recordingService-m_1xCthr.esm.js";
|
|
39
|
+
import "./mediaRecorderOptions-C3NAkVgK.esm.js";
|
|
40
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-D-hOlg8p.esm.js";
|
|
41
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-C07m7qtP.esm.js";
|
|
42
|
+
import { t as consentMachine } from "./consentStateMachine-DO2JqoZW.esm.js";
|
|
43
|
+
import "./cpf-BKaho0j_.esm.js";
|
|
44
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-DXTPK6vI.esm.js";
|
|
45
|
+
import "./dateUtils-7-tQYRNN.esm.js";
|
|
46
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-B4G3Chkx.esm.js";
|
|
47
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-DSOX2epf.esm.js";
|
|
48
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BXHcaocI.esm.js";
|
|
49
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-CCSeqjCt.esm.js";
|
|
50
|
+
import "./addressSearch-DJyNTg5S.esm.js";
|
|
51
|
+
import "./session-9jIfKFCc.esm.js";
|
|
52
|
+
import "./videoSelfieSteps-7M5vxKn-.esm.js";
|
|
53
|
+
import "./flowServices-C4piblgx.esm.js";
|
|
54
|
+
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-DkLVTOyA.esm.js";
|
|
55
|
+
import { t as emailMachine } from "./emailStateMachine-fqJ42b19.esm.js";
|
|
56
|
+
import "./otp-Bfnzf7I3.esm.js";
|
|
57
|
+
import { t as selfieMachine } from "./selfieStateMachine-CIgeeiN9.esm.js";
|
|
58
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BeDidMLU.esm.js";
|
|
59
|
+
import "./idCaptureDefaults-DNJON8Xo.esm.js";
|
|
60
|
+
import { t as phoneMachine } from "./phoneStateMachine-B_V9nODs.esm.js";
|
|
61
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BmONeF6B.esm.js";
|
|
62
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DkJJLHqC.esm.js";
|
|
63
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-DRZc4FBl.esm.js";
|
|
64
|
+
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DoAnf2ql.esm.js";
|
|
65
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BYfOOOG0.esm.js";
|
|
66
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-DUeUjEPx.esm.js";
|
|
67
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-qEqh_g14.esm.js";
|
|
68
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-0nQfjVVo.esm.js";
|
|
69
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CwoPPO8b.esm.js";
|
|
70
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-oqiERKpg.esm.js";
|
|
71
|
+
import "./qe-signature-BhFnI9pT.esm.js";
|
|
72
|
+
import { t as signatureMachine } from "./signatureStateMachine-DtoiPzys.esm.js";
|
|
73
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-AHXVf-TB.esm.js";
|
|
74
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DvEunDxs.esm.js";
|
|
61
75
|
|
|
62
76
|
//#region src/internal/orchestration/defaultModules.ts
|
|
63
77
|
/**
|
|
@@ -98,7 +112,9 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
98
112
|
WATCHLIST: watchlistMachine,
|
|
99
113
|
WATCHLIST_BUSINESS: watchlistForBusinessMachine,
|
|
100
114
|
INCODE_WATCHLIST: customWatchlistMachine,
|
|
101
|
-
|
|
115
|
+
CERTIFICATE_ISSUANCE: certificateIssuanceMachine,
|
|
116
|
+
IDENTITY_REUSE: identityReuseMachine,
|
|
117
|
+
DYNAMIC_FORMS: dynamicFormsMachine
|
|
102
118
|
};
|
|
103
119
|
/**
|
|
104
120
|
* Per-module config mappers for orchestrators (workflow / flow).
|
|
@@ -324,6 +340,9 @@ const workflowMachine = setup({
|
|
|
324
340
|
notifyBackend: fromPromise(async ({ input, signal }) => {
|
|
325
341
|
return input.getFinishStatus(input.workflowId, signal);
|
|
326
342
|
}),
|
|
343
|
+
resolveScore: fromPromise(async ({ input, signal }) => {
|
|
344
|
+
return input.getTotalScoreStatus(signal);
|
|
345
|
+
}),
|
|
327
346
|
runChildModule
|
|
328
347
|
},
|
|
329
348
|
actions: {
|
|
@@ -351,6 +370,8 @@ const workflowMachine = setup({
|
|
|
351
370
|
}),
|
|
352
371
|
setResolvedMachine: assign(({ event }) => ({ resolvedMachine: event.output })),
|
|
353
372
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
373
|
+
setTotalScoreStatus: assign(({ event }) => ({ totalScoreStatus: event.output })),
|
|
374
|
+
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
354
375
|
setError: assign(({ event }) => {
|
|
355
376
|
const { message, code } = extractErrorInfo(event.error);
|
|
356
377
|
return {
|
|
@@ -389,7 +410,10 @@ const workflowMachine = setup({
|
|
|
389
410
|
isCustomModule: ({ context }) => {
|
|
390
411
|
return context.currentNode?.moduleKey === "CUSTOM_MODULE";
|
|
391
412
|
},
|
|
413
|
+
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
392
414
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
415
|
+
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
416
|
+
isOnboardingFinishedWithStatusScreen: ({ context, event }) => event.output?.action === "onboardingFinished" && context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
393
417
|
shouldEnterHome: ({ event }) => {
|
|
394
418
|
const result = event.output;
|
|
395
419
|
if (!result || result.currentNode.nodeType !== "MODULE") return false;
|
|
@@ -412,12 +436,14 @@ const workflowMachine = setup({
|
|
|
412
436
|
registeredModules: input.modules,
|
|
413
437
|
configMappers: input.configMappers ?? {},
|
|
414
438
|
finishStatus: void 0,
|
|
439
|
+
totalScoreStatus: void 0,
|
|
415
440
|
customModuleCallback: input.customModuleCallback,
|
|
416
441
|
interviewId: input.interviewId ?? "",
|
|
417
442
|
isDesktop: input.isDesktop ?? true,
|
|
418
443
|
isInjectedNode: false,
|
|
419
444
|
isHomeContinueLoading: false,
|
|
420
|
-
getFinishStatus: input.getFinishStatus ?? getFinishStatus
|
|
445
|
+
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
446
|
+
getTotalScoreStatus: input.getTotalScoreStatus ?? getTotalScoreStatus
|
|
421
447
|
}),
|
|
422
448
|
states: {
|
|
423
449
|
idle: { on: { LOAD: "loading" } },
|
|
@@ -495,7 +521,17 @@ const workflowMachine = setup({
|
|
|
495
521
|
}
|
|
496
522
|
},
|
|
497
523
|
on: {
|
|
498
|
-
MODULE_COMPLETE:
|
|
524
|
+
MODULE_COMPLETE: [
|
|
525
|
+
{
|
|
526
|
+
target: "resolvingScore",
|
|
527
|
+
guard: "isOnboardingFinishedWithStatusScreen"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
target: "finished",
|
|
531
|
+
guard: "isOnboardingFinishedSignal"
|
|
532
|
+
},
|
|
533
|
+
{ target: "processingNode" }
|
|
534
|
+
],
|
|
499
535
|
MODULE_ERROR: [{
|
|
500
536
|
guard: "isAdvanceableModuleError",
|
|
501
537
|
target: "processingNode",
|
|
@@ -504,7 +540,11 @@ const workflowMachine = setup({
|
|
|
504
540
|
target: "error",
|
|
505
541
|
actions: "setModuleError"
|
|
506
542
|
}],
|
|
507
|
-
COMPLETE_FLOW: "completing"
|
|
543
|
+
COMPLETE_FLOW: "completing",
|
|
544
|
+
FINISH_WORKFLOW: [{
|
|
545
|
+
target: "resolvingScore",
|
|
546
|
+
guard: "shouldResolveScore"
|
|
547
|
+
}, { target: "finished" }]
|
|
508
548
|
}
|
|
509
549
|
},
|
|
510
550
|
handlingCustomModule: { invoke: {
|
|
@@ -579,7 +619,7 @@ const workflowMachine = setup({
|
|
|
579
619
|
src: "notifyBackend",
|
|
580
620
|
input: ({ context }) => ({
|
|
581
621
|
getFinishStatus: context.getFinishStatus,
|
|
582
|
-
workflowId: context.workflowConfig?.id
|
|
622
|
+
workflowId: context.currentNode?.workflowId ?? context.workflowConfig?.id
|
|
583
623
|
}),
|
|
584
624
|
onDone: {
|
|
585
625
|
target: "finished",
|
|
@@ -587,9 +627,19 @@ const workflowMachine = setup({
|
|
|
587
627
|
},
|
|
588
628
|
onError: {
|
|
589
629
|
target: "error",
|
|
590
|
-
actions: "setError"
|
|
630
|
+
actions: ["setError", "setFinishStatusFailed"]
|
|
591
631
|
}
|
|
592
632
|
} },
|
|
633
|
+
resolvingScore: { invoke: {
|
|
634
|
+
id: "resolveScore",
|
|
635
|
+
src: "resolveScore",
|
|
636
|
+
input: ({ context }) => ({ getTotalScoreStatus: context.getTotalScoreStatus }),
|
|
637
|
+
onDone: {
|
|
638
|
+
target: "finished",
|
|
639
|
+
actions: "setTotalScoreStatus"
|
|
640
|
+
},
|
|
641
|
+
onError: { target: "finished" }
|
|
642
|
+
} },
|
|
593
643
|
finished: { type: "final" },
|
|
594
644
|
asyncResolution: { type: "final" },
|
|
595
645
|
closed: { type: "final" },
|
|
@@ -667,17 +717,21 @@ function mapState(snapshot) {
|
|
|
667
717
|
homeScreen
|
|
668
718
|
};
|
|
669
719
|
}
|
|
670
|
-
if (snapshot.matches("finished"))
|
|
671
|
-
|
|
672
|
-
workflowConfig: context.workflowConfig,
|
|
673
|
-
finishStatus: context.finishStatus ?? {
|
|
720
|
+
if (snapshot.matches("finished")) {
|
|
721
|
+
const finishStatus = context.finishStatus ?? {
|
|
674
722
|
redirectionUrl: "",
|
|
675
723
|
action: "none",
|
|
676
724
|
scoreStatus: "UNKNOWN",
|
|
677
725
|
endScreenTitle: null,
|
|
678
726
|
endScreenText: null
|
|
679
|
-
}
|
|
680
|
-
|
|
727
|
+
};
|
|
728
|
+
return {
|
|
729
|
+
status: "finished",
|
|
730
|
+
workflowConfig: context.workflowConfig,
|
|
731
|
+
finishStatus,
|
|
732
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
733
|
+
};
|
|
734
|
+
}
|
|
681
735
|
if (snapshot.matches("asyncResolution")) return {
|
|
682
736
|
status: "asyncResolution",
|
|
683
737
|
workflowConfig: context.workflowConfig,
|
|
@@ -687,7 +741,12 @@ function mapState(snapshot) {
|
|
|
687
741
|
if (snapshot.matches("error")) return {
|
|
688
742
|
status: "error",
|
|
689
743
|
error: context.error ?? "Unknown error",
|
|
690
|
-
errorCode: context.errorCode
|
|
744
|
+
errorCode: context.errorCode,
|
|
745
|
+
moduleErrorCode: context.moduleErrorCode
|
|
746
|
+
};
|
|
747
|
+
if (snapshot.matches("completing")) return {
|
|
748
|
+
status: "completing",
|
|
749
|
+
homeScreen
|
|
691
750
|
};
|
|
692
751
|
return {
|
|
693
752
|
status: "loading",
|
|
@@ -707,6 +766,10 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
707
766
|
trackElementClicked?.("completeFlow");
|
|
708
767
|
actor.send({ type: "COMPLETE_FLOW" });
|
|
709
768
|
},
|
|
769
|
+
finishWorkflow() {
|
|
770
|
+
trackElementClicked?.("finishWorkflow");
|
|
771
|
+
actor.send({ type: "FINISH_WORKFLOW" });
|
|
772
|
+
},
|
|
710
773
|
errorModule(error, moduleErrorCode) {
|
|
711
774
|
actor.send({
|
|
712
775
|
type: "MODULE_ERROR",
|
|
@@ -744,7 +807,7 @@ function createWorkflowManager(options = {}) {
|
|
|
744
807
|
}),
|
|
745
808
|
mapState,
|
|
746
809
|
createApi,
|
|
747
|
-
instrumentation: createManagerInstrumentation(
|
|
810
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.workflow)
|
|
748
811
|
}), { interviewId: options.interviewId });
|
|
749
812
|
}
|
|
750
813
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Creates a manager that wraps a state machine actor with a clean public API.
|
|
4
4
|
*
|
|
5
5
|
* The manager provides:
|
|
6
|
-
* - `getState()` - Returns the mapped public
|
|
6
|
+
* - `getState()` - Returns the mapped public state
|
|
7
7
|
* - `subscribe()` - Listen to state changes
|
|
8
8
|
* - `stop()` - Stop the actor
|
|
9
9
|
* - Plus any custom API methods from `createApi`
|
|
@@ -63,13 +63,21 @@ function createManager(options) {
|
|
|
63
63
|
});
|
|
64
64
|
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
65
65
|
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
66
|
-
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentErrorPayload);
|
|
66
|
+
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
|
|
67
|
+
let lastVisible = instrumentation?.getInitialVisibility?.();
|
|
68
|
+
if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
69
|
+
const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
|
|
70
|
+
if (visible === lastVisible) return;
|
|
71
|
+
lastVisible = visible;
|
|
72
|
+
if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
|
|
73
|
+
else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
74
|
+
});
|
|
67
75
|
const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
|
|
68
76
|
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
69
77
|
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
70
78
|
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
71
79
|
if (currentScreenName === nextScreenName) {
|
|
72
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
80
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
73
81
|
currentErrorName = nextErrorName;
|
|
74
82
|
currentErrorPayload = nextErrorPayload;
|
|
75
83
|
return;
|
|
@@ -77,7 +85,7 @@ function createManager(options) {
|
|
|
77
85
|
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
78
86
|
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
79
87
|
currentScreenName = nextScreenName;
|
|
80
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
88
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
81
89
|
currentErrorName = nextErrorName;
|
|
82
90
|
currentErrorPayload = nextErrorPayload;
|
|
83
91
|
}) : void 0;
|
|
@@ -89,6 +97,7 @@ function createManager(options) {
|
|
|
89
97
|
if (isStopped) return;
|
|
90
98
|
isStopped = true;
|
|
91
99
|
actorSubscription?.unsubscribe();
|
|
100
|
+
stopVisibility?.();
|
|
92
101
|
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
93
102
|
currentScreenName = void 0;
|
|
94
103
|
currentErrorName = void 0;
|
|
@@ -1124,6 +1133,46 @@ function stopChild(actorRef) {
|
|
|
1124
1133
|
stop$1.execute = executeStop;
|
|
1125
1134
|
return stop$1;
|
|
1126
1135
|
}
|
|
1136
|
+
function checkNot(snapshot, { context, event }, { guards }) {
|
|
1137
|
+
return !evaluateGuard(guards[0], context, event, snapshot);
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Higher-order guard that evaluates to `true` if the `guard` passed to it
|
|
1141
|
+
* evaluates to `false`.
|
|
1142
|
+
*
|
|
1143
|
+
* @category Guards
|
|
1144
|
+
* @example
|
|
1145
|
+
*
|
|
1146
|
+
* ```ts
|
|
1147
|
+
* import { setup, not } from 'xstate';
|
|
1148
|
+
*
|
|
1149
|
+
* const machine = setup({
|
|
1150
|
+
* guards: {
|
|
1151
|
+
* someNamedGuard: () => false
|
|
1152
|
+
* }
|
|
1153
|
+
* }).createMachine({
|
|
1154
|
+
* on: {
|
|
1155
|
+
* someEvent: {
|
|
1156
|
+
* guard: not('someNamedGuard'),
|
|
1157
|
+
* actions: () => {
|
|
1158
|
+
* // will be executed if guard in `not(...)`
|
|
1159
|
+
* // evaluates to `false`
|
|
1160
|
+
* }
|
|
1161
|
+
* }
|
|
1162
|
+
* }
|
|
1163
|
+
* });
|
|
1164
|
+
* ```
|
|
1165
|
+
*
|
|
1166
|
+
* @returns A guard
|
|
1167
|
+
*/
|
|
1168
|
+
function not(guard) {
|
|
1169
|
+
function not$1(_args, _params) {
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1172
|
+
not$1.check = checkNot;
|
|
1173
|
+
not$1.guards = [guard];
|
|
1174
|
+
return not$1;
|
|
1175
|
+
}
|
|
1127
1176
|
function checkAnd(snapshot, { context, event }, { guards }) {
|
|
1128
1177
|
return guards.every((guard) => evaluateGuard(guard, context, event, snapshot));
|
|
1129
1178
|
}
|
|
@@ -3401,4 +3450,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
3401
3450
|
}
|
|
3402
3451
|
|
|
3403
3452
|
//#endregion
|
|
3404
|
-
export { fromPromise as a,
|
|
3453
|
+
export { fromPromise as a, not as c, fromCallback as i, createManager as l, sendTo as n, and as o, assign as r, createActor as s, setup as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.esm.js"
|
|
16
16
|
},
|
|
17
|
+
"./tri": {
|
|
18
|
+
"source": "./src/integrations/tri/index.ts",
|
|
19
|
+
"types": "./dist/tri.d.ts",
|
|
20
|
+
"import": "./dist/tri.esm.js"
|
|
21
|
+
},
|
|
17
22
|
"./flow": {
|
|
18
23
|
"source": "./src/modules/flow/index.ts",
|
|
19
24
|
"types": "./dist/flow.d.ts",
|
|
@@ -24,11 +29,26 @@
|
|
|
24
29
|
"types": "./dist/flow-events.d.ts",
|
|
25
30
|
"import": "./dist/flow-events.esm.js"
|
|
26
31
|
},
|
|
32
|
+
"./avatar": {
|
|
33
|
+
"source": "./src/modules/avatar/index.ts",
|
|
34
|
+
"types": "./dist/avatar.d.ts",
|
|
35
|
+
"import": "./dist/avatar.esm.js"
|
|
36
|
+
},
|
|
27
37
|
"./selfie": {
|
|
28
38
|
"source": "./src/modules/selfie/index.ts",
|
|
29
39
|
"types": "./dist/selfie.d.ts",
|
|
30
40
|
"import": "./dist/selfie.esm.js"
|
|
31
41
|
},
|
|
42
|
+
"./video-selfie": {
|
|
43
|
+
"source": "./src/modules/video-selfie/index.ts",
|
|
44
|
+
"types": "./dist/video-selfie.d.ts",
|
|
45
|
+
"import": "./dist/video-selfie.esm.js"
|
|
46
|
+
},
|
|
47
|
+
"./personhood": {
|
|
48
|
+
"source": "./src/modules/personhood/index.ts",
|
|
49
|
+
"types": "./dist/personhood.d.ts",
|
|
50
|
+
"import": "./dist/personhood.esm.js"
|
|
51
|
+
},
|
|
32
52
|
"./authentication": {
|
|
33
53
|
"source": "./src/modules/authentication/index.ts",
|
|
34
54
|
"types": "./dist/authentication.d.ts",
|
|
@@ -229,6 +249,11 @@
|
|
|
229
249
|
"types": "./dist/dynamic-forms.d.ts",
|
|
230
250
|
"import": "./dist/dynamic-forms.esm.js"
|
|
231
251
|
},
|
|
252
|
+
"./certificate-issuance": {
|
|
253
|
+
"source": "./src/modules/certificate-issuance/index.ts",
|
|
254
|
+
"types": "./dist/certificate-issuance.d.ts",
|
|
255
|
+
"import": "./dist/certificate-issuance.esm.js"
|
|
256
|
+
},
|
|
232
257
|
"./field-comparison": {
|
|
233
258
|
"source": "./src/modules/field-comparison/index.ts",
|
|
234
259
|
"types": "./dist/field-comparison.d.ts",
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/providers/browser/BrowserEnvironmentProvider.ts
|
|
2
|
-
var BrowserEnvironmentProvider = class {
|
|
3
|
-
getScreenDimensions() {
|
|
4
|
-
if (typeof screen === "undefined") return {
|
|
5
|
-
width: 0,
|
|
6
|
-
height: 0
|
|
7
|
-
};
|
|
8
|
-
return {
|
|
9
|
-
width: screen.width,
|
|
10
|
-
height: screen.height
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
generateCanvasFingerprint() {
|
|
14
|
-
try {
|
|
15
|
-
if (typeof document === "undefined") return "";
|
|
16
|
-
const canvas = document.createElement("canvas");
|
|
17
|
-
const ctx = canvas.getContext("2d");
|
|
18
|
-
if (!ctx) return "";
|
|
19
|
-
ctx.textBaseline = "top";
|
|
20
|
-
ctx.font = "14px Arial";
|
|
21
|
-
ctx.fillText("fingerprint", 2, 2);
|
|
22
|
-
return canvas.toDataURL().slice(-50);
|
|
23
|
-
} catch {
|
|
24
|
-
return "";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
getWebGLRenderer() {
|
|
28
|
-
try {
|
|
29
|
-
if (typeof document === "undefined") return "";
|
|
30
|
-
const canvas = document.createElement("canvas");
|
|
31
|
-
const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
|
|
32
|
-
if (!gl) return "";
|
|
33
|
-
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
|
|
34
|
-
if (!debugInfo) return "";
|
|
35
|
-
return gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || "";
|
|
36
|
-
} catch {
|
|
37
|
-
return "";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
getWindowProperty(prop) {
|
|
41
|
-
if (typeof window === "undefined") return;
|
|
42
|
-
return window[prop];
|
|
43
|
-
}
|
|
44
|
-
getNavigatorProperty(prop) {
|
|
45
|
-
if (typeof navigator === "undefined") return;
|
|
46
|
-
return navigator[prop];
|
|
47
|
-
}
|
|
48
|
-
getNavigatorPrefixes() {
|
|
49
|
-
if (typeof navigator === "undefined") return {
|
|
50
|
-
webkit: false,
|
|
51
|
-
moz: false,
|
|
52
|
-
o: false,
|
|
53
|
-
ms: false
|
|
54
|
-
};
|
|
55
|
-
const nav = navigator;
|
|
56
|
-
return {
|
|
57
|
-
webkit: nav.webkitGetUserMedia !== void 0,
|
|
58
|
-
moz: nav.mozGetUserMedia !== void 0,
|
|
59
|
-
o: nav.oGetUserMedia !== void 0,
|
|
60
|
-
ms: nav.msGetUserMedia !== void 0
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
getMaxTouchPoints() {
|
|
64
|
-
if (typeof navigator === "undefined") return 0;
|
|
65
|
-
return navigator.maxTouchPoints;
|
|
66
|
-
}
|
|
67
|
-
hasOnTouchStart() {
|
|
68
|
-
if (typeof window !== "undefined" && "ontouchstart" in window) return true;
|
|
69
|
-
if (typeof document !== "undefined") return "ontouchstart" in document.documentElement;
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
getNavigatorProductSub() {
|
|
73
|
-
if (typeof navigator === "undefined") return;
|
|
74
|
-
return navigator.productSub;
|
|
75
|
-
}
|
|
76
|
-
getEvalToStringLength() {
|
|
77
|
-
return eval.toString().length;
|
|
78
|
-
}
|
|
79
|
-
tryFirefoxToSource() {
|
|
80
|
-
try {
|
|
81
|
-
throw "a";
|
|
82
|
-
} catch (err) {
|
|
83
|
-
try {
|
|
84
|
-
err.toSource();
|
|
85
|
-
return true;
|
|
86
|
-
} catch {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
async fetchJson(url, timeoutMs = 3e3) {
|
|
92
|
-
try {
|
|
93
|
-
if (typeof fetch === "undefined") return null;
|
|
94
|
-
const controller = new AbortController();
|
|
95
|
-
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
96
|
-
const response = await fetch(url, { signal: controller.signal });
|
|
97
|
-
clearTimeout(timeoutId);
|
|
98
|
-
return await response.json();
|
|
99
|
-
} catch {
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
async enumerateVideoDeviceLabels() {
|
|
104
|
-
try {
|
|
105
|
-
if (typeof navigator === "undefined" || !navigator.mediaDevices?.enumerateDevices) return [];
|
|
106
|
-
return (await navigator.mediaDevices.enumerateDevices()).filter((device) => device.kind === "videoinput").map((device) => device.label);
|
|
107
|
-
} catch {
|
|
108
|
-
return [];
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
getTimestamp() {
|
|
112
|
-
return Date.now();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region ../infra/src/providers/browser/IpifyProvider.ts
|
|
118
|
-
let cachedIp;
|
|
119
|
-
let inFlightLookup;
|
|
120
|
-
/**
|
|
121
|
-
* Resets the module-level IP cache. Intended for tests and full session resets.
|
|
122
|
-
*/
|
|
123
|
-
function resetIpifyCache() {
|
|
124
|
-
cachedIp = void 0;
|
|
125
|
-
inFlightLookup = void 0;
|
|
126
|
-
}
|
|
127
|
-
async function fetchIpFromIpify() {
|
|
128
|
-
if (typeof fetch === "undefined") return "";
|
|
129
|
-
let timeoutId = 0;
|
|
130
|
-
const controller = new AbortController();
|
|
131
|
-
if (AbortSignal.timeout) {
|
|
132
|
-
const signal = AbortSignal.timeout(3e3);
|
|
133
|
-
return (await (await fetch("https://api.ipify.org?format=json", { signal })).json()).ip;
|
|
134
|
-
}
|
|
135
|
-
const timeoutPromise = new Promise((_, reject) => {
|
|
136
|
-
timeoutId = setTimeout(() => {
|
|
137
|
-
controller.abort();
|
|
138
|
-
reject(/* @__PURE__ */ new Error("Request timeout"));
|
|
139
|
-
}, 3e3);
|
|
140
|
-
});
|
|
141
|
-
const fetchPromise = fetch("https://api.ipify.org?format=json", { signal: controller.signal }).then((res) => res.json()).then((data) => data.ip);
|
|
142
|
-
const result = await Promise.race([fetchPromise, timeoutPromise]);
|
|
143
|
-
clearTimeout(timeoutId);
|
|
144
|
-
return result;
|
|
145
|
-
}
|
|
146
|
-
var IpifyProvider = class {
|
|
147
|
-
async getIp() {
|
|
148
|
-
if (cachedIp !== void 0) return cachedIp;
|
|
149
|
-
if (inFlightLookup) return inFlightLookup;
|
|
150
|
-
inFlightLookup = (async () => {
|
|
151
|
-
try {
|
|
152
|
-
const ip = await fetchIpFromIpify();
|
|
153
|
-
cachedIp = ip;
|
|
154
|
-
return ip;
|
|
155
|
-
} catch {
|
|
156
|
-
cachedIp = "";
|
|
157
|
-
return "";
|
|
158
|
-
} finally {
|
|
159
|
-
inFlightLookup = void 0;
|
|
160
|
-
}
|
|
161
|
-
})();
|
|
162
|
-
return inFlightLookup;
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
//#endregion
|
|
167
|
-
export { resetIpifyCache as n, BrowserEnvironmentProvider as r, IpifyProvider as t };
|