@incodetech/core 0.0.0-dev-20260611-3dbdc7fd → 0.0.0-dev-20260611-09d74a69

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 (102) hide show
  1. package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-ai7OSLgB.esm.js} +1 -1
  2. package/dist/ae-signature.d.ts +1 -1
  3. package/dist/ae-signature.esm.js +3 -3
  4. package/dist/antifraud.esm.js +2 -2
  5. package/dist/{antifraudManager-CkV4u-LE.esm.js → antifraudManager-Bm_s1FGq.esm.js} +31 -3
  6. package/dist/authentication.esm.js +3 -3
  7. package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Bx6JOGrA.esm.js} +2 -2
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/consent.esm.js +2 -2
  10. package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-CcYtoZcH.esm.js} +27 -3
  11. package/dist/{consentManager-B-qo4-xH.d.ts → consentManager-xD5HBcPI.d.ts} +47 -47
  12. package/dist/cpf-ocr.d.ts +1 -1
  13. package/dist/cpf-ocr.esm.js +2 -2
  14. package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-D_Jz3zTE.esm.js} +1 -1
  15. package/dist/{cpfOcrManager-b5eyxzi_.d.ts → cpfOcrManager-DbWOV3mR.d.ts} +17 -17
  16. package/dist/cross-document-data-match.esm.js +1 -1
  17. package/dist/curp-validation.d.ts +1 -1
  18. package/dist/curp-validation.esm.js +2 -2
  19. package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-DIQbAvYR.d.ts} +1 -0
  20. package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-DnJc2FXu.esm.js} +49 -3
  21. package/dist/custom-fields.esm.js +1 -1
  22. package/dist/custom-watchlist.esm.js +22 -2
  23. package/dist/document-capture.d.ts +170 -170
  24. package/dist/document-capture.esm.js +65 -2
  25. package/dist/document-upload.d.ts +40 -40
  26. package/dist/document-upload.esm.js +2 -2
  27. package/dist/dynamic-forms.esm.js +30 -3
  28. package/dist/ekyb.d.ts +1 -0
  29. package/dist/ekyb.esm.js +46 -5
  30. package/dist/{ekybStateMachine-B3RM9ruw.esm.js → ekybStateMachine-B9GEv84i.esm.js} +1 -1
  31. package/dist/ekyc.d.ts +1 -0
  32. package/dist/ekyc.esm.js +47 -2
  33. package/dist/electronic-signature.d.ts +1 -1
  34. package/dist/electronic-signature.esm.js +2 -2
  35. package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-NH8uW69s.esm.js} +98 -6
  36. package/dist/email.d.ts +1 -1
  37. package/dist/email.esm.js +2 -2
  38. package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-CSgOY352.d.ts} +1 -0
  39. package/dist/{emailManager--D5G3ChB.esm.js → emailManager-DZAmAA6M.esm.js} +43 -3
  40. package/dist/{events-Dvvriq9l.esm.js → events-CqFVBE7N.esm.js} +83 -41
  41. package/dist/events.d.ts +20 -16
  42. package/dist/events.esm.js +1 -1
  43. package/dist/extensibility.d.ts +7 -7
  44. package/dist/extensibility.esm.js +17 -17
  45. package/dist/face-match.esm.js +1 -1
  46. package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-C6Cugf_Z.esm.js} +3 -7
  47. package/dist/field-comparison.esm.js +2 -2
  48. package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-Dcw-NMWo.esm.js} +1 -1
  49. package/dist/fiscal-qr.esm.js +1 -1
  50. package/dist/flow.d.ts +2 -2
  51. package/dist/flow.esm.js +4 -4
  52. package/dist/{flowServices-Dz3oouEJ.esm.js → flowServices-DjNSRHb0.esm.js} +1 -1
  53. package/dist/geolocation.d.ts +1 -0
  54. package/dist/geolocation.esm.js +30 -2
  55. package/dist/government-validation.esm.js +36 -2
  56. package/dist/home.d.ts +10 -10
  57. package/dist/home.esm.js +2 -2
  58. package/dist/id-ocr.d.ts +52 -52
  59. package/dist/id-ocr.esm.js +2 -2
  60. package/dist/id-verification.d.ts +25 -25
  61. package/dist/id-verification.esm.js +1 -1
  62. package/dist/id.esm.js +5 -5
  63. package/dist/{idCaptureManager-Dnd7avjb.esm.js → idCaptureManager-CTxEsHk6.esm.js} +8 -3
  64. package/dist/{idCaptureStateMachine-BymZWyzp.esm.js → idCaptureStateMachine-C909OCfF.esm.js} +138 -65
  65. package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-CyMxAWAD.esm.js} +1 -1
  66. package/dist/identity-reuse.d.ts +1 -1
  67. package/dist/identity-reuse.esm.js +2 -2
  68. package/dist/{identityReuseManager-DwLtVzUn.d.ts → identityReuseManager-CCbd9rQ6.d.ts} +34 -34
  69. package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-D_lHhELK.esm.js} +1 -1
  70. package/dist/{index-Vto9CgAR.d.ts → index-BHyqaXBC.d.ts} +168 -168
  71. package/dist/index.esm.js +3 -3
  72. package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-D65AJm3b.esm.js} +1 -1
  73. package/dist/mandatory-consent.d.ts +1 -1
  74. package/dist/mandatory-consent.esm.js +2 -2
  75. package/dist/{mandatoryConsentManager-Cptkf2gO.d.ts → mandatoryConsentManager-C1vQknOC.d.ts} +47 -47
  76. package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-Cm12uk83.esm.js} +1 -1
  77. package/dist/phone.d.ts +1 -1
  78. package/dist/phone.esm.js +2 -2
  79. package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BmdGkGC3.d.ts} +1 -0
  80. package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-N9f10gYZ.esm.js} +44 -3
  81. package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-CDWeO6k7.esm.js} +1 -1
  82. package/dist/qe-signature.d.ts +1 -1
  83. package/dist/qe-signature.esm.js +3 -3
  84. package/dist/redirect-to-mobile.esm.js +2 -2
  85. package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-DdhezJQZ.esm.js} +1 -1
  86. package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-6pSd76go.esm.js} +1 -1
  87. package/dist/selfie.esm.js +4 -4
  88. package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-CvP5itLQ.esm.js} +2 -2
  89. package/dist/session.esm.js +2 -2
  90. package/dist/{sessionInitializer-Bwk3EweR.esm.js → sessionInitializer-DX2Nj28R.esm.js} +2 -2
  91. package/dist/{setup-BE0cu5ra.esm.js → setup-B_XVGDlL.esm.js} +2 -2
  92. package/dist/signature.d.ts +1 -0
  93. package/dist/signature.esm.js +45 -3
  94. package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-CzYIzrj9.esm.js} +18 -36
  95. package/dist/trust-graph.d.ts +2 -2
  96. package/dist/trust-graph.esm.js +1 -1
  97. package/dist/wasm.esm.js +3 -3
  98. package/dist/watchlist-for-business.esm.js +25 -3
  99. package/dist/watchlist.esm.js +23 -2
  100. package/dist/workflow.d.ts +135 -135
  101. package/dist/workflow.esm.js +12 -12
  102. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
