@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.
- package/dist/{ae-signature-CwR8T0KW.esm.js → ae-signature-DxX99lOP.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +2 -2
- package/dist/antifraud.esm.js +1 -1
- package/dist/{antifraudManager-Bvq3dpwH.esm.js → antifraudManager-DI9S7XTK.esm.js} +1 -1
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +1 -1
- package/dist/{consentManager-3WFz6a0Z.esm.js → consentManager-BIoVcRI-.esm.js} +1 -1
- package/dist/{consentManager-wLdn7gsI.d.ts → consentManager-dB4AdXT1.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-pOLci9EI.d.ts → cpfOcrManager-BoKvGSo5.d.ts} +20 -20
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{curpValidationManager-CH28Zbjv.esm.js → curpValidationManager-Bzxw5FVS.esm.js} +1 -1
- package/dist/custom-fields.d.ts +1 -0
- package/dist/custom-fields.esm.js +44 -2
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/document-capture.d.ts +170 -170
- package/dist/document-capture.esm.js +1 -1
- package/dist/document-upload.d.ts +40 -40
- package/dist/dynamic-forms.esm.js +1 -1
- package/dist/ekyb.esm.js +4 -4
- package/dist/{ekybStateMachine-Dw-kjiR1.esm.js → ekybStateMachine-BStKk0D1.esm.js} +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-5mA3RQe1.esm.js → electronicSignatureManager-D2WzDJUK.esm.js} +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-DnbwHGVQ.esm.js → emailManager-BbI08-We.esm.js} +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +8 -8
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-DPlNhc3d.esm.js → flowServices-DPPO-zkq.esm.js} +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-CkzlE2K4.esm.js → idCaptureManager-DWRE6Jd4.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-CRbzwwNv.esm.js → idCaptureStateMachine-BIz8XI5L.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BE3BEm39.d.ts → identityReuseManager-BqsBPObh.d.ts} +31 -31
- package/dist/{index-BwOrSoTl.d.ts → index-DeuHzDNj.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BHJ_U1Wf.d.ts → mandatoryConsentManager--05U1ab3.d.ts} +47 -47
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-DDIZpPIO.esm.js → phoneManager-C0NWX3dt.esm.js} +1 -1
- package/dist/{qe-signature-BeMdGlrP.esm.js → qe-signature-D10dlZ0x.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-A1OBPbFe.esm.js → sessionInitializer-CnF49tUG.esm.js} +1 -1
- package/dist/{setup-BlaenrhA.esm.js → setup-BtMy_8iH.esm.js} +1 -1
- package/dist/signature.esm.js +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +88 -88
- package/dist/workflow.esm.js +7 -7
- 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
|
-
* "
|
|
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
|