@incodetech/core 0.0.0-dev-20260717-fadab6d2 → 0.0.0-dev-20260717-17d23610
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/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CxZG_XEP.esm.js → authenticationManager-C5nO8GhV.esm.js} +2 -2
- package/dist/{authenticationStateMachine-onPbxDni.esm.js → authenticationStateMachine-C2Rxpvux.esm.js} +2 -2
- package/dist/{deepsightLoader-C5jM6w5a.esm.js → deepsightLoader-OXrP5BZB.esm.js} +1 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-DZ5IFq32.esm.js → ekybManager-CQEK0tV2.esm.js} +1 -1
- package/dist/{ekybStateMachine-Ceuno_xk.esm.js → ekybStateMachine-Di32xFWm.esm.js} +1 -1
- package/dist/extensibility.esm.js +6 -6
- package/dist/{faceCaptureManagerFactory-B1T2_Gea.esm.js → faceCaptureManagerFactory-DWbsV9Hb.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CnnrypkS.esm.js → faceCaptureSetup-D0OgPQ4h.esm.js} +2 -2
- package/dist/flow.esm.js +1 -1
- package/dist/{flowServices-BNlLAvHX.esm.js → flowServices-VcegkvP8.esm.js} +2 -2
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-T_VoV9qV.esm.js → idCaptureManager-qzGxTU-i.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-D0xgczM4.esm.js → idCaptureStateMachine-5NIUTkyD.esm.js} +5 -5
- package/dist/index.esm.js +1 -1
- package/dist/{onDeviceFaceResults-BLM1EjYa.esm.js → onDeviceFaceResults-BCVwIXUb.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/{recordingService-DwwT9AzD.esm.js → recordingService-DmC3aGiF.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-BhBnkeaO.esm.js → selfieManager-BpKCOb4e.esm.js} +2 -2
- package/dist/{selfieStateMachine-D4cFA8lg.esm.js → selfieStateMachine-O16pT4th.esm.js} +2 -2
- package/dist/session-Cc3O3VPK.esm.js +1 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-B6dm2iOz.esm.js → sessionInitializer-DNt98Rr1.esm.js} +1 -1
- package/dist/{setup-Bb6g-FRf.esm.js → setup-BEpnb0QN.esm.js} +1 -1
- package/dist/video-selfie.d.ts +15 -8
- package/dist/video-selfie.esm.js +61 -20
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +5 -5
- package/package.json +3 -3
- package/dist/session-BW6ChMyw.esm.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-C2Rxpvux.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C5nO8GhV.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-CxZG_XEP.esm.js → authenticationManager-C5nO8GhV.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DWbsV9Hb.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-C2Rxpvux.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
|
3
3
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
4
4
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-D0OgPQ4h.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
9
9
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
4
|
-
import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-
|
|
4
|
+
import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
7
7
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
|
|
@@ -38,6 +38,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
|
|
|
38
38
|
id: string | undefined;
|
|
39
39
|
};
|
|
40
40
|
}>, Values<{
|
|
41
|
+
setError: {
|
|
42
|
+
type: "setError";
|
|
43
|
+
params: NonReducibleUnknown;
|
|
44
|
+
};
|
|
41
45
|
setStream: {
|
|
42
46
|
type: "setStream";
|
|
43
47
|
params: NonReducibleUnknown;
|
|
@@ -50,10 +54,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
|
|
|
50
54
|
type: "setProgress";
|
|
51
55
|
params: NonReducibleUnknown;
|
|
52
56
|
};
|
|
53
|
-
setError: {
|
|
54
|
-
type: "setError";
|
|
55
|
-
params: NonReducibleUnknown;
|
|
56
|
-
};
|
|
57
57
|
clearError: {
|
|
58
58
|
type: "clearError";
|
|
59
59
|
params: NonReducibleUnknown;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-
|
|
2
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-Di32xFWm.esm.js";
|
|
2
|
+
import { t as createEkybManager } from "./ekybManager-CQEK0tV2.esm.js";
|
|
3
3
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-Di32xFWm.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -3,7 +3,7 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
|
3
3
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DH-IPF-w.esm.js";
|
|
6
|
-
import { t as getFlow } from "./flowServices-
|
|
6
|
+
import { t as getFlow } from "./flowServices-VcegkvP8.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
/**
|
|
9
9
|
* Countries available in all environments.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-
|
|
2
|
+
import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-CL2YhiVX.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-D0OgPQ4h.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C5nO8GhV.esm.js";
|
|
9
9
|
import { n as createConsentManagerFromActor } from "./consentManager-D3GyyH5u.esm.js";
|
|
10
10
|
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Cwm0MesJ.esm.js";
|
|
11
11
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9rdIO8Qk.esm.js";
|
|
12
12
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-C2i9Lzx9.esm.js";
|
|
13
13
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DijbJFun.esm.js";
|
|
14
14
|
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DxDndOS0.esm.js";
|
|
15
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
15
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-CQEK0tV2.esm.js";
|
|
16
16
|
import { n as createEkycManagerFromActor } from "./ekycManager-BSMlIpGA.esm.js";
|
|
17
17
|
import { n as createEmailManagerFromActor } from "./emailManager-c-mDLieD.esm.js";
|
|
18
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
19
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
18
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BpKCOb4e.esm.js";
|
|
19
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-qzGxTU-i.esm.js";
|
|
20
20
|
import { n as createPhoneManagerFromActor } from "./phoneManager-KbcmjEeH.esm.js";
|
|
21
21
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-DHfJZTVo.esm.js";
|
|
22
22
|
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-5LlxYad-.esm.js";
|
package/dist/{faceCaptureManagerFactory-B1T2_Gea.esm.js → faceCaptureManagerFactory-DWbsV9Hb.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { n as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { n as concealmentToAvatar } from "./faceCaptureSetup-D0OgPQ4h.esm.js";
|
|
5
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
6
6
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
|
|
7
7
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
|
|
|
2
2
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
5
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
9
9
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
10
|
-
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-
|
|
10
|
+
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-DmC3aGiF.esm.js";
|
|
11
11
|
//#region src/internal/avatar/concealment.ts
|
|
12
12
|
/**
|
|
13
13
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
4
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-VcegkvP8.esm.js";
|
|
5
5
|
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-B30WLCxd.esm.js";
|
|
6
6
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
4
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
5
5
|
import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
6
|
-
import "./session-
|
|
6
|
+
import "./session-Cc3O3VPK.esm.js";
|
|
7
7
|
import { r as videoSelfieWasmPipelines } from "./videoSelfieSteps-DHcibfYH.esm.js";
|
|
8
8
|
//#region src/modules/flow/flowUtils.ts
|
|
9
9
|
const WASM_MODULE_PIPELINES = {
|
package/dist/id.esm.js
CHANGED
|
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
|
2
2
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
5
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
5
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-5NIUTkyD.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-qzGxTU-i.esm.js";
|
|
7
7
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
8
8
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
9
9
|
function buildSubImage(canvas) {
|
|
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
|
|
|
4
4
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
5
5
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
|
|
6
6
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
7
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
7
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-5NIUTkyD.esm.js";
|
|
8
8
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
9
9
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
10
10
|
function isHoldingState(value) {
|
package/dist/{idCaptureStateMachine-D0xgczM4.esm.js → idCaptureStateMachine-5NIUTkyD.esm.js}
RENAMED
|
@@ -3,20 +3,20 @@ import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
|
|
|
3
3
|
import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
6
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
6
|
+
import { t as getDisableIpify } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
7
7
|
import { n as isDesktop } from "./platform-wmV7oTAJ.esm.js";
|
|
8
8
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
11
|
-
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
11
|
+
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
12
12
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
13
13
|
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
14
14
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
15
15
|
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
16
16
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
17
17
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
18
|
-
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-
|
|
19
|
-
import "./session-
|
|
18
|
+
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-DmC3aGiF.esm.js";
|
|
19
|
+
import "./session-Cc3O3VPK.esm.js";
|
|
20
20
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-Dzfws4i0.esm.js";
|
|
21
21
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
22
22
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1548,7 +1548,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1548
1548
|
});
|
|
1549
1549
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1550
1550
|
if (!input.dependencies) return;
|
|
1551
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1551
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-OXrP5BZB.esm.js");
|
|
1552
1552
|
return loadDeepsightSession({
|
|
1553
1553
|
ds: input.ds,
|
|
1554
1554
|
storage: input.dependencies.storage,
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-BEpnb0QN.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -516,7 +516,7 @@ async function stopRecording(session) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
519
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-OXrP5BZB.esm.js");
|
|
520
520
|
return loadDeepsightSession({
|
|
521
521
|
ds: options.ds,
|
|
522
522
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
|
|
|
4
4
|
import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-DzT65Fvf.esm.js";
|
|
5
5
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
7
|
-
import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
8
8
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
10
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
12
12
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region ../infra/src/crypto/randomUUID.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
3
|
import { t as isAndroid } from "./platform-wmV7oTAJ.esm.js";
|
|
4
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
4
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-BhSZDDNb.esm.js";
|
|
6
6
|
//#region src/internal/manualReview/manualReviewService.ts
|
|
7
7
|
async function flagFaceManualReview() {
|
package/dist/selfie.esm.js
CHANGED
|
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-D0OgPQ4h.esm.js";
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DWbsV9Hb.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-wgI_IxO1.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-O16pT4th.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BpKCOb4e.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DWbsV9Hb.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-O16pT4th.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-D0OgPQ4h.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-wgI_IxO1.esm.js";
|
|
7
7
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./sessionInitializer-DNt98Rr1.esm.js";
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
4
4
|
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-Cc3O3VPK.esm.js";
|
|
6
6
|
import { n as getFinishStatus } from "./flowCompletionService-B30WLCxd.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
@@ -1609,7 +1609,7 @@ function isBrowserSimulation(browserEnv) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
//#endregion
|
|
1611
1611
|
//#region src/internal/version/sdkVersion.ts
|
|
1612
|
-
const SDK_VERSION = "0.0.0-dev-20260717-
|
|
1612
|
+
const SDK_VERSION = "0.0.0-dev-20260717-17d23610";
|
|
1613
1613
|
//#endregion
|
|
1614
1614
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
1615
1615
|
function formatOsVersion(os) {
|
|
@@ -6,7 +6,7 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
|
|
|
6
6
|
import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
8
8
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
9
|
-
import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-
|
|
9
|
+
import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
10
10
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
11
11
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
12
12
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
package/dist/video-selfie.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ type VideoSelfieConfig = FlowModuleConfig['VIDEO_ONBOARDING'];
|
|
|
27
27
|
type FacingMode = 'user' | 'environment';
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region ../infra/src/media/CameraCompositor.d.ts
|
|
30
|
+
type CameraCompositorOptions = {
|
|
31
|
+
fps?: number;
|
|
32
|
+
};
|
|
30
33
|
/**
|
|
31
34
|
* Composites the *active* camera into a canvas and exposes the canvas as a
|
|
32
35
|
* single, stable `MediaStream` to record. Switching cameras (front ↔ back)
|
|
@@ -40,16 +43,18 @@ type FacingMode = 'user' | 'environment';
|
|
|
40
43
|
*/
|
|
41
44
|
declare class CameraCompositor {
|
|
42
45
|
private readonly fps;
|
|
46
|
+
private readonly frameIntervalMs;
|
|
43
47
|
private canvas;
|
|
44
48
|
private ctx;
|
|
45
49
|
private video;
|
|
46
|
-
private
|
|
50
|
+
private frameRequestId;
|
|
51
|
+
private frameRequestKind;
|
|
52
|
+
private lastDrawTimeMs;
|
|
53
|
+
private lastVideoTimeSeconds;
|
|
47
54
|
private audioTrack;
|
|
48
55
|
private videoTrack;
|
|
49
56
|
private composite;
|
|
50
|
-
constructor(options?:
|
|
51
|
-
fps?: number;
|
|
52
|
-
});
|
|
57
|
+
constructor(options?: CameraCompositorOptions);
|
|
53
58
|
/**
|
|
54
59
|
* Begin compositing `stream` and return the composite stream to record. The
|
|
55
60
|
* stream's audio track (if any) is carried through unchanged across later
|
|
@@ -68,6 +73,10 @@ declare class CameraCompositor {
|
|
|
68
73
|
stop(): void;
|
|
69
74
|
private setVideoSource;
|
|
70
75
|
private startDrawLoop;
|
|
76
|
+
private scheduleNextFrame;
|
|
77
|
+
private cancelDrawLoop;
|
|
78
|
+
private drawCurrentFrame;
|
|
79
|
+
private getBoundedDimensions;
|
|
71
80
|
}
|
|
72
81
|
//#endregion
|
|
73
82
|
//#region src/internal/recordings/multipartRecordingService.d.ts
|
|
@@ -162,10 +171,8 @@ type VideoSelfieRecordingState = {
|
|
|
162
171
|
/** The active source camera (raw, per-step facing). */
|
|
163
172
|
stream: MediaStream | undefined;
|
|
164
173
|
/**
|
|
165
|
-
* The composited output
|
|
166
|
-
*
|
|
167
|
-
* camera consumer (the compositor), avoiding the black second-`<video>` that
|
|
168
|
-
* some devices show when the raw camera track is rendered twice.
|
|
174
|
+
* The composited recording output — a bounded canvas-backed stream that
|
|
175
|
+
* follows camera switches while the preview renders the raw source stream.
|
|
169
176
|
*/
|
|
170
177
|
composite: MediaStream | undefined;
|
|
171
178
|
/** Live per-step detection feedback (e.g. `tooFar`, `blur`, `detecting`). */
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-BEpnb0QN.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
@@ -7,7 +7,7 @@ import { c as createManager, o as createActor, r as assign, t as setup } from ".
|
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
9
9
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
10
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
10
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BCVwIXUb.esm.js";
|
|
11
11
|
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
12
12
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
13
13
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
@@ -399,6 +399,9 @@ async function validateIdFrame(step, config, base64Image) {
|
|
|
399
399
|
}
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region ../infra/src/media/CameraCompositor.ts
|
|
402
|
+
const MAX_COMPOSITE_LONG_EDGE = 1280;
|
|
403
|
+
const MAX_COMPOSITE_SHORT_EDGE = 720;
|
|
404
|
+
const FRAME_INTERVAL_TOLERANCE_RATIO = .9;
|
|
402
405
|
/**
|
|
403
406
|
* Composites the *active* camera into a canvas and exposes the canvas as a
|
|
404
407
|
* single, stable `MediaStream` to record. Switching cameras (front ↔ back)
|
|
@@ -415,11 +418,15 @@ var CameraCompositor = class {
|
|
|
415
418
|
this.canvas = null;
|
|
416
419
|
this.ctx = null;
|
|
417
420
|
this.video = null;
|
|
418
|
-
this.
|
|
421
|
+
this.frameRequestId = null;
|
|
422
|
+
this.frameRequestKind = null;
|
|
423
|
+
this.lastDrawTimeMs = null;
|
|
424
|
+
this.lastVideoTimeSeconds = null;
|
|
419
425
|
this.audioTrack = null;
|
|
420
426
|
this.videoTrack = null;
|
|
421
427
|
this.composite = null;
|
|
422
428
|
this.fps = options.fps ?? 30;
|
|
429
|
+
this.frameIntervalMs = this.fps > 0 ? 1e3 / this.fps : 0;
|
|
423
430
|
}
|
|
424
431
|
/**
|
|
425
432
|
* Begin compositing `stream` and return the composite stream to record. The
|
|
@@ -449,6 +456,7 @@ var CameraCompositor = class {
|
|
|
449
456
|
if (!this.composite) return;
|
|
450
457
|
const previousVideoTrack = this.videoTrack;
|
|
451
458
|
this.setVideoSource(stream);
|
|
459
|
+
this.startDrawLoop();
|
|
452
460
|
if (previousVideoTrack) previousVideoTrack.stop();
|
|
453
461
|
}
|
|
454
462
|
/** The composite stream being recorded, if compositing is active. */
|
|
@@ -457,10 +465,7 @@ var CameraCompositor = class {
|
|
|
457
465
|
}
|
|
458
466
|
/** Stop compositing and release the canvas, audio, and video tracks. */
|
|
459
467
|
stop() {
|
|
460
|
-
|
|
461
|
-
cancelAnimationFrame(this.rafId);
|
|
462
|
-
this.rafId = null;
|
|
463
|
-
}
|
|
468
|
+
this.cancelDrawLoop();
|
|
464
469
|
this.videoTrack?.stop();
|
|
465
470
|
this.audioTrack?.stop();
|
|
466
471
|
this.composite?.getTracks().forEach((track) => track.stop());
|
|
@@ -480,20 +485,56 @@ var CameraCompositor = class {
|
|
|
480
485
|
video.play().catch(() => {});
|
|
481
486
|
}
|
|
482
487
|
startDrawLoop() {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
488
|
+
this.cancelDrawLoop();
|
|
489
|
+
this.lastDrawTimeMs = null;
|
|
490
|
+
this.lastVideoTimeSeconds = null;
|
|
491
|
+
const draw = (timeMs) => {
|
|
492
|
+
const elapsed = this.lastDrawTimeMs === null ? Infinity : timeMs - this.lastDrawTimeMs;
|
|
493
|
+
if ((this.frameIntervalMs === 0 || elapsed >= this.frameIntervalMs * FRAME_INTERVAL_TOLERANCE_RATIO) && this.drawCurrentFrame()) this.lastDrawTimeMs = timeMs;
|
|
494
|
+
this.scheduleNextFrame(draw);
|
|
495
|
+
};
|
|
496
|
+
this.scheduleNextFrame(draw);
|
|
497
|
+
}
|
|
498
|
+
scheduleNextFrame(callback) {
|
|
499
|
+
const video = this.video;
|
|
500
|
+
if (video && typeof video.requestVideoFrameCallback === "function") {
|
|
501
|
+
this.frameRequestKind = "video";
|
|
502
|
+
this.frameRequestId = video.requestVideoFrameCallback(callback);
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
this.frameRequestKind = "animation";
|
|
506
|
+
this.frameRequestId = requestAnimationFrame(callback);
|
|
507
|
+
}
|
|
508
|
+
cancelDrawLoop() {
|
|
509
|
+
if (this.frameRequestId === null) return;
|
|
510
|
+
if (this.frameRequestKind === "video" && this.video && typeof this.video.cancelVideoFrameCallback === "function") this.video.cancelVideoFrameCallback(this.frameRequestId);
|
|
511
|
+
else cancelAnimationFrame(this.frameRequestId);
|
|
512
|
+
this.frameRequestId = null;
|
|
513
|
+
this.frameRequestKind = null;
|
|
514
|
+
}
|
|
515
|
+
drawCurrentFrame() {
|
|
516
|
+
const video = this.video;
|
|
517
|
+
const canvas = this.canvas;
|
|
518
|
+
const ctx = this.ctx;
|
|
519
|
+
if (!video || !canvas || !ctx || video.videoWidth <= 0) return false;
|
|
520
|
+
if (this.lastVideoTimeSeconds === video.currentTime) return false;
|
|
521
|
+
const dimensions = this.getBoundedDimensions(video.videoWidth, video.videoHeight);
|
|
522
|
+
if (canvas.width !== dimensions.width || canvas.height !== dimensions.height) {
|
|
523
|
+
canvas.width = dimensions.width;
|
|
524
|
+
canvas.height = dimensions.height;
|
|
525
|
+
}
|
|
526
|
+
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
527
|
+
this.lastVideoTimeSeconds = video.currentTime;
|
|
528
|
+
return true;
|
|
529
|
+
}
|
|
530
|
+
getBoundedDimensions(width, height) {
|
|
531
|
+
const longEdge = Math.max(width, height);
|
|
532
|
+
const shortEdge = Math.min(width, height);
|
|
533
|
+
const scale = Math.min(1, MAX_COMPOSITE_LONG_EDGE / longEdge, MAX_COMPOSITE_SHORT_EDGE / shortEdge);
|
|
534
|
+
return {
|
|
535
|
+
width: Math.max(1, Math.round(width * scale)),
|
|
536
|
+
height: Math.max(1, Math.round(height * scale))
|
|
495
537
|
};
|
|
496
|
-
this.rafId = requestAnimationFrame(draw);
|
|
497
538
|
}
|
|
498
539
|
};
|
|
499
540
|
//#endregion
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-
|
|
2
|
+
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-BEpnb0QN.esm.js";
|
|
3
3
|
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -320,10 +320,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
320
320
|
id: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
}>, Values<{
|
|
323
|
-
setError: {
|
|
324
|
-
type: "setError";
|
|
325
|
-
params: NonReducibleUnknown;
|
|
326
|
-
};
|
|
327
323
|
setLoadingResult: {
|
|
328
324
|
type: "setLoadingResult";
|
|
329
325
|
params: NonReducibleUnknown;
|
|
@@ -352,6 +348,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
352
348
|
type: "setFinishStatusFailed";
|
|
353
349
|
params: NonReducibleUnknown;
|
|
354
350
|
};
|
|
351
|
+
setError: {
|
|
352
|
+
type: "setError";
|
|
353
|
+
params: NonReducibleUnknown;
|
|
354
|
+
};
|
|
355
355
|
setModuleError: {
|
|
356
356
|
type: "setModuleError";
|
|
357
357
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -2,25 +2,25 @@ import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.
|
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DNt98Rr1.esm.js";
|
|
6
6
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
9
9
|
import { n as electronicSignatureMachine } from "./electronicSignatureManager-Ty1oUQ8W.esm.js";
|
|
10
10
|
import "./ae-signature.esm.js";
|
|
11
11
|
import { t as antifraudMachine } from "./antifraudStateMachine-Bf-IiCq7.esm.js";
|
|
12
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
12
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-C2Rxpvux.esm.js";
|
|
13
13
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Ce568YfR.esm.js";
|
|
14
14
|
import { t as consentMachine } from "./consentStateMachine-Pc3Ez3mV.esm.js";
|
|
15
15
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-7i3TD8J2.esm.js";
|
|
16
16
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D23XTxl2.esm.js";
|
|
17
17
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
|
|
18
18
|
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-kajUEkCO.esm.js";
|
|
19
|
-
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-
|
|
19
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-Di32xFWm.esm.js";
|
|
20
20
|
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
|
|
21
21
|
import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
|
|
22
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
23
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
22
|
+
import { t as selfieMachine } from "./selfieStateMachine-O16pT4th.esm.js";
|
|
23
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-5NIUTkyD.esm.js";
|
|
24
24
|
import { t as phoneMachine } from "./phoneStateMachine-wDQtaT38.esm.js";
|
|
25
25
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
|
|
26
26
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BN4Obfl7.esm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260717-
|
|
3
|
+
"version": "0.0.0-dev-20260717-17d23610",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -281,8 +281,8 @@
|
|
|
281
281
|
"tsdown": "^0.22.8",
|
|
282
282
|
"typescript": "^5.9.3",
|
|
283
283
|
"vitest": "4.1.4",
|
|
284
|
-
"@incodetech/
|
|
285
|
-
"@incodetech/
|
|
284
|
+
"@incodetech/infra": "1.2.0",
|
|
285
|
+
"@incodetech/config": "1.0.2"
|
|
286
286
|
},
|
|
287
287
|
"scripts": {
|
|
288
288
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./sessionInitializer-B6dm2iOz.esm.js";
|