@incodetech/core 2.4.0 → 2.4.1-agentic.1
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/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
- package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
- package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
- package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
- package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
- package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
- package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
- package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +37 -22
- package/dist/extensibility.esm.js +36 -35
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
- package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +10 -9
- package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
- package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
- package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
- package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
- package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-CTko6Cjn.esm.js +397 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
- package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
- package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/types-CuMJ2M7D.d.ts +210 -0
- package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-J6g6iKe_.d.ts +6 -0
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +97 -22
- package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
- package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +60 -50
- package/package.json +12 -5
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
* all, so nothing here can throw in hosts that delete or block the storage
|
|
14
14
|
* globals.
|
|
15
15
|
*
|
|
16
|
-
* Written by the acquisition helpers in `./camera
|
|
17
|
-
* `BrowserCameraProvider
|
|
16
|
+
* Written by the acquisition helpers in `./camera`, by
|
|
17
|
+
* `BrowserCameraProvider`, and by the WASM camera step through
|
|
18
|
+
* `CameraCycleProvider.startCameraCycle` (the kit keeps no permission state).
|
|
19
|
+
* Read by Core's `checkPermission()`, which trusts it
|
|
18
20
|
* only on Android WebView — where the Permissions API structurally cannot
|
|
19
21
|
* report a grant. See `isAndroidWebView` in `../capabilities/platform`.
|
|
20
22
|
*/
|
|
@@ -37,6 +39,15 @@ function isCameraGrantedInDocument() {
|
|
|
37
39
|
return cameraGrantedInDocument;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
42
|
+
* The one rule for "this acquisition error means the permission is gone":
|
|
43
|
+
* only the two permission names count. A busy, missing or over-constrained
|
|
44
|
+
* device says nothing about permission. Shared by {@link trackCameraAcquisition}
|
|
45
|
+
* and by the WASM camera step's `onCameraFailed` (`CameraCycleProvider`).
|
|
46
|
+
*/
|
|
47
|
+
function isCameraDenialErrorName(name) {
|
|
48
|
+
return name === "NotAllowedError" || name === "PermissionDeniedError";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
40
51
|
* Runs a camera acquisition and records its outcome in the memo: a resolved
|
|
41
52
|
* stream marks the grant, a permission denial forgets it, and every other
|
|
42
53
|
* failure leaves the memo untouched — a busy, missing or over-constrained
|
|
@@ -52,8 +63,7 @@ async function trackCameraAcquisition(acquire) {
|
|
|
52
63
|
markCameraGrantedInDocument();
|
|
53
64
|
return result;
|
|
54
65
|
} catch (error) {
|
|
55
|
-
|
|
56
|
-
if (name === "NotAllowedError" || name === "PermissionDeniedError") clearCameraGrantedInDocument();
|
|
66
|
+
if (isCameraDenialErrorName(error instanceof Error ? error.name : void 0)) clearCameraGrantedInDocument();
|
|
57
67
|
throw error;
|
|
58
68
|
}
|
|
59
69
|
}
|
|
@@ -126,24 +136,6 @@ async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RE
|
|
|
126
136
|
}
|
|
127
137
|
throw new Error("All camera resolution fallbacks failed");
|
|
128
138
|
}
|
|
129
|
-
/**
|
|
130
|
-
* Preserve the constraints used for an acquired camera while pinning future
|
|
131
|
-
* acquisitions to the device the browser actually selected.
|
|
132
|
-
*
|
|
133
|
-
* Protected WASM PRC/POC may reacquire the stream. Advisory constraints such
|
|
134
|
-
* as `facingMode` are not enough on devices with multiple matching cameras,
|
|
135
|
-
* so the selected device must be replayed as an exact constraint.
|
|
136
|
-
*/
|
|
137
|
-
function getCameraReacquisitionConstraints(track, acquisitionConstraints) {
|
|
138
|
-
if (!track) return acquisitionConstraints;
|
|
139
|
-
const constraints = acquisitionConstraints ?? track.getConstraints();
|
|
140
|
-
const selectedDeviceId = track.getSettings().deviceId;
|
|
141
|
-
if (!selectedDeviceId) return constraints;
|
|
142
|
-
return {
|
|
143
|
-
...constraints,
|
|
144
|
-
deviceId: { exact: selectedDeviceId }
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
139
|
function stopCameraStream(stream) {
|
|
148
140
|
for (const track of stream.getTracks()) track.stop();
|
|
149
141
|
}
|
|
@@ -155,4 +147,4 @@ async function applyTrackConstraints(track, constraints) {
|
|
|
155
147
|
await track.applyConstraints(constraints);
|
|
156
148
|
}
|
|
157
149
|
//#endregion
|
|
158
|
-
export {
|
|
150
|
+
export { stopCameraStream as a, isCameraGrantedInDocument as c, requestCameraWithFallback as i, markCameraGrantedInDocument as l, enumerateVideoDevices as n, clearCameraGrantedInDocument as o, requestCameraAccess as r, isCameraDenialErrorName as s, applyTrackConstraints as t };
|
package/dist/camera.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ declare function checkPermission(): Promise<PermissionResult>;
|
|
|
31
31
|
/**
|
|
32
32
|
* Requests camera permission by attempting to access the camera, then immediately
|
|
33
33
|
* stops the obtained stream. When `requestMotion` is true (deepsight), requests
|
|
34
|
-
* motion OS permission, primes WASM sensors
|
|
35
|
-
* chain,
|
|
34
|
+
* motion OS permission first, then primes WASM sensors while it requests the
|
|
35
|
+
* camera — all in one user gesture chain, as in SDK v1.
|
|
36
36
|
*/
|
|
37
37
|
declare function requestPermission(options?: RequestPermissionOptions): Promise<PermissionResult>;
|
|
38
38
|
//#endregion
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import { a as requestPermission, t as checkPermission } from "./permissionServices-D190ATGD.esm.js";
|
|
2
2
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
2
|
-
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-
|
|
1
|
+
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DThXMDqr.esm.js";
|
|
2
|
+
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-C1nETQos.esm.js";
|
|
3
3
|
export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
3
|
+
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DThXMDqr.esm.js";
|
|
4
4
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts a certificate issuance actor.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as getApi, r as getToken, u as endpoints } from "./api-
|
|
1
|
+
import { n as getApi, r as getToken, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
|
-
import { t as externalFetch } from "./externalFetch-
|
|
4
|
+
import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
|
|
5
5
|
//#region src/modules/certificate-issuance/certificateIssuanceServices.ts
|
|
6
6
|
function buildIssueCertificateUrl(baseURL) {
|
|
7
7
|
return `${baseURL.endsWith("/") ? baseURL.slice(0, -1) : baseURL}${endpoints.certificateIssuanceIssue}`;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//#region src/shared/validators/cnpj.ts
|
|
2
|
+
/** Countries whose tax ID is a CNPJ and must pass {@link validateCNPJ}. */
|
|
3
|
+
const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
|
|
4
|
+
const CNPJ_FORMATTED_LENGTH = 18;
|
|
5
|
+
const CNPJ_CLEAN_LENGTH = 14;
|
|
6
|
+
const INVALID_CNPJ_PATTERNS = [
|
|
7
|
+
"00000000000000",
|
|
8
|
+
"11111111111111",
|
|
9
|
+
"22222222222222",
|
|
10
|
+
"33333333333333",
|
|
11
|
+
"44444444444444",
|
|
12
|
+
"55555555555555",
|
|
13
|
+
"66666666666666",
|
|
14
|
+
"77777777777777",
|
|
15
|
+
"88888888888888",
|
|
16
|
+
"99999999999999"
|
|
17
|
+
];
|
|
18
|
+
const CNPJ_FIRST_DIGIT_FACTORS = [
|
|
19
|
+
5,
|
|
20
|
+
4,
|
|
21
|
+
3,
|
|
22
|
+
2,
|
|
23
|
+
9,
|
|
24
|
+
8,
|
|
25
|
+
7,
|
|
26
|
+
6,
|
|
27
|
+
5,
|
|
28
|
+
4,
|
|
29
|
+
3,
|
|
30
|
+
2
|
|
31
|
+
];
|
|
32
|
+
const CNPJ_SECOND_DIGIT_FACTORS = [
|
|
33
|
+
6,
|
|
34
|
+
5,
|
|
35
|
+
4,
|
|
36
|
+
3,
|
|
37
|
+
2,
|
|
38
|
+
9,
|
|
39
|
+
8,
|
|
40
|
+
7,
|
|
41
|
+
6,
|
|
42
|
+
5,
|
|
43
|
+
4,
|
|
44
|
+
3,
|
|
45
|
+
2
|
|
46
|
+
];
|
|
47
|
+
function cleanCnpjString(cnpj) {
|
|
48
|
+
return cnpj.replace(/\./g, "").replace(/\//g, "").replace(/-/g, "");
|
|
49
|
+
}
|
|
50
|
+
function calculateVerificationDigit(cnpjString, factors) {
|
|
51
|
+
let digit = 11 - factors.reduce((acc, factor, index) => acc + Number.parseInt(cnpjString.charAt(index), 10) * factor, 0) % 11;
|
|
52
|
+
if (digit >= 10) digit = 0;
|
|
53
|
+
return digit.toString();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Validates a Brazilian CNPJ number (14-digit checksum).
|
|
57
|
+
* Accepts formatted (00.000.000/0000-00) or unformatted input.
|
|
58
|
+
*/
|
|
59
|
+
function validateCNPJ(cnpjInput) {
|
|
60
|
+
if (!cnpjInput || typeof cnpjInput !== "string") return false;
|
|
61
|
+
let cnpj = cnpjInput.trim();
|
|
62
|
+
if (cnpj.length === CNPJ_FORMATTED_LENGTH) cnpj = cleanCnpjString(cnpj);
|
|
63
|
+
if (cnpj.length !== CNPJ_CLEAN_LENGTH) return false;
|
|
64
|
+
if (!/^\d+$/.test(cnpj)) return false;
|
|
65
|
+
if (INVALID_CNPJ_PATTERNS.includes(cnpj)) return false;
|
|
66
|
+
const first = calculateVerificationDigit(cnpj, CNPJ_FIRST_DIGIT_FACTORS);
|
|
67
|
+
if (cnpj.charAt(12) !== first) return false;
|
|
68
|
+
const second = calculateVerificationDigit(cnpj, CNPJ_SECOND_DIGIT_FACTORS);
|
|
69
|
+
if (cnpj.charAt(13) !== second) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
/** Returns true when CNPJ validation applies for the given country. */
|
|
73
|
+
function requiresCnpjValidation(country) {
|
|
74
|
+
return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { requiresCnpjValidation as n, validateCNPJ as r, COUNTRIES_WITH_CNPJ_VALIDATION as t };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
2
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
+
import { t as BrowserNetworkStatusProvider } from "./BrowserNetworkStatusProvider-BrDXBEDd.esm.js";
|
|
4
|
+
//#region src/internal/session/connectivity.ts
|
|
5
|
+
const SETTLE_MS = 1500;
|
|
6
|
+
const network = new BrowserNetworkStatusProvider();
|
|
7
|
+
const timer = BrowserTimerProvider.getInstance();
|
|
8
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
9
|
+
let lost = false;
|
|
10
|
+
/** Counts losses, so a retry can tell a loss happened during its request. */
|
|
11
|
+
let losses = 0;
|
|
12
|
+
let started = false;
|
|
13
|
+
let settle;
|
|
14
|
+
function cancelSettle() {
|
|
15
|
+
if (settle === void 0) return;
|
|
16
|
+
timer.clearTimeout(settle);
|
|
17
|
+
settle = void 0;
|
|
18
|
+
}
|
|
19
|
+
function set(next) {
|
|
20
|
+
cancelSettle();
|
|
21
|
+
if (lost === next) return;
|
|
22
|
+
lost = next;
|
|
23
|
+
if (next) losses += 1;
|
|
24
|
+
for (const listener of [...listeners]) listener(next);
|
|
25
|
+
}
|
|
26
|
+
/** Lazy, so headless users that never subscribe keep fail-fast requests. */
|
|
27
|
+
function start() {
|
|
28
|
+
if (started) return;
|
|
29
|
+
started = true;
|
|
30
|
+
lost = !network.isOnline();
|
|
31
|
+
network.onOffline(() => set(true));
|
|
32
|
+
network.onOnline(() => {
|
|
33
|
+
cancelSettle();
|
|
34
|
+
settle = timer.setTimeout(() => set(false), SETTLE_MS);
|
|
35
|
+
});
|
|
36
|
+
subscribeHttpErrors((error) => {
|
|
37
|
+
if (error.status === 0 && !network.isOnline()) set(true);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Subscribes to connectivity loss and recovery. The listener receives `true`
|
|
42
|
+
* when the browser goes offline (or a request fails while it reports offline,
|
|
43
|
+
* before the `offline` event arrives), and
|
|
44
|
+
* `false` 1.5 s after the browser reports `online` (or on
|
|
45
|
+
* {@link resumeConnectivity}). Fires `true` at once if connectivity is already
|
|
46
|
+
* lost. Returns an unsubscribe function.
|
|
47
|
+
*/
|
|
48
|
+
function onConnectivityChange(listener) {
|
|
49
|
+
start();
|
|
50
|
+
return watchConnectivity(listener);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Like {@link onConnectivityChange}, but does not start the store, so
|
|
54
|
+
* headless users that never subscribe keep fail-fast requests (and this
|
|
55
|
+
* listener then never fires).
|
|
56
|
+
*/
|
|
57
|
+
function watchConnectivity(listener) {
|
|
58
|
+
listeners.add(listener);
|
|
59
|
+
if (lost) listener(true);
|
|
60
|
+
return () => {
|
|
61
|
+
listeners.delete(listener);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** True while connectivity is lost. Starts the store, like a subscribe. */
|
|
65
|
+
function isConnectivityLost() {
|
|
66
|
+
start();
|
|
67
|
+
return lost;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Ends the lost state at once, without the settle wait. Returns `false` and
|
|
71
|
+
* does nothing while the browser still reports offline.
|
|
72
|
+
*/
|
|
73
|
+
function resumeConnectivity() {
|
|
74
|
+
if (!network.isOnline()) return false;
|
|
75
|
+
set(false);
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
/** Resolves when connectivity is no longer lost; rejects on abort. */
|
|
79
|
+
function untilOnline(signal) {
|
|
80
|
+
if (!lost) return Promise.resolve();
|
|
81
|
+
if (signal?.aborted) return Promise.reject(signal.reason);
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
const onChange = (next) => {
|
|
84
|
+
if (next) return;
|
|
85
|
+
listeners.delete(onChange);
|
|
86
|
+
signal?.removeEventListener("abort", onAbort);
|
|
87
|
+
resolve();
|
|
88
|
+
};
|
|
89
|
+
const onAbort = () => {
|
|
90
|
+
listeners.delete(onChange);
|
|
91
|
+
reject(signal?.reason);
|
|
92
|
+
};
|
|
93
|
+
listeners.add(onChange);
|
|
94
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Runs `run`; when it fails while connectivity is lost, waits for reconnect
|
|
99
|
+
* and runs it again. Any other failure is rethrown, so callers keep their
|
|
100
|
+
* existing error handling. Use only for requests that are safe to repeat.
|
|
101
|
+
*/
|
|
102
|
+
async function retryAfterReconnect(run, signal) {
|
|
103
|
+
for (;;) {
|
|
104
|
+
const before = losses;
|
|
105
|
+
try {
|
|
106
|
+
return await run();
|
|
107
|
+
} catch (error) {
|
|
108
|
+
if (signal?.aborted || !lost && losses === before) throw error;
|
|
109
|
+
await untilOnline(signal);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { watchConnectivity as a, retryAfterReconnect as i, onConnectivityChange as n, resumeConnectivity as r, isConnectivityLost as t };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-bjfVXO7p.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
2
|
-
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-
|
|
1
|
+
import { t as consentMachine } from "./consentStateMachine-DIYSMxKQ.esm.js";
|
|
2
|
+
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-DMlSL6Ax.esm.js";
|
|
3
3
|
export { consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
4
|
+
import { t as consentMachine } from "./consentStateMachine-DIYSMxKQ.esm.js";
|
|
5
5
|
//#region src/modules/consent/consentActor.ts
|
|
6
6
|
function createConsentActor(options) {
|
|
7
7
|
return createActor(consentMachine, { input: { config: options.config } }).start();
|
|
@@ -59,7 +59,8 @@ function mapState(snapshot) {
|
|
|
59
59
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
60
60
|
if (typedSnapshot.matches("error")) return {
|
|
61
61
|
status: "error",
|
|
62
|
-
error: context.error ?? "Unknown error"
|
|
62
|
+
error: context.error ?? "Unknown error",
|
|
63
|
+
moduleErrorCode: context.moduleErrorCode
|
|
63
64
|
};
|
|
64
65
|
return { status: "idle" };
|
|
65
66
|
}
|
|
@@ -32,6 +32,7 @@ type ConsentContext = {
|
|
|
32
32
|
languageConsentId: string;
|
|
33
33
|
checkboxes: ConsentCheckbox[];
|
|
34
34
|
error: string | undefined;
|
|
35
|
+
moduleErrorCode: string | undefined;
|
|
35
36
|
};
|
|
36
37
|
type ConsentInput = {
|
|
37
38
|
config: ConsentConfig;
|
|
@@ -77,6 +78,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
77
78
|
type: "setError";
|
|
78
79
|
params: NonReducibleUnknown;
|
|
79
80
|
};
|
|
81
|
+
setLoadError: {
|
|
82
|
+
type: "setLoadError";
|
|
83
|
+
params: NonReducibleUnknown;
|
|
84
|
+
};
|
|
80
85
|
clearError: {
|
|
81
86
|
type: "clearError";
|
|
82
87
|
params: NonReducibleUnknown;
|
|
@@ -96,7 +101,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
96
101
|
}>, {
|
|
97
102
|
type: "canSubmit";
|
|
98
103
|
params: unknown;
|
|
99
|
-
}, never, "error" | "idle" | "finished" | "
|
|
104
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
100
105
|
readonly id: "consent";
|
|
101
106
|
readonly initial: "idle";
|
|
102
107
|
readonly context: ({ input }: {
|
|
@@ -199,6 +204,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
199
204
|
languageConsentId: string;
|
|
200
205
|
checkboxes: never[];
|
|
201
206
|
error: undefined;
|
|
207
|
+
moduleErrorCode: undefined;
|
|
202
208
|
};
|
|
203
209
|
readonly states: {
|
|
204
210
|
readonly idle: {
|
|
@@ -260,7 +266,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
260
266
|
};
|
|
261
267
|
readonly onError: {
|
|
262
268
|
readonly target: "error";
|
|
263
|
-
readonly actions: "
|
|
269
|
+
readonly actions: "setLoadError";
|
|
264
270
|
};
|
|
265
271
|
};
|
|
266
272
|
};
|
|
@@ -386,6 +392,7 @@ type ConsentFinishedState = {
|
|
|
386
392
|
type ConsentErrorState = {
|
|
387
393
|
status: 'error';
|
|
388
394
|
error: string;
|
|
395
|
+
moduleErrorCode?: string;
|
|
389
396
|
};
|
|
390
397
|
type ConsentState = ConsentIdleState | ConsentLoadingState | ConsentDisplayState | ConsentSubmittingState | ConsentFinishedState | ConsentErrorState;
|
|
391
398
|
declare function createConsentManager(options: CreateConsentActorOptions): Manager<ConsentState> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/consent/consentServices.ts
|
|
@@ -44,6 +44,10 @@ const consentMachine = setup({
|
|
|
44
44
|
})
|
|
45
45
|
},
|
|
46
46
|
actions: {
|
|
47
|
+
setLoadError: assign(({ event }) => ({
|
|
48
|
+
error: String(event.error),
|
|
49
|
+
moduleErrorCode: "COMBINED_CONSENT_LOAD_FAILED"
|
|
50
|
+
})),
|
|
47
51
|
setConsentData: assign(({ event }) => {
|
|
48
52
|
const output = event.output;
|
|
49
53
|
return {
|
|
@@ -56,7 +60,8 @@ const consentMachine = setup({
|
|
|
56
60
|
required: !consent.optional,
|
|
57
61
|
checked: false
|
|
58
62
|
})),
|
|
59
|
-
error: void 0
|
|
63
|
+
error: void 0,
|
|
64
|
+
moduleErrorCode: void 0
|
|
60
65
|
};
|
|
61
66
|
}),
|
|
62
67
|
toggleCheckbox: assign(({ context, event }) => {
|
|
@@ -66,15 +71,22 @@ const consentMachine = setup({
|
|
|
66
71
|
checked: !checkbox.checked
|
|
67
72
|
} : checkbox) };
|
|
68
73
|
}),
|
|
69
|
-
setError: assign(({ event }) => ({
|
|
70
|
-
|
|
74
|
+
setError: assign(({ event }) => ({
|
|
75
|
+
error: String(event.error),
|
|
76
|
+
moduleErrorCode: void 0
|
|
77
|
+
})),
|
|
78
|
+
clearError: assign({
|
|
79
|
+
error: () => void 0,
|
|
80
|
+
moduleErrorCode: () => void 0
|
|
81
|
+
}),
|
|
71
82
|
resetContext: assign(({ context }) => ({
|
|
72
83
|
config: context.config,
|
|
73
84
|
title: "",
|
|
74
85
|
richText: "",
|
|
75
86
|
languageConsentId: "",
|
|
76
87
|
checkboxes: [],
|
|
77
|
-
error: void 0
|
|
88
|
+
error: void 0,
|
|
89
|
+
moduleErrorCode: void 0
|
|
78
90
|
}))
|
|
79
91
|
},
|
|
80
92
|
guards: { canSubmit: ({ context }) => context.checkboxes.filter((checkbox) => checkbox.required).every((checkbox) => checkbox.checked) }
|
|
@@ -87,7 +99,8 @@ const consentMachine = setup({
|
|
|
87
99
|
richText: "",
|
|
88
100
|
languageConsentId: "",
|
|
89
101
|
checkboxes: [],
|
|
90
|
-
error: void 0
|
|
102
|
+
error: void 0,
|
|
103
|
+
moduleErrorCode: void 0
|
|
91
104
|
}),
|
|
92
105
|
states: {
|
|
93
106
|
idle: { on: { LOAD: {
|
|
@@ -107,7 +120,7 @@ const consentMachine = setup({
|
|
|
107
120
|
},
|
|
108
121
|
onError: {
|
|
109
122
|
target: "error",
|
|
110
|
-
actions: "
|
|
123
|
+
actions: "setLoadError"
|
|
111
124
|
}
|
|
112
125
|
} },
|
|
113
126
|
display: { on: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-
|
|
1
|
+
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-BFTdiEDB.esm.js";
|
|
2
2
|
export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
3
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-z8428oCM.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
1
|
+
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-B3iVsDyt.esm.js";
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-DNpC3wyf.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
5
|
+
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-B3iVsDyt.esm.js";
|
|
5
6
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
6
7
|
function createCurpValidationActor(options) {
|
|
7
8
|
return createActor(curpValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-CRaFu6wS.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
|
+
import { t as carryAttempts } from "./attemptCarry-WOkfvFMw.esm.js";
|
|
5
|
+
import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
4
6
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
5
|
-
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
6
|
-
function isValidCurp(curp) {
|
|
7
|
-
return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
|
|
8
|
-
}
|
|
9
7
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
10
8
|
function formatDateForApi(date) {
|
|
11
9
|
const [year, month, day] = date.split("-");
|
|
@@ -431,22 +429,32 @@ const curpValidationMachine = setup({
|
|
|
431
429
|
}).createMachine({
|
|
432
430
|
id: "curpValidation",
|
|
433
431
|
initial: "idle",
|
|
434
|
-
context: ({ input }) =>
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
432
|
+
context: ({ input, self }) => {
|
|
433
|
+
const carried = carryAttempts("curpValidation", self, (s) => ({ retriesLeft: s.matches("failure") || s.matches("generateError") ? s.context.retriesLeft - 1 : s.context.retriesLeft }));
|
|
434
|
+
return {
|
|
435
|
+
config: input.config,
|
|
436
|
+
curp: "",
|
|
437
|
+
generateForm: { ...DEFAULT_GENERATE_FORM },
|
|
438
|
+
retriesLeft: carried.retriesLeft ?? input.config.maxRetries ?? 1,
|
|
439
|
+
generatedCurp: void 0,
|
|
440
|
+
error: void 0,
|
|
441
|
+
fromGenerate: false,
|
|
442
|
+
fromAutoVerify: false
|
|
443
|
+
};
|
|
444
|
+
},
|
|
444
445
|
states: {
|
|
445
446
|
idle: { on: {
|
|
446
|
-
LOAD: [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
LOAD: [
|
|
448
|
+
{
|
|
449
|
+
target: "finished",
|
|
450
|
+
guard: ({ context }) => context.retriesLeft < Math.min(0, context.config.maxRetries ?? 1)
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
target: "loading",
|
|
454
|
+
guard: "hasPrefillFromOcr"
|
|
455
|
+
},
|
|
456
|
+
{ target: "enterCurp" }
|
|
457
|
+
],
|
|
450
458
|
CLOSE: "closed"
|
|
451
459
|
} },
|
|
452
460
|
loading: {
|
|
@@ -606,4 +614,4 @@ const curpValidationMachine = setup({
|
|
|
606
614
|
}
|
|
607
615
|
});
|
|
608
616
|
//#endregion
|
|
609
|
-
export { mexicanStates as
|
|
617
|
+
export { mexicanStates as i, ENTER_CURP_FIELD as n, GENERATE_CURP_FIELDS as r, curpValidationMachine as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-
|
|
1
|
+
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-CvI-pDT3.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
2
|
-
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-
|
|
1
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CiVD9wyF.esm.js";
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-BuHtUb0y.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
4
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CiVD9wyF.esm.js";
|
|
5
5
|
//#region src/modules/custom-watchlist/customWatchlistActor.ts
|
|
6
6
|
function createCustomWatchlistActor() {
|
|
7
7
|
return createActor(customWatchlistMachine).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/custom-watchlist/customWatchlistServices.ts
|