@incodetech/core 0.0.0-dev-20261013-503bba69 → 0.0.0-dev-20261013-c982cdcd
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/{FaceDetectionProvider-Cjvg7syA.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +5 -5
- package/dist/{addressSearch-uNaH2m0e.esm.js → addressSearch-Bm8zTbQJ.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CRIfvdbK.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-CMSC0FxQ.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +2 -2
- package/dist/{apiError-17zE9Esu.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-ioEDxaVR.esm.js → authenticationManager-Bk74vxGj.esm.js} +5 -5
- package/dist/{authenticationStateMachine-DFEJDs_Z.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BL0aSh6K.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-jVHO9TMw.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CO3c_dWq.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-Cv_0QKLD.d.ts} +8 -8
- package/dist/{consentStateMachine-DNJ878_I.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +2 -2
- package/dist/{createCameraCycleOwnership-D7hj1Z1w.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BIMwos3V.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +3 -3
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-gzGFKami.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
- package/dist/{curpValidationStateMachine-DOMJypnG.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DG5JBxi1.esm.js → customFieldsManager-BV6UyLFV.esm.js} +3 -3
- package/dist/{customWatchlistManager-Bob-U0Rw.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-CUAp1Ls5.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +2 -2
- package/dist/{deepsightLoader-B4WdVaws.esm.js → deepsightLoader-Bbannll8.esm.js} +4 -4
- package/dist/{deepsightService-DFLGztHC.esm.js → deepsightService-cd1HQvBB.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CgHmGbnp.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
- package/dist/{documentCaptureManager-D4zKJlKC.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-Dl5oWDqY.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-3K1gm0ZU.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-B7t5QJBM.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DK1HkbWP.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
- package/dist/{ekybStateMachine-CH8cNXuY.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-TI_yKOoM.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
- package/dist/{ekycStateMachine-C1FUhd7b.esm.js → ekycStateMachine-DnKlILfu.esm.js} +3 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CFUaO3ZL.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BdyXbrHP.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
- package/dist/{emailStateMachine-D6NZlJ42.esm.js → emailStateMachine-5Neq3rE5.esm.js} +2 -2
- package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
- package/dist/events.d.ts +2 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +35 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Bstu9R9J.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +13 -4
- package/dist/{faceCaptureSetup-B4825Fli.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +6 -6
- package/dist/{faceMatchManager-Pvbkm2JR.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-BblhQmxi.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +2 -2
- package/dist/{feature-management-Czd7Gipr.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BOxgR4_4.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +3 -3
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-AjTkTp00.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +3 -3
- package/dist/flow.esm.js +6 -6
- package/dist/{flowCompletionService-BRi40ftj.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +1 -1
- package/dist/{flowServices-DbIbOJtq.esm.js → flowServices-pk---1Sx.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DYLncXrx.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
- package/dist/{geolocationStateMachine-fLik9xFz.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-LaFaCk6B.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-CzpcpO5C.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +2 -2
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BwOIQw2X.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +1 -1
- package/dist/{idCaptureManager-C2zLJ69k.esm.js → idCaptureManager-TokRg0VQ.esm.js} +26 -18
- package/dist/{idCaptureServices-iEpGrOXB.esm.js → idCaptureServices-BGhipfoM.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-DjWgUcCP.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +14 -14
- package/dist/{idOcrManager-CDLIIhlN.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-CUQbfm4-.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +2 -2
- package/dist/{idVerificationManager-BOU9eYa_.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-C6wBC4Vt.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-Buqq2Vo9.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-BQyB9Xfx.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +2 -2
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-ntGT3XBv.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
- package/dist/{mandatoryConsentManager-Cz4F6Cw5.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-oBLMpfOh.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +2 -2
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-zOtD81hJ.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
- package/dist/{phoneStateMachine-DdWAztmc.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-GDAQDXJ7.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
- package/dist/{redirectToMobileStateMachine-Me8BB5_q.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +2 -2
- package/dist/{runChildModule-Vrd574vg.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
- package/dist/{sdkVersion-CMD4kIIl.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
- package/dist/selfie.esm.js +11 -11
- package/dist/{selfieErrorUtils-Bg3LwGtn.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
- package/dist/{selfieManager-BkrnVETR.esm.js → selfieManager-DCzPlJCU.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFWsNR0D.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
- package/dist/{session-FJsbrwMk.esm.js → session-5KHEGxgB.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-DeX1HThw.esm.js → sessionInitializer-CiraPSTG.esm.js} +4 -4
- package/dist/{setup-CudMagYk.esm.js → setup-BJzlqOTL.esm.js} +81 -13
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-C8AWDhm-.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
- package/dist/{signatureStateMachine-CZH_61VF.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +2 -2
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{trueSightService-DKYskSg2.esm.js → trueSightService-Crpt3M-t.esm.js} +2 -2
- package/dist/trust-graph.esm.js +2 -2
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-CMJCMKgy.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +4 -4
- package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DPGQREtt.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-CzXANJ86.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +2 -2
- package/dist/{watchlistManager-BiLCz7So.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistStateMachine-jtLi-KvK.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +2 -2
- package/dist/workflow.esm.js +37 -37
- package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
- package/package.json +3 -3
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { S as setWasmIntegrityObserver } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { D as resolveWasmConfig, d as getStoredHttpConfig, f as installFreshHttpClient, l as trueSightLog, m as upgradeToWasmHttpClient$1, o as resetTrueSight, p as resetHttpClientState, t as finalizeTrueSight } from "./trueSightService-
|
|
2
|
+
import { D as resolveWasmConfig, d as getStoredHttpConfig, f as installFreshHttpClient, l as trueSightLog, m as upgradeToWasmHttpClient$1, o as resetTrueSight, p as resetHttpClientState, t as finalizeTrueSight } from "./trueSightService-Crpt3M-t.esm.js";
|
|
3
3
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
|
|
4
4
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
5
5
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
6
|
-
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-
|
|
6
|
+
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CAgFE-k3.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
9
|
-
import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
9
|
+
import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-CiraPSTG.esm.js";
|
|
10
10
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
11
11
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
12
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DPIl-FtB.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
15
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-pk---1Sx.esm.js";
|
|
16
16
|
//#region src/internal/events/AnalyticsBatchingService.ts
|
|
17
17
|
const DEFAULT_MAX_BATCH_SIZE = 50;
|
|
18
|
+
const MAX_STATE_BATCH_SIZE = 50;
|
|
18
19
|
const DEFAULT_MAX_BATCH_AGE_MS = 1e3;
|
|
19
20
|
const DEFAULT_MAX_RETRIES = 2;
|
|
20
21
|
const RETRY_BASE_DELAY_MS = 250;
|
|
@@ -24,6 +25,10 @@ function isTransientStatus(status) {
|
|
|
24
25
|
function createAnalyticsBatchingService(options) {
|
|
25
26
|
const { endpoint, authToken, pageLifecycle, timer, apiBaseUrl, apiClient = api, maxBatchSize = DEFAULT_MAX_BATCH_SIZE, maxBatchAgeMs = DEFAULT_MAX_BATCH_AGE_MS, maxRetries = DEFAULT_MAX_RETRIES } = options;
|
|
26
27
|
let buffer = [];
|
|
28
|
+
let stateBuffer = [];
|
|
29
|
+
let stateToken = null;
|
|
30
|
+
let stateBatches = [];
|
|
31
|
+
let stateRequestInFlight = false;
|
|
27
32
|
let started = false;
|
|
28
33
|
let disposed = false;
|
|
29
34
|
let ageTimerHandle = null;
|
|
@@ -78,16 +83,46 @@ function createAnalyticsBatchingService(options) {
|
|
|
78
83
|
}
|
|
79
84
|
sendBatch(batch, 0);
|
|
80
85
|
}
|
|
81
|
-
function
|
|
82
|
-
if (disposed || buffer.length === 0) return;
|
|
83
|
-
const batch = buffer;
|
|
84
|
-
buffer = [];
|
|
85
|
-
clearAgeTimer();
|
|
86
|
+
function syncStateToken() {
|
|
86
87
|
const token = authToken();
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if (token !== stateToken) {
|
|
89
|
+
stateBuffer = [];
|
|
90
|
+
stateBatches = [];
|
|
91
|
+
stateToken = token;
|
|
90
92
|
}
|
|
93
|
+
return token;
|
|
94
|
+
}
|
|
95
|
+
function sendNextStateBatch() {
|
|
96
|
+
if (disposed || !started || stateRequestInFlight || stateBatches.length === 0) return;
|
|
97
|
+
const token = syncStateToken();
|
|
98
|
+
const batch = stateBatches.shift();
|
|
99
|
+
if (!batch || !token) return;
|
|
100
|
+
stateRequestInFlight = true;
|
|
101
|
+
const onSettled = () => {
|
|
102
|
+
stateRequestInFlight = false;
|
|
103
|
+
sendNextStateBatch();
|
|
104
|
+
};
|
|
105
|
+
try {
|
|
106
|
+
apiClient.post(endpoint, batch.events, {
|
|
107
|
+
keepalive: true,
|
|
108
|
+
headers: { "X-Incode-Hardware-Id": batch.token }
|
|
109
|
+
}).then(onSettled, onSettled);
|
|
110
|
+
} catch {
|
|
111
|
+
Promise.resolve().then(onSettled);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function flushStateChanges() {
|
|
115
|
+
if (disposed) return;
|
|
116
|
+
const token = syncStateToken();
|
|
117
|
+
if (!token || stateBuffer.length === 0) return;
|
|
118
|
+
stateBatches.push({
|
|
119
|
+
events: stateBuffer,
|
|
120
|
+
token
|
|
121
|
+
});
|
|
122
|
+
stateBuffer = [];
|
|
123
|
+
sendNextStateBatch();
|
|
124
|
+
}
|
|
125
|
+
function sendBeacon(batch, token) {
|
|
91
126
|
const url = `${apiBaseUrl().replace(/\/$/, "")}${endpoint}`;
|
|
92
127
|
const body = JSON.stringify({
|
|
93
128
|
token,
|
|
@@ -95,9 +130,37 @@ function createAnalyticsBatchingService(options) {
|
|
|
95
130
|
});
|
|
96
131
|
pageLifecycle.sendBeacon(url, body);
|
|
97
132
|
}
|
|
133
|
+
function handlePageHide() {
|
|
134
|
+
if (disposed) return;
|
|
135
|
+
const token = syncStateToken();
|
|
136
|
+
const pendingStates = stateBatches;
|
|
137
|
+
stateBatches = [];
|
|
138
|
+
if (token && stateBuffer.length > 0) pendingStates.push({
|
|
139
|
+
events: stateBuffer,
|
|
140
|
+
token
|
|
141
|
+
});
|
|
142
|
+
stateBuffer = [];
|
|
143
|
+
for (const batch of pendingStates) sendBeacon(batch.events, batch.token);
|
|
144
|
+
if (buffer.length === 0) return;
|
|
145
|
+
const batch = buffer;
|
|
146
|
+
buffer = [];
|
|
147
|
+
clearAgeTimer();
|
|
148
|
+
if (!token) {
|
|
149
|
+
dropTokenless();
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
sendBeacon(batch, token);
|
|
153
|
+
}
|
|
98
154
|
function enqueue(entry) {
|
|
99
155
|
if (disposed) return;
|
|
156
|
+
if (entry.code === "stateChanged") {
|
|
157
|
+
if (!syncStateToken()) return;
|
|
158
|
+
stateBuffer.push(entry);
|
|
159
|
+
if (stateBuffer.length === MAX_STATE_BATCH_SIZE) flushStateChanges();
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
100
162
|
buffer.push(entry);
|
|
163
|
+
if (entry.code === "captureAttemptFinished" || entry.code === "moduleClosed" || entry.code === "errorTriggered" || entry.code === "background") flushStateChanges();
|
|
101
164
|
if (!started) return;
|
|
102
165
|
if (buffer.length >= maxBatchSize) {
|
|
103
166
|
flush();
|
|
@@ -110,6 +173,7 @@ function createAnalyticsBatchingService(options) {
|
|
|
110
173
|
started = true;
|
|
111
174
|
unsubscribeLifecycle = pageLifecycle.onPageHide(handlePageHide);
|
|
112
175
|
if (buffer.length > 0) flush();
|
|
176
|
+
sendNextStateBatch();
|
|
113
177
|
}
|
|
114
178
|
function dispose() {
|
|
115
179
|
if (disposed) return;
|
|
@@ -118,11 +182,15 @@ function createAnalyticsBatchingService(options) {
|
|
|
118
182
|
unsubscribeLifecycle?.();
|
|
119
183
|
unsubscribeLifecycle = null;
|
|
120
184
|
buffer = [];
|
|
185
|
+
stateBuffer = [];
|
|
186
|
+
stateBatches = [];
|
|
187
|
+
stateToken = null;
|
|
121
188
|
}
|
|
122
189
|
return {
|
|
123
190
|
enqueue,
|
|
124
191
|
start,
|
|
125
192
|
flush,
|
|
193
|
+
flushStateChanges,
|
|
126
194
|
dispose
|
|
127
195
|
};
|
|
128
196
|
}
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
1
|
+
import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-qqXyH93e.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
|
|
5
5
|
//#region src/modules/signature/signatureActor.ts
|
|
6
6
|
function createSignatureActor(options) {
|
|
7
7
|
return createActor(signatureMachine, { input: { config: options.config } }).start();
|
package/dist/{signatureStateMachine-CZH_61VF.esm.js → signatureStateMachine-BkRSrkKp.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/signature/signatureServices.ts
|
|
6
6
|
/**
|
|
7
7
|
* Uploads a signature image to the Omni API.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/internal/events/splitTrackedName.ts
|
|
2
|
+
/** Splits a Figma section/state path, keeping the full state name verbatim. */
|
|
3
|
+
function splitTrackedName(fullName) {
|
|
4
|
+
if (fullName === void 0) return {
|
|
5
|
+
screen: void 0,
|
|
6
|
+
state: void 0
|
|
7
|
+
};
|
|
8
|
+
const lastDot = fullName.lastIndexOf(".");
|
|
9
|
+
if (fullName.indexOf(".") === lastDot) return {
|
|
10
|
+
screen: fullName,
|
|
11
|
+
state: void 0
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
screen: fullName.slice(0, lastDot),
|
|
15
|
+
state: fullName
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { splitTrackedName as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as setWebApiHttpTransport, f as deriveSiblingJsPath, i as initializeWasmWebClient, o as setupWasmConnection, p as WASM_MODEL_FILES, r as executeWasmRequest, t as WasmWebClientError, v as buildModelVariantSources } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
3
|
+
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
4
4
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-DvwSi-xM.esm.js";
|
|
7
7
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
8
8
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
9
9
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
package/dist/trust-graph.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
//#region src/modules/trust-graph/trustGraphStateMachine.ts
|
|
4
4
|
/**
|
|
5
5
|
* Trust-graph is a headless "skip" module: it has no UI and the SDK performs no
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
+
import { t as ensureWasmPipelines } from "./setup-BJzlqOTL.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
5
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
6
6
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
7
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
8
|
-
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
9
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
7
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-pk---1Sx.esm.js";
|
|
8
|
+
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
9
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
10
10
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
11
11
|
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
14
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-CND0HDro.esm.js";
|
|
14
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
|
|
16
16
|
var wave_encoder_default = () => {
|
|
17
17
|
let BYTES_PER_SAMPLE = 2;
|
package/dist/{videoSelfieCameraWarmer-CMJCMKgy.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-pk---1Sx.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
7
|
-
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
7
|
+
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-CGDd_ogY.esm.js";
|
|
8
8
|
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
9
9
|
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
|
-
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-
|
|
12
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
+
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-CQnuPhYb.esm.js";
|
|
12
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CQLveJd1.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
14
14
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
15
15
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-
|
|
2
|
+
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-Crpt3M-t.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BJzlqOTL.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-BvF4jK3S.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-CNWEOYSq.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
6
|
function createWatchlistForBusinessActor() {
|
|
7
7
|
return createActor(watchlistForBusinessMachine).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
6
6
|
async function submitWatchlistForBusiness(data, signal) {
|
|
7
7
|
const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
6
|
function createWatchlistActor() {
|
|
7
7
|
return createActor(watchlistMachine).start();
|
package/dist/{watchlistStateMachine-jtLi-KvK.esm.js → watchlistStateMachine-Dgfm42w2.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistServices.ts
|
|
6
6
|
async function processWatchlist(signal) {
|
|
7
7
|
const res = await api.post(endpoints.processGlobalWatchlist, {}, { signal });
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-Crpt3M-t.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
6
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CiraPSTG.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DPIl-FtB.esm.js";
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-B7lJaeTn.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-pk---1Sx.esm.js";
|
|
9
9
|
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
10
|
-
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
11
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
10
|
+
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
11
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-DBhszLrG.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
16
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
17
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
18
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
19
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
20
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
23
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
24
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
27
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
28
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
29
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
30
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
31
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
32
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
33
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
34
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
36
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
37
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
38
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-DoJVzblM.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CSqcE4y3.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-yizSIonY.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-BCj5Jb3g.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-DAxImy8p.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D9gI5uu7.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BXq12SGh.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-iwmM5mCm.esm.js";
|
|
23
|
+
import { t as ekycMachine } from "./ekycStateMachine-DnKlILfu.esm.js";
|
|
24
|
+
import { t as emailMachine } from "./emailStateMachine-5Neq3rE5.esm.js";
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-IEKFw85T.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-ByWuXQze.esm.js";
|
|
27
|
+
import { t as phoneMachine } from "./phoneStateMachine-CEm2y7yG.esm.js";
|
|
28
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
29
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
30
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BrBUpfn5.esm.js";
|
|
31
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CoaSB7P7.esm.js";
|
|
32
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-kPn7DB2I.esm.js";
|
|
33
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-DjKfrc4P.esm.js";
|
|
34
|
+
import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Ap2O_wgT.esm.js";
|
|
36
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-C3YQ8yCZ.esm.js";
|
|
37
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-0HTVVxse.esm.js";
|
|
38
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-B9ZUnlyU.esm.js";
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BTxuv1Wb.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CpXjbJfG.esm.js";
|
|
41
41
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
42
42
|
import "./qe-signature.esm.js";
|
|
43
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
43
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
44
44
|
//#region src/internal/orchestration/defaultModules.ts
|
|
45
45
|
/**
|
|
46
46
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -45,20 +45,21 @@ function createManager(options) {
|
|
|
45
45
|
return () => subscription.unsubscribe();
|
|
46
46
|
}
|
|
47
47
|
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
+
let currentStateName = instrumentation?.getStateName?.(getSnapshot());
|
|
48
49
|
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
49
50
|
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
50
51
|
const api = createApi({
|
|
51
52
|
actor,
|
|
52
53
|
getSnapshot,
|
|
53
54
|
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
54
|
-
instrumentation.onElementClicked?.(instrumentation.moduleName, currentScreenName, {
|
|
55
|
+
instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
|
|
55
56
|
element: elementName,
|
|
56
57
|
action: payload?.action,
|
|
57
58
|
metadata: payload?.metadata
|
|
58
59
|
});
|
|
59
60
|
} : void 0,
|
|
60
61
|
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
61
|
-
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentScreenName, { logs: payload.logs });
|
|
62
|
+
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
|
|
62
63
|
} : void 0
|
|
63
64
|
});
|
|
64
65
|
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
@@ -76,7 +77,11 @@ function createManager(options) {
|
|
|
76
77
|
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
77
78
|
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
78
79
|
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
80
|
+
const nextStateName = instrumentation.getStateName?.(snapshot);
|
|
79
81
|
if (currentScreenName === nextScreenName) {
|
|
82
|
+
const previousStateName = currentStateName;
|
|
83
|
+
currentStateName = nextStateName;
|
|
84
|
+
if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
|
|
80
85
|
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
81
86
|
currentErrorName = nextErrorName;
|
|
82
87
|
currentErrorPayload = nextErrorPayload;
|
|
@@ -85,6 +90,7 @@ function createManager(options) {
|
|
|
85
90
|
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
86
91
|
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
87
92
|
currentScreenName = nextScreenName;
|
|
93
|
+
currentStateName = nextStateName;
|
|
88
94
|
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
89
95
|
currentErrorName = nextErrorName;
|
|
90
96
|
currentErrorPayload = nextErrorPayload;
|
|
@@ -104,6 +110,7 @@ function createManager(options) {
|
|
|
104
110
|
stopVisibility?.();
|
|
105
111
|
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
106
112
|
currentScreenName = void 0;
|
|
113
|
+
currentStateName = void 0;
|
|
107
114
|
currentErrorName = void 0;
|
|
108
115
|
currentErrorPayload = void 0;
|
|
109
116
|
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20261013-
|
|
3
|
+
"version": "0.0.0-dev-20261013-c982cdcd",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
"tsdown": "^0.22.8",
|
|
277
277
|
"typescript": "^5.9.3",
|
|
278
278
|
"vitest": "4.1.10",
|
|
279
|
-
"@incodetech/
|
|
280
|
-
"@incodetech/
|
|
279
|
+
"@incodetech/config": "1.0.2",
|
|
280
|
+
"@incodetech/infra": "1.4.0"
|
|
281
281
|
},
|
|
282
282
|
"scripts": {
|
|
283
283
|
"build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
|