@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.
Files changed (135) hide show
  1. package/dist/{FaceDetectionProvider-Cjvg7syA.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +5 -5
  2. package/dist/{addressSearch-uNaH2m0e.esm.js → addressSearch-Bm8zTbQJ.esm.js} +1 -1
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/antifraud.esm.js +2 -2
  5. package/dist/{antifraudManager-CRIfvdbK.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
  6. package/dist/{antifraudStateMachine-CMSC0FxQ.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +2 -2
  7. package/dist/{apiError-17zE9Esu.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
  8. package/dist/authentication.esm.js +2 -2
  9. package/dist/{authenticationManager-ioEDxaVR.esm.js → authenticationManager-Bk74vxGj.esm.js} +5 -5
  10. package/dist/{authenticationStateMachine-DFEJDs_Z.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
  11. package/dist/certificate-issuance.esm.js +2 -2
  12. package/dist/{certificateIssuanceManager-BL0aSh6K.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
  13. package/dist/{certificateIssuanceStateMachine-jVHO9TMw.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +2 -2
  14. package/dist/consent.d.ts +1 -1
  15. package/dist/consent.esm.js +2 -2
  16. package/dist/{consentManager-CO3c_dWq.esm.js → consentManager-CjrxY737.esm.js} +3 -3
  17. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-Cv_0QKLD.d.ts} +8 -8
  18. package/dist/{consentStateMachine-DNJ878_I.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +2 -2
  19. package/dist/{createCameraCycleOwnership-D7hj1Z1w.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +1 -1
  20. package/dist/cross-document-data-match.esm.js +1 -1
  21. package/dist/{crossDocumentDataMatchManager-BIMwos3V.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +3 -3
  22. package/dist/curp-validation.esm.js +2 -2
  23. package/dist/{curpValidationManager-gzGFKami.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
  24. package/dist/{curpValidationStateMachine-DOMJypnG.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +2 -2
  25. package/dist/custom-fields.esm.js +1 -1
  26. package/dist/custom-watchlist.esm.js +2 -2
  27. package/dist/{customFieldsManager-DG5JBxi1.esm.js → customFieldsManager-BV6UyLFV.esm.js} +3 -3
  28. package/dist/{customWatchlistManager-Bob-U0Rw.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
  29. package/dist/{customWatchlistStateMachine-CUAp1Ls5.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +2 -2
  30. package/dist/{deepsightLoader-B4WdVaws.esm.js → deepsightLoader-Bbannll8.esm.js} +4 -4
  31. package/dist/{deepsightService-DFLGztHC.esm.js → deepsightService-cd1HQvBB.esm.js} +1 -1
  32. package/dist/document-capture.d.ts +1 -1
  33. package/dist/document-capture.esm.js +2 -2
  34. package/dist/{documentCaptureManager-CgHmGbnp.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
  35. package/dist/{documentCaptureManager-D4zKJlKC.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +1 -1
  36. package/dist/{documentCaptureStateMachine-Dl5oWDqY.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +2 -2
  37. package/dist/dynamic-forms.esm.js +2 -2
  38. package/dist/{dynamicFormsManager-3K1gm0ZU.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
  39. package/dist/{dynamicFormsStateMachine-B7t5QJBM.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +3 -3
  40. package/dist/ekyb.esm.js +3 -3
  41. package/dist/{ekybManager-DK1HkbWP.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
  42. package/dist/{ekybStateMachine-CH8cNXuY.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +4 -4
  43. package/dist/ekyc.esm.js +2 -2
  44. package/dist/{ekycManager-TI_yKOoM.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
  45. package/dist/{ekycStateMachine-C1FUhd7b.esm.js → ekycStateMachine-DnKlILfu.esm.js} +3 -3
  46. package/dist/electronic-signature.esm.js +1 -1
  47. package/dist/{electronicSignatureManager-CFUaO3ZL.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +4 -4
  48. package/dist/email.esm.js +2 -2
  49. package/dist/{emailManager-BdyXbrHP.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
  50. package/dist/{emailStateMachine-D6NZlJ42.esm.js → emailStateMachine-5Neq3rE5.esm.js} +2 -2
  51. package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
  52. package/dist/events.d.ts +2 -1
  53. package/dist/events.esm.js +1 -1
  54. package/dist/extensibility.d.ts +3 -3
  55. package/dist/extensibility.esm.js +35 -35
  56. package/dist/face-match.esm.js +2 -2
  57. package/dist/{faceCaptureManagerFactory-Bstu9R9J.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +13 -4
  58. package/dist/{faceCaptureSetup-B4825Fli.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +6 -6
  59. package/dist/{faceMatchManager-Pvbkm2JR.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
  60. package/dist/{faceMatchStateMachine-BblhQmxi.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +2 -2
  61. package/dist/{feature-management-Czd7Gipr.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
  62. package/dist/feature-management.esm.js +1 -1
  63. package/dist/field-comparison.esm.js +1 -1
  64. package/dist/{fieldComparisonManager-BOxgR4_4.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +3 -3
  65. package/dist/fiscal-qr.esm.js +1 -1
  66. package/dist/{fiscalQrManager-AjTkTp00.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +3 -3
  67. package/dist/flow.esm.js +6 -6
  68. package/dist/{flowCompletionService-BRi40ftj.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +1 -1
  69. package/dist/{flowServices-DbIbOJtq.esm.js → flowServices-pk---1Sx.esm.js} +4 -4
  70. package/dist/geolocation.esm.js +2 -2
  71. package/dist/{geolocationManager-DYLncXrx.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
  72. package/dist/{geolocationStateMachine-fLik9xFz.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +3 -3
  73. package/dist/government-validation.esm.js +2 -2
  74. package/dist/{governmentValidationManager-LaFaCk6B.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
  75. package/dist/{governmentValidationStateMachine-CzpcpO5C.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +2 -2
  76. package/dist/home.esm.js +2 -2
  77. package/dist/id-ocr.esm.js +2 -2
  78. package/dist/id-selfie-flow.esm.js +9 -9
  79. package/dist/id-verification.esm.js +2 -2
  80. package/dist/id.esm.js +3 -3
  81. package/dist/{idCaptureDefaults-BwOIQw2X.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +1 -1
  82. package/dist/{idCaptureManager-C2zLJ69k.esm.js → idCaptureManager-TokRg0VQ.esm.js} +26 -18
  83. package/dist/{idCaptureServices-iEpGrOXB.esm.js → idCaptureServices-BGhipfoM.esm.js} +5 -5
  84. package/dist/{idCaptureStateMachine-DjWgUcCP.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +14 -14
  85. package/dist/{idOcrManager-CDLIIhlN.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
  86. package/dist/{idOcrStateMachine-CUQbfm4-.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +2 -2
  87. package/dist/{idVerificationManager-BOU9eYa_.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
  88. package/dist/{idVerificationStateMachine-C6wBC4Vt.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +2 -2
  89. package/dist/identity-reuse.esm.js +2 -2
  90. package/dist/{identityReuseManager-Buqq2Vo9.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
  91. package/dist/{identityReuseStateMachine-BQyB9Xfx.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +2 -2
  92. package/dist/index.esm.js +1 -1
  93. package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
  94. package/dist/mandatory-consent.d.ts +1 -1
  95. package/dist/mandatory-consent.esm.js +2 -2
  96. package/dist/{mandatoryConsentManager-ntGT3XBv.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
  97. package/dist/{mandatoryConsentManager-Cz4F6Cw5.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
  98. package/dist/{mandatoryConsentStateMachine-oBLMpfOh.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +2 -2
  99. package/dist/phone.esm.js +2 -2
  100. package/dist/{phoneManager-zOtD81hJ.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
  101. package/dist/{phoneStateMachine-DdWAztmc.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +2 -2
  102. package/dist/qe-signature.esm.js +1 -1
  103. package/dist/redirect-to-mobile.esm.js +2 -2
  104. package/dist/{redirectToMobileManager-GDAQDXJ7.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
  105. package/dist/{redirectToMobileStateMachine-Me8BB5_q.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +2 -2
  106. package/dist/{runChildModule-Vrd574vg.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
  107. package/dist/{sdkVersion-CMD4kIIl.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
  108. package/dist/selfie.esm.js +11 -11
  109. package/dist/{selfieErrorUtils-Bg3LwGtn.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
  110. package/dist/{selfieManager-BkrnVETR.esm.js → selfieManager-DCzPlJCU.esm.js} +5 -5
  111. package/dist/{selfieStateMachine-BFWsNR0D.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
  112. package/dist/{session-FJsbrwMk.esm.js → session-5KHEGxgB.esm.js} +3 -3
  113. package/dist/session.esm.js +4 -4
  114. package/dist/{sessionInitializer-DeX1HThw.esm.js → sessionInitializer-CiraPSTG.esm.js} +4 -4
  115. package/dist/{setup-CudMagYk.esm.js → setup-BJzlqOTL.esm.js} +81 -13
  116. package/dist/signature.esm.js +2 -2
  117. package/dist/{signatureManager-C8AWDhm-.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
  118. package/dist/{signatureStateMachine-CZH_61VF.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +2 -2
  119. package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
  120. package/dist/{trueSightService-DKYskSg2.esm.js → trueSightService-Crpt3M-t.esm.js} +2 -2
  121. package/dist/trust-graph.esm.js +2 -2
  122. package/dist/video-selfie.esm.js +6 -6
  123. package/dist/{videoSelfieCameraWarmer-CMJCMKgy.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +4 -4
  124. package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
  125. package/dist/wasm.esm.js +2 -2
  126. package/dist/watchlist-for-business.esm.js +2 -2
  127. package/dist/watchlist.esm.js +2 -2
  128. package/dist/{watchlistForBusinessManager-DPGQREtt.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
  129. package/dist/{watchlistForBusinessStateMachine-CzXANJ86.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +2 -2
  130. package/dist/{watchlistManager-BiLCz7So.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
  131. package/dist/{watchlistStateMachine-jtLi-KvK.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +2 -2
  132. package/dist/workflow.esm.js +37 -37
  133. package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
  134. package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
  135. 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-DKYskSg2.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-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-CfLLkAh7.esm.js";
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-DeX1HThw.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-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-Czd7Gipr.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-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-DbIbOJtq.esm.js";
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 handlePageHide() {
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 (!token) {
88
- dropTokenless();
89
- return;
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
  }
@@ -1,3 +1,3 @@
1
- import { t as signatureMachine } from "./signatureStateMachine-CZH_61VF.esm.js";
2
- import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-C8AWDhm-.esm.js";
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-CfLLkAh7.esm.js";
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-Bg3FuvIs.esm.js";
4
- import { t as signatureMachine } from "./signatureStateMachine-CZH_61VF.esm.js";
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();
@@ -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-Bg3FuvIs.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
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-CfLLkAh7.esm.js";
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-CMD4kIIl.esm.js";
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";
@@ -1,5 +1,5 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
2
- import { s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
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
@@ -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-CudMagYk.esm.js";
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-DbIbOJtq.esm.js";
8
- import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
9
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
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-CMJCMKgy.esm.js";
14
- import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
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;
@@ -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-DbIbOJtq.esm.js";
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-Cjvg7syA.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-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-Bg3LwGtn.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BwOIQw2X.esm.js";
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) {
@@ -1,4 +1,4 @@
1
- import { t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
1
+ import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  //#region src/modules/video-selfie/videoSelfieFlowModuleMachine.ts
3
3
  /**
4
4
  * Parked flow-module machine for the `VIDEO_ONBOARDING` step.
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-DKYskSg2.esm.js";
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-CudMagYk.esm.js";
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-CzXANJ86.esm.js";
2
- import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-DPGQREtt.esm.js";
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 };
@@ -1,3 +1,3 @@
1
- import { t as watchlistMachine } from "./watchlistStateMachine-jtLi-KvK.esm.js";
2
- import { t as createWatchlistManager } from "./watchlistManager-BiLCz7So.esm.js";
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-CfLLkAh7.esm.js";
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-Bg3FuvIs.esm.js";
4
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CzXANJ86.esm.js";
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-Bg3FuvIs.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
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-CfLLkAh7.esm.js";
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-Bg3FuvIs.esm.js";
4
- import { t as watchlistMachine } from "./watchlistStateMachine-jtLi-KvK.esm.js";
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();
@@ -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-Bg3FuvIs.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
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 });
@@ -1,46 +1,46 @@
1
- import { l as trueSightLog } from "./trueSightService-DKYskSg2.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CfLLkAh7.esm.js";
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-DeX1HThw.esm.js";
6
- import { E as updateFeatureManagementUser } from "./feature-management-Czd7Gipr.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-17zE9Esu.esm.js";
8
- import { v as toEkybConfig } from "./flowServices-DbIbOJtq.esm.js";
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-Bg3FuvIs.esm.js";
11
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-CFUaO3ZL.esm.js";
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-CMSC0FxQ.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-DFEJDs_Z.esm.js";
16
- import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-jVHO9TMw.esm.js";
17
- import { t as consentMachine } from "./consentStateMachine-DNJ878_I.esm.js";
18
- import { t as curpValidationMachine } from "./curpValidationStateMachine-DOMJypnG.esm.js";
19
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CUAp1Ls5.esm.js";
20
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-Dl5oWDqY.esm.js";
21
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-B7t5QJBM.esm.js";
22
- import { t as ekybMachine } from "./ekybStateMachine-CH8cNXuY.esm.js";
23
- import { t as ekycMachine } from "./ekycStateMachine-C1FUhd7b.esm.js";
24
- import { t as emailMachine } from "./emailStateMachine-D6NZlJ42.esm.js";
25
- import { t as selfieMachine } from "./selfieStateMachine-BFWsNR0D.esm.js";
26
- import { t as idCaptureMachine } from "./idCaptureStateMachine-DjWgUcCP.esm.js";
27
- import { t as phoneMachine } from "./phoneStateMachine-DdWAztmc.esm.js";
28
- import { t as watchlistMachine } from "./watchlistStateMachine-jtLi-KvK.esm.js";
29
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CzXANJ86.esm.js";
30
- import { n as identityReuseMachine } from "./identityReuseStateMachine-BQyB9Xfx.esm.js";
31
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-oBLMpfOh.esm.js";
32
- import { t as idOcrStateMachine } from "./idOcrStateMachine-CUQbfm4-.esm.js";
33
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-Me8BB5_q.esm.js";
34
- import { t as signatureMachine } from "./signatureStateMachine-CZH_61VF.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-fLik9xFz.esm.js";
36
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CzpcpO5C.esm.js";
37
- import { t as idVerificationMachine } from "./idVerificationStateMachine-C6wBC4Vt.esm.js";
38
- import { t as faceMatchMachine } from "./faceMatchStateMachine-BblhQmxi.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BRi40ftj.esm.js";
40
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Vrd574vg.esm.js";
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-DQTlyw98.esm.js";
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.
@@ -1,4 +1,4 @@
1
- import { a as XSTATE_STOP } from "./xstate.esm-Bg3FuvIs.esm.js";
1
+ import { a as XSTATE_STOP } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  const instanceStates = /* #__PURE__ */ new WeakMap();
3
3
  /**
4
4
  * Represents an actor created by `fromCallback`.
@@ -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-503bba69",
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/infra": "1.4.0",
280
- "@incodetech/config": "1.0.2"
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",