@incodetech/core 0.0.0-dev-20260612-0e76faaf → 0.0.0-dev-20260615-7defa108

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 (64) hide show
  1. package/dist/{ae-signature-CwR8T0KW.esm.js → ae-signature-DxX99lOP.esm.js} +1 -1
  2. package/dist/ae-signature.d.ts +1 -1
  3. package/dist/ae-signature.esm.js +2 -2
  4. package/dist/antifraud.esm.js +1 -1
  5. package/dist/{antifraudManager-Bvq3dpwH.esm.js → antifraudManager-DI9S7XTK.esm.js} +1 -1
  6. package/dist/certificate-issuance.d.ts +28 -28
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/consent.esm.js +1 -1
  9. package/dist/{consentManager-3WFz6a0Z.esm.js → consentManager-BIoVcRI-.esm.js} +1 -1
  10. package/dist/{consentManager-wLdn7gsI.d.ts → consentManager-dB4AdXT1.d.ts} +50 -50
  11. package/dist/cpf-ocr.d.ts +1 -1
  12. package/dist/{cpfOcrManager-pOLci9EI.d.ts → cpfOcrManager-BoKvGSo5.d.ts} +20 -20
  13. package/dist/curp-validation.esm.js +1 -1
  14. package/dist/{curpValidationManager-CH28Zbjv.esm.js → curpValidationManager-Bzxw5FVS.esm.js} +1 -1
  15. package/dist/custom-fields.d.ts +1 -0
  16. package/dist/custom-fields.esm.js +44 -2
  17. package/dist/custom-watchlist.esm.js +1 -1
  18. package/dist/document-capture.d.ts +170 -170
  19. package/dist/document-capture.esm.js +1 -1
  20. package/dist/document-upload.d.ts +40 -40
  21. package/dist/dynamic-forms.esm.js +1 -1
  22. package/dist/ekyb.esm.js +4 -4
  23. package/dist/{ekybStateMachine-Dw-kjiR1.esm.js → ekybStateMachine-BStKk0D1.esm.js} +1 -1
  24. package/dist/ekyc.esm.js +1 -1
  25. package/dist/electronic-signature.d.ts +1 -1
  26. package/dist/electronic-signature.esm.js +1 -1
  27. package/dist/{electronicSignatureManager-5mA3RQe1.esm.js → electronicSignatureManager-D2WzDJUK.esm.js} +1 -1
  28. package/dist/email.esm.js +1 -1
  29. package/dist/{emailManager-DnbwHGVQ.esm.js → emailManager-BbI08-We.esm.js} +1 -1
  30. package/dist/extensibility.d.ts +4 -4
  31. package/dist/extensibility.esm.js +8 -8
  32. package/dist/flow.d.ts +2 -2
  33. package/dist/flow.esm.js +2 -2
  34. package/dist/{flowServices-DPlNhc3d.esm.js → flowServices-DPPO-zkq.esm.js} +1 -1
  35. package/dist/geolocation.esm.js +1 -1
  36. package/dist/government-validation.esm.js +1 -1
  37. package/dist/home.d.ts +10 -10
  38. package/dist/id-ocr.d.ts +52 -52
  39. package/dist/id-verification.d.ts +25 -25
  40. package/dist/id.esm.js +3 -3
  41. package/dist/{idCaptureManager-CkzlE2K4.esm.js → idCaptureManager-DWRE6Jd4.esm.js} +1 -1
  42. package/dist/{idCaptureStateMachine-CRbzwwNv.esm.js → idCaptureStateMachine-BIz8XI5L.esm.js} +3 -3
  43. package/dist/identity-reuse.d.ts +1 -1
  44. package/dist/{identityReuseManager-BE3BEm39.d.ts → identityReuseManager-BqsBPObh.d.ts} +31 -31
  45. package/dist/{index-BwOrSoTl.d.ts → index-DeuHzDNj.d.ts} +168 -168
  46. package/dist/index.esm.js +2 -2
  47. package/dist/mandatory-consent.d.ts +1 -1
  48. package/dist/{mandatoryConsentManager-BHJ_U1Wf.d.ts → mandatoryConsentManager--05U1ab3.d.ts} +47 -47
  49. package/dist/phone.esm.js +1 -1
  50. package/dist/{phoneManager-DDIZpPIO.esm.js → phoneManager-C0NWX3dt.esm.js} +1 -1
  51. package/dist/{qe-signature-BeMdGlrP.esm.js → qe-signature-D10dlZ0x.esm.js} +1 -1
  52. package/dist/qe-signature.d.ts +1 -1
  53. package/dist/qe-signature.esm.js +2 -2
  54. package/dist/session.esm.js +1 -1
  55. package/dist/{sessionInitializer-A1OBPbFe.esm.js → sessionInitializer-CnF49tUG.esm.js} +1 -1
  56. package/dist/{setup-BlaenrhA.esm.js → setup-BtMy_8iH.esm.js} +1 -1
  57. package/dist/signature.esm.js +1 -1
  58. package/dist/trust-graph.d.ts +2 -2
  59. package/dist/wasm.esm.js +2 -2
  60. package/dist/watchlist-for-business.esm.js +1 -1
  61. package/dist/watchlist.esm.js +1 -1
  62. package/dist/workflow.d.ts +88 -88
  63. package/dist/workflow.esm.js +7 -7
  64. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-D5AupVUC.esm.js";
