@incodetech/core 2.1.0-rc.2 → 2.1.0-rc.4
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-9zb-7MLE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-D5xc7Lqo.esm.js → BrowserStorageProvider-CBXGCHnK.esm.js} +1 -25
- package/dist/BrowserVisibilityObserverProvider-B04zvOXW.esm.js +25 -0
- package/dist/Face2DProvider-DqFSo9Ls.esm.js +824 -0
- package/dist/FaceDetectionProvider-BcPv1ruX.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BxPj7hsu.d.ts +12 -0
- package/dist/IWasmUtilCapability-Bf91iomn.d.ts +145 -0
- package/dist/{Manager-B2OEDYqf.d.ts → Manager-BfBOhrjh.d.ts} +1 -4
- package/dist/{OpenViduRecordingProvider-DF7A4ZNJ.esm.js → OpenViduRecordingProvider-DmA__QfK.esm.js} +1 -1
- package/dist/PrivacyLensProvider-CfmaSQy3.esm.js +339 -0
- package/dist/StateMachine-20ahmASR.d.ts +2 -0
- package/dist/{StreamCanvasCapture-Dr5n_iK1.esm.js → StreamCanvasCapture-CRk7c7u7.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DHDxv6hH.d.ts +42 -0
- package/dist/{WasmUtilProvider-CIu373BZ.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +16 -1
- package/dist/{addressSearch-BH96a3fq.esm.js → addressSearch-B9iJdbn8.esm.js} +4 -4
- package/dist/{ae-signature-CDEN8y-w.esm.js → ae-signature-Pp4oCAHD.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +9 -9
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +6 -6
- package/dist/{antifraudManager-DZifA5zX.esm.js → antifraudManager-5KA84wtF.esm.js} +3 -3
- package/dist/{antifraudManager-B7WQTIdu.d.ts → antifraudManager-D-nGY1T9.d.ts} +2 -2
- package/dist/{antifraudStateMachine-DlKrK2hL.esm.js → antifraudStateMachine-BQVw46N5.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 +32 -27
- package/dist/{authenticationManager-Dve7mGLe.d.ts → authenticationManager-BnAY9lOO.d.ts} +3 -3
- package/dist/{authenticationManager-BM4LzyV7.esm.js → authenticationManager-BnPgoiL_.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Chx3ySdT.esm.js → authenticationStateMachine-D50Q6Nvp.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-POavVKz4.esm.js} +3 -3
- package/dist/{browser-DlFgHpoC-7tbRR1aR.esm.js → browser-DlFgHpoC-CR6x7ypG.esm.js} +1 -1
- package/dist/{browserSimulation-CGjpdNA1.esm.js → browserSimulation-DFpmweuc.esm.js} +153 -1216
- package/dist/camera-B0yWS33x.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-pLrXU1id.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +31 -30
- package/dist/certificate-issuance.esm.js +7 -7
- package/dist/{certificateIssuanceStateMachine-CLNXtXaC.esm.js → certificateIssuanceStateMachine-CpewPqas.esm.js} +4 -4
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +6 -6
- package/dist/{consentManager-BqUGU_YD.d.ts → consentManager-BuiDVAGn.d.ts} +52 -52
- package/dist/{consentManager-psDCeJ0E.esm.js → consentManager-DL93cPSU.esm.js} +3 -3
- package/dist/{consentStateMachine-DRsFFSHE.esm.js → consentStateMachine-DnqwsZ7o.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +6 -6
- package/dist/{cpfOcrManager-BxcgxvgO.esm.js → cpfOcrManager-BW8wlEU_.esm.js} +5 -5
- package/dist/{cpfOcrManager-B2u9hMzd.d.ts → cpfOcrManager-D_cnGuB7.d.ts} +19 -19
- package/dist/createFaceAvatar-CpmQJA8E.esm.js +46 -0
- package/dist/createFaceAvatar-DNMSIcRb.d.ts +401 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +5 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +6 -6
- package/dist/{curpValidationManager-Bt6CVD8b.d.ts → curpValidationManager-CJdVrCex.d.ts} +3 -3
- package/dist/{curpValidationManager-BgLDw0Ub.esm.js → curpValidationManager-u2FkvveY.esm.js} +3 -3
- package/dist/{curpValidationStateMachine-BK_wJ48C.esm.js → curpValidationStateMachine-CeqDh2V5.esm.js} +3 -3
- package/dist/custom-fields.d.ts +3 -2
- package/dist/custom-fields.esm.js +5 -5
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +5 -5
- package/dist/{customWatchlistStateMachine-Bi4P59HM.esm.js → customWatchlistStateMachine-dovMwTLv.esm.js} +3 -3
- package/dist/{deepsightLoader-BMmvk0X6.esm.js → deepsightLoader-CgK9h2KF.esm.js} +20 -14
- package/dist/{deepsightService-CEZrdiW0.esm.js → deepsightService-BsLpJT8o.esm.js} +13 -42
- package/dist/deepsightService-CbaqT7bP.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +179 -178
- package/dist/document-capture.esm.js +13 -13
- package/dist/document-upload.d.ts +48 -47
- package/dist/document-upload.esm.js +8 -8
- package/dist/{documentCaptureStateMachine-MpwpJO7t.esm.js → documentCaptureStateMachine-DK3nD2UZ.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +7 -160
- package/dist/dynamicFormsManager-B_4qA_CB.d.ts +239 -0
- package/dist/dynamicFormsManager-CNg60mlv.esm.js +167 -0
- package/dist/{dynamicFormsStateMachine-Do84A4uU.esm.js → dynamicFormsStateMachine-BfLLcxua.esm.js} +4 -4
- package/dist/ekyb.d.ts +9 -6
- package/dist/ekyb.esm.js +17 -17
- package/dist/{ekybStateMachine-nsuPOw3f.esm.js → ekybStateMachine-DJ9lWfdc.esm.js} +5 -5
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +8 -8
- package/dist/{ekycStateMachine-DcynX0rj.esm.js → ekycStateMachine-BcPEEqMA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +8 -8
- package/dist/{electronicSignatureManager-B63aAuI5.esm.js → electronicSignatureManager-DESRgObX.esm.js} +49 -87
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +8 -8
- package/dist/{emailManager-DxHjAe5u.esm.js → emailManager-C9O7k0-m.esm.js} +4 -4
- package/dist/{emailManager-C6D2u4mQ.d.ts → emailManager-CTOXMlVd.d.ts} +3 -3
- package/dist/{emailStateMachine-758f34gg.esm.js → emailStateMachine-Bk4pkysV.esm.js} +5 -5
- package/dist/{endpoints-BM2_j_IE.esm.js → endpoints-CwrFQfW7.esm.js} +13 -0
- package/dist/{events-DN-u67gb.esm.js → events-1wxZ97yf.esm.js} +3 -1
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +37 -26
- package/dist/extensibility.esm.js +71 -59
- package/dist/{externalFetch-crimxkN9.esm.js → externalFetch-hvmz_npP.esm.js} +1 -1
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +5 -5
- package/dist/faceCaptureManagerFactory-DKBvmRxO.d.ts +400 -0
- package/dist/{faceCaptureManagerFactory-BNXZchWX.esm.js → faceCaptureManagerFactory-bJiqzRoj.esm.js} +24 -16
- package/dist/{faceCaptureSetup-Dqb09D24.esm.js → faceCaptureSetup-jYJNhw2K.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-FikRaUZH.esm.js → faceMatchStateMachine-C6J09ygk.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +5 -5
- package/dist/{fieldComparisonManager-BXc6-DJv.d.ts → fieldComparisonManager-BOEgiOw_.d.ts} +2 -2
- package/dist/{fieldComparisonManager-Dic0DVgl.esm.js → fieldComparisonManager-kk2RkWeb.esm.js} +4 -4
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +12 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +21 -13
- package/dist/flow.esm.js +25 -19
- package/dist/{flowCompletionService-D_CsiDZM.esm.js → flowCompletionService-BDcDfyoA.esm.js} +3 -3
- package/dist/{flowCompletionService-CdGDKv0z.d.ts → flowCompletionService-nF7e8At0.d.ts} +2 -1
- package/dist/{flowServices-ar5DXv71.esm.js → flowServices-DTQUals9.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -127
- package/dist/geolocation.esm.js +7 -115
- package/dist/geolocationManager-B3lahU1a.d.ts +156 -0
- package/dist/geolocationManager-CVKUo6a4.esm.js +122 -0
- package/dist/{geolocationStateMachine-BWjrMGS_.esm.js → geolocationStateMachine-CdYh-pwi.esm.js} +4 -4
- package/dist/{getDeviceClass-rXKlXywy.esm.js → getDeviceClass-QxbJwsOO.esm.js} +1 -1
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +7 -7
- package/dist/{governmentValidationStateMachine-BoF7U1of.esm.js → governmentValidationStateMachine-CjCs0_fG.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +7 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +5 -5
- package/dist/id.d.ts +16 -11
- package/dist/id.esm.js +36 -32
- package/dist/idCaptureDefaults-DJmo-U3D.esm.js +188 -0
- package/dist/{idCaptureManager-BvGUSN2e.d.ts → idCaptureManager-58R91WU3.d.ts} +40 -10
- package/dist/{idCaptureManager-Bm6Wm6Qv.esm.js → idCaptureManager-Cd7THjha.esm.js} +13 -11
- package/dist/{idCaptureStateMachine-D1YhOj6n.esm.js → idCaptureStateMachine-BFMIWmBu.esm.js} +395 -382
- package/dist/idOcrManager-CDIHkP-v.d.ts +641 -0
- package/dist/idOcrManager-CiEzYor8.esm.js +91 -0
- package/dist/{idOcrStateMachine-YMCDGplq.esm.js → idOcrStateMachine-CGeY01rX.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-Bo1IYuZH.esm.js → idVerificationStateMachine-B6Ccvut4.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +6 -6
- package/dist/{identityReuseManager-DcWSvC-A.d.ts → identityReuseManager-BlJpsh9U.d.ts} +33 -33
- package/dist/{identityReuseManager-D0knIrOy.esm.js → identityReuseManager-CrbjKac7.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-CSQfZOqD.esm.js → identityReuseStateMachine-Do_M-z6z.esm.js} +3 -3
- package/dist/{index-DV134v62.d.ts → index-BgJYOyFO.d.ts} +175 -295
- package/dist/{index-BgxYUYuD.d.ts → index-CVgIGwUy.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +13 -13
- package/dist/{invokeOnCaptureCallback-Dzemudhk.esm.js → invokeOnCaptureCallback-gKRaO24Q.esm.js} +1 -1
- package/dist/{lib-7ZQ9BdKH.esm.js → lib-TRTXfron.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +6 -6
- package/dist/{mandatoryConsentManager-Tzl5Qd35.d.ts → mandatoryConsentManager-Da8pFx0L.d.ts} +53 -53
- package/dist/{mandatoryConsentManager-Lon46nPQ.esm.js → mandatoryConsentManager-b1QKgIKi.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-D_dZ7IF6.esm.js → mandatoryConsentStateMachine-VPbrLLfo.esm.js} +3 -3
- package/dist/mediaRecorderOptions-BIn657lu.esm.js +42 -0
- package/dist/mediapipeShared-yKDdOf_V.esm.js +67 -0
- package/dist/{recordingService-CxMJP4tQ.esm.js → onDeviceFaceResults-BdfKrQrf.esm.js} +71 -389
- package/dist/{openviduLazy-oAXXI9w_.esm.js → openviduLazy-BXDnVFe2.esm.js} +2 -2
- package/dist/openviduLazy-lAZzee_g.esm.js +3 -0
- package/dist/{permissionGuards-D-Z-lgNj.esm.js → permissionGuards-CaZl9t7f.esm.js} +1 -1
- package/dist/{permissionServices-CPDboRoE.esm.js → permissionServices-D9lmzFYc.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1500 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +8 -8
- package/dist/{phoneManager-TSq1Ief6.d.ts → phoneManager-CG1vTJiG.d.ts} +3 -3
- package/dist/{phoneManager-Blt4Oc2P.esm.js → phoneManager-DNTrIq-D.esm.js} +4 -4
- package/dist/{phoneStateMachine-W3c6Z8sj.esm.js → phoneStateMachine-MqNDf1Nh.esm.js} +5 -5
- package/dist/{qe-signature-CQLK6LKE.esm.js → qe-signature-CVnJ4RaW.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +9 -9
- package/dist/recordingService-B5QNBYnv.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +8 -8
- package/dist/{redirectToMobileManager-yOHAmwg-.d.ts → redirectToMobileManager-D7U9k-Xs.d.ts} +2 -2
- package/dist/{redirectToMobileManager-DCvpKdkD.esm.js → redirectToMobileManager-DuD03ggR.esm.js} +4 -4
- package/dist/{redirectToMobileStateMachine-DC9z4Vfu.esm.js → redirectToMobileStateMachine-WVg-n2is.esm.js} +10 -12
- package/dist/{runChildModule-C9G0wfVC.esm.js → runChildModule-XHWWqs39.esm.js} +3 -3
- package/dist/selfie.d.ts +19 -12
- package/dist/selfie.esm.js +33 -28
- package/dist/{selfieManager-imY2dAcH.d.ts → selfieManager-CXmUuCSV.d.ts} +3 -3
- package/dist/{selfieManager-BRL6c_Oc.esm.js → selfieManager-Cw29cKuL.esm.js} +6 -6
- package/dist/{selfieStateMachine-D2Q0uwDK.esm.js → selfieStateMachine-DUruCKBS.esm.js} +4 -4
- package/dist/{session-Be_IA1e0.esm.js → session-BWCjVIr6.esm.js} +3 -3
- package/dist/session.d.ts +7 -5
- package/dist/session.esm.js +13 -14
- package/dist/{sessionInitializer-CaiGA8GP.esm.js → sessionInitializer-CzPdr0Q1.esm.js} +73 -10
- package/dist/{setup-BJZAkajt.d.ts → setup-BbAMk9Rg.d.ts} +31 -3
- package/dist/setup-hKBHwm6K.esm.js +564 -0
- package/dist/signature.d.ts +3 -2
- package/dist/signature.esm.js +5 -5
- package/dist/{signatureStateMachine-DAxXmMrk.esm.js → signatureStateMachine-iT9BhNUf.esm.js} +3 -3
- package/dist/{stats-DntyIiGr.esm.js → stats-BVy52wLy.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-CVyiGp0-.esm.js +1194 -0
- package/dist/{tri-CtxWthxz.esm.js → tri-CFBjqf5E.esm.js} +12 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-CrWAulDi.esm.js → tri.esm-BzYyqlPa.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 +3 -3
- package/dist/{types-Z9wv19v2.d.ts → types-B_YCuHZx.d.ts} +1 -1
- package/dist/{types-DpTWgfKY.d.ts → types-CRPns2d9.d.ts} +1 -1
- package/dist/{types-Dv-9WPJX.d.ts → types-Cyi3gwPK.d.ts} +39 -3
- package/dist/types-DWmubDie.d.ts +132 -0
- package/dist/video-DXf5H9rY.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1506 -0
- package/dist/videoSelfieSteps-C6E7mKFt.esm.js +58 -0
- package/dist/{warmup--6HA3yUR.d.ts → warmup-DzJ0I4Kv.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +14 -14
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +5 -5
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +5 -5
- package/dist/{watchlistForBusinessStateMachine-DtefJb-D.esm.js → watchlistForBusinessStateMachine-CyhTEi3N.esm.js} +3 -3
- package/dist/{watchlistStateMachine-B0aIS2_n.esm.js → watchlistStateMachine-CgKG-KSf.esm.js} +3 -3
- package/dist/workflow.d.ts +232 -100
- package/dist/workflow.esm.js +120 -79
- package/dist/{xstate.esm-Dkm1jy5u.esm.js → xstate.esm-nY3M5UYm.esm.js} +41 -1
- package/package.json +18 -3
- 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-DYjXVMQm.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-BVgutW_b.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-BvH0pDwp.esm.js → ITimerCapability-G7lQg-be.esm.js} +0 -0
- /package/dist/{MotionSensorProvider-C9fPAJdS.esm.js → MotionSensorProvider-BkHKMCPE.esm.js} +0 -0
- /package/dist/{apiError-D-GTvFrH.esm.js → apiError-DkOXfFBu.esm.js} +0 -0
- /package/dist/{camera-biGPWlmx.d.ts → camera-CWO06Lu5.d.ts} +0 -0
- /package/dist/{canvas-7uX2izHb.esm.js → canvas-DsJa51yU.esm.js} +0 -0
- /package/dist/{chunk-BK1xu56N.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-xBg-DFNn.esm.js → cpf-B9htWzDt.esm.js} +0 -0
- /package/dist/{dateUtils-8dCcuArE.esm.js → dateUtils-PXB_WRYL.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0zrM97a.esm.js → getDeviceClass-BdgmyOOu.esm.js} +0 -0
- /package/dist/{http-CfVTgMfU.esm.js → http-CBbBcnBa.esm.js} +0 -0
- /package/dist/{index-52_qi4bd.d.ts → index-CCG6MnCO.d.ts} +0 -0
- /package/dist/{otp-BHJnjEEc.d.ts → otp-CETbFjXH.d.ts} +0 -0
- /package/dist/{otp-D87RTwrx.esm.js → otp-DepQPUIA.esm.js} +0 -0
- /package/dist/{platform-BfoqeM61.esm.js → platform-BoeUeUrV.esm.js} +0 -0
- /package/dist/{types-F0IXbaCB.d.ts → types-BOiKESZY.d.ts} +0 -0
- /package/dist/{types-DYZja-k9.d.ts → types-CTnn7kUK.d.ts} +0 -0
- /package/dist/{types-BdVOWGGW.esm.js → types-Db2ooXIu.esm.js} +0 -0
- /package/dist/{urlUtils-8RNHyW3x.esm.js → urlUtils-CpiYwn7w.esm.js} +0 -0
package/dist/workflow.esm.js
CHANGED
|
@@ -1,69 +1,74 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import "./BrowserTimerProvider-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { g as addEvent, n as eventModuleNames, s as createManagerInstrumentation } from "./events-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
6
|
-
import "./stats-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
10
|
-
import "./platform-
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
20
|
-
import "./MotionSensorProvider-
|
|
21
|
-
import "./permissionServices-
|
|
22
|
-
import "./camera-
|
|
23
|
-
import "./
|
|
24
|
-
import "./ITimerCapability-
|
|
25
|
-
import "./canvas-
|
|
26
|
-
import "./backCameraStream-
|
|
27
|
-
import "./
|
|
28
|
-
import "./getDeviceClass-
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import "./
|
|
38
|
-
import { t as
|
|
39
|
-
import "./
|
|
40
|
-
import
|
|
41
|
-
import { t as
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import "./
|
|
45
|
-
import "./
|
|
46
|
-
import "./
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import "./
|
|
50
|
-
import
|
|
51
|
-
import { t as
|
|
52
|
-
import { t as
|
|
53
|
-
import
|
|
54
|
-
import { t as
|
|
55
|
-
import { t as
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import { n as
|
|
59
|
-
import { t as
|
|
60
|
-
import { t as
|
|
61
|
-
import { t as
|
|
62
|
-
import { t as
|
|
63
|
-
import "./
|
|
64
|
-
import {
|
|
65
|
-
import { t as
|
|
66
|
-
import { t as
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
3
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
4
|
+
import { g as addEvent, n as eventModuleNames, s as createManagerInstrumentation } from "./events-1wxZ97yf.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
6
|
+
import "./stats-BVy52wLy.esm.js";
|
|
7
|
+
import "./browserSimulation-DFpmweuc.esm.js";
|
|
8
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CzPdr0Q1.esm.js";
|
|
9
|
+
import "./thumbmarkAdapter-CVyiGp0-.esm.js";
|
|
10
|
+
import "./platform-BoeUeUrV.esm.js";
|
|
11
|
+
import "./tri-CFBjqf5E.esm.js";
|
|
12
|
+
import { a as fromPromise, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
13
|
+
import "./urlUtils-CpiYwn7w.esm.js";
|
|
14
|
+
import "./externalFetch-hvmz_npP.esm.js";
|
|
15
|
+
import { n as toIncodeApiError } from "./apiError-DkOXfFBu.esm.js";
|
|
16
|
+
import { n as electronicSignatureMachine } from "./electronicSignatureManager-DESRgObX.esm.js";
|
|
17
|
+
import "./ae-signature-Pp4oCAHD.esm.js";
|
|
18
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BQVw46N5.esm.js";
|
|
19
|
+
import "./faceCaptureSetup-jYJNhw2K.esm.js";
|
|
20
|
+
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
21
|
+
import "./permissionServices-D9lmzFYc.esm.js";
|
|
22
|
+
import "./camera-B0yWS33x.esm.js";
|
|
23
|
+
import "./onDeviceFaceResults-BdfKrQrf.esm.js";
|
|
24
|
+
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
25
|
+
import "./canvas-DsJa51yU.esm.js";
|
|
26
|
+
import "./backCameraStream-POavVKz4.esm.js";
|
|
27
|
+
import "./video-DXf5H9rY.esm.js";
|
|
28
|
+
import "./getDeviceClass-BdgmyOOu.esm.js";
|
|
29
|
+
import "./deepsightService-BsLpJT8o.esm.js";
|
|
30
|
+
import "./getDeviceClass-QxbJwsOO.esm.js";
|
|
31
|
+
import "./types-Db2ooXIu.esm.js";
|
|
32
|
+
import "./createFaceAvatar-CpmQJA8E.esm.js";
|
|
33
|
+
import "./StreamCanvasCapture-CRk7c7u7.esm.js";
|
|
34
|
+
import "./permissionGuards-CaZl9t7f.esm.js";
|
|
35
|
+
import "./recordingService-B5QNBYnv.esm.js";
|
|
36
|
+
import "./mediaRecorderOptions-BIn657lu.esm.js";
|
|
37
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-D50Q6Nvp.esm.js";
|
|
38
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CpewPqas.esm.js";
|
|
39
|
+
import { t as consentMachine } from "./consentStateMachine-DnqwsZ7o.esm.js";
|
|
40
|
+
import "./cpf-B9htWzDt.esm.js";
|
|
41
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-CeqDh2V5.esm.js";
|
|
42
|
+
import "./dateUtils-PXB_WRYL.esm.js";
|
|
43
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-dovMwTLv.esm.js";
|
|
44
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-DK3nD2UZ.esm.js";
|
|
45
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BfLLcxua.esm.js";
|
|
46
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-DJ9lWfdc.esm.js";
|
|
47
|
+
import "./addressSearch-B9iJdbn8.esm.js";
|
|
48
|
+
import "./session-BWCjVIr6.esm.js";
|
|
49
|
+
import "./videoSelfieSteps-C6E7mKFt.esm.js";
|
|
50
|
+
import "./flowServices-DTQUals9.esm.js";
|
|
51
|
+
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-BcPEEqMA.esm.js";
|
|
52
|
+
import { t as emailMachine } from "./emailStateMachine-Bk4pkysV.esm.js";
|
|
53
|
+
import "./otp-DepQPUIA.esm.js";
|
|
54
|
+
import { t as selfieMachine } from "./selfieStateMachine-DUruCKBS.esm.js";
|
|
55
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BFMIWmBu.esm.js";
|
|
56
|
+
import "./idCaptureDefaults-DJmo-U3D.esm.js";
|
|
57
|
+
import { t as phoneMachine } from "./phoneStateMachine-MqNDf1Nh.esm.js";
|
|
58
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-Do_M-z6z.esm.js";
|
|
59
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-VPbrLLfo.esm.js";
|
|
60
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-CGeY01rX.esm.js";
|
|
61
|
+
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-WVg-n2is.esm.js";
|
|
62
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CdYh-pwi.esm.js";
|
|
63
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-C6J09ygk.esm.js";
|
|
64
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BDcDfyoA.esm.js";
|
|
65
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-XHWWqs39.esm.js";
|
|
66
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CjCs0_fG.esm.js";
|
|
67
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-B6Ccvut4.esm.js";
|
|
68
|
+
import "./qe-signature-CVnJ4RaW.esm.js";
|
|
69
|
+
import { t as signatureMachine } from "./signatureStateMachine-iT9BhNUf.esm.js";
|
|
70
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CgKG-KSf.esm.js";
|
|
71
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CyhTEi3N.esm.js";
|
|
67
72
|
|
|
68
73
|
//#region src/internal/orchestration/defaultModules.ts
|
|
69
74
|
/**
|
|
@@ -332,6 +337,9 @@ const workflowMachine = setup({
|
|
|
332
337
|
notifyBackend: fromPromise(async ({ input, signal }) => {
|
|
333
338
|
return input.getFinishStatus(input.workflowId, signal);
|
|
334
339
|
}),
|
|
340
|
+
resolveScore: fromPromise(async ({ input, signal }) => {
|
|
341
|
+
return input.getTotalScoreStatus(signal);
|
|
342
|
+
}),
|
|
335
343
|
runChildModule
|
|
336
344
|
},
|
|
337
345
|
actions: {
|
|
@@ -359,6 +367,7 @@ const workflowMachine = setup({
|
|
|
359
367
|
}),
|
|
360
368
|
setResolvedMachine: assign(({ event }) => ({ resolvedMachine: event.output })),
|
|
361
369
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
370
|
+
setTotalScoreStatus: assign(({ event }) => ({ totalScoreStatus: event.output })),
|
|
362
371
|
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
363
372
|
setError: assign(({ event }) => {
|
|
364
373
|
const { message, code } = extractErrorInfo(event.error);
|
|
@@ -400,6 +409,8 @@ const workflowMachine = setup({
|
|
|
400
409
|
},
|
|
401
410
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
402
411
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
412
|
+
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
413
|
+
isOnboardingFinishedWithStatusScreen: ({ context, event }) => event.output?.action === "onboardingFinished" && context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
403
414
|
shouldEnterHome: ({ event }) => {
|
|
404
415
|
const result = event.output;
|
|
405
416
|
if (!result || result.currentNode.nodeType !== "MODULE") return false;
|
|
@@ -422,12 +433,14 @@ const workflowMachine = setup({
|
|
|
422
433
|
registeredModules: input.modules,
|
|
423
434
|
configMappers: input.configMappers ?? {},
|
|
424
435
|
finishStatus: void 0,
|
|
436
|
+
totalScoreStatus: void 0,
|
|
425
437
|
customModuleCallback: input.customModuleCallback,
|
|
426
438
|
interviewId: input.interviewId ?? "",
|
|
427
439
|
isDesktop: input.isDesktop ?? true,
|
|
428
440
|
isInjectedNode: false,
|
|
429
441
|
isHomeContinueLoading: false,
|
|
430
|
-
getFinishStatus: input.getFinishStatus ?? getFinishStatus
|
|
442
|
+
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
443
|
+
getTotalScoreStatus: input.getTotalScoreStatus ?? getTotalScoreStatus
|
|
431
444
|
}),
|
|
432
445
|
states: {
|
|
433
446
|
idle: { on: { LOAD: "loading" } },
|
|
@@ -505,10 +518,17 @@ const workflowMachine = setup({
|
|
|
505
518
|
}
|
|
506
519
|
},
|
|
507
520
|
on: {
|
|
508
|
-
MODULE_COMPLETE: [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
521
|
+
MODULE_COMPLETE: [
|
|
522
|
+
{
|
|
523
|
+
target: "resolvingScore",
|
|
524
|
+
guard: "isOnboardingFinishedWithStatusScreen"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
target: "finished",
|
|
528
|
+
guard: "isOnboardingFinishedSignal"
|
|
529
|
+
},
|
|
530
|
+
{ target: "processingNode" }
|
|
531
|
+
],
|
|
512
532
|
MODULE_ERROR: [{
|
|
513
533
|
guard: "isAdvanceableModuleError",
|
|
514
534
|
target: "processingNode",
|
|
@@ -518,7 +538,10 @@ const workflowMachine = setup({
|
|
|
518
538
|
actions: "setModuleError"
|
|
519
539
|
}],
|
|
520
540
|
COMPLETE_FLOW: "completing",
|
|
521
|
-
FINISH_WORKFLOW:
|
|
541
|
+
FINISH_WORKFLOW: [{
|
|
542
|
+
target: "resolvingScore",
|
|
543
|
+
guard: "shouldResolveScore"
|
|
544
|
+
}, { target: "finished" }]
|
|
522
545
|
}
|
|
523
546
|
},
|
|
524
547
|
handlingCustomModule: { invoke: {
|
|
@@ -593,7 +616,7 @@ const workflowMachine = setup({
|
|
|
593
616
|
src: "notifyBackend",
|
|
594
617
|
input: ({ context }) => ({
|
|
595
618
|
getFinishStatus: context.getFinishStatus,
|
|
596
|
-
workflowId: context.workflowConfig?.id
|
|
619
|
+
workflowId: context.currentNode?.workflowId ?? context.workflowConfig?.id
|
|
597
620
|
}),
|
|
598
621
|
onDone: {
|
|
599
622
|
target: "finished",
|
|
@@ -604,6 +627,16 @@ const workflowMachine = setup({
|
|
|
604
627
|
actions: ["setError", "setFinishStatusFailed"]
|
|
605
628
|
}
|
|
606
629
|
} },
|
|
630
|
+
resolvingScore: { invoke: {
|
|
631
|
+
id: "resolveScore",
|
|
632
|
+
src: "resolveScore",
|
|
633
|
+
input: ({ context }) => ({ getTotalScoreStatus: context.getTotalScoreStatus }),
|
|
634
|
+
onDone: {
|
|
635
|
+
target: "finished",
|
|
636
|
+
actions: "setTotalScoreStatus"
|
|
637
|
+
},
|
|
638
|
+
onError: { target: "finished" }
|
|
639
|
+
} },
|
|
607
640
|
finished: { type: "final" },
|
|
608
641
|
asyncResolution: { type: "final" },
|
|
609
642
|
closed: { type: "final" },
|
|
@@ -681,17 +714,21 @@ function mapState(snapshot) {
|
|
|
681
714
|
homeScreen
|
|
682
715
|
};
|
|
683
716
|
}
|
|
684
|
-
if (snapshot.matches("finished"))
|
|
685
|
-
|
|
686
|
-
workflowConfig: context.workflowConfig,
|
|
687
|
-
finishStatus: context.finishStatus ?? {
|
|
717
|
+
if (snapshot.matches("finished")) {
|
|
718
|
+
const finishStatus = context.finishStatus ?? {
|
|
688
719
|
redirectionUrl: "",
|
|
689
720
|
action: "none",
|
|
690
721
|
scoreStatus: "UNKNOWN",
|
|
691
722
|
endScreenTitle: null,
|
|
692
723
|
endScreenText: null
|
|
693
|
-
}
|
|
694
|
-
|
|
724
|
+
};
|
|
725
|
+
return {
|
|
726
|
+
status: "finished",
|
|
727
|
+
workflowConfig: context.workflowConfig,
|
|
728
|
+
finishStatus,
|
|
729
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
730
|
+
};
|
|
731
|
+
}
|
|
695
732
|
if (snapshot.matches("asyncResolution")) return {
|
|
696
733
|
status: "asyncResolution",
|
|
697
734
|
workflowConfig: context.workflowConfig,
|
|
@@ -704,6 +741,10 @@ function mapState(snapshot) {
|
|
|
704
741
|
errorCode: context.errorCode,
|
|
705
742
|
moduleErrorCode: context.moduleErrorCode
|
|
706
743
|
};
|
|
744
|
+
if (snapshot.matches("completing")) return {
|
|
745
|
+
status: "completing",
|
|
746
|
+
homeScreen
|
|
747
|
+
};
|
|
707
748
|
return {
|
|
708
749
|
status: "loading",
|
|
709
750
|
homeScreen
|
|
@@ -1133,6 +1133,46 @@ function stopChild(actorRef) {
|
|
|
1133
1133
|
stop$1.execute = executeStop;
|
|
1134
1134
|
return stop$1;
|
|
1135
1135
|
}
|
|
1136
|
+
function checkNot(snapshot, { context, event }, { guards }) {
|
|
1137
|
+
return !evaluateGuard(guards[0], context, event, snapshot);
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Higher-order guard that evaluates to `true` if the `guard` passed to it
|
|
1141
|
+
* evaluates to `false`.
|
|
1142
|
+
*
|
|
1143
|
+
* @category Guards
|
|
1144
|
+
* @example
|
|
1145
|
+
*
|
|
1146
|
+
* ```ts
|
|
1147
|
+
* import { setup, not } from 'xstate';
|
|
1148
|
+
*
|
|
1149
|
+
* const machine = setup({
|
|
1150
|
+
* guards: {
|
|
1151
|
+
* someNamedGuard: () => false
|
|
1152
|
+
* }
|
|
1153
|
+
* }).createMachine({
|
|
1154
|
+
* on: {
|
|
1155
|
+
* someEvent: {
|
|
1156
|
+
* guard: not('someNamedGuard'),
|
|
1157
|
+
* actions: () => {
|
|
1158
|
+
* // will be executed if guard in `not(...)`
|
|
1159
|
+
* // evaluates to `false`
|
|
1160
|
+
* }
|
|
1161
|
+
* }
|
|
1162
|
+
* }
|
|
1163
|
+
* });
|
|
1164
|
+
* ```
|
|
1165
|
+
*
|
|
1166
|
+
* @returns A guard
|
|
1167
|
+
*/
|
|
1168
|
+
function not(guard) {
|
|
1169
|
+
function not$1(_args, _params) {
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1172
|
+
not$1.check = checkNot;
|
|
1173
|
+
not$1.guards = [guard];
|
|
1174
|
+
return not$1;
|
|
1175
|
+
}
|
|
1136
1176
|
function checkAnd(snapshot, { context, event }, { guards }) {
|
|
1137
1177
|
return guards.every((guard) => evaluateGuard(guard, context, event, snapshot));
|
|
1138
1178
|
}
|
|
@@ -3410,4 +3450,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
3410
3450
|
}
|
|
3411
3451
|
|
|
3412
3452
|
//#endregion
|
|
3413
|
-
export { fromPromise as a,
|
|
3453
|
+
export { fromPromise as a, not as c, fromCallback as i, createManager as l, sendTo as n, and as o, assign as r, createActor as s, setup as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -29,11 +29,26 @@
|
|
|
29
29
|
"types": "./dist/flow-events.d.ts",
|
|
30
30
|
"import": "./dist/flow-events.esm.js"
|
|
31
31
|
},
|
|
32
|
+
"./avatar": {
|
|
33
|
+
"source": "./src/modules/avatar/index.ts",
|
|
34
|
+
"types": "./dist/avatar.d.ts",
|
|
35
|
+
"import": "./dist/avatar.esm.js"
|
|
36
|
+
},
|
|
32
37
|
"./selfie": {
|
|
33
38
|
"source": "./src/modules/selfie/index.ts",
|
|
34
39
|
"types": "./dist/selfie.d.ts",
|
|
35
40
|
"import": "./dist/selfie.esm.js"
|
|
36
41
|
},
|
|
42
|
+
"./video-selfie": {
|
|
43
|
+
"source": "./src/modules/video-selfie/index.ts",
|
|
44
|
+
"types": "./dist/video-selfie.d.ts",
|
|
45
|
+
"import": "./dist/video-selfie.esm.js"
|
|
46
|
+
},
|
|
47
|
+
"./personhood": {
|
|
48
|
+
"source": "./src/modules/personhood/index.ts",
|
|
49
|
+
"types": "./dist/personhood.d.ts",
|
|
50
|
+
"import": "./dist/personhood.esm.js"
|
|
51
|
+
},
|
|
37
52
|
"./authentication": {
|
|
38
53
|
"source": "./src/modules/authentication/index.ts",
|
|
39
54
|
"types": "./dist/authentication.d.ts",
|
|
@@ -261,8 +276,8 @@
|
|
|
261
276
|
"tsdown": "^0.16.6",
|
|
262
277
|
"typescript": "^5.9.3",
|
|
263
278
|
"vitest": "^4.0.13",
|
|
264
|
-
"@incodetech/
|
|
265
|
-
"@incodetech/
|
|
279
|
+
"@incodetech/infra": "1.1.0",
|
|
280
|
+
"@incodetech/config": "1.0.1"
|
|
266
281
|
},
|
|
267
282
|
"scripts": {
|
|
268
283
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/providers/browser/BrowserEnvironmentProvider.ts
|
|
2
|
-
var BrowserEnvironmentProvider = class {
|
|
3
|
-
getScreenDimensions() {
|
|
4
|
-
if (typeof screen === "undefined") return {
|
|
5
|
-
width: 0,
|
|
6
|
-
height: 0
|
|
7
|
-
};
|
|
8
|
-
return {
|
|
9
|
-
width: screen.width,
|
|
10
|
-
height: screen.height
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
generateCanvasFingerprint() {
|
|
14
|
-
try {
|
|
15
|
-
if (typeof document === "undefined") return "";
|
|
16
|
-
const canvas = document.createElement("canvas");
|
|
17
|
-
const ctx = canvas.getContext("2d");
|
|
18
|
-
if (!ctx) return "";
|
|
19
|
-
ctx.textBaseline = "top";
|
|
20
|
-
ctx.font = "14px Arial";
|
|
21
|
-
ctx.fillText("fingerprint", 2, 2);
|
|
22
|
-
return canvas.toDataURL().slice(-50);
|
|
23
|
-
} catch {
|
|
24
|
-
return "";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
getWebGLRenderer() {
|
|
28
|
-
try {
|
|
29
|
-
if (typeof document === "undefined") return "";
|
|
30
|
-
const canvas = document.createElement("canvas");
|
|
31
|
-
const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
|
|
32
|
-
if (!gl) return "";
|
|
33
|
-
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
|
|
34
|
-
if (!debugInfo) return "";
|
|
35
|
-
return gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || "";
|
|
36
|
-
} catch {
|
|
37
|
-
return "";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
getWindowProperty(prop) {
|
|
41
|
-
if (typeof window === "undefined") return;
|
|
42
|
-
return window[prop];
|
|
43
|
-
}
|
|
44
|
-
getNavigatorProperty(prop) {
|
|
45
|
-
if (typeof navigator === "undefined") return;
|
|
46
|
-
return navigator[prop];
|
|
47
|
-
}
|
|
48
|
-
getNavigatorPrefixes() {
|
|
49
|
-
if (typeof navigator === "undefined") return {
|
|
50
|
-
webkit: false,
|
|
51
|
-
moz: false,
|
|
52
|
-
o: false,
|
|
53
|
-
ms: false
|
|
54
|
-
};
|
|
55
|
-
const nav = navigator;
|
|
56
|
-
return {
|
|
57
|
-
webkit: nav.webkitGetUserMedia !== void 0,
|
|
58
|
-
moz: nav.mozGetUserMedia !== void 0,
|
|
59
|
-
o: nav.oGetUserMedia !== void 0,
|
|
60
|
-
ms: nav.msGetUserMedia !== void 0
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
getMaxTouchPoints() {
|
|
64
|
-
if (typeof navigator === "undefined") return 0;
|
|
65
|
-
return navigator.maxTouchPoints;
|
|
66
|
-
}
|
|
67
|
-
hasOnTouchStart() {
|
|
68
|
-
if (typeof window !== "undefined" && "ontouchstart" in window) return true;
|
|
69
|
-
if (typeof document !== "undefined") return "ontouchstart" in document.documentElement;
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
getNavigatorProductSub() {
|
|
73
|
-
if (typeof navigator === "undefined") return;
|
|
74
|
-
return navigator.productSub;
|
|
75
|
-
}
|
|
76
|
-
getEvalToStringLength() {
|
|
77
|
-
return eval.toString().length;
|
|
78
|
-
}
|
|
79
|
-
tryFirefoxToSource() {
|
|
80
|
-
try {
|
|
81
|
-
throw "a";
|
|
82
|
-
} catch (err) {
|
|
83
|
-
try {
|
|
84
|
-
err.toSource();
|
|
85
|
-
return true;
|
|
86
|
-
} catch {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
async fetchJson(url, timeoutMs = 3e3) {
|
|
92
|
-
try {
|
|
93
|
-
if (typeof fetch === "undefined") return null;
|
|
94
|
-
const controller = new AbortController();
|
|
95
|
-
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
96
|
-
const response = await fetch(url, { signal: controller.signal });
|
|
97
|
-
clearTimeout(timeoutId);
|
|
98
|
-
return await response.json();
|
|
99
|
-
} catch {
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
async enumerateVideoDeviceLabels() {
|
|
104
|
-
try {
|
|
105
|
-
if (typeof navigator === "undefined" || !navigator.mediaDevices?.enumerateDevices) return [];
|
|
106
|
-
return (await navigator.mediaDevices.enumerateDevices()).filter((device) => device.kind === "videoinput").map((device) => device.label);
|
|
107
|
-
} catch {
|
|
108
|
-
return [];
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
getTimestamp() {
|
|
112
|
-
return Date.now();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region ../infra/src/providers/browser/IpifyProvider.ts
|
|
118
|
-
let cachedIp;
|
|
119
|
-
let inFlightLookup;
|
|
120
|
-
/**
|
|
121
|
-
* Resets the module-level IP cache. Intended for tests and full session resets.
|
|
122
|
-
*/
|
|
123
|
-
function resetIpifyCache() {
|
|
124
|
-
cachedIp = void 0;
|
|
125
|
-
inFlightLookup = void 0;
|
|
126
|
-
}
|
|
127
|
-
async function fetchIpFromIpify() {
|
|
128
|
-
if (typeof fetch === "undefined") return "";
|
|
129
|
-
let timeoutId = 0;
|
|
130
|
-
const controller = new AbortController();
|
|
131
|
-
if (AbortSignal.timeout) {
|
|
132
|
-
const signal = AbortSignal.timeout(3e3);
|
|
133
|
-
return (await (await fetch("https://api.ipify.org?format=json", { signal })).json()).ip;
|
|
134
|
-
}
|
|
135
|
-
const timeoutPromise = new Promise((_, reject) => {
|
|
136
|
-
timeoutId = setTimeout(() => {
|
|
137
|
-
controller.abort();
|
|
138
|
-
reject(/* @__PURE__ */ new Error("Request timeout"));
|
|
139
|
-
}, 3e3);
|
|
140
|
-
});
|
|
141
|
-
const fetchPromise = fetch("https://api.ipify.org?format=json", { signal: controller.signal }).then((res) => res.json()).then((data) => data.ip);
|
|
142
|
-
const result = await Promise.race([fetchPromise, timeoutPromise]);
|
|
143
|
-
clearTimeout(timeoutId);
|
|
144
|
-
return result;
|
|
145
|
-
}
|
|
146
|
-
var IpifyProvider = class {
|
|
147
|
-
async getIp() {
|
|
148
|
-
if (cachedIp !== void 0) return cachedIp;
|
|
149
|
-
if (inFlightLookup) return inFlightLookup;
|
|
150
|
-
inFlightLookup = (async () => {
|
|
151
|
-
try {
|
|
152
|
-
const ip = await fetchIpFromIpify();
|
|
153
|
-
cachedIp = ip;
|
|
154
|
-
return ip;
|
|
155
|
-
} catch {
|
|
156
|
-
cachedIp = "";
|
|
157
|
-
return "";
|
|
158
|
-
} finally {
|
|
159
|
-
inFlightLookup = void 0;
|
|
160
|
-
}
|
|
161
|
-
})();
|
|
162
|
-
return inFlightLookup;
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
//#endregion
|
|
167
|
-
export { resetIpifyCache as n, BrowserEnvironmentProvider as r, IpifyProvider as t };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/media/camera.ts
|
|
2
|
-
/**
|
|
3
|
-
* Request camera access with specific constraints.
|
|
4
|
-
* Throws if the request fails - no automatic fallback.
|
|
5
|
-
*/
|
|
6
|
-
async function requestCameraAccess(constraints) {
|
|
7
|
-
if (typeof navigator === "undefined" || !navigator.mediaDevices) throw new Error("MediaDevices API not available");
|
|
8
|
-
return navigator.mediaDevices.getUserMedia(constraints);
|
|
9
|
-
}
|
|
10
|
-
function stopCameraStream(stream) {
|
|
11
|
-
for (const track of stream.getTracks()) track.stop();
|
|
12
|
-
}
|
|
13
|
-
async function enumerateVideoDevices() {
|
|
14
|
-
if (typeof navigator === "undefined" || !navigator.mediaDevices) return [];
|
|
15
|
-
return (await navigator.mediaDevices.enumerateDevices()).filter((d) => d.kind === "videoinput");
|
|
16
|
-
}
|
|
17
|
-
async function applyTrackConstraints(track, constraints) {
|
|
18
|
-
await track.applyConstraints(constraints);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { stopCameraStream as i, enumerateVideoDevices as n, requestCameraAccess as r, applyTrackConstraints as t };
|