@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12
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/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
- package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.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-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
- package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
- package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
- package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
- package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
- package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-PIj2uGBm.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 +2 -2
- 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-DzDuQTsK.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.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-7aHaehwF.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -8
- package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
- package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +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-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.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-BVTt7IgC.esm.js → curpValidationManager-BKUDQ55W.esm.js} +6 -4
- package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.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-gbsq53p6.esm.js → customFieldsManager-CPhONu5i.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
- package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +15 -15
- 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-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
- package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
- package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
- package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
- package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-DWCL912J.esm.js} +39 -16
- package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
- package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
- package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -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-BKQuhJm_.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
- package/dist/events-CsPmTidH.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +41 -41
- 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-ClFsByZc.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
- package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
- package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
- package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
- package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.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-DuosZJso.esm.js → fieldComparisonManager-Chn80m_n.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-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.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 +48 -12
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
- package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
- 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-CiG32lIm.esm.js → geolocationManager-dgMVi0ed.esm.js} +5 -3
- package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.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-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.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 +5 -4
- package/dist/id-selfie-flow.esm.js +13 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
- package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
- package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
- package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
- package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.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-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
- package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
- package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
- 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-C1-j4fsq.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-CnqwgKoV.esm.js → kybChecksManager-D-mVF14T.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
- package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
- package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
- package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
- 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-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
- package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
- package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
- package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
- package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
- package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
- package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -12
- package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
- package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.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-DaUNvo-o.esm.js → tri-B5Yh5glk.esm.js} +2 -2
- 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/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
- package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
- package/dist/types-C2uJrJrS.d.ts +6 -0
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
- package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
- package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
- package/dist/video-selfie.d.ts +6 -5
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
- 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-C1S5y5yj.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
- package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +53 -43
- 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 +11 -1
- 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-Df5eKLsY.esm.js +0 -2165
- package/dist/types-kLsU6Jkt.d.ts +0 -6
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
1
|
+
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.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 { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
6
|
+
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
6
8
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
7
9
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
8
10
|
function formatDateForApi(date) {
|
|
@@ -146,14 +148,10 @@ const mexicanStates = [
|
|
|
146
148
|
//#endregion
|
|
147
149
|
//#region src/modules/curp-validation/curpValidationServices.ts
|
|
148
150
|
async function fetchOcrData(signal) {
|
|
149
|
-
|
|
150
|
-
if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
|
|
151
|
-
return res.data;
|
|
151
|
+
return (await api.get(endpoints.ocrData, { signal })).data;
|
|
152
152
|
}
|
|
153
153
|
async function addCurp(curp, signal) {
|
|
154
|
-
|
|
155
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurp} failed: ${res.status} ${res.statusText}`);
|
|
156
|
-
return res.data;
|
|
154
|
+
return (await api.post(endpoints.addCurp, { curp }, { signal })).data;
|
|
157
155
|
}
|
|
158
156
|
async function addCurpV2(form, signal) {
|
|
159
157
|
const payload = {
|
|
@@ -164,9 +162,7 @@ async function addCurpV2(form, signal) {
|
|
|
164
162
|
birthDate: formatDateForApi(form.birthDate),
|
|
165
163
|
state: form.birthState
|
|
166
164
|
};
|
|
167
|
-
|
|
168
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurpV2} failed: ${res.status} ${res.statusText}`);
|
|
169
|
-
return res.data;
|
|
165
|
+
return (await api.post(endpoints.addCurpV2, payload, { signal })).data;
|
|
170
166
|
}
|
|
171
167
|
//#endregion
|
|
172
168
|
//#region src/modules/curp-validation/curpFields.ts
|
|
@@ -257,7 +253,10 @@ const createValidators = () => ({
|
|
|
257
253
|
}
|
|
258
254
|
});
|
|
259
255
|
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
260
|
-
const evaluateRules = (value, validation, validators) => {
|
|
256
|
+
const evaluateRules = (value, validation, validators, type) => {
|
|
257
|
+
const dateError = type === "date" ? calendarDateError(value.trim()) : void 0;
|
|
258
|
+
if (dateError) return dateError;
|
|
259
|
+
if (type === "date" && value.trim() > getLocalIsoDate()) return "verification.errors.futureDate";
|
|
261
260
|
if (!validation) return void 0;
|
|
262
261
|
for (const rule of validation) {
|
|
263
262
|
const error = validators[rule.type](value);
|
|
@@ -273,7 +272,7 @@ const validateGenerateCurpForm = (data, fields) => {
|
|
|
273
272
|
const validators = createValidators();
|
|
274
273
|
return fields.reduce((errors, field) => {
|
|
275
274
|
const value = normalizeFieldValue(data[field.key]);
|
|
276
|
-
const error = evaluateRules(value, field.validation, validators);
|
|
275
|
+
const error = evaluateRules(value, field.validation, validators, field.type);
|
|
277
276
|
if (error) errors[field.key] = error;
|
|
278
277
|
return errors;
|
|
279
278
|
}, {});
|
|
@@ -287,7 +286,7 @@ const validateGenerateCurpField = (data, fieldKey, fields) => {
|
|
|
287
286
|
if (!field) return void 0;
|
|
288
287
|
const validators = createValidators();
|
|
289
288
|
const value = normalizeFieldValue(data[fieldKey]);
|
|
290
|
-
return evaluateRules(value, field.validation, validators);
|
|
289
|
+
return evaluateRules(value, field.validation, validators, field.type);
|
|
291
290
|
};
|
|
292
291
|
/**
|
|
293
292
|
* Runs the single CURP-entry field through its validation rules.
|
package/dist/custom-fields.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createCustomFieldsManagerFromActor, c as customFieldsMachine, d as CustomFieldsConfig, i as createCustomFieldsManager, l as CustomField, n as CustomFieldsState, o as CustomFieldsActor, r as MappedCustomField, s as CustomFieldsValidationErrors, t as CustomFieldsManager, u as CustomFieldType } from "./customFieldsManager-
|
|
1
|
+
import { a as createCustomFieldsManagerFromActor, c as customFieldsMachine, d as CustomFieldsConfig, i as createCustomFieldsManager, l as CustomField, n as CustomFieldsState, o as CustomFieldsActor, r as MappedCustomField, s as CustomFieldsValidationErrors, t as CustomFieldsManager, u as CustomFieldType } from "./customFieldsManager-CdWTbsew.js";
|
|
2
2
|
export { type CustomField, type CustomFieldType, type CustomFieldsActor, type CustomFieldsConfig, type CustomFieldsManager, type CustomFieldsState, type CustomFieldsValidationErrors, type MappedCustomField, createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -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-CPhONu5i.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, o as customWatchlistMachine, r as createCustomWatchlistManager, t as CustomWatchlistManager } from "./customWatchlistManager-
|
|
1
|
+
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, o as customWatchlistMachine, r as createCustomWatchlistManager, t as CustomWatchlistManager } from "./customWatchlistManager-lJrveDS4.js";
|
|
2
2
|
//#region src/modules/custom-watchlist/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the custom watchlist module (INCODE_WATCHLIST flow key).
|
|
@@ -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-C1Xq1ugl.esm.js";
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-cN57usIW.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
6
9
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
10
|
//#region src/modules/custom-fields/customFieldsServices.ts
|
|
8
11
|
async function submitCustomFields(params, signal) {
|
|
9
|
-
|
|
10
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
|
|
11
|
-
return res.data;
|
|
12
|
+
return (await api.post(endpoints.addCustomFields, params.fields, { signal })).data;
|
|
12
13
|
}
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region src/modules/custom-fields/customFieldsStateMachine.ts
|
|
@@ -19,19 +20,16 @@ function transformFields(fields, customFields) {
|
|
|
19
20
|
else result[key] = value;
|
|
20
21
|
return result;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
return customFields.every((field) => {
|
|
24
|
-
if (field.type === "BOOLEAN") return true;
|
|
25
|
-
const value = fields[field.name];
|
|
26
|
-
return value !== void 0 && value !== "";
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function validateRequiredFields(fields, customFields) {
|
|
23
|
+
function validateFields(fields, customFields) {
|
|
30
24
|
const errors = {};
|
|
31
25
|
for (const field of customFields) {
|
|
32
26
|
if (field.type === "BOOLEAN") continue;
|
|
33
27
|
const value = fields[field.name];
|
|
34
28
|
if (value === void 0 || value === "") errors[field.name] = REQUIRED_FIELD_ERROR;
|
|
29
|
+
else if (field.type === "DATE") {
|
|
30
|
+
const dateError = calendarDateError(value);
|
|
31
|
+
if (dateError) errors[field.name] = dateError;
|
|
32
|
+
}
|
|
35
33
|
}
|
|
36
34
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
37
35
|
}
|
|
@@ -57,13 +55,13 @@ const customFieldsMachine = setup({
|
|
|
57
55
|
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0
|
|
58
56
|
};
|
|
59
57
|
}),
|
|
60
|
-
setValidationErrors: assign(({ context }) => ({ validationErrors:
|
|
58
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: validateFields(context.fields, context.config.customFields) })),
|
|
61
59
|
markSuccess: assign({ result: "success" }),
|
|
62
60
|
markFailed: assign({ result: "failed" })
|
|
63
61
|
},
|
|
64
62
|
guards: {
|
|
65
63
|
apiSucceeded: ({ event }) => event.output.success,
|
|
66
|
-
isFormComplete: ({ context }) =>
|
|
64
|
+
isFormComplete: ({ context }) => validateFields(context.fields, context.config.customFields) === void 0
|
|
67
65
|
}
|
|
68
66
|
}).createMachine({
|
|
69
67
|
id: "customFields",
|
|
@@ -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/custom-fields/types.d.ts
|
|
5
5
|
type CustomFieldType = 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING' | 'DATE';
|
|
6
6
|
type CustomField = {
|
package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js}
RENAMED
|
@@ -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-CsPmTidH.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 customWatchlistMachine } from "./customWatchlistStateMachine-C1Xq1ugl.esm.js";
|
|
5
7
|
//#region src/modules/custom-watchlist/customWatchlistActor.ts
|
|
6
8
|
function createCustomWatchlistActor() {
|
|
7
9
|
return createActor(customWatchlistMachine).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/custom-watchlist/customWatchlistStateMachine.d.ts
|
|
5
5
|
type CustomWatchlistResult = 'success' | 'skipped';
|
|
6
6
|
declare const customWatchlistMachine: any;
|
|
@@ -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-DSZSaaWr.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/custom-watchlist/customWatchlistServices.ts
|
|
5
5
|
async function processWatchlist(signal) {
|
|
6
|
-
|
|
7
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processWatchlist} failed: ${res.status} ${res.statusText}`);
|
|
8
|
-
return res.data;
|
|
6
|
+
return (await api.post(endpoints.processWatchlist, {}, { signal })).data;
|
|
9
7
|
}
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/custom-watchlist/customWatchlistStateMachine.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-D9D2IdEj.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-B5_kVegT.esm.js";
|
|
4
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-BUUpdBy6.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
7
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BNttW5Sm.esm.js";
|
|
8
8
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
9
9
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
@@ -52,6 +52,31 @@ function buildStreetValue(street, houseNumber, hasHouseNoField) {
|
|
|
52
52
|
if (houseNumber && street) return `${houseNumber} ${street}`;
|
|
53
53
|
return houseNumber ?? street ?? "";
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Keeps an address suggestion's region inside the `state` dropdown. A region
|
|
57
|
+
* that matches an option's value or label, ignoring case, becomes that
|
|
58
|
+
* option's value. One that matches none is dropped, as if the suggestion had
|
|
59
|
+
* no region, so the previous `state` stays if it matches an option the same
|
|
60
|
+
* way, also as that option's value (a prefill can leave `KOWLOON`, or a value
|
|
61
|
+
* no option has). Without this, a code such as `HK` would pass `required` and
|
|
62
|
+
* be submitted though the dropdown can't show it. A free-text `state` takes
|
|
63
|
+
* the suggestion as it is. Shared between eKYC and eKYB address forms; run it
|
|
64
|
+
* on `fillFromSuggestion`'s values.
|
|
65
|
+
*/
|
|
66
|
+
function keepSuggestedStateInOptions(fields, previous, next) {
|
|
67
|
+
const options = fields.find((field) => field.name === "state")?.options;
|
|
68
|
+
const suggested = next.state;
|
|
69
|
+
if (!options || !suggested) return next;
|
|
70
|
+
const optionFor = (value) => {
|
|
71
|
+
const wanted = value?.trim().toUpperCase();
|
|
72
|
+
if (!wanted) return void 0;
|
|
73
|
+
return options.find((option) => option.value.toUpperCase() === wanted || option.label.toUpperCase() === wanted)?.value;
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
...next,
|
|
77
|
+
state: optionFor(suggested) ?? optionFor(previous.state)
|
|
78
|
+
};
|
|
79
|
+
}
|
|
55
80
|
const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
|
|
56
81
|
US: 10,
|
|
57
82
|
BR: 9,
|
|
@@ -100,6 +125,18 @@ function getPostalCodeErrorKey(country) {
|
|
|
100
125
|
if (country === "US") return "verification.errors.zipCodeInvalidFormat";
|
|
101
126
|
return "verification.errors.postalCodeInvalidFormat";
|
|
102
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* The params of a postal code's error message: the digit count for a
|
|
130
|
+
* fixed-length format, otherwise the maximum length. US and BR don't count
|
|
131
|
+
* the dash.
|
|
132
|
+
*/
|
|
133
|
+
function getPostalCodeErrorParams(country) {
|
|
134
|
+
const fixedLength = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
135
|
+
if (fixedLength !== void 0) return { length: fixedLength };
|
|
136
|
+
let maxLength = getPostalCodeMaxLength(country);
|
|
137
|
+
if (country === "US" || country === "BR") maxLength = maxLength - 1;
|
|
138
|
+
return { maxLength };
|
|
139
|
+
}
|
|
103
140
|
const US_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{9}|\d{5}-\d{4})$/;
|
|
104
141
|
const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
|
|
105
142
|
const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
|
|
@@ -181,4 +218,4 @@ function createBundledDefinitionSource(definitions) {
|
|
|
181
218
|
return { select: (query) => byQuery.get(queryKey(query)) };
|
|
182
219
|
}
|
|
183
220
|
//#endregion
|
|
184
|
-
export { getPostalCodeMaxLength as a, fillFromSuggestion as c,
|
|
221
|
+
export { getPostalCodeMaxLength as a, fillFromSuggestion as c, getPostalCodeErrorParams as i, getStreetLevelErrorForSuggestion as l, formatPostalCode as n, validatePostalCode as o, getPostalCodeErrorKey as r, STREET_LEVEL_REQUIRED_ERROR as s, createBundledDefinitionSource as t, keepSuggestedStateInOptions as u };
|
package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE_OWNERSHIP_DOMAIN } from "./warmup-9iKKNNuW.esm.js";
|
|
3
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
5
|
-
import { t as fromCallback } from "./xstate-actors.esm-
|
|
6
|
-
import {
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-
|
|
3
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
5
|
+
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
+
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
7
|
+
import { l as queryCameraPermission } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
8
8
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
9
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
9
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
10
10
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
11
11
|
/**
|
|
12
12
|
* Fixed protected-endpoint identifiers owned by ml-wasm-kit.
|
|
@@ -295,6 +295,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
295
295
|
let pendingDeliveryEvent = null;
|
|
296
296
|
let visibilityGeneration = 0;
|
|
297
297
|
let hostStream = null;
|
|
298
|
+
let audioStream = null;
|
|
298
299
|
let resourcesReleased = false;
|
|
299
300
|
let cycleTransferred = false;
|
|
300
301
|
let commandQueue = Promise.resolve();
|
|
@@ -343,6 +344,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
};
|
|
347
|
+
const withMic = (videoStream) => withAudioTracks(videoStream, audioStream);
|
|
346
348
|
const releaseResources = () => {
|
|
347
349
|
if (resourcesReleased) return;
|
|
348
350
|
resourcesReleased = true;
|
|
@@ -363,6 +365,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
363
365
|
finalizeDeferred = false;
|
|
364
366
|
stopTracks(hostStream);
|
|
365
367
|
hostStream = null;
|
|
368
|
+
stopTracks(audioStream);
|
|
369
|
+
audioStream = null;
|
|
366
370
|
if (cycleTransferred) input.cycleOwnership.releaseByAttempt();
|
|
367
371
|
else input.cycleOwnership.releaseByController();
|
|
368
372
|
};
|
|
@@ -451,8 +455,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
451
455
|
onFirstFrame: () => {
|
|
452
456
|
startupTiming.firstFrameMs ??= Math.max(0, now() - cameraStepStartedAt);
|
|
453
457
|
},
|
|
454
|
-
onCameraReady: (
|
|
455
|
-
stopTracks(
|
|
458
|
+
onCameraReady: (claimedAudio) => {
|
|
459
|
+
stopTracks(claimedAudio);
|
|
456
460
|
step.outcome ??= { ready: true };
|
|
457
461
|
},
|
|
458
462
|
onCameraFailed: (error) => {
|
|
@@ -484,10 +488,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
484
488
|
await input.configureWorkflow();
|
|
485
489
|
startupTiming.configureMs = Math.max(0, now() - configureStartedAt);
|
|
486
490
|
if (!active) return;
|
|
491
|
+
if (input.recordAudio) try {
|
|
492
|
+
const mic = await requestCameraAccess({ audio: true });
|
|
493
|
+
if (!active) {
|
|
494
|
+
stopTracks(mic);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
audioStream = mic;
|
|
498
|
+
} catch {}
|
|
487
499
|
recorderOperationInFlight = true;
|
|
488
500
|
const recorderStartedAt = now();
|
|
489
501
|
try {
|
|
490
|
-
await input.recorder.start(displayStream);
|
|
502
|
+
await input.recorder.start(withMic(displayStream));
|
|
491
503
|
recorderStarted = input.recorder.mode !== "none";
|
|
492
504
|
} catch {
|
|
493
505
|
try {
|
|
@@ -610,7 +622,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
610
622
|
}
|
|
611
623
|
try {
|
|
612
624
|
recorderOperationInFlight = true;
|
|
613
|
-
await input.recorder.resumeAfterPoc(displayStream);
|
|
625
|
+
await input.recorder.resumeAfterPoc(withMic(displayStream));
|
|
614
626
|
recorderResumedAfterPoc = true;
|
|
615
627
|
postPocDisplayStream = displayStream;
|
|
616
628
|
} catch {
|
|
@@ -793,7 +805,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
793
805
|
}
|
|
794
806
|
recorderOperationInFlight = true;
|
|
795
807
|
try {
|
|
796
|
-
await input.recorder.resumeFromBackground(resumedStream);
|
|
808
|
+
await input.recorder.resumeFromBackground(withMic(resumedStream));
|
|
797
809
|
if (!active) return;
|
|
798
810
|
if (receivedVisibilityGeneration !== visibilityGeneration) {
|
|
799
811
|
recorderOperationInFlight = false;
|
package/dist/device.d.ts
CHANGED
|
@@ -37,13 +37,13 @@ declare function isApplePlatform(): boolean;
|
|
|
37
37
|
* Whether capture/WASM are known to work in the current browser.
|
|
38
38
|
*
|
|
39
39
|
* Native Android and iOS WebViews are supported; third-party in-app browsers
|
|
40
|
-
* are not, on either platform. Outside a WebView,
|
|
41
|
-
* every platform and Safari is supported on Apple platforms.
|
|
40
|
+
* are not, on either platform. Outside a WebView, Chrome, Brave, and Edge are
|
|
41
|
+
* supported on every platform and Safari is supported on Apple platforms.
|
|
42
42
|
*
|
|
43
43
|
* The rejections run first, because a browser that is unsupported on its own is
|
|
44
44
|
* still unsupported when it hosts the page as a WebView (ENG-51674).
|
|
45
45
|
*
|
|
46
|
-
* Identity comes from the user agent, plus `navigator.
|
|
46
|
+
* Identity comes from the user agent, plus `navigator.island`
|
|
47
47
|
* and Client Hint brands where available. `navigator.island` is load-bearing:
|
|
48
48
|
* Island can be configured (or itself strip) the "Island Browser" UA token and
|
|
49
49
|
* still report Chrome-only Client Hint brands, so the UA and brands alone are
|
package/dist/device.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as isIOSWebView, c as isIslandBrowser, f as isTabletWithoutAndroid, i as isIOS, n as isAndroidWebView, o as isIPad } from "./platform-GIg4uPWe.esm.js";
|
|
2
2
|
import { n as getUserAgentBrands, t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
3
3
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
4
4
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
5
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
6
6
|
//#region src/internal/device/browserSupportClassification.ts
|
|
7
7
|
/**
|
|
8
8
|
* Third-party in-app browsers. These are real WebViews — `isAndroidWebView` and
|
|
@@ -13,19 +13,19 @@ const IN_APP_BROWSER_TOKEN = /\b(?:FBAN|FBAV|FB_IAB|FB4A|Instagram|LinkedInApp|T
|
|
|
13
13
|
/**
|
|
14
14
|
* Client Hint brands for the Chromium builds that are supported. `Chromium`
|
|
15
15
|
* covers vanilla and automation builds, which do not carry the Google Chrome
|
|
16
|
-
* brand.
|
|
17
|
-
* rejected, rather than being supported until someone denylists it.
|
|
16
|
+
* brand. Forks reporting no supported brand are rejected.
|
|
18
17
|
*/
|
|
19
|
-
const SUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
18
|
+
const SUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
19
|
+
"Google Chrome",
|
|
20
|
+
"Chromium",
|
|
21
|
+
"Brave",
|
|
22
|
+
"Microsoft Edge"
|
|
23
|
+
]);
|
|
20
24
|
/**
|
|
21
25
|
* Forks that report a Chrome-compatible UA *and* claim a supported brand. A
|
|
22
26
|
* second guard on top of the allowlist, not a substitute for it.
|
|
23
27
|
*/
|
|
24
|
-
const UNSUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
25
|
-
"Brave",
|
|
26
|
-
"Microsoft Edge",
|
|
27
|
-
"Opera"
|
|
28
|
-
]);
|
|
28
|
+
const UNSUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set(["Opera"]);
|
|
29
29
|
/** iOS/iPadOS/macOS — the only platforms where Safari is a supported option. */
|
|
30
30
|
function isApplePlatform() {
|
|
31
31
|
const userAgent = getUserAgent();
|
|
@@ -35,13 +35,13 @@ function isApplePlatform() {
|
|
|
35
35
|
* Whether capture/WASM are known to work in the current browser.
|
|
36
36
|
*
|
|
37
37
|
* Native Android and iOS WebViews are supported; third-party in-app browsers
|
|
38
|
-
* are not, on either platform. Outside a WebView,
|
|
39
|
-
* every platform and Safari is supported on Apple platforms.
|
|
38
|
+
* are not, on either platform. Outside a WebView, Chrome, Brave, and Edge are
|
|
39
|
+
* supported on every platform and Safari is supported on Apple platforms.
|
|
40
40
|
*
|
|
41
41
|
* The rejections run first, because a browser that is unsupported on its own is
|
|
42
42
|
* still unsupported when it hosts the page as a WebView (ENG-51674).
|
|
43
43
|
*
|
|
44
|
-
* Identity comes from the user agent, plus `navigator.
|
|
44
|
+
* Identity comes from the user agent, plus `navigator.island`
|
|
45
45
|
* and Client Hint brands where available. `navigator.island` is load-bearing:
|
|
46
46
|
* Island can be configured (or itself strip) the "Island Browser" UA token and
|
|
47
47
|
* still report Chrome-only Client Hint brands, so the UA and brands alone are
|
|
@@ -51,11 +51,11 @@ function isApplePlatform() {
|
|
|
51
51
|
*/
|
|
52
52
|
function isSupportedBrowser() {
|
|
53
53
|
const userAgent = getUserAgent();
|
|
54
|
-
if (
|
|
54
|
+
if (isIslandBrowser() || IN_APP_BROWSER_TOKEN.test(userAgent)) return false;
|
|
55
55
|
if (isAndroidWebView(userAgent) || isIOSWebView(userAgent)) return true;
|
|
56
56
|
const browser = getBrowser();
|
|
57
57
|
if (browser === "safari") return isApplePlatform();
|
|
58
|
-
if (browser !== "chrome") return false;
|
|
58
|
+
if (browser !== "chrome" && browser !== "edge") return false;
|
|
59
59
|
const brands = getUserAgentBrands();
|
|
60
60
|
if (brands === void 0) return true;
|
|
61
61
|
return brands.some((brand) => SUPPORTED_CHROMIUM_BRANDS.has(brand)) && !brands.some((brand) => UNSUPPORTED_CHROMIUM_BRANDS.has(brand));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-CaVUb1DL.js";
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-BkaPpoKy.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-jtQHasPA.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-5I3lKDVW.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
|
+
import { i as SignatureMethod, n as SignatureDocument, r as SignatureDocumentFormat, t as DocumentSignatureConfig } from "./types-BNkzXOXE.js";
|
|
5
|
+
//#region src/modules/document-signature/documentSignatureStateMachine.d.ts
|
|
6
|
+
type DocumentSignatureErrorCode = 'NO_DOCUMENTS' | 'LOAD_FAILED';
|
|
7
|
+
declare const documentSignatureMachine: any;
|
|
8
|
+
type DocumentSignatureMachine = typeof documentSignatureMachine;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/document-signature/documentSignatureActor.d.ts
|
|
11
|
+
type CreateDocumentSignatureActorOptions = {
|
|
12
|
+
config: DocumentSignatureConfig;
|
|
13
|
+
};
|
|
14
|
+
type DocumentSignatureActor = ActorRefFrom<DocumentSignatureMachine>;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/modules/document-signature/documentSignatureManager.d.ts
|
|
17
|
+
/** Fields shared by every screen that shows the documents. */
|
|
18
|
+
type DocumentSignatureReadingFields = {
|
|
19
|
+
title: string | undefined;
|
|
20
|
+
subtitle: string | undefined;
|
|
21
|
+
consentText: string | undefined;
|
|
22
|
+
documents: SignatureDocument[];
|
|
23
|
+
/** Documents the user has scrolled to the end, by id. */
|
|
24
|
+
reachedEndIds: string[];
|
|
25
|
+
/** True when every document has been scrolled to its end. */
|
|
26
|
+
allRead: boolean;
|
|
27
|
+
/** True when the Sign button is enabled. */
|
|
28
|
+
canSign: boolean;
|
|
29
|
+
};
|
|
30
|
+
type DocumentSignatureSheetFields = {
|
|
31
|
+
method: SignatureMethod;
|
|
32
|
+
typedName: string;
|
|
33
|
+
maxTypedNameLength: number;
|
|
34
|
+
canSubmit: boolean;
|
|
35
|
+
};
|
|
36
|
+
type DocumentSignatureState = {
|
|
37
|
+
status: 'idle';
|
|
38
|
+
} | {
|
|
39
|
+
status: 'loading';
|
|
40
|
+
} | ({
|
|
41
|
+
status: 'reading';
|
|
42
|
+
} & DocumentSignatureReadingFields) | ({
|
|
43
|
+
status: 'signing';
|
|
44
|
+
} & DocumentSignatureReadingFields & DocumentSignatureSheetFields) | ({
|
|
45
|
+
status: 'submitting';
|
|
46
|
+
} & DocumentSignatureReadingFields & DocumentSignatureSheetFields) | {
|
|
47
|
+
status: 'signed';
|
|
48
|
+
documents: SignatureDocument[];
|
|
49
|
+
/** True when the screen shows download links and waits for `continue()`. */
|
|
50
|
+
hasDownloads: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
status: 'signFailed';
|
|
53
|
+
} | {
|
|
54
|
+
status: 'finished';
|
|
55
|
+
} | {
|
|
56
|
+
status: 'error';
|
|
57
|
+
error: DocumentSignatureErrorCode;
|
|
58
|
+
};
|
|
59
|
+
declare function createDocumentSignatureManager(options: CreateDocumentSignatureActorOptions): Manager<DocumentSignatureState> & {
|
|
60
|
+
/** Loads the session's documents. */
|
|
61
|
+
load(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Reports that a document's end is on screen. Repeated calls are ignored.
|
|
64
|
+
* Pass `scrolled: true` when the user scrolled there: then reaching the last
|
|
65
|
+
* end opens the sign sheet.
|
|
66
|
+
*/
|
|
67
|
+
reachedEnd(documentId: string, scrolled?: boolean): void;
|
|
68
|
+
/** Opens the sign sheet. Ignored until `canSign` is true. */
|
|
69
|
+
openSign(): void;
|
|
70
|
+
/** Closes the sign sheet without signing. */
|
|
71
|
+
closeSign(): void;
|
|
72
|
+
/** Switches between drawing and typing the name. */
|
|
73
|
+
selectMethod(method: SignatureMethod): void;
|
|
74
|
+
/** Reports the total stroke length, in CSS pixels, of the drawn signature. */
|
|
75
|
+
setDrawing(inkLength: number): void;
|
|
76
|
+
/** Updates the typed name. */
|
|
77
|
+
setTypedName(typedName: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* Signs every document. For a drawn signature, pass the PNG as base64
|
|
80
|
+
* without the `data:` prefix. For a typed name, call it without arguments.
|
|
81
|
+
*/
|
|
82
|
+
submit(signatureBase64?: string): void;
|
|
83
|
+
/** After a failed sign or a failed load, loads the documents again. */
|
|
84
|
+
retry(): void;
|
|
85
|
+
/** Leaves the signed screen and finishes the module. Only needed when it shows download links. */
|
|
86
|
+
continue(): void;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Creates a Document Signature manager from a pre-built actor.
|
|
90
|
+
* Use it when you override the machine with `.provide()`.
|
|
91
|
+
*/
|
|
92
|
+
declare function createDocumentSignatureManagerFromActor(actor: DocumentSignatureActor): Manager<DocumentSignatureState> & {
|
|
93
|
+
/** Loads the session's documents. */
|
|
94
|
+
load(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Reports that a document's end is on screen. Repeated calls are ignored.
|
|
97
|
+
* Pass `scrolled: true` when the user scrolled there: then reaching the last
|
|
98
|
+
* end opens the sign sheet.
|
|
99
|
+
*/
|
|
100
|
+
reachedEnd(documentId: string, scrolled?: boolean): void;
|
|
101
|
+
/** Opens the sign sheet. Ignored until `canSign` is true. */
|
|
102
|
+
openSign(): void;
|
|
103
|
+
/** Closes the sign sheet without signing. */
|
|
104
|
+
closeSign(): void;
|
|
105
|
+
/** Switches between drawing and typing the name. */
|
|
106
|
+
selectMethod(method: SignatureMethod): void;
|
|
107
|
+
/** Reports the total stroke length, in CSS pixels, of the drawn signature. */
|
|
108
|
+
setDrawing(inkLength: number): void;
|
|
109
|
+
/** Updates the typed name. */
|
|
110
|
+
setTypedName(typedName: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* Signs every document. For a drawn signature, pass the PNG as base64
|
|
113
|
+
* without the `data:` prefix. For a typed name, call it without arguments.
|
|
114
|
+
*/
|
|
115
|
+
submit(signatureBase64?: string): void;
|
|
116
|
+
/** After a failed sign or a failed load, loads the documents again. */
|
|
117
|
+
retry(): void;
|
|
118
|
+
/** Leaves the signed screen and finishes the module. Only needed when it shows download links. */
|
|
119
|
+
continue(): void;
|
|
120
|
+
};
|
|
121
|
+
type DocumentSignatureManager = ReturnType<typeof createDocumentSignatureManager>;
|
|
122
|
+
//#endregion
|
|
123
|
+
export { type DocumentSignatureActor, type DocumentSignatureConfig, type DocumentSignatureErrorCode, type DocumentSignatureManager, type DocumentSignatureReadingFields, type DocumentSignatureSheetFields, type DocumentSignatureState, type SignatureDocument, type SignatureDocumentFormat, type SignatureMethod, createDocumentSignatureManager, createDocumentSignatureManagerFromActor, documentSignatureMachine };
|