@incodetech/core 0.0.0-dev-20260918-5cab0f73 → 0.0.0-dev-20260921-b7e58eb5
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/{BrowserDiagnosticsCryptoProvider-YzSTx645.esm.js → BrowserDiagnosticsCryptoProvider-Bh5BLVQ8.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BGdxN0Zs.esm.js → FaceDetectionProvider-JgulaYPT.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-D7MNCAJk.esm.js → apiError-BI_DIL8-.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BzD0aGAV.d.ts → authenticationManager-BK2M68y1.d.ts} +1 -7
- package/dist/{authenticationManager-5H2-DxBi.esm.js → authenticationManager-CuUtDrlp.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BGEwZIOs.esm.js → authenticationStateMachine-5jWG5IWN.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-UAS1fFZF.esm.js → createCameraCycleOwnership-BjoMVvya.esm.js} +1 -55
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-BJZ96KwC.d.ts → curpValidationManager-Ca_hyfn8.d.ts} +1 -1
- package/dist/{deepsightLoader-ClS4buil.esm.js → deepsightLoader-_UsfC4N5.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-CbAGkHWh.d.ts → documentCaptureManager-C8eO0hbv.d.ts} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CJXEcdgp.esm.js → dynamicFormsManager-DnLPFgpo.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BCIETgMA.esm.js → dynamicFormsStateMachine-DZMvXU5C.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BXBQElBA.esm.js → ekybManager-wxfTuhMw.esm.js} +1 -1
- package/dist/{ekybStateMachine-G_Nc0Ivr.esm.js → ekybStateMachine-CJekohHm.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BfRaSEfH.esm.js → electronicSignatureManager-B2s_UpGX.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-OT8cpWWg.esm.js → faceCaptureManagerFactory-B3i_gukQ.esm.js} +3 -48
- package/dist/{faceCaptureManagerFactory-Cd48RMoz.d.ts → faceCaptureManagerFactory-BbD7mKqo.d.ts} +4 -43
- package/dist/{faceCaptureSetup-BYnRHKy-.esm.js → faceCaptureSetup-nNxycISh.esm.js} +5 -271
- package/dist/{feature-management-fKRm2ALz.esm.js → feature-management-79K7xbqh.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +5 -5
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DyteW8N2.esm.js → flowCompletionService-rS_YFQ6t.esm.js} +1 -1
- package/dist/{flowServices-JxDEQEvw.esm.js → flowServices-U9b0ahPM.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CQfmoTDc.esm.js → geolocationManager-B9IuSkTU.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CfZw2p6n.esm.js → geolocationStateMachine-TAJQ1khU.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -5
- package/dist/{idCaptureDefaults-CCDNrEyH.esm.js → idCaptureDefaults-mlWsFVol.esm.js} +1 -1
- package/dist/{idCaptureManager-D1eI8wto.esm.js → idCaptureManager--1kTG7zh.esm.js} +3 -149
- package/dist/{idCaptureManager-BwgZAxRm.d.ts → idCaptureManager-x8HYtbU_.d.ts} +4 -77
- package/dist/{idCaptureServices-ugA6g9lm.esm.js → idCaptureServices-C-kakh6D.esm.js} +4 -31
- package/dist/{idCaptureStateMachine-BzSjOmhQ.esm.js → idCaptureStateMachine-B12AOO3l.esm.js} +317 -788
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-x2QG6QAm.d.ts → identityReuseManager-D30b2UEC.d.ts} +4 -4
- package/dist/{index-1E8g-2g7.d.ts → index-CB9o8nNO.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-BF3b2SF-.d.ts → mandatoryConsentManager-BEg7LM9Y.d.ts} +5 -5
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-ClkAUc6x.esm.js → runChildModule-Cik6cSGU.esm.js} +1 -1
- package/dist/{sdkVersion-BCY7wMPM.esm.js → sdkVersion-BaqyXxtV.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-UiQ46EBa.esm.js → selfieErrorUtils-yjRptLFi.esm.js} +1 -27
- package/dist/{selfieManager-2XhaWSPN.esm.js → selfieManager-B-joeD7D.esm.js} +3 -3
- package/dist/{selfieManager-CDEI-0sG.d.ts → selfieManager-BYY1eWDa.d.ts} +1 -7
- package/dist/selfieStateMachine-BtJHDS_g.esm.js +40 -0
- package/dist/{session-CTNuAH2T.esm.js → session-IbTLb79e.esm.js} +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CsXOAxxm.esm.js → sessionInitializer-Bw1QJcYn.esm.js} +3 -3
- package/dist/{setup-BUHgnW1t.esm.js → setup--3OJBjl-.esm.js} +4 -4
- package/dist/{trueSightService-C4pbgK2N.esm.js → trueSightService-WChjnB6y.esm.js} +2 -2
- package/dist/{types-ExpE7pl7.d.ts → types-BtX86Xl6.d.ts} +1 -1
- package/dist/{types-B-yKe-iB.d.ts → types-C--rKe_Y.d.ts} +1 -1
- package/dist/{types-BJ5OoZiu2.d.ts → types-DBu4S_vo2.d.ts} +8 -50
- package/dist/{types-COFO2tJb.d.ts → types-DvZVYbHR.d.ts} +2 -4
- package/dist/{types-BlTGii11.d.ts → types-Ijf6vvwm.d.ts} +1 -2
- package/dist/types-ixFGXL3F.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-DYhJLlU-.esm.js → videoSelfieCameraWarmer-Cksm9p7e.esm.js} +4 -4
- package/dist/{videoSelfieStepDetector-D9BB7QLa.d.ts → videoSelfieStepDetector-Apm7Puet.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
- package/dist/selfieStateMachine-C5_lbUwS.esm.js +0 -69
- package/dist/types-DzX4bQBH.d.ts +0 -6
|
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
|
|
|
18
18
|
*/
|
|
19
19
|
function getTruesightKey() {
|
|
20
20
|
try {
|
|
21
|
-
const key = decodeTruesightKey("
|
|
21
|
+
const key = decodeTruesightKey("bwb0Ej1oMOnnHN10uxyobSrtcDpQgLQEsLrY2ek4U8U=", "epnQuD8w+8pdpPVU4uaFnSmQlUbaDyZb/Zq+UyG2+y0=");
|
|
22
22
|
return key.length === KEY_LENGTH_BYTES ? key : null;
|
|
23
23
|
} catch {
|
|
24
24
|
return null;
|
package/dist/{FaceDetectionProvider-BGdxN0Zs.esm.js → FaceDetectionProvider-JgulaYPT.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup--3OJBjl-.esm.js";
|
|
2
2
|
import { s as wasmRuntime } from "./warmup-REsua-sF.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
4
|
-
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
-
import "./sessionInitializer-
|
|
4
|
+
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-WChjnB6y.esm.js";
|
|
5
|
+
import "./sessionInitializer-Bw1QJcYn.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
7
7
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
@@ -156,7 +156,7 @@ function startDetection(params) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
async function initializeDeepsightSession(options) {
|
|
159
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
159
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-_UsfC4N5.esm.js");
|
|
160
160
|
return loadDeepsightSession({
|
|
161
161
|
ds: options.ds,
|
|
162
162
|
storage: options.storage
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-B2s_UpGX.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BbD7mKqo.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-ixFGXL3F.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BK2M68y1.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -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-5jWG5IWN.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CuUtDrlp.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BbD7mKqo.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -22,9 +22,6 @@ declare function createAuthenticationManagerFromActor(actor: AuthenticationActor
|
|
|
22
22
|
reset(): void;
|
|
23
23
|
retryCapture(): void;
|
|
24
24
|
capture(): void;
|
|
25
|
-
goToManualUpload(): void;
|
|
26
|
-
manualUploadSelectFile(file: File): void;
|
|
27
|
-
manualUploadContinue(): void;
|
|
28
25
|
};
|
|
29
26
|
/**
|
|
30
27
|
* Creates an authentication manager instance for handling face authentication flow.
|
|
@@ -72,9 +69,6 @@ declare function createAuthenticationManager(options: CreateAuthenticationActorO
|
|
|
72
69
|
reset(): void;
|
|
73
70
|
retryCapture(): void;
|
|
74
71
|
capture(): void;
|
|
75
|
-
goToManualUpload(): void;
|
|
76
|
-
manualUploadSelectFile(file: File): void;
|
|
77
|
-
manualUploadContinue(): void;
|
|
78
72
|
};
|
|
79
73
|
type AuthenticationManager = FaceCaptureManager;
|
|
80
74
|
//#endregion
|
package/dist/{authenticationManager-5H2-DxBi.esm.js → authenticationManager-CuUtDrlp.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup--3OJBjl-.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B3i_gukQ.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-5jWG5IWN.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-nNxycISh.esm.js";
|
|
4
|
+
import { c as isOnDeviceMode } from "./FaceDetectionProvider-JgulaYPT.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-BjoMVvya.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
8
8
|
const AUTH_ERROR_MAP = {
|
|
9
9
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -31,60 +31,6 @@ async function flagIdManualReview() {
|
|
|
31
31
|
} catch {}
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../infra/src/media/imageFile.ts
|
|
35
|
-
const DEFAULT_IMAGE_MIME_TYPE = "image/jpeg";
|
|
36
|
-
const DEFAULT_IMAGE_QUALITY = .92;
|
|
37
|
-
const canNormalizeImageFile = (file) => file.type.startsWith("image/") && typeof document !== "undefined" && typeof Image !== "undefined" && typeof URL !== "undefined" && typeof URL.createObjectURL === "function";
|
|
38
|
-
const readFileAsDataUrl = (file) => new Promise((resolve, reject) => {
|
|
39
|
-
const reader = new FileReader();
|
|
40
|
-
reader.onload = () => {
|
|
41
|
-
const result = reader.result;
|
|
42
|
-
if (typeof result === "string") {
|
|
43
|
-
resolve(result);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
reject(/* @__PURE__ */ new Error("FileReader produced non-string result"));
|
|
47
|
-
};
|
|
48
|
-
reader.onerror = () => {
|
|
49
|
-
reject(reader.error ?? /* @__PURE__ */ new Error("FileReader failed"));
|
|
50
|
-
};
|
|
51
|
-
reader.readAsDataURL(file);
|
|
52
|
-
});
|
|
53
|
-
const loadImage = (url) => new Promise((resolve, reject) => {
|
|
54
|
-
const image = new Image();
|
|
55
|
-
image.onload = () => resolve(image);
|
|
56
|
-
image.onerror = () => reject(/* @__PURE__ */ new Error("Image decoding failed"));
|
|
57
|
-
image.src = url;
|
|
58
|
-
});
|
|
59
|
-
const fileToCanvasDataUrl = async (file, options) => {
|
|
60
|
-
const objectUrl = URL.createObjectURL(file);
|
|
61
|
-
try {
|
|
62
|
-
const image = await loadImage(objectUrl);
|
|
63
|
-
const width = image.naturalWidth || image.width;
|
|
64
|
-
const height = image.naturalHeight || image.height;
|
|
65
|
-
if (width <= 0 || height <= 0) return readFileAsDataUrl(file);
|
|
66
|
-
const canvas = document.createElement("canvas");
|
|
67
|
-
canvas.width = width;
|
|
68
|
-
canvas.height = height;
|
|
69
|
-
const context = canvas.getContext("2d");
|
|
70
|
-
if (!context) return readFileAsDataUrl(file);
|
|
71
|
-
context.fillStyle = "#fff";
|
|
72
|
-
context.fillRect(0, 0, width, height);
|
|
73
|
-
context.drawImage(image, 0, 0, width, height);
|
|
74
|
-
return canvas.toDataURL(options.mimeType ?? DEFAULT_IMAGE_MIME_TYPE, options.quality ?? DEFAULT_IMAGE_QUALITY);
|
|
75
|
-
} finally {
|
|
76
|
-
URL.revokeObjectURL(objectUrl);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const imageFileToDataUrl = async (file, options = {}) => {
|
|
80
|
-
if (!canNormalizeImageFile(file)) return readFileAsDataUrl(file);
|
|
81
|
-
try {
|
|
82
|
-
return await fileToCanvasDataUrl(file, options);
|
|
83
|
-
} catch {
|
|
84
|
-
return readFileAsDataUrl(file);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
//#endregion
|
|
88
34
|
//#region ../infra/src/providers/wasm/CameraCycleProvider.ts
|
|
89
35
|
function asRecord(value) {
|
|
90
36
|
return typeof value === "object" && value !== null ? value : null;
|
|
@@ -823,4 +769,4 @@ function createCameraCycleOwnership(cycle) {
|
|
|
823
769
|
};
|
|
824
770
|
}
|
|
825
771
|
//#endregion
|
|
826
|
-
export {
|
|
772
|
+
export { flagIdManualReview as a, flagFaceManualReview as i, runProtectedAttempt as n, PROTECTED_CAPTURE_TARGET as o, cameraCycleProvider as r, createCameraCycleOwnership as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-Ca_hyfn8.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-DvZVYbHR.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
2
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-
|
|
4
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { l as trueSightLog } from "./trueSightService-WChjnB6y.esm.js";
|
|
3
|
+
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-Bw1QJcYn.esm.js";
|
|
4
|
+
import { t as SDK_VERSION } from "./sdkVersion-BaqyXxtV.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Czjlp68o.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-BjSly8cp.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-C8eO0hbv.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -252,7 +252,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
252
252
|
type: "fileSizeOkForNonGallery";
|
|
253
253
|
params: unknown;
|
|
254
254
|
};
|
|
255
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "
|
|
255
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
256
256
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
257
257
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
258
258
|
readonly id: "documentCapture";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DZMvXU5C.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-DnLPFgpo.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DZMvXU5C.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-BCIETgMA.esm.js → dynamicFormsStateMachine-DZMvXU5C.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BI_DIL8-.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Manager-C9T5amUN.js";
|
|
2
2
|
import { c as AddressSuggestion } from "./types-Bk_6dmDa.js";
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-DvZVYbHR.js";
|
|
4
4
|
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BfHiko5D.js";
|
|
5
5
|
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BYrK7YlF.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-U9b0ahPM.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CJekohHm.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-wxfTuhMw.esm.js";
|
|
4
4
|
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-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-CJekohHm.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
|
-
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-
|
|
3
|
+
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-U9b0ahPM.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
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-Dnwc7dMx.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-B2s_UpGX.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BI_DIL8-.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -5,31 +5,31 @@ import "./Actor-DpTj5PFb.js";
|
|
|
5
5
|
import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
|
|
6
6
|
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-DTSLOvKR.js";
|
|
7
7
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DbGCvlJs.js";
|
|
8
|
-
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-
|
|
8
|
+
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-BbD7mKqo.js";
|
|
9
9
|
import "./createFaceAvatar-DXgmQmQy.js";
|
|
10
10
|
import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
|
|
11
11
|
import "./StreamCanvasCapture-CeBBJ_RC.js";
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BK2M68y1.js";
|
|
13
13
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
|
|
14
14
|
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
|
|
16
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
16
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Ca_hyfn8.js";
|
|
17
17
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
|
|
18
18
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-DolUswyR.js";
|
|
19
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
19
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-C8eO0hbv.js";
|
|
20
20
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-9kwY8Bf5.js";
|
|
21
21
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BYrK7YlF.js";
|
|
22
22
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BeXat860.js";
|
|
23
23
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
|
|
24
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
25
|
-
import { i as CaptureIdResponse } from "./types-
|
|
26
|
-
import {
|
|
24
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BYY1eWDa.js";
|
|
25
|
+
import { i as CaptureIdResponse } from "./types-DBu4S_vo2.js";
|
|
26
|
+
import { I as WasmUtilProvider, d as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-x8HYtbU_.js";
|
|
27
27
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-DNzWb7_d.js";
|
|
28
28
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
|
|
30
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
30
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D30b2UEC.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DN9b5rtc.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BEg7LM9Y.js";
|
|
33
33
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
|
|
@@ -38,7 +38,7 @@ import { a as GovernmentValidationActor, i as createGovernmentValidationManagerF
|
|
|
38
38
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BJapZfpy.js";
|
|
39
39
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-DIgG-UFS.js";
|
|
40
40
|
import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-D0Iy7EKR.js";
|
|
41
|
-
import "./types-
|
|
41
|
+
import "./types-BtX86Xl6.js";
|
|
42
42
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
43
43
|
type AuthenticationUploadResponse = {
|
|
44
44
|
overallStatus: 'PASS' | 'FAIL';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup--3OJBjl-.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
3
|
-
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-Bw1QJcYn.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-B2s_UpGX.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-BOC5WnCl.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-nNxycISh.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CuUtDrlp.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-BVIPp-jE.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-D540g9UK.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-CO1EPIVX.esm.js";
|
|
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-oXaVxn1f.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-B9H34yQM.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-C9Kig4Q6.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DnLPFgpo.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-wxfTuhMw.esm.js";
|
|
19
19
|
import { n as createEkycManagerFromActor } from "./ekycManager-DoGZkFZQ.esm.js";
|
|
20
20
|
import { n as createEmailManagerFromActor } from "./emailManager-CTNtCZJI.esm.js";
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-B-joeD7D.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager--1kTG7zh.esm.js";
|
|
23
23
|
import { n as createPhoneManagerFromActor } from "./phoneManager-tPB-SJvp.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-Cg8pCUZL.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CwMC60YS.esm.js";
|
|
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-B_Au6v1F.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-Cr7n1jvL.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-BEhnPTe8.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-B9IuSkTU.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-DFDSCXQm.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-D50nxSs8.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-DuaXgdd4.esm.js";
|
package/dist/{faceCaptureManagerFactory-OT8cpWWg.esm.js → faceCaptureManagerFactory-B3i_gukQ.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-nNxycISh.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Czjlp68o.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-C8DqhjX7.esm.js";
|
|
@@ -26,30 +26,14 @@ function getCaptureStatus(snapshot) {
|
|
|
26
26
|
if (snapshot.matches({ capture: "uploadError" })) return "uploadError";
|
|
27
27
|
if (snapshot.matches({ capture: "success" })) return "success";
|
|
28
28
|
}
|
|
29
|
-
function mapManualUploadState(snapshot) {
|
|
30
|
-
const childSnapshot = snapshot.children["manualUpload"]?.getSnapshot();
|
|
31
|
-
const childContext = childSnapshot?.context;
|
|
32
|
-
const childValue = childSnapshot?.value;
|
|
33
|
-
const uploaded = childContext?.uploaded ?? false;
|
|
34
|
-
return {
|
|
35
|
-
status: "manualUpload",
|
|
36
|
-
phase: childValue === "preparing" || childValue === "uploading" ? "uploading" : "selecting",
|
|
37
|
-
uploaded,
|
|
38
|
-
canContinue: uploaded,
|
|
39
|
-
errorKey: childContext?.errorKey ?? null,
|
|
40
|
-
attemptsRemaining: childContext?.retriesLeft ?? 0
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
29
|
function mapState(snapshot) {
|
|
44
30
|
const { context } = snapshot;
|
|
45
31
|
if (snapshot.matches("idle")) return { status: "idle" };
|
|
46
32
|
if (snapshot.matches("loading")) return { status: "loading" };
|
|
47
33
|
if (snapshot.matches("tutorial")) return {
|
|
48
34
|
status: "tutorial",
|
|
49
|
-
ageAssurance: context.config?.ageAssurance === true
|
|
50
|
-
showManualUploadLink: context.config?.manualUploadSelfieCapture === true
|
|
35
|
+
ageAssurance: context.config?.ageAssurance === true
|
|
51
36
|
};
|
|
52
|
-
if (snapshot.matches("manualUpload")) return mapManualUploadState(snapshot);
|
|
53
37
|
if (snapshot.matches("closed")) return { status: "closed" };
|
|
54
38
|
if (snapshot.matches("permissions")) {
|
|
55
39
|
const permissionStatus = getPermissionStatus(snapshot);
|
|
@@ -237,8 +221,7 @@ function getFaceCaptureScreenName(snapshot, moduleName) {
|
|
|
237
221
|
case "tutorial": return getFaceCaptureTutorialScreen(snapshot);
|
|
238
222
|
case "permissions": return "faceCapture.tutorial.default";
|
|
239
223
|
case "capture": return getCaptureSubstateScreen(snapshot);
|
|
240
|
-
case "
|
|
241
|
-
case "processing": return "faceCapture.loading.processing";
|
|
224
|
+
case "processing":
|
|
242
225
|
case "terminalProcessing": return "faceCapture.loading.processing";
|
|
243
226
|
case "finished": return "faceCapture.resultSuccess.default";
|
|
244
227
|
case "closed": return "faceCapture.closed";
|
|
@@ -332,34 +315,6 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
332
315
|
capture() {
|
|
333
316
|
trackElementClicked?.("capture");
|
|
334
317
|
actor.send({ type: "MANUAL_CAPTURE" });
|
|
335
|
-
},
|
|
336
|
-
/**
|
|
337
|
-
* Leaves the tutorial for the manual file-upload screen.
|
|
338
|
-
* Only effective from `tutorial` and only when the module enables it, so a
|
|
339
|
-
* call from anywhere else — including the console — is a no-op.
|
|
340
|
-
*/
|
|
341
|
-
goToManualUpload() {
|
|
342
|
-
trackElementClicked?.("goToManualUpload");
|
|
343
|
-
actor.send({ type: "GO_TO_MANUAL_UPLOAD" });
|
|
344
|
-
},
|
|
345
|
-
/**
|
|
346
|
-
* Submits a file the user picked from device storage.
|
|
347
|
-
* Only effective when in `manualUpload`.
|
|
348
|
-
*/
|
|
349
|
-
manualUploadSelectFile(file) {
|
|
350
|
-
trackElementClicked?.("manualUploadSelectFile");
|
|
351
|
-
actor.send({
|
|
352
|
-
type: "MANUAL_UPLOAD_FILE_SELECTED",
|
|
353
|
-
file
|
|
354
|
-
});
|
|
355
|
-
},
|
|
356
|
-
/**
|
|
357
|
-
* Accepts the uploaded photo and moves on to processing.
|
|
358
|
-
* Only effective when in `manualUpload` and an upload has succeeded.
|
|
359
|
-
*/
|
|
360
|
-
manualUploadContinue() {
|
|
361
|
-
trackElementClicked?.("manualUploadContinue");
|
|
362
|
-
actor.send({ type: "MANUAL_UPLOAD_CONTINUE" });
|
|
363
318
|
}
|
|
364
319
|
};
|
|
365
320
|
}
|
package/dist/{faceCaptureManagerFactory-Cd48RMoz.d.ts → faceCaptureManagerFactory-BbD7mKqo.d.ts}
RENAMED
|
@@ -4,11 +4,11 @@ import "./Actor-DpTj5PFb.js";
|
|
|
4
4
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
5
5
|
import "./index-DpTj5PFb.js";
|
|
6
6
|
import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
|
|
7
|
-
import { i as FlowModuleConfig } from "./types-
|
|
7
|
+
import { i as FlowModuleConfig } from "./types-DvZVYbHR.js";
|
|
8
8
|
import "./IWasmUtilCapability-VC40Kx9N.js";
|
|
9
9
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
10
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-
|
|
11
|
-
import { t as AuthenticationConfig } from "./types-
|
|
10
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Ijf6vvwm.js";
|
|
11
|
+
import { t as AuthenticationConfig } from "./types-ixFGXL3F.js";
|
|
12
12
|
import "./types-CfuWgAi-.js";
|
|
13
13
|
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-CeBBJ_RC.js";
|
|
14
14
|
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-Di1DmZu1.js";
|
|
@@ -221,15 +221,6 @@ type FaceCaptureEvent = {
|
|
|
221
221
|
canvas: HTMLCanvasElement;
|
|
222
222
|
} | {
|
|
223
223
|
type: 'RETRY_CAPTURE';
|
|
224
|
-
} | {
|
|
225
|
-
type: 'GO_TO_MANUAL_UPLOAD';
|
|
226
|
-
} | {
|
|
227
|
-
type: 'MANUAL_UPLOAD_FILE_SELECTED';
|
|
228
|
-
file: File;
|
|
229
|
-
} | {
|
|
230
|
-
type: 'MANUAL_UPLOAD_CONTINUE';
|
|
231
|
-
} | {
|
|
232
|
-
type: 'MANUAL_UPLOAD_RESET';
|
|
233
224
|
};
|
|
234
225
|
declare const faceCaptureMachine: AnyStateMachine;
|
|
235
226
|
//#endregion
|
|
@@ -292,20 +283,6 @@ type FaceCaptureLoadingState = {
|
|
|
292
283
|
type FaceCaptureTutorialState = {
|
|
293
284
|
status: 'tutorial';
|
|
294
285
|
ageAssurance?: boolean;
|
|
295
|
-
/** Whether to offer the manual file-upload alternative to live capture. */
|
|
296
|
-
showManualUploadLink: boolean;
|
|
297
|
-
};
|
|
298
|
-
/** Picking a photo from device storage instead of using the camera */
|
|
299
|
-
type FaceCaptureManualUploadState = {
|
|
300
|
-
status: 'manualUpload';
|
|
301
|
-
/** `uploading` covers both the file conversion and the network call. */
|
|
302
|
-
phase: 'selecting' | 'uploading';
|
|
303
|
-
/** Whether a file has been accepted by the backend. */
|
|
304
|
-
uploaded: boolean;
|
|
305
|
-
canContinue: boolean;
|
|
306
|
-
/** i18n key for the current rejection, or `null`. */
|
|
307
|
-
errorKey: string | null;
|
|
308
|
-
attemptsRemaining: number;
|
|
309
286
|
};
|
|
310
287
|
/** Handling camera permissions */
|
|
311
288
|
type FaceCapturePermissionsState = {
|
|
@@ -388,7 +365,7 @@ type FaceCaptureErrorState = {
|
|
|
388
365
|
moduleErrorCode?: string;
|
|
389
366
|
};
|
|
390
367
|
/** Union of all possible face capture states */
|
|
391
|
-
type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState |
|
|
368
|
+
type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState | FaceCaptureProcessingState | FaceCaptureFinishedState | FaceCaptureClosedState | FaceCaptureErrorState;
|
|
392
369
|
/**
|
|
393
370
|
* Builds a face capture manager (selfie / authentication / captureOnly) from an
|
|
394
371
|
* already-created actor.
|
|
@@ -448,22 +425,6 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
|
|
|
448
425
|
* Only effective when in `capture.detecting` state and `detectionStatus === 'manualCapture'`.
|
|
449
426
|
*/
|
|
450
427
|
capture(): void;
|
|
451
|
-
/**
|
|
452
|
-
* Leaves the tutorial for the manual file-upload screen.
|
|
453
|
-
* Only effective from `tutorial` and only when the module enables it, so a
|
|
454
|
-
* call from anywhere else — including the console — is a no-op.
|
|
455
|
-
*/
|
|
456
|
-
goToManualUpload(): void;
|
|
457
|
-
/**
|
|
458
|
-
* Submits a file the user picked from device storage.
|
|
459
|
-
* Only effective when in `manualUpload`.
|
|
460
|
-
*/
|
|
461
|
-
manualUploadSelectFile(file: File): void;
|
|
462
|
-
/**
|
|
463
|
-
* Accepts the uploaded photo and moves on to processing.
|
|
464
|
-
* Only effective when in `manualUpload` and an upload has succeeded.
|
|
465
|
-
*/
|
|
466
|
-
manualUploadContinue(): void;
|
|
467
428
|
};
|
|
468
429
|
type FaceCaptureManager = ReturnType<typeof createFaceCaptureManagerFromActor>;
|
|
469
430
|
//#endregion
|