@incodetech/core 0.0.0-dev-20260923-1a4dbec8 → 0.0.0-dev-20260924-9e40faf4

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 (76) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-B5poAx1_.esm.js → BrowserDiagnosticsCryptoProvider-D0e-1PEZ.esm.js} +1 -1
  2. package/dist/{FaceDetectionProvider-Ydsahps4.esm.js → FaceDetectionProvider-DbssECIq.esm.js} +4 -4
  3. package/dist/{ekycStateMachine-BjNeL6ce.esm.js → PhoneValidationProvider-Dok_Det7.esm.js} +160 -779
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-B5izenZ8.esm.js → apiError-BBsde_zZ.esm.js} +1 -1
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-xf4GoLxc.esm.js → authenticationManager-CfHmU40H.esm.js} +3 -3
  8. package/dist/{authenticationStateMachine-BkvMIijO.esm.js → authenticationStateMachine-DIijLkkt.esm.js} +2 -2
  9. package/dist/curp-validation.esm.js +2 -2
  10. package/dist/{curpValidationManager-BzS_Dlcq.esm.js → curpValidationManager-BHocstXa.esm.js} +13 -20
  11. package/dist/{curpValidationStateMachine-Bg_Lsk2V.esm.js → curpValidationStateMachine-CDcMdfvW.esm.js} +1 -1
  12. package/dist/{deepsightLoader-L0JGAPDe.esm.js → deepsightLoader-Cxt11Cx1.esm.js} +3 -3
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/document-capture.esm.js +1 -1
  15. package/dist/{documentCaptureManager-CbAGkHWh.d.ts → documentCaptureManager-C8eO0hbv.d.ts} +1 -1
  16. package/dist/{documentCaptureManager-7aQhPQnb.esm.js → documentCaptureManager-CLtex74O.esm.js} +7 -14
  17. package/dist/dynamic-forms.esm.js +2 -2
  18. package/dist/{dynamicFormsManager-l_3MYzBs.esm.js → dynamicFormsManager-CXKgiYov.esm.js} +1 -1
  19. package/dist/{dynamicFormsStateMachine-DOF7ba6-.esm.js → dynamicFormsStateMachine-CJ8bA1oW.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-lxNzE1kk.esm.js → ekybManager-BSIlNfRf.esm.js} +21 -25
  22. package/dist/{ekybStateMachine-DNBBT-S9.esm.js → ekybStateMachine-z0t8szV3.esm.js} +1 -1
  23. package/dist/ekyc.esm.js +2 -2
  24. package/dist/{ekycManager-DoGZkFZQ.esm.js → ekycManager-DEbkqrHx.esm.js} +27 -34
  25. package/dist/ekycStateMachine-UjaYNdNf.esm.js +688 -0
  26. package/dist/electronic-signature.esm.js +1 -1
  27. package/dist/{electronicSignatureManager-COJYfU0x.esm.js → electronicSignatureManager-B-IMLsp-.esm.js} +5 -5
  28. package/dist/email.esm.js +1 -1
  29. package/dist/{emailManager-CTNtCZJI.esm.js → emailManager-CeSfUjcz.esm.js} +17 -23
  30. package/dist/extensibility.d.ts +3 -3
  31. package/dist/extensibility.esm.js +17 -17
  32. package/dist/{faceCaptureManagerFactory-CIj0Cuh2.esm.js → faceCaptureManagerFactory-SDNPwwLR.esm.js} +2 -2
  33. package/dist/{faceCaptureSetup-LKIkhOFU.esm.js → faceCaptureSetup-bzpheUcb.esm.js} +3 -3
  34. package/dist/{feature-management-BdEYtp-i.esm.js → feature-management-B_C9uoMn.esm.js} +1 -1
  35. package/dist/feature-management.esm.js +1 -1
  36. package/dist/flow.esm.js +3 -3
  37. package/dist/{flowCompletionService-__FouXqN.esm.js → flowCompletionService-Cu5uEJuu.esm.js} +1 -1
  38. package/dist/{flowServices-Bzs_X1o4.esm.js → flowServices-BQtiexrG.esm.js} +4 -4
  39. package/dist/geolocation.esm.js +2 -2
  40. package/dist/{geolocationManager-B9ljrS0X.esm.js → geolocationManager-DSDFdGbn.esm.js} +4 -5
  41. package/dist/{geolocationStateMachine-DjxU3gOp.esm.js → geolocationStateMachine-BJR0ZbYj.esm.js} +1 -1
  42. package/dist/id-selfie-flow.esm.js +7 -7
  43. package/dist/id.esm.js +3 -3
  44. package/dist/{idCaptureDefaults-BJglMiCL.esm.js → idCaptureDefaults-BRdqVIve.esm.js} +1 -1
  45. package/dist/{idCaptureManager-C2DaehZ0.esm.js → idCaptureManager-xHV3aAVd.esm.js} +3 -3
  46. package/dist/{idCaptureServices-B3rNM_gb.esm.js → idCaptureServices-P9BCoM4V.esm.js} +3 -3
  47. package/dist/{idCaptureStateMachine-CnAu9UcE.esm.js → idCaptureStateMachine-BM3TBJhd.esm.js} +9 -9
  48. package/dist/identity-reuse.d.ts +1 -1
  49. package/dist/{identityReuseManager-BBE2R_S7.d.ts → identityReuseManager-x2QG6QAm.d.ts} +4 -4
  50. package/dist/index.esm.js +1 -1
  51. package/dist/personhood.esm.js +4 -4
  52. package/dist/phone.d.ts +1 -1
  53. package/dist/phone.esm.js +1 -1
  54. package/dist/{phoneManager-DNzWb7_d.d.ts → phoneManager-D4FVaENS.d.ts} +9 -1
  55. package/dist/{phoneManager-tPB-SJvp.esm.js → phoneManager-Do-HaC6Z.esm.js} +19 -17
  56. package/dist/qe-signature.esm.js +1 -1
  57. package/dist/{runChildModule-CNOpKnr8.esm.js → runChildModule-BpOMtasT.esm.js} +1 -1
  58. package/dist/{sdkVersion-DD5MTu4p.esm.js → sdkVersion-DQRoTd6P.esm.js} +1 -1
  59. package/dist/selfie.esm.js +5 -5
  60. package/dist/{selfieManager-BLCxM_Ci.esm.js → selfieManager-CNW7zH1i.esm.js} +3 -3
  61. package/dist/{selfieStateMachine-BYUhydKm.esm.js → selfieStateMachine-R9J8mADt.esm.js} +2 -2
  62. package/dist/{session-cbcxp2lM.esm.js → session-BEhlnolX.esm.js} +3 -3
  63. package/dist/session.esm.js +4 -4
  64. package/dist/{sessionInitializer-BQnUIKSb.esm.js → sessionInitializer-DV11I5N9.esm.js} +3 -3
  65. package/dist/{setup-CzOLxZwN.esm.js → setup--2aSSY35.esm.js} +4 -4
  66. package/dist/signature.esm.js +1 -1
  67. package/dist/{signatureManager-BEhnPTe8.esm.js → signatureManager-CS217sC0.esm.js} +4 -8
  68. package/dist/{trueSightService-BWs2WTYv.esm.js → trueSightService-BFrcoNz3.esm.js} +2 -2
  69. package/dist/video-selfie.esm.js +4 -4
  70. package/dist/{videoSelfieCameraWarmer-BnPBPjIw.esm.js → videoSelfieCameraWarmer-Cx0iEoav.esm.js} +3 -3
  71. package/dist/wasm.esm.js +2 -2
  72. package/dist/watchlist-for-business.esm.js +1 -1
  73. package/dist/{watchlistForBusinessManager-CwMC60YS.esm.js → watchlistForBusinessManager-BUWO4S6n.esm.js} +4 -2
  74. package/dist/workflow.d.ts +4 -4
  75. package/dist/workflow.esm.js +16 -16
  76. package/package.json +3 -3
