@incodetech/core 0.0.0-dev-20260421-3d3274a → 0.0.0-dev-20260422-96fafd7
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/{BrowserEnvironmentProvider-CfUNEigg.esm.js → IpifyProvider-QIevJQOm.esm.js} +51 -1
- package/dist/{addressSearch-C6eGEbdK.esm.js → addressSearch-BbwH6Lf7.esm.js} +1 -1
- package/dist/{ae-signature-DvF-yLWx.esm.js → ae-signature-BsCJAnDL.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +3 -3
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudStateMachine-BEP9IYFN.esm.js → antifraudStateMachine-ilKa4wC7.esm.js} +1 -1
- package/dist/authentication.esm.js +7 -7
- package/dist/{authenticationManager-FMfiLmyj.esm.js → authenticationManager-CSLd6bOj.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CeFBXnnM.esm.js → authenticationStateMachine-DXODPzBc.esm.js} +3 -3
- package/dist/consent.d.ts +50 -50
- package/dist/consent.esm.js +2 -2
- package/dist/{consentStateMachine-DZTzztq9.esm.js → consentStateMachine-VmgqnPgU.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationStateMachine-BcVkABa_.esm.js → curpValidationStateMachine-CxouBL3m.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/{deepsightLoader-CoBxhuhG.esm.js → deepsightLoader-TuwwW8Pr.esm.js} +4 -3
- package/dist/{deepsightService-Df3Ad9a2.esm.js → deepsightService-C966kOVA.esm.js} +3 -7
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +46 -46
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureStateMachine-AEeMd_sA.esm.js → documentCaptureStateMachine-nDAGCe88.esm.js} +1 -1
- package/dist/ekyb.esm.js +6 -6
- package/dist/{ekybStateMachine-LC7KeVbs.esm.js → ekybStateMachine-hPeFDVI2.esm.js} +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycStateMachine-C_NGgk5Y.esm.js → ekycStateMachine-BSm6DESz.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-BHuZgDfX.esm.js → electronicSignatureManager-eKhvmNl5.esm.js} +1 -1
- package/dist/email.esm.js +3 -3
- package/dist/{emailManager-BbRpgtAL.esm.js → emailManager-UqlpfLu-.esm.js} +2 -2
- package/dist/{emailStateMachine-Bcv-dM_k.esm.js → emailStateMachine-BiDeKm0B.esm.js} +1 -1
- package/dist/{events-D6rNtFDO.esm.js → events-_dFJXIHR.esm.js} +0 -2
- package/dist/events.d.ts +0 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.esm.js +17 -17
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-D1R5A-s3.esm.js → faceCaptureManagerFactory-9jP_53qG.esm.js} +1 -1
- package/dist/{faceCaptureSetup-FUncr8AV.esm.js → faceCaptureSetup-BsXUlz8p.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-Bm0RrtNZ.esm.js → faceMatchStateMachine-Bhjfheg2.esm.js} +1 -1
- package/dist/flow.d.ts +6 -0
- package/dist/flow.esm.js +14 -9
- package/dist/{flowCompletionService-DNwDhild.esm.js → flowCompletionService-DLIP99tr.esm.js} +1 -1
- package/dist/{flowServices-COjf6aN_.esm.js → flowServices-CwrZcQI2.esm.js} +4 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationStateMachine-nhuJw6Da.esm.js → geolocationStateMachine-CqMNzkrB.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-Ksonp_gh.esm.js → governmentValidationStateMachine-BvFCJeyw.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/home.esm.js +1 -1
- package/dist/id.esm.js +7 -7
- package/dist/{idCaptureManager-C5RQfRPT.esm.js → idCaptureManager-DJK5Onmh.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-WmW7bDGZ.esm.js → idCaptureStateMachine-DN_vbCuB.esm.js} +5 -5
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/{index-SUQ4OOw8.d.ts → index-nSJUy_Aq.d.ts} +119 -119
- package/dist/index.esm.js +4 -4
- package/dist/mandatory-consent.d.ts +50 -50
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentStateMachine-D_ljDR9e.esm.js → mandatoryConsentStateMachine-C-IIJ8SX.esm.js} +1 -1
- package/dist/phone.esm.js +3 -3
- package/dist/{phoneManager-B9NF66Bk.esm.js → phoneManager-Bxc_-4Dr.esm.js} +2 -2
- package/dist/{phoneStateMachine-DHaPFdWu.esm.js → phoneStateMachine-0gwBStCm.esm.js} +1 -1
- package/dist/{qe-signature-BGmul0lF.esm.js → qe-signature-BboU3Wcl.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +3 -3
- package/dist/{recordingService-0YxgQN6u.esm.js → recordingService-XpMolMxi.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileStateMachine-CsfV3Enr.esm.js → redirectToMobileStateMachine-vxFra6KF.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-D57rdQLg.esm.js → selfieManager-1aK28sG1.esm.js} +3 -3
- package/dist/{selfieStateMachine-Bd7WGYZs.esm.js → selfieStateMachine-DSIrMOLQ.esm.js} +2 -2
- package/dist/{session-D3XXfTZP.esm.js → session-4BhYmzdE.esm.js} +4 -31
- package/dist/session.esm.js +4 -4
- package/dist/{setup-CEbsLRbC.esm.js → setup-BXAs1PK0.esm.js} +2 -2
- package/dist/signature.d.ts +7 -6
- package/dist/signature.esm.js +3 -18
- package/dist/{signatureStateMachine-C-MP8GI1.esm.js → signatureStateMachine-BQkKFNPe.esm.js} +8 -66
- package/dist/wasm.esm.js +4 -4
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +114 -114
- package/dist/workflow.esm.js +29 -29
- package/package.json +3 -3
|
@@ -86,4 +86,54 @@ var BrowserEnvironmentProvider = class {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
//#endregion
|
|
89
|
-
|
|
89
|
+
//#region ../infra/src/providers/browser/IpifyProvider.ts
|
|
90
|
+
let cachedIp;
|
|
91
|
+
let inFlightLookup;
|
|
92
|
+
/**
|
|
93
|
+
* Resets the module-level IP cache. Intended for tests and full session resets.
|
|
94
|
+
*/
|
|
95
|
+
function resetIpifyCache() {
|
|
96
|
+
cachedIp = void 0;
|
|
97
|
+
inFlightLookup = void 0;
|
|
98
|
+
}
|
|
99
|
+
async function fetchIpFromIpify() {
|
|
100
|
+
if (typeof fetch === "undefined") return "";
|
|
101
|
+
let timeoutId = 0;
|
|
102
|
+
const controller = new AbortController();
|
|
103
|
+
if (AbortSignal.timeout) {
|
|
104
|
+
const signal = AbortSignal.timeout(3e3);
|
|
105
|
+
return (await (await fetch("https://api.ipify.org?format=json", { signal })).json()).ip;
|
|
106
|
+
}
|
|
107
|
+
const timeoutPromise = new Promise((_, reject) => {
|
|
108
|
+
timeoutId = setTimeout(() => {
|
|
109
|
+
controller.abort();
|
|
110
|
+
reject(/* @__PURE__ */ new Error("Request timeout"));
|
|
111
|
+
}, 3e3);
|
|
112
|
+
});
|
|
113
|
+
const fetchPromise = fetch("https://api.ipify.org?format=json", { signal: controller.signal }).then((res) => res.json()).then((data) => data.ip);
|
|
114
|
+
const result = await Promise.race([fetchPromise, timeoutPromise]);
|
|
115
|
+
clearTimeout(timeoutId);
|
|
116
|
+
return result;
|
|
117
|
+
}
|
|
118
|
+
var IpifyProvider = class {
|
|
119
|
+
async getIp() {
|
|
120
|
+
if (cachedIp !== void 0) return cachedIp;
|
|
121
|
+
if (inFlightLookup) return inFlightLookup;
|
|
122
|
+
inFlightLookup = (async () => {
|
|
123
|
+
try {
|
|
124
|
+
const ip = await fetchIpFromIpify();
|
|
125
|
+
cachedIp = ip;
|
|
126
|
+
return ip;
|
|
127
|
+
} catch {
|
|
128
|
+
cachedIp = "";
|
|
129
|
+
return "";
|
|
130
|
+
} finally {
|
|
131
|
+
inFlightLookup = void 0;
|
|
132
|
+
}
|
|
133
|
+
})();
|
|
134
|
+
return inFlightLookup;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
//#endregion
|
|
139
|
+
export { resetIpifyCache as n, BrowserEnvironmentProvider as r, IpifyProvider as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { r as fromCallback } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-D4hR9uTM.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-eKhvmNl5.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/ae-signature/index.ts
|
|
4
4
|
function createAeSignatureManager(options) {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-B8qNVwIm.js";
|
|
2
2
|
import "./Actor-BS3rbtoo.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-nSJUy_Aq.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import "./events-
|
|
2
|
+
import "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
5
|
-
import { t as createAeSignatureManager } from "./ae-signature-
|
|
4
|
+
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-eKhvmNl5.esm.js";
|
|
5
|
+
import { t as createAeSignatureManager } from "./ae-signature-BsCJAnDL.esm.js";
|
|
6
6
|
|
|
7
7
|
export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor, o as createManager } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-ilKa4wC7.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
7
7
|
function createAntifraudActor() {
|
package/dist/{antifraudStateMachine-BEP9IYFN.esm.js → antifraudStateMachine-ilKa4wC7.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { i as fromPromise, t as setup } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./BaseWasmProvider-Dr9Bb1Zg.esm.js";
|
|
2
2
|
import "./WasmUtilProvider-DLgdRyEg.esm.js";
|
|
3
3
|
import "./api-Bq5aVL0-.esm.js";
|
|
4
|
-
import "./events-
|
|
4
|
+
import "./events-_dFJXIHR.esm.js";
|
|
5
5
|
import "./browserSimulation-D5C2Zw4l.esm.js";
|
|
6
6
|
import "./xstate.esm-BR-OL9fa.esm.js";
|
|
7
|
-
import "./faceCaptureManagerFactory-
|
|
7
|
+
import "./faceCaptureManagerFactory-9jP_53qG.esm.js";
|
|
8
8
|
import "./BrowserStorageProvider-Bww9xk7g.esm.js";
|
|
9
|
-
import "./recordingService-
|
|
10
|
-
import "./deepsightService-
|
|
9
|
+
import "./recordingService-XpMolMxi.esm.js";
|
|
10
|
+
import "./deepsightService-C966kOVA.esm.js";
|
|
11
11
|
import "./permissionServices-Y2PDGdE5.esm.js";
|
|
12
12
|
import "./camera-BToe85ME.esm.js";
|
|
13
13
|
import "./getBrowser-BnEXznKu.esm.js";
|
|
@@ -17,8 +17,8 @@ import "./platform-CwFB3DeY.esm.js";
|
|
|
17
17
|
import "./ITimerCapability-C-3gFxPH.esm.js";
|
|
18
18
|
import "./backCameraStream-BtLt5ZMq.esm.js";
|
|
19
19
|
import "./getDeviceClass-ByKIa-2E.esm.js";
|
|
20
|
-
import "./faceCaptureSetup-
|
|
21
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
22
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
20
|
+
import "./faceCaptureSetup-BsXUlz8p.esm.js";
|
|
21
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DXODPzBc.esm.js";
|
|
22
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CSLd6bOj.esm.js";
|
|
23
23
|
|
|
24
24
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-FMfiLmyj.esm.js → authenticationManager-CSLd6bOj.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DLgdRyEg.esm.js";
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { n as eventModuleNames } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-9jP_53qG.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-Bww9xk7g.esm.js";
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DXODPzBc.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { v as FACE_ERROR_CODES } from "./recordingService-
|
|
4
|
+
import { v as FACE_ERROR_CODES } from "./recordingService-XpMolMxi.esm.js";
|
|
5
5
|
import { t as getDeviceClass } from "./getDeviceClass-ByKIa-2E.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BsXUlz8p.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-B8qNVwIm.js";
|
|
2
2
|
import "./Actor-BS3rbtoo.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate160 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -36,7 +36,7 @@ type ConsentContext = {
|
|
|
36
36
|
type ConsentInput = {
|
|
37
37
|
config: ConsentConfig;
|
|
38
38
|
};
|
|
39
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate160.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate160.EventObject>> | xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate160.EventObject>> | undefined;
|
|
57
|
+
}, xstate160.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate160.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate160.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
73
|
+
}>, xstate160.Values<{
|
|
74
74
|
setError: {
|
|
75
75
|
type: "setError";
|
|
76
|
-
params:
|
|
76
|
+
params: xstate160.NonReducibleUnknown;
|
|
77
77
|
};
|
|
78
78
|
clearError: {
|
|
79
79
|
type: "clearError";
|
|
80
|
-
params:
|
|
81
|
-
};
|
|
82
|
-
resetContext: {
|
|
83
|
-
type: "resetContext";
|
|
84
|
-
params: xstate794.NonReducibleUnknown;
|
|
80
|
+
params: xstate160.NonReducibleUnknown;
|
|
85
81
|
};
|
|
86
82
|
setConsentData: {
|
|
87
83
|
type: "setConsentData";
|
|
88
|
-
params:
|
|
84
|
+
params: xstate160.NonReducibleUnknown;
|
|
89
85
|
};
|
|
90
86
|
toggleCheckbox: {
|
|
91
87
|
type: "toggleCheckbox";
|
|
92
|
-
params:
|
|
88
|
+
params: xstate160.NonReducibleUnknown;
|
|
89
|
+
};
|
|
90
|
+
resetContext: {
|
|
91
|
+
type: "resetContext";
|
|
92
|
+
params: xstate160.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate160.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate160.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate160.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate160.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate160.RequiredActorOptions<T>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate160.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate160.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate160.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate160.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate160.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T_1>>> : never : never : never)): xstate160.ActorRefFromLogic<xstate160.GetConcreteByKey<xstate160.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate160.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate160.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate160.AnyActorLogic>(src: TLogic, ...[options]: xstate160.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate160.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate160.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredLogicInput<TLogic>>>): xstate160.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate160.AnyActorRef | undefined>, xstate160.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate160.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate160.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate794.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate160.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor, o as createManager } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
4
|
+
import { t as consentMachine } from "./consentStateMachine-VmgqnPgU.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/consent/consentActor.ts
|
|
7
7
|
function createConsentActor(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/consentServices.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
import { t as sleep } from "./ITimerCapability-C-3gFxPH.esm.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor, o as createManager } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
|
-
import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
4
|
+
import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-CxouBL3m.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
7
7
|
function createCurpValidationActor(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bq5aVL0-.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-_dFJXIHR.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BR-OL9fa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/dateUtils.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./BaseWasmProvider-Dr9Bb1Zg.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DLgdRyEg.esm.js";
|
|
3
3
|
import "./api-Bq5aVL0-.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as BrowserEnvironmentProvider, t as IpifyProvider } from "./IpifyProvider-QIevJQOm.esm.js";
|
|
5
5
|
import "./browserSimulation-D5C2Zw4l.esm.js";
|
|
6
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
6
|
+
import { t as createDeepsightService } from "./deepsightService-C966kOVA.esm.js";
|
|
7
7
|
import "./camera-BToe85ME.esm.js";
|
|
8
8
|
import "./getBrowser-BnEXznKu.esm.js";
|
|
9
9
|
import "./stats-DVL1TL6Q.esm.js";
|
|
@@ -40,7 +40,8 @@ async function loadDeepsightSession(options) {
|
|
|
40
40
|
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
41
41
|
visibility: new VisibilityProvider(),
|
|
42
42
|
browserEnv: new BrowserEnvironmentProvider(),
|
|
43
|
-
motionSensor: new MotionSensorProvider()
|
|
43
|
+
motionSensor: new MotionSensorProvider(),
|
|
44
|
+
ipLookup: new IpifyProvider()
|
|
44
45
|
});
|
|
45
46
|
await service.initialize(options.disableIpify);
|
|
46
47
|
await service.startMotionSensors();
|
|
@@ -262,11 +262,7 @@ function createHiddenVideoElement(stream) {
|
|
|
262
262
|
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/internal/deepsight/metadataService.ts
|
|
265
|
-
|
|
266
|
-
async function fetchPublicIp(browserEnv) {
|
|
267
|
-
return (await browserEnv.fetchJson(IP_PROVIDER_URL, 3e3))?.ip || "";
|
|
268
|
-
}
|
|
269
|
-
function createMetadataService(wasmUtil, visibility, browserEnv) {
|
|
265
|
+
function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
270
266
|
return {
|
|
271
267
|
async initialize(sdkVersion, disableIpify = false) {
|
|
272
268
|
wasmUtil.setSdkPlatform("WEBAPP");
|
|
@@ -275,7 +271,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv) {
|
|
|
275
271
|
const isMobile = /Android|iPhone|iPad|iPod/i.test(ua);
|
|
276
272
|
const deviceInfo = getDeviceInfo();
|
|
277
273
|
const visitorId = browserEnv.generateCanvasFingerprint();
|
|
278
|
-
const ip = disableIpify ? "" : await
|
|
274
|
+
const ip = disableIpify ? "" : await ipLookup.getIp();
|
|
279
275
|
const screenDimensions = browserEnv.getScreenDimensions();
|
|
280
276
|
const deviceMetadata = {
|
|
281
277
|
kind: isMobile ? "mobile" : "desktop",
|
|
@@ -424,7 +420,7 @@ async function runVirtualCameraCheck({ wasmUtil, source, token }) {
|
|
|
424
420
|
//#endregion
|
|
425
421
|
//#region src/internal/deepsight/deepsightService.ts
|
|
426
422
|
function createDeepsightService(config) {
|
|
427
|
-
const metadata = createMetadataService(config.wasmUtil, config.visibility, config.browserEnv);
|
|
423
|
+
const metadata = createMetadataService(config.wasmUtil, config.visibility, config.browserEnv, config.ipLookup);
|
|
428
424
|
const motion = createMotionStatusService(config.motionSensor);
|
|
429
425
|
return {
|
|
430
426
|
metadata,
|