@incodetech/core 0.0.0-dev-20260813-ad5ea9e1 → 0.0.0-dev-20260813-2991a679
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/{BrowserDiagnosticsCryptoProvider-CNisE_Zn.esm.js → BrowserDiagnosticsCryptoProvider-DmU3XcUT.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DlT6yqH7.esm.js → apiError-C9ewfTXC.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BQ4rf5cd.esm.js → authenticationManager-SxqzvmHf.esm.js} +2 -2
- package/dist/{authenticationStateMachine-pgQiyE-Q.esm.js → authenticationStateMachine-BSia2svd.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/customFieldsManager-6mtAzlY2.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/{deepsightLoader-DhTeVa0Y.esm.js → deepsightLoader-CxhndUYz.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-BykkLCQD.d.ts → documentCaptureManager-B3t0ydtg.d.ts} +1 -1
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-XCS1M8YD.esm.js → dynamicFormsManager-BmQJxHYZ.esm.js} +1 -1
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-DhveFHPS.d.ts} +1 -1
- package/dist/{dynamicFormsStateMachine-DPrVti5t.esm.js → dynamicFormsStateMachine-BgAfJJQH.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DDY0Dv48.esm.js → ekybManager-CUXrRyZ2.esm.js} +1 -1
- package/dist/{ekybStateMachine-DPoE6ZWY.esm.js → ekybStateMachine-DH3uM8DO.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BF4fB4Ja.esm.js → electronicSignatureManager-BV9xT0cc.esm.js} +1 -1
- package/dist/extensibility.d.ts +7 -5
- package/dist/extensibility.esm.js +12 -10
- package/dist/{faceCaptureManagerFactory-z9XGOFC1.esm.js → faceCaptureManagerFactory-C8oK6tdq.esm.js} +1 -1
- package/dist/{faceCaptureSetup-h9c2vAKc.esm.js → faceCaptureSetup-C9-Fzm8d.esm.js} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CgDm6jHE.esm.js → flowCompletionService-B3suP9s_.esm.js} +1 -1
- package/dist/{flowServices-bFtIDlJ6.esm.js → flowServices-j7UZkYFu.esm.js} +3 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Cd2K6jyW.esm.js → geolocationManager-D4AIjfeN.esm.js} +1 -1
- package/dist/{geolocationStateMachine-bwz1ij99.esm.js → geolocationStateMachine-BeEwZnQx.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +2 -119
- package/dist/governmentValidationManager-DUzWUMjT.d.ts +96 -0
- package/dist/governmentValidationManager-DeF0Wcf5.esm.js +123 -0
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-DQSHRvTm.esm.js → idCaptureManager-CWmt6dp7.esm.js} +2 -2
- package/dist/{idCaptureServices-mELMLbTy.esm.js → idCaptureServices-wlaNQ3ib.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-CfPaYLOP.esm.js → idCaptureStateMachine-C6711mJz.esm.js} +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BbfpILqv.d.ts → mandatoryConsentManager-CVxw-noP.d.ts} +4 -4
- package/dist/{onDeviceFaceResults-COsSZ7zf.esm.js → onDeviceFaceResults-wU4uSbN-.esm.js} +3 -3
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-k20vRkRy.esm.js → recordingService-CyT_8BPw.esm.js} +1 -1
- package/dist/{runChildModule-pfy5gQAk.esm.js → runChildModule-Cy8-2m9V.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DmB7C0-a.esm.js → selfieManager-BcCcnW3q.esm.js} +2 -2
- package/dist/{selfieStateMachine-Dle0Z1Wf.esm.js → selfieStateMachine-DOEFt4Bo.esm.js} +2 -2
- package/dist/{session-D8x2baio.esm.js → session-qR0DAVjz.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CbssHeS5.esm.js → sessionInitializer-DAr2DSlY.esm.js} +2 -2
- package/dist/{setup-DJmnbb1a.esm.js → setup-GQkY_66u.esm.js} +4 -4
- package/dist/trueSight-XzLKY-t_.esm.js +1 -0
- package/dist/{trueSightService-CWCUUzQD.esm.js → trueSightService-Bf7-wYag.esm.js} +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-B91eHP6E.esm.js → videoSelfieCameraWarmer-CVFHbQua.esm.js} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -1
- package/dist/trueSight-Dx71WyQJ.esm.js +0 -1
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
3
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
+
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
8
|
+
//#region src/modules/custom-fields/customFieldsServices.ts
|
|
9
|
+
async function submitCustomFields(params, signal) {
|
|
10
|
+
const res = await api.post(endpoints.addCustomFields, params.fields, { signal });
|
|
11
|
+
if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
|
|
12
|
+
return res.data;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/modules/custom-fields/customFieldsStateMachine.ts
|
|
16
|
+
const REQUIRED_FIELD_ERROR = "dynamicForms.fieldRequired";
|
|
17
|
+
function transformFields(fields, customFields) {
|
|
18
|
+
const result = {};
|
|
19
|
+
for (const [key, value] of Object.entries(fields)) if (customFields.find((f) => f.name === key)?.type === "DATE" && typeof value === "string" && value !== "") result[key] = isoDateToMs(value);
|
|
20
|
+
else result[key] = value;
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
function isFormComplete(fields, customFields) {
|
|
24
|
+
return customFields.every((field) => {
|
|
25
|
+
if (field.type === "BOOLEAN") return true;
|
|
26
|
+
const value = fields[field.name];
|
|
27
|
+
return value !== void 0 && value !== "";
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function validateRequiredFields(fields, customFields) {
|
|
31
|
+
const errors = {};
|
|
32
|
+
for (const field of customFields) {
|
|
33
|
+
if (field.type === "BOOLEAN") continue;
|
|
34
|
+
const value = fields[field.name];
|
|
35
|
+
if (value === void 0 || value === "") errors[field.name] = REQUIRED_FIELD_ERROR;
|
|
36
|
+
}
|
|
37
|
+
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
38
|
+
}
|
|
39
|
+
const customFieldsMachine = setup({
|
|
40
|
+
types: {
|
|
41
|
+
context: {},
|
|
42
|
+
events: {},
|
|
43
|
+
input: {}
|
|
44
|
+
},
|
|
45
|
+
actors: { submitFields: fromPromise(async ({ input, signal }) => {
|
|
46
|
+
return submitCustomFields({ fields: transformFields(input.fields, input.customFields) }, signal);
|
|
47
|
+
}) },
|
|
48
|
+
actions: {
|
|
49
|
+
setField: assign(({ context, event }) => {
|
|
50
|
+
const e = event;
|
|
51
|
+
const validationErrors = { ...context.validationErrors };
|
|
52
|
+
delete validationErrors[e.name];
|
|
53
|
+
return {
|
|
54
|
+
fields: {
|
|
55
|
+
...context.fields,
|
|
56
|
+
[e.name]: e.value
|
|
57
|
+
},
|
|
58
|
+
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0
|
|
59
|
+
};
|
|
60
|
+
}),
|
|
61
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: validateRequiredFields(context.fields, context.config.customFields) })),
|
|
62
|
+
markSuccess: assign({ result: "success" }),
|
|
63
|
+
markFailed: assign({ result: "failed" })
|
|
64
|
+
},
|
|
65
|
+
guards: {
|
|
66
|
+
apiSucceeded: ({ event }) => event.output.success,
|
|
67
|
+
isFormComplete: ({ context }) => isFormComplete(context.fields, context.config.customFields)
|
|
68
|
+
}
|
|
69
|
+
}).createMachine({
|
|
70
|
+
id: "customFields",
|
|
71
|
+
initial: "idle",
|
|
72
|
+
context: ({ input }) => ({
|
|
73
|
+
config: input.config,
|
|
74
|
+
fields: {},
|
|
75
|
+
validationErrors: void 0,
|
|
76
|
+
result: null
|
|
77
|
+
}),
|
|
78
|
+
states: {
|
|
79
|
+
idle: { on: { LOAD: { target: "inputting" } } },
|
|
80
|
+
inputting: { on: {
|
|
81
|
+
FIELD_CHANGED: { actions: "setField" },
|
|
82
|
+
SUBMIT: [{
|
|
83
|
+
guard: "isFormComplete",
|
|
84
|
+
target: "submitting"
|
|
85
|
+
}, { actions: "setValidationErrors" }]
|
|
86
|
+
} },
|
|
87
|
+
submitting: { invoke: {
|
|
88
|
+
id: "submitFields",
|
|
89
|
+
src: "submitFields",
|
|
90
|
+
input: ({ context }) => ({
|
|
91
|
+
fields: context.fields,
|
|
92
|
+
customFields: context.config.customFields
|
|
93
|
+
}),
|
|
94
|
+
onDone: [{
|
|
95
|
+
target: "success",
|
|
96
|
+
guard: "apiSucceeded"
|
|
97
|
+
}, {
|
|
98
|
+
target: "finished",
|
|
99
|
+
actions: "markFailed"
|
|
100
|
+
}],
|
|
101
|
+
onError: {
|
|
102
|
+
target: "finished",
|
|
103
|
+
actions: "markFailed"
|
|
104
|
+
}
|
|
105
|
+
} },
|
|
106
|
+
success: { after: { 3e3: {
|
|
107
|
+
target: "finished",
|
|
108
|
+
actions: "markSuccess"
|
|
109
|
+
} } },
|
|
110
|
+
finished: { type: "final" }
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/modules/custom-fields/customFieldsActor.ts
|
|
115
|
+
function createCustomFieldsActor(options) {
|
|
116
|
+
return createActor(customFieldsMachine, { input: { config: options.config } }).start();
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/modules/custom-fields/customFieldsManager.ts
|
|
120
|
+
/**
|
|
121
|
+
* Maps a custom-fields state-machine snapshot to the exact Figma "Tracked
|
|
122
|
+
* Events" screen name. Returned strings are the Figma-verbatim absolute
|
|
123
|
+
* analytics path emitted as-is on `event.screen` by
|
|
124
|
+
* `createManagerInstrumentation`'s `getEventScreenName` path. See
|
|
125
|
+
* `docs/patterns/INSTRUMENTATION.md`.
|
|
126
|
+
*
|
|
127
|
+
* Source of truth: Custom Fields Figma file → Tracked Events canvas
|
|
128
|
+
* (`https://www.figma.com/design/Fb4Jp6kal8clAD05Kh6l4e/Custom-fields---Latest-Design?node-id=2026-30075`).
|
|
129
|
+
* The canvas mixes two casings — sections name the input surfaces
|
|
130
|
+
* `Customfield.{empty,filled}` (capital `C`) and the post-input surfaces
|
|
131
|
+
* `customfield.{processing,complete}` (lowercase `c`). Both spellings are
|
|
132
|
+
* preserved verbatim as Figma is the source of truth.
|
|
133
|
+
*
|
|
134
|
+
* State → screen mapping rationale:
|
|
135
|
+
*
|
|
136
|
+
* - `idle`/`inputting` collapse to `Customfield.empty` — the SM stays in
|
|
137
|
+
* `inputting` throughout typing (field-level `FIELD_CHANGED` events are
|
|
138
|
+
* context-only and don't fire a new `screenOpened`). The Figma
|
|
139
|
+
* `Customfield.filled` surface is therefore a UI sub-state of `inputting`,
|
|
140
|
+
* not a discrete SM state, and collapses onto the section's primary
|
|
141
|
+
* `Customfield.empty` screen.
|
|
142
|
+
* - `submitting` → `customfield.processing` — submit in-flight.
|
|
143
|
+
* - `success` → `customfield.complete` — happy-path success surface (auto-
|
|
144
|
+
* advances to `finished` after 3 s).
|
|
145
|
+
* - `finished` is intentionally unmapped: it is dual-outcome (success or
|
|
146
|
+
* failed — failures route here with `result: 'failed'` since the machine
|
|
147
|
+
* has no `error` state) and Figma defines no failure screen. Mapping
|
|
148
|
+
* `finished` onto `customfield.complete` would mis-report failures, so the
|
|
149
|
+
* adapter falls back to the generic `<module>.finished` default.
|
|
150
|
+
*/
|
|
151
|
+
function getCustomFieldsScreenName(snapshot) {
|
|
152
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
153
|
+
if (stateName === void 0) return void 0;
|
|
154
|
+
switch (stateName) {
|
|
155
|
+
case "idle":
|
|
156
|
+
case "inputting": return "Customfield.empty";
|
|
157
|
+
case "submitting": return "customfield.processing";
|
|
158
|
+
case "success": return "customfield.complete";
|
|
159
|
+
default: return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function toDisplayLabel(field) {
|
|
163
|
+
if (field.alias) return field.alias;
|
|
164
|
+
return field.name.replace(/([A-Z])/g, " $1").replace(/^./, (s) => s.toUpperCase());
|
|
165
|
+
}
|
|
166
|
+
function mapState(snapshot) {
|
|
167
|
+
const typedSnapshot = snapshot;
|
|
168
|
+
const { context } = typedSnapshot;
|
|
169
|
+
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
170
|
+
if (typedSnapshot.matches("inputting")) return {
|
|
171
|
+
status: "inputting",
|
|
172
|
+
title: context.config.title,
|
|
173
|
+
customFields: context.config.customFields.map((f) => ({
|
|
174
|
+
...f,
|
|
175
|
+
label: toDisplayLabel(f)
|
|
176
|
+
})),
|
|
177
|
+
validationErrors: context.validationErrors,
|
|
178
|
+
canSubmit: Object.keys(context.validationErrors ?? {}).length === 0
|
|
179
|
+
};
|
|
180
|
+
if (typedSnapshot.matches("submitting")) return {
|
|
181
|
+
status: "submitting",
|
|
182
|
+
title: context.config.title
|
|
183
|
+
};
|
|
184
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
185
|
+
return {
|
|
186
|
+
status: "finished",
|
|
187
|
+
result: typedSnapshot.context.result
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function createApi({ actor }) {
|
|
191
|
+
return {
|
|
192
|
+
/**
|
|
193
|
+
* Initializes the custom fields flow.
|
|
194
|
+
* Transitions from 'idle' to 'inputting'.
|
|
195
|
+
* Must be called before any other method.
|
|
196
|
+
*/
|
|
197
|
+
load() {
|
|
198
|
+
actor.send({ type: "LOAD" });
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* Updates the value of a single field.
|
|
202
|
+
* Should be called when state is 'inputting'.
|
|
203
|
+
*
|
|
204
|
+
* @param name - The field name (matches CustomField.name)
|
|
205
|
+
* @param value - The field value (string, number, or boolean)
|
|
206
|
+
*/
|
|
207
|
+
setField(name, value) {
|
|
208
|
+
actor.send({
|
|
209
|
+
type: "FIELD_CHANGED",
|
|
210
|
+
name,
|
|
211
|
+
value
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Submits all custom field values to the backend.
|
|
216
|
+
* Transitions to 'submitting', then 'finished' regardless of outcome.
|
|
217
|
+
*/
|
|
218
|
+
submit() {
|
|
219
|
+
actor.send({ type: "SUBMIT" });
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Creates a custom fields manager for headless or UI-driven usage.
|
|
225
|
+
*
|
|
226
|
+
* @param options - Configuration options
|
|
227
|
+
* @param options.config - Custom fields configuration (title + field definitions)
|
|
228
|
+
*
|
|
229
|
+
* @returns Custom fields manager with state, API methods, and subscription
|
|
230
|
+
*
|
|
231
|
+
* @example Headless usage
|
|
232
|
+
* ```typescript
|
|
233
|
+
* const manager = createCustomFieldsManager({
|
|
234
|
+
* config: {
|
|
235
|
+
* title: 'Additional Information',
|
|
236
|
+
* customFields: [{ name: 'company', alias: 'Company', type: 'STRING' }],
|
|
237
|
+
* },
|
|
238
|
+
* });
|
|
239
|
+
*
|
|
240
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
241
|
+
* manager.load();
|
|
242
|
+
* manager.setField('company', 'Incode');
|
|
243
|
+
* manager.submit();
|
|
244
|
+
* manager.stop();
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
function createCustomFieldsManager(options) {
|
|
248
|
+
return createManager({
|
|
249
|
+
actor: createCustomFieldsActor(options),
|
|
250
|
+
mapState,
|
|
251
|
+
createApi,
|
|
252
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.customFields, { getEventScreenName: getCustomFieldsScreenName })
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function createCustomFieldsManagerFromActor(actor) {
|
|
256
|
+
return createManager({
|
|
257
|
+
actor,
|
|
258
|
+
mapState,
|
|
259
|
+
createApi,
|
|
260
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.customFields, { getEventScreenName: getCustomFieldsScreenName })
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
export { createCustomFieldsManagerFromActor as n, customFieldsMachine as r, createCustomFieldsManager as t };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
//#region src/modules/custom-fields/types.d.ts
|
|
5
|
+
type CustomFieldType = 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING' | 'DATE';
|
|
6
|
+
type CustomField = {
|
|
7
|
+
name: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
type: CustomFieldType;
|
|
10
|
+
};
|
|
11
|
+
type CustomFieldsConfig = {
|
|
12
|
+
title: string;
|
|
13
|
+
customFields: CustomField[];
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/modules/custom-fields/customFieldsStateMachine.d.ts
|
|
17
|
+
type CustomFieldsResult = 'success' | 'failed';
|
|
18
|
+
type CustomFieldsValidationErrors = Record<string, string>;
|
|
19
|
+
declare const customFieldsMachine: any;
|
|
20
|
+
type CustomFieldsMachine = typeof customFieldsMachine;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/modules/custom-fields/customFieldsActor.d.ts
|
|
23
|
+
type CreateCustomFieldsActorOptions = {
|
|
24
|
+
config: CustomFieldsConfig;
|
|
25
|
+
};
|
|
26
|
+
type CustomFieldsActor = ActorRefFrom<CustomFieldsMachine>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/modules/custom-fields/customFieldsManager.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* A `CustomField` enriched with a computed `label` for display.
|
|
31
|
+
* Label is derived from `alias` when present, otherwise auto-formatted from `name`.
|
|
32
|
+
*/
|
|
33
|
+
type MappedCustomField = CustomField & {
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
/** Custom fields manager is in initial state, waiting for `load()` to be called */
|
|
37
|
+
type CustomFieldsIdleState = {
|
|
38
|
+
status: 'idle';
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Ready for field input — use `setField()` and `submit()`
|
|
42
|
+
* @property title - Form title from configuration
|
|
43
|
+
* @property customFields - Field definitions with computed display labels
|
|
44
|
+
* @property validationErrors - Required-field errors surfaced after a failed submit attempt
|
|
45
|
+
* @property canSubmit - Optimistically true until validation errors are displayed
|
|
46
|
+
*/
|
|
47
|
+
type CustomFieldsInputtingState = {
|
|
48
|
+
status: 'inputting';
|
|
49
|
+
title: string;
|
|
50
|
+
customFields: MappedCustomField[];
|
|
51
|
+
validationErrors?: CustomFieldsValidationErrors;
|
|
52
|
+
canSubmit: boolean;
|
|
53
|
+
};
|
|
54
|
+
/** Fields are being submitted to the backend */
|
|
55
|
+
type CustomFieldsSubmittingState = {
|
|
56
|
+
status: 'submitting';
|
|
57
|
+
title: string;
|
|
58
|
+
};
|
|
59
|
+
/** API call succeeded — success page is visible for ~3 s before finishing */
|
|
60
|
+
type CustomFieldsSuccessState = {
|
|
61
|
+
status: 'success';
|
|
62
|
+
};
|
|
63
|
+
/** Custom fields flow complete. `result` indicates whether the API call succeeded or failed. */
|
|
64
|
+
type CustomFieldsFinishedState = {
|
|
65
|
+
status: 'finished';
|
|
66
|
+
result: CustomFieldsResult | null;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Union of all possible custom fields manager states.
|
|
70
|
+
*/
|
|
71
|
+
type CustomFieldsState = CustomFieldsIdleState | CustomFieldsInputtingState | CustomFieldsSubmittingState | CustomFieldsSuccessState | CustomFieldsFinishedState;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a custom fields manager for headless or UI-driven usage.
|
|
74
|
+
*
|
|
75
|
+
* @param options - Configuration options
|
|
76
|
+
* @param options.config - Custom fields configuration (title + field definitions)
|
|
77
|
+
*
|
|
78
|
+
* @returns Custom fields manager with state, API methods, and subscription
|
|
79
|
+
*
|
|
80
|
+
* @example Headless usage
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const manager = createCustomFieldsManager({
|
|
83
|
+
* config: {
|
|
84
|
+
* title: 'Additional Information',
|
|
85
|
+
* customFields: [{ name: 'company', alias: 'Company', type: 'STRING' }],
|
|
86
|
+
* },
|
|
87
|
+
* });
|
|
88
|
+
*
|
|
89
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
90
|
+
* manager.load();
|
|
91
|
+
* manager.setField('company', 'Incode');
|
|
92
|
+
* manager.submit();
|
|
93
|
+
* manager.stop();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
declare function createCustomFieldsManager(options: CreateCustomFieldsActorOptions): Manager<CustomFieldsState> & {
|
|
97
|
+
/**
|
|
98
|
+
* Initializes the custom fields flow.
|
|
99
|
+
* Transitions from 'idle' to 'inputting'.
|
|
100
|
+
* Must be called before any other method.
|
|
101
|
+
*/
|
|
102
|
+
load(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Updates the value of a single field.
|
|
105
|
+
* Should be called when state is 'inputting'.
|
|
106
|
+
*
|
|
107
|
+
* @param name - The field name (matches CustomField.name)
|
|
108
|
+
* @param value - The field value (string, number, or boolean)
|
|
109
|
+
*/
|
|
110
|
+
setField(name: string, value: string | number | boolean): void;
|
|
111
|
+
/**
|
|
112
|
+
* Submits all custom field values to the backend.
|
|
113
|
+
* Transitions to 'submitting', then 'finished' regardless of outcome.
|
|
114
|
+
*/
|
|
115
|
+
submit(): void;
|
|
116
|
+
};
|
|
117
|
+
declare function createCustomFieldsManagerFromActor(actor: CustomFieldsActor): Manager<CustomFieldsState> & {
|
|
118
|
+
/**
|
|
119
|
+
* Initializes the custom fields flow.
|
|
120
|
+
* Transitions from 'idle' to 'inputting'.
|
|
121
|
+
* Must be called before any other method.
|
|
122
|
+
*/
|
|
123
|
+
load(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Updates the value of a single field.
|
|
126
|
+
* Should be called when state is 'inputting'.
|
|
127
|
+
*
|
|
128
|
+
* @param name - The field name (matches CustomField.name)
|
|
129
|
+
* @param value - The field value (string, number, or boolean)
|
|
130
|
+
*/
|
|
131
|
+
setField(name: string, value: string | number | boolean): void;
|
|
132
|
+
/**
|
|
133
|
+
* Submits all custom field values to the backend.
|
|
134
|
+
* Transitions to 'submitting', then 'finished' regardless of outcome.
|
|
135
|
+
*/
|
|
136
|
+
submit(): void;
|
|
137
|
+
};
|
|
138
|
+
/** Type representing a custom fields manager instance. */
|
|
139
|
+
type CustomFieldsManager = ReturnType<typeof createCustomFieldsManager>;
|
|
140
|
+
//#endregion
|
|
141
|
+
export { createCustomFieldsManagerFromActor as a, customFieldsMachine as c, CustomFieldsConfig as d, createCustomFieldsManager as i, CustomField as l, CustomFieldsState as n, CustomFieldsActor as o, MappedCustomField as r, CustomFieldsValidationErrors as s, CustomFieldsManager as t, CustomFieldType as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
4
|
-
import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
5
|
-
import "./trueSight-
|
|
3
|
+
import { l as trueSightLog } from "./trueSightService-Bf7-wYag.esm.js";
|
|
4
|
+
import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
5
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
8
8
|
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DelMqZLe.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B3t0ydtg.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -251,7 +251,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
251
251
|
type: "fileSizeOkForNonGallery";
|
|
252
252
|
params: unknown;
|
|
253
253
|
};
|
|
254
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "
|
|
254
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
255
255
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
256
256
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
257
257
|
readonly id: "documentCapture";
|
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-
|
|
2
|
-
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
2
|
+
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-DhveFHPS.js";
|
|
3
3
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BgAfJJQH.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-BmQJxHYZ.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BgAfJJQH.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
3
|
import "./Actor-iTq7YY48.js";
|
|
4
|
-
import { i as Screen, t as DynamicFormsConfig } from "./types-
|
|
4
|
+
import { i as Screen, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsFields.d.ts
|
|
6
6
|
/** Map of `questionId` → currently-displayed i18n error key. */
|
|
7
7
|
type DynamicFormsValidationErrors = Partial<Record<string, string>>;
|
package/dist/{dynamicFormsStateMachine-DPrVti5t.esm.js → dynamicFormsStateMachine-BgAfJJQH.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
-
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-j7UZkYFu.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-DH3uM8DO.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-CUXrRyZ2.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-DH3uM8DO.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
-
import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-
|
|
3
|
+
import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-j7UZkYFu.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DQyrvDQj.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-BV9xT0cc.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
6
6
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -11,11 +11,12 @@ import { n as BaseWasmProvider } from "./FaceDetectionProvider-Mh6q3EbA.js";
|
|
|
11
11
|
import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-Cyiwbg-r.js";
|
|
12
12
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DlAKn0rp.js";
|
|
13
13
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-D8DEugXP.js";
|
|
14
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
14
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
16
16
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-BxWhpCLA.js";
|
|
17
|
-
import { a as
|
|
18
|
-
import { a as
|
|
17
|
+
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
|
|
18
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-B3t0ydtg.js";
|
|
19
|
+
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-DhveFHPS.js";
|
|
19
20
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
20
21
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
21
22
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
@@ -25,11 +26,12 @@ import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t a
|
|
|
25
26
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
26
27
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
|
|
27
28
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
28
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
29
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CVxw-noP.js";
|
|
29
30
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
|
|
30
31
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
|
|
31
32
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
|
|
32
33
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
|
|
34
|
+
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, t as GovernmentValidationManager } from "./governmentValidationManager-DUzWUMjT.js";
|
|
33
35
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
34
36
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
35
37
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
@@ -159,4 +161,4 @@ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
|
159
161
|
//#region src/internal/fingerprint/fingerprintApi.d.ts
|
|
160
162
|
declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
|
|
161
163
|
//#endregion
|
|
162
|
-
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type ElectronicSignatureActor, type ElectronicSignatureFileDataHolder, type ElectronicSignatureManager, type ElectronicSignatureState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, type SignatureActor, type SignatureManager, type SignatureState, WasmUtilProvider, type WatchlistActor, type WatchlistManager, type WatchlistState, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
164
|
+
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type CustomFieldsActor, type CustomFieldsManager, type CustomFieldsState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type ElectronicSignatureActor, type ElectronicSignatureFileDataHolder, type ElectronicSignatureManager, type ElectronicSignatureState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type GovernmentValidationActor, type GovernmentValidationManager, type GovernmentValidationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, type SignatureActor, type SignatureManager, type SignatureState, WasmUtilProvider, type WatchlistActor, type WatchlistManager, type WatchlistState, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
|
-
import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-
|
|
3
|
+
import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BV9xT0cc.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-B8Plzf7a.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-C9-Fzm8d.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-SxqzvmHf.esm.js";
|
|
10
10
|
import { n as createConsentManagerFromActor } from "./consentManager-BApTlfA0.esm.js";
|
|
11
11
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-OmYvyung.esm.js";
|
|
12
12
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-UZxcrsrz.esm.js";
|
|
13
|
+
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-6mtAzlY2.esm.js";
|
|
13
14
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-CaXWUo_N.esm.js";
|
|
14
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
15
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
15
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BmQJxHYZ.esm.js";
|
|
16
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-CUXrRyZ2.esm.js";
|
|
16
17
|
import { n as createEkycManagerFromActor } from "./ekycManager-oTstTJuL.esm.js";
|
|
17
18
|
import { n as createEmailManagerFromActor } from "./emailManager-tE-YvNtS.esm.js";
|
|
18
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
19
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
19
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BcCcnW3q.esm.js";
|
|
20
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CWmt6dp7.esm.js";
|
|
20
21
|
import { n as createPhoneManagerFromActor } from "./phoneManager-Cpiai2IM.esm.js";
|
|
21
22
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-CjSMmbyq.esm.js";
|
|
22
23
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-D5vXknnJ.esm.js";
|
|
@@ -25,7 +26,8 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
25
26
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-CvJZhmBR.esm.js";
|
|
26
27
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-C0dfc7f6.esm.js";
|
|
27
28
|
import { n as createSignatureManagerFromActor } from "./signatureManager-DdPgcmou.esm.js";
|
|
28
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
29
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-D4AIjfeN.esm.js";
|
|
30
|
+
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-DeF0Wcf5.esm.js";
|
|
29
31
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CduNXhWd.esm.js";
|
|
30
32
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-BXp2WUT-.esm.js";
|
|
31
|
-
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
33
|
+
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/{faceCaptureManagerFactory-z9XGOFC1.esm.js → faceCaptureManagerFactory-C8oK6tdq.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-CxfNJVZW.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-C9-Fzm8d.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B7sMtZ8f.esm.js";
|