@incodetech/core 2.3.2-rc.4 → 2.4.0-rc.0
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/THIRD_PARTY_NOTICES.txt +1243 -3
- package/dist/Actor-DpTj5PFb.d.ts +1 -0
- package/dist/{BaseWasmProvider-Dyi6dKp1.d.ts → BaseWasmProvider-BL9wIRnN.d.ts} +2 -2
- package/dist/{FaceDetectionProvider-B5Fxc_y9.esm.js → FaceDetectionProvider-BjTer9h3.esm.js} +126 -10
- package/dist/HttpRequestError-Bh0pNGSC.esm.js +35 -0
- package/dist/{IIdCaptureCapability-RNiFhvXR.d.ts → IIdCaptureCapability-DBsv9-7M.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CNWRl7jr.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +28 -5
- package/dist/{Manager-CQQ99QOI.d.ts → Manager-C9T5amUN.d.ts} +7 -1
- package/dist/{MotionSensorProvider-DyhbM4Si.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{ekycStateMachine-UeJRO8_p.esm.js → PhoneValidationProvider-SZiOS0jB.esm.js} +232 -827
- package/dist/{StreamCanvasCapture-_8gdW5Lk.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +2 -2
- package/dist/{safeStorage-BdU9_m2E.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +95 -46
- package/dist/{addressSearch-DyHGgeX8.esm.js → addressSearch-BiYZjvp3.esm.js} +143 -4
- package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BY36bS12.d.ts → antifraudManager-DbGCvlJs.d.ts} +2 -2
- package/dist/{antifraudManager-DNkw66oW.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-DBeq47D2.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError--p429c2X.esm.js → apiError-DcSWedC6.esm.js} +2 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CboRCl_N.d.ts → authenticationManager-CANv5-W5.d.ts} +2 -8
- package/dist/{authenticationManager-CWmZMFJH.esm.js → authenticationManager-SaiAxqvS.esm.js} +6 -6
- package/dist/{authenticationStateMachine-BQ7ZW-8a.esm.js → authenticationStateMachine-CHSxmV7z.esm.js} +5 -6
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-B0-YgP_y.esm.js → backCameraStream-CMvXj4X4.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-C3-CI0_s.esm.js → certificateIssuanceManager-CMg4SgL4.esm.js} +3 -3
- package/dist/{certificateIssuanceManager-DCgEidHz.d.ts → certificateIssuanceManager-Dr8A4Lgr.d.ts} +2 -3
- package/dist/{certificateIssuanceStateMachine-CxqS_nD-.esm.js → certificateIssuanceStateMachine-Cs64QmYH.esm.js} +4 -4
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B6E1XJDw.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-DgzWQpAR.d.ts} +11 -12
- package/dist/{consentStateMachine-DTSfdGiW.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-DnwTl1ad.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +71 -65
- package/dist/{createFaceAvatar-BlcTYgJv.d.ts → createFaceAvatar-DXgmQmQy.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-9XhFVZ5S.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/{crossDocumentDataMatchManager-Dq8Z3SOg.d.ts → crossDocumentDataMatchManager-yCWCOzcU.d.ts} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DNuZn9fn.d.ts → curpValidationManager-B-1EZbP_.d.ts} +3 -3
- package/dist/{curpValidationManager-DbIMYFcJ.esm.js → curpValidationManager-DBNIn8BF.esm.js} +15 -22
- package/dist/{curpValidationStateMachine-g5kMfuLj.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +4 -4
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CzWZTkW-.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customFieldsManager-8-W2KY4n.d.ts → customFieldsManager-CF-cO8ap.d.ts} +2 -2
- package/dist/{customWatchlistManager-DWTED5Ur.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistManager-PBWHr_oM.d.ts → customWatchlistManager-DolUswyR.d.ts} +2 -2
- package/dist/{customWatchlistStateMachine-DOQou6TW.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-DvfAYnzg.esm.js +55 -0
- package/dist/{deepsightLoader-BtYvACzG.esm.js → deepsightService-DLGO9yv1.esm.js} +51 -56
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +17 -18
- package/dist/{documentCaptureManager-lEtCM320.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +11 -34
- package/dist/{documentCaptureStateMachine-D312sSIu.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +55 -58
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-66GzzBTx.esm.js → dynamicFormsManager-5uIXobxi.esm.js} +3 -3
- package/dist/{dynamicFormsManager-D5R_uxLQ.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-DLnr2ZtX.esm.js → dynamicFormsStateMachine-DQmok084.esm.js} +4 -4
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BwRuGAwt.d.ts → ekybManager-BaZ_7CEu.d.ts} +4 -4
- package/dist/{ekybManager-CsQMgJDL.esm.js → ekybManager-CazShiQz.esm.js} +23 -27
- package/dist/{ekybStateMachine-DBeQNOMo.esm.js → ekybStateMachine-hstiCNmW.esm.js} +338 -13
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BX2d46FY.esm.js → ekycManager-BdJRUsz0.esm.js} +29 -36
- package/dist/{ekycManager-DLzDuBzI.d.ts → ekycManager-DW-ynodd.d.ts} +3 -3
- package/dist/ekycStateMachine-x6Klot8g.esm.js +1444 -0
- package/dist/{ekycUtils-D6wfSpPN.esm.js → ekycUtils-zY8CdKJL.esm.js} +53 -3
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Boj_xbGN.esm.js → electronicSignatureManager-Bc8spG8p.esm.js} +10 -10
- package/dist/{electronicSignatureManager-Ds-KEVTq.d.ts → electronicSignatureManager-DTSLOvKR.d.ts} +2 -3
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-bR1N5rV_.esm.js → emailManager-CtlKRRaR.esm.js} +20 -26
- package/dist/{emailManager-CADXW_9X.d.ts → emailManager-Dy6omJVp.d.ts} +2 -2
- package/dist/{emailStateMachine-Bc_6oIYw.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-B-3Q-LUw.esm.js → endpoints-DHzlkQNe.esm.js} +2 -0
- package/dist/{events-ijlbX_Wx.esm.js → events-CAgFE-k3.esm.js} +19 -7
- package/dist/events.d.ts +3 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +38 -38
- package/dist/extensibility.esm.js +36 -36
- package/dist/{externalFetch-BKBThAUC.esm.js → externalFetch-DrR9xshk.esm.js} +3 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-m-7ae67q.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +11 -51
- package/dist/{faceCaptureManagerFactory-BKpeQIZu.esm.js → faceCaptureManagerFactory-uFm1AcaY.esm.js} +19 -54
- package/dist/{faceCaptureSetup-DOrt8-Sn.esm.js → faceCaptureSetup-Cu2wabzo.esm.js} +99 -395
- package/dist/{faceMatchManager-Bmv0HzuY.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchManager-BnvrZM2F.d.ts → faceMatchManager-DIgG-UFS.d.ts} +1 -2
- package/dist/{faceMatchStateMachine-mRIHQ3dA.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +6 -4
- package/dist/{feature-management-zY6FcYx_.esm.js → feature-management-BTbYruNe.esm.js} +3 -3
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CBvEGxFx.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +6 -3
- package/dist/{fieldComparisonManager-CC-klG0h.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +35 -17
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-B1STmT6z.d.ts → fiscalQrManager-D0Iy7EKR.d.ts} +2 -2
- package/dist/fiscalQrManager-DmBkQfs0.esm.js +6798 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +14 -13
- package/dist/flow.esm.js +14 -14
- package/dist/{flowCompletionService-CBa6YyI5.esm.js → flowCompletionService-xnn_SlJU.esm.js} +2 -2
- package/dist/{flowServices-JW6uRaUt.esm.js → flowServices-DA64AEZC.esm.js} +11 -7
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DD5J1T_p.esm.js → geolocationManager-CqNLY45e.esm.js} +6 -7
- package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-Dn24g1fl.d.ts} +2 -3
- package/dist/{geolocationStateMachine-DoelwBqs.esm.js → geolocationStateMachine-D-cQi7ar.esm.js} +4 -4
- package/dist/{getDeviceClass-5NYZg9s6.esm.js → getDeviceClass-bsWdEDxP.esm.js} +1 -1
- package/dist/{getParsedUserAgent-B2iFDql1.esm.js → getParsedUserAgent-DhQPeKqw.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D02vT4yY.d.ts → governmentValidationManager-B82zOut8.d.ts} +3 -3
- package/dist/{governmentValidationManager-CacFOtKO.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-CoaZOSTP.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.d.ts +3 -26
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +6 -9
- package/dist/id-selfie-flow.esm.js +23 -28
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -205
- package/dist/{idCaptureDefaults-Chne8cyb.esm.js → idCaptureDefaults-CBg73RnV.esm.js} +8 -5
- package/dist/{idCaptureManager-BHwL2Z0V.d.ts → idCaptureManager-BY97SRCV.d.ts} +242 -98
- package/dist/{idCaptureManager-0504dfcD.esm.js → idCaptureManager-D4V8vXtY.esm.js} +276 -210
- package/dist/{idCaptureServices-B-Ynn67N.esm.js → idCaptureServices-DJ33k3-p.esm.js} +21 -39
- package/dist/{idCaptureStateMachine-B7ET-hfq.esm.js → idCaptureStateMachine-PJt0yzom.esm.js} +989 -872
- package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-BTdHlJ9D.d.ts} +3 -4
- package/dist/{idOcrManager-ByWuQ4ej.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bt_abXQQ.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BB4Pj_N6.d.ts → idVerificationManager-BJapZfpy.d.ts} +2 -3
- package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DbDVIh9t.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-yG3acUrQ.esm.js → identityReuseManager-BleUi6TK.esm.js} +26 -13
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +162 -44
- package/dist/{identityReuseStateMachine-BhAkuIra.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +89 -23
- package/dist/{index-CeaC32qI.d.ts → index-DfEuu-Ew.d.ts} +2 -2
- package/dist/index-DpTj5PFb.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/lamejs-B6TzhU5q.esm.js +10 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-7dI0D08q.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-BYRnWbIC.d.ts → mandatoryConsentManager-TkX57U6f.d.ts} +8 -9
- package/dist/{mandatoryConsentStateMachine-DC5Mo6M1.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-mwKFTlhR.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-D6TfVop2.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-EY3_Vx6c.esm.js → permissionServices-d2UW0r_L.esm.js} +34 -3
- package/dist/phone-number.d.ts +24 -0
- package/dist/phone-number.esm.js +1922 -0
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-IjhSv5XS.esm.js → phoneManager-BGBcpqsk.esm.js} +31 -22
- package/dist/{phoneManager-BBU8Lq0O.d.ts → phoneManager-BO-LTih5.d.ts} +16 -3
- package/dist/{phoneStateMachine-CXdXufKg.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +39 -20
- package/dist/phoneValidation-DnBcNUNh.esm.js +48 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-B1yQHFLu.esm.js} +4 -4
- package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-CSWWgUTO.esm.js → redirectToMobileStateMachine--Sr9NEVT.esm.js} +5 -5
- package/dist/{rolldown-runtime-FDOR9p9I.esm.js → rolldown-runtime-B-1-B7_t.esm.js} +10 -1
- package/dist/{runChildModule-CZU29-IV.esm.js → runChildModule-vdxQMCmO.esm.js} +13 -12
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-DOhxIxQQ.esm.js → sdkVersion-F5YZbjip.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/selfieErrorUtils-D-tsgEuX.esm.js +21 -0
- package/dist/{selfieManager-BSZG891S.d.ts → selfieManager-1J0IEyFq.d.ts} +2 -8
- package/dist/{selfieManager-CWhbwRdb.esm.js → selfieManager-26pENXxw.esm.js} +6 -6
- package/dist/selfieStateMachine-BhfKsl3I.esm.js +41 -0
- package/dist/{session-CctUSSCx.esm.js → session-Bu7djCsj.esm.js} +5 -5
- package/dist/session.d.ts +15 -3
- package/dist/session.esm.js +30 -5
- package/dist/sessionInitializer-jxbfCnE-.esm.js +974 -0
- package/dist/{setup-DmB0JHAB.esm.js → setup-C38QkrSP.esm.js} +232 -112
- package/dist/{setup-Cyko6cAn.d.ts → setup-lgkQ8dJW.d.ts} +20 -11
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DGBSWz2_.d.ts → signatureManager-BpVt_Jv7.d.ts} +2 -2
- package/dist/{signatureManager-B72np4ZO.esm.js → signatureManager-qqXyH93e.esm.js} +7 -11
- package/dist/{signatureStateMachine-ce_XMA3l.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{src-35ekGRzK.esm.js → src-DJAJjRYQ.esm.js} +1 -1
- package/dist/{stats-CZcy2J53.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{sessionInitializer-Ce9zO78j.esm.js → thumbmark.esm-CRc0cYvz.esm.js} +33 -776
- package/dist/{trueSightService-oMFESSSb.esm.js → trueSightService-BWgRVGIT.esm.js} +893 -900
- package/dist/trust-graph.d.ts +1 -2
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-C0oWGUzg.d.ts → types-0L-eFDmr.d.ts} +1 -1
- package/dist/{types-C1g9itHE.d.ts → types-BGXxRwQM.d.ts} +6 -7
- package/dist/{types-BfgmV7s7.d.ts → types-BQA7lRDV.d.ts} +1 -1
- package/dist/{types-CxGdmzxa.d.ts → types-BvFmYX5c.d.ts} +1 -1
- package/dist/{types-Cx-1zo-i.d.ts → types-BvLo3U4u.d.ts} +1 -1
- package/dist/types-C71Zo6vl.d.ts +6 -0
- package/dist/{types-DEGVXwsk2.d.ts → types-CyPUIpzf.d.ts} +110 -62
- package/dist/{types-Bx-BWveD.d.ts → types-DTYr9pCB.d.ts} +1 -1
- package/dist/{types-BjSly8cp.d.ts → types-DUnFZ08M.d.ts} +1 -1
- package/dist/{types-ESdtnHtg.d.ts → types-zpO4fU6a.d.ts} +3 -4
- package/dist/{urlUtils-D6phjq1-.esm.js → urlUtils-6jsE6rKp.esm.js} +9 -1
- package/dist/video-selfie.d.ts +6 -9
- package/dist/video-selfie.esm.js +1386 -1344
- package/dist/{videoSelfieCameraWarmer-D_4NwYM-.esm.js → videoSelfieCameraWarmer-C366RKqu.esm.js} +11 -11
- package/dist/{videoSelfieFlowModuleMachine-BUe2uACW.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-ChYgFM15.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +4 -4
- package/dist/videoTrimByCopy-BFfAiNpv.esm.js +15901 -0
- package/dist/{warmup-Cis2p6O0.d.ts → warmup-BUPPRAA1.d.ts} +7 -0
- package/dist/{warmup-ChDwHSel.esm.js → warmup-DMtbyb2l.esm.js} +27 -9
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +4 -4
- package/dist/{wasmDsFlagSync-DYrLUEII.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/{wasmWebClient-B7baE-Wf.esm.js → wasmWebClient-kbYZ2sxw.esm.js} +259 -20
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CsnJnG-C.d.ts → watchlistForBusinessManager-B3GDPZrr.d.ts} +2 -2
- package/dist/{watchlistForBusinessManager-CIMkpEhu.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +7 -5
- package/dist/{watchlistForBusinessStateMachine-CJ-MvUre.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-CixcLNDT.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistManager-DLXef90v.d.ts → watchlistManager-DJQOd8Pw.d.ts} +2 -2
- package/dist/{watchlistStateMachine-CBqk2w-h.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +34 -5
- package/dist/workflow.esm.js +64 -46
- package/dist/{xstate-actors.esm-BXeQ-Ucz.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-BuFLFuzz.esm.js → xstate.esm-DSajW7CJ.esm.js} +24 -10
- package/package.json +13 -5
- package/dist/Actor-iTq7YY48.d.ts +0 -1
- package/dist/StateMachine-EDpYWy0i.d.ts +0 -6
- package/dist/fiscalQrManager-DbCVMIBx.esm.js +0 -34143
- package/dist/index-B8weJxmL.d.ts +0 -1
- package/dist/selfieErrorUtils-UiQ46EBa.esm.js +0 -116
- package/dist/selfieStateMachine-CtMCi4KZ.esm.js +0 -71
- package/dist/types-BN5RPPIZ.esm.js +0 -34
- package/dist/types-Bt9RuRqt.d.ts +0 -6
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +0 -48
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
package/dist/phone.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-BO-LTih5.js";
|
|
2
2
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
2
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import { t as phoneMachine } from "./phoneStateMachine-CEm2y7yG.esm.js";
|
|
2
|
+
import { t as createPhoneManager } from "./phoneManager-BGBcpqsk.esm.js";
|
|
3
3
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-DnBcNUNh.esm.js";
|
|
4
|
+
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
|
+
import { t as phoneMachine } from "./phoneStateMachine-CEm2y7yG.esm.js";
|
|
4
6
|
//#region src/modules/phone/phoneActor.ts
|
|
5
7
|
function createPhoneActor(options) {
|
|
6
8
|
return createActor(phoneMachine, { input: { config: options.config } }).start();
|
|
@@ -109,26 +111,32 @@ function createPhoneActor(options) {
|
|
|
109
111
|
* screen until the SM surfaces them):
|
|
110
112
|
*
|
|
111
113
|
* - `phoneNumber.verify.countryCode` — country-picker overlay; no separate SM state.
|
|
112
|
-
* - `phoneNumber.verify.phoneTyping` / `phoneNumber.verify.phoneFilled` — UI sub-states of `inputting`.
|
|
113
|
-
* - `phoneNumber.OTP.filled` — UI sub-state of `awaitingOtp`.
|
|
114
114
|
*
|
|
115
115
|
* `finished` and `error` are mapped to terminal Figma screens to keep the
|
|
116
116
|
* adapter from falling back to the generic `<module>.finished` /
|
|
117
117
|
* `<module>.error` defaults.
|
|
118
118
|
*/
|
|
119
|
-
function getPhoneScreenName(snapshot) {
|
|
120
|
-
const { value } = snapshot;
|
|
119
|
+
function getPhoneScreenName(snapshot, phoneValidation) {
|
|
120
|
+
const { value, context } = snapshot;
|
|
121
121
|
if (typeof value !== "string") return void 0;
|
|
122
122
|
switch (value) {
|
|
123
|
-
case "idle":
|
|
123
|
+
case "idle": return "phoneNumber.verify.default";
|
|
124
124
|
case "inputting":
|
|
125
|
-
case "validatingSubmit":
|
|
125
|
+
case "validatingSubmit": {
|
|
126
|
+
const phone = context.phone.trim();
|
|
127
|
+
if (!phone) return "phoneNumber.verify.default";
|
|
128
|
+
const internationalPhone = phone.startsWith("+") ? phone : `+${phone}`;
|
|
129
|
+
return phoneValidation?.isPossible(internationalPhone) ? "phoneNumber.verify.phoneFilled" : "phoneNumber.verify.phoneTyping";
|
|
130
|
+
}
|
|
126
131
|
case "loadingPrefill":
|
|
127
|
-
case "loadingStartInfo":
|
|
128
|
-
case "
|
|
132
|
+
case "loadingStartInfo":
|
|
133
|
+
case "loadingPhoneRules": return "phoneNumber.verify.loading";
|
|
134
|
+
case "submitting": return context.config?.isInstantVerify ? "phoneNumber.SNA.loading" : "phoneNumber.verify.loading";
|
|
129
135
|
case "sendingInitialOtp":
|
|
130
|
-
case "resendingOtp":
|
|
131
|
-
case "awaitingOtp":
|
|
136
|
+
case "resendingOtp": return "phoneNumber.OTP.typing";
|
|
137
|
+
case "awaitingOtp":
|
|
138
|
+
if (context.otpValidationErrors?.otp) return "phoneNumber.OTP.error";
|
|
139
|
+
return isOtpComplete(context.otpCode) ? "phoneNumber.OTP.filled" : "phoneNumber.OTP.typing";
|
|
132
140
|
case "verifyingOtp": return "phoneNumber.OTP.processing";
|
|
133
141
|
case "otpError":
|
|
134
142
|
case "error": return "phoneNumber.OTP.error";
|
|
@@ -141,7 +149,7 @@ function mapState(snapshot) {
|
|
|
141
149
|
const { context } = typedSnapshot;
|
|
142
150
|
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
143
151
|
if (typedSnapshot.matches("loadingPrefill")) return { status: "loadingPrefill" };
|
|
144
|
-
if (typedSnapshot.matches("loadingStartInfo")) return {
|
|
152
|
+
if (typedSnapshot.matches("loadingStartInfo") || typedSnapshot.matches("loadingPhoneRules")) return {
|
|
145
153
|
status: "loadingStartInfo",
|
|
146
154
|
prefilledPhone: context.prefilledPhone,
|
|
147
155
|
otpVerification: context.config.otpVerification,
|
|
@@ -371,19 +379,20 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
371
379
|
* ```
|
|
372
380
|
*/
|
|
373
381
|
function createPhoneManager(options) {
|
|
374
|
-
return
|
|
375
|
-
actor: createPhoneActor(options),
|
|
376
|
-
mapState,
|
|
377
|
-
createApi,
|
|
378
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: getPhoneScreenName })
|
|
379
|
-
});
|
|
382
|
+
return createPhoneManagerFromActor(createPhoneActor(options));
|
|
380
383
|
}
|
|
381
|
-
|
|
384
|
+
/**
|
|
385
|
+
* Wraps an existing phone actor in a manager. Without `phoneValidation`, this
|
|
386
|
+
* starts loading the phone rules. Until they load, the analytics screen name
|
|
387
|
+
* for a typed number is `phoneTyping`.
|
|
388
|
+
*/
|
|
389
|
+
function createPhoneManagerFromActor(actor, phoneValidation) {
|
|
390
|
+
if (!phoneValidation) loadPhoneValidation();
|
|
382
391
|
return createManager({
|
|
383
392
|
actor,
|
|
384
393
|
mapState,
|
|
385
394
|
createApi,
|
|
386
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: getPhoneScreenName })
|
|
395
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: (snapshot) => getPhoneScreenName(snapshot, phoneValidation ?? getPhoneValidation()) })
|
|
387
396
|
});
|
|
388
397
|
}
|
|
389
398
|
//#endregion
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
4
4
|
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
5
|
+
//#region ../infra/src/capabilities/IPhoneValidationCapability.d.ts
|
|
6
|
+
type IPhoneValidationCapability = {
|
|
7
|
+
/** Checks the possible length of an international number, not its validity. */
|
|
8
|
+
isPossible(phone: string): boolean;
|
|
9
|
+
isValid(phone: string, country: string): boolean;
|
|
10
|
+
formatE164(phone: string, country: string): string | null;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
5
13
|
//#region src/modules/phone/types.d.ts
|
|
6
14
|
/**
|
|
7
15
|
* Configuration options for phone verification.
|
|
@@ -343,7 +351,12 @@ declare function createPhoneManager(options: CreatePhoneActorOptions): Manager<P
|
|
|
343
351
|
*/
|
|
344
352
|
reset(): void;
|
|
345
353
|
};
|
|
346
|
-
|
|
354
|
+
/**
|
|
355
|
+
* Wraps an existing phone actor in a manager. Without `phoneValidation`, this
|
|
356
|
+
* starts loading the phone rules. Until they load, the analytics screen name
|
|
357
|
+
* for a typed number is `phoneTyping`.
|
|
358
|
+
*/
|
|
359
|
+
declare function createPhoneManagerFromActor(actor: PhoneActor, phoneValidation?: Pick<IPhoneValidationCapability, 'isPossible'>): Manager<PhoneState> & {
|
|
347
360
|
/**
|
|
348
361
|
* Initializes the phone verification flow.
|
|
349
362
|
* Transitions from 'idle' to 'loadingPrefill' or 'inputting'.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { n as loadPhoneValidation } from "./phoneValidation-DnBcNUNh.esm.js";
|
|
6
7
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
7
8
|
//#region src/modules/phone/phoneServices.ts
|
|
8
9
|
function getPhoneServerFailureReason(error, invalidStatus) {
|
|
@@ -77,6 +78,9 @@ const phoneMachine = setup({
|
|
|
77
78
|
fetchStartInfo: fromPromise(async ({ signal }) => {
|
|
78
79
|
return fetchStartInfo(signal);
|
|
79
80
|
}),
|
|
81
|
+
loadPhoneRules: fromPromise(async () => {
|
|
82
|
+
await loadPhoneValidation();
|
|
83
|
+
}),
|
|
80
84
|
submitPhone: fromPromise(async ({ input, signal }) => {
|
|
81
85
|
if (input.isInstantVerify) return addPhoneInstantVerify({
|
|
82
86
|
phone: input.phone,
|
|
@@ -106,6 +110,9 @@ const phoneMachine = setup({
|
|
|
106
110
|
})
|
|
107
111
|
},
|
|
108
112
|
actions: {
|
|
113
|
+
startLoadingPhoneRules: () => {
|
|
114
|
+
loadPhoneValidation();
|
|
115
|
+
},
|
|
109
116
|
setStartInfo: assign(({ event }) => {
|
|
110
117
|
const info = event.output;
|
|
111
118
|
return {
|
|
@@ -228,22 +235,34 @@ const phoneMachine = setup({
|
|
|
228
235
|
target: "loadingPrefill",
|
|
229
236
|
guard: "hasPrefill"
|
|
230
237
|
}, { target: "loadingStartInfo" }] } },
|
|
231
|
-
loadingPrefill: {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
238
|
+
loadingPrefill: {
|
|
239
|
+
entry: "startLoadingPhoneRules",
|
|
240
|
+
invoke: {
|
|
241
|
+
id: "fetchPhone",
|
|
242
|
+
src: "fetchPhone",
|
|
243
|
+
onDone: {
|
|
244
|
+
target: "loadingStartInfo",
|
|
245
|
+
actions: "setPrefilledPhone"
|
|
246
|
+
},
|
|
247
|
+
onError: { target: "loadingStartInfo" }
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
loadingStartInfo: {
|
|
251
|
+
entry: "startLoadingPhoneRules",
|
|
252
|
+
invoke: {
|
|
253
|
+
id: "fetchStartInfo",
|
|
254
|
+
src: "fetchStartInfo",
|
|
255
|
+
onDone: {
|
|
256
|
+
target: "loadingPhoneRules",
|
|
257
|
+
actions: "setStartInfo"
|
|
258
|
+
},
|
|
259
|
+
onError: { target: "loadingPhoneRules" }
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
loadingPhoneRules: { invoke: {
|
|
263
|
+
id: "loadPhoneRules",
|
|
264
|
+
src: "loadPhoneRules",
|
|
265
|
+
onDone: { target: "inputting" },
|
|
247
266
|
onError: { target: "inputting" }
|
|
248
267
|
} },
|
|
249
268
|
inputting: { on: {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
2
|
+
//#region ../infra/src/providers/browser/LazyPhoneValidationProvider.ts
|
|
3
|
+
const LAZY_IMPORT_OPTIONS = {
|
|
4
|
+
label: "PhoneValidation",
|
|
5
|
+
moduleName: "the phone rules (libphonenumber-js)",
|
|
6
|
+
timeoutMs: 1e4,
|
|
7
|
+
disabledMessage: "phone numbers are not checked until a retry loads them."
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Loads {@link PhoneValidationProvider} (libphonenumber-js, ~160 KB minified)
|
|
11
|
+
* with a dynamic `import()`, so the modules that check phone numbers do not
|
|
12
|
+
* download the rules up front.
|
|
13
|
+
*
|
|
14
|
+
* The import is managed by {@link BrowserLazyImportProvider}. A load that
|
|
15
|
+
* fails, or takes more than 10 s, logs a warning and resolves `undefined`. It
|
|
16
|
+
* is not cached, so a later `load()` retries.
|
|
17
|
+
*/
|
|
18
|
+
var LazyPhoneValidationProvider = class LazyPhoneValidationProvider {
|
|
19
|
+
constructor() {
|
|
20
|
+
this._lazy = BrowserLazyImportProvider.getInstance().create(async () => {
|
|
21
|
+
const { PhoneValidationProvider } = await import("./PhoneValidationProvider-SZiOS0jB.esm.js").then((n) => n.n);
|
|
22
|
+
return new PhoneValidationProvider();
|
|
23
|
+
}, LAZY_IMPORT_OPTIONS);
|
|
24
|
+
}
|
|
25
|
+
static getInstance() {
|
|
26
|
+
return this._instance ??= new LazyPhoneValidationProvider();
|
|
27
|
+
}
|
|
28
|
+
/** Resolves to `undefined` when the load fails or times out. */
|
|
29
|
+
load() {
|
|
30
|
+
return this._lazy.load();
|
|
31
|
+
}
|
|
32
|
+
/** The loaded rules, or `undefined` until `load()` resolves. */
|
|
33
|
+
get() {
|
|
34
|
+
return this._lazy.get();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/internal/phoneValidation/phoneValidation.ts
|
|
39
|
+
/** Resolves to `undefined` when the load fails or times out. A later call retries. */
|
|
40
|
+
function loadPhoneValidation() {
|
|
41
|
+
return LazyPhoneValidationProvider.getInstance().load();
|
|
42
|
+
}
|
|
43
|
+
/** The loaded rules, or `undefined` until `loadPhoneValidation()` resolves. */
|
|
44
|
+
function getPhoneValidation() {
|
|
45
|
+
return LazyPhoneValidationProvider.getInstance().get();
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { loadPhoneValidation as n, getPhoneValidation as t };
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, f as NAMIRIAL_QES_CONSENT_KEYS, h as QE_CONSENT_KEYS, i as ConsentKey, m as NamirialQesConsentKey, p as NAMIRIAL_QES_PROVIDER_CODE, r as ConsentChecks, s as ElectronicSignatureDocument, u as ElectronicSignatureProviderTerms } from "./types-D0gekt4U.js";
|
|
3
|
-
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
3
|
+
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-DTSLOvKR.js";
|
|
4
4
|
import "./electronic-signature.js";
|
|
5
5
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
6
|
type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Bc8spG8p.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
|
2
|
-
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, t as RedirectToMobileManager } from "./redirectToMobileManager-
|
|
2
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
3
3
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.d.ts
|
|
4
4
|
declare const defaultRedirectToMobileServices: RedirectToMobileServices;
|
|
5
5
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine--Sr9NEVT.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-B1yQHFLu.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-B1yQHFLu.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
1
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine--Sr9NEVT.esm.js";
|
|
6
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
7
|
const POLL_INTERVAL_MS = 5e3;
|
|
8
8
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
4
4
|
import { n as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
|
5
5
|
//#region src/modules/redirect-to-mobile/redirectToMobileStateMachine.d.ts
|
|
6
6
|
declare const redirectToMobileMachine: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-6jsE6rKp.esm.js";
|
|
7
7
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.ts
|
|
8
8
|
async function fetchRedirectUrl(signal) {
|
|
9
9
|
const res = await api.get(endpoints.onboardingUrl, { signal });
|
|
@@ -6,6 +6,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
9
18
|
var __copyProps = (to, from, except, desc) => {
|
|
10
19
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
20
|
key = keys[i];
|
|
@@ -21,4 +30,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
30
|
enumerable: true
|
|
22
31
|
}) : target, mod));
|
|
23
32
|
//#endregion
|
|
24
|
-
export {
|
|
33
|
+
export { __exportAll as n, __toESM as r, __commonJSMin as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
1
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BWgRVGIT.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
|
-
import { C as createEventBus } from "./events-
|
|
4
|
-
import { s as createActor } from "./xstate.esm-
|
|
5
|
-
import { t as fromCallback } from "./xstate-actors.esm-
|
|
3
|
+
import { C as createEventBus } from "./events-CAgFE-k3.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
|
7
7
|
function createFlowEventBus() {
|
|
8
8
|
const eventBus = createEventBus();
|
|
@@ -63,6 +63,7 @@ function getActiveModule(state, includeHomeModule) {
|
|
|
63
63
|
function attachFlowEventEmitter(manager, options = {}) {
|
|
64
64
|
const flowEventBus = createFlowEventBus();
|
|
65
65
|
const managerKind = options.managerKind ?? "flow";
|
|
66
|
+
const getInterviewId = () => options.getInterviewId?.() ?? options.interviewId;
|
|
66
67
|
flowEventBus.subscribe((event) => notifyTrueSightFlowEvent(event, managerKind));
|
|
67
68
|
let hasStartedCurrentRun = false;
|
|
68
69
|
let hasReadyCurrentRun = false;
|
|
@@ -90,7 +91,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
90
91
|
activeModule = nextModule;
|
|
91
92
|
flowEventBus.emit({
|
|
92
93
|
type: "flow.module.started",
|
|
93
|
-
interviewId:
|
|
94
|
+
interviewId: getInterviewId(),
|
|
94
95
|
flowId: getFlowId(state),
|
|
95
96
|
module: nextModule.module,
|
|
96
97
|
payload: nextModule.payload
|
|
@@ -101,7 +102,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
101
102
|
completedModuleKeys.add(activeModule.key);
|
|
102
103
|
flowEventBus.emit({
|
|
103
104
|
type: "flow.module.completed",
|
|
104
|
-
interviewId:
|
|
105
|
+
interviewId: getInterviewId(),
|
|
105
106
|
flowId: getFlowId(state),
|
|
106
107
|
module: activeModule.module,
|
|
107
108
|
payload: activeModule.payload
|
|
@@ -116,7 +117,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
116
117
|
hasStartedCurrentRun = true;
|
|
117
118
|
flowEventBus.emit({
|
|
118
119
|
type: "flow.started",
|
|
119
|
-
interviewId:
|
|
120
|
+
interviewId: getInterviewId()
|
|
120
121
|
});
|
|
121
122
|
return;
|
|
122
123
|
}
|
|
@@ -132,7 +133,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
132
133
|
hasReadyCurrentRun = true;
|
|
133
134
|
flowEventBus.emit({
|
|
134
135
|
type: "flow.ready",
|
|
135
|
-
interviewId:
|
|
136
|
+
interviewId: getInterviewId(),
|
|
136
137
|
flowId: getFlowId(readyState),
|
|
137
138
|
payload: getReadyPayload(readyState)
|
|
138
139
|
});
|
|
@@ -146,7 +147,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
146
147
|
hasCompletedCurrentRun = true;
|
|
147
148
|
flowEventBus.emit({
|
|
148
149
|
type: "flow.completed",
|
|
149
|
-
interviewId:
|
|
150
|
+
interviewId: getInterviewId(),
|
|
150
151
|
flowId: getFlowId(state),
|
|
151
152
|
...payload !== void 0 ? { payload } : {}
|
|
152
153
|
});
|
|
@@ -156,7 +157,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
156
157
|
hasErrorCurrentRun = true;
|
|
157
158
|
flowEventBus.emit({
|
|
158
159
|
type: "flow.error",
|
|
159
|
-
interviewId:
|
|
160
|
+
interviewId: getInterviewId(),
|
|
160
161
|
flowId: getFlowId(state),
|
|
161
162
|
error: state.error ?? "Unknown error"
|
|
162
163
|
});
|
|
@@ -166,7 +167,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
166
167
|
hasClosedCurrentRun = true;
|
|
167
168
|
flowEventBus.emit({
|
|
168
169
|
type: "flow.closed",
|
|
169
|
-
interviewId:
|
|
170
|
+
interviewId: getInterviewId(),
|
|
170
171
|
flowId: getFlowId(state)
|
|
171
172
|
});
|
|
172
173
|
}
|
|
@@ -196,7 +197,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
196
197
|
}
|
|
197
198
|
//#endregion
|
|
198
199
|
//#region src/internal/orchestration/runChildModule.ts
|
|
199
|
-
const runChildModule = fromCallback(({ sendBack, input }) => {
|
|
200
|
+
const runChildModule = /* @__PURE__ */ fromCallback(({ sendBack, input }) => {
|
|
200
201
|
const { machine, config } = input;
|
|
201
202
|
if (!machine) return () => {};
|
|
202
203
|
const actor = createActor(machine, { input: { config } });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region ../infra/src/storage/safeStorage.ts
|
|
2
|
+
/**
|
|
3
|
+
* Storage resolvers that tolerate hosts which make Web Storage unreachable.
|
|
4
|
+
*
|
|
5
|
+
* Two hostile shapes occur in the field, and they fail differently:
|
|
6
|
+
*
|
|
7
|
+
* 1. **Deleted bare global** — a page mitigates self-XSS with
|
|
8
|
+
* `delete window.localStorage` and keeps a module-private reference. Since
|
|
9
|
+
* `window` *is* the global object, the identifier stops resolving: a bare
|
|
10
|
+
* read throws `ReferenceError`. `typeof` is the only safe probe, because it
|
|
11
|
+
* is the one operator that tolerates an unresolvable identifier.
|
|
12
|
+
* 2. **Blocked storage** — a webview or a cross-origin/partitioned context
|
|
13
|
+
* makes the accessor itself throw (`SecurityError`). Here `typeof` is *not*
|
|
14
|
+
* enough: it invokes the getter, so the throw escapes the guard.
|
|
15
|
+
*
|
|
16
|
+
* Handling only one shape leaves the other live, so always go through these
|
|
17
|
+
* resolvers instead of touching the globals directly. A `null` return means
|
|
18
|
+
* "no storage in this host" — callers degrade, they do not throw.
|
|
19
|
+
*/
|
|
20
|
+
function resolveLocalStorage() {
|
|
21
|
+
try {
|
|
22
|
+
return typeof localStorage === "undefined" ? null : localStorage;
|
|
23
|
+
} catch {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function resolveSessionStorage() {
|
|
28
|
+
try {
|
|
29
|
+
return typeof sessionStorage === "undefined" ? null : sessionStorage;
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { resolveSessionStorage as n, resolveLocalStorage as t };
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-jKQ2QtY-.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
5
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-zpO4fU6a.js";
|
|
5
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-DVmzJux5.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-1J0IEyFq.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { s as createActor } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
12
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
3
|
+
import { u as BrowserStorageProvider } from "./setup-C38QkrSP.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-Cu2wabzo.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-uFm1AcaY.esm.js";
|
|
8
|
+
import { c as processFace } from "./FaceDetectionProvider-BjTer9h3.esm.js";
|
|
9
|
+
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-kdlhkmmY.esm.js";
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-BhfKsl3I.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-26pENXxw.esm.js";
|
|
12
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BW7V3vub.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
15
15
|
* face-capture state tree; only the upload/process step is local instead of
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { d as FACE_ERROR_CODES } from "./FaceDetectionProvider-BjTer9h3.esm.js";
|
|
2
|
+
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
|
+
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
|
+
const isFaceErrorCode = (value) => {
|
|
5
|
+
return FACE_ERROR_CODE_VALUES.includes(value);
|
|
6
|
+
};
|
|
7
|
+
const getFaceErrorCodeFromUnknown = (value) => {
|
|
8
|
+
if (value instanceof Error && typeof value.message === "string") return isFaceErrorCode(value.message) ? value.message : void 0;
|
|
9
|
+
if (typeof value === "string") return isFaceErrorCode(value) ? value : void 0;
|
|
10
|
+
};
|
|
11
|
+
const validateUploadResponse = ({ config, response }) => {
|
|
12
|
+
if (!response) return FACE_ERROR_CODES.SERVER;
|
|
13
|
+
if (response.confidence !== 0) return FACE_ERROR_CODES.LIVENESS;
|
|
14
|
+
if (config.validateBrightness && !response.isBright) return FACE_ERROR_CODES.BRIGHTNESS;
|
|
15
|
+
if (config.validateLenses && response.hasLenses) return FACE_ERROR_CODES.LENSES;
|
|
16
|
+
if (config.validateFaceMask && response.hasFaceMask) return FACE_ERROR_CODES.MASK;
|
|
17
|
+
if (config.validateClosedEyes && response.hasClosedEyes) return FACE_ERROR_CODES.CLOSED_EYES;
|
|
18
|
+
if (config.validateHeadCover && response.hasHeadCover) return FACE_ERROR_CODES.HEAD_COVER;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { validateUploadResponse as n, getFaceErrorCodeFromUnknown as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-jKQ2QtY-.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -22,9 +22,6 @@ declare function createSelfieManagerFromActor(actor: SelfieActor, visibilityObse
|
|
|
22
22
|
reset(): void;
|
|
23
23
|
retryCapture(): void;
|
|
24
24
|
capture(): void;
|
|
25
|
-
goToManualUpload(): void;
|
|
26
|
-
manualUploadSelectFile(file: File): void;
|
|
27
|
-
manualUploadContinue(): void;
|
|
28
25
|
};
|
|
29
26
|
/**
|
|
30
27
|
* Creates a selfie manager instance for handling selfie capture flow.
|
|
@@ -65,9 +62,6 @@ declare function createSelfieManager(options: CreateSelfieActorOptions): Manager
|
|
|
65
62
|
reset(): void;
|
|
66
63
|
retryCapture(): void;
|
|
67
64
|
capture(): void;
|
|
68
|
-
goToManualUpload(): void;
|
|
69
|
-
manualUploadSelectFile(file: File): void;
|
|
70
|
-
manualUploadContinue(): void;
|
|
71
65
|
};
|
|
72
66
|
type SelfieManager = FaceCaptureManager;
|
|
73
67
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { s as createActor } from "./xstate.esm-
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
3
|
+
import { u as BrowserStorageProvider } from "./setup-C38QkrSP.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-uFm1AcaY.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-BhfKsl3I.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|