@@ -1,5 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
3
+ import { t as PhoneValidationProvider } from "./PhoneValidationProvider-Dok_Det7.esm.js";
4
+ import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
3
5
  import { t as phoneMachine } from "./phoneStateMachine-BpZ2PF2U.esm.js";
4
6
  //#region src/modules/phone/phoneActor.ts
5
7
  function createPhoneActor(options) {
@@ -109,26 +111,31 @@ function createPhoneActor(options) {
109
111
  * screen until the SM surfaces them):
110
112
  *
111
113
  * - `phoneNumber.verify.countryCode` — country-picker overlay; no separate SM state.
112
- * - `phoneNumber.verify.phoneTyping` / `phoneNumber.verify.phoneFilled` — UI sub-states of `inputting`.
113
- * - `phoneNumber.OTP.filled` — UI sub-state of `awaitingOtp`.
114
114
  *
115
115
  * `finished` and `error` are mapped to terminal Figma screens to keep the
116
116
  * adapter from falling back to the generic `<module>.finished` /
117
117
  * `<module>.error` defaults.
118
118
  */
119
- function getPhoneScreenName(snapshot) {
120
- const { value } = snapshot;
119
+ function getPhoneScreenName(snapshot, phoneValidation) {
120
+ const { value, context } = snapshot;
121
121
  if (typeof value !== "string") return void 0;
122
122
  switch (value) {
123
- case "idle":
123
+ case "idle": return "phoneNumber.verify.default";
124
124
  case "inputting":
125
- case "validatingSubmit": return "phoneNumber.verify.default";
125
+ case "validatingSubmit": {
126
+ const phone = context.phone.trim();
127
+ if (!phone) return "phoneNumber.verify.default";
128
+ const internationalPhone = phone.startsWith("+") ? phone : `+${phone}`;
129
+ return phoneValidation.isPossible(internationalPhone) ? "phoneNumber.verify.phoneFilled" : "phoneNumber.verify.phoneTyping";
130
+ }
126
131
  case "loadingPrefill":
127
132
  case "loadingStartInfo": return "phoneNumber.verify.loading";
128
- case "submitting": return snapshot.context?.config?.isInstantVerify ? "phoneNumber.SNA.loading" : "phoneNumber.verify.loading";
133
+ case "submitting": return context.config?.isInstantVerify ? "phoneNumber.SNA.loading" : "phoneNumber.verify.loading";
129
134
  case "sendingInitialOtp":
130
- case "resendingOtp":
131
- case "awaitingOtp": return "phoneNumber.OTP.typing";
135
+ case "resendingOtp": return "phoneNumber.OTP.typing";
136
+ case "awaitingOtp":
137
+ if (context.otpValidationErrors?.otp) return "phoneNumber.OTP.error";
138
+ return isOtpComplete(context.otpCode) ? "phoneNumber.OTP.filled" : "phoneNumber.OTP.typing";
132
139
  case "verifyingOtp": return "phoneNumber.OTP.processing";
133
140
  case "otpError":
134
141
  case "error": return "phoneNumber.OTP.error";
@@ -371,19 +378,14 @@ function createApi({ actor, trackElementClicked }) {
371
378
  * ```
372
379
  */
373
380
  function createPhoneManager(options) {
374
- return createManager({
375
- actor: createPhoneActor(options),
376
- mapState,
377
- createApi,
378
- instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: getPhoneScreenName })
379
- });
381
+ return createPhoneManagerFromActor(createPhoneActor(options));
380
382
  }
381
- function createPhoneManagerFromActor(actor) {
383
+ function createPhoneManagerFromActor(actor, phoneValidation = new PhoneValidationProvider()) {
382
384
  return createManager({
383
385
  actor,
384
386
  mapState,
385
387
  createApi,
386
- instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: getPhoneScreenName })
388
+ instrumentation: createManagerInstrumentation(eventModuleNames.phone, { getEventScreenName: (snapshot) => getPhoneScreenName(snapshot, phoneValidation) })
387
389
  });
388
390
  }
389
391
  //#endregion
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-COJYfU0x.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-B-IMLsp-.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BWs2WTYv.esm.js";
1
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BFrcoNz3.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "0.0.0-dev-20260923-1a4dbec8";
2
+ const SDK_VERSION = "0.0.0-dev-20260924-9e40faf4";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
@@ -1,14 +1,14 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-CzOLxZwN.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup--2aSSY35.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-LKIkhOFU.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CIj0Cuh2.esm.js";
6
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-bzpheUcb.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-SDNPwwLR.esm.js";
8
8
  import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-BjoMVvya.esm.js";
9
9
  import { r as processFace } from "./selfieErrorUtils-yjRptLFi.esm.js";
10
- import { t as selfieMachine } from "./selfieStateMachine-BYUhydKm.esm.js";
11
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BLCxM_Ci.esm.js";
10
+ import { t as selfieMachine } from "./selfieStateMachine-R9J8mADt.esm.js";
11
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CNW7zH1i.esm.js";
12
12
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
13
13
  /**
14
14
  * Selfie state machine variant for the captureOnly flow. Shares the full base
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-CzOLxZwN.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup--2aSSY35.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CIj0Cuh2.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-BYUhydKm.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-SDNPwwLR.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-R9J8mADt.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-LKIkhOFU.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-Ydsahps4.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-bzpheUcb.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-DbssECIq.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-yjRptLFi.esm.js";
7
7
  /**
@@ -1,8 +1,8 @@
1
- import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-BWs2WTYv.esm.js";
1
+ import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-BFrcoNz3.esm.js";
2
2
  import { n as getApi } from "./api-Bx3gKW_y.esm.js";
3
- import "./sessionInitializer-BQnUIKSb.esm.js";
3
+ import "./sessionInitializer-DV11I5N9.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-B5izenZ8.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-BBsde_zZ.esm.js";
6
6
  //#region src/internal/session/sessionService.ts
7
7
  /**
8
8
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
@@ -1,9 +1,9 @@
1
1
  import { r as getToken } from "./api-Bx3gKW_y.esm.js";
2
2
  import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
3
- import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-BQnUIKSb.esm.js";
4
- import { t as IncodeApiError } from "./apiError-B5izenZ8.esm.js";
5
- import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-cbcxp2lM.esm.js";
6
- import { n as getFinishStatus } from "./flowCompletionService-__FouXqN.esm.js";
3
+ import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-DV11I5N9.esm.js";
4
+ import { t as IncodeApiError } from "./apiError-BBsde_zZ.esm.js";
5
+ import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BEhlnolX.esm.js";
6
+ import { n as getFinishStatus } from "./flowCompletionService-Cu5uEJuu.esm.js";
7
7
  //#region src/internal/session/sessionExpired.ts
8
8
  var SessionExpiredError = class extends Error {
9
9
  constructor() {
@@ -1,8 +1,8 @@
1
- import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-BWs2WTYv.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-BdEYtp-i.esm.js";
1
+ import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-BFrcoNz3.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-B_C9uoMn.esm.js";
3
3
  import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-DD5MTu4p.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-DQRoTd6P.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
7
  import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CZcy2J53.esm.js";
8
8
  import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
@@ -1,16 +1,16 @@
1
- import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, k as resolveWasmConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-BWs2WTYv.esm.js";
1
+ import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, k as resolveWasmConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-BFrcoNz3.esm.js";
2
2
  import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-REsua-sF.esm.js";
3
3
  import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-C511Hltw.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
- 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-BdEYtp-i.esm.js";
5
+ 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-B_C9uoMn.esm.js";
6
6
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
8
8
  import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
9
- import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-BQnUIKSb.esm.js";
9
+ import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-DV11I5N9.esm.js";
10
10
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
11
11
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
12
12
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
13
- import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-Bzs_X1o4.esm.js";
13
+ import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-BQtiexrG.esm.js";
14
14
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
15
15
  var BrowserPageLifecycleProvider = class {
16
16
  sendBeacon(url, body, contentType = "application/json") {
@@ -1,3 +1,3 @@
1
1
  import { t as signatureMachine } from "./signatureStateMachine-B5SZlQeG.esm.js";
2
- import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-BEhnPTe8.esm.js";
2
+ import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-CS217sC0.esm.js";
3
3
  export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
@@ -24,12 +24,8 @@ function createSignatureActor(options) {
24
24
  *
25
25
  * State → screen mapping rationale:
26
26
  *
27
- * - `idle`/`captureSignature` collapse to `eSign.writeSignature.default` —
28
- * the state machine stays in `captureSignature` throughout drawing (stroke
29
- * validity changes via `SIGNATURE_CHANGED` are context-only and don't fire
30
- * a new `screenOpened`). The `eSign.writeSignature.completed` Figma surface
31
- * is therefore the post-submit "signed canvas while we wait for the API"
32
- * surface, mapped to `submittingSignature`.
27
+ * - Drawing validity selects `default` or `completed` before submission.
28
+ * Clearing the canvas returns to `default`; submission stays on `completed`.
33
29
  * - `success`/`finished` both map to `eSign.writeYourSignature.success` so
34
30
  * the terminal `finished` state stays on the visible success canvas rather
35
31
  * than falling back to the generic `<module>.finished` default.
@@ -42,8 +38,8 @@ function getSignatureScreenName(snapshot) {
42
38
  const stateName = topLevelStateName(snapshot.value);
43
39
  if (stateName === void 0) return void 0;
44
40
  switch (stateName) {
45
- case "idle":
46
- case "captureSignature": return "eSign.writeSignature.default";
41
+ case "idle": return "eSign.writeSignature.default";
42
+ case "captureSignature": return snapshot.context.isValid ? "eSign.writeSignature.completed" : "eSign.writeSignature.default";
47
43
  case "submittingSignature": return "eSign.writeSignature.completed";
48
44
  case "success":
49
45
  case "finished": return "eSign.writeYourSignature.success";
@@ -3,7 +3,7 @@ import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.
3
3
  import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
5
5
  import { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
6
- import { t as SDK_VERSION } from "./sdkVersion-DD5MTu4p.esm.js";
6
+ import { t as SDK_VERSION } from "./sdkVersion-DQRoTd6P.esm.js";
7
7
  import { t as endpoints } from "./endpoints-B-3Q-LUw.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";
@@ -1470,7 +1470,7 @@ let cryptoProviderPromise = null;
1470
1470
  * the service's prewarm).
1471
1471
  */
1472
1472
  function loadDiagnosticsCryptoProvider() {
1473
- cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-B5poAx1_.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1473
+ cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-D0e-1PEZ.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1474
1474
  return cryptoProviderPromise;
1475
1475
  }
1476
1476
  /**
@@ -1,16 +1,16 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-CzOLxZwN.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup--2aSSY35.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-Bx3gKW_y.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
- import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-Bzs_X1o4.esm.js";
6
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-BQtiexrG.esm.js";
7
7
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
9
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
10
  import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
11
- import { i as CameraCompositor } from "./idCaptureDefaults-BJglMiCL.esm.js";
11
+ import { i as CameraCompositor } from "./idCaptureDefaults-BRdqVIve.esm.js";
12
12
  import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
13
- import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-BnPBPjIw.esm.js";
13
+ import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-Cx0iEoav.esm.js";
14
14
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
15
15
  //#region src/modules/video-selfie/videoSelfieWasm.ts
16
16
  function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
@@ -1,16 +1,16 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
4
- import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-Bzs_X1o4.esm.js";
4
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-BQtiexrG.esm.js";
5
5
  import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
6
6
  import { t as checkPermission } from "./permissionServices-DIaG8BlW.esm.js";
7
- import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-Ydsahps4.esm.js";
7
+ import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-DbssECIq.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
10
  import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
11
11
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
12
12
  import { i as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-yjRptLFi.esm.js";
13
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BJglMiCL.esm.js";
13
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BRdqVIve.esm.js";
14
14
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
15
15
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
16
16
  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-DPPQlS-U.esm.js";
2
- import { D as buildWasmConfigFromBasePath, E as buildDefaultWasmConfig, T as DEFAULT_WASM_VERSION, k as resolveWasmConfig } from "./trueSightService-BWs2WTYv.esm.js";
2
+ import { D as buildWasmConfigFromBasePath, E as buildDefaultWasmConfig, T as DEFAULT_WASM_VERSION, k as resolveWasmConfig } from "./trueSightService-BFrcoNz3.esm.js";
3
3
  import { o as warmupWasm } from "./warmup-REsua-sF.esm.js";
4
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-CzOLxZwN.esm.js";
4
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup--2aSSY35.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
1
  import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Ctw74iP3.esm.js";
2
- import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-CwMC60YS.esm.js";
2
+ import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-BUWO4S6n.esm.js";
3
3
  export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
@@ -16,13 +16,15 @@ function createWatchlistForBusinessActor() {
16
16
  * watchlist — each manager keeps its own module token per the
17
17
  * AdSign/QSign precedent.
18
18
  *
19
- * `idle` and `finished` are intentionally unmapped — the Figma canvas does
20
- * not define screens for them; `finished` collapses into `moduleClosed`.
19
+ * `idle` and `finished` have no visible screen. Suppress their raw-state
20
+ * fallback so every screen stays in the approved `watchlist.*` family.
21
21
  */
22
22
  function getWatchlistForBusinessScreenName(snapshot) {
23
23
  const stateName = topLevelStateName(snapshot.value);
24
24
  if (stateName === void 0) return void 0;
25
25
  switch (stateName) {
26
+ case "idle":
27
+ case "finished": return "";
26
28
  case "form": return snapshot.context.isValid ? "watchlist.filled" : "watchlist.default";
27
29
  case "submitting": return "watchlist.processing";
28
30
  case "success": return "watchlist.success";
@@ -339,10 +339,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
339
339
  id: string | undefined;
340
340
  };
341
341
  }>, Values<{
342
- setError: {
343
- type: "setError";
344
- params: NonReducibleUnknown;
345
- };
346
342
  setLoadingResult: {
347
343
  type: "setLoadingResult";
348
344
  params: NonReducibleUnknown;
@@ -375,6 +371,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
375
371
  type: "setFinishStatusFailed";
376
372
  params: NonReducibleUnknown;
377
373
  };
374
+ setError: {
375
+ type: "setError";
376
+ params: NonReducibleUnknown;
377
+ };
378
378
  setModuleError: {
379
379
  type: "setModuleError";
380
380
  params: NonReducibleUnknown;
@@ -1,29 +1,29 @@
1
- import { l as trueSightLog } from "./trueSightService-BWs2WTYv.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-BdEYtp-i.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-BFrcoNz3.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-B_C9uoMn.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BQnUIKSb.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DV11I5N9.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-B5izenZ8.esm.js";
8
- import { v as toEkybConfig } from "./flowServices-Bzs_X1o4.esm.js";
7
+ import { i as toIncodeApiError } from "./apiError-BBsde_zZ.esm.js";
8
+ import { v as toEkybConfig } from "./flowServices-BQtiexrG.esm.js";
9
9
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
10
10
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
11
11
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-COJYfU0x.esm.js";
12
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-B-IMLsp-.esm.js";
13
13
  import "./ae-signature.esm.js";
14
14
  import { t as antifraudMachine } from "./antifraudStateMachine-D_pA96rq.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-BkvMIijO.esm.js";
15
+ import { t as authenticationMachine } from "./authenticationStateMachine-DIijLkkt.esm.js";
16
16
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Bn5VbLhG.esm.js";
17
17
  import { t as consentMachine } from "./consentStateMachine-1MkML1iL.esm.js";
18
- import { t as curpValidationMachine } from "./curpValidationStateMachine-Bg_Lsk2V.esm.js";
18
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-CDcMdfvW.esm.js";
19
19
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Bzx8zPD3.esm.js";
20
20
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-C8p2vZQU.esm.js";
21
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DOF7ba6-.esm.js";
22
- import { t as ekybMachine } from "./ekybStateMachine-DNBBT-S9.esm.js";
23
- import { t as ekycMachine } from "./ekycStateMachine-BjNeL6ce.esm.js";
21
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CJ8bA1oW.esm.js";
22
+ import { t as ekybMachine } from "./ekybStateMachine-z0t8szV3.esm.js";
23
+ import { t as ekycMachine } from "./ekycStateMachine-UjaYNdNf.esm.js";
24
24
  import { t as emailMachine } from "./emailStateMachine-D7czACc4.esm.js";
25
- import { t as selfieMachine } from "./selfieStateMachine-BYUhydKm.esm.js";
26
- import { t as idCaptureMachine } from "./idCaptureStateMachine-CnAu9UcE.esm.js";
25
+ import { t as selfieMachine } from "./selfieStateMachine-R9J8mADt.esm.js";
26
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-BM3TBJhd.esm.js";
27
27
  import { t as phoneMachine } from "./phoneStateMachine-BpZ2PF2U.esm.js";
28
28
  import { t as watchlistMachine } from "./watchlistStateMachine-BLTC8Bur.esm.js";
29
29
  import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Ctw74iP3.esm.js";
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BqP
32
32
  import { t as idOcrStateMachine } from "./idOcrStateMachine-IMYjWyxu.esm.js";
33
33
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BwDBkdiB.esm.js";
34
34
  import { t as signatureMachine } from "./signatureStateMachine-B5SZlQeG.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-DjxU3gOp.esm.js";
35
+ import { t as geolocationMachine } from "./geolocationStateMachine-BJR0ZbYj.esm.js";
36
36
  import { t as governmentValidationMachine } from "./governmentValidationStateMachine-omXlfK8T.esm.js";
37
37
  import { t as idVerificationMachine } from "./idVerificationStateMachine-lk1KYt0f.esm.js";
38
38
  import { t as faceMatchMachine } from "./faceMatchStateMachine-B1IrvVGS.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-__FouXqN.esm.js";
40
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CNOpKnr8.esm.js";
39
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-Cu5uEJuu.esm.js";
40
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BpOMtasT.esm.js";
41
41
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
42
42
  import "./qe-signature.esm.js";
43
43
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260923-1a4dbec8",
3
+ "version": "0.0.0-dev-20260924-9e40faf4",
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.3.0",
280
- "@incodetech/config": "1.0.2"
279
+ "@incodetech/config": "1.0.2",
280
+ "@incodetech/infra": "1.3.0"
281
281
  },
282
282
  "scripts": {
283
283
  "build": "tsdown -c tsdown.config.ts",