@incodetech/core 2.4.1-agentic.9 → 2.5.0-agentic
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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- 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-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
- package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
- package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
- package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
- package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +7 -3
- 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-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
- package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.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-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
- package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
- 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-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
- package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
- package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
- package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
- package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
- package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
- package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
- package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
- package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
- package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
- package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
- package/dist/events-ChMS-UzR.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +42 -42
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
- package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
- package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
- package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +50 -14
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
- package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
- package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -13
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +5 -5
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
- package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
- package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
- package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
- package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
- package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
- package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
- package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
- package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
- package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
- package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
- package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
- package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
- package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
- package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
- package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
- package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
- package/dist/session.d.ts +3 -13
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
- package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
- package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/trueSight-BymJD5cW.esm.js +1 -0
- package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
- package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
- package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/types-BtrJ5fkm.d.ts +6 -0
- package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
- package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
- package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
- package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
- package/dist/video-selfie.d.ts +8 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
- 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-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
- package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +68 -49
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +13 -3
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
- package/dist/types-B2M1IPZn.d.ts +0 -6
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
|
@@ -2,13 +2,14 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
|
|
|
2
2
|
//#region ../infra/src/wasm/wasmIntegrityManifest.ts
|
|
3
3
|
/** SHA-256 digests of the official WASM release files this SDK loads. */
|
|
4
4
|
const WASM_INTEGRITY_MANIFEST = {
|
|
5
|
-
wasmVersion: "v2.14.
|
|
5
|
+
wasmVersion: "v2.14.55",
|
|
6
6
|
files: {
|
|
7
7
|
"models/current/age_estimation_v2_2_2_fp16.ortmodelv2": "70bd372b5e140ea8e9773a25d371cb65e5a9090651fdfe73ab6fc7ce25d59c83",
|
|
8
8
|
"models/current/barcode_enhance_896x224_fp16.ortmodelv2": "bccecd74abf48181efb95bf020784b7e50d37ae255bf89c14c2c5186976279e0",
|
|
9
9
|
"models/current/face_attributes_v1_3_fp16.ortmodelv2": "96079ec080a92ae1821b456f06281a604b4b013af42313f9668210c9bbe7041f",
|
|
10
10
|
"models/current/face_occlusion_v0_2_fp16.ortmodelv2": "7a846b12b7a9a5afe72e07f19b408095439a214aaa306e88d34d1f17ffce72fb",
|
|
11
11
|
"models/current/id_capture_2_01_fp16.ortmodelv2": "06b337368249131af6bab66bdf4fca680298034e3e83d678656d255cdb480507",
|
|
12
|
+
"models/current/id_capture_3_02_fp16.ortmodelv2": "3347ac3cbd6996a2457214d4f7cabee220c9b13b22bf1818c1936c459d76c5a6",
|
|
12
13
|
"models/current/id_facedetector_v2_1_fp16.ortmodelv2": "ab35d7c2f69d5c156f7e247bde652c4ac7b78cdc4a90ef55f5a928edc54e2bd8",
|
|
13
14
|
"models/current/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "1cc02608aed0078bf9cc66ae4f51b150e7b5aa65c5fb270248bda7c327867d26",
|
|
14
15
|
"models/current/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "74a955dff00183c69544a9b61cc7e1122c7cd3814811dcd7ae8cf862bda35c41",
|
|
@@ -19,19 +20,20 @@ const WASM_INTEGRITY_MANIFEST = {
|
|
|
19
20
|
"models/legacy/face_attributes_v1_3_fp16.ortmodelv2": "7c6754b63b4e205370463df4c6396f29123d7b5a17823a2d78a59b2fb17cc98b",
|
|
20
21
|
"models/legacy/face_occlusion_v0_2_fp16.ortmodelv2": "19fc95f2081e55962045f0e38387399fb11c1b636699e31558383d2ea4156aed",
|
|
21
22
|
"models/legacy/id_capture_2_01_fp16.ortmodelv2": "2f791bbf1f0dc9c6b8ff95587ce61479a764a18070e83658f6366996a7df9615",
|
|
23
|
+
"models/legacy/id_capture_3_02_fp16.ortmodelv2": "8c117db367e2c18b2b95ad6033ce062b5b5cf6bff1ed1ceb94436af404764a47",
|
|
22
24
|
"models/legacy/id_facedetector_v2_1_fp16.ortmodelv2": "f790693395cc1473a824a97b86fd2943586b490582e003b240dff4d51d9f417f",
|
|
23
25
|
"models/legacy/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "d058e82efca7c30a35dd0a03472695656c105952f27af2ea158cb00818caab8c",
|
|
24
26
|
"models/legacy/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "e41887f75b284ba1f973f2a26209bf365da8a587d266492b642e5b7c36716069",
|
|
25
27
|
"models/legacy/ondevice_physical_liveness_v2_1_fp16.ortmodelv2": "405eee9fd961c48fff608246ef579dc8ce9f0b5ce51361e05dac7d9afcf9162d",
|
|
26
28
|
"models/legacy/selfie_bf_angles_192x192_opset9_fp16.ortmodelv2": "1c8dda528d5111fa7b4272ffabca7cf0a59099f57258aaece7262974aebafc4a",
|
|
27
|
-
"webLib.js": "
|
|
28
|
-
"webLib.wasm": "
|
|
29
|
-
"webLibSimd.js": "
|
|
30
|
-
"webLibSimd.wasm": "
|
|
29
|
+
"webLib.js": "5361ad7427cd1f5c0d217b880c80fde5bd9bc9602a9edff4f43fdf8f6372b56b",
|
|
30
|
+
"webLib.wasm": "3b05769a910d36138ef63ed594c4679b5115283c15dc964b327b42e202124b46",
|
|
31
|
+
"webLibSimd.js": "bf7bf1af83d26e84789c4bfbc152e7a024dd1e9bf5d96486df236702a0defdac",
|
|
32
|
+
"webLibSimd.wasm": "955345c849b992c32f1198c658f803650ce5b04c2f7a1cc36e45d79d94dc8128"
|
|
31
33
|
},
|
|
32
34
|
dist: {
|
|
33
|
-
"webLib.js": "
|
|
34
|
-
"webLibSimd.js": "
|
|
35
|
+
"webLib.js": "34f27b5e326e7160b677b6de81ae645ed3282141bd3f52816041ff4161fd3dd7",
|
|
36
|
+
"webLibSimd.js": "9e6913b7eeab0902f5c628faea26d252d4c1c579d05bc13163e0e3650da0284a"
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
39
|
//#endregion
|
|
@@ -189,6 +191,7 @@ async function verifyWasmAsset(asset, bytes, fetchMs) {
|
|
|
189
191
|
//#region ../infra/src/wasm/wasmAssets.ts
|
|
190
192
|
const WASM_MODEL_FILES = {
|
|
191
193
|
idCapture: "id_capture_2_01_fp16.ortmodelv2",
|
|
194
|
+
idCaptureV3: "id_capture_3_02_fp16.ortmodelv2",
|
|
192
195
|
idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2",
|
|
193
196
|
idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2",
|
|
194
197
|
barcode: "barcode_enhance_896x224_fp16.ortmodelv2",
|
|
@@ -231,17 +234,21 @@ const WASM_PIPELINE_LAZY_MODEL_NAMES = {
|
|
|
231
234
|
videoSelfieId: []
|
|
232
235
|
};
|
|
233
236
|
/**
|
|
234
|
-
* Models a pipeline's
|
|
237
|
+
* Models a pipeline's extra workflow profiles can use but that a pre-existing
|
|
235
238
|
* self-hosted configuration is NOT required to supply. Deliberately not part of
|
|
236
239
|
* `defineWasm`'s required set: adding a model to a released pipeline's required
|
|
237
240
|
* list is a breaking change for every self-hoster following the published
|
|
238
241
|
* WASM-Configuration walkthrough. When an optional model is absent, warmup skips
|
|
239
|
-
* the
|
|
242
|
+
* the profile that needs it instead of failing.
|
|
240
243
|
*/
|
|
241
244
|
const WASM_PIPELINE_OPTIONAL_MODEL_NAMES = {
|
|
242
245
|
selfie: [],
|
|
243
246
|
onDeviceSelfie: [],
|
|
244
|
-
idCapture: [
|
|
247
|
+
idCapture: [
|
|
248
|
+
"mlsRegressor",
|
|
249
|
+
"idFaceDetector",
|
|
250
|
+
"idCaptureV3"
|
|
251
|
+
],
|
|
245
252
|
videoSelfie: [],
|
|
246
253
|
videoSelfieId: []
|
|
247
254
|
};
|
|
@@ -314,7 +321,7 @@ function deriveSiblingJsPath(wasmPath) {
|
|
|
314
321
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
315
322
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
316
323
|
/** The WASM version bundled and tested with this SDK release. */
|
|
317
|
-
const DEFAULT_WASM_VERSION = "v2.14.
|
|
324
|
+
const DEFAULT_WASM_VERSION = "v2.14.55";
|
|
318
325
|
const PATH_KEYS = [
|
|
319
326
|
"wasmPath",
|
|
320
327
|
"wasmSimdPath",
|
|
@@ -425,7 +432,7 @@ const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
|
425
432
|
* NOT part of any warmup model bundle.
|
|
426
433
|
*/
|
|
427
434
|
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
428
|
-
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.
|
|
435
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.55/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
429
436
|
return typeof source === "string" ? source : source[variant];
|
|
430
437
|
}
|
|
431
438
|
/**
|
|
@@ -950,6 +957,18 @@ async function loadWasmModule(config) {
|
|
|
950
957
|
})();
|
|
951
958
|
return loadPromise;
|
|
952
959
|
}
|
|
960
|
+
const moduleResetListeners = /* @__PURE__ */ new Set();
|
|
961
|
+
/**
|
|
962
|
+
* Runs `listener` every time {@link resetWasmModule} drops the memoized
|
|
963
|
+
* module. `WasmRuntime` uses it to delete the UtilityApi it keeps for that
|
|
964
|
+
* module. Returns the unsubscribe function.
|
|
965
|
+
*/
|
|
966
|
+
function onWasmModuleReset(listener) {
|
|
967
|
+
moduleResetListeners.add(listener);
|
|
968
|
+
return () => {
|
|
969
|
+
moduleResetListeners.delete(listener);
|
|
970
|
+
};
|
|
971
|
+
}
|
|
953
972
|
function emptyCounters() {
|
|
954
973
|
return {
|
|
955
974
|
analyzeFrameCount: 0,
|
|
@@ -1300,4 +1319,4 @@ function ensureReady() {
|
|
|
1300
1319
|
return webClientApi;
|
|
1301
1320
|
}
|
|
1302
1321
|
//#endregion
|
|
1303
|
-
export {
|
|
1322
|
+
export { WASM_PIPELINE_MODEL_NAMES as A, buildWasmConfigFromBasePath as C, WASM_MODEL_FILES as D, resolveWasmConfig as E, reportWasmIntegritySummary as F, setWasmIntegrityObserver as I, buildModelVariantSources as M, missingWasmModelError as N, WASM_PIPELINE_LAZY_MODEL_NAMES as O, resolveWasmSource as P, buildDefaultWasmConfig as S, isDefaultCdnWasmConfig as T, setWasmStartGate as _, setWebApiHttpTransport as a, SemaphoreProvider as b, wasmCallWrapper as c, noteUnlockedCallStart as d, rearmWasmCallDiagnostics as f, acquireWasmStorageFallback as g, onWasmModuleReset as h, initializeWasmWebClient as i, WASM_PIPELINE_OPTIONAL_MODEL_NAMES as j, WASM_PIPELINE_MODELS as k, notePipelineStatePulled as l, loadWasmModule as m, createWebApiHostAdapter as n, setupWasmConnection as o, resetWasmCallDiagnostics as p, executeWasmRequest as r, ML_CALL_MAX_POLLS as s, WasmWebClientError as t, noteUnlockedCallEnd as u, emitWasmDiagnostic as v, getBarcodeEnhanceModelUrl as w, DEFAULT_WASM_VERSION as x, setWasmDiagnosticsHandler as y };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
2
|
-
import { a as createWatchlistForBusinessManager, c as watchlistForBusinessMachine, i as WatchlistForBusinessState, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor, t as WatchlistForBusinessFinishedState } from "./watchlistForBusinessManager-
|
|
2
|
+
import { a as createWatchlistForBusinessManager, c as watchlistForBusinessMachine, i as WatchlistForBusinessState, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor, t as WatchlistForBusinessFinishedState } from "./watchlistForBusinessManager-l7ZERQcV.js";
|
|
3
3
|
export { type WatchlistForBusinessActor, type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistForBusinessValidationErrors, createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BC9UWLuZ.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-DxeSH80T.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DQq4GxBO.js";
|
|
2
2
|
//#region src/modules/watchlist/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for the global watchlist module.
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Bxzn16iJ.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-BHzmC9OC.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as watchlistForBusinessMachine, t as getMaxDateOfIncorporation } from "./watchlistForBusinessStateMachine-BC9UWLuZ.esm.js";
|
|
5
7
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
8
|
function createWatchlistForBusinessActor(options = {}) {
|
|
7
9
|
return createActor(watchlistForBusinessMachine, { input: { config: options.config ?? {} } }).start();
|
package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
|
|
6
6
|
declare const watchlistForBusinessMachine: any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
5
|
-
import {
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
6
|
+
import { r as validateCNPJ, t as COUNTRIES_WITH_CNPJ_VALIDATION } from "./cnpj-Bl_olpdX.esm.js";
|
|
6
7
|
//#region ../infra/src/time/epochMsToLocalIsoDate.ts
|
|
7
8
|
/**
|
|
8
9
|
* Converts an epoch-milliseconds timestamp to the user's local calendar date
|
|
@@ -22,16 +23,14 @@ function epochMsToLocalIsoDate(epochMs) {
|
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
24
25
|
async function submitWatchlistForBusiness(data, signal) {
|
|
25
|
-
|
|
26
|
-
if (!res.ok) throw new Error(`POST ${endpoints.watchlistForBusinessSubmit} failed: ${res.status} ${res.statusText}`);
|
|
27
|
-
return res.data;
|
|
26
|
+
return (await api.post(endpoints.watchlistForBusinessSubmit, data, { signal })).data;
|
|
28
27
|
}
|
|
29
28
|
//#endregion
|
|
30
29
|
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.ts
|
|
31
30
|
const DEFAULT_COUNTRY = "US";
|
|
32
31
|
const BUSINESS_NAME_REQUIRED_ERROR = "dynamicForms.fieldRequired";
|
|
33
32
|
const INVALID_TAX_ID_ERROR = "ekyb.error.invalidTaxId";
|
|
34
|
-
const FUTURE_DATE_OF_INCORPORATION_ERROR = "
|
|
33
|
+
const FUTURE_DATE_OF_INCORPORATION_ERROR = "verification.errors.futureDate";
|
|
35
34
|
/**
|
|
36
35
|
* Country-specific Tax ID format checks, applied only to a filled Tax ID.
|
|
37
36
|
* Countries without an entry accept any value. The CNPJ countries come from
|
|
@@ -71,7 +70,11 @@ function computeValidationErrors(context) {
|
|
|
71
70
|
const validateTaxId = TAX_ID_VALIDATORS[context.country];
|
|
72
71
|
if (taxId && validateTaxId && !validateTaxId(taxId)) errors.taxId = INVALID_TAX_ID_ERROR;
|
|
73
72
|
const dateOfIncorporation = getDateOfIncorporation(context);
|
|
74
|
-
if (dateOfIncorporation
|
|
73
|
+
if (dateOfIncorporation) {
|
|
74
|
+
const dateError = calendarDateError(dateOfIncorporation);
|
|
75
|
+
if (dateError) errors.dateOfIncorporation = dateError;
|
|
76
|
+
else if (dateOfIncorporation > getMaxDateOfIncorporation()) errors.dateOfIncorporation = FUTURE_DATE_OF_INCORPORATION_ERROR;
|
|
77
|
+
}
|
|
75
78
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
76
79
|
}
|
|
77
80
|
function buildSubmitRequest(context) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Bxzn16iJ.esm.js";
|
|
5
7
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
8
|
function createWatchlistActor() {
|
|
7
9
|
return createActor(watchlistMachine).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
5
5
|
type WatchlistResult = 'success' | 'skipped';
|
|
6
6
|
declare const watchlistMachine: any;
|
package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js}
RENAMED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
3
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/watchlist/watchlistServices.ts
|
|
5
5
|
async function processWatchlist(signal) {
|
|
6
|
-
|
|
7
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processGlobalWatchlist} failed: ${res.status} ${res.statusText}`);
|
|
8
|
-
return res.data;
|
|
6
|
+
return (await api.post(endpoints.processGlobalWatchlist, {}, { signal })).data;
|
|
9
7
|
}
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/watchlist/watchlistStateMachine.ts
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { t as CallbackActorLogic } from "./callback-
|
|
3
|
-
import
|
|
1
|
+
import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, j as StateMachine, l as AnyStateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as CallbackActorLogic } from "./callback-BmjJ1G-5.js";
|
|
3
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
4
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
5
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
5
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
6
|
-
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-
|
|
6
|
+
import { o as FlowEventSubscribable } from "./index-CoePktWH.js";
|
|
7
|
+
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-C3rfDzgE.js";
|
|
7
8
|
//#region src/modules/workflow/types.d.ts
|
|
8
9
|
/** Possible node types returned by the workflow server. */
|
|
9
10
|
type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
4
|
+
import { u as trueSightLog } from "./trueSightService-BwyLhIAo.esm.js";
|
|
5
|
+
import "./trueSight-BymJD5cW.esm.js";
|
|
6
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BT_CmYcX.esm.js";
|
|
7
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BlscKbeV.esm.js";
|
|
6
8
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { i as toIncodeApiError } from "./apiError-BAfdBGxH.esm.js";
|
|
10
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
11
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
12
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
13
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-C1M-Yxf2.esm.js";
|
|
11
14
|
import "./ae-signature.esm.js";
|
|
12
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
13
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
14
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
15
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
16
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
17
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
18
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
30
|
-
import {
|
|
31
|
-
import { n as
|
|
32
|
-
import {
|
|
33
|
-
import { t as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as
|
|
41
|
-
import {
|
|
42
|
-
import { n as
|
|
43
|
-
import { n as
|
|
15
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-TWUu8wLN.esm.js";
|
|
16
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CKTOhwwc.esm.js";
|
|
17
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BPBrILt6.esm.js";
|
|
18
|
+
import { t as consentMachine } from "./consentStateMachine-CLK8PfM4.esm.js";
|
|
19
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-BbJ4YAzE.esm.js";
|
|
20
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-SS2ssNCg.esm.js";
|
|
21
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-flAt9D4q.esm.js";
|
|
22
|
+
import { r as documentSignatureMachine } from "./documentSignatureStateMachine-DrRyICFT.esm.js";
|
|
23
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-By-maT_4.esm.js";
|
|
24
|
+
import { s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
|
|
25
|
+
import { t as ekybMachine } from "./ekybStateMachine-q7JQ-x9l.esm.js";
|
|
26
|
+
import { t as ekycMachine } from "./ekycStateMachine-D0NAHzS7.esm.js";
|
|
27
|
+
import { l as toEkycConfig } from "./ekycUtils-DEvtEyBI.esm.js";
|
|
28
|
+
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-SBnBKPGA.esm.js";
|
|
29
|
+
import { t as emailMachine } from "./emailStateMachine--T9PHflK.esm.js";
|
|
30
|
+
import { t as selfieMachine } from "./selfieStateMachine-ChCl3nyf.esm.js";
|
|
31
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BdBtGQZP.esm.js";
|
|
32
|
+
import { t as phoneMachine } from "./phoneStateMachine-CxCPxTIy.esm.js";
|
|
33
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Bxzn16iJ.esm.js";
|
|
34
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BC9UWLuZ.esm.js";
|
|
35
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-Ckf39qFu.esm.js";
|
|
36
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-D1J2NQSI.esm.js";
|
|
37
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-B-00PgPh.esm.js";
|
|
38
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BMehrtVP.esm.js";
|
|
39
|
+
import { t as signatureMachine } from "./signatureStateMachine-B-QG7fk0.esm.js";
|
|
40
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-d5_E7gAm.esm.js";
|
|
41
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-DeHHhlcf.esm.js";
|
|
42
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-B48Ikl-7.esm.js";
|
|
43
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-DagrRdo2.esm.js";
|
|
44
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-OKLT8Zoc.esm.js";
|
|
45
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DNLssMAg.esm.js";
|
|
46
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DNEmc7of.esm.js";
|
|
47
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
44
48
|
import "./qe-signature.esm.js";
|
|
45
|
-
import { t as
|
|
49
|
+
import { t as trustGraphMachine } from "./trustGraphStateMachine-BxvReuo1.esm.js";
|
|
50
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
|
|
46
51
|
//#region src/internal/orchestration/defaultModules.ts
|
|
47
52
|
/**
|
|
48
53
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -77,6 +82,7 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
77
82
|
MANDATORY_CONSENT: mandatoryConsentMachine,
|
|
78
83
|
ML_CONSENT: mandatoryConsentMachine,
|
|
79
84
|
SIGNATURE: signatureMachine,
|
|
85
|
+
DOCUMENT_SIGNATURE: documentSignatureMachine,
|
|
80
86
|
ANTIFRAUD: antifraudMachine,
|
|
81
87
|
ID_OCR: idOcrStateMachine,
|
|
82
88
|
AE_SIGNATURE: electronicSignatureMachine,
|
|
@@ -87,7 +93,8 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
87
93
|
CERTIFICATE_ISSUANCE: certificateIssuanceMachine,
|
|
88
94
|
IDENTITY_REUSE: identityReuseMachine,
|
|
89
95
|
DYNAMIC_FORMS: dynamicFormsMachine,
|
|
90
|
-
VIDEO_ONBOARDING: videoSelfieFlowModuleMachine
|
|
96
|
+
VIDEO_ONBOARDING: videoSelfieFlowModuleMachine,
|
|
97
|
+
TRUST_GRAPH: trustGraphMachine
|
|
91
98
|
};
|
|
92
99
|
/**
|
|
93
100
|
* Per-module config mappers for orchestrators (workflow / flow).
|
|
@@ -311,10 +318,16 @@ function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
|
|
|
311
318
|
...config,
|
|
312
319
|
skipProcessFace: true
|
|
313
320
|
};
|
|
314
|
-
if (moduleKey === "FACE_MATCH"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
321
|
+
if (moduleKey === "FACE_MATCH") {
|
|
322
|
+
const faceMatchConfig = config.idRank === "SECOND_ID" ? {
|
|
323
|
+
...config,
|
|
324
|
+
matchingType: "secondId"
|
|
325
|
+
} : config;
|
|
326
|
+
return skipFaceMatch ? {
|
|
327
|
+
...faceMatchConfig,
|
|
328
|
+
skipFaceMatch: true
|
|
329
|
+
} : faceMatchConfig;
|
|
330
|
+
}
|
|
318
331
|
return config;
|
|
319
332
|
}
|
|
320
333
|
//#endregion
|
|
@@ -718,7 +731,13 @@ function createWorkflowActor(options) {
|
|
|
718
731
|
}
|
|
719
732
|
//#endregion
|
|
720
733
|
//#region src/internal/orchestration/identity-search/identitySearchStateMachine.ts
|
|
721
|
-
|
|
734
|
+
/**
|
|
735
|
+
* The Workflow's IDENTITY_SEARCH node does nothing in the SDK: the backend
|
|
736
|
+
* runs the search when the node is reported done on `process/node`. Flows run
|
|
737
|
+
* the search themselves, with the machine in `modules/identity-search/` —
|
|
738
|
+
* registering this one in a Flow would skip the search.
|
|
739
|
+
*/
|
|
740
|
+
const workflowIdentitySearchMachine = setup({ types: {
|
|
722
741
|
context: {},
|
|
723
742
|
input: {}
|
|
724
743
|
} }).createMachine({
|
|
@@ -731,7 +750,7 @@ const identitySearchMachine = setup({ types: {
|
|
|
731
750
|
//#region src/modules/workflow/workflowManager.ts
|
|
732
751
|
const WORKFLOW_DEFAULT_MODULES = {
|
|
733
752
|
...DEFAULT_MODULE_REGISTRY,
|
|
734
|
-
IDENTITY_SEARCH:
|
|
753
|
+
IDENTITY_SEARCH: workflowIdentitySearchMachine,
|
|
735
754
|
ID_CAPTURE: idCaptureMachine,
|
|
736
755
|
ID: idVerificationMachine,
|
|
737
756
|
REDIRECT_TO_MOBILE: redirectToMobileMachine
|
|
@@ -1,127 +1,3 @@
|
|
|
1
|
-
//#region ../infra/src/manager/Manager.ts
|
|
2
|
-
/**
|
|
3
|
-
* Creates a manager that wraps a state machine actor with a clean public API.
|
|
4
|
-
*
|
|
5
|
-
* The manager provides:
|
|
6
|
-
* - `getState()` - Returns the mapped public state
|
|
7
|
-
* - `subscribe()` - Listen to state changes
|
|
8
|
-
* - `stop()` - Stop the actor
|
|
9
|
-
* - Plus any custom API methods from `createApi`
|
|
10
|
-
*
|
|
11
|
-
* @template TMachine - The state machine type
|
|
12
|
-
* @template TMapState - Function type that maps raw snapshot to public state
|
|
13
|
-
* @template TCreateApi - Function type that creates the custom API
|
|
14
|
-
*
|
|
15
|
-
* @param options - Configuration options
|
|
16
|
-
* @param options.actor - The started actor instance
|
|
17
|
-
* @param options.mapState - Function to transform raw snapshot into public state
|
|
18
|
-
* @param options.createApi - Factory function to create custom API methods
|
|
19
|
-
*
|
|
20
|
-
* @returns Combined manager with base methods and custom API
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const manager = createManager({
|
|
25
|
-
* actor: createActor(myMachine).start(),
|
|
26
|
-
* mapState: (snapshot) => ({ status: snapshot.value }),
|
|
27
|
-
* createApi: ({ actor }) => ({
|
|
28
|
-
* doSomething() { actor.send({ type: 'DO_IT' }); }
|
|
29
|
-
* }),
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
function createManager(options) {
|
|
34
|
-
const { actor, mapState, createApi, instrumentation } = options;
|
|
35
|
-
function getSnapshot() {
|
|
36
|
-
return actor.getSnapshot();
|
|
37
|
-
}
|
|
38
|
-
function getState() {
|
|
39
|
-
return mapState(getSnapshot());
|
|
40
|
-
}
|
|
41
|
-
function subscribe(listener) {
|
|
42
|
-
const subscription = actor.subscribe(() => {
|
|
43
|
-
listener(getState());
|
|
44
|
-
});
|
|
45
|
-
return () => subscription.unsubscribe();
|
|
46
|
-
}
|
|
47
|
-
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
-
let currentStateName = instrumentation?.getStateName?.(getSnapshot());
|
|
49
|
-
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
50
|
-
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
51
|
-
const api = createApi({
|
|
52
|
-
actor,
|
|
53
|
-
getSnapshot,
|
|
54
|
-
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
55
|
-
instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
|
|
56
|
-
element: elementName,
|
|
57
|
-
action: payload?.action,
|
|
58
|
-
metadata: payload?.metadata
|
|
59
|
-
});
|
|
60
|
-
} : void 0,
|
|
61
|
-
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
62
|
-
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
|
|
63
|
-
} : void 0
|
|
64
|
-
});
|
|
65
|
-
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
66
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
67
|
-
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
|
|
68
|
-
let lastVisible = instrumentation?.getInitialVisibility?.();
|
|
69
|
-
if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
70
|
-
const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
|
|
71
|
-
if (visible === lastVisible) return;
|
|
72
|
-
lastVisible = visible;
|
|
73
|
-
if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
|
|
74
|
-
else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
75
|
-
});
|
|
76
|
-
const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
|
|
77
|
-
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
78
|
-
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
79
|
-
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
80
|
-
const nextStateName = instrumentation.getStateName?.(snapshot);
|
|
81
|
-
if (currentScreenName === nextScreenName) {
|
|
82
|
-
const previousStateName = currentStateName;
|
|
83
|
-
currentStateName = nextStateName;
|
|
84
|
-
if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
|
|
85
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
86
|
-
currentErrorName = nextErrorName;
|
|
87
|
-
currentErrorPayload = nextErrorPayload;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
91
|
-
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
92
|
-
currentScreenName = nextScreenName;
|
|
93
|
-
currentStateName = nextStateName;
|
|
94
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
95
|
-
currentErrorName = nextErrorName;
|
|
96
|
-
currentErrorPayload = nextErrorPayload;
|
|
97
|
-
}) : void 0;
|
|
98
|
-
let isStopped = false;
|
|
99
|
-
return Object.defineProperties({
|
|
100
|
-
getState,
|
|
101
|
-
subscribe,
|
|
102
|
-
stop() {
|
|
103
|
-
if (isStopped) return;
|
|
104
|
-
isStopped = true;
|
|
105
|
-
try {
|
|
106
|
-
if (actor.getSnapshot().status === "active") options.beforeStop?.();
|
|
107
|
-
} finally {
|
|
108
|
-
try {
|
|
109
|
-
actorSubscription?.unsubscribe();
|
|
110
|
-
stopVisibility?.();
|
|
111
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
112
|
-
currentScreenName = void 0;
|
|
113
|
-
currentStateName = void 0;
|
|
114
|
-
currentErrorName = void 0;
|
|
115
|
-
currentErrorPayload = void 0;
|
|
116
|
-
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
|
117
|
-
} finally {
|
|
118
|
-
actor.stop();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, Object.getOwnPropertyDescriptors(api));
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
1
|
//#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
126
2
|
function getGlobal() {
|
|
127
3
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -2990,4 +2866,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
2990
2866
|
};
|
|
2991
2867
|
}
|
|
2992
2868
|
//#endregion
|
|
2993
|
-
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t
|
|
2869
|
+
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t };
|