1
+ import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-CqFVBE7N.esm.js";
2
2
  import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
3
3
  import { t as curpValidationMachine } from "./curpValidationStateMachine-B7V_qp66.esm.js";
4
4
 
@@ -10,6 +10,52 @@ function createCurpValidationActor(options) {
10
10
  //#endregion
11
11
  //#region src/modules/curp-validation/curpValidationManager.ts
12
12
  const hasNoErrors = (errors) => Object.keys(errors ?? {}).length === 0;
13
+ /**
14
+ * Maps a CURP-validation state-machine snapshot to the exact Figma "📊 Tracked
15
+ * Events" screen name. Returned strings are the Figma-verbatim absolute
16
+ * analytics path (module prefix included), emitted as-is on `event.screen`
17
+ * by `createManagerInstrumentation`'s `getEventScreenName` path. See
18
+ * `docs/patterns/INSTRUMENTATION.md`.
19
+ *
20
+ * Source of truth: CURP Figma file → Tracked Events canvas
21
+ * (`https://www.figma.com/design/YFYCUUSIxLV6I8jnwWgWDW/CURP---In-Prod?node-id=2786-8314`).
22
+ * The Figma sections name the analytics family as `CURP.EnterCURP.*` (verify
23
+ * path) and `CURP.Gene.*` (generate path), with `CURP` as the module token.
24
+ *
25
+ * Figma screens that have no dedicated state-machine counterpart yet
26
+ * (intentionally not mapped here — they collapse into the section's primary
27
+ * screen until the SM surfaces them):
28
+ *
29
+ * - `CURP.EnterCURP.filled` — UI sub-state of `enterCurp.inputting` (input
30
+ * has a valid value but submit hasn't been pressed yet).
31
+ * - `CURP.EnterCURP.error` — UI inline validation error on `enterCurp`.
32
+ * - `CURP.Gene.dropdwon` (sic — Figma typo for "dropdown") and
33
+ * `CURP.Gene.filled` — UI sub-states of `generateCurp.inputting`.
34
+ *
35
+ * `finished` is mapped to `CURP.EnterCURP.Verified` to keep the user on the
36
+ * last visible Figma success screen (the happy-path destination), preventing
37
+ * the adapter from falling back to the generic `<module>.finished` default.
38
+ * `closed` is intentionally left unmapped (terminal user-dismissed state —
39
+ * handled by `moduleClosed`).
40
+ */
41
+ function getCurpValidationScreenName(snapshot) {
42
+ const stateName = topLevelStateName(snapshot.value);
43
+ if (stateName === void 0) return void 0;
44
+ switch (stateName) {
45
+ case "idle":
46
+ case "enterCurp": return "CURP.EnterCURP.default";
47
+ case "loading": return "CURP.EnterCURP.processing";
48
+ case "verifying": return "CURP.EnterCURP.verifying";
49
+ case "success":
50
+ case "finished": return "CURP.EnterCURP.Verified";
51
+ case "failure": return "CURP.EnterCURP.notVerify";
52
+ case "generateCurp": return "CURP.Gene.default";
53
+ case "generating": return "CURP.Gene.generating";
54
+ case "confirmCurp": return "CURP.Gene.confirm";
55
+ case "generateError": return "CURP.Gene.error";
56
+ default: return;
57
+ }
58
+ }
13
59
  function mapState(snapshot) {
14
60
  const typedSnapshot = snapshot;
15
61
  const { context } = typedSnapshot;
@@ -101,7 +147,7 @@ function createCurpValidationManager(options) {
101
147
  actor: createCurpValidationActor(options),
102
148
  mapState,
103
149
  createApi,
104
- instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation)
150
+ instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation, { getEventScreenName: getCurpValidationScreenName })
105
151
  });
