@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
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/{3dAvatarProvider-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
//#region src/modules/face-match/constants.ts
|
|
6
6
|
/**
|
|
7
7
|
* Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
|
|
@@ -22,9 +22,8 @@ const ID_FACE_EXTRACTION_SKIPPED_CODE = 4084;
|
|
|
22
22
|
function isFaceExtractionSkippedError(error) {
|
|
23
23
|
if (!error || typeof error !== "object") return false;
|
|
24
24
|
const err = error;
|
|
25
|
-
return err.status ===
|
|
25
|
+
return err.status === 4084 || err.data?.status === 4084;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
27
|
//#endregion
|
|
29
28
|
//#region src/modules/face-match/faceMatchServices.ts
|
|
30
29
|
/**
|
|
@@ -105,7 +104,6 @@ async function fetchFaceMatchData(config, signal) {
|
|
|
105
104
|
result: resultRes
|
|
106
105
|
};
|
|
107
106
|
}
|
|
108
|
-
|
|
109
107
|
//#endregion
|
|
110
108
|
//#region src/modules/face-match/faceMatchStateMachine.ts
|
|
111
109
|
const faceMatchMachine = setup({
|
|
@@ -178,6 +176,5 @@ const faceMatchMachine = setup({
|
|
|
178
176
|
} } }
|
|
179
177
|
}
|
|
180
178
|
});
|
|
181
|
-
|
|
182
179
|
//#endregion
|
|
183
|
-
export { ID_FACE_EXTRACTION_SKIPPED_CODE as n, isFaceExtractionSkippedError as r, faceMatchMachine as t };
|
|
180
|
+
export { ID_FACE_EXTRACTION_SKIPPED_CODE as n, isFaceExtractionSkippedError as r, faceMatchMachine as t };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-Dg03uIX1.js";
|
|
1
|
+
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
5
2
|
export { type FieldComparisonActor, type FieldComparisonConfig, type FieldComparisonFields, type FieldComparisonManager, type FieldComparisonState, createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
|
|
3
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
4
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-BxhleGNI.esm.js";
|
|
6
|
-
|
|
7
|
-
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
|
1
|
+
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-5LlxYad-.esm.js";
|
|
2
|
+
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { n as eventModuleNames,
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
//#region src/modules/field-comparison/fieldComparisonServices.ts
|
|
7
7
|
/** Submit first and last name for backend field comparison. Throws on failure. */
|
|
8
8
|
async function submitFieldComparison(params, signal) {
|
|
@@ -10,14 +10,12 @@ async function submitFieldComparison(params, signal) {
|
|
|
10
10
|
if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
|
|
11
11
|
return res.data;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/modules/field-comparison/fieldComparisonUtils.ts
|
|
16
15
|
/** Returns true when both first and last name are non-empty after trimming. */
|
|
17
16
|
function isFormComplete(fields) {
|
|
18
17
|
return fields.firstName.trim() !== "" && fields.lastName.trim() !== "";
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/modules/field-comparison/fieldComparisonStateMachine.ts
|
|
23
21
|
const emptyFields = () => ({
|
|
@@ -78,7 +76,6 @@ const fieldComparisonMachine = setup({
|
|
|
78
76
|
finished: { type: "final" }
|
|
79
77
|
}
|
|
80
78
|
});
|
|
81
|
-
|
|
82
79
|
//#endregion
|
|
83
80
|
//#region src/modules/field-comparison/fieldComparisonActor.ts
|
|
84
81
|
/**
|
|
@@ -89,7 +86,6 @@ const fieldComparisonMachine = setup({
|
|
|
89
86
|
function createFieldComparisonActor(options = {}) {
|
|
90
87
|
return createActor(fieldComparisonMachine, { input: { config: options.config ?? {} } }).start();
|
|
91
88
|
}
|
|
92
|
-
|
|
93
89
|
//#endregion
|
|
94
90
|
//#region src/modules/field-comparison/fieldComparisonManager.ts
|
|
95
91
|
function mapState(snapshot) {
|
|
@@ -157,6 +153,5 @@ function createFieldComparisonManagerFromActor(actor) {
|
|
|
157
153
|
instrumentation: createManagerInstrumentation(eventModuleNames.fieldComparison)
|
|
158
154
|
});
|
|
159
155
|
}
|
|
160
|
-
|
|
161
156
|
//#endregion
|
|
162
|
-
export { createFieldComparisonManagerFromActor as n, fieldComparisonMachine as r, createFieldComparisonManager as t };
|
|
157
|
+
export { createFieldComparisonManagerFromActor as n, fieldComparisonMachine as r, createFieldComparisonManager as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
4
|
//#region src/modules/field-comparison/types.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Configuration options for the field comparison module.
|
|
8
7
|
*
|
|
@@ -16,7 +15,6 @@ type FieldComparisonFields = {
|
|
|
16
15
|
};
|
|
17
16
|
//#endregion
|
|
18
17
|
//#region src/modules/field-comparison/fieldComparisonStateMachine.d.ts
|
|
19
|
-
|
|
20
18
|
declare const fieldComparisonMachine: any;
|
|
21
19
|
type FieldComparisonMachine = typeof fieldComparisonMachine;
|
|
22
20
|
//#endregion
|
package/dist/fiscal-qr.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { t as Manager } from "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./camera-DRH7co71.js";
|
|
4
|
-
import "./canvas-COIxuirO.js";
|
|
5
|
-
import "./StreamCanvasCapture-D9u4hwul.js";
|
|
6
|
-
|
|
1
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
7
2
|
//#region src/modules/fiscal-qr/types.d.ts
|
|
8
3
|
/**
|
|
9
4
|
* Configuration options for the Fiscal QR module.
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import { a as stopCameraStream } from "./camera-
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import { n as getBackCameraStream } from "./backCameraStream-DYnfq7Hr.esm.js";
|
|
11
|
-
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CRk7c7u7.esm.js";
|
|
12
|
-
import "./http-C3Pq6njG.esm.js";
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
|
+
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
5
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
+
import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
9
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
13
10
|
import { BrowserQRCodeReader } from "@zxing/browser";
|
|
14
|
-
|
|
15
11
|
//#region src/modules/fiscal-qr/fiscalQrConstants.ts
|
|
16
|
-
const QR_SCAN_FPS = 10;
|
|
17
|
-
const INITIAL_FOCUS_DELAY_MS = 800;
|
|
18
|
-
const SCAN_INTERVAL_MS = 500;
|
|
19
12
|
const SUCCESS_DISPLAY_MS = 1500;
|
|
20
13
|
const PROCESSING_DISPLAY_MS = 3e3;
|
|
21
14
|
const ERROR_DISPLAY_MS = 3e3;
|
|
22
|
-
const MAX_ATTEMPTS = 3;
|
|
23
|
-
|
|
24
15
|
//#endregion
|
|
25
16
|
//#region src/modules/fiscal-qr/qrCodeDecoder.ts
|
|
26
17
|
function createQrCodeDecoder() {
|
|
@@ -34,7 +25,6 @@ function createQrCodeDecoder() {
|
|
|
34
25
|
}
|
|
35
26
|
} };
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
//#endregion
|
|
39
29
|
//#region src/modules/fiscal-qr/fiscalQrUtils.ts
|
|
40
30
|
/**
|
|
@@ -76,9 +66,9 @@ function startQrScan(frameCapturer, onDetected, applyFocusDelay = true) {
|
|
|
76
66
|
};
|
|
77
67
|
const beginScanning = () => {
|
|
78
68
|
scan();
|
|
79
|
-
scanInterval = timer.setInterval(scan,
|
|
69
|
+
scanInterval = timer.setInterval(scan, 500);
|
|
80
70
|
};
|
|
81
|
-
if (applyFocusDelay) focusDelay = timer.setTimeout(beginScanning,
|
|
71
|
+
if (applyFocusDelay) focusDelay = timer.setTimeout(beginScanning, 800);
|
|
82
72
|
else beginScanning();
|
|
83
73
|
return () => {
|
|
84
74
|
disposed = true;
|
|
@@ -86,7 +76,6 @@ function startQrScan(frameCapturer, onDetected, applyFocusDelay = true) {
|
|
|
86
76
|
if (scanInterval !== void 0) timer.clearInterval(scanInterval);
|
|
87
77
|
};
|
|
88
78
|
}
|
|
89
|
-
|
|
90
79
|
//#endregion
|
|
91
80
|
//#region src/modules/fiscal-qr/fiscalQrServices.ts
|
|
92
81
|
/**
|
|
@@ -102,7 +91,6 @@ async function submitFiscalQrLink(params, signal) {
|
|
|
102
91
|
if (res.data?.success !== true) throw new Error("Fiscal QR link was not accepted");
|
|
103
92
|
return res.data;
|
|
104
93
|
}
|
|
105
|
-
|
|
106
94
|
//#endregion
|
|
107
95
|
//#region src/modules/fiscal-qr/fiscalQrStateMachine.ts
|
|
108
96
|
const fiscalQrMachine = setup({
|
|
@@ -116,7 +104,7 @@ const fiscalQrMachine = setup({
|
|
|
116
104
|
const { stream } = await getBackCameraStream(void 0);
|
|
117
105
|
return {
|
|
118
106
|
stream,
|
|
119
|
-
frameCapturer: new StreamCanvasCapture(stream, { fps:
|
|
107
|
+
frameCapturer: new StreamCanvasCapture(stream, { fps: 10 })
|
|
120
108
|
};
|
|
121
109
|
}),
|
|
122
110
|
submitFiscalQrLink: fromPromise(async ({ input, signal }) => {
|
|
@@ -168,7 +156,7 @@ const fiscalQrMachine = setup({
|
|
|
168
156
|
module: eventModuleNames.fiscalQr
|
|
169
157
|
})
|
|
170
158
|
},
|
|
171
|
-
guards: { isMaxAttemptsReached: ({ context }) => context.attempts + 1 >=
|
|
159
|
+
guards: { isMaxAttemptsReached: ({ context }) => context.attempts + 1 >= 3 }
|
|
172
160
|
}).createMachine({
|
|
173
161
|
id: "fiscalQr",
|
|
174
162
|
initial: "idle",
|
|
@@ -251,7 +239,6 @@ const fiscalQrMachine = setup({
|
|
|
251
239
|
}
|
|
252
240
|
}
|
|
253
241
|
});
|
|
254
|
-
|
|
255
242
|
//#endregion
|
|
256
243
|
//#region src/modules/fiscal-qr/fiscalQrActor.ts
|
|
257
244
|
/**
|
|
@@ -261,7 +248,6 @@ const fiscalQrMachine = setup({
|
|
|
261
248
|
function createFiscalQrActor(options) {
|
|
262
249
|
return createActor(fiscalQrMachine, { input: { config: options.config } }).start();
|
|
263
250
|
}
|
|
264
|
-
|
|
265
251
|
//#endregion
|
|
266
252
|
//#region src/modules/fiscal-qr/fiscalQrManager.ts
|
|
267
253
|
function mapState(snapshot) {
|
|
@@ -318,6 +304,5 @@ function createFiscalQrManager(options) {
|
|
|
318
304
|
instrumentation: createManagerInstrumentation(eventModuleNames.fiscalQr)
|
|
319
305
|
});
|
|
320
306
|
}
|
|
321
|
-
|
|
322
307
|
//#endregion
|
|
323
|
-
export { createFiscalQrManager, fiscalQrMachine };
|
|
308
|
+
export { createFiscalQrManager, fiscalQrMachine };
|
package/dist/flow-events.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
|
|
3
|
-
import "./types-B6KIOo6S.js";
|
|
4
|
-
import "./canvas-COIxuirO.js";
|
|
5
|
-
import "./createFaceAvatar-BjBu2CrU.js";
|
|
6
|
-
import "./types-NizIIgLD.js";
|
|
7
|
-
import "./flowCompletionService-DGcE_OvO.js";
|
|
8
|
-
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-Bk5nhSg2.js";
|
|
9
|
-
export { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
|
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-DQ2fdqoI.js";
|
|
2
|
+
export type { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { n as WasmPipeline } from "./warmup-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-NizIIgLD.js";
|
|
10
|
-
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-DGcE_OvO.js";
|
|
11
|
-
import { o as FlowEventSubscribable } from "./index-Bk5nhSg2.js";
|
|
12
|
-
import { n as ModuleRegistry } from "./types-ZezaAAbn.js";
|
|
13
|
-
import * as xstate1284 from "xstate";
|
|
14
|
-
|
|
1
|
+
import { n as WasmPipeline } from "./warmup-Dv2alr2-.js";
|
|
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
|
+
import "./StateMachine-EDpYWy0i.js";
|
|
4
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BnEHzP1K.js";
|
|
6
|
+
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
+
import { o as FlowEventSubscribable } from "./index-DQ2fdqoI.js";
|
|
8
|
+
import { n as ModuleRegistry } from "./types-BfgmV7s7.js";
|
|
15
9
|
//#region src/modules/flow/flowUtils.d.ts
|
|
16
10
|
type NormalizeFlowModulesOptions = {
|
|
17
11
|
isDesktop?: boolean;
|
|
@@ -62,7 +56,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
|
62
56
|
declare const getFlow: GetFlow;
|
|
63
57
|
//#endregion
|
|
64
58
|
//#region src/modules/flow/noOpFlowModuleMachine.d.ts
|
|
65
|
-
declare const noOpFlowModuleMachine:
|
|
59
|
+
declare const noOpFlowModuleMachine: StateMachine<MachineContext, AnyEventObject, {}, never, never, never, never, "finished", string, NonReducibleUnknown, NonReducibleUnknown, EventObject, MetaObject, {
|
|
66
60
|
readonly id: "noOpFlowModule";
|
|
67
61
|
readonly initial: "finished";
|
|
68
62
|
readonly states: {
|
|
@@ -185,7 +179,7 @@ declare function createFlowManager(options?: CreateFlowActorOptions): Manager<Fl
|
|
|
185
179
|
* @param moduleKey - The unique key identifier of the module
|
|
186
180
|
* @returns The module configuration or `undefined` if not found or not in `ready` state
|
|
187
181
|
*/
|
|
188
|
-
getModuleConfig: <T
|
|
182
|
+
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
189
183
|
/**
|
|
190
184
|
* Checks if a module is enabled in the current flow.
|
|
191
185
|
* @param moduleKey - The unique key identifier of the module
|
|
@@ -195,14 +189,14 @@ declare function createFlowManager(options?: CreateFlowActorOptions): Manager<Fl
|
|
|
195
189
|
} & FlowEventSubscribable;
|
|
196
190
|
//#endregion
|
|
197
191
|
//#region src/modules/flow/moduleLoader.d.ts
|
|
198
|
-
type LazyModule<T
|
|
192
|
+
type LazyModule<T> = () => Promise<T>;
|
|
199
193
|
type ModuleLoaderRegistry = {
|
|
200
194
|
[key: string]: LazyModule<{
|
|
201
195
|
default: unknown;
|
|
202
196
|
}>;
|
|
203
197
|
};
|
|
204
198
|
interface ModuleLoader {
|
|
205
|
-
load<T
|
|
199
|
+
load<T>(moduleKey: string): Promise<T>;
|
|
206
200
|
prefetch(moduleKey: string): void;
|
|
207
201
|
isLoaded(moduleKey: string): boolean;
|
|
208
202
|
}
|
|
@@ -367,7 +361,7 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
367
361
|
*/
|
|
368
362
|
send(event: OrchestratedFlowEvent): void;
|
|
369
363
|
readonly canNext: boolean;
|
|
370
|
-
getModuleConfig: <T
|
|
364
|
+
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
371
365
|
isModuleEnabled: (moduleKey: string) => boolean;
|
|
372
366
|
isAwaitingOrchestratorReady(): boolean;
|
|
373
367
|
/**
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./getBrowser-CZ66VtC7.esm.js";
|
|
8
|
-
import "./browserSimulation-CQjwFn0Z.esm.js";
|
|
9
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
10
|
-
import "./tri-Calc36Ny.esm.js";
|
|
11
|
-
import { a as fromPromise, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
12
|
-
import "./apiError-DkOXfFBu.esm.js";
|
|
13
|
-
import "./types-Db2ooXIu.esm.js";
|
|
14
|
-
import "./session--C2lbjK5.esm.js";
|
|
15
|
-
import "./videoSelfieSteps-DAky5sq5.esm.js";
|
|
16
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CJXaWFlZ.esm.js";
|
|
17
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-qf-s8Uxl.esm.js";
|
|
18
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-FH_tixbR.esm.js";
|
|
19
|
-
|
|
1
|
+
import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BQEUaMg6.esm.js";
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
|
|
6
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
|
|
20
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
21
8
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
22
9
|
id: "noOpFlowModule",
|
|
23
10
|
initial: "finished",
|
|
24
11
|
states: { finished: { type: "final" } }
|
|
25
12
|
});
|
|
26
|
-
|
|
27
13
|
//#endregion
|
|
28
14
|
//#region src/modules/flow/flowStateMachine.ts
|
|
29
15
|
const flowMachine = setup({
|
|
@@ -145,13 +131,11 @@ const flowMachine = setup({
|
|
|
145
131
|
} } }
|
|
146
132
|
}
|
|
147
133
|
});
|
|
148
|
-
|
|
149
134
|
//#endregion
|
|
150
135
|
//#region src/modules/flow/flowActor.ts
|
|
151
136
|
function createFlowActor(options) {
|
|
152
137
|
return createActor(flowMachine, { input: { getFlow: options?.getFlow ?? getFlow } }).start();
|
|
153
138
|
}
|
|
154
|
-
|
|
155
139
|
//#endregion
|
|
156
140
|
//#region src/modules/flow/flowManager.ts
|
|
157
141
|
function mapState(snapshot) {
|
|
@@ -188,7 +172,7 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
188
172
|
const snapshot = getSnapshot();
|
|
189
173
|
return snapshot.matches("ready") && snapshot.context.currentStepIndex > 0;
|
|
190
174
|
}
|
|
191
|
-
function getModuleConfig
|
|
175
|
+
function getModuleConfig(moduleKey) {
|
|
192
176
|
const snapshot = getSnapshot();
|
|
193
177
|
if (!snapshot.matches("ready")) return;
|
|
194
178
|
return (snapshot.context.flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
@@ -199,31 +183,73 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
199
183
|
return !!snapshot.context.flow?.flowModules.some((m) => m.key === moduleKey);
|
|
200
184
|
}
|
|
201
185
|
return {
|
|
186
|
+
/**
|
|
187
|
+
* Loads the flow from the server.
|
|
188
|
+
* Transitions the state from `idle` to `loading`, then to `ready` on success or `error` on failure.
|
|
189
|
+
* Requires setup() to have been called with a token first.
|
|
190
|
+
*/
|
|
202
191
|
load() {
|
|
203
192
|
actor.send({ type: "LOAD" });
|
|
204
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
* Cancels the current loading operation and returns to `idle` state.
|
|
196
|
+
* Only effective when in `loading` state.
|
|
197
|
+
*/
|
|
205
198
|
cancel() {
|
|
206
199
|
trackElementClicked?.("cancel");
|
|
207
200
|
actor.send({ type: "CANCEL" });
|
|
208
201
|
},
|
|
202
|
+
/**
|
|
203
|
+
* Resets the flow manager to its initial `idle` state.
|
|
204
|
+
* Can be called from `ready`, `finished`, or `error` states.
|
|
205
|
+
*/
|
|
209
206
|
reset() {
|
|
210
207
|
actor.send({ type: "RESET" });
|
|
211
208
|
},
|
|
209
|
+
/**
|
|
210
|
+
* Advances to the next step in the flow.
|
|
211
|
+
* If on the last step, transitions to `finished` state.
|
|
212
|
+
* Only effective when in `ready` state.
|
|
213
|
+
*/
|
|
212
214
|
nextStep() {
|
|
213
215
|
trackElementClicked?.("nextStep");
|
|
214
216
|
actor.send({ type: "NEXT_STEP" });
|
|
215
217
|
},
|
|
218
|
+
/**
|
|
219
|
+
* Goes back to the previous step in the flow.
|
|
220
|
+
* Does nothing if already on the first step.
|
|
221
|
+
* Only effective when in `ready` state.
|
|
222
|
+
*/
|
|
216
223
|
prevStep() {
|
|
217
224
|
trackElementClicked?.("prevStep");
|
|
218
225
|
actor.send({ type: "PREV_STEP" });
|
|
219
226
|
},
|
|
227
|
+
/**
|
|
228
|
+
* Whether the flow can advance to the next step.
|
|
229
|
+
* Returns `true` if in `ready` state and not on the last step.
|
|
230
|
+
*/
|
|
220
231
|
get canNext() {
|
|
221
232
|
return getCanNext();
|
|
222
233
|
},
|
|
234
|
+
/**
|
|
235
|
+
* Whether the flow can go back to the previous step.
|
|
236
|
+
* Returns `true` if in `ready` state and not on the first step.
|
|
237
|
+
*/
|
|
223
238
|
get canPrev() {
|
|
224
239
|
return getCanPrev();
|
|
225
240
|
},
|
|
226
|
-
|
|
241
|
+
/**
|
|
242
|
+
* Gets the configuration for a specific module by its key.
|
|
243
|
+
* Useful for accessing config of modules other than the current one.
|
|
244
|
+
* @param moduleKey - The unique key identifier of the module
|
|
245
|
+
* @returns The module configuration or `undefined` if not found or not in `ready` state
|
|
246
|
+
*/
|
|
247
|
+
getModuleConfig,
|
|
248
|
+
/**
|
|
249
|
+
* Checks if a module is enabled in the current flow.
|
|
250
|
+
* @param moduleKey - The unique key identifier of the module
|
|
251
|
+
* @returns `true` if the module exists in the flow, `false` otherwise or if not in `ready` state
|
|
252
|
+
*/
|
|
227
253
|
isModuleEnabled
|
|
228
254
|
};
|
|
229
255
|
}
|
|
@@ -260,7 +286,6 @@ function createFlowManager(options) {
|
|
|
260
286
|
createApi
|
|
261
287
|
}));
|
|
262
288
|
}
|
|
263
|
-
|
|
264
289
|
//#endregion
|
|
265
290
|
//#region src/modules/flow/moduleLoader.ts
|
|
266
291
|
var ModuleLoaderImpl = class {
|
|
@@ -300,7 +325,6 @@ var ModuleLoaderImpl = class {
|
|
|
300
325
|
function createModuleLoader(registry) {
|
|
301
326
|
return new ModuleLoaderImpl(registry);
|
|
302
327
|
}
|
|
303
|
-
|
|
304
328
|
//#endregion
|
|
305
329
|
//#region src/modules/flow/orchestratedFlowStateMachine.ts
|
|
306
330
|
function getModuleConfig(module, flow) {
|
|
@@ -648,7 +672,6 @@ const orchestratedFlowMachine = setup({
|
|
|
648
672
|
}
|
|
649
673
|
}
|
|
650
674
|
});
|
|
651
|
-
|
|
652
675
|
//#endregion
|
|
653
676
|
//#region src/modules/flow/orchestratedFlowManager.ts
|
|
654
677
|
function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
@@ -740,9 +763,9 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
|
|
|
740
763
|
presentation: uiModel.presentation
|
|
741
764
|
};
|
|
742
765
|
}
|
|
743
|
-
function waitForOrchestratorReadyFromActor(actor, mapState
|
|
766
|
+
function waitForOrchestratorReadyFromActor(actor, mapState, isResolved) {
|
|
744
767
|
return new Promise((resolve, reject) => {
|
|
745
|
-
const initial = mapState
|
|
768
|
+
const initial = mapState(actor.getSnapshot());
|
|
746
769
|
if (isResolved(initial)) {
|
|
747
770
|
resolve();
|
|
748
771
|
return;
|
|
@@ -756,7 +779,7 @@ function waitForOrchestratorReadyFromActor(actor, mapState$1, isResolved) {
|
|
|
756
779
|
return;
|
|
757
780
|
}
|
|
758
781
|
const subscription = actor.subscribe(() => {
|
|
759
|
-
const next = mapState
|
|
782
|
+
const next = mapState(actor.getSnapshot());
|
|
760
783
|
if (isResolved(next)) {
|
|
761
784
|
subscription.unsubscribe();
|
|
762
785
|
resolve();
|
|
@@ -780,7 +803,7 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
780
803
|
const { currentStepIndex, steps } = snapshot.context;
|
|
781
804
|
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
|
|
782
805
|
}
|
|
783
|
-
function getModuleConfig
|
|
806
|
+
function getModuleConfig(moduleKey) {
|
|
784
807
|
const snapshot = getSnapshot();
|
|
785
808
|
if (snapshot.value !== "runningModule") return;
|
|
786
809
|
return (snapshot.context.flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
@@ -791,28 +814,72 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
791
814
|
return !!snapshot.context.flow?.flowModules.some((m) => m.key === moduleKey);
|
|
792
815
|
}
|
|
793
816
|
return {
|
|
817
|
+
/**
|
|
818
|
+
* Start loading the flow configuration from the backend.
|
|
819
|
+
*/
|
|
794
820
|
load() {
|
|
795
821
|
actor.send({ type: "LOAD" });
|
|
796
822
|
},
|
|
823
|
+
/**
|
|
824
|
+
* Cancel an in-progress flow load.
|
|
825
|
+
*/
|
|
797
826
|
cancel() {
|
|
798
827
|
trackElementClicked?.("cancel");
|
|
799
828
|
actor.send({ type: "CANCEL" });
|
|
800
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
* Reset the flow to its initial idle state.
|
|
832
|
+
*/
|
|
801
833
|
reset() {
|
|
802
834
|
actor.send({ type: "RESET" });
|
|
803
835
|
},
|
|
836
|
+
/**
|
|
837
|
+
* Signal that the current module has completed successfully.
|
|
838
|
+
* Call this from your UI component's `onFinish` callback.
|
|
839
|
+
*
|
|
840
|
+
* @example
|
|
841
|
+
* ```tsx
|
|
842
|
+
* <Phone
|
|
843
|
+
* config={config}
|
|
844
|
+
* onFinish={() => flowManager.completeModule()}
|
|
845
|
+
* />
|
|
846
|
+
* ```
|
|
847
|
+
*/
|
|
804
848
|
completeModule() {
|
|
805
849
|
trackElementClicked?.("completeModule");
|
|
806
850
|
actor.send({ type: "MODULE_COMPLETE" });
|
|
807
851
|
},
|
|
852
|
+
/**
|
|
853
|
+
* Skip all remaining modules and complete the flow now, notifying the
|
|
854
|
+
* backend (getFinishStatus) on the way to the completion step.
|
|
855
|
+
*/
|
|
808
856
|
completeFlow() {
|
|
809
857
|
trackElementClicked?.("completeFlow");
|
|
810
858
|
actor.send({ type: "COMPLETE_FLOW" });
|
|
811
859
|
},
|
|
860
|
+
/**
|
|
861
|
+
* Finish the flow because the onboarding was already completed externally —
|
|
862
|
+
* e.g. the REDIRECT_TO_MOBILE handoff finished end-to-end on mobile. Lands
|
|
863
|
+
* on the completion screen WITHOUT calling getFinishStatus: mobile already
|
|
864
|
+
* notified the backend, and the desktop never reached its own finish.
|
|
865
|
+
* Use this (not `completeFlow`) from REDIRECT_TO_MOBILE's `onFinish`.
|
|
866
|
+
*/
|
|
812
867
|
finishFlow() {
|
|
813
868
|
trackElementClicked?.("finishFlow");
|
|
814
869
|
actor.send({ type: "FINISH_FLOW" });
|
|
815
870
|
},
|
|
871
|
+
/**
|
|
872
|
+
* Signal that the current module encountered a terminal error, optionally
|
|
873
|
+
* with its machine-readable `moduleErrorCode`. The flow machine decides what
|
|
874
|
+
* to do: an advanceable terminal error (e.g. `NONEXISTENT_CUSTOMER`,
|
|
875
|
+
* `HINT_NOT_PROVIDED`) advances to the next step; any other error transitions
|
|
876
|
+
* to the terminal error state. Callers always forward the code and let core
|
|
877
|
+
* classify — no per-module branching in the UI.
|
|
878
|
+
*
|
|
879
|
+
* @param error - Error message describing what went wrong
|
|
880
|
+
* @param moduleErrorCode - Optional machine-readable error code (a
|
|
881
|
+
* `FaceErrorCode`) used by the flow machine to decide advance vs terminate
|
|
882
|
+
*/
|
|
816
883
|
errorModule(error, moduleErrorCode) {
|
|
817
884
|
actor.send({
|
|
818
885
|
type: "MODULE_ERROR",
|
|
@@ -820,17 +887,26 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
820
887
|
moduleErrorCode
|
|
821
888
|
});
|
|
822
889
|
},
|
|
890
|
+
/**
|
|
891
|
+
* Send a raw event to the flow state machine.
|
|
892
|
+
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
893
|
+
*/
|
|
823
894
|
send(event) {
|
|
824
895
|
actor.send(event);
|
|
825
896
|
},
|
|
826
897
|
get canNext() {
|
|
827
898
|
return getCanNext();
|
|
828
899
|
},
|
|
829
|
-
getModuleConfig
|
|
900
|
+
getModuleConfig,
|
|
830
901
|
isModuleEnabled,
|
|
831
902
|
isAwaitingOrchestratorReady() {
|
|
832
903
|
return mapSnapshot().presentation.isAwaitingReady;
|
|
833
904
|
},
|
|
905
|
+
/**
|
|
906
|
+
* Resolve once the orchestrator has finished loading the flow and the first
|
|
907
|
+
* module is ready to render. Useful for gating an initialization spinner
|
|
908
|
+
* alongside other parallel async work (e.g. theme fetching).
|
|
909
|
+
*/
|
|
834
910
|
async waitForReady() {
|
|
835
911
|
return waitForOrchestratorReadyFromActor(actor, (snap) => mapOrchestratedFlowState(snap, { enableHome }), (next) => next.status === "ready" && next.presentation.isAwaitingReady === false);
|
|
836
912
|
},
|
|
@@ -879,6 +955,5 @@ function createOrchestratedFlowManager(options) {
|
|
|
879
955
|
createApi: (apiOpts) => createOrchestratedFlowApi(apiOpts, { enableHome })
|
|
880
956
|
}));
|
|
881
957
|
}
|
|
882
|
-
|
|
883
958
|
//#endregion
|
|
884
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
|
959
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { n as toIncodeApiError } from "./apiError-
|
|
4
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
5
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
6
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
7
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -37,6 +36,5 @@ async function getTotalScoreStatus(signal) {
|
|
|
37
36
|
toIncodeApiError(endpoints.sessionTotalScoreStatus, error);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { getFinishStatus as n, getTotalScoreStatus as r, classifyScoreStatus as t };
|
|
40
|
+
export { getFinishStatus as n, getTotalScoreStatus as r, classifyScoreStatus as t };
|