2
- import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-BAfXOOYZ.esm.js";
2
+ import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-BAfXOOYZ.esm.js";
3
3
  import { t as endpoints } from "./endpoints-BUiak39U.esm.js";
4
4
  import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-BMAePvR6.esm.js";
5
5
  import { t as isoDateToMs } from "./dateUtils-D-YO9_Hp.esm.js";
@@ -89,6 +89,48 @@ function createCustomFieldsActor(options) {
89
89
 
90
90
  //#endregion
91
91
  //#region src/modules/custom-fields/customFieldsManager.ts
92
+ /**
93
+ * Maps a custom-fields state-machine snapshot to the exact Figma "Tracked
94
+ * Events" screen name. Returned strings are the Figma-verbatim absolute
95
+ * analytics path emitted as-is on `event.screen` by
96
+ * `createManagerInstrumentation`'s `getEventScreenName` path. See
97
+ * `docs/patterns/INSTRUMENTATION.md`.
98
+ *
99
+ * Source of truth: Custom Fields Figma file → Tracked Events canvas
100
+ * (`https://www.figma.com/design/Fb4Jp6kal8clAD05Kh6l4e/Custom-fields---Latest-Design?node-id=2026-30075`).
101
+ * The canvas mixes two casings — sections name the input surfaces
102
+ * `Customfield.{empty,filled}` (capital `C`) and the post-input surfaces
103
+ * `customfield.{processing,complete}` (lowercase `c`). Both spellings are
104
+ * preserved verbatim as Figma is the source of truth.
105
+ *
106
+ * State → screen mapping rationale:
107
+ *
108
+ * - `idle`/`inputting` collapse to `Customfield.empty` — the SM stays in
109
+ * `inputting` throughout typing (field-level `FIELD_CHANGED` events are
110
+ * context-only and don't fire a new `screenOpened`). The Figma
111
+ * `Customfield.filled` surface is therefore a UI sub-state of `inputting`
112
+ * (computed in `mapState` as `canSubmit`), not a discrete SM state, and
113
+ * collapses onto the section's primary `Customfield.empty` screen.
114
+ * - `submitting` → `customfield.processing` — submit in-flight.
115
+ * - `success` → `customfield.complete` — happy-path success surface (auto-
116
+ * advances to `finished` after 3 s).
117
+ * - `finished` is intentionally unmapped: it is dual-outcome (success or
118
+ * failed — failures route here with `result: 'failed'` since the machine
119
+ * has no `error` state) and Figma defines no failure screen. Mapping
120
+ * `finished` onto `customfield.complete` would mis-report failures, so the
121
+ * adapter falls back to the generic `<module>.finished` default.
122
+ */
123
+ function getCustomFieldsScreenName(snapshot) {
124
+ const stateName = topLevelStateName(snapshot.value);
125
+ if (stateName === void 0) return void 0;
126
+ switch (stateName) {
127
+ case "idle":
128
+ case "inputting": return "Customfield.empty";
129
+ case "submitting": return "customfield.processing";
130
+ case "success": return "customfield.complete";
131
+ default: return;
132
+ }
133
+ }
92
134
  function toDisplayLabel(field) {
93
135
  if (field.alias) return field.alias;
94
136
  return field.name.replace(/([A-Z])/g, " $1").replace(/^./, (s) => s.toUpperCase());
@@ -169,7 +211,7 @@ function createCustomFieldsManager(options) {
169
211
  actor: createCustomFieldsActor(options),
170
212
  mapState,
171
213
  createApi,
172
- instrumentation: createManagerInstrumentation(eventModuleNames.customFields)
214
+ instrumentation: createManagerInstrumentation(eventModuleNames.customFields, { getEventScreenName: getCustomFieldsScreenName })
173
215
  });
174
216
  }
175
217
 
@@ -13,7 +13,7 @@ function createCustomWatchlistActor() {
13
13
  //#region src/modules/custom-watchlist/customWatchlistManager.ts
14
14
  /**
15
15
  * Maps a Custom Watchlist state-machine snapshot to the exact Figma
16
- * "📊 Tracked Events" screen name. Source: Watchlist | Custom Watchlist
16
+ * "Tracked Events" screen name. Source: Watchlist | Custom Watchlist
17
17
  * Figma file (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
18
18
  * Family is `watchlist.*`, shared with the global watchlist manager — both
19
19
  * keep their own module token (`watchlist` vs `customWatchlist`) per the