@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10
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/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
- package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
- package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
- package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
- package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
- package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
- package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
- package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
- package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +20 -18
- package/dist/extensibility.esm.js +37 -35
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +33 -18
- package/dist/flow.esm.js +82 -17
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -19
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
- package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
- package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
- package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
- package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-BVSCo0ac.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
- package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
- package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
- package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +378 -0
- package/dist/step-up.esm.js +639 -0
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
- package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
- package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
- package/dist/types-kLsU6Jkt.d.ts +6 -0
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
- package/dist/workflow.d.ts +226 -41
- package/dist/workflow.esm.js +163 -67
- package/package.json +21 -5
- package/dist/addressSearch-41sMcnJk.esm.js +0 -604
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-D9r3zRfY.d.ts +0 -6
package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/field-comparison/fieldComparisonServices.ts
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-
|
|
1
|
+
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-ji0qDaTW.esm.js";
|
|
2
2
|
export { createFiscalQrManager, createFiscalQrManagerFromActor, fiscalQrMachine };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-C7h7oaTE.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
import { a as stopCameraStream } from "./camera-E_Kcre4O.esm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
9
9
|
import "./http.esm.js";
|
|
10
10
|
//#region src/modules/fiscal-qr/fiscalQrConstants.ts
|
package/dist/flow-events.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-
|
|
1
|
+
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-CSPOoqah.js";
|
|
2
2
|
export type { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as WasmPipeline } from "./warmup-
|
|
1
|
+
import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
|
|
2
2
|
import { A as StateMachine, _ as MachineContext, c as AnyEventObject, l as AnyStateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
3
3
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
4
4
|
import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
5
|
-
import { t as EkycConfig } from "./types-
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
7
|
-
import { t as AuthenticationConfig } from "./types-
|
|
8
|
-
import { r as DocumentCaptureConfig } from "./types-
|
|
5
|
+
import { t as EkycConfig } from "./types-DEa3taWc.js";
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-TisHEbBg.js";
|
|
7
|
+
import { t as AuthenticationConfig } from "./types-kLsU6Jkt.js";
|
|
8
|
+
import { r as DocumentCaptureConfig } from "./types-CyNndVAT.js";
|
|
9
9
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
10
|
-
import { t as EkybConfig } from "./types-
|
|
11
|
-
import { u as IdCaptureConfig } from "./types-
|
|
12
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
13
|
-
import { t as IdOcrConfig } from "./types-
|
|
10
|
+
import { t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
11
|
+
import { u as IdCaptureConfig } from "./types-BqlZSoZ-.js";
|
|
12
|
+
import { r as MandatoryConsentConfig } from "./types-P9LzsfRo.js";
|
|
13
|
+
import { t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
14
14
|
import { t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
|
15
15
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
16
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
16
|
+
import { o as FlowEventSubscribable } from "./index-CSPOoqah.js";
|
|
17
17
|
import { n as ModuleRegistry } from "./types-BQA7lRDV.js";
|
|
18
18
|
//#region src/modules/flow/orchestratedFlowStateMachine.d.ts
|
|
19
19
|
type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
|
|
@@ -61,6 +61,19 @@ type OrchestratedFlowEvent = {
|
|
|
61
61
|
[key: string]: unknown;
|
|
62
62
|
};
|
|
63
63
|
//#endregion
|
|
64
|
+
//#region src/modules/flow/dashboardConfig.d.ts
|
|
65
|
+
type DeepPartialValue<T> = T extends Record<string, unknown> ? DeepPartial<T> : T;
|
|
66
|
+
type PreserveArray<T> = T extends readonly unknown[] ? T : DeepPartialValue<T>;
|
|
67
|
+
type DeepPartial<T> = { [K in keyof T]?: PreserveArray<T[K]>; };
|
|
68
|
+
declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPartial<T> | undefined): T;
|
|
69
|
+
/**
|
|
70
|
+
* Partial config per flow module, keyed by the module key of the flow
|
|
71
|
+
* (`ID`, `SECOND_ID`, `SELFIE`, ...). Each entry is merged over the dashboard
|
|
72
|
+
* config of that module. `TUTORIAL_ID` is not a key: the SDK turns that step
|
|
73
|
+
* into `ID` (and `SECOND_ID`) before the merge, so use `ID`.
|
|
74
|
+
*/
|
|
75
|
+
type FlowModulesConfig = { [K in Exclude<keyof FlowModuleConfig, 'TUTORIAL_ID'>]?: DeepPartial<FlowModuleConfig[K]>; };
|
|
76
|
+
//#endregion
|
|
64
77
|
//#region src/modules/flow/orchestratedFlowManager.d.ts
|
|
65
78
|
type OrchestratedFlowHomeScreen = {
|
|
66
79
|
visible: boolean;
|
|
@@ -100,6 +113,8 @@ type OrchestratedFlowReadyState = {
|
|
|
100
113
|
type OrchestratedFlowFinishedState = {
|
|
101
114
|
status: 'finished';
|
|
102
115
|
flow: Flow;
|
|
116
|
+
/** The originating browser observed completion on the linked mobile device. */
|
|
117
|
+
completedOnMobile?: boolean;
|
|
103
118
|
finishStatus: {
|
|
104
119
|
redirectionUrl: string;
|
|
105
120
|
action: 'approved' | 'rejected' | 'none';
|
|
@@ -128,6 +143,11 @@ type CreateOrchestratedFlowActorOptions = {
|
|
|
128
143
|
deferActivation?: OrchestratedFlowInput['deferActivation'];
|
|
129
144
|
/** A getter: the manager can exist before the session that owns the ID. */
|
|
130
145
|
getInterviewId?: () => string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Partial config per module key, merged over the dashboard config of each
|
|
148
|
+
* module when the flow loads. Values the flow sets at runtime still win.
|
|
149
|
+
*/
|
|
150
|
+
modulesConfig?: FlowModulesConfig;
|
|
131
151
|
};
|
|
132
152
|
declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
|
|
133
153
|
/**
|
|
@@ -249,12 +269,6 @@ declare function getNextRequiredWasmPipelines(state: Pick<OrchestratedFlowReadyS
|
|
|
249
269
|
*/
|
|
250
270
|
declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
|
|
251
271
|
//#endregion
|
|
252
|
-
//#region src/modules/flow/dashboardConfig.d.ts
|
|
253
|
-
type DeepPartialValue<T> = T extends Record<string, unknown> ? DeepPartial<T> : T;
|
|
254
|
-
type PreserveArray<T> = T extends readonly unknown[] ? T : DeepPartialValue<T>;
|
|
255
|
-
type DeepPartial<T> = { [K in keyof T]?: PreserveArray<T[K]>; };
|
|
256
|
-
declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPartial<T> | undefined): T;
|
|
257
|
-
//#endregion
|
|
258
272
|
//#region src/modules/flow/flowServices.d.ts
|
|
259
273
|
type GetFlowOptions = {
|
|
260
274
|
isDesktop?: boolean;
|
|
@@ -420,8 +434,9 @@ declare function createFlowManager(options?: CreateFlowActorOptions): Manager<Fl
|
|
|
420
434
|
readonly canPrev: boolean;
|
|
421
435
|
/**
|
|
422
436
|
* Gets the configuration for a specific module by its key.
|
|
437
|
+
* Returns the active occurrence when the current step has that key.
|
|
423
438
|
* Useful for accessing config of modules other than the current one.
|
|
424
|
-
* @param moduleKey - The
|
|
439
|
+
* @param moduleKey - The module key
|
|
425
440
|
* @returns The module configuration or `undefined` if not found or not in `ready` state
|
|
426
441
|
*/
|
|
427
442
|
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
@@ -447,4 +462,4 @@ interface ModuleLoader {
|
|
|
447
462
|
}
|
|
448
463
|
declare function createModuleLoader(registry: ModuleLoaderRegistry): ModuleLoader;
|
|
449
464
|
//#endregion
|
|
450
|
-
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
465
|
+
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowModulesConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { y as addEvent } from "./events-
|
|
2
|
-
import { i as retryAfterReconnect } from "./connectivity-
|
|
3
|
-
import {
|
|
1
|
+
import { y as addEvent } from "./events-C7h7oaTE.esm.js";
|
|
2
|
+
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
3
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, d as resolveFlowModuleConfig, g as mergeDashboardConfig, h as applyModulesConfig, l as loadFlowConfigConverters, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as normalizeFlowModules } from "./flowServices-Ca2vKNt2.esm.js";
|
|
4
4
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import { n as
|
|
7
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
6
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-DvcH16XO.esm.js";
|
|
7
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BmteMhR7.esm.js";
|
|
8
8
|
import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
|
|
9
9
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
10
10
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
@@ -13,6 +13,37 @@ const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
|
13
13
|
states: { finished: { type: "final" } }
|
|
14
14
|
}))();
|
|
15
15
|
//#endregion
|
|
16
|
+
//#region src/modules/flow/flowOcrSteps.ts
|
|
17
|
+
/** Prepare the standard two-ID journey without changing standalone dashboard configuration. */
|
|
18
|
+
function prepareFlowOcrSteps(flow) {
|
|
19
|
+
const modules = flow.flowModules;
|
|
20
|
+
const firstIds = modules.filter((module) => module.key === "ID" || module.key === "TUTORIAL_ID");
|
|
21
|
+
const secondIds = modules.filter((module) => module.key === "SECOND_ID");
|
|
22
|
+
const reviews = modules.filter((module) => module.key === "ID_OCR");
|
|
23
|
+
if (firstIds.length !== 1 || secondIds.length !== 1 || reviews.length !== 1) return flow;
|
|
24
|
+
const [first] = firstIds;
|
|
25
|
+
const [second] = secondIds;
|
|
26
|
+
const [review] = reviews;
|
|
27
|
+
if (review.configuration.ocrDocument !== void 0 || modules.indexOf(first) >= modules.indexOf(second) || modules.indexOf(review) < modules.indexOf(first)) return flow;
|
|
28
|
+
const reviewFor = (ocrDocument) => ({
|
|
29
|
+
...review,
|
|
30
|
+
configuration: {
|
|
31
|
+
...review.configuration,
|
|
32
|
+
ocrDocument,
|
|
33
|
+
secondId: false
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return {
|
|
37
|
+
...flow,
|
|
38
|
+
flowModules: modules.flatMap((module) => {
|
|
39
|
+
if (module === review) return [];
|
|
40
|
+
if (module === first) return [module, reviewFor("first")];
|
|
41
|
+
if (module === second && review.configuration.secondId !== false) return [module, reviewFor("second")];
|
|
42
|
+
return [module];
|
|
43
|
+
})
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
16
47
|
//#region src/modules/flow/flowStateMachine.ts
|
|
17
48
|
/**
|
|
18
49
|
* Flow-level `ds` (Deepsight) lives on the flow, not on the module, so it has
|
|
@@ -47,7 +78,7 @@ const flowMachine = /* @__PURE__ */ (() => setup({
|
|
|
47
78
|
getFlow: context.getFlow
|
|
48
79
|
})),
|
|
49
80
|
setFlowData: assign(({ event }) => {
|
|
50
|
-
const flow = event.output;
|
|
81
|
+
const flow = prepareFlowOcrSteps(event.output);
|
|
51
82
|
return {
|
|
52
83
|
flow,
|
|
53
84
|
steps: (flow.flowModules ?? []).map((m) => m.key),
|
|
@@ -190,7 +221,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
190
221
|
function getModuleConfig(moduleKey) {
|
|
191
222
|
const snapshot = getSnapshot();
|
|
192
223
|
if (!snapshot.matches("ready")) return;
|
|
193
|
-
|
|
224
|
+
const { flow, currentStepIndex } = snapshot.context;
|
|
225
|
+
const activeModule = flow?.flowModules[currentStepIndex];
|
|
226
|
+
return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
194
227
|
}
|
|
195
228
|
function isModuleEnabled(moduleKey) {
|
|
196
229
|
const snapshot = getSnapshot();
|
|
@@ -255,8 +288,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
255
288
|
},
|
|
256
289
|
/**
|
|
257
290
|
* Gets the configuration for a specific module by its key.
|
|
291
|
+
* Returns the active occurrence when the current step has that key.
|
|
258
292
|
* Useful for accessing config of modules other than the current one.
|
|
259
|
-
* @param moduleKey - The
|
|
293
|
+
* @param moduleKey - The module key
|
|
260
294
|
* @returns The module configuration or `undefined` if not found or not in `ready` state
|
|
261
295
|
*/
|
|
262
296
|
getModuleConfig,
|
|
@@ -363,6 +397,7 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
363
397
|
getFinishStatus: context.getFinishStatus,
|
|
364
398
|
enableHome: context.enableHome,
|
|
365
399
|
finishStatus: void 0,
|
|
400
|
+
completedOnMobile: false,
|
|
366
401
|
isHomeContinueLoading,
|
|
367
402
|
deferActivation: context.deferActivation,
|
|
368
403
|
activationResolved: false,
|
|
@@ -412,7 +447,12 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
412
447
|
input: {}
|
|
413
448
|
},
|
|
414
449
|
actors: {
|
|
415
|
-
|
|
450
|
+
resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
|
|
451
|
+
fetchFlow: fromPromise(async ({ input, signal }) => {
|
|
452
|
+
const flow = await retryAfterReconnect(() => input.getFlow(signal), signal);
|
|
453
|
+
await loadFlowConfigConverters(flow);
|
|
454
|
+
return flow;
|
|
455
|
+
}),
|
|
416
456
|
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
|
|
417
457
|
runChildModule,
|
|
418
458
|
resolveActivation: fromPromise(async ({ input, signal }) => {
|
|
@@ -436,7 +476,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
436
476
|
setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
|
|
437
477
|
clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
|
|
438
478
|
setFlowData: assign(({ event }) => {
|
|
439
|
-
const flow = event.output;
|
|
479
|
+
const flow = prepareFlowOcrSteps(event.output);
|
|
440
480
|
const flowModules = flow.flowModules ?? [];
|
|
441
481
|
const firstModule = flowModules[0];
|
|
442
482
|
const config = getModuleConfig(firstModule, flow);
|
|
@@ -450,7 +490,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
450
490
|
};
|
|
451
491
|
}),
|
|
452
492
|
setActivatedFlow: assign(({ context, event }) => {
|
|
453
|
-
const flow = event.output;
|
|
493
|
+
const flow = prepareFlowOcrSteps(event.output);
|
|
454
494
|
const flowModules = flow.flowModules ?? [];
|
|
455
495
|
const steps = flowModules.map((m) => m.key);
|
|
456
496
|
let insertedAt = steps.findIndex((key, i) => key !== context.steps[i]);
|
|
@@ -520,6 +560,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
520
560
|
isAdvanceableModuleErrorOnLastStep: ({ context, event }) => isAdvanceableError(event.moduleErrorCode) && context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
|
|
521
561
|
isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
|
|
522
562
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
563
|
+
isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
|
|
523
564
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
524
565
|
shouldEnterHome: ({ context }) => shouldEnterHome(context),
|
|
525
566
|
needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
|
|
@@ -698,7 +739,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
698
739
|
on: {
|
|
699
740
|
MODULE_COMPLETE: [
|
|
700
741
|
{
|
|
701
|
-
target: "
|
|
742
|
+
target: "resolvingHandoffCompletion",
|
|
702
743
|
guard: "isOnboardingFinishedSignal"
|
|
703
744
|
},
|
|
704
745
|
{
|
|
@@ -734,13 +775,32 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
734
775
|
}
|
|
735
776
|
],
|
|
736
777
|
COMPLETE_FLOW: { target: "completing" },
|
|
737
|
-
FINISH_FLOW: {
|
|
778
|
+
FINISH_FLOW: [{
|
|
779
|
+
guard: "isRedirectToMobileStep",
|
|
780
|
+
target: "resolvingHandoffCompletion"
|
|
781
|
+
}, { target: "finished" }],
|
|
738
782
|
RESET: {
|
|
739
783
|
target: "idle",
|
|
740
784
|
actions: "resetContext"
|
|
741
785
|
}
|
|
742
786
|
}
|
|
743
787
|
},
|
|
788
|
+
resolvingHandoffCompletion: {
|
|
789
|
+
entry: assign({ completedOnMobile: true }),
|
|
790
|
+
after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
|
|
791
|
+
invoke: {
|
|
792
|
+
src: "resolveHandoffCompletion",
|
|
793
|
+
onDone: {
|
|
794
|
+
target: "finished",
|
|
795
|
+
actions: "setFinishStatus"
|
|
796
|
+
},
|
|
797
|
+
onError: { target: "finished" }
|
|
798
|
+
},
|
|
799
|
+
on: { RESET: {
|
|
800
|
+
target: "idle",
|
|
801
|
+
actions: "resetContext"
|
|
802
|
+
} }
|
|
803
|
+
},
|
|
744
804
|
completing: {
|
|
745
805
|
invoke: {
|
|
746
806
|
id: "notifyBackend",
|
|
@@ -781,7 +841,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
781
841
|
const effectiveEnableHome = enableHome === true && serverDisablesLaunch === false;
|
|
782
842
|
const isTerminal = mappedStatus === "finished" || mappedStatus === "error";
|
|
783
843
|
const awaitingOrchestrator = mappedStatus === "idle" || mappedStatus === "loading";
|
|
784
|
-
const isCompletingPhase =
|
|
844
|
+
const isCompletingPhase = mappedStatus === "completing";
|
|
785
845
|
const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
786
846
|
const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
|
|
787
847
|
const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
|
|
@@ -805,7 +865,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
805
865
|
function getMappedStatus(snapshot) {
|
|
806
866
|
const { value } = snapshot;
|
|
807
867
|
if (value === "idle") return "idle";
|
|
808
|
-
if (value === "completing") return "completing";
|
|
868
|
+
if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
|
|
809
869
|
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
810
870
|
if (value === "finished") return "finished";
|
|
811
871
|
if (value === "error") return "error";
|
|
@@ -833,6 +893,7 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
|
|
|
833
893
|
if (mappedStatus === "finished") return {
|
|
834
894
|
status: "finished",
|
|
835
895
|
flow: context.flow ?? {},
|
|
896
|
+
...context.completedOnMobile ? { completedOnMobile: true } : {},
|
|
836
897
|
finishStatus: context.finishStatus ?? {
|
|
837
898
|
redirectionUrl: "",
|
|
838
899
|
action: "none",
|
|
@@ -907,7 +968,9 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
907
968
|
function getModuleConfig(moduleKey) {
|
|
908
969
|
const snapshot = getSnapshot();
|
|
909
970
|
if (snapshot.value !== "runningModule") return;
|
|
910
|
-
|
|
971
|
+
const { flow, currentStepIndex } = snapshot.context;
|
|
972
|
+
const activeModule = flow?.flowModules[currentStepIndex];
|
|
973
|
+
return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
911
974
|
}
|
|
912
975
|
function isModuleEnabled(moduleKey) {
|
|
913
976
|
const snapshot = getSnapshot();
|
|
@@ -1043,8 +1106,10 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
1043
1106
|
};
|
|
1044
1107
|
}
|
|
1045
1108
|
function createOrchestratedFlowActor(options) {
|
|
1109
|
+
const getFlow$1 = options.getFlow ?? getFlow;
|
|
1110
|
+
const { modulesConfig } = options;
|
|
1046
1111
|
return createActor(orchestratedFlowMachine, { input: {
|
|
1047
|
-
getFlow:
|
|
1112
|
+
getFlow: modulesConfig ? async (signal) => applyModulesConfig(await getFlow$1(signal), modulesConfig) : getFlow$1,
|
|
1048
1113
|
modules: options.modules,
|
|
1049
1114
|
lazyModules: options.lazyModules,
|
|
1050
1115
|
getFinishStatus: options.getFinishStatus,
|
package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-Bmwy1Fa7.esm.js";
|
|
3
3
|
//#region src/modules/flow/flowCompletionService.ts
|
|
4
4
|
const getFinishStatus = async (flowId, signal) => {
|
|
5
5
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -13,6 +13,27 @@ const getFinishStatus = async (flowId, signal) => {
|
|
|
13
13
|
toIncodeApiError(endpoints.finishStatus, error);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
+
const HANDOFF_COMPLETION_TIMEOUT_MS = 1e4;
|
|
17
|
+
/** Mobile already finished the session; read its redirect without finishing again. */
|
|
18
|
+
async function getHandoffFinishStatus(signal) {
|
|
19
|
+
try {
|
|
20
|
+
const data = (await api.get(endpoints.redirectionUrl, {
|
|
21
|
+
signal,
|
|
22
|
+
timeout: HANDOFF_COMPLETION_TIMEOUT_MS
|
|
23
|
+
})).data;
|
|
24
|
+
let redirectionUrl = "";
|
|
25
|
+
if (typeof data === "object" && data !== null && "redirectionUrl" in data && typeof data.redirectionUrl === "string") redirectionUrl = data.redirectionUrl;
|
|
26
|
+
return {
|
|
27
|
+
redirectionUrl,
|
|
28
|
+
action: "none",
|
|
29
|
+
scoreStatus: "UNKNOWN",
|
|
30
|
+
endScreenTitle: null,
|
|
31
|
+
endScreenText: null
|
|
32
|
+
};
|
|
33
|
+
} catch (error) {
|
|
34
|
+
toIncodeApiError(endpoints.redirectionUrl, error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
16
37
|
const SCORE_VARIANTS = {
|
|
17
38
|
OK: "success",
|
|
18
39
|
WARN: "success",
|
|
@@ -36,4 +57,4 @@ async function getTotalScoreStatus(signal) {
|
|
|
36
57
|
}
|
|
37
58
|
}
|
|
38
59
|
//#endregion
|
|
39
|
-
export {
|
|
60
|
+
export { getTotalScoreStatus as a, getHandoffFinishStatus as i, classifyScoreStatus as n, getFinishStatus as r, HANDOFF_COMPLETION_TIMEOUT_MS as t };
|