@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.
- package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-ai7OSLgB.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +3 -3
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CkV4u-LE.esm.js → antifraudManager-Bm_s1FGq.esm.js} +31 -3
- package/dist/authentication.esm.js +3 -3
- package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Bx6JOGrA.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-CcYtoZcH.esm.js} +27 -3
- package/dist/{consentManager-B-qo4-xH.d.ts → consentManager-xD5HBcPI.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/cpf-ocr.esm.js +2 -2
- package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-D_Jz3zTE.esm.js} +1 -1
- package/dist/{cpfOcrManager-b5eyxzi_.d.ts → cpfOcrManager-DbWOV3mR.d.ts} +17 -17
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-DIQbAvYR.d.ts} +1 -0
- package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-DnJc2FXu.esm.js} +49 -3
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +22 -2
- package/dist/document-capture.d.ts +170 -170
- package/dist/document-capture.esm.js +65 -2
- package/dist/document-upload.d.ts +40 -40
- package/dist/document-upload.esm.js +2 -2
- package/dist/dynamic-forms.esm.js +30 -3
- package/dist/ekyb.d.ts +1 -0
- package/dist/ekyb.esm.js +46 -5
- package/dist/{ekybStateMachine-B3RM9ruw.esm.js → ekybStateMachine-B9GEv84i.esm.js} +1 -1
- package/dist/ekyc.d.ts +1 -0
- package/dist/ekyc.esm.js +47 -2
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-NH8uW69s.esm.js} +98 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-CSgOY352.d.ts} +1 -0
- package/dist/{emailManager--D5G3ChB.esm.js → emailManager-DZAmAA6M.esm.js} +43 -3
- package/dist/{events-Dvvriq9l.esm.js → events-CqFVBE7N.esm.js} +83 -41
- package/dist/events.d.ts +20 -16
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +7 -7
- package/dist/extensibility.esm.js +17 -17
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-C6Cugf_Z.esm.js} +3 -7
- package/dist/field-comparison.esm.js +2 -2
- package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-Dcw-NMWo.esm.js} +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +4 -4
- package/dist/{flowServices-Dz3oouEJ.esm.js → flowServices-DjNSRHb0.esm.js} +1 -1
- package/dist/geolocation.d.ts +1 -0
- package/dist/geolocation.esm.js +30 -2
- package/dist/government-validation.esm.js +36 -2
- package/dist/home.d.ts +10 -10
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.d.ts +25 -25
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-Dnd7avjb.esm.js → idCaptureManager-CTxEsHk6.esm.js} +8 -3
- package/dist/{idCaptureStateMachine-BymZWyzp.esm.js → idCaptureStateMachine-C909OCfF.esm.js} +138 -65
- package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-CyMxAWAD.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DwLtVzUn.d.ts → identityReuseManager-CCbd9rQ6.d.ts} +34 -34
- package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-D_lHhELK.esm.js} +1 -1
- package/dist/{index-Vto9CgAR.d.ts → index-BHyqaXBC.d.ts} +168 -168
- package/dist/index.esm.js +3 -3
- package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-D65AJm3b.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cptkf2gO.d.ts → mandatoryConsentManager-C1vQknOC.d.ts} +47 -47
- package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-Cm12uk83.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BmdGkGC3.d.ts} +1 -0
- package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-N9f10gYZ.esm.js} +44 -3
- package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-CDWeO6k7.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-DdhezJQZ.esm.js} +1 -1
- package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-6pSd76go.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-CvP5itLQ.esm.js} +2 -2
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-Bwk3EweR.esm.js → sessionInitializer-DX2Nj28R.esm.js} +2 -2
- package/dist/{setup-BE0cu5ra.esm.js → setup-B_XVGDlL.esm.js} +2 -2
- package/dist/signature.d.ts +1 -0
- package/dist/signature.esm.js +45 -3
- package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-CzYIzrj9.esm.js} +18 -36
- package/dist/trust-graph.d.ts +2 -2
- package/dist/trust-graph.esm.js +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/watchlist-for-business.esm.js +25 -3
- package/dist/watchlist.esm.js +23 -2
- package/dist/workflow.d.ts +135 -135
- package/dist/workflow.esm.js +12 -12
- package/package.json +3 -3
|
@@ -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-
|
|
2
|
+
import { n as eventModuleNames, o as topLevelStateName, 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 { n as toIncodeApiError, t as IncodeApiError } from "./apiError-B-j-gyDx.esm.js";
|
|
@@ -381,6 +381,96 @@ function createElectronicSignatureActor(options) {
|
|
|
381
381
|
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region src/modules/electronic-signature/electronicSignatureManager.ts
|
|
384
|
+
/**
|
|
385
|
+
* Maps an Advanced Electronic Signature (AE) state-machine snapshot to the
|
|
386
|
+
* exact Figma "📊 Tracked Events" screen name from the AES canvas
|
|
387
|
+
* (`https://www.figma.com/design/XHmDxd98n66Rg5OyPJMP93/Signature--QES-AES-?node-id=6359-51995`).
|
|
388
|
+
* Family is `AdSign.*`. The mapper returns Figma-verbatim section names
|
|
389
|
+
* which the adapter emits as-is on `event.screen` (e.g.
|
|
390
|
+
* `AdSign.AcceptSign.default`, `AdSign.uploadDocument.default`). See
|
|
391
|
+
* `docs/patterns/INSTRUMENTATION.md`.
|
|
392
|
+
*
|
|
393
|
+
* Figma sub-states the state machine does not surface as discrete states and
|
|
394
|
+
* therefore not part of this mapping (they collapse into the section's
|
|
395
|
+
* primary screen until the SM surfaces them):
|
|
396
|
+
*
|
|
397
|
+
* - `AdSign.AcceptSign.selectedCheckox` — UI sub-state of `signing` (all
|
|
398
|
+
* consents checked). Context-driven via `context.consentChecks`.
|
|
399
|
+
* - `AdSign.AcceptSign.loadingsign` — visual loading variant of `signing`
|
|
400
|
+
* right after the user taps Sign; the SM transitions straight to
|
|
401
|
+
* `processing` so this surface collapses into `AdSign.AcceptSign.default`.
|
|
402
|
+
* - `AdSign.AcceptSign.viewdoc` — UI sub-state of `signing` while
|
|
403
|
+
* `context.viewingDocumentUrl` is set.
|
|
404
|
+
*
|
|
405
|
+
* `failed` is mapped to `AdSign.AcceptSign.error` — the host owns recovery
|
|
406
|
+
* for terminal failures, but the last visible analytics surface stays on the
|
|
407
|
+
* accept-and-sign error screen to keep dashboards consistent with `error`.
|
|
408
|
+
* `closed` is intentionally unmapped (terminal user-dismissed state —
|
|
409
|
+
* handled by `moduleClosed`).
|
|
410
|
+
*/
|
|
411
|
+
function getAdSignatureScreenName(snapshot) {
|
|
412
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
413
|
+
if (stateName === void 0) return void 0;
|
|
414
|
+
switch (stateName) {
|
|
415
|
+
case "idle":
|
|
416
|
+
case "uploading": return "AdSign.uploadDocument.default";
|
|
417
|
+
case "reviewing":
|
|
418
|
+
case "generatingUploadUrl":
|
|
419
|
+
case "uploadingFile": return "AdSign.reviewDoc.default";
|
|
420
|
+
case "fetchingDocs":
|
|
421
|
+
case "signing": return "AdSign.AcceptSign.default";
|
|
422
|
+
case "processing": return "AdSign.AcceptSign.processing";
|
|
423
|
+
case "success":
|
|
424
|
+
case "successDownload":
|
|
425
|
+
case "finished": return "AdSign.success";
|
|
426
|
+
case "error":
|
|
427
|
+
case "failed": return "AdSign.AcceptSign.error";
|
|
428
|
+
default: return;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Maps a Qualified Electronic Signature (QE) state-machine snapshot to the
|
|
433
|
+
* exact Figma screen name. Source canvas spans two pages of the QES file
|
|
434
|
+
* (`https://www.figma.com/design/XO9YGKlEsGUyag8CGbSUsi/Qualified-Signature---latest-design?node-id=6086-28669`).
|
|
435
|
+
* Family is `QSign.*`. The mapper returns Figma-verbatim section names
|
|
436
|
+
* which the adapter emits as-is on `event.screen` (e.g.
|
|
437
|
+
* `QSign.AcceptSign.default`, `QSign.review.default`). See
|
|
438
|
+
* `docs/patterns/INSTRUMENTATION.md`. Note QES uses `QSign.review.*` (vs
|
|
439
|
+
* AES's `AdSign.reviewDoc.*`) for the review surface.
|
|
440
|
+
*
|
|
441
|
+
* Figma sub-states the state machine does not surface as discrete states and
|
|
442
|
+
* therefore not part of this mapping:
|
|
443
|
+
*
|
|
444
|
+
* - `QSign.uploadDocument.select` — visual variant of `uploading` shown
|
|
445
|
+
* while a file is being picked. The SM stays in `uploading` until
|
|
446
|
+
* `SELECT_FILE` lands; this sub-state collapses into the default.
|
|
447
|
+
* - `QSign.AcceptSign.{selectedCheckox,loadingsign,viewdoc}` — same UI
|
|
448
|
+
* sub-states as AES (consent checked / signing in flight / viewing doc).
|
|
449
|
+
*
|
|
450
|
+
* `failed` is mapped to `QSign.AcceptSign.error` for the same reason as AES
|
|
451
|
+
* (host owns recovery, but the last visible surface stays on the error
|
|
452
|
+
* screen). `closed` is intentionally unmapped.
|
|
453
|
+
*/
|
|
454
|
+
function getQSignatureScreenName(snapshot) {
|
|
455
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
456
|
+
if (stateName === void 0) return void 0;
|
|
457
|
+
switch (stateName) {
|
|
458
|
+
case "idle":
|
|
459
|
+
case "uploading": return "QSign.uploadDocument.default";
|
|
460
|
+
case "reviewing":
|
|
461
|
+
case "generatingUploadUrl":
|
|
462
|
+
case "uploadingFile": return "QSign.review.default";
|
|
463
|
+
case "fetchingDocs":
|
|
464
|
+
case "signing": return "QSign.AcceptSign.default";
|
|
465
|
+
case "processing": return "QSign.AcceptSign.processing";
|
|
466
|
+
case "success":
|
|
467
|
+
case "successDownload":
|
|
468
|
+
case "finished": return "QSign.success";
|
|
469
|
+
case "error":
|
|
470
|
+
case "failed": return "QSign.AcceptSign.error";
|
|
471
|
+
default: return;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
384
474
|
function mapState(snapshot) {
|
|
385
475
|
const { context } = snapshot;
|
|
386
476
|
if (snapshot.matches("idle") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
|
|
@@ -478,17 +568,19 @@ function createApi({ actor, trackElementClicked, fileDataRef }) {
|
|
|
478
568
|
}
|
|
479
569
|
function createElectronicSignatureManager(options) {
|
|
480
570
|
const fileDataRef = { current: null };
|
|
571
|
+
const actor = createElectronicSignatureActor({
|
|
572
|
+
config: options.config,
|
|
573
|
+
getFileData: () => fileDataRef.current
|
|
574
|
+
});
|
|
575
|
+
const isQualified = options.config.variant === "qe";
|
|
481
576
|
return createManager({
|
|
482
|
-
actor
|
|
483
|
-
config: options.config,
|
|
484
|
-
getFileData: () => fileDataRef.current
|
|
485
|
-
}),
|
|
577
|
+
actor,
|
|
486
578
|
mapState,
|
|
487
579
|
createApi: (apiOptions) => createApi({
|
|
488
580
|
...apiOptions,
|
|
489
581
|
fileDataRef
|
|
490
582
|
}),
|
|
491
|
-
instrumentation: createManagerInstrumentation(
|
|
583
|
+
instrumentation: createManagerInstrumentation(isQualified ? eventModuleNames.qeSignature : eventModuleNames.aeSignature, { getEventScreenName: isQualified ? getQSignatureScreenName : getAdSignatureScreenName })
|
|
492
584
|
});
|
|
493
585
|
}
|
|
494
586
|
|
package/dist/email.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Manager-BHn8wH8K.js";
|
|
2
2
|
import "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-
|
|
3
|
+
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-CSgOY352.js";
|
|
4
4
|
import "./otp-DF5A0sFx.js";
|
|
5
5
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
2
2
|
import "./api-CESGtpbH.esm.js";
|
|
3
|
-
import "./events-
|
|
3
|
+
import "./events-CqFVBE7N.esm.js";
|
|
4
4
|
import "./endpoints-BeTK0Mlt.esm.js";
|
|
5
5
|
import "./xstate.esm-C9wncMQa.esm.js";
|
|
6
6
|
import { t as emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
|
|
7
7
|
import "./otp-CGMdUzBC.esm.js";
|
|
8
|
-
import { t as createEmailManager } from "./emailManager
|
|
8
|
+
import { t as createEmailManager } from "./emailManager-DZAmAA6M.esm.js";
|
|
9
9
|
|
|
10
10
|
export { createEmailManager, emailMachine };
|
|
@@ -66,6 +66,7 @@ type CreateEmailActorOptions = {
|
|
|
66
66
|
type EmailActor = ActorRefFrom<EmailMachine>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/modules/email/emailManager.d.ts
|
|
69
|
+
|
|
69
70
|
/** Email manager is in initial state, waiting for `load()` to be called */
|
|
70
71
|
type EmailIdleState = {
|
|
71
72
|
status: 'idle';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
1
|
+
import { n as eventModuleNames, 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 emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
|
|
4
4
|
import { t as OTP_CODE_LENGTH } from "./otp-CGMdUzBC.esm.js";
|
|
@@ -97,6 +97,46 @@ function createEmailActor(options) {
|
|
|
97
97
|
* }, 100);
|
|
98
98
|
* ```
|
|
99
99
|
*/
|
|
100
|
+
/**
|
|
101
|
+
* Maps an Email state-machine snapshot to the exact Figma "📊 Tracked Events"
|
|
102
|
+
* screen name. Returned strings are the absolute analytics screen (module
|
|
103
|
+
* prefix included) and are emitted verbatim by
|
|
104
|
+
* `createManagerInstrumentation`'s `getEventScreenName` short-circuit.
|
|
105
|
+
*
|
|
106
|
+
* Source of truth: Email Input Module Figma file → Tracked Events canvas
|
|
107
|
+
* (`https://www.figma.com/design/IovIhDAPjR7zxjC4NKZzfq/Email-Input-Module?node-id=3031-82920`).
|
|
108
|
+
*
|
|
109
|
+
* Figma screens that have no dedicated state-machine counterpart yet
|
|
110
|
+
* (intentionally not mapped here — they collapse into the section's primary
|
|
111
|
+
* screen until the SM surfaces them):
|
|
112
|
+
*
|
|
113
|
+
* - `email.verifyEmail.typing` / `email.verifyEmail.filled` — UI sub-states of `inputting`.
|
|
114
|
+
* - `email.verifyEmail.error` — UI surface of inline validation error on `inputting`.
|
|
115
|
+
* - `email.OTP.filled` — UI sub-state of `awaitingOtp`.
|
|
116
|
+
*
|
|
117
|
+
* Terminal SM `error` is mapped to `email.error.somethingWentWrong`, and
|
|
118
|
+
* `finished` is mapped to `email.success` so the adapter never falls back to
|
|
119
|
+
* the generic `<module>.finished` / `<module>.error` defaults.
|
|
120
|
+
*/
|
|
121
|
+
function getEmailScreenName(snapshot) {
|
|
122
|
+
const { value } = snapshot;
|
|
123
|
+
if (typeof value !== "string") return void 0;
|
|
124
|
+
switch (value) {
|
|
125
|
+
case "idle":
|
|
126
|
+
case "inputting":
|
|
127
|
+
case "validatingSubmit": return "email.verifyEmail.default";
|
|
128
|
+
case "loadingPrefill":
|
|
129
|
+
case "submitting": return "email.verifyEmail.loading";
|
|
130
|
+
case "sendingInitialOtp":
|
|
131
|
+
case "resendingOtp": return "email.OTP.loading";
|
|
132
|
+
case "awaitingOtp": return "email.OTP.typing";
|
|
133
|
+
case "verifyingOtp": return "email.OTP.processing";
|
|
134
|
+
case "otpError": return "email.OTP.error";
|
|
135
|
+
case "finished": return "email.success";
|
|
136
|
+
case "error": return "email.error.somethingWentWrong";
|
|
137
|
+
default: return;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
100
140
|
function mapState(snapshot) {
|
|
101
141
|
const typedSnapshot = snapshot;
|
|
102
142
|
const { context } = typedSnapshot;
|
|
@@ -245,7 +285,7 @@ function createEmailManager(options) {
|
|
|
245
285
|
actor: createEmailActor(options),
|
|
246
286
|
mapState,
|
|
247
287
|
createApi,
|
|
248
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.email)
|
|
288
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.email, { getEventScreenName: getEmailScreenName })
|
|
249
289
|
});
|
|
250
290
|
}
|
|
251
291
|
function createEmailManagerFromActor(actor) {
|
|
@@ -253,7 +293,7 @@ function createEmailManagerFromActor(actor) {
|
|
|
253
293
|
actor,
|
|
254
294
|
mapState,
|
|
255
295
|
createApi,
|
|
256
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.email)
|
|
296
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.email, { getEventScreenName: getEmailScreenName })
|
|
257
297
|
});
|
|
258
298
|
}
|
|
259
299
|
|
|
@@ -332,16 +332,9 @@ function captureAttemptFinished(module, screen, payload) {
|
|
|
332
332
|
|
|
333
333
|
//#endregion
|
|
334
334
|
//#region src/internal/events/managerInstrumentation.ts
|
|
335
|
-
function normalizeSegment(segment) {
|
|
336
|
-
if (typeof segment !== "string") return "";
|
|
337
|
-
return segment.trim().replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
338
|
-
}
|
|
339
|
-
function normalizeDottedPath(path) {
|
|
340
|
-
return path.split("+").map((branch) => branch.split(".").map((segment) => normalizeSegment(segment)).filter((segment) => segment.length > 0).join(".")).filter((branch) => branch.length > 0).join("+");
|
|
341
|
-
}
|
|
342
335
|
function stateValueToScreenSegment(value) {
|
|
343
336
|
if (typeof value === "string" || typeof value === "number") {
|
|
344
|
-
const segment =
|
|
337
|
+
const segment = String(value).trim();
|
|
345
338
|
return segment.length > 0 ? segment : void 0;
|
|
346
339
|
}
|
|
347
340
|
if (typeof value !== "object" || value === null) return;
|
|
@@ -352,43 +345,47 @@ function stateValueToScreenSegment(value) {
|
|
|
352
345
|
});
|
|
353
346
|
if (entries.length === 0) return;
|
|
354
347
|
const branches = entries.map(([key, nestedValue]) => {
|
|
355
|
-
const
|
|
348
|
+
const trimmedKey = key.trim();
|
|
356
349
|
const nestedSegment = stateValueToScreenSegment(nestedValue);
|
|
357
|
-
if (
|
|
358
|
-
if (nestedSegment === void 0) return
|
|
359
|
-
return `${
|
|
350
|
+
if (trimmedKey.length === 0) return nestedSegment;
|
|
351
|
+
if (nestedSegment === void 0) return trimmedKey;
|
|
352
|
+
return `${trimmedKey}.${nestedSegment}`;
|
|
360
353
|
}).filter((branch) => branch !== void 0 && branch.length > 0);
|
|
361
354
|
if (branches.length === 0) return;
|
|
362
355
|
return branches.join("+");
|
|
363
356
|
}
|
|
364
357
|
function buildScreenName(moduleName, screenName) {
|
|
365
|
-
const
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
return `${
|
|
358
|
+
const trimmedModuleName = typeof moduleName === "string" ? moduleName.trim() : "";
|
|
359
|
+
const trimmedScreen = screenName.trim();
|
|
360
|
+
if (trimmedModuleName.length === 0) return trimmedScreen;
|
|
361
|
+
if (trimmedScreen.length === 0) return trimmedModuleName;
|
|
362
|
+
return `${trimmedModuleName}.${trimmedScreen}`;
|
|
370
363
|
}
|
|
371
364
|
function getDefaultManagerScreenName(snapshot) {
|
|
372
365
|
return stateValueToScreenSegment(snapshot.value);
|
|
373
366
|
}
|
|
374
367
|
function getManagerScreenName(moduleName, snapshot, options) {
|
|
375
368
|
const eventScreen = options?.getEventScreenName?.(snapshot);
|
|
376
|
-
if (eventScreen !== void 0)
|
|
369
|
+
if (eventScreen !== void 0) {
|
|
370
|
+
const trimmed = eventScreen.trim();
|
|
371
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
372
|
+
}
|
|
377
373
|
const mappedScreen = options?.getScreenName?.(snapshot) ?? getDefaultManagerScreenName(snapshot);
|
|
378
374
|
if (mappedScreen === void 0) return;
|
|
379
375
|
return buildScreenName(moduleName, mappedScreen);
|
|
380
376
|
}
|
|
381
377
|
function isErrorLikeSegment(segment) {
|
|
382
|
-
|
|
378
|
+
const lower = segment.toLowerCase();
|
|
379
|
+
return lower === "error" || lower.includes("error") || lower.includes("failed") || lower.includes("failure");
|
|
383
380
|
}
|
|
384
381
|
function getDefaultManagerErrorName(snapshot) {
|
|
385
382
|
const screenSegment = stateValueToScreenSegment(snapshot.value);
|
|
386
383
|
if (screenSegment === void 0) return;
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
389
|
-
if (
|
|
390
|
-
if (!isErrorLikeSegment(
|
|
391
|
-
return `error.${
|
|
384
|
+
const trimmedSegment = screenSegment.trim();
|
|
385
|
+
if (trimmedSegment.length === 0) return;
|
|
386
|
+
if (trimmedSegment.toLowerCase() === "error") return "error.unknown";
|
|
387
|
+
if (!isErrorLikeSegment(trimmedSegment)) return;
|
|
388
|
+
return `error.${trimmedSegment}`;
|
|
392
389
|
}
|
|
393
390
|
function createManagerInstrumentation(moduleName, options) {
|
|
394
391
|
return {
|
|
@@ -413,6 +410,47 @@ function createManagerInstrumentation(moduleName, options) {
|
|
|
413
410
|
};
|
|
414
411
|
}
|
|
415
412
|
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/internal/events/topLevelStateName.ts
|
|
415
|
+
/**
|
|
416
|
+
* Returns the top-level state name from an XState `snapshot.value`.
|
|
417
|
+
*
|
|
418
|
+
* XState 5 represents the current state in one of two shapes:
|
|
419
|
+
*
|
|
420
|
+
* - Leaf state on the root: a plain string (`'idle'`, `'processing'`).
|
|
421
|
+
* - Compound state: an object with exactly one key naming the active
|
|
422
|
+
* top-level state, e.g. `{ uploading: 'holding' }`. Nested compounds
|
|
423
|
+
* may recurse, but the top-level key is always at index 0.
|
|
424
|
+
*
|
|
425
|
+
* Used by Figma-aligned `get*ScreenName` mappers to dispatch on the
|
|
426
|
+
* top-level state without coupling to deeper substate shapes. The
|
|
427
|
+
* `keys.length === 1` guard is defensive — XState invariants make a
|
|
428
|
+
* compound `snapshot.value` always single-keyed, but we return
|
|
429
|
+
* `undefined` for malformed/unknown shapes rather than risk an arbitrary
|
|
430
|
+
* key from a parallel-state-like object.
|
|
431
|
+
*
|
|
432
|
+
* Intentionally typed as `value: unknown` so callers can pass
|
|
433
|
+
* `snapshot.value` from any machine without prior narrowing.
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* ```ts
|
|
437
|
+
* topLevelStateName('idle'); // 'idle'
|
|
438
|
+
* topLevelStateName({ uploading: 'holding' }); // 'uploading'
|
|
439
|
+
* topLevelStateName({ a: 1, b: 2 }); // undefined (not single-keyed)
|
|
440
|
+
* topLevelStateName(undefined); // undefined
|
|
441
|
+
* ```
|
|
442
|
+
*/
|
|
443
|
+
function topLevelStateName(value) {
|
|
444
|
+
if (typeof value === "string") return value;
|
|
445
|
+
if (typeof value === "object" && value !== null) {
|
|
446
|
+
const keys = Object.keys(value);
|
|
447
|
+
if (keys.length === 1) {
|
|
448
|
+
const key = keys[0];
|
|
449
|
+
return typeof key === "string" ? key : void 0;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
416
454
|
//#endregion
|
|
417
455
|
//#region src/internal/events/types.ts
|
|
418
456
|
const eventModuleNames = {
|
|
@@ -421,8 +459,8 @@ const eventModuleNames = {
|
|
|
421
459
|
authentication: "AUTHENTICATION",
|
|
422
460
|
authFace: "authFace",
|
|
423
461
|
mlConsent: "ML_CONSENT",
|
|
424
|
-
combinedConsent: "
|
|
425
|
-
curpValidation: "
|
|
462
|
+
combinedConsent: "datasharingconsent",
|
|
463
|
+
curpValidation: "CURP",
|
|
426
464
|
faceMatch: "FACE_MATCH",
|
|
427
465
|
qr: "QR",
|
|
428
466
|
videoSelfie: "VIDEO_ONBOARDING",
|
|
@@ -432,33 +470,37 @@ const eventModuleNames = {
|
|
|
432
470
|
id: "ID",
|
|
433
471
|
idCapture: "idCapture",
|
|
434
472
|
idOcr: "ID_OCR",
|
|
435
|
-
document: "
|
|
473
|
+
document: "documentCapture",
|
|
436
474
|
creditCard: "CREDIT_CARD_FRONT",
|
|
437
475
|
creditCardBack: "CREDIT_CARD_BACK",
|
|
438
476
|
conference: "CONFERENCE",
|
|
439
477
|
otp: "OTP",
|
|
440
|
-
signature: "
|
|
441
|
-
ekyc: "
|
|
442
|
-
watchlist: "
|
|
478
|
+
signature: "eSign",
|
|
479
|
+
ekyc: "eKYC",
|
|
480
|
+
watchlist: "watchlist",
|
|
443
481
|
globalWatchList: "GLOBAL_WATCHLIST",
|
|
444
|
-
customWatchList: "
|
|
445
|
-
email: "
|
|
446
|
-
phone: "
|
|
482
|
+
customWatchList: "customWatchlist",
|
|
483
|
+
email: "email",
|
|
484
|
+
phone: "phoneNumber",
|
|
447
485
|
instantVerifyEmail: "INSTANT_VERIFY_EMAIL",
|
|
448
486
|
instantVerifyConsent: "INSTANT_VERIFY_CONSENT",
|
|
449
|
-
forms: "
|
|
487
|
+
forms: "forms",
|
|
450
488
|
customModule: "CUSTOM_MODULE",
|
|
451
|
-
geolocation: "
|
|
452
|
-
ekyb: "
|
|
489
|
+
geolocation: "Geolocation",
|
|
490
|
+
ekyb: "eKYB",
|
|
453
491
|
identityReuse: "IDENTITY_REUSE",
|
|
454
|
-
antifraud: "
|
|
455
|
-
aeSignature: "
|
|
456
|
-
qeSignature: "
|
|
492
|
+
antifraud: "antifraud",
|
|
493
|
+
aeSignature: "AdSign",
|
|
494
|
+
qeSignature: "QSign",
|
|
457
495
|
crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH",
|
|
458
496
|
customFields: "CUSTOM_FIELDS",
|
|
459
497
|
fieldComparison: "FIELD_COMPARISON",
|
|
460
|
-
watchlistForBusiness: "
|
|
498
|
+
watchlistForBusiness: "watchlistForBusiness",
|
|
461
499
|
trustGraph: "TRUST_GRAPH",
|
|
500
|
+
governmentValidation: "GovernmentRecordValidation",
|
|
501
|
+
documentUpload: "document-upload",
|
|
502
|
+
home: "home",
|
|
503
|
+
workflow: "workflow",
|
|
462
504
|
fiscalQr: "FISCAL_QR"
|
|
463
505
|
};
|
|
464
506
|
const eventScreenNames = {
|
|
@@ -595,4 +637,4 @@ const cameraScreenNamesMapper = {
|
|
|
595
637
|
};
|
|
596
638
|
|
|
597
639
|
//#endregion
|
|
598
|
-
export { revokeObjectURL as S,
|
|
640
|
+
export { revokeObjectURL as C, getTimestamp as S, getAnalyticsBatcher as _, videoSelfieEvents as a, subscribeEvent as b, captureAttemptFinished as c, moduleOpened as d, screenClosed as f, addEvent as g, createAnalyticsBatchingService as h, tutorialScreenNamesMapper as i, elementClicked as l, screenOpened as m, eventModuleNames as n, topLevelStateName as o, screenEvent as p, eventScreenNames as r, createManagerInstrumentation as s, cameraScreenNamesMapper as t, moduleClosed as u, resetAnalyticsBatcher as v, createEventBus as x, setAnalyticsBatcher as y };
|
package/dist/events.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ declare const eventModuleNames: {
|
|
|
19
19
|
readonly authentication: "AUTHENTICATION";
|
|
20
20
|
readonly authFace: "authFace";
|
|
21
21
|
readonly mlConsent: "ML_CONSENT";
|
|
22
|
-
readonly combinedConsent: "
|
|
23
|
-
readonly curpValidation: "
|
|
22
|
+
readonly combinedConsent: "datasharingconsent";
|
|
23
|
+
readonly curpValidation: "CURP";
|
|
24
24
|
readonly faceMatch: "FACE_MATCH";
|
|
25
25
|
readonly qr: "QR";
|
|
26
26
|
readonly videoSelfie: "VIDEO_ONBOARDING";
|
|
@@ -30,33 +30,37 @@ declare const eventModuleNames: {
|
|
|
30
30
|
readonly id: "ID";
|
|
31
31
|
readonly idCapture: "idCapture";
|
|
32
32
|
readonly idOcr: "ID_OCR";
|
|
33
|
-
readonly document: "
|
|
33
|
+
readonly document: "documentCapture";
|
|
34
34
|
readonly creditCard: "CREDIT_CARD_FRONT";
|
|
35
35
|
readonly creditCardBack: "CREDIT_CARD_BACK";
|
|
36
36
|
readonly conference: "CONFERENCE";
|
|
37
37
|
readonly otp: "OTP";
|
|
38
|
-
readonly signature: "
|
|
39
|
-
readonly ekyc: "
|
|
40
|
-
readonly watchlist: "
|
|
38
|
+
readonly signature: "eSign";
|
|
39
|
+
readonly ekyc: "eKYC";
|
|
40
|
+
readonly watchlist: "watchlist";
|
|
41
41
|
readonly globalWatchList: "GLOBAL_WATCHLIST";
|
|
42
|
-
readonly customWatchList: "
|
|
43
|
-
readonly email: "
|
|
44
|
-
readonly phone: "
|
|
42
|
+
readonly customWatchList: "customWatchlist";
|
|
43
|
+
readonly email: "email";
|
|
44
|
+
readonly phone: "phoneNumber";
|
|
45
45
|
readonly instantVerifyEmail: "INSTANT_VERIFY_EMAIL";
|
|
46
46
|
readonly instantVerifyConsent: "INSTANT_VERIFY_CONSENT";
|
|
47
|
-
readonly forms: "
|
|
47
|
+
readonly forms: "forms";
|
|
48
48
|
readonly customModule: "CUSTOM_MODULE";
|
|
49
|
-
readonly geolocation: "
|
|
50
|
-
readonly ekyb: "
|
|
49
|
+
readonly geolocation: "Geolocation";
|
|
50
|
+
readonly ekyb: "eKYB";
|
|
51
51
|
readonly identityReuse: "IDENTITY_REUSE";
|
|
52
|
-
readonly antifraud: "
|
|
53
|
-
readonly aeSignature: "
|
|
54
|
-
readonly qeSignature: "
|
|
52
|
+
readonly antifraud: "antifraud";
|
|
53
|
+
readonly aeSignature: "AdSign";
|
|
54
|
+
readonly qeSignature: "QSign";
|
|
55
55
|
readonly crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH";
|
|
56
56
|
readonly customFields: "CUSTOM_FIELDS";
|
|
57
57
|
readonly fieldComparison: "FIELD_COMPARISON";
|
|
58
|
-
readonly watchlistForBusiness: "
|
|
58
|
+
readonly watchlistForBusiness: "watchlistForBusiness";
|
|
59
59
|
readonly trustGraph: "TRUST_GRAPH";
|
|
60
|
+
readonly governmentValidation: "GovernmentRecordValidation";
|
|
61
|
+
readonly documentUpload: "document-upload";
|
|
62
|
+
readonly home: "home";
|
|
63
|
+
readonly workflow: "workflow";
|
|
60
64
|
readonly fiscalQr: "FISCAL_QR";
|
|
61
65
|
};
|
|
62
66
|
declare const eventScreenNames: {
|
package/dist/events.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./api-CESGtpbH.esm.js";
|
|
2
|
-
import { a as videoSelfieEvents, c as
|
|
2
|
+
import { a as videoSelfieEvents, b as subscribeEvent, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as addEvent, i as tutorialScreenNamesMapper, l as elementClicked, m as screenOpened, n as eventModuleNames, p as screenEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as moduleClosed } from "./events-CqFVBE7N.esm.js";
|
|
3
3
|
|
|
4
4
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -13,16 +13,16 @@ import "./types-ya0LN_MX.js";
|
|
|
13
13
|
import "./StreamCanvasCapture-yyl20qd9.js";
|
|
14
14
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-C2y_t6DG.js";
|
|
15
15
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CaiQbp-q.js";
|
|
16
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
17
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
18
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
19
|
-
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
16
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-xD5HBcPI.js";
|
|
17
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-DbWOV3mR.js";
|
|
18
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DIQbAvYR.js";
|
|
19
|
+
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CSgOY352.js";
|
|
20
20
|
import "./otp-DF5A0sFx.js";
|
|
21
21
|
import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-ChCNmgBj.js";
|
|
22
|
-
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-
|
|
23
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
22
|
+
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BmdGkGC3.js";
|
|
23
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-CCbd9rQ6.js";
|
|
24
24
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-Bu5TaSr3.js";
|
|
25
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
25
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-C1vQknOC.js";
|
|
26
26
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BNe3IzC_.js";
|
|
27
27
|
|
|
28
28
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
3
3
|
import "./api-CESGtpbH.esm.js";
|
|
4
|
-
import "./events-
|
|
4
|
+
import "./events-CqFVBE7N.esm.js";
|
|
5
5
|
import "./endpoints-BeTK0Mlt.esm.js";
|
|
6
6
|
import "./stats-BMNUG1AU.esm.js";
|
|
7
7
|
import { t as IpifyProvider } from "./IpifyProvider-D4LWD15E.esm.js";
|
|
8
8
|
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
9
|
-
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-DX2Nj28R.esm.js";
|
|
10
10
|
import "./platform-SKvEfCBh.esm.js";
|
|
11
11
|
import "./getBrowser-C8DP7oTB.esm.js";
|
|
12
12
|
import { a as fromPromise, i as fromCallback, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
13
13
|
import "./apiError-B-j-gyDx.esm.js";
|
|
14
14
|
import "./antifraudStateMachine-Ccrb-Jxc.esm.js";
|
|
15
|
-
import { n as createAntifraudManagerFromActor } from "./antifraudManager-
|
|
15
|
+
import { n as createAntifraudManagerFromActor } from "./antifraudManager-Bm_s1FGq.esm.js";
|
|
16
16
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
17
17
|
import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
18
18
|
import "./permissionServices-Doec4X5L.esm.js";
|
|
19
19
|
import "./camera-DJWm3V4g.esm.js";
|
|
20
|
-
import "./faceCaptureManagerFactory-
|
|
20
|
+
import "./faceCaptureManagerFactory-C6Cugf_Z.esm.js";
|
|
21
21
|
import "./recordingService-yRw7hfzU.esm.js";
|
|
22
22
|
import "./ITimerCapability-CB0I1Uf2.esm.js";
|
|
23
23
|
import "./canvas-SKcRBxsk.esm.js";
|
|
@@ -30,30 +30,30 @@ import "./StreamCanvasCapture-ImiDQdVA.esm.js";
|
|
|
30
30
|
import "./permissionGuards-D0wGddy7.esm.js";
|
|
31
31
|
import { t as faceCaptureMachine } from "./faceCaptureSetup-B9t6bYze.esm.js";
|
|
32
32
|
import "./authenticationStateMachine-DkcGUMw5.esm.js";
|
|
33
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
33
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Bx6JOGrA.esm.js";
|
|
34
34
|
import "./consentStateMachine-BG3yL8aC.esm.js";
|
|
35
|
-
import { n as createConsentManagerFromActor } from "./consentManager-
|
|
36
|
-
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-
|
|
35
|
+
import { n as createConsentManagerFromActor } from "./consentManager-CcYtoZcH.esm.js";
|
|
36
|
+
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-D_Jz3zTE.esm.js";
|
|
37
37
|
import "./cpf-BRzggV8G.esm.js";
|
|
38
38
|
import "./curpValidationStateMachine-B7V_qp66.esm.js";
|
|
39
|
-
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-
|
|
39
|
+
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-DnJc2FXu.esm.js";
|
|
40
40
|
import "./session-DoVb-OcB.esm.js";
|
|
41
41
|
import "./emailStateMachine-CxTOMAjC.esm.js";
|
|
42
42
|
import "./otp-CGMdUzBC.esm.js";
|
|
43
|
-
import { n as createEmailManagerFromActor } from "./emailManager
|
|
43
|
+
import { n as createEmailManagerFromActor } from "./emailManager-DZAmAA6M.esm.js";
|
|
44
44
|
import "./selfieStateMachine-Bv99bZJE.esm.js";
|
|
45
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
46
|
-
import "./idCaptureStateMachine-
|
|
47
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
45
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CvP5itLQ.esm.js";
|
|
46
|
+
import "./idCaptureStateMachine-C909OCfF.esm.js";
|
|
47
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CTxEsHk6.esm.js";
|
|
48
48
|
import "./phoneStateMachine-BiV0yoEx.esm.js";
|
|
49
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
49
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-N9f10gYZ.esm.js";
|
|
50
50
|
import "./identityReuseStateMachine-BfE5YiEr.esm.js";
|
|
51
|
-
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-
|
|
52
|
-
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-
|
|
51
|
+
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-D_lHhELK.esm.js";
|
|
52
|
+
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-Dcw-NMWo.esm.js";
|
|
53
53
|
import "./mandatoryConsentStateMachine-DtQNW1ji.esm.js";
|
|
54
|
-
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-
|
|
54
|
+
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-Cm12uk83.esm.js";
|
|
55
55
|
import "./redirectToMobileStateMachine-DyAdRxfP.esm.js";
|
|
56
|
-
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-
|
|
56
|
+
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DdhezJQZ.esm.js";
|
|
57
57
|
|
|
58
58
|
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
59
59
|
async function getFingerprint(disableIpify) {
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./api-CESGtpbH.esm.js";
|
|
2
|
-
import { n as eventModuleNames,
|
|
2
|
+
import { n as eventModuleNames, 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 { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-DeXXzSuz.esm.js";
|
package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-C6Cugf_Z.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as
|
|
1
|
+
import { n as eventModuleNames, o as topLevelStateName, r as eventScreenNames, s as createManagerInstrumentation } from "./events-CqFVBE7N.esm.js";
|
|
2
2
|
import { c as createManager } from "./xstate.esm-C9wncMQa.esm.js";
|
|
3
3
|
import { n as setWasmDsFlagSync } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
4
4
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Doec4X5L.esm.js";
|
|
@@ -194,14 +194,10 @@ function getAuthFaceCaptureSubstateScreen(snapshot) {
|
|
|
194
194
|
}
|
|
195
195
|
return eventScreenNames.authFace;
|
|
196
196
|
}
|
|
197
|
-
function getTopLevelState(value) {
|
|
198
|
-
if (typeof value === "string") return value;
|
|
199
|
-
if (typeof value === "object") return Object.keys(value)[0];
|
|
200
|
-
}
|
|
201
197
|
function getAuthFaceScreenName(snapshot) {
|
|
202
198
|
const { value } = snapshot;
|
|
203
199
|
if (value === void 0 || value === null) return void 0;
|
|
204
|
-
const topLevel =
|
|
200
|
+
const topLevel = topLevelStateName(value);
|
|
205
201
|
if (topLevel === void 0) return void 0;
|
|
206
202
|
switch (topLevel) {
|
|
207
203
|
case "tutorial": return eventScreenNames.authFaceTutorial;
|
|
@@ -220,7 +216,7 @@ function getFaceCaptureScreenName(snapshot, moduleName) {
|
|
|
220
216
|
if (moduleName === eventModuleNames.authFace || moduleName === eventModuleNames.authentication) return getAuthFaceScreenName(snapshot);
|
|
221
217
|
const { value } = snapshot;
|
|
222
218
|
if (value === void 0 || value === null) return void 0;
|
|
223
|
-
const topLevel =
|
|
219
|
+
const topLevel = topLevelStateName(value);
|
|
224
220
|
if (topLevel === void 0) return void 0;
|
|
225
221
|
switch (topLevel) {
|
|
226
222
|
case "idle": return "faceCapture.loading.processing";
|