@incodetech/core 2.1.0-rc.2 → 2.1.0-rc.3
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-ChciZmjE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-D5xc7Lqo.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -25
- package/dist/BrowserVisibilityObserverProvider-rim9Jrz-.esm.js +25 -0
- package/dist/Face2DProvider-BeLlYBbB.esm.js +824 -0
- package/dist/FaceDetectionProvider-B78455D4.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BbWjgpiF.d.ts +12 -0
- package/dist/IWasmUtilCapability-d2XvzaCk.d.ts +145 -0
- package/dist/IpifyProvider-BRW14_uo.esm.js +51 -0
- package/dist/{Manager-B2OEDYqf.d.ts → Manager-CJ3G2zqi.d.ts} +1 -4
- package/dist/{OpenViduRecordingProvider-DF7A4ZNJ.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
- package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
- package/dist/StateMachine-C_AY4cs7.d.ts +2 -0
- package/dist/{StreamCanvasCapture-Dr5n_iK1.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
- package/dist/{WasmUtilProvider-CIu373BZ.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +16 -1
- package/dist/{addressSearch-BH96a3fq.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
- package/dist/{ae-signature-CDEN8y-w.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +10 -9
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +7 -6
- package/dist/{antifraudManager-DZifA5zX.esm.js → antifraudManager-BKdQoMFf.esm.js} +4 -3
- package/dist/{antifraudManager-B7WQTIdu.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
- package/dist/{antifraudStateMachine-DlKrK2hL.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
- package/dist/{api-DUZwyz0o.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -12
- package/dist/authentication.esm.js +33 -27
- package/dist/{authenticationManager-Dve7mGLe.d.ts → authenticationManager-CdPbNS2H.d.ts} +3 -3
- package/dist/{authenticationManager-BM4LzyV7.esm.js → authenticationManager-Dtl1vcET.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Chx3ySdT.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +8 -8
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-iftkf3rd.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
- package/dist/{browser-DlFgHpoC-7tbRR1aR.esm.js → browser-DlFgHpoC-qLKs75Qp.esm.js} +1 -1
- package/dist/{browserSimulation-CGjpdNA1.esm.js → browserSimulation-TsSoavQv.esm.js} +153 -1216
- package/dist/camera-DUkgmYMo.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/{StreamCanvasCapture-Ctgyx-oD.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +31 -30
- package/dist/certificate-issuance.esm.js +8 -7
- package/dist/{certificateIssuanceStateMachine-CLNXtXaC.esm.js → certificateIssuanceStateMachine-C07m7qtP.esm.js} +4 -4
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +7 -6
- package/dist/{consentManager-psDCeJ0E.esm.js → consentManager-BtnPZUW4.esm.js} +4 -3
- package/dist/{consentManager-BqUGU_YD.d.ts → consentManager-DufVo9D9.d.ts} +52 -52
- package/dist/{consentStateMachine-DRsFFSHE.esm.js → consentStateMachine-DO2JqoZW.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +7 -6
- package/dist/{cpfOcrManager-BxcgxvgO.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
- package/dist/{cpfOcrManager-B2u9hMzd.d.ts → cpfOcrManager-DqZZ94Gt.d.ts} +19 -19
- package/dist/createFaceAvatar-B8pFpy6o.d.ts +401 -0
- package/dist/createFaceAvatar-BOHDKQRq.esm.js +46 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +6 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +7 -6
- package/dist/{curpValidationManager-BgLDw0Ub.esm.js → curpValidationManager-BafobPXC.esm.js} +4 -3
- package/dist/{curpValidationManager-Bt6CVD8b.d.ts → curpValidationManager-Co6LZAHT.d.ts} +3 -3
- package/dist/{curpValidationStateMachine-BK_wJ48C.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
- package/dist/custom-fields.d.ts +3 -2
- package/dist/custom-fields.esm.js +6 -5
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +6 -5
- package/dist/{customWatchlistStateMachine-Bi4P59HM.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
- package/dist/{deepsightLoader-BMmvk0X6.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
- package/dist/{deepsightService-CEZrdiW0.esm.js → deepsightService-CDahSjGP.esm.js} +9 -38
- package/dist/deepsightService-CMB9XjES.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +175 -174
- package/dist/document-capture.esm.js +14 -13
- package/dist/document-upload.d.ts +48 -47
- package/dist/document-upload.esm.js +9 -8
- package/dist/{documentCaptureStateMachine-MpwpJO7t.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +8 -160
- package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
- package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
- package/dist/{dynamicFormsStateMachine-Do84A4uU.esm.js → dynamicFormsStateMachine-BXHcaocI.esm.js} +4 -4
- package/dist/ekyb.d.ts +9 -6
- package/dist/ekyb.esm.js +20 -17
- package/dist/{ekybStateMachine-nsuPOw3f.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +9 -8
- package/dist/{ekycStateMachine-DcynX0rj.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +9 -8
- package/dist/{electronicSignatureManager-B63aAuI5.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +50 -87
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +9 -8
- package/dist/{emailManager-DxHjAe5u.esm.js → emailManager-B_XzEsXH.esm.js} +5 -4
- package/dist/{emailManager-C6D2u4mQ.d.ts → emailManager-fHASH6uo.d.ts} +3 -3
- package/dist/{emailStateMachine-758f34gg.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
- package/dist/{endpoints-BM2_j_IE.esm.js → endpoints-BzMJFAPV.esm.js} +13 -0
- package/dist/{events-DN-u67gb.esm.js → events-CqGY1yMq.esm.js} +2 -188
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +3 -2
- package/dist/extensibility.d.ts +37 -26
- package/dist/extensibility.esm.js +74 -59
- package/dist/{externalFetch-crimxkN9.esm.js → externalFetch-CyhBfD-n.esm.js} +1 -1
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +6 -5
- package/dist/{faceCaptureManagerFactory-BNXZchWX.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +25 -16
- package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
- package/dist/{faceCaptureSetup-Dqb09D24.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-FikRaUZH.esm.js → faceMatchStateMachine-DUeUjEPx.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +6 -5
- package/dist/{fieldComparisonManager-Dic0DVgl.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
- package/dist/{fieldComparisonManager-BXc6-DJv.d.ts → fieldComparisonManager-DdLqDeB2.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +13 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +21 -13
- package/dist/flow.esm.js +28 -19
- package/dist/{flowCompletionService-CdGDKv0z.d.ts → flowCompletionService-BIqSTZcd.d.ts} +2 -1
- package/dist/{flowCompletionService-D_CsiDZM.esm.js → flowCompletionService-qEqh_g14.esm.js} +3 -3
- package/dist/{flowServices-ar5DXv71.esm.js → flowServices-C4piblgx.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -127
- package/dist/geolocation.esm.js +8 -115
- package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
- package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
- package/dist/{geolocationStateMachine-BWjrMGS_.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
- package/dist/{getDeviceClass-rXKlXywy.esm.js → getDeviceClass-DGGzzfqm.esm.js} +1 -1
- package/dist/getDeviceData-TrKM8NPh.esm.js +101 -0
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +8 -7
- package/dist/{governmentValidationStateMachine-BoF7U1of.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +4 -3
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +8 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +6 -5
- package/dist/id.d.ts +16 -11
- package/dist/id.esm.js +39 -32
- package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
- package/dist/{idCaptureManager-BvGUSN2e.d.ts → idCaptureManager-BVdvfJys.d.ts} +40 -10
- package/dist/{idCaptureManager-Bm6Wm6Qv.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +14 -11
- package/dist/{idCaptureStateMachine-D1YhOj6n.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +395 -382
- package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
- package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
- package/dist/{idOcrStateMachine-YMCDGplq.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-Bo1IYuZH.esm.js → idVerificationStateMachine-oqiERKpg.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +7 -6
- package/dist/{identityReuseManager-D0knIrOy.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
- package/dist/{identityReuseManager-DcWSvC-A.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
- package/dist/{identityReuseStateMachine-CSQfZOqD.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
- package/dist/{index-BgxYUYuD.d.ts → index-DtUlD-bz.d.ts} +2 -2
- package/dist/{index-DV134v62.d.ts → index-Icld-cKW.d.ts} +175 -295
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +16 -13
- package/dist/{invokeOnCaptureCallback-Dzemudhk.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
- package/dist/{lib-7ZQ9BdKH.esm.js → lib-B050WTth.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +7 -6
- package/dist/{mandatoryConsentManager-Tzl5Qd35.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-Lon46nPQ.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
- package/dist/{mandatoryConsentStateMachine-D_dZ7IF6.esm.js → mandatoryConsentStateMachine-DkJJLHqC.esm.js} +3 -3
- package/dist/mediaRecorderOptions-C3NAkVgK.esm.js +42 -0
- package/dist/mediapipeShared-CRAKVElv.esm.js +67 -0
- package/dist/{recordingService-CxMJP4tQ.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
- package/dist/{openviduLazy-oAXXI9w_.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
- package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
- package/dist/{permissionGuards-D-Z-lgNj.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
- package/dist/{permissionServices-CPDboRoE.esm.js → permissionServices-BJhGL13R.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1494 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +9 -8
- package/dist/{phoneManager-TSq1Ief6.d.ts → phoneManager-BOTcjXgs.d.ts} +3 -3
- package/dist/{phoneManager-Blt4Oc2P.esm.js → phoneManager-BWlxqbyD.esm.js} +5 -4
- package/dist/{phoneStateMachine-W3c6Z8sj.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
- package/dist/{qe-signature-CQLK6LKE.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +10 -9
- package/dist/recordingService-m_1xCthr.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +9 -8
- package/dist/{redirectToMobileManager-DCvpKdkD.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
- package/dist/{redirectToMobileManager-yOHAmwg-.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DC9z4Vfu.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +10 -12
- package/dist/{runChildModule-C9G0wfVC.esm.js → runChildModule-0nQfjVVo.esm.js} +3 -3
- package/dist/selfie.d.ts +19 -12
- package/dist/selfie.esm.js +34 -28
- package/dist/{selfieManager-BRL6c_Oc.esm.js → selfieManager-D_ZFERsE.esm.js} +6 -6
- package/dist/{selfieManager-imY2dAcH.d.ts → selfieManager-R0Jw5sjb.d.ts} +3 -3
- package/dist/{selfieStateMachine-D2Q0uwDK.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
- package/dist/{session-Be_IA1e0.esm.js → session-9jIfKFCc.esm.js} +3 -3
- package/dist/session.d.ts +7 -5
- package/dist/session.esm.js +16 -14
- package/dist/{sessionInitializer-CaiGA8GP.esm.js → sessionInitializer-C_TYIgyk.esm.js} +11 -107
- package/dist/{setup-BJZAkajt.d.ts → setup-CpRnXxn8.d.ts} +16 -3
- package/dist/setup-DHc6OaHm.esm.js +562 -0
- package/dist/signature.d.ts +3 -2
- package/dist/signature.esm.js +6 -5
- package/dist/{signatureStateMachine-DAxXmMrk.esm.js → signatureStateMachine-DtoiPzys.esm.js} +3 -3
- package/dist/{stats-DntyIiGr.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-fHBUDlAP.esm.js +1194 -0
- package/dist/{tri-CtxWthxz.esm.js → tri-BG1iJsr4.esm.js} +12 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-CrWAulDi.esm.js → tri.esm-DUC01NgO.esm.js} +27 -23
- package/dist/tri.esm.js +2 -2
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +4 -3
- package/dist/{types-DpTWgfKY.d.ts → types-BklZ_Wne.d.ts} +1 -1
- package/dist/{types-Dv-9WPJX.d.ts → types-BsYXnC5s.d.ts} +39 -3
- package/dist/types-CxW2e0Ar.d.ts +132 -0
- package/dist/{types-Z9wv19v2.d.ts → types-DgGlgyZT.d.ts} +1 -1
- package/dist/types-ElOJAGaM.esm.js +189 -0
- package/dist/video-C2WIj6TS.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1509 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup--6HA3yUR.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +17 -14
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +6 -5
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +6 -5
- package/dist/{watchlistForBusinessStateMachine-DtefJb-D.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
- package/dist/{watchlistStateMachine-B0aIS2_n.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
- package/dist/workflow.d.ts +230 -98
- package/dist/workflow.esm.js +123 -79
- package/dist/{xstate.esm-Dkm1jy5u.esm.js → xstate.esm-Bomq1a0z.esm.js} +41 -1
- package/package.json +16 -1
- package/dist/IpifyProvider-oZf7Ke1O.esm.js +0 -167
- package/dist/camera-x4LjGTjZ.esm.js +0 -22
- package/dist/deepsightService-ByNKY5Jv.d.ts +0 -276
- package/dist/faceCaptureManagerFactory-CL-7T_vH.d.ts +0 -731
- package/dist/getBrowser-Dv8LZyHE.esm.js +0 -8
- package/dist/openviduLazy-B_s6jnEk.esm.js +0 -3
- package/dist/setup-C7tintPc.esm.js +0 -1064
- /package/dist/{Actor-fIPLXfoi.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-BVgutW_b.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-BvH0pDwp.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
- /package/dist/{MotionSensorProvider-C9fPAJdS.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
- /package/dist/{apiError-D-GTvFrH.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
- /package/dist/{camera-biGPWlmx.d.ts → camera-CNVUo-bC.d.ts} +0 -0
- /package/dist/{canvas-7uX2izHb.esm.js → canvas-_I95hkPg.esm.js} +0 -0
- /package/dist/{chunk-BK1xu56N.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-xBg-DFNn.esm.js → cpf-BKaho0j_.esm.js} +0 -0
- /package/dist/{dateUtils-8dCcuArE.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0zrM97a.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
- /package/dist/{http-CfVTgMfU.esm.js → http-BkiUT7EB.esm.js} +0 -0
- /package/dist/{index-52_qi4bd.d.ts → index-XTtxaahe.d.ts} +0 -0
- /package/dist/{otp-D87RTwrx.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-BHJnjEEc.d.ts → otp-M4iy57XY.d.ts} +0 -0
- /package/dist/{platform-BfoqeM61.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-BdVOWGGW.esm.js → types-CMcxlSmH.esm.js} +0 -0
- /package/dist/{types-DYZja-k9.d.ts → types-D_IceWxT.d.ts} +0 -0
- /package/dist/{types-F0IXbaCB.d.ts → types-Duy2rDxF.d.ts} +0 -0
- /package/dist/{urlUtils-8RNHyW3x.esm.js → urlUtils-BZqFU9rR.esm.js} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//#region ../infra/src/media/camera.ts
|
|
2
|
+
/**
|
|
3
|
+
* Default resolution fallback order for camera access.
|
|
4
|
+
* Tries each resolution in order until one succeeds.
|
|
5
|
+
* Matches legacy behavior from Webcam.tsx
|
|
6
|
+
*/
|
|
7
|
+
const DEFAULT_RESOLUTION_FALLBACKS = [
|
|
8
|
+
{ height: 720 },
|
|
9
|
+
{
|
|
10
|
+
width: 3840,
|
|
11
|
+
height: 2160
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
width: 1920,
|
|
15
|
+
height: 1080
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
width: 640,
|
|
19
|
+
height: 480
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
width: 800,
|
|
23
|
+
height: 480
|
|
24
|
+
},
|
|
25
|
+
{}
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* Request camera access with specific constraints.
|
|
29
|
+
* Throws if the request fails - no automatic fallback.
|
|
30
|
+
*/
|
|
31
|
+
async function requestCameraAccess(constraints) {
|
|
32
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices) throw new Error("MediaDevices API not available");
|
|
33
|
+
return navigator.mediaDevices.getUserMedia(constraints);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Request camera access with automatic resolution fallback.
|
|
37
|
+
* Tries progressively different resolutions if the initial request fails.
|
|
38
|
+
*
|
|
39
|
+
* @param baseConstraints - Base constraints (facingMode, audio, etc.)
|
|
40
|
+
* @param fallbacks - Optional custom fallback order (defaults to 720p -> 1080p -> 480p -> auto)
|
|
41
|
+
* @returns MediaStream from the camera
|
|
42
|
+
* @throws Error if all fallbacks fail or MediaDevices API not available
|
|
43
|
+
*/
|
|
44
|
+
async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RESOLUTION_FALLBACKS) {
|
|
45
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices) throw new Error("MediaDevices API not available");
|
|
46
|
+
const baseVideo = baseConstraints.video;
|
|
47
|
+
for (let i = 0; i < fallbacks.length; i++) {
|
|
48
|
+
const resolution = fallbacks[i];
|
|
49
|
+
const videoConstraints = { ...baseVideo };
|
|
50
|
+
if (resolution.width) videoConstraints.width = { ideal: resolution.width };
|
|
51
|
+
if (resolution.height) videoConstraints.height = { ideal: resolution.height };
|
|
52
|
+
if (!resolution.width && !resolution.height) {
|
|
53
|
+
delete videoConstraints.width;
|
|
54
|
+
delete videoConstraints.height;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
return await navigator.mediaDevices.getUserMedia({
|
|
58
|
+
...baseConstraints,
|
|
59
|
+
video: videoConstraints
|
|
60
|
+
});
|
|
61
|
+
} catch (error) {
|
|
62
|
+
if (i === fallbacks.length - 1) throw error;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
throw new Error("All camera resolution fallbacks failed");
|
|
66
|
+
}
|
|
67
|
+
function stopCameraStream(stream) {
|
|
68
|
+
for (const track of stream.getTracks()) track.stop();
|
|
69
|
+
}
|
|
70
|
+
async function enumerateVideoDevices() {
|
|
71
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices) return [];
|
|
72
|
+
return (await navigator.mediaDevices.enumerateDevices()).filter((d) => d.kind === "videoinput");
|
|
73
|
+
}
|
|
74
|
+
async function applyTrackConstraints(track, constraints) {
|
|
75
|
+
await track.applyConstraints(constraints);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { stopCameraStream as a, requestCameraWithFallback as i, enumerateVideoDevices as n, requestCameraAccess as r, applyTrackConstraints as t };
|
package/dist/camera.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
1
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-Duy2rDxF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/permissions/permissionServices.d.ts
|
|
4
4
|
type RequestPermissionOptions = {
|
|
5
5
|
requestMotion?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Also request microphone access in the same `getUserMedia` call. Used by
|
|
8
|
+
* Video Selfie, which records audio alongside video. Defaults to `false` so
|
|
9
|
+
* camera-only flows (selfie, ID) keep requesting `{ video: true }` exactly.
|
|
10
|
+
*/
|
|
11
|
+
requestAudio?: boolean;
|
|
6
12
|
};
|
|
7
13
|
declare function checkPermission(): Promise<PermissionResult>;
|
|
8
14
|
/**
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import "./MotionSensorProvider-
|
|
3
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
4
|
-
import "./camera-
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import "./MotionSensorProvider-DCbId4De.esm.js";
|
|
3
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-BJhGL13R.esm.js";
|
|
4
|
+
import "./camera-DUkgmYMo.esm.js";
|
|
5
5
|
|
|
6
6
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { t as CameraStream } from "./camera-biGPWlmx.js";
|
|
2
|
-
|
|
3
1
|
//#region ../infra/src/media/canvas.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Class representing a canvas element for image capture and manipulation.
|
|
@@ -111,42 +109,4 @@ declare class IncodeCanvas {
|
|
|
111
109
|
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
112
110
|
}
|
|
113
111
|
//#endregion
|
|
114
|
-
|
|
115
|
-
type StreamCanvasCaptureOptions = {
|
|
116
|
-
fps?: number;
|
|
117
|
-
width?: number;
|
|
118
|
-
height?: number;
|
|
119
|
-
};
|
|
120
|
-
type StreamCanvasCaptureEventMap = {
|
|
121
|
-
frame: Event;
|
|
122
|
-
};
|
|
123
|
-
declare class StreamCanvasCapture {
|
|
124
|
-
private video;
|
|
125
|
-
private canvas;
|
|
126
|
-
private ctx;
|
|
127
|
-
private rafId;
|
|
128
|
-
private lastFrameTimeSeconds;
|
|
129
|
-
private lastTickTimeMs;
|
|
130
|
-
private hasFrame;
|
|
131
|
-
private disposed;
|
|
132
|
-
private eventTarget;
|
|
133
|
-
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
134
|
-
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
135
|
-
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
136
|
-
/**
|
|
137
|
-
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
138
|
-
*/
|
|
139
|
-
getLatestCanvas(): IncodeCanvas | null;
|
|
140
|
-
/**
|
|
141
|
-
* Returns the latest cached frame as raw {@link ImageData}.
|
|
142
|
-
*/
|
|
143
|
-
getLatestFrame(): ImageData | null;
|
|
144
|
-
/**
|
|
145
|
-
* Disposes internal resources and stops the capture loop.
|
|
146
|
-
*/
|
|
147
|
-
dispose(): void;
|
|
148
|
-
private rafLoop;
|
|
149
|
-
private tick;
|
|
150
|
-
}
|
|
151
|
-
//#endregion
|
|
152
|
-
export { IncodeCanvas as n, StreamCanvasCapture as t };
|
|
112
|
+
export { IncodeCanvas as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CJ3G2zqi.js";
|
|
3
|
+
import "./Actor-CGEelYtQ.js";
|
|
4
|
+
import * as xstate1374 from "xstate";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
|
|
6
7
|
declare const MIN_PASSWORD_LENGTH = 8;
|
|
@@ -39,7 +40,7 @@ type CertificateIssuanceContext = {
|
|
|
39
40
|
type CertificateIssuanceInput = {
|
|
40
41
|
config: CertificateIssuanceConfig;
|
|
41
42
|
};
|
|
42
|
-
declare const certificateIssuanceMachine:
|
|
43
|
+
declare const certificateIssuanceMachine: xstate1374.StateMachine<CertificateIssuanceContext, {
|
|
43
44
|
type: "LOAD";
|
|
44
45
|
} | {
|
|
45
46
|
type: "PASSWORD_CHANGED";
|
|
@@ -53,28 +54,28 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
53
54
|
} | {
|
|
54
55
|
type: "FINISH";
|
|
55
56
|
}, {
|
|
56
|
-
[x: string]:
|
|
57
|
+
[x: string]: xstate1374.ActorRefFromLogic<xstate1374.PromiseActorLogic<IssueCertificateResponse, {
|
|
57
58
|
password: string;
|
|
58
|
-
},
|
|
59
|
+
}, xstate1374.EventObject>> | undefined;
|
|
59
60
|
}, {
|
|
60
61
|
src: "issueCertificate";
|
|
61
|
-
logic:
|
|
62
|
+
logic: xstate1374.PromiseActorLogic<IssueCertificateResponse, {
|
|
62
63
|
password: string;
|
|
63
|
-
},
|
|
64
|
+
}, xstate1374.EventObject>;
|
|
64
65
|
id: string | undefined;
|
|
65
|
-
},
|
|
66
|
+
}, xstate1374.Values<{
|
|
66
67
|
setPassword: {
|
|
67
68
|
type: "setPassword";
|
|
68
|
-
params:
|
|
69
|
+
params: xstate1374.NonReducibleUnknown;
|
|
69
70
|
};
|
|
70
71
|
setBlob: {
|
|
71
72
|
type: "setBlob";
|
|
72
|
-
params:
|
|
73
|
+
params: xstate1374.NonReducibleUnknown;
|
|
73
74
|
};
|
|
74
75
|
}>, {
|
|
75
76
|
type: "isPasswordValid";
|
|
76
77
|
params: unknown;
|
|
77
|
-
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput,
|
|
78
|
+
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1374.NonReducibleUnknown, xstate1374.EventObject, xstate1374.MetaObject, {
|
|
78
79
|
readonly id: "certificateIssuance";
|
|
79
80
|
readonly initial: "idle";
|
|
80
81
|
readonly context: ({
|
|
@@ -83,39 +84,39 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
83
84
|
spawn: {
|
|
84
85
|
<TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
|
|
85
86
|
src: "issueCertificate";
|
|
86
|
-
logic:
|
|
87
|
+
logic: xstate1374.PromiseActorLogic<IssueCertificateResponse, {
|
|
87
88
|
password: string;
|
|
88
|
-
},
|
|
89
|
+
}, xstate1374.EventObject>;
|
|
89
90
|
id: string | undefined;
|
|
90
91
|
} extends infer T ? T extends {
|
|
91
92
|
src: "issueCertificate";
|
|
92
|
-
logic:
|
|
93
|
+
logic: xstate1374.PromiseActorLogic<IssueCertificateResponse, {
|
|
93
94
|
password: string;
|
|
94
|
-
},
|
|
95
|
+
}, xstate1374.EventObject>;
|
|
95
96
|
id: string | undefined;
|
|
96
97
|
} ? T extends {
|
|
97
98
|
src: TSrc;
|
|
98
|
-
} ?
|
|
99
|
+
} ? xstate1374.ConditionalRequired<[options?: ({
|
|
99
100
|
id?: T["id"] | undefined;
|
|
100
101
|
systemId?: string;
|
|
101
|
-
input?:
|
|
102
|
+
input?: xstate1374.InputFrom<T["logic"]> | undefined;
|
|
102
103
|
syncSnapshot?: boolean;
|
|
103
|
-
} & { [K in
|
|
104
|
+
} & { [K in xstate1374.RequiredActorOptions<T>]: unknown }) | undefined], xstate1374.IsNotNever<xstate1374.RequiredActorOptions<T>>> : never : never : never): xstate1374.ActorRefFromLogic<xstate1374.GetConcreteByKey<{
|
|
104
105
|
src: "issueCertificate";
|
|
105
|
-
logic:
|
|
106
|
+
logic: xstate1374.PromiseActorLogic<IssueCertificateResponse, {
|
|
106
107
|
password: string;
|
|
107
|
-
},
|
|
108
|
+
}, xstate1374.EventObject>;
|
|
108
109
|
id: string | undefined;
|
|
109
110
|
}, "src", TSrc>["logic"]>;
|
|
110
|
-
<TLogic extends
|
|
111
|
+
<TLogic extends xstate1374.AnyActorLogic>(src: TLogic, ...[options]: xstate1374.ConditionalRequired<[options?: ({
|
|
111
112
|
id?: never;
|
|
112
113
|
systemId?: string;
|
|
113
|
-
input?:
|
|
114
|
+
input?: xstate1374.InputFrom<TLogic> | undefined;
|
|
114
115
|
syncSnapshot?: boolean;
|
|
115
|
-
} & { [K in
|
|
116
|
+
} & { [K in xstate1374.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1374.IsNotNever<xstate1374.RequiredLogicInput<TLogic>>>): xstate1374.ActorRefFromLogic<TLogic>;
|
|
116
117
|
};
|
|
117
118
|
input: CertificateIssuanceInput;
|
|
118
|
-
self:
|
|
119
|
+
self: xstate1374.ActorRef<xstate1374.MachineSnapshot<CertificateIssuanceContext, {
|
|
119
120
|
type: "LOAD";
|
|
120
121
|
} | {
|
|
121
122
|
type: "PASSWORD_CHANGED";
|
|
@@ -128,7 +129,7 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
128
129
|
type: "DOWNLOAD_FAILED";
|
|
129
130
|
} | {
|
|
130
131
|
type: "FINISH";
|
|
131
|
-
}, Record<string,
|
|
132
|
+
}, Record<string, xstate1374.AnyActorRef | undefined>, xstate1374.StateValue, string, unknown, any, any>, {
|
|
132
133
|
type: "LOAD";
|
|
133
134
|
} | {
|
|
134
135
|
type: "PASSWORD_CHANGED";
|
|
@@ -141,7 +142,7 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
141
142
|
type: "DOWNLOAD_FAILED";
|
|
142
143
|
} | {
|
|
143
144
|
type: "FINISH";
|
|
144
|
-
},
|
|
145
|
+
}, xstate1374.AnyEventObject>;
|
|
145
146
|
}) => {
|
|
146
147
|
config: CertificateIssuanceConfig;
|
|
147
148
|
password: string;
|
|
@@ -189,7 +190,7 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
189
190
|
} | {
|
|
190
191
|
type: "FINISH";
|
|
191
192
|
};
|
|
192
|
-
self:
|
|
193
|
+
self: xstate1374.ActorRef<xstate1374.MachineSnapshot<CertificateIssuanceContext, {
|
|
193
194
|
type: "LOAD";
|
|
194
195
|
} | {
|
|
195
196
|
type: "PASSWORD_CHANGED";
|
|
@@ -202,7 +203,7 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
202
203
|
type: "DOWNLOAD_FAILED";
|
|
203
204
|
} | {
|
|
204
205
|
type: "FINISH";
|
|
205
|
-
}, Record<string,
|
|
206
|
+
}, Record<string, xstate1374.AnyActorRef>, xstate1374.StateValue, string, unknown, any, any>, {
|
|
206
207
|
type: "LOAD";
|
|
207
208
|
} | {
|
|
208
209
|
type: "PASSWORD_CHANGED";
|
|
@@ -215,7 +216,7 @@ declare const certificateIssuanceMachine: xstate0.StateMachine<CertificateIssuan
|
|
|
215
216
|
type: "DOWNLOAD_FAILED";
|
|
216
217
|
} | {
|
|
217
218
|
type: "FINISH";
|
|
218
|
-
},
|
|
219
|
+
}, xstate1374.AnyEventObject>;
|
|
219
220
|
}) => {
|
|
220
221
|
password: string;
|
|
221
222
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
6
|
+
import "./urlUtils-BZqFU9rR.esm.js";
|
|
7
|
+
import "./externalFetch-CyhBfD-n.esm.js";
|
|
8
|
+
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-C07m7qtP.esm.js";
|
|
8
9
|
|
|
9
10
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
|
10
11
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as getApi, r as getToken } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as externalFetch } from "./externalFetch-
|
|
1
|
+
import { n as getApi, r as getToken } from "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
3
|
+
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
4
|
+
import { t as externalFetch } from "./externalFetch-CyhBfD-n.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/certificate-issuance/certificateIssuanceServices.ts
|
|
7
7
|
function buildIssueCertificateUrl(baseURL) {
|