@incodetech/core 0.0.0-dev-20260629-bd5fa5af → 0.0.0-dev-20260630-d195eb29
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-fTdHcYRZ.esm.js → 3dAvatarProvider-g_5khIgq.esm.js} +2 -2
- package/dist/{Face2DProvider-B6fcPUZn.esm.js → Face2DProvider-BciFOpqp.esm.js} +2 -2
- package/dist/FaceDetectionProvider-C723Vh4J.d.ts +119 -0
- package/dist/{deepsightService-2AJMEilg.d.ts → IWasmUtilCapability-DCe8akKn.d.ts} +3 -70
- package/dist/{OpenViduRecordingProvider-NzFiqaEU.esm.js → OpenViduRecordingProvider-CK6A5kiU.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-DSgQUHtW.esm.js → PrivacyLensProvider-BZsWqkv9.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-opC6JnBb.d.ts → StreamCanvasCapture-DHDxv6hH.d.ts} +2 -2
- package/dist/{StreamCanvasCapture-Koi0Xc6f.esm.js → StreamCanvasCapture-DNcWK2xu.esm.js} +1 -1
- package/dist/{WasmUtilProvider-CMHQB61Z.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +10 -1
- package/dist/{addressSearch-Cmf1l1zD.esm.js → addressSearch-BhjurwQo.esm.js} +4 -4
- package/dist/{ae-signature-Kjug39_Z.esm.js → ae-signature-CPKOMQX7.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +10 -10
- package/dist/antifraud.d.ts +3 -3
- package/dist/antifraud.esm.js +7 -7
- package/dist/{antifraudManager-B26zslni.d.ts → antifraudManager-0tq22vID.d.ts} +2 -2
- package/dist/{antifraudManager-CSREEbtK.esm.js → antifraudManager-CMJCjGu9.esm.js} +4 -4
- package/dist/{antifraudStateMachine-BLZzwvJY.esm.js → antifraudStateMachine-CwsNI6mD.esm.js} +3 -3
- package/dist/authentication.d.ts +18 -16
- package/dist/authentication.esm.js +33 -32
- package/dist/{authenticationManager-DFEOJMIb.esm.js → authenticationManager-B_iOhBuD.esm.js} +6 -6
- package/dist/{authenticationManager-BEYy6HBV.d.ts → authenticationManager-DYeRtXSb.d.ts} +3 -3
- package/dist/{authenticationStateMachine-ClAzlt7B.esm.js → authenticationStateMachine-BJFMX_d6.esm.js} +8 -8
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-6nEEESaK.esm.js → backCameraStream-cH8Ctfrg.esm.js} +3 -3
- package/dist/{browserSimulation-BaRUkqo0.esm.js → browserSimulation-CUgn29iJ.esm.js} +2 -2
- package/dist/camera-3BoIlw6r.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/certificate-issuance.d.ts +30 -30
- package/dist/certificate-issuance.esm.js +8 -8
- package/dist/{certificateIssuanceStateMachine-DVX0JsVJ.esm.js → certificateIssuanceStateMachine-B0zUpVxm.esm.js} +4 -4
- package/dist/{clientLifecycle-2YDYcFDL.esm.js → clientLifecycle-Ct7h9uxx.esm.js} +2 -2
- package/dist/consent.d.ts +3 -3
- package/dist/consent.esm.js +7 -7
- package/dist/{consentManager-BJmYmw_6.esm.js → consentManager-D71Ar-I7.esm.js} +4 -4
- package/dist/{consentManager-mbbmOknL.d.ts → consentManager-vQ-mMpd4.d.ts} +49 -49
- package/dist/{consentStateMachine-DgSJ1ayL.esm.js → consentStateMachine-enfdBshh.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +3 -3
- package/dist/cpf-ocr.esm.js +7 -7
- package/dist/{cpfOcrManager-Dui-hl3s.d.ts → cpfOcrManager-CMc0MvGD.d.ts} +19 -19
- package/dist/{cpfOcrManager-Dpj_HlZe.esm.js → cpfOcrManager-DkkrkErG.esm.js} +6 -6
- package/dist/{createFaceAvatar-D94d2jjL.esm.js → createFaceAvatar-BXYFc_kA.esm.js} +3 -3
- package/dist/{createFaceAvatar-CCD0HA4W.d.ts → createFaceAvatar-DNMSIcRb.d.ts} +8 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +6 -6
- package/dist/curp-validation.d.ts +9 -9
- package/dist/curp-validation.esm.js +7 -7
- package/dist/{curpValidationManager-IqH8rIei.esm.js → curpValidationManager-DKh_9ckM.esm.js} +4 -4
- package/dist/{curpValidationManager-5xtZ6QlA.d.ts → curpValidationManager-DcnaKhq7.d.ts} +3 -3
- package/dist/{curpValidationStateMachine-Cr2o6gEl.esm.js → curpValidationStateMachine-DzXb57MU.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +6 -6
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +6 -6
- package/dist/{customWatchlistStateMachine-CTczBFAU.esm.js → customWatchlistStateMachine-Cl2gXi_b.esm.js} +3 -3
- package/dist/{deepsightLoader-CK6AgVMy.esm.js → deepsightLoader-DIUgvW9k.esm.js} +15 -15
- package/dist/deepsightService-6J67NoN9.d.ts +69 -0
- package/dist/{deepsightService-Bx9Yq13u.esm.js → deepsightService-lLD3G31S.esm.js} +8 -8
- package/dist/device.esm.js +4 -4
- package/dist/document-capture.d.ts +248 -248
- package/dist/document-capture.esm.js +14 -14
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +9 -9
- package/dist/{documentCaptureStateMachine-C4RJx338.esm.js → documentCaptureStateMachine-JAnvcB0V.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +7 -7
- package/dist/{dynamicFormsStateMachine-DXYYYnqM.esm.js → dynamicFormsStateMachine-DdU0Y5OL.esm.js} +4 -4
- package/dist/ekyb.d.ts +8 -8
- package/dist/ekyb.esm.js +21 -20
- package/dist/{ekybStateMachine-B8qkpmJU.esm.js → ekybStateMachine-C7SeI8uX.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +9 -9
- package/dist/{ekycStateMachine-M8Z7G5x4.esm.js → ekycStateMachine-DajcBUqD.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +9 -9
- package/dist/{electronicSignatureManager--IIqwxf3.esm.js → electronicSignatureManager-Dz-CglxP.esm.js} +7 -7
- package/dist/email.d.ts +4 -4
- package/dist/email.esm.js +9 -9
- package/dist/{emailManager-BzeQI0Vo.esm.js → emailManager-Bf8HT0py.esm.js} +5 -5
- package/dist/{emailManager-hmA0Elfn.d.ts → emailManager-D5kHN_Zj.d.ts} +3 -3
- package/dist/{emailStateMachine-BuoiLQJF.esm.js → emailStateMachine-DBtggNGB.esm.js} +5 -5
- package/dist/{endpoints-CJH8R79Q.esm.js → endpoints-BzMJFAPV.esm.js} +9 -0
- package/dist/{events-C5GpmPbS.esm.js → events-CqGY1yMq.esm.js} +1 -1
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +3 -3
- package/dist/extensibility.d.ts +31 -29
- package/dist/extensibility.esm.js +67 -65
- package/dist/{externalFetch-DHzmXTlR.esm.js → externalFetch-Sh2H5VZA.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +6 -6
- package/dist/{faceCaptureManagerFactory-VzPdcqEH.d.ts → faceCaptureManagerFactory-D6uM60D6.d.ts} +12 -11
- package/dist/{faceCaptureManagerFactory-x5MVIR9m.esm.js → faceCaptureManagerFactory-DWZ4fnkS.esm.js} +6 -6
- package/dist/{faceCaptureSetup-BwhVPh3B.esm.js → faceCaptureSetup-BX9vTP8-.esm.js} +9 -9
- package/dist/{faceMatchStateMachine-CrODY2X6.esm.js → faceMatchStateMachine-C-ioayCI.esm.js} +3 -3
- package/dist/field-comparison.d.ts +3 -3
- package/dist/field-comparison.esm.js +6 -6
- package/dist/{fieldComparisonManager-n9Rz0az-.esm.js → fieldComparisonManager-Dvx8pH8s.esm.js} +5 -5
- package/dist/{fieldComparisonManager-CvaG1tq6.d.ts → fieldComparisonManager-brjMzIRO.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +4 -4
- package/dist/fiscal-qr.esm.js +13 -13
- package/dist/flow-events.d.ts +8 -8
- package/dist/flow.d.ts +13 -13
- package/dist/flow.esm.js +22 -21
- package/dist/{flowCompletionService-CbGOzDDc.esm.js → flowCompletionService-BfjCIg8B.esm.js} +3 -3
- package/dist/{flowServices-bPOYOymJ.esm.js → flowServices-C98Yy_Gp.esm.js} +24 -9
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +7 -7
- package/dist/{geolocationStateMachine-D6afIT5B.esm.js → geolocationStateMachine-DNwn-K0X.esm.js} +4 -4
- package/dist/{getDeviceClass-DF3rXlUY.esm.js → getDeviceClass-CKbolkq0.esm.js} +1 -1
- package/dist/{getDeviceData-CxHuJqz9.esm.js → getDeviceData-cRiZDfyj.esm.js} +1 -1
- package/dist/government-validation.d.ts +3 -3
- package/dist/government-validation.esm.js +8 -8
- package/dist/{governmentValidationStateMachine-Cl_w7lDx.esm.js → governmentValidationStateMachine-BrbwYVeb.esm.js} +5 -5
- package/dist/home.d.ts +17 -17
- package/dist/home.esm.js +4 -4
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +7 -7
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +6 -6
- package/dist/id.d.ts +15 -14
- package/dist/id.esm.js +40 -38
- package/dist/idCaptureDefaults-Dtu-M3av.esm.js +188 -0
- package/dist/{idCaptureManager-DfwBlIzj.d.ts → idCaptureManager-D8vun2iW.d.ts} +19 -11
- package/dist/{idCaptureManager-1ibNrMn5.esm.js → idCaptureManager-IEa7x3cX.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-BT3pAC0s.esm.js → idCaptureStateMachine-BwJ4Oja2.esm.js} +20 -187
- package/dist/{idOcrStateMachine-CSnVfav-.esm.js → idOcrStateMachine-BrgpQWHm.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-BYrQ6Ism.esm.js → idVerificationStateMachine-CVfNJ9c4.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +3 -3
- package/dist/identity-reuse.esm.js +7 -7
- package/dist/{identityReuseManager-BTBb6dNP.esm.js → identityReuseManager-BdtFLG5j.esm.js} +4 -4
- package/dist/{identityReuseManager-_lnzJh2v.d.ts → identityReuseManager-D23g53js.d.ts} +36 -36
- package/dist/{identityReuseStateMachine-B-DkkQQG.esm.js → identityReuseStateMachine-CJn-Eaqd.esm.js} +3 -3
- package/dist/{index-CC-2VtlL.d.ts → index-B7RboxdU.d.ts} +169 -169
- package/dist/{index-DCAqU5Gu.d.ts → index-Oj_Fvhsa.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +17 -17
- package/dist/{invokeOnCaptureCallback-BuIOnlDE.esm.js → invokeOnCaptureCallback-D5rcHH57.esm.js} +1 -1
- package/dist/{lib-BToFFxxd.esm.js → lib-Bjd6nOLG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +9 -9
- package/dist/mandatory-consent.esm.js +7 -7
- package/dist/{mandatoryConsentManager-CJy55IWn.d.ts → mandatoryConsentManager-C_Av-opK.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-DOzIV_FJ.esm.js → mandatoryConsentManager-DMQBfOP7.esm.js} +4 -4
- package/dist/{mandatoryConsentStateMachine-_-BhToZb.esm.js → mandatoryConsentStateMachine-A0_KwmZK.esm.js} +3 -3
- package/dist/mediaRecorderOptions-WW6P1KjB.esm.js +42 -0
- package/dist/{onDeviceFaceResults-Bdtdz4jd.esm.js → onDeviceFaceResults-u-0o4u8K.esm.js} +21 -17
- package/dist/openviduLazy-jPgABwrt.esm.js +3 -0
- package/dist/{openviduLazy-BudLG7F2.esm.js → openviduLazy-wEojM41w.esm.js} +2 -2
- package/dist/{permissionGuards-DZGK8phT.esm.js → permissionGuards-pJ0BBI8s.esm.js} +1 -1
- package/dist/{permissionServices-BDlTL4JT.esm.js → permissionServices-DylQrLrh.esm.js} +7 -4
- package/dist/personhood.d.ts +15 -13
- package/dist/personhood.esm.js +27 -27
- package/dist/phone.d.ts +4 -4
- package/dist/phone.esm.js +9 -9
- package/dist/{phoneManager-Ss4F2DsU.esm.js → phoneManager-DI_wCv7R.esm.js} +5 -5
- package/dist/{phoneManager-C6Go0zbQ.d.ts → phoneManager-DPDc0FVX.d.ts} +3 -3
- package/dist/{phoneStateMachine-DTP4bnzW.esm.js → phoneStateMachine-DBFRhm__.esm.js} +5 -5
- package/dist/{qe-signature-0orRwkzA.esm.js → qe-signature-DBH54XrQ.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +10 -10
- package/dist/{recordingService-BlcyNkhH.esm.js → recordingService-Bu2ksN82.esm.js} +7 -34
- package/dist/redirect-to-mobile.d.ts +3 -3
- package/dist/redirect-to-mobile.esm.js +9 -9
- package/dist/{redirectToMobileManager-BNyb1Snt.d.ts → redirectToMobileManager-Ck3mOj_a.d.ts} +2 -2
- package/dist/{redirectToMobileManager-CivoSWZq.esm.js → redirectToMobileManager-DMecrpfp.esm.js} +5 -5
- package/dist/{redirectToMobileStateMachine-DHUqKZFf.esm.js → redirectToMobileStateMachine-BDbLXubh.esm.js} +5 -5
- package/dist/{runChildModule-C1mLru0r.esm.js → runChildModule-B3dFXzju.esm.js} +3 -3
- package/dist/selfie.d.ts +18 -16
- package/dist/selfie.esm.js +34 -33
- package/dist/{selfieManager-CSV6OSnm.d.ts → selfieManager-CQuIQApd.d.ts} +3 -3
- package/dist/{selfieManager-Bdpwfgqz.esm.js → selfieManager-dj_tGmCf.esm.js} +6 -6
- package/dist/{selfieStateMachine-CwBMovGA.esm.js → selfieStateMachine-DE5bvZIY.esm.js} +4 -4
- package/dist/{session-CSjmHjvS.esm.js → session-ACyn7yHq.esm.js} +3 -3
- package/dist/session.d.ts +7 -7
- package/dist/session.esm.js +17 -17
- package/dist/{sessionInitializer-DFzS1tGJ.esm.js → sessionInitializer-CE4VkACt.esm.js} +10 -10
- package/dist/{setup-D0n186fR.esm.js → setup-BrJz_4MY.esm.js} +33 -10
- package/dist/{setup-CBG8_-sJ.d.ts → setup-Da51UnII.d.ts} +16 -3
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +6 -6
- package/dist/{signatureStateMachine-3spNUdNE.esm.js → signatureStateMachine-FeZrImMZ.esm.js} +3 -3
- package/dist/{stats-s3hq1r1j.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/{tri-ByBCC5y2.esm.js → tri-CvoIihYm.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-DKh4PZHK.esm.js → tri.esm-B47NPJjh.esm.js} +1 -1
- package/dist/tri.esm.js +2 -2
- package/dist/trust-graph.d.ts +3 -3
- package/dist/trust-graph.esm.js +4 -4
- package/dist/{FaceDetectionProvider-BHFXkqW_.d.ts → types-BBSIY1G3.d.ts} +4 -120
- package/dist/{types-DiIMjgm2.d.ts → types-BCcaoWwg.d.ts} +1 -1
- package/dist/{types-CzQBFW6W.d.ts → types-B_YCuHZx.d.ts} +1 -1
- package/dist/{types-B5wtXkOy.d.ts → types-Cyi3gwPK.d.ts} +6 -2
- package/dist/{types-BmLWSDdq.esm.js → types-ElOJAGaM.esm.js} +1 -0
- package/dist/video-selfie.d.ts +348 -0
- package/dist/video-selfie.esm.js +1472 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup-BPFiCw6Z.d.ts → warmup-CZ80odyW.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +18 -18
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +6 -6
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +6 -6
- package/dist/{watchlistForBusinessStateMachine-DUnGwscI.esm.js → watchlistForBusinessStateMachine-Dpx2tEHF.esm.js} +3 -3
- package/dist/{watchlistStateMachine-D6x4BABN.esm.js → watchlistStateMachine-z7-X0tWf.esm.js} +3 -3
- package/dist/workflow.d.ts +115 -115
- package/dist/workflow.esm.js +75 -72
- package/package.json +8 -3
- package/dist/camera-Kk9gT8I8.esm.js +0 -22
- package/dist/openviduLazy-DRlOk6Fa.esm.js +0 -3
- /package/dist/{Actor-D0X2YV92.d.ts → Actor-DYjXVMQm.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider--Rda18RB.esm.js → BrowserEnvironmentProvider-CrBAYw20.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-BsoYOG0O.esm.js → BrowserStorageProvider-C2pRHzF2.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-Dp6Dvq18.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{BrowserVisibilityObserverProvider-EZ_rxOqV.esm.js → BrowserVisibilityObserverProvider-CwxgeRE5.esm.js} +0 -0
- /package/dist/{ITimerCapability-Cqq9AIfp.esm.js → ITimerCapability-C2fjikpS.esm.js} +0 -0
- /package/dist/{IVisibilityObserverCapability-DIWWAmF2.d.ts → IVisibilityObserverCapability-BxPj7hsu.d.ts} +0 -0
- /package/dist/{IpifyProvider-CN96dlWf.esm.js → IpifyProvider-BRW14_uo.esm.js} +0 -0
- /package/dist/{Manager-BV5ZkaGs.d.ts → Manager-BylDhZIB.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-DIBb_60H.esm.js → MotionSensorProvider-BtOFKz9L.esm.js} +0 -0
- /package/dist/{api-KOw05L_i.esm.js → api-DsbUi7TO.esm.js} +0 -0
- /package/dist/{apiError-CFVRvReX.esm.js → apiError-C4NaqM8p.esm.js} +0 -0
- /package/dist/{browser-DlFgHpoC-CTDo0MZI.esm.js → browser-DlFgHpoC-BieMg30k.esm.js} +0 -0
- /package/dist/{camera-CE_iClyf.d.ts → camera-CWO06Lu5.d.ts} +0 -0
- /package/dist/{canvas-CYuviOmq.esm.js → canvas-BhqSuIuO.esm.js} +0 -0
- /package/dist/{canvas-BFl4HMZy.d.ts → canvas-pLrXU1id.d.ts} +0 -0
- /package/dist/{chunk-DWboWZWR.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-DxC8njkD.esm.js → cpf-Dv38bdsH.esm.js} +0 -0
- /package/dist/{dateUtils-GSUTCu5W.esm.js → dateUtils-CmsPWQ3R.esm.js} +0 -0
- /package/dist/{flowCompletionService-CYN44D74.d.ts → flowCompletionService-9TuYMrhu.d.ts} +0 -0
- /package/dist/{getBrowser-THrm1MWD.esm.js → getBrowser-BKXPso_u.esm.js} +0 -0
- /package/dist/{getDeviceClass-BsWQ9mVm.esm.js → getDeviceClass-DYWA0flM.esm.js} +0 -0
- /package/dist/{http-BnPz8fHx.esm.js → http-BbZ696Pj.esm.js} +0 -0
- /package/dist/{index-B0ZPExIF.d.ts → index-BAyZ8_iI.d.ts} +0 -0
- /package/dist/{mediapipeShared-COY8pwRa.esm.js → mediapipeShared-Bcmkzs3x.esm.js} +0 -0
- /package/dist/{otp-DoLw7vGV.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-D3JAuulv.d.ts → otp-DZSnImi6.d.ts} +0 -0
- /package/dist/{platform-CwFB3DeY.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-BYdJ3Mc2.esm.js → types--nHSBKJP.esm.js} +0 -0
- /package/dist/{types-Dzi_YW-0.d.ts → types-BOiKESZY.d.ts} +0 -0
- /package/dist/{types-CoMD38x7.d.ts → types-CTnn7kUK.d.ts} +0 -0
- /package/dist/{urlUtils-i6O-S_Eb.esm.js → urlUtils-D8J2Zta7.esm.js} +0 -0
- /package/dist/{video-CSEulBxm.esm.js → video-Dy6zy_yl.esm.js} +0 -0
- /package/dist/{xstate.esm-MXSDq4yW.esm.js → xstate.esm-h2zbOb-8.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-BOiKESZY.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-BtOFKz9L.esm.js";
|
|
3
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-DylQrLrh.esm.js";
|
|
4
|
+
import "./camera-3BoIlw6r.esm.js";
|
|
5
5
|
|
|
6
6
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BylDhZIB.js";
|
|
2
|
+
import "./Actor-DYjXVMQm.js";
|
|
3
|
+
import * as xstate918 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
|
|
6
6
|
declare const MIN_PASSWORD_LENGTH = 8;
|
|
@@ -39,7 +39,7 @@ type CertificateIssuanceContext = {
|
|
|
39
39
|
type CertificateIssuanceInput = {
|
|
40
40
|
config: CertificateIssuanceConfig;
|
|
41
41
|
};
|
|
42
|
-
declare const certificateIssuanceMachine:
|
|
42
|
+
declare const certificateIssuanceMachine: xstate918.StateMachine<CertificateIssuanceContext, {
|
|
43
43
|
type: "LOAD";
|
|
44
44
|
} | {
|
|
45
45
|
type: "PASSWORD_CHANGED";
|
|
@@ -53,28 +53,28 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
53
53
|
} | {
|
|
54
54
|
type: "FINISH";
|
|
55
55
|
}, {
|
|
56
|
-
[x: string]:
|
|
56
|
+
[x: string]: xstate918.ActorRefFromLogic<xstate918.PromiseActorLogic<IssueCertificateResponse, {
|
|
57
57
|
password: string;
|
|
58
|
-
},
|
|
58
|
+
}, xstate918.EventObject>> | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
src: "issueCertificate";
|
|
61
|
-
logic:
|
|
61
|
+
logic: xstate918.PromiseActorLogic<IssueCertificateResponse, {
|
|
62
62
|
password: string;
|
|
63
|
-
},
|
|
63
|
+
}, xstate918.EventObject>;
|
|
64
64
|
id: string | undefined;
|
|
65
|
-
},
|
|
65
|
+
}, xstate918.Values<{
|
|
66
66
|
setPassword: {
|
|
67
67
|
type: "setPassword";
|
|
68
|
-
params:
|
|
68
|
+
params: xstate918.NonReducibleUnknown;
|
|
69
69
|
};
|
|
70
70
|
setBlob: {
|
|
71
71
|
type: "setBlob";
|
|
72
|
-
params:
|
|
72
|
+
params: xstate918.NonReducibleUnknown;
|
|
73
73
|
};
|
|
74
74
|
}>, {
|
|
75
75
|
type: "isPasswordValid";
|
|
76
76
|
params: unknown;
|
|
77
|
-
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput,
|
|
77
|
+
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate918.NonReducibleUnknown, xstate918.EventObject, xstate918.MetaObject, {
|
|
78
78
|
readonly id: "certificateIssuance";
|
|
79
79
|
readonly initial: "idle";
|
|
80
80
|
readonly context: ({
|
|
@@ -83,39 +83,39 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
83
83
|
spawn: {
|
|
84
84
|
<TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
|
|
85
85
|
src: "issueCertificate";
|
|
86
|
-
logic:
|
|
86
|
+
logic: xstate918.PromiseActorLogic<IssueCertificateResponse, {
|
|
87
87
|
password: string;
|
|
88
|
-
},
|
|
88
|
+
}, xstate918.EventObject>;
|
|
89
89
|
id: string | undefined;
|
|
90
90
|
} extends infer T ? T extends {
|
|
91
91
|
src: "issueCertificate";
|
|
92
|
-
logic:
|
|
92
|
+
logic: xstate918.PromiseActorLogic<IssueCertificateResponse, {
|
|
93
93
|
password: string;
|
|
94
|
-
},
|
|
94
|
+
}, xstate918.EventObject>;
|
|
95
95
|
id: string | undefined;
|
|
96
96
|
} ? T extends {
|
|
97
97
|
src: TSrc;
|
|
98
|
-
} ?
|
|
98
|
+
} ? xstate918.ConditionalRequired<[options?: ({
|
|
99
99
|
id?: T["id"] | undefined;
|
|
100
100
|
systemId?: string;
|
|
101
|
-
input?:
|
|
101
|
+
input?: xstate918.InputFrom<T["logic"]> | undefined;
|
|
102
102
|
syncSnapshot?: boolean;
|
|
103
|
-
} & { [K in
|
|
103
|
+
} & { [K in xstate918.RequiredActorOptions<T>]: unknown }) | undefined], xstate918.IsNotNever<xstate918.RequiredActorOptions<T>>> : never : never : never): xstate918.ActorRefFromLogic<xstate918.GetConcreteByKey<{
|
|
104
104
|
src: "issueCertificate";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate918.PromiseActorLogic<IssueCertificateResponse, {
|
|
106
106
|
password: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate918.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
}, "src", TSrc>["logic"]>;
|
|
110
|
-
<TLogic extends
|
|
110
|
+
<TLogic extends xstate918.AnyActorLogic>(src: TLogic, ...[options]: xstate918.ConditionalRequired<[options?: ({
|
|
111
111
|
id?: never;
|
|
112
112
|
systemId?: string;
|
|
113
|
-
input?:
|
|
113
|
+
input?: xstate918.InputFrom<TLogic> | undefined;
|
|
114
114
|
syncSnapshot?: boolean;
|
|
115
|
-
} & { [K in
|
|
115
|
+
} & { [K in xstate918.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate918.IsNotNever<xstate918.RequiredLogicInput<TLogic>>>): xstate918.ActorRefFromLogic<TLogic>;
|
|
116
116
|
};
|
|
117
117
|
input: CertificateIssuanceInput;
|
|
118
|
-
self:
|
|
118
|
+
self: xstate918.ActorRef<xstate918.MachineSnapshot<CertificateIssuanceContext, {
|
|
119
119
|
type: "LOAD";
|
|
120
120
|
} | {
|
|
121
121
|
type: "PASSWORD_CHANGED";
|
|
@@ -128,7 +128,7 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
128
128
|
type: "DOWNLOAD_FAILED";
|
|
129
129
|
} | {
|
|
130
130
|
type: "FINISH";
|
|
131
|
-
}, Record<string,
|
|
131
|
+
}, Record<string, xstate918.AnyActorRef | undefined>, xstate918.StateValue, string, unknown, any, any>, {
|
|
132
132
|
type: "LOAD";
|
|
133
133
|
} | {
|
|
134
134
|
type: "PASSWORD_CHANGED";
|
|
@@ -141,7 +141,7 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
141
141
|
type: "DOWNLOAD_FAILED";
|
|
142
142
|
} | {
|
|
143
143
|
type: "FINISH";
|
|
144
|
-
},
|
|
144
|
+
}, xstate918.AnyEventObject>;
|
|
145
145
|
}) => {
|
|
146
146
|
config: CertificateIssuanceConfig;
|
|
147
147
|
password: string;
|
|
@@ -189,7 +189,7 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
189
189
|
} | {
|
|
190
190
|
type: "FINISH";
|
|
191
191
|
};
|
|
192
|
-
self:
|
|
192
|
+
self: xstate918.ActorRef<xstate918.MachineSnapshot<CertificateIssuanceContext, {
|
|
193
193
|
type: "LOAD";
|
|
194
194
|
} | {
|
|
195
195
|
type: "PASSWORD_CHANGED";
|
|
@@ -202,7 +202,7 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
202
202
|
type: "DOWNLOAD_FAILED";
|
|
203
203
|
} | {
|
|
204
204
|
type: "FINISH";
|
|
205
|
-
}, Record<string,
|
|
205
|
+
}, Record<string, xstate918.AnyActorRef>, xstate918.StateValue, string, unknown, any, any>, {
|
|
206
206
|
type: "LOAD";
|
|
207
207
|
} | {
|
|
208
208
|
type: "PASSWORD_CHANGED";
|
|
@@ -215,7 +215,7 @@ declare const certificateIssuanceMachine: xstate504.StateMachine<CertificateIssu
|
|
|
215
215
|
type: "DOWNLOAD_FAILED";
|
|
216
216
|
} | {
|
|
217
217
|
type: "FINISH";
|
|
218
|
-
},
|
|
218
|
+
}, xstate918.AnyEventObject>;
|
|
219
219
|
}) => {
|
|
220
220
|
password: string;
|
|
221
221
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { n as eventModuleNames } from "./types-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
6
|
-
import "./urlUtils-
|
|
7
|
-
import "./externalFetch-
|
|
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-
|
|
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 { c as createManager, s as createActor } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
6
|
+
import "./urlUtils-D8J2Zta7.esm.js";
|
|
7
|
+
import "./externalFetch-Sh2H5VZA.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-B0zUpVxm.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
|
11
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-h2zbOb-8.esm.js";
|
|
4
|
+
import { t as externalFetch } from "./externalFetch-Sh2H5VZA.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/certificate-issuance/certificateIssuanceServices.ts
|
|
7
7
|
function buildIssueCertificateUrl(baseURL) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as WasmWebClientError, c as setWebApiHttpTransport, l as setupWasmConnection, o as executeWasmRequest, s as initializeWasmWebClient } from "./WasmUtilProvider-
|
|
2
|
-
import { o as setClient } from "./api-
|
|
1
|
+
import { a as WasmWebClientError, c as setWebApiHttpTransport, l as setupWasmConnection, o as executeWasmRequest, s as initializeWasmWebClient } from "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import { o as setClient } from "./api-DsbUi7TO.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/http/createApi.ts
|
|
5
5
|
var FetchHttpError = class extends Error {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import "./Manager-BylDhZIB.js";
|
|
2
|
+
import "./Actor-DYjXVMQm.js";
|
|
3
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-vQ-mMpd4.js";
|
|
4
4
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import "./xstate.esm-
|
|
6
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
7
|
-
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import "./xstate.esm-h2zbOb-8.esm.js";
|
|
6
|
+
import { t as consentMachine } from "./consentStateMachine-enfdBshh.esm.js";
|
|
7
|
+
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-D71Ar-I7.esm.js";
|
|
8
8
|
|
|
9
9
|
export { consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-
|
|
2
|
-
import { n as eventModuleNames } from "./types-
|
|
3
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
4
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
1
|
+
import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-CqGY1yMq.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
3
|
+
import { c as createManager, s as createActor } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
4
|
+
import { t as consentMachine } from "./consentStateMachine-enfdBshh.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/consent/consentActor.ts
|
|
7
7
|
function createConsentActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BylDhZIB.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-DYjXVMQm.js";
|
|
3
|
+
import * as xstate1252 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -37,7 +37,7 @@ type ConsentContext = {
|
|
|
37
37
|
type ConsentInput = {
|
|
38
38
|
config: ConsentConfig;
|
|
39
39
|
};
|
|
40
|
-
declare const consentMachine:
|
|
40
|
+
declare const consentMachine: xstate1252.StateMachine<ConsentContext, {
|
|
41
41
|
type: "LOAD";
|
|
42
42
|
} | {
|
|
43
43
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -49,55 +49,55 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
49
49
|
} | {
|
|
50
50
|
type: "RESET";
|
|
51
51
|
}, {
|
|
52
|
-
[x: string]:
|
|
52
|
+
[x: string]: xstate1252.ActorRefFromLogic<xstate1252.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
53
53
|
consentId: string;
|
|
54
54
|
language?: string;
|
|
55
|
-
},
|
|
55
|
+
}, xstate1252.EventObject>> | xstate1252.ActorRefFromLogic<xstate1252.PromiseActorLogic<void, {
|
|
56
56
|
languageConsentId: string;
|
|
57
57
|
checkboxes: ConsentCheckbox[];
|
|
58
|
-
},
|
|
59
|
-
},
|
|
58
|
+
}, xstate1252.EventObject>> | undefined;
|
|
59
|
+
}, xstate1252.Values<{
|
|
60
60
|
fetchConsent: {
|
|
61
61
|
src: "fetchConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate1252.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
language?: string;
|
|
65
|
-
},
|
|
65
|
+
}, xstate1252.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
68
|
submitConsent: {
|
|
69
69
|
src: "submitConsent";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate1252.PromiseActorLogic<void, {
|
|
71
71
|
languageConsentId: string;
|
|
72
72
|
checkboxes: ConsentCheckbox[];
|
|
73
|
-
},
|
|
73
|
+
}, xstate1252.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
}>,
|
|
76
|
+
}>, xstate1252.Values<{
|
|
77
77
|
setError: {
|
|
78
78
|
type: "setError";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate1252.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
clearError: {
|
|
82
82
|
type: "clearError";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate1252.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
resetContext: {
|
|
86
86
|
type: "resetContext";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate1252.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
setConsentData: {
|
|
90
90
|
type: "setConsentData";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate1252.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
toggleCheckbox: {
|
|
94
94
|
type: "toggleCheckbox";
|
|
95
|
-
params:
|
|
95
|
+
params: xstate1252.NonReducibleUnknown;
|
|
96
96
|
};
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput,
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1252.NonReducibleUnknown, xstate1252.EventObject, xstate1252.MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({
|
|
@@ -106,73 +106,73 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
106
106
|
spawn: {
|
|
107
107
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate1252.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
110
110
|
consentId: string;
|
|
111
111
|
language?: string;
|
|
112
|
-
},
|
|
112
|
+
}, xstate1252.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
} extends infer T ? T extends {
|
|
115
115
|
src: "fetchConsent";
|
|
116
|
-
logic:
|
|
116
|
+
logic: xstate1252.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
117
117
|
consentId: string;
|
|
118
118
|
language?: string;
|
|
119
|
-
},
|
|
119
|
+
}, xstate1252.EventObject>;
|
|
120
120
|
id: string | undefined;
|
|
121
121
|
} ? T extends {
|
|
122
122
|
src: TSrc;
|
|
123
|
-
} ?
|
|
123
|
+
} ? xstate1252.ConditionalRequired<[options?: ({
|
|
124
124
|
id?: T["id"] | undefined;
|
|
125
125
|
systemId?: string;
|
|
126
|
-
input?:
|
|
126
|
+
input?: xstate1252.InputFrom<T["logic"]> | undefined;
|
|
127
127
|
syncSnapshot?: boolean;
|
|
128
|
-
} & { [K in
|
|
128
|
+
} & { [K in xstate1252.RequiredActorOptions<T>]: unknown }) | undefined], xstate1252.IsNotNever<xstate1252.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
129
129
|
src: "submitConsent";
|
|
130
|
-
logic:
|
|
130
|
+
logic: xstate1252.PromiseActorLogic<void, {
|
|
131
131
|
languageConsentId: string;
|
|
132
132
|
checkboxes: ConsentCheckbox[];
|
|
133
|
-
},
|
|
133
|
+
}, xstate1252.EventObject>;
|
|
134
134
|
id: string | undefined;
|
|
135
135
|
} extends infer T_1 ? T_1 extends {
|
|
136
136
|
src: "submitConsent";
|
|
137
|
-
logic:
|
|
137
|
+
logic: xstate1252.PromiseActorLogic<void, {
|
|
138
138
|
languageConsentId: string;
|
|
139
139
|
checkboxes: ConsentCheckbox[];
|
|
140
|
-
},
|
|
140
|
+
}, xstate1252.EventObject>;
|
|
141
141
|
id: string | undefined;
|
|
142
142
|
} ? T_1 extends {
|
|
143
143
|
src: TSrc;
|
|
144
|
-
} ?
|
|
144
|
+
} ? xstate1252.ConditionalRequired<[options?: ({
|
|
145
145
|
id?: T_1["id"] | undefined;
|
|
146
146
|
systemId?: string;
|
|
147
|
-
input?:
|
|
147
|
+
input?: xstate1252.InputFrom<T_1["logic"]> | undefined;
|
|
148
148
|
syncSnapshot?: boolean;
|
|
149
|
-
} & { [K_1 in
|
|
149
|
+
} & { [K_1 in xstate1252.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1252.IsNotNever<xstate1252.RequiredActorOptions<T_1>>> : never : never : never)): xstate1252.ActorRefFromLogic<xstate1252.GetConcreteByKey<xstate1252.Values<{
|
|
150
150
|
fetchConsent: {
|
|
151
151
|
src: "fetchConsent";
|
|
152
|
-
logic:
|
|
152
|
+
logic: xstate1252.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
153
153
|
consentId: string;
|
|
154
154
|
language?: string;
|
|
155
|
-
},
|
|
155
|
+
}, xstate1252.EventObject>;
|
|
156
156
|
id: string | undefined;
|
|
157
157
|
};
|
|
158
158
|
submitConsent: {
|
|
159
159
|
src: "submitConsent";
|
|
160
|
-
logic:
|
|
160
|
+
logic: xstate1252.PromiseActorLogic<void, {
|
|
161
161
|
languageConsentId: string;
|
|
162
162
|
checkboxes: ConsentCheckbox[];
|
|
163
|
-
},
|
|
163
|
+
}, xstate1252.EventObject>;
|
|
164
164
|
id: string | undefined;
|
|
165
165
|
};
|
|
166
166
|
}>, "src", TSrc>["logic"]>;
|
|
167
|
-
<TLogic extends
|
|
167
|
+
<TLogic extends xstate1252.AnyActorLogic>(src: TLogic, ...[options]: xstate1252.ConditionalRequired<[options?: ({
|
|
168
168
|
id?: never;
|
|
169
169
|
systemId?: string;
|
|
170
|
-
input?:
|
|
170
|
+
input?: xstate1252.InputFrom<TLogic> | undefined;
|
|
171
171
|
syncSnapshot?: boolean;
|
|
172
|
-
} & { [K in
|
|
172
|
+
} & { [K in xstate1252.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1252.IsNotNever<xstate1252.RequiredLogicInput<TLogic>>>): xstate1252.ActorRefFromLogic<TLogic>;
|
|
173
173
|
};
|
|
174
174
|
input: ConsentInput;
|
|
175
|
-
self:
|
|
175
|
+
self: xstate1252.ActorRef<xstate1252.MachineSnapshot<ConsentContext, {
|
|
176
176
|
type: "LOAD";
|
|
177
177
|
} | {
|
|
178
178
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -183,7 +183,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
183
183
|
type: "RETRY";
|
|
184
184
|
} | {
|
|
185
185
|
type: "RESET";
|
|
186
|
-
}, Record<string,
|
|
186
|
+
}, Record<string, xstate1252.AnyActorRef | undefined>, xstate1252.StateValue, string, unknown, any, any>, {
|
|
187
187
|
type: "LOAD";
|
|
188
188
|
} | {
|
|
189
189
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -194,7 +194,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
194
194
|
type: "RETRY";
|
|
195
195
|
} | {
|
|
196
196
|
type: "RESET";
|
|
197
|
-
},
|
|
197
|
+
}, xstate1252.AnyEventObject>;
|
|
198
198
|
}) => {
|
|
199
199
|
config: ConsentConfig;
|
|
200
200
|
title: string;
|
|
@@ -232,7 +232,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
232
232
|
} | {
|
|
233
233
|
type: "RESET";
|
|
234
234
|
};
|
|
235
|
-
self:
|
|
235
|
+
self: xstate1252.ActorRef<xstate1252.MachineSnapshot<ConsentContext, {
|
|
236
236
|
type: "LOAD";
|
|
237
237
|
} | {
|
|
238
238
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -243,7 +243,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
243
243
|
type: "RETRY";
|
|
244
244
|
} | {
|
|
245
245
|
type: "RESET";
|
|
246
|
-
}, Record<string,
|
|
246
|
+
}, Record<string, xstate1252.AnyActorRef>, xstate1252.StateValue, string, unknown, any, any>, {
|
|
247
247
|
type: "LOAD";
|
|
248
248
|
} | {
|
|
249
249
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -254,7 +254,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
254
254
|
type: "RETRY";
|
|
255
255
|
} | {
|
|
256
256
|
type: "RESET";
|
|
257
|
-
},
|
|
257
|
+
}, xstate1252.AnyEventObject>;
|
|
258
258
|
}) => {
|
|
259
259
|
consentId: string;
|
|
260
260
|
language: string | undefined;
|
|
@@ -304,7 +304,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
304
304
|
} | {
|
|
305
305
|
type: "RESET";
|
|
306
306
|
};
|
|
307
|
-
self:
|
|
307
|
+
self: xstate1252.ActorRef<xstate1252.MachineSnapshot<ConsentContext, {
|
|
308
308
|
type: "LOAD";
|
|
309
309
|
} | {
|
|
310
310
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -315,7 +315,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
315
315
|
type: "RETRY";
|
|
316
316
|
} | {
|
|
317
317
|
type: "RESET";
|
|
318
|
-
}, Record<string,
|
|
318
|
+
}, Record<string, xstate1252.AnyActorRef>, xstate1252.StateValue, string, unknown, any, any>, {
|
|
319
319
|
type: "LOAD";
|
|
320
320
|
} | {
|
|
321
321
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -326,7 +326,7 @@ declare const consentMachine: xstate436.StateMachine<ConsentContext, {
|
|
|
326
326
|
type: "RETRY";
|
|
327
327
|
} | {
|
|
328
328
|
type: "RESET";
|
|
329
|
-
},
|
|
329
|
+
}, xstate1252.AnyEventObject>;
|
|
330
330
|
}) => {
|
|
331
331
|
languageConsentId: string;
|
|
332
332
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } 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-h2zbOb-8.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/consentServices.ts
|
|
6
6
|
async function fetchCombinedConsent(consentId, language, signal) {
|
package/dist/cpf-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-
|
|
1
|
+
import "./Manager-BylDhZIB.js";
|
|
2
|
+
import "./Actor-DYjXVMQm.js";
|
|
3
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CMc0MvGD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
|
|
6
6
|
declare function formatCPF(value: string): string;
|
package/dist/cpf-ocr.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import "./xstate.esm-
|
|
6
|
-
import { a as isValidCPF, i as formatCPF, n as createCpfOcrManagerFromActor, r as cpfOcrMachine, t as createCpfOcrManager } from "./cpfOcrManager-
|
|
7
|
-
import "./cpf-
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import "./xstate.esm-h2zbOb-8.esm.js";
|
|
6
|
+
import { a as isValidCPF, i as formatCPF, n as createCpfOcrManagerFromActor, r as cpfOcrMachine, t as createCpfOcrManager } from "./cpfOcrManager-DkkrkErG.esm.js";
|
|
7
|
+
import "./cpf-Dv38bdsH.esm.js";
|
|
8
8
|
|
|
9
9
|
export { cpfOcrMachine, createCpfOcrManager, createCpfOcrManagerFromActor, formatCPF, isValidCPF };
|