@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
package/dist/kyb-checks.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as KybChecksSection, c as KybFieldValue, d as KybText, f as KybUnsupportedModule, i as KybChecksResult, l as KybFieldValues, n as KybChecksConfig, o as KybFieldDef, p as KybValidationRule, r as KybChecksErrorKind, s as KybFieldErrors, t as KybCheckModuleKey, u as KybFormLevelRule } from "./types-CTaL0XJz.js";
|
|
2
|
-
import { a as KybChecksLoadingState, c as KybChecksState, i as KybChecksFormState, l as KybChecksSubmittingState, n as KybChecksErrorState, o as KybChecksManager, p as kybChecksMachine, r as KybChecksFinishedState, s as KybChecksMisconfiguredState, t as KybChecksClosedState, u as createKybChecksManager } from "./kybChecksManager-
|
|
2
|
+
import { a as KybChecksLoadingState, c as KybChecksState, i as KybChecksFormState, l as KybChecksSubmittingState, n as KybChecksErrorState, o as KybChecksManager, p as kybChecksMachine, r as KybChecksFinishedState, s as KybChecksMisconfiguredState, t as KybChecksClosedState, u as createKybChecksManager } from "./kybChecksManager-B7Di9auB.js";
|
|
3
3
|
export { type KybCheckModuleKey, type KybChecksClosedState, type KybChecksConfig, type KybChecksErrorKind, type KybChecksErrorState, type KybChecksFinishedState, type KybChecksFormState, type KybChecksLoadingState, type KybChecksManager, type KybChecksMisconfiguredState, type KybChecksResult, type KybChecksSection, type KybChecksState, type KybChecksSubmittingState, type KybFieldDef, type KybFieldErrors, type KybFieldValue, type KybFieldValues, type KybFormLevelRule, type KybText, type KybUnsupportedModule, type KybValidationRule, createKybChecksManager, kybChecksMachine };
|
package/dist/kyb-checks.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
2
|
-
import { t as createKybChecksManager } from "./kybChecksManager-
|
|
1
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-BARZh9GN.esm.js";
|
|
2
|
+
import { t as createKybChecksManager } from "./kybChecksManager-D-mVF14T.esm.js";
|
|
3
3
|
export { createKybChecksManager, kybChecksMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { a as KybChecksSection, c as KybFieldValue, d as KybText, f as KybUnsupportedModule, i as KybChecksResult, l as KybFieldValues, n as KybChecksConfig, r as KybChecksErrorKind, s as KybFieldErrors } from "./types-CTaL0XJz.js";
|
|
5
5
|
//#region src/modules/kyb-checks/kybChecksStateMachine.d.ts
|
|
6
6
|
declare const kybChecksMachine: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-BARZh9GN.esm.js";
|
|
3
4
|
//#region src/modules/kyb-checks/kybChecksActor.ts
|
|
4
5
|
/** Creates and starts a KYB Checks actor, idle until `LOAD`. */
|
|
5
6
|
function createKybChecksActor(options = {}) {
|
package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
|
+
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-BDuL1wTs.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
|
-
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-
|
|
8
|
-
import {
|
|
7
|
+
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
8
|
+
import { n as hasAllowedCharacters, t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
9
9
|
function isSupportedSchema(form) {
|
|
10
10
|
return String(form.schemaVersion).split(".")[0] === "1";
|
|
11
11
|
}
|
|
@@ -61,7 +61,8 @@ const KYB_CHECKS_SUPPORTED_IDS = {
|
|
|
61
61
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired"]),
|
|
62
62
|
optionLists: /* @__PURE__ */ new Set(["US_STATES"]),
|
|
63
63
|
conditions: /* @__PURE__ */ new Set(),
|
|
64
|
-
prefillSources: /* @__PURE__ */ new Set()
|
|
64
|
+
prefillSources: /* @__PURE__ */ new Set(),
|
|
65
|
+
flags: /* @__PURE__ */ new Set(["payload.omitWhenEmpty"])
|
|
65
66
|
};
|
|
66
67
|
/** A served regex of the one shape `allowedCharacters` can express: `^[…]{1,n}$` or `^[…]+$`. */
|
|
67
68
|
const CHARACTER_CLASS_REGEX = /^\^\[([^\]]+)\](?:\{[01],(\d+)\}|\+)\$$/;
|
|
@@ -464,12 +465,10 @@ function buildSubmitBody(submit, values) {
|
|
|
464
465
|
*/
|
|
465
466
|
async function fetchKybForm(country, signal) {
|
|
466
467
|
try {
|
|
467
|
-
|
|
468
|
+
return (await api.get(endpoints.kybForm, {
|
|
468
469
|
query: { country },
|
|
469
470
|
signal
|
|
470
|
-
});
|
|
471
|
-
if (!res.ok) throw res;
|
|
472
|
-
return res.data;
|
|
471
|
+
})).data;
|
|
473
472
|
} catch (error) {
|
|
474
473
|
throw toIncodeApiError(endpoints.kybForm, error);
|
|
475
474
|
}
|
|
@@ -480,9 +479,7 @@ async function fetchKybForm(country, signal) {
|
|
|
480
479
|
*/
|
|
481
480
|
async function submitKyb(body, signal) {
|
|
482
481
|
try {
|
|
483
|
-
|
|
484
|
-
if (!res.ok) throw res;
|
|
485
|
-
return res.data;
|
|
482
|
+
return (await api.post(endpoints.kybSubmit, body, { signal })).data;
|
|
486
483
|
} catch (error) {
|
|
487
484
|
throw toIncodeApiError(endpoints.kybSubmit, error);
|
|
488
485
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { r as MandatoryConsentConfig } from "./types-BkWUNheX.js";
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-D6tBmPDy.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
2
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DpK7fg3E.esm.js";
|
|
2
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-CKzzbbRe.esm.js";
|
|
3
3
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js}
RENAMED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DpK7fg3E.esm.js";
|
|
4
6
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
5
7
|
function createMandatoryConsentActor(options) {
|
|
6
8
|
return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
|
package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
5
|
+
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-BkWUNheX.js";
|
|
5
6
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
|
|
6
7
|
type MandatoryConsentContext = {
|
|
7
8
|
config: MandatoryConsentConfig;
|
|
@@ -65,14 +66,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
65
66
|
type: "setLoadError";
|
|
66
67
|
params: NonReducibleUnknown;
|
|
67
68
|
};
|
|
68
|
-
resetContext: {
|
|
69
|
-
type: "resetContext";
|
|
70
|
-
params: NonReducibleUnknown;
|
|
71
|
-
};
|
|
72
69
|
toggleSigned: {
|
|
73
70
|
type: "toggleSigned";
|
|
74
71
|
params: NonReducibleUnknown;
|
|
75
72
|
};
|
|
73
|
+
resetContext: {
|
|
74
|
+
type: "resetContext";
|
|
75
|
+
params: NonReducibleUnknown;
|
|
76
|
+
};
|
|
76
77
|
}>, Values<{
|
|
77
78
|
canSubmit: {
|
|
78
79
|
type: "canSubmit";
|
|
@@ -82,7 +83,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
82
83
|
type: "hasConsent";
|
|
83
84
|
params: unknown;
|
|
84
85
|
};
|
|
85
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
86
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "loading" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
86
87
|
readonly id: "mandatoryConsent";
|
|
87
88
|
readonly initial: "idle";
|
|
88
89
|
readonly context: ({ input }: {
|
|
@@ -1,22 +1,19 @@
|
|
|
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/mandatory-consent/mandatoryConsentServices.ts
|
|
5
5
|
async function fetchMandatoryConsent(regulationType, language, type, signal) {
|
|
6
|
-
|
|
6
|
+
return (await api.get(endpoints.getConsents, {
|
|
7
7
|
signal,
|
|
8
8
|
query: {
|
|
9
9
|
type,
|
|
10
10
|
language: language ?? "en",
|
|
11
11
|
regulationType
|
|
12
12
|
}
|
|
13
|
-
});
|
|
14
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getConsents} failed: ${res.status} ${res.statusText}`);
|
|
15
|
-
return res.data;
|
|
13
|
+
})).data;
|
|
16
14
|
}
|
|
17
15
|
async function submitMandatoryConsent(params, signal) {
|
|
18
|
-
|
|
19
|
-
if (!res.ok) throw new Error(`POST ${endpoints.submitMlConsent} failed: ${res.status} ${res.statusText}`);
|
|
16
|
+
await api.post(endpoints.submitMlConsent, params, { signal });
|
|
20
17
|
}
|
|
21
18
|
//#endregion
|
|
22
19
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as isIOS } from "./platform-GIg4uPWe.esm.js";
|
|
2
2
|
//#region ../infra/src/media/mediaRecorderOptions.ts
|
|
3
3
|
/**
|
|
4
4
|
* Picks a `MediaRecorder` mime type the current browser actually supports.
|
|
@@ -23,11 +23,28 @@ function getMultipartRecorderMimeType() {
|
|
|
23
23
|
return getSupportedMediaRecorderMimeType();
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
26
|
+
* Mime type for a recording of the camera track itself (the Deepsight video
|
|
27
|
+
* liveness clip, `LocalRecordingProvider`). Such a track keeps the camera's
|
|
28
|
+
* sensor orientation, so the container has to carry the rotation. WebM has no
|
|
29
|
+
* rotation field, and Safari on iOS 18.4 and 18.5 writes the sensor frames
|
|
30
|
+
* into WebM without turning them (WebKit bug 290223), so the face lies
|
|
31
|
+
* sideways and Deepsight finds none. MP4 carries the rotation matrix, so iOS
|
|
32
|
+
* records MP4 whenever it can; other platforms keep the WebM-first order.
|
|
33
|
+
*
|
|
34
|
+
* The multipart recordings keep WebM: they record the compositor's canvas,
|
|
35
|
+
* whose pixels are already drawn upright.
|
|
36
|
+
*/
|
|
37
|
+
function getCameraRecorderMimeType() {
|
|
38
|
+
if (isIOS() && MediaRecorder.isTypeSupported("video/mp4")) return "video/mp4";
|
|
39
|
+
return getSupportedMediaRecorderMimeType();
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* `MediaRecorder` options for a recording of the camera track — a higher
|
|
43
|
+
* bitrate on iOS, lower elsewhere — paired with
|
|
44
|
+
* {@link getCameraRecorderMimeType}.
|
|
28
45
|
*/
|
|
29
46
|
function getAdaptiveMediaRecorderOptions() {
|
|
30
|
-
const mimeType =
|
|
47
|
+
const mimeType = getCameraRecorderMimeType();
|
|
31
48
|
if (isIOS()) return {
|
|
32
49
|
mimeType,
|
|
33
50
|
videoBitsPerSecond: 1e6,
|
package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as BrowserNetworkStatusProvider } from "./BrowserNetworkStatusProvider-BrDXBEDd.esm.js";
|
|
5
|
-
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-
|
|
5
|
+
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BtMQZEbg.esm.js";
|
|
6
6
|
//#region src/internal/recordings/videoSelfieUploadService.ts
|
|
7
7
|
/**
|
|
8
8
|
* Opens a scoped multipart video upload session. Idempotent server-side: if
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { s as isWasmMotionPrimedForModule } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
2
2
|
//#region src/internal/permissions/permissionGuards.ts
|
|
3
3
|
function resolveStoredPermissionResult(fromEvent, fromContext) {
|
|
4
4
|
if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { n as isAndroidWebView } from "./platform-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
2
|
+
import { n as isAndroidWebView } from "./platform-GIg4uPWe.esm.js";
|
|
3
3
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
4
|
-
import { a as stopCameraStream,
|
|
4
|
+
import { a as stopCameraStream, l as isCameraGrantedInDocument, r as requestCameraAccess, s as clearCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
5
5
|
//#region ../infra/src/media/permissions.ts
|
|
6
6
|
async function queryPermission(name) {
|
|
7
7
|
try {
|
|
@@ -160,7 +160,7 @@ async function requestPermission(options = {}) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async function invokeRequestPermissionActor(input) {
|
|
163
|
-
if (!input.requestMotionPermission) return requestPermission();
|
|
163
|
+
if (!input.requestMotionPermission) return requestPermission({ requestAudio: input.requestAudio });
|
|
164
164
|
if (input.permissionResult === "granted") {
|
|
165
165
|
if (!isWasmMotionPrimedForModule()) {
|
|
166
166
|
const motionSensor = new MotionSensorProvider();
|
|
@@ -169,7 +169,10 @@ async function invokeRequestPermissionActor(input) {
|
|
|
169
169
|
}
|
|
170
170
|
return "granted";
|
|
171
171
|
}
|
|
172
|
-
return requestPermission({
|
|
172
|
+
return requestPermission({
|
|
173
|
+
requestMotion: true,
|
|
174
|
+
requestAudio: input.requestAudio
|
|
175
|
+
});
|
|
173
176
|
}
|
|
174
177
|
//#endregion
|
|
175
178
|
export { requestPermission as a, resetWasmMotionPrimedForModule as c, requestMotionPermission as i, queryCameraPermission as l, invokeRequestPermissionActor as n, requiresMotionPermissionUserGesture as o, primeMotionFromUserGestureIfNeeded as r, isWasmMotionPrimedForModule as s, checkPermission as t, queryPermission as u };
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-VO1HEoUZ.js";
|
|
2
2
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
2
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import { t as phoneMachine } from "./phoneStateMachine-CGLBgJJR.esm.js";
|
|
2
|
+
import { t as createPhoneManager } from "./phoneManager-D8-l6-0y.esm.js";
|
|
3
3
|
export { createPhoneManager, phoneMachine };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
2
|
+
//#region src/internal/forms/checks/allowedCharacters.ts
|
|
3
|
+
const CLASS_PATTERNS = {
|
|
4
|
+
letter: "\\p{L}\\p{M}",
|
|
5
|
+
digit: "0-9",
|
|
6
|
+
space: " "
|
|
7
|
+
};
|
|
8
|
+
const escapeForClass = (chars) => chars.replace(/[\\\]^-]/g, "\\$&");
|
|
9
|
+
/**
|
|
10
|
+
* `allowedCharacters`: only characters from `classes`, plus any in `extra`.
|
|
11
|
+
* With `ascii`, `letter` means A-Z in either case instead of any script.
|
|
12
|
+
*/
|
|
13
|
+
function hasAllowedCharacters(value, classes, extra = "", ascii = false) {
|
|
14
|
+
const set = classes.map((c) => ascii && c === "letter" ? "A-Za-z" : CLASS_PATTERNS[c]).join("");
|
|
15
|
+
return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/shared/phoneFormat.ts
|
|
19
|
+
/**
|
|
20
|
+
* The phone in E.164, or the value as typed when the rules are not loaded
|
|
21
|
+
* (`loadPhoneValidation()`) or the number is not valid.
|
|
22
|
+
*/
|
|
23
|
+
function formatPhoneE164(phone, country) {
|
|
24
|
+
return getPhoneValidation()?.formatE164(phone, country) ?? phone;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { hasAllowedCharacters as n, formatPhoneE164 as t };
|
|
@@ -1,8 +1,10 @@
|
|
|
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 { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
6
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
7
|
+
import { t as phoneMachine } from "./phoneStateMachine-CGLBgJJR.esm.js";
|
|
6
8
|
//#region src/modules/phone/phoneActor.ts
|
|
7
9
|
function createPhoneActor(options) {
|
|
8
10
|
return createActor(phoneMachine, { input: { config: options.config } }).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
|
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
5
5
|
//#region ../infra/src/capabilities/IPhoneValidationCapability.d.ts
|
|
6
6
|
type IPhoneValidationCapability = {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
//#region src/modules/phone/phoneServices.ts
|
|
3
3
|
function getPhoneServerFailureReason(error, invalidStatus) {
|
|
4
4
|
if (error.status === invalidStatus) return "invalidPhone";
|
|
5
5
|
return "serverError";
|
|
6
6
|
}
|
|
7
7
|
async function fetchPhone(signal) {
|
|
8
|
-
|
|
9
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getPhone} failed: ${res.status} ${res.statusText}`);
|
|
10
|
-
return res.data;
|
|
8
|
+
return (await api.get(endpoints.getPhone, { signal })).data;
|
|
11
9
|
}
|
|
12
10
|
async function requestStartInfo(signal) {
|
|
13
|
-
|
|
14
|
-
if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
|
|
15
|
-
return res.data;
|
|
11
|
+
return (await api.get(endpoints.startInfo, { signal })).data;
|
|
16
12
|
}
|
|
17
13
|
let prefetchedStartInfo;
|
|
18
14
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
|
-
import { i as fetchStartInfo, n as addPhoneInstantVerify, o as sendOtp, r as fetchPhone, s as verifyOtp, t as addPhone } from "./phoneServices-
|
|
4
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
6
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
3
|
+
import { i as fetchStartInfo, n as addPhoneInstantVerify, o as sendOtp, r as fetchPhone, s as verifyOtp, t as addPhone } from "./phoneServices-C9lFIuCM.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
+
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
7
7
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
8
8
|
//#region src/modules/phone/phoneStateMachine.ts
|
|
9
9
|
const RESEND_TIMER_SECONDS = 30;
|
|
@@ -92,9 +92,6 @@ function isMacOsSafari(userAgent) {
|
|
|
92
92
|
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
93
93
|
return /Mac OS/.test(ua) && !isIOS(ua) && isSafari(ua);
|
|
94
94
|
}
|
|
95
|
-
function isBraveBrowser() {
|
|
96
|
-
return typeof navigator !== "undefined" && "brave" in navigator;
|
|
97
|
-
}
|
|
98
95
|
function isIslandBrowser() {
|
|
99
96
|
return typeof navigator !== "undefined" && "island" in navigator;
|
|
100
97
|
}
|
|
@@ -142,4 +139,4 @@ function isIPhone14OrHigher() {
|
|
|
142
139
|
return IPHONE_14_PLUS_DIMENSIONS.some((dims) => dims.outerHeight === outerHeight && dims.outerWidth === outerWidth || dims.innerHeight === innerHeight && dims.innerWidth === innerWidth);
|
|
143
140
|
}
|
|
144
141
|
//#endregion
|
|
145
|
-
export {
|
|
142
|
+
export { isIOSWebView as a, isIslandBrowser as c, isSamsungDevice as d, isTabletWithoutAndroid as f, isIOS as i, isMacOsSafari as l, isAndroidWebView as n, isIPad as o, isDesktop as r, isIPhone14OrHigher as s, isAndroid as t, isSafari as u };
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, f as NAMIRIAL_QES_CONSENT_KEYS, h as QE_CONSENT_KEYS, i as ConsentKey, m as NamirialQesConsentKey, p as NAMIRIAL_QES_PROVIDER_CODE, r as ConsentChecks, s as ElectronicSignatureDocument, u as ElectronicSignatureProviderTerms } from "./types-D0gekt4U.js";
|
|
3
|
-
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
3
|
+
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-5tYz-a4o.js";
|
|
4
4
|
import "./electronic-signature.js";
|
|
5
5
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
6
|
type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BHnxFx7u.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
|
-
import { r as createRecordingCompositor } from "./CameraCompositor-
|
|
4
|
-
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-
|
|
5
|
-
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-
|
|
6
|
-
import { t as MultipartRecordingService } from "./multipartRecordingService-
|
|
3
|
+
import { r as createRecordingCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
4
|
+
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
5
|
+
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-BO7urYwT.esm.js";
|
|
6
|
+
import { t as MultipartRecordingService } from "./multipartRecordingService-CEtaAPz4.esm.js";
|
|
7
7
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
8
8
|
/** A trim that runs longer than this uploads the full recording instead. */
|
|
9
9
|
const TRIM_TIMEOUT_MS = 1e4;
|
|
@@ -335,7 +335,7 @@ var MultipartFaceRecordingService = class {
|
|
|
335
335
|
if (!compositor) return;
|
|
336
336
|
if (this.needsVideoSourceReplacement) {
|
|
337
337
|
const recordingSource = stream.clone();
|
|
338
|
-
|
|
338
|
+
compositor.switchAudio(recordingSource);
|
|
339
339
|
compositor.switchVideo(recordingSource);
|
|
340
340
|
this.needsVideoSourceReplacement = false;
|
|
341
341
|
this.recordingSource = recordingSource;
|
|
@@ -373,6 +373,7 @@ var MultipartFaceRecordingService = class {
|
|
|
373
373
|
for (const track of tracks) try {
|
|
374
374
|
track.stop();
|
|
375
375
|
} catch {}
|
|
376
|
+
if (options.keepAudio) this.compositor?.releaseAudio();
|
|
376
377
|
}
|
|
377
378
|
};
|
|
378
379
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
|
2
|
-
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, t as RedirectToMobileManager } from "./redirectToMobileManager-
|
|
2
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, t as RedirectToMobileManager } from "./redirectToMobileManager-pT6FiPE7.js";
|
|
3
3
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.d.ts
|
|
4
4
|
declare const defaultRedirectToMobileServices: RedirectToMobileServices;
|
|
5
5
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-BCyQFlpn.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-Djb_daci.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
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 BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-BCyQFlpn.esm.js";
|
|
6
8
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
9
|
const POLL_INTERVAL_MS = 5e3;
|
|
8
10
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { n as RedirectToMobileErrorCode, r as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
|
5
5
|
//#region src/modules/redirect-to-mobile/redirectToMobileStateMachine.d.ts
|
|
6
6
|
declare const redirectToMobileMachine: any;
|
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { i as resolveAgainstPageOrigin, r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
|
|
6
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.ts
|
|
7
7
|
async function fetchRedirectUrl(signal) {
|
|
8
|
-
|
|
9
|
-
if (!res.ok) throw new Error(`GET ${endpoints.onboardingUrl} failed: ${res.status} ${res.statusText}`);
|
|
10
|
-
return res.data;
|
|
8
|
+
return (await api.get(endpoints.onboardingUrl, { signal })).data;
|
|
11
9
|
}
|
|
12
10
|
async function fetchOnboardingStatus(signal) {
|
|
13
|
-
|
|
14
|
-
if (!res.ok) throw new Error(`GET ${endpoints.onboardingStatus} failed: ${res.status} ${res.statusText}`);
|
|
15
|
-
return res.data;
|
|
11
|
+
return (await api.get(endpoints.onboardingStatus, { signal })).data;
|
|
16
12
|
}
|
|
17
13
|
async function sendRedirectSms(params, signal) {
|
|
18
|
-
|
|
19
|
-
if (!res.ok) throw new Error(`POST ${endpoints.sendRedirectSms} failed: ${res.status} ${res.statusText}`);
|
|
14
|
+
await api.post(endpoints.sendRedirectSms, params, { signal });
|
|
20
15
|
}
|
|
21
16
|
async function addPhoneForRedirect(phone, signal) {
|
|
22
|
-
|
|
23
|
-
if (!res.ok) throw new Error(`POST ${endpoints.phone} failed: ${res.status} ${res.statusText}`);
|
|
17
|
+
await api.post(endpoints.phone, { phone }, { signal });
|
|
24
18
|
}
|
|
25
19
|
async function refreshQrUuid(onboardingId, signal) {
|
|
26
|
-
|
|
27
|
-
if (!res.ok) throw new Error(`POST ${endpoints.qrRefreshUuid} failed: ${res.status} ${res.statusText}`);
|
|
28
|
-
return res.data;
|
|
20
|
+
return (await api.post(endpoints.qrRefreshUuid, { onboardingId }, { signal })).data;
|
|
29
21
|
}
|
|
30
22
|
async function fetchStartInfo(signal) {
|
|
31
|
-
|
|
32
|
-
if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
|
|
33
|
-
return res.data;
|
|
23
|
+
return (await api.get(endpoints.startInfo, { signal })).data;
|
|
34
24
|
}
|
|
35
25
|
const defaultRedirectToMobileServices = {
|
|
36
26
|
fetchRedirectUrl,
|
|
@@ -3,6 +3,7 @@ const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
|
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/internal/forms/checkSupport.ts
|
|
5
5
|
const GROUP_POLICIES = /* @__PURE__ */ new Set(["hide", "forceShow"]);
|
|
6
|
+
const OMIT_WHEN_EMPTY = "payload.omitWhenEmpty";
|
|
6
7
|
/**
|
|
7
8
|
* Compares `major.minor` vocabulary versions. The compiler's twin is
|
|
8
9
|
* `compareVersions` in `packages/form-definitions/scripts/lib/checks.mjs`;
|
|
@@ -14,10 +15,11 @@ function compareVocabulary(a, b) {
|
|
|
14
15
|
return aMajor - bMajor || aMinor - bMinor;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
|
-
* Whether this build can use a definition. Any id
|
|
18
|
-
* the definition unsupported, so the caller falls
|
|
19
|
-
* definition or current form. Presentation hints
|
|
20
|
-
* never fail: an unknown hint falls back to the
|
|
18
|
+
* Whether this build can use a definition. Any id or versioned flag it
|
|
19
|
+
* doesn't implement makes the definition unsupported, so the caller falls
|
|
20
|
+
* back to its bundled definition or current form. Presentation hints
|
|
21
|
+
* (widget, keyboard, autofill) never fail: an unknown hint falls back to the
|
|
22
|
+
* platform default.
|
|
21
23
|
*/
|
|
22
24
|
function checkSupport(definition, ids) {
|
|
23
25
|
const problems = [];
|
|
@@ -44,6 +46,7 @@ function checkSupport(definition, ids) {
|
|
|
44
46
|
field.rules?.forEach((rule, i) => need("rule", ids.rules, rule.id, `${path}.rules[${i}]`));
|
|
45
47
|
field.input?.format?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.input.format[${i}]`));
|
|
46
48
|
field.payload?.transforms?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.payload.transforms[${i}]`));
|
|
49
|
+
if (field.payload?.omitWhenEmpty === true) need("flag", ids.flags, OMIT_WHEN_EMPTY, `${path}.${OMIT_WHEN_EMPTY}`);
|
|
47
50
|
if (field.optionsRef) need("optionList", ids.optionLists, field.optionsRef, `${path}.optionsRef`);
|
|
48
51
|
if (field.suggestionsRef) need("optionList", ids.optionLists, field.suggestionsRef, `${path}.suggestionsRef`);
|
|
49
52
|
field.requiredWhen?.forEach((condition, i) => {
|