@incodetech/core 0.0.0-dev-20260610-8787196e → 0.0.0-dev-20260610-e5b4c4d5
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/{OpenViduRecordingProvider-BtAVDH2Y.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
- package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
- package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
- package/dist/{addressSearch-DPmseXCM.esm.js → addressSearch-rHF9QriL.esm.js} +4 -4
- package/dist/{ae-signature-lqjX_h2U.esm.js → ae-signature-CQjOxLrv.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +7 -7
- package/dist/antifraud.d.ts +3 -3
- package/dist/antifraud.esm.js +6 -6
- package/dist/{antifraudManager-DaUfoGLZ.esm.js → antifraudManager-CZDCQli0.esm.js} +3 -3
- package/dist/{antifraudManager-Bbgl_P0Y.d.ts → antifraudManager-CznnhyvD.d.ts} +2 -2
- package/dist/{antifraudStateMachine-DmhL7cti.esm.js → antifraudStateMachine-Bp7yS1LV.esm.js} +3 -3
- package/dist/authentication.d.ts +13 -12
- package/dist/authentication.esm.js +27 -25
- package/dist/{authenticationManager-DIN4eL_6.esm.js → authenticationManager-C3-IUymg.esm.js} +6 -6
- package/dist/{authenticationManager-ozJVUfiA.d.ts → authenticationManager-CIVY80H9.d.ts} +2 -2
- package/dist/{authenticationStateMachine-DzrcG7XX.esm.js → authenticationStateMachine-3HbNfPoL.esm.js} +8 -8
- package/dist/{backCameraStream-BtCwSIuT.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +3 -3
- package/dist/{browserSimulation-CHpyEI-W.esm.js → browserSimulation-B1dWiXp7.esm.js} +2 -2
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +4 -4
- package/dist/canvas-SKcRBxsk.esm.js +230 -0
- package/dist/consent.d.ts +3 -3
- package/dist/consent.esm.js +6 -6
- package/dist/{consentManager-CHV12fjQ.d.ts → consentManager-66SjOJ7U.d.ts} +52 -52
- package/dist/{consentManager-D0NGejCx.esm.js → consentManager-DOufCKTj.esm.js} +3 -3
- package/dist/{consentStateMachine-CUOuuC7d.esm.js → consentStateMachine-CUVp1kKY.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +3 -3
- package/dist/cpf-ocr.esm.js +6 -6
- package/dist/{cpfOcrManager-9ciXe_XT.esm.js → cpfOcrManager-Bm5OlZSa.esm.js} +5 -5
- package/dist/{cpfOcrManager-BR_dJaKV.d.ts → cpfOcrManager-DVSJov4W.d.ts} +22 -22
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +5 -5
- package/dist/curp-validation.d.ts +7 -7
- package/dist/curp-validation.esm.js +6 -6
- package/dist/{curpValidationManager-BJDxY7JH.esm.js → curpValidationManager-CMXS-tjU.esm.js} +3 -3
- package/dist/{curpValidationManager-VE0Ndj36.d.ts → curpValidationManager-DIFa6O03.d.ts} +3 -3
- package/dist/{curpValidationStateMachine-BBUREbWY.esm.js → curpValidationStateMachine-CD-npCgV.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +5 -5
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +5 -5
- package/dist/{customWatchlistStateMachine-qfxMGhCV.esm.js → customWatchlistStateMachine-CF4ETN-z.esm.js} +3 -3
- package/dist/{deepsightLoader-OlmqoVtS.esm.js → deepsightLoader-CTf5NdIB.esm.js} +13 -12
- package/dist/{deepsightService-CeXd7dhh.d.ts → deepsightService-B7ShOkWL.d.ts} +2 -152
- package/dist/{deepsightService-Dh9EiWze.esm.js → deepsightService-Da56SkD4.esm.js} +8 -236
- package/dist/device.esm.js +4 -4
- package/dist/document-capture.d.ts +235 -235
- package/dist/document-capture.esm.js +13 -13
- package/dist/document-upload.d.ts +53 -53
- package/dist/document-upload.esm.js +8 -8
- package/dist/{documentCaptureStateMachine-JqM4pyfY.esm.js → documentCaptureStateMachine-CV1dzgbn.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +5 -5
- package/dist/ekyb.d.ts +6 -6
- package/dist/ekyb.esm.js +16 -16
- package/dist/{ekybStateMachine-C0DLJplY.esm.js → ekybStateMachine-DWm7C2qW.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +8 -8
- package/dist/{ekycStateMachine-B5brX021.esm.js → ekycStateMachine-CRiViUGB.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +6 -6
- package/dist/{electronicSignatureManager-BY6tiZPR.esm.js → electronicSignatureManager-DECEJ9hm.esm.js} +5 -5
- package/dist/email.d.ts +4 -4
- package/dist/email.esm.js +8 -8
- package/dist/{emailManager-DRUHedQg.esm.js → emailManager-DAIwweQa.esm.js} +4 -4
- package/dist/{emailManager-VP0mIGdj.d.ts → emailManager-lAzDoQOs.d.ts} +3 -3
- package/dist/{emailStateMachine-CZgKn7a1.esm.js → emailStateMachine-C-ltLrvi.esm.js} +5 -5
- package/dist/{endpoints-BPHddOTi.esm.js → endpoints-zEf_JIJU.esm.js} +2 -1
- package/dist/{events-Bsw1l0pH.esm.js → events-Dvvriq9l.esm.js} +3 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +26 -25
- package/dist/extensibility.esm.js +56 -54
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-BTsmDJ06.d.ts → faceCaptureManagerFactory-C_hRHx8a.d.ts} +9 -8
- package/dist/{faceCaptureManagerFactory-DKE4-MLG.esm.js → faceCaptureManagerFactory-kqbUqtrr.esm.js} +4 -4
- package/dist/{faceCaptureSetup-0XUJwf3G.esm.js → faceCaptureSetup-CoZCFG0w.esm.js} +7 -6
- package/dist/{faceMatchStateMachine-i3qgZ176.esm.js → faceMatchStateMachine-CN81-J0s.esm.js} +3 -3
- package/dist/field-comparison.d.ts +3 -3
- package/dist/field-comparison.esm.js +5 -5
- package/dist/{fieldComparisonManager-Bfb3-iwn.esm.js → fieldComparisonManager-Bnuq1mA0.esm.js} +4 -4
- package/dist/{fieldComparisonManager-DAP7RbND.d.ts → fieldComparisonManager-Bu5TaSr3.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +59 -0
- package/dist/fiscal-qr.esm.js +323 -0
- package/dist/flow-events.d.ts +6 -6
- package/dist/flow.d.ts +12 -12
- package/dist/flow.esm.js +16 -16
- package/dist/{flowCompletionService-DFV8vmO3.esm.js → flowCompletionService-DHpnjBvp.esm.js} +3 -3
- package/dist/{flowServices-DhaF-fP3.esm.js → flowServices-BykryjdA.esm.js} +4 -4
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +6 -6
- package/dist/{geolocationStateMachine-DCG_hQkW.esm.js → geolocationStateMachine-D6yBlOQ_.esm.js} +4 -4
- package/dist/{getDeviceClass-cJ-TvND7.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
- package/dist/government-validation.d.ts +3 -3
- package/dist/government-validation.esm.js +7 -7
- package/dist/{governmentValidationStateMachine-KY_Eu5b-.esm.js → governmentValidationStateMachine-M-iiovMY.esm.js} +5 -5
- package/dist/home.d.ts +15 -15
- package/dist/home.esm.js +3 -3
- package/dist/http-Cai3IoLS.esm.js +0 -0
- package/dist/http.esm.js +2 -1
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +6 -6
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +5 -5
- package/dist/id.d.ts +12 -11
- package/dist/id.esm.js +31 -29
- package/dist/{idCaptureManager-BXkPnZIc.d.ts → idCaptureManager-D-QYESvF.d.ts} +8 -7
- package/dist/{idCaptureManager-CWG0Qgeq.esm.js → idCaptureManager-mQGmxqf1.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-Dqfxbea3.esm.js → idCaptureStateMachine-DXeLlQa_.esm.js} +19 -18
- package/dist/{idOcrStateMachine-DVjkIw10.esm.js → idOcrStateMachine-Cj2uN_q_.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-B_F3G-v-.esm.js → idVerificationStateMachine-DVrl68dQ.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +3 -3
- package/dist/identity-reuse.esm.js +6 -6
- package/dist/{identityReuseManager-CNcsh-xr.esm.js → identityReuseManager-DHYlQW3K.esm.js} +3 -3
- package/dist/{identityReuseManager-DVZLgcfm.d.ts → identityReuseManager-DYb7I3jf.d.ts} +36 -36
- package/dist/{identityReuseStateMachine-BrbaZto8.esm.js → identityReuseStateMachine-Dyfa7yzx.esm.js} +3 -3
- package/dist/{index-B1ijI7RD.d.ts → index-B2RUw1Th.d.ts} +169 -169
- package/dist/{index-C3KOkxmU.d.ts → index-B5hPA0Bg.d.ts} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +12 -12
- package/dist/{invokeOnCaptureCallback-Bty7q0sC.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
- package/dist/{lib-DmGBvFHu.esm.js → lib-BY67lgbq.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +7 -7
- package/dist/mandatory-consent.esm.js +6 -6
- package/dist/{mandatoryConsentManager-BUpEBczR.esm.js → mandatoryConsentManager-BTqe3YNU.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-DwmDNt6y.d.ts → mandatoryConsentManager-DBc5NyKN.d.ts} +55 -55
- package/dist/{mandatoryConsentStateMachine-B6hfQFw1.esm.js → mandatoryConsentStateMachine-4yzCCY4e.esm.js} +3 -3
- package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
- package/dist/{openviduLazy-6AQum7Ca.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
- package/dist/{permissionGuards-DUKOJ-Mt.esm.js → permissionGuards-C1ispV96.esm.js} +1 -1
- package/dist/{permissionServices-BjXAT5OT.esm.js → permissionServices-CG3bMSfG.esm.js} +3 -3
- package/dist/phone.d.ts +4 -4
- package/dist/phone.esm.js +8 -8
- package/dist/{phoneManager-Ddl_CeNb.esm.js → phoneManager-B44MT4ro.esm.js} +4 -4
- package/dist/{phoneManager-BgoX1fvQ.d.ts → phoneManager-fPmIBYQK.d.ts} +3 -3
- package/dist/{phoneStateMachine-CrjW4JrA.esm.js → phoneStateMachine-CMht9LLp.esm.js} +5 -5
- package/dist/{qe-signature-C8uvV_-H.esm.js → qe-signature-DCz2roEC.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +7 -7
- package/dist/{recordingService-DCUipzC7.esm.js → recordingService-DwPmv6FZ.esm.js} +16 -131
- package/dist/redirect-to-mobile.d.ts +3 -3
- package/dist/redirect-to-mobile.esm.js +7 -7
- package/dist/{redirectToMobileManager-CQxCClRy.esm.js → redirectToMobileManager-BAzevDYW.esm.js} +4 -4
- package/dist/{redirectToMobileManager-xOasdN0s.d.ts → redirectToMobileManager-BNe3IzC_.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DHqdmBzc.esm.js → redirectToMobileStateMachine-BmwxrN1h.esm.js} +4 -4
- package/dist/{runChildModule-B1uVG8D-.esm.js → runChildModule-CuoHZ1cx.esm.js} +3 -3
- package/dist/selfie.d.ts +13 -12
- package/dist/selfie.esm.js +28 -26
- package/dist/{selfieManager-CeTXxT2U.d.ts → selfieManager-dUbKRzOh.d.ts} +2 -2
- package/dist/{selfieManager-DpFMP4Rk.esm.js → selfieManager-zH9pAVXE.esm.js} +6 -6
- package/dist/{selfieStateMachine-DCHihi8J.esm.js → selfieStateMachine-Dr5sCDgI.esm.js} +4 -4
- package/dist/{session-Ds1d84mn.esm.js → session-BEtpaQ6D.esm.js} +3 -3
- package/dist/session.d.ts +5 -5
- package/dist/session.esm.js +12 -12
- package/dist/{sessionInitializer-Be88b4WX.esm.js → sessionInitializer-D0Ei5Ol7.esm.js} +7 -7
- package/dist/{setup-BtLWJPSp.d.ts → setup-BbkprdVv.d.ts} +1 -1
- package/dist/{setup-BgxDnUDw.esm.js → setup-DotVj7UA.esm.js} +7 -7
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +5 -5
- package/dist/{signatureStateMachine-CY1u1o6J.esm.js → signatureStateMachine-CpcyA7CM.esm.js} +4 -4
- package/dist/{stats-AwLva7-C.esm.js → stats-SU3Linba.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/trust-graph.d.ts +3 -3
- package/dist/trust-graph.esm.js +3 -3
- package/dist/{types-BmZR-K77.d.ts → types-Bj9hdFjU.d.ts} +1 -1
- package/dist/{types-DJsgKeW0.d.ts → types-DOUhndhT.d.ts} +2 -2
- package/dist/{types-BI-jIO73.d.ts → types-NuT8ftBV.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +12 -12
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +5 -5
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +5 -5
- package/dist/{watchlistForBusinessStateMachine-CGRko-GU.esm.js → watchlistForBusinessStateMachine-DsEq8xwX.esm.js} +3 -3
- package/dist/{watchlistStateMachine-CWVTWVJY.esm.js → watchlistStateMachine-CREpVW-C.esm.js} +3 -3
- package/dist/workflow.d.ts +97 -97
- package/dist/workflow.esm.js +60 -58
- package/package.json +9 -1
- package/dist/openviduLazy-Dge_R911.esm.js +0 -3
- /package/dist/{Actor-Ds20AUDY.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
- /package/dist/{BrowserStorageProvider-BrJver0U.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-BESs49g_.esm.js → BrowserTimerProvider-DhNc_x02.esm.js} +0 -0
- /package/dist/{ITimerCapability-gIlcIrAX.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
- /package/dist/{IpifyProvider-BQKB2PR-.esm.js → IpifyProvider-D4LWD15E.esm.js} +0 -0
- /package/dist/{Manager-Dh6pC-6V.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-D1JWpMLJ.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +0 -0
- /package/dist/{StateMachine-CENvPkCx.d.ts → StateMachine-BC_nGvrc.d.ts} +0 -0
- /package/dist/{WasmUtilProvider-CeyOvhU2.esm.js → WasmUtilProvider-CiEN7Gjn.esm.js} +0 -0
- /package/dist/{api-YxPMtty2.esm.js → api-CESGtpbH.esm.js} +0 -0
- /package/dist/{apiError-76Dulrw9.esm.js → apiError-B-j-gyDx.esm.js} +0 -0
- /package/dist/{camera-P7dse339.esm.js → camera-DJWm3V4g.esm.js} +0 -0
- /package/dist/{camera-D7qYpKeG.d.ts → camera-SRBpPq2X.d.ts} +0 -0
- /package/dist/{chunk-wtC55c3P.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
- /package/dist/{cpf-COPPtEoQ.esm.js → cpf-BRzggV8G.esm.js} +0 -0
- /package/dist/{dateUtils-CibceEoG.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
- /package/dist/{flowCompletionService-DOHFSAJ2.d.ts → flowCompletionService-BdR2cGgB.d.ts} +0 -0
- /package/dist/{getBrowser-CMJJeBF8.esm.js → getBrowser-C8DP7oTB.esm.js} +0 -0
- /package/dist/{getDeviceClass-C5yT6K2e.esm.js → getDeviceClass-C0olyNFS.esm.js} +0 -0
- /package/dist/{otp-lOELtCck.esm.js → otp-CGMdUzBC.esm.js} +0 -0
- /package/dist/{otp-Ci7E_eNt.d.ts → otp-DF5A0sFx.d.ts} +0 -0
- /package/dist/{platform-D871crJL.esm.js → platform-SKvEfCBh.esm.js} +0 -0
- /package/dist/{types-CRp-Maxh.esm.js → types-DsnEVMhr.esm.js} +0 -0
- /package/dist/{types-Cojkwi9p.d.ts → types-DvGZI7BF.d.ts} +0 -0
- /package/dist/{types-DI4L4PFE.d.ts → types-ya0LN_MX.d.ts} +0 -0
- /package/dist/{warmup-Bx2GXY3L.d.ts → warmup-Dg8Lh-50.d.ts} +0 -0
- /package/dist/{xstate.esm-CWoFJOio.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { t as IncodeCanvas } from "./canvas-SKcRBxsk.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/media/StreamCanvasCapture.ts
|
|
4
|
+
var StreamCanvasCapture = class {
|
|
5
|
+
constructor(stream, options) {
|
|
6
|
+
this.hasFrame = false;
|
|
7
|
+
this.disposed = false;
|
|
8
|
+
this.eventTarget = new EventTarget();
|
|
9
|
+
this.video = document.createElement("video");
|
|
10
|
+
this.video.srcObject = stream;
|
|
11
|
+
this.video.autoplay = true;
|
|
12
|
+
this.video.playsInline = true;
|
|
13
|
+
this.video.muted = true;
|
|
14
|
+
const settings = stream.getVideoTracks()[0]?.getSettings();
|
|
15
|
+
const initialWidth = options?.width ?? settings?.width ?? 1280;
|
|
16
|
+
const initialHeight = options?.height ?? settings?.height ?? 720;
|
|
17
|
+
this.canvas = document.createElement("canvas");
|
|
18
|
+
this.canvas.width = initialWidth;
|
|
19
|
+
this.canvas.height = initialHeight;
|
|
20
|
+
this.ctx = this.canvas.getContext("2d", { willReadFrequently: true });
|
|
21
|
+
const fps = options?.fps ?? 10;
|
|
22
|
+
const intervalMs = fps > 0 ? Math.max(16, Math.floor(1e3 / fps)) : 0;
|
|
23
|
+
this.video.addEventListener("loadedmetadata", () => {
|
|
24
|
+
if (this.video.videoWidth > 0 && this.video.videoHeight > 0) {
|
|
25
|
+
this.canvas.width = this.video.videoWidth;
|
|
26
|
+
this.canvas.height = this.video.videoHeight;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
try {
|
|
30
|
+
this.video.play();
|
|
31
|
+
} catch {}
|
|
32
|
+
this.rafLoop(intervalMs);
|
|
33
|
+
}
|
|
34
|
+
addEventListener(type, listener, options) {
|
|
35
|
+
this.eventTarget.addEventListener(type, listener, options);
|
|
36
|
+
}
|
|
37
|
+
removeEventListener(type, listener, options) {
|
|
38
|
+
this.eventTarget.removeEventListener(type, listener, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
42
|
+
*/
|
|
43
|
+
getLatestCanvas() {
|
|
44
|
+
if (!this.hasFrame) this.tick();
|
|
45
|
+
if (!this.hasFrame) return null;
|
|
46
|
+
return new IncodeCanvas(this.canvas);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns the latest cached frame as raw {@link ImageData}.
|
|
50
|
+
*/
|
|
51
|
+
getLatestFrame() {
|
|
52
|
+
if (!this.ctx) return null;
|
|
53
|
+
if (!this.hasFrame) this.tick();
|
|
54
|
+
if (!this.hasFrame) return null;
|
|
55
|
+
try {
|
|
56
|
+
return this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height);
|
|
57
|
+
} catch {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Disposes internal resources and stops the capture loop.
|
|
63
|
+
*/
|
|
64
|
+
dispose() {
|
|
65
|
+
if (this.disposed) return;
|
|
66
|
+
this.disposed = true;
|
|
67
|
+
if (this.rafId !== void 0) {
|
|
68
|
+
window.cancelAnimationFrame(this.rafId);
|
|
69
|
+
this.rafId = void 0;
|
|
70
|
+
}
|
|
71
|
+
this.video.srcObject = null;
|
|
72
|
+
this.canvas.width = 0;
|
|
73
|
+
this.canvas.height = 0;
|
|
74
|
+
this.hasFrame = false;
|
|
75
|
+
}
|
|
76
|
+
rafLoop(intervalMs) {
|
|
77
|
+
const loop = (timeMs) => {
|
|
78
|
+
if (this.disposed) return;
|
|
79
|
+
if (intervalMs <= 0 || this.lastTickTimeMs === void 0 || timeMs - this.lastTickTimeMs >= intervalMs) {
|
|
80
|
+
this.lastTickTimeMs = timeMs;
|
|
81
|
+
const previousFrameTimeSeconds = this.lastFrameTimeSeconds;
|
|
82
|
+
this.tick();
|
|
83
|
+
const currentFrameTimeSeconds = this.video.currentTime;
|
|
84
|
+
if (previousFrameTimeSeconds === void 0) {
|
|
85
|
+
if (this.hasFrame) {
|
|
86
|
+
this.lastFrameTimeSeconds = currentFrameTimeSeconds;
|
|
87
|
+
this.eventTarget.dispatchEvent(new Event("frame"));
|
|
88
|
+
}
|
|
89
|
+
} else if (this.hasFrame && currentFrameTimeSeconds !== previousFrameTimeSeconds) {
|
|
90
|
+
this.lastFrameTimeSeconds = currentFrameTimeSeconds;
|
|
91
|
+
this.eventTarget.dispatchEvent(new Event("frame"));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.rafId = window.requestAnimationFrame(loop);
|
|
95
|
+
};
|
|
96
|
+
this.rafId = window.requestAnimationFrame(loop);
|
|
97
|
+
}
|
|
98
|
+
tick() {
|
|
99
|
+
if (!this.ctx) return;
|
|
100
|
+
if (this.video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) return;
|
|
101
|
+
const videoWidth = this.video.videoWidth;
|
|
102
|
+
const videoHeight = this.video.videoHeight;
|
|
103
|
+
if (videoWidth === 0 || videoHeight === 0) return;
|
|
104
|
+
if (this.canvas.width !== videoWidth || this.canvas.height !== videoHeight) {
|
|
105
|
+
this.canvas.width = videoWidth;
|
|
106
|
+
this.canvas.height = videoHeight;
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
this.ctx.drawImage(this.video, 0, 0);
|
|
110
|
+
this.hasFrame = true;
|
|
111
|
+
} catch {
|
|
112
|
+
this.hasFrame = false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { StreamCanvasCapture as t };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { t as CameraStream } from "./camera-SRBpPq2X.js";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/media/canvas.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Class representing a canvas element for image capture and manipulation.
|
|
6
|
+
*/
|
|
7
|
+
declare class IncodeCanvas {
|
|
8
|
+
canvas: HTMLCanvasElement;
|
|
9
|
+
private base64Image;
|
|
10
|
+
private blobData;
|
|
11
|
+
/**
|
|
12
|
+
* Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
|
|
13
|
+
* @param imageData - Frame pixels in RGBA format
|
|
14
|
+
* @returns An {@link IncodeCanvas} containing the provided pixels
|
|
15
|
+
*/
|
|
16
|
+
static fromImageData(imageData: ImageData): IncodeCanvas;
|
|
17
|
+
/**
|
|
18
|
+
* Create a new canvas element.
|
|
19
|
+
* @param canvas_ - The canvas element to clone.
|
|
20
|
+
*/
|
|
21
|
+
constructor(canvas_: HTMLCanvasElement);
|
|
22
|
+
/**
|
|
23
|
+
* Check if the current canvas is valid.
|
|
24
|
+
*/
|
|
25
|
+
private checkCanvas;
|
|
26
|
+
/**
|
|
27
|
+
* Disposes of resources, including revoking object URLs to prevent memory leaks.
|
|
28
|
+
*/
|
|
29
|
+
dispose(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Release the data stored by IncodeCanvas.
|
|
32
|
+
*/
|
|
33
|
+
release(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Revokes the object URL if one exists, preventing memory leaks.
|
|
36
|
+
* Use this when you no longer need the preview image URL.
|
|
37
|
+
*/
|
|
38
|
+
revokeObjectURL(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Get the width of the canvas.
|
|
41
|
+
*/
|
|
42
|
+
width(): number | null;
|
|
43
|
+
/**
|
|
44
|
+
* Get the height of the canvas.
|
|
45
|
+
*/
|
|
46
|
+
height(): number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Set the width of the canvas.
|
|
49
|
+
*/
|
|
50
|
+
setWidth(width: number): void;
|
|
51
|
+
/**
|
|
52
|
+
* Set the height of the canvas.
|
|
53
|
+
*/
|
|
54
|
+
setHeight(height: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* Clone the current canvas.
|
|
57
|
+
*/
|
|
58
|
+
clone(): IncodeCanvas | null;
|
|
59
|
+
/**
|
|
60
|
+
* Deep clone the current IncodeCanvas including blob data.
|
|
61
|
+
*/
|
|
62
|
+
deepClone(): Promise<IncodeCanvas | null>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the drawing context on the canvas.
|
|
65
|
+
*/
|
|
66
|
+
getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves the image data from the canvas.
|
|
69
|
+
*/
|
|
70
|
+
getImageData(): ImageData | null;
|
|
71
|
+
/**
|
|
72
|
+
* Updates the base64 representation of the current canvas image.
|
|
73
|
+
*/
|
|
74
|
+
updateBase64Image(jpegQuality?: number): void;
|
|
75
|
+
/**
|
|
76
|
+
* Converts the current canvas element to a base64 string.
|
|
77
|
+
*/
|
|
78
|
+
getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the base64 representation of the current canvas image.
|
|
81
|
+
*/
|
|
82
|
+
setBase64Image(base64Image: string | null): void;
|
|
83
|
+
/**
|
|
84
|
+
* Updates the Blob representation of the current canvas image.
|
|
85
|
+
*/
|
|
86
|
+
updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
|
|
87
|
+
/**
|
|
88
|
+
* Converts a base64 string to a Blob and creates a URL for it.
|
|
89
|
+
*/
|
|
90
|
+
static base64ToBlob(base64: string): {
|
|
91
|
+
blob: Blob;
|
|
92
|
+
url: string;
|
|
93
|
+
} | null;
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves the Blob data and its URL from the current canvas.
|
|
96
|
+
*/
|
|
97
|
+
getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
|
|
98
|
+
blob: Blob;
|
|
99
|
+
url: string;
|
|
100
|
+
} | null;
|
|
101
|
+
/**
|
|
102
|
+
* Sets the Blob data of the current canvas image.
|
|
103
|
+
*/
|
|
104
|
+
setBlobData(blobData: {
|
|
105
|
+
blob: Blob;
|
|
106
|
+
url: string;
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns a resized canvas according to video element size.
|
|
110
|
+
*/
|
|
111
|
+
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { i as fromCallback } from "./xstate.esm-
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
2
|
+
import { t as api } from "./api-CESGtpbH.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
|
|
4
|
+
import { i as fromCallback } from "./xstate.esm-C9wncMQa.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-DECEJ9hm.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/ae-signature/index.ts
|
|
4
4
|
function createAeSignatureManager(options) {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
1
|
+
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
+
import "./Actor-Y0_Fj-KL.js";
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B2RUw1Th.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import "./apiError-
|
|
6
|
-
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
7
|
-
import { t as createAeSignatureManager } from "./ae-signature-
|
|
1
|
+
import "./api-CESGtpbH.esm.js";
|
|
2
|
+
import "./events-Dvvriq9l.esm.js";
|
|
3
|
+
import "./endpoints-zEf_JIJU.esm.js";
|
|
4
|
+
import "./xstate.esm-C9wncMQa.esm.js";
|
|
5
|
+
import "./apiError-B-j-gyDx.esm.js";
|
|
6
|
+
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-DECEJ9hm.esm.js";
|
|
7
|
+
import { t as createAeSignatureManager } from "./ae-signature-CQjOxLrv.esm.js";
|
|
8
8
|
|
|
9
9
|
export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
|
package/dist/antifraud.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-
|
|
1
|
+
import "./Manager-BHn8wH8K.js";
|
|
2
|
+
import "./Actor-Y0_Fj-KL.js";
|
|
3
|
+
import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-CznnhyvD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/types.d.ts
|
|
6
6
|
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
6
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
1
|
+
import "./api-CESGtpbH.esm.js";
|
|
2
|
+
import "./events-Dvvriq9l.esm.js";
|
|
3
|
+
import "./endpoints-zEf_JIJU.esm.js";
|
|
4
|
+
import "./xstate.esm-C9wncMQa.esm.js";
|
|
5
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-Bp7yS1LV.esm.js";
|
|
6
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CZDCQli0.esm.js";
|
|
7
7
|
|
|
8
8
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
3
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
|
|
2
|
+
import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
3
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-Bp7yS1LV.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
6
6
|
function createAntifraudActor() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/antifraud/antifraudStateMachine.d.ts
|
|
5
5
|
declare const antifraudMachine: any;
|
package/dist/{antifraudStateMachine-DmhL7cti.esm.js → antifraudStateMachine-Bp7yS1LV.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-CESGtpbH.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
|
|
3
|
+
import { a as fromPromise, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
6
6
|
async function processAntifraud(signal) {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./StateMachine-
|
|
5
|
-
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import "./camera-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./deepsightService-
|
|
11
|
-
import "./types-
|
|
12
|
-
import
|
|
1
|
+
import "./warmup-Dg8Lh-50.js";
|
|
2
|
+
import "./Manager-BHn8wH8K.js";
|
|
3
|
+
import "./Actor-Y0_Fj-KL.js";
|
|
4
|
+
import "./StateMachine-BC_nGvrc.js";
|
|
5
|
+
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
|
|
6
|
+
import "./camera-SRBpPq2X.js";
|
|
7
|
+
import "./types-Bj9hdFjU.js";
|
|
8
|
+
import "./types-DvGZI7BF.js";
|
|
9
|
+
import "./types-DOUhndhT.js";
|
|
10
|
+
import "./deepsightService-B7ShOkWL.js";
|
|
11
|
+
import "./types-ya0LN_MX.js";
|
|
12
|
+
import "./StreamCanvasCapture-yyl20qd9.js";
|
|
13
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CIVY80H9.js";
|
|
13
14
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import "./api-
|
|
3
|
-
import "./events-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import "./stats-
|
|
6
|
-
import "./browserSimulation-
|
|
7
|
-
import "./platform-
|
|
8
|
-
import "./getBrowser-
|
|
9
|
-
import "./xstate.esm-
|
|
10
|
-
import "./BrowserStorageProvider-
|
|
11
|
-
import "./MotionSensorProvider-
|
|
12
|
-
import "./permissionServices-
|
|
13
|
-
import "./camera-
|
|
14
|
-
import "./faceCaptureManagerFactory-
|
|
15
|
-
import "./recordingService-
|
|
16
|
-
import "./ITimerCapability-
|
|
17
|
-
import "./
|
|
18
|
-
import "./backCameraStream-
|
|
19
|
-
import "./
|
|
20
|
-
import "./getDeviceClass-
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import
|
|
25
|
-
import
|
|
1
|
+
import "./WasmUtilProvider-CiEN7Gjn.esm.js";
|
|
2
|
+
import "./api-CESGtpbH.esm.js";
|
|
3
|
+
import "./events-Dvvriq9l.esm.js";
|
|
4
|
+
import "./endpoints-zEf_JIJU.esm.js";
|
|
5
|
+
import "./stats-SU3Linba.esm.js";
|
|
6
|
+
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
7
|
+
import "./platform-SKvEfCBh.esm.js";
|
|
8
|
+
import "./getBrowser-C8DP7oTB.esm.js";
|
|
9
|
+
import "./xstate.esm-C9wncMQa.esm.js";
|
|
10
|
+
import "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
11
|
+
import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
12
|
+
import "./permissionServices-CG3bMSfG.esm.js";
|
|
13
|
+
import "./camera-DJWm3V4g.esm.js";
|
|
14
|
+
import "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
|
|
15
|
+
import "./recordingService-DwPmv6FZ.esm.js";
|
|
16
|
+
import "./ITimerCapability-CB0I1Uf2.esm.js";
|
|
17
|
+
import "./canvas-SKcRBxsk.esm.js";
|
|
18
|
+
import "./backCameraStream-D7Wo4Nbx.esm.js";
|
|
19
|
+
import "./deepsightService-Da56SkD4.esm.js";
|
|
20
|
+
import "./getDeviceClass-C0olyNFS.esm.js";
|
|
21
|
+
import "./getDeviceClass-C8Do2qYu.esm.js";
|
|
22
|
+
import "./types-DsnEVMhr.esm.js";
|
|
23
|
+
import "./StreamCanvasCapture-ImiDQdVA.esm.js";
|
|
24
|
+
import "./permissionGuards-C1ispV96.esm.js";
|
|
25
|
+
import "./faceCaptureSetup-CoZCFG0w.esm.js";
|
|
26
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-3HbNfPoL.esm.js";
|
|
27
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C3-IUymg.esm.js";
|
|
26
28
|
|
|
27
29
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-DIN4eL_6.esm.js → authenticationManager-C3-IUymg.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
3
|
-
import { s as createActor } from "./xstate.esm-
|
|
4
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-CiEN7Gjn.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-Dvvriq9l.esm.js";
|
|
3
|
+
import { s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
4
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-3HbNfPoL.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
+
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { t as addDeviceStats } from "./stats-
|
|
4
|
-
import { a as fromPromise, r as assign } from "./xstate.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
7
|
-
import { t as FACE_ERROR_CODES } from "./types-
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { t as api } from "./api-CESGtpbH.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
|
|
3
|
+
import { t as addDeviceStats } from "./stats-SU3Linba.esm.js";
|
|
4
|
+
import { a as fromPromise, r as assign } from "./xstate.esm-C9wncMQa.esm.js";
|
|
5
|
+
import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-DwPmv6FZ.esm.js";
|
|
6
|
+
import { t as getDeviceClass } from "./getDeviceClass-C8Do2qYu.esm.js";
|
|
7
|
+
import { t as FACE_ERROR_CODES } from "./types-DsnEVMhr.esm.js";
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CoZCFG0w.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
11
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-
|
|
2
|
-
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
3
|
-
import { t as sleep } from "./ITimerCapability-
|
|
1
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-SKvEfCBh.esm.js";
|
|
2
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DJWm3V4g.esm.js";
|
|
3
|
+
import { t as sleep } from "./ITimerCapability-CB0I1Uf2.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
6
6
|
const BACK_CAMERA_KEYWORDS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as isIOS } from "./platform-
|
|
2
|
-
import { t as getUserAgent } from "./getBrowser-
|
|
1
|
+
import { r as isIOS } from "./platform-SKvEfCBh.esm.js";
|
|
2
|
+
import { t as getUserAgent } from "./getBrowser-C8DP7oTB.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/ua-parser-js@2.0.9/node_modules/ua-parser-js/src/main/ua-parser.mjs
|
|
5
5
|
var LIBVERSION = "2.0.9", UA_MAX_LENGTH = 500, USER_AGENT = "user-agent", EMPTY = "", UNKNOWN = "?", TYPEOF = {
|
package/dist/camera.d.ts
CHANGED
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-CiEN7Gjn.esm.js";
|
|
2
|
+
import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
3
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-CG3bMSfG.esm.js";
|
|
4
|
+
import "./camera-DJWm3V4g.esm.js";
|
|
5
5
|
|
|
6
6
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|