106
152
  }
107
153
  /**
@@ -114,7 +160,7 @@ function createCurpValidationManagerFromActor(actor) {
114
160
  actor,
115
161
  mapState,
116
162
  createApi,
117
- instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation)
163
+ instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation, { getEventScreenName: getCurpValidationScreenName })
118
164
  });
119
165
  }
120
166
 
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-CESGtpbH.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
2
+ import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-CqFVBE7N.esm.js";
3
3
  import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
4
4
  import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
5
  import { t as isoDateToMs } from "./dateUtils-AksLQmgV.esm.js";
@@ -1,5 +1,5 @@
1
1
  import "./api-CESGtpbH.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
2
+ import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-CqFVBE7N.esm.js";
3
3
  import "./endpoints-BeTK0Mlt.esm.js";
4
4
  import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
5
5
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-HmFybXLX.esm.js";
@@ -11,6 +11,26 @@ function createCustomWatchlistActor() {
11
11
 
12
12
  //#endregion
13
13
  //#region src/modules/custom-watchlist/customWatchlistManager.ts
14
+ /**
15
+ * Maps a Custom Watchlist state-machine snapshot to the exact Figma
16
+ * "📊 Tracked Events" screen name. Source: Watchlist | Custom Watchlist
17
+ * Figma file (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
18
+ * Family is `watchlist.*`, shared with the global watchlist manager — both
19
+ * keep their own module token (`watchlist` vs `customWatchlist`) per the
20
+ * AdSign/QSign precedent.
21
+ *
22
+ * `idle` and `finished` are intentionally unmapped — the Figma canvas does
23
+ * not define screens for them; `finished` collapses into `moduleClosed`.
24
+ */
25
+ function getCustomWatchlistScreenName(snapshot) {
26
+ const stateName = topLevelStateName(snapshot.value);
27
+ if (stateName === void 0) return void 0;
28
+ switch (stateName) {
29
+ case "processing": return "watchlist.processing";
30
+ case "success": return "watchlist.success";
31
+ default: return;
32
+ }
33
+ }
14
34
  function mapState(snapshot) {
15
35
  const typedSnapshot = snapshot;
16
36
  if (typedSnapshot.matches("processing")) return { status: "processing" };
@@ -41,7 +61,7 @@ function createCustomWatchlistManager() {
41
61
  actor: createCustomWatchlistActor(),
42
62
  mapState,
43
63
  createApi,
44
- instrumentation: createManagerInstrumentation(eventModuleNames.customWatchList)
64
+ instrumentation: createManagerInstrumentation(eventModuleNames.customWatchList, { getEventScreenName: getCustomWatchlistScreenName })
45
65
  });
46
66
  }
47
67