@incodetech/core 0.0.0-dev-20260320-80a2d6d → 0.0.0-dev-20260323-4991693

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/{addressSearch-BpdtojH_.esm.js → addressSearch-IJq48WDV.esm.js} +2 -2
  2. package/dist/authentication.esm.js +7 -7
  3. package/dist/{authenticationManager-Yjdutfo0.esm.js → authenticationManager-DACsi9Bs.esm.js} +4 -10
  4. package/dist/{backCameraStream-DQY36Tsq.esm.js → backCameraStream-THvMPTG_.esm.js} +1 -1
  5. package/dist/consent.d.ts +53 -58
  6. package/dist/consent.esm.js +4 -13
  7. package/dist/curp-validation.esm.js +18 -59
  8. package/dist/{deepsightLoader-De-U_lRn.esm.js → deepsightLoader-DfXPJe4B.esm.js} +2 -2
  9. package/dist/{deepsightService-PlHPx0yD.esm.js → deepsightService-DaDUTB6Q.esm.js} +1 -1
  10. package/dist/document-capture.d.ts +52 -82
  11. package/dist/document-capture.esm.js +58 -90
  12. package/dist/document-upload.d.ts +46 -46
  13. package/dist/document-upload.esm.js +3 -3
  14. package/dist/ekyb.esm.js +4 -12
  15. package/dist/ekyc.esm.js +48 -92
  16. package/dist/email.esm.js +3 -3
  17. package/dist/{emailManager-B5pmZ3O4.esm.js → emailManager-DPTdyYgi.esm.js} +5 -16
  18. package/dist/{events-BKOSYNaw.esm.js → events-BfIbM5SS.esm.js} +49 -3
  19. package/dist/extensibility.esm.js +11 -11
  20. package/dist/face-match.esm.js +4 -14
  21. package/dist/{faceCaptureSetup-BQ7cV8vo.esm.js → faceCaptureSetup-CW_ZDHuU.esm.js} +8 -113
  22. package/dist/flow.esm.js +2 -2
  23. package/dist/geolocation.esm.js +5 -21
  24. package/dist/government-validation.esm.js +2 -2
  25. package/dist/id.esm.js +6 -6
  26. package/dist/{idCaptureManager-hbqwL7Qt.esm.js → idCaptureManager-Ctn8I9Rf.esm.js} +41 -126
  27. package/dist/index.esm.js +6 -6
  28. package/dist/phone.esm.js +3 -3
  29. package/dist/{phoneManager-CXYPFfUs.esm.js → phoneManager-BzZI460X.esm.js} +5 -16
  30. package/dist/{streamingEvents-BNVENF4-.esm.js → recordingsRepository-D5Tfsc2D.esm.js} +2 -15
  31. package/dist/redirect-to-mobile.esm.js +2 -2
  32. package/dist/selfie.esm.js +7 -7
  33. package/dist/{selfieManager-DMnrP5LU.esm.js → selfieManager-BXRLyPy4.esm.js} +7 -15
  34. package/dist/{src-xUbMTjnz.esm.js → src-D9pJSMO5.esm.js} +12 -0
  35. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { t as Manager } from "./Manager-CVDYGoSq.js";
2
2
  import "./camera-CVBwqx-j.js";
3
3
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CHzupruc.js";
4
- import * as xstate58 from "xstate";
4
+ import * as xstate353 from "xstate";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
7
- declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext, {
7
+ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContext, {
8
8
  type: "START";
9
9
  } | {
10
10
  type: "CAPTURE";
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
17
17
  } | {
18
18
  type: "CLOSE";
19
19
  }, {
20
- [x: string]: xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>> | xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<void, {
20
+ [x: string]: xstate353.ActorRefFromLogic<xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>> | xstate353.ActorRefFromLogic<xstate353.PromiseActorLogic<void, {
21
21
  imageBase64: string;
22
22
  documentType: string;
23
23
  onProgress: (progress: number) => void;
24
- }, xstate58.EventObject>> | undefined;
25
- }, xstate58.Values<{
24
+ }, xstate353.EventObject>> | undefined;
25
+ }, xstate353.Values<{
26
26
  initCamera: {
27
27
  src: "initCamera";
28
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
28
+ logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
29
29
  id: string | undefined;
30
30
  };
31
31
  uploadDocument: {
32
32
  src: "uploadDocument";
33
- logic: xstate58.PromiseActorLogic<void, {
33
+ logic: xstate353.PromiseActorLogic<void, {
34
34
  imageBase64: string;
35
35
  documentType: string;
36
36
  onProgress: (progress: number) => void;
37
- }, xstate58.EventObject>;
37
+ }, xstate353.EventObject>;
38
38
  id: string | undefined;
39
39
  };
40
- }>, xstate58.Values<{
40
+ }>, xstate353.Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: xstate353.NonReducibleUnknown;
44
+ };
45
+ clearError: {
46
+ type: "clearError";
47
+ params: xstate353.NonReducibleUnknown;
48
+ };
41
49
  setStream: {
42
50
  type: "setStream";
43
- params: xstate58.NonReducibleUnknown;
51
+ params: xstate353.NonReducibleUnknown;
44
52
  };
45
53
  setProgress: {
46
54
  type: "setProgress";
47
- params: xstate58.NonReducibleUnknown;
48
- };
49
- clearError: {
50
- type: "clearError";
51
- params: xstate58.NonReducibleUnknown;
55
+ params: xstate353.NonReducibleUnknown;
52
56
  };
53
57
  stopStream: {
54
58
  type: "stopStream";
55
- params: xstate58.NonReducibleUnknown;
59
+ params: xstate353.NonReducibleUnknown;
56
60
  };
57
61
  setImageAndClearError: {
58
62
  type: "setImageAndClearError";
59
- params: xstate58.NonReducibleUnknown;
60
- };
61
- setError: {
62
- type: "setError";
63
- params: xstate58.NonReducibleUnknown;
63
+ params: xstate353.NonReducibleUnknown;
64
64
  };
65
- }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate58.NonReducibleUnknown, xstate58.EventObject, xstate58.MetaObject, {
65
+ }>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput, xstate353.NonReducibleUnknown, xstate353.EventObject, xstate353.MetaObject, {
66
66
  readonly id: "documentUpload";
67
67
  readonly initial: "idle";
68
68
  readonly context: ({
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
71
71
  spawn: {
72
72
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
73
73
  src: "initCamera";
74
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
74
+ logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
75
75
  id: string | undefined;
76
76
  } extends infer T ? T extends {
77
77
  src: "initCamera";
78
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
78
+ logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
79
79
  id: string | undefined;
80
80
  } ? T extends {
81
81
  src: TSrc;
82
- } ? xstate58.ConditionalRequired<[options?: ({
82
+ } ? xstate353.ConditionalRequired<[options?: ({
83
83
  id?: T["id"] | undefined;
84
84
  systemId?: string;
85
- input?: xstate58.InputFrom<T["logic"]> | undefined;
85
+ input?: xstate353.InputFrom<T["logic"]> | undefined;
86
86
  syncSnapshot?: boolean;
87
- } & { [K in xstate58.RequiredActorOptions<T>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T>>> : never : never : never) | ({
87
+ } & { [K in xstate353.RequiredActorOptions<T>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredActorOptions<T>>> : never : never : never) | ({
88
88
  src: "uploadDocument";
89
- logic: xstate58.PromiseActorLogic<void, {
89
+ logic: xstate353.PromiseActorLogic<void, {
90
90
  imageBase64: string;
91
91
  documentType: string;
92
92
  onProgress: (progress: number) => void;
93
- }, xstate58.EventObject>;
93
+ }, xstate353.EventObject>;
94
94
  id: string | undefined;
95
95
  } extends infer T_1 ? T_1 extends {
96
96
  src: "uploadDocument";
97
- logic: xstate58.PromiseActorLogic<void, {
97
+ logic: xstate353.PromiseActorLogic<void, {
98
98
  imageBase64: string;
99
99
  documentType: string;
100
100
  onProgress: (progress: number) => void;
101
- }, xstate58.EventObject>;
101
+ }, xstate353.EventObject>;
102
102
  id: string | undefined;
103
103
  } ? T_1 extends {
104
104
  src: TSrc;
105
- } ? xstate58.ConditionalRequired<[options?: ({
105
+ } ? xstate353.ConditionalRequired<[options?: ({
106
106
  id?: T_1["id"] | undefined;
107
107
  systemId?: string;
108
- input?: xstate58.InputFrom<T_1["logic"]> | undefined;
108
+ input?: xstate353.InputFrom<T_1["logic"]> | undefined;
109
109
  syncSnapshot?: boolean;
110
- } & { [K_1 in xstate58.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T_1>>> : never : never : never)): xstate58.ActorRefFromLogic<xstate58.GetConcreteByKey<xstate58.Values<{
110
+ } & { [K_1 in xstate353.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredActorOptions<T_1>>> : never : never : never)): xstate353.ActorRefFromLogic<xstate353.GetConcreteByKey<xstate353.Values<{
111
111
  initCamera: {
112
112
  src: "initCamera";
113
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
113
+ logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
114
114
  id: string | undefined;
115
115
  };
116
116
  uploadDocument: {
117
117
  src: "uploadDocument";
118
- logic: xstate58.PromiseActorLogic<void, {
118
+ logic: xstate353.PromiseActorLogic<void, {
119
119
  imageBase64: string;
120
120
  documentType: string;
121
121
  onProgress: (progress: number) => void;
122
- }, xstate58.EventObject>;
122
+ }, xstate353.EventObject>;
123
123
  id: string | undefined;
124
124
  };
125
125
  }>, "src", TSrc>["logic"]>;
126
- <TLogic extends xstate58.AnyActorLogic>(src: TLogic, ...[options]: xstate58.ConditionalRequired<[options?: ({
126
+ <TLogic extends xstate353.AnyActorLogic>(src: TLogic, ...[options]: xstate353.ConditionalRequired<[options?: ({
127
127
  id?: never;
128
128
  systemId?: string;
129
- input?: xstate58.InputFrom<TLogic> | undefined;
129
+ input?: xstate353.InputFrom<TLogic> | undefined;
130
130
  syncSnapshot?: boolean;
131
- } & { [K in xstate58.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredLogicInput<TLogic>>>): xstate58.ActorRefFromLogic<TLogic>;
131
+ } & { [K in xstate353.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredLogicInput<TLogic>>>): xstate353.ActorRefFromLogic<TLogic>;
132
132
  };
133
133
  input: DocumentUploadInput;
134
- self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
134
+ self: xstate353.ActorRef<xstate353.MachineSnapshot<DocumentUploadContext, {
135
135
  type: "START";
136
136
  } | {
137
137
  type: "CAPTURE";
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
143
143
  type: "RETRY";
144
144
  } | {
145
145
  type: "CLOSE";
146
- }, Record<string, xstate58.AnyActorRef | undefined>, xstate58.StateValue, string, unknown, any, any>, {
146
+ }, Record<string, xstate353.AnyActorRef | undefined>, xstate353.StateValue, string, unknown, any, any>, {
147
147
  type: "START";
148
148
  } | {
149
149
  type: "CAPTURE";
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
155
155
  type: "RETRY";
156
156
  } | {
157
157
  type: "CLOSE";
158
- }, xstate58.AnyEventObject>;
158
+ }, xstate353.AnyEventObject>;
159
159
  }) => {
160
160
  config: DocumentUploadConfig;
161
161
  stream: undefined;
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
225
225
  } | {
226
226
  type: "CLOSE";
227
227
  };
228
- self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
228
+ self: xstate353.ActorRef<xstate353.MachineSnapshot<DocumentUploadContext, {
229
229
  type: "START";
230
230
  } | {
231
231
  type: "CAPTURE";
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "CLOSE";
240
- }, Record<string, xstate58.AnyActorRef>, xstate58.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate353.AnyActorRef>, xstate353.StateValue, string, unknown, any, any>, {
241
241
  type: "START";
242
242
  } | {
243
243
  type: "CAPTURE";
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
249
249
  type: "RETRY";
250
250
  } | {
251
251
  type: "CLOSE";
252
- }, xstate58.AnyEventObject>;
252
+ }, xstate353.AnyEventObject>;
253
253
  }) => {
254
254
  imageBase64: string;
255
255
  documentType: string;
@@ -1,6 +1,6 @@
1
- import { g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DQY36Tsq.esm.js";
3
- import { A as createManager, k as stopCameraStream } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-THvMPTG_.esm.js";
3
+ import { A as createManager, k as stopCameraStream } from "./src-D9pJSMO5.esm.js";
4
4
  import { t as api } from "./api-3fZO5bmj.esm.js";
5
5
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
6
6
 
package/dist/ekyb.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-BpdtojH_.esm.js";
5
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-IJq48WDV.esm.js";
6
6
  import { t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
7
7
 
8
8
  //#region src/modules/ekyb/ekybConstants.ts
@@ -517,14 +517,7 @@ const ekybMachine = setup({
517
517
  isValid
518
518
  };
519
519
  }),
520
- setAddressSuggestions: assign(({ event }) => ({ addressSuggestions: event.suggestions })),
521
- trackFormOpen: () => {
522
- addEvent({
523
- code: "open",
524
- module: eventModuleNames.ekyb,
525
- screen: eventScreenNames.ekybForm
526
- });
527
- }
520
+ setAddressSuggestions: assign(({ event }) => ({ addressSuggestions: event.suggestions }))
528
521
  },
529
522
  guards: {
530
523
  hasFlowId: hasFlowIdGuard,
@@ -581,7 +574,6 @@ const ekybMachine = setup({
581
574
  onError: "form"
582
575
  } },
583
576
  form: {
584
- entry: "trackFormOpen",
585
577
  initial: "idle",
586
578
  states: {
587
579
  idle: {},
package/dist/ekyc.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-BpdtojH_.esm.js";
5
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-IJq48WDV.esm.js";
6
6
 
7
7
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
8
8
  var metadata_min_json_default = {
@@ -10380,35 +10380,7 @@ const ekycMachine = setup({
10380
10380
  clearErrorMessage: assign({ errorMessage: () => "" }),
10381
10381
  setSubmitError: assign(() => ({ submitError: "verification.errors.countryNotSupported" })),
10382
10382
  clearSubmitError: assign({ submitError: () => "" }),
10383
- markSubmitAttempted: assign({ submitAttempted: () => true }),
10384
- trackProgress: () => {
10385
- addEvent({
10386
- code: "continue",
10387
- module: eventModuleNames.ekyc,
10388
- screen: eventScreenNames.ekycProgress
10389
- });
10390
- },
10391
- trackFormOpen: () => {
10392
- addEvent({
10393
- code: "open",
10394
- module: eventModuleNames.ekyc,
10395
- screen: eventScreenNames.ekycInput
10396
- });
10397
- },
10398
- trackSuccess: () => {
10399
- addEvent({
10400
- code: "continue",
10401
- module: eventModuleNames.ekyc,
10402
- screen: eventScreenNames.ekycSucceeded
10403
- });
10404
- },
10405
- trackFailure: () => {
10406
- addEvent({
10407
- code: "continue",
10408
- module: eventModuleNames.ekyc,
10409
- screen: eventScreenNames.ekycFailed
10410
- });
10411
- }
10383
+ markSubmitAttempted: assign({ submitAttempted: () => true })
10412
10384
  },
10413
10385
  guards: {
10414
10386
  isValid: isValidGuard,
@@ -10460,36 +10432,29 @@ const ekycMachine = setup({
10460
10432
  },
10461
10433
  { target: "misconfigured" }
10462
10434
  ] } },
10463
- loading: {
10464
- entry: "trackProgress",
10465
- invoke: {
10466
- id: "fetchModuleConfig",
10467
- src: "fetchModuleConfig",
10468
- input: ({ context }) => ({ flowId: context.config.flowId }),
10469
- onDone: {
10470
- target: "prefilling",
10471
- actions: "setModuleConfig"
10472
- },
10473
- onError: {
10474
- target: "error",
10475
- actions: "setErrorMessage"
10476
- }
10477
- }
10478
- },
10479
- prefilling: {
10480
- entry: "trackProgress",
10481
- invoke: {
10482
- id: "fetchPrefillData",
10483
- src: "fetchPrefillData",
10484
- onDone: {
10485
- target: "form",
10486
- actions: "applyPrefillData"
10487
- },
10488
- onError: { target: "form" }
10435
+ loading: { invoke: {
10436
+ id: "fetchModuleConfig",
10437
+ src: "fetchModuleConfig",
10438
+ input: ({ context }) => ({ flowId: context.config.flowId }),
10439
+ onDone: {
10440
+ target: "prefilling",
10441
+ actions: "setModuleConfig"
10442
+ },
10443
+ onError: {
10444
+ target: "error",
10445
+ actions: "setErrorMessage"
10489
10446
  }
10490
- },
10447
+ } },
10448
+ prefilling: { invoke: {
10449
+ id: "fetchPrefillData",
10450
+ src: "fetchPrefillData",
10451
+ onDone: {
10452
+ target: "form",
10453
+ actions: "applyPrefillData"
10454
+ },
10455
+ onError: { target: "form" }
10456
+ } },
10491
10457
  form: {
10492
- entry: "trackFormOpen",
10493
10458
  initial: "idle",
10494
10459
  states: {
10495
10460
  idle: {},
@@ -10526,38 +10491,29 @@ const ekycMachine = setup({
10526
10491
  CLOSE: { target: "#ekyc.closed" }
10527
10492
  }
10528
10493
  },
10529
- submitting: {
10530
- entry: "trackProgress",
10531
- invoke: {
10532
- id: "submitEkyc",
10533
- src: "submitEkyc",
10534
- input: ({ context }) => buildSubmitPayload(context),
10535
- onDone: { target: "success" },
10536
- onError: [{
10537
- target: "form",
10538
- guard: "isCountryNotSupported",
10539
- actions: "setSubmitError"
10540
- }, {
10541
- target: "error",
10542
- actions: "setErrorMessage"
10543
- }]
10544
- }
10545
- },
10546
- success: {
10547
- entry: "trackSuccess",
10548
- after: { 3e3: "finished" }
10549
- },
10550
- error: {
10551
- entry: "trackFailure",
10552
- on: {
10553
- RETRY: {
10554
- target: "form",
10555
- actions: "clearErrorMessage"
10556
- },
10557
- SKIP: { target: "finished" },
10558
- CLOSE: { target: "closed" }
10559
- }
10560
- },
10494
+ submitting: { invoke: {
10495
+ id: "submitEkyc",
10496
+ src: "submitEkyc",
10497
+ input: ({ context }) => buildSubmitPayload(context),
10498
+ onDone: { target: "success" },
10499
+ onError: [{
10500
+ target: "form",
10501
+ guard: "isCountryNotSupported",
10502
+ actions: "setSubmitError"
10503
+ }, {
10504
+ target: "error",
10505
+ actions: "setErrorMessage"
10506
+ }]
10507
+ } },
10508
+ success: { after: { 3e3: "finished" } },
10509
+ error: { on: {
10510
+ RETRY: {
10511
+ target: "form",
10512
+ actions: "clearErrorMessage"
10513
+ },
10514
+ SKIP: { target: "finished" },
10515
+ CLOSE: { target: "closed" }
10516
+ } },
10561
10517
  misconfigured: { on: { CLOSE: { target: "closed" } } },
10562
10518
  finished: { type: "final" },
10563
10519
  closed: { type: "final" }
package/dist/email.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./events-BKOSYNaw.esm.js";
2
- import "./src-xUbMTjnz.esm.js";
1
+ import "./events-BfIbM5SS.esm.js";
2
+ import "./src-D9pJSMO5.esm.js";
3
3
  import "./api-3fZO5bmj.esm.js";
4
4
  import "./endpoints-Bydn-Ave.esm.js";
5
- import { r as emailMachine, t as createEmailManager } from "./emailManager-B5pmZ3O4.esm.js";
5
+ import { r as emailMachine, t as createEmailManager } from "./emailManager-DPTdyYgi.esm.js";
6
6
 
7
7
  export { createEmailManager, emailMachine };
@@ -1,5 +1,5 @@
1
- import { _ as fromCallback, f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
@@ -113,14 +113,7 @@ const emailMachine = setup({
113
113
  attemptsRemaining: context.config.maxOtpAttempts ?? 3,
114
114
  resendTimer: 0,
115
115
  resendTimerActive: false
116
- })),
117
- sendEmailSubmitEvent: () => {
118
- addEvent({
119
- code: "continue",
120
- module: eventModuleNames.email,
121
- screen: eventScreenNames.emailInput
122
- });
123
- }
116
+ }))
124
117
  },
125
118
  guards: {
126
119
  hasPrefill: ({ context }) => context.config.prefill,
@@ -175,12 +168,8 @@ const emailMachine = setup({
175
168
  input: ({ context }) => ({ email: context.email }),
176
169
  onDone: [{
177
170
  target: "sendingOtp",
178
- guard: "hasOtpVerification",
179
- actions: "sendEmailSubmitEvent"
180
- }, {
181
- target: "finished",
182
- actions: "sendEmailSubmitEvent"
183
- }],
171
+ guard: "hasOtpVerification"
172
+ }, { target: "finished" }],
184
173
  onError: {
185
174
  target: "inputting",
186
175
  actions: "setEmailError"
@@ -3381,11 +3381,57 @@ function screenClosed(module, screen, payload) {
3381
3381
 
3382
3382
  //#endregion
3383
3383
  //#region src/internal/events/managerInstrumentation.ts
3384
- function createManagerInstrumentation(moduleName) {
3384
+ function normalizeSegment(segment) {
3385
+ if (typeof segment !== "string") return "";
3386
+ return segment.trim().replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
3387
+ }
3388
+ function normalizeDottedPath(path) {
3389
+ return path.split("+").map((branch) => branch.split(".").map((segment) => normalizeSegment(segment)).filter((segment) => segment.length > 0).join(".")).filter((branch) => branch.length > 0).join("+");
3390
+ }
3391
+ function stateValueToScreenSegment(value) {
3392
+ if (typeof value === "string" || typeof value === "number") {
3393
+ const segment = normalizeSegment(String(value));
3394
+ return segment.length > 0 ? segment : void 0;
3395
+ }
3396
+ if (typeof value !== "object" || value === null) return;
3397
+ const entries = Object.entries(value).sort(([left], [right]) => {
3398
+ if (left < right) return -1;
3399
+ if (left > right) return 1;
3400
+ return 0;
3401
+ });
3402
+ if (entries.length === 0) return;
3403
+ const branches = entries.map(([key, nestedValue]) => {
3404
+ const normalizedKey = normalizeSegment(key);
3405
+ const nestedSegment = stateValueToScreenSegment(nestedValue);
3406
+ if (normalizedKey.length === 0) return nestedSegment;
3407
+ if (nestedSegment === void 0) return normalizedKey;
3408
+ return `${normalizedKey}.${nestedSegment}`;
3409
+ }).filter((branch) => branch !== void 0 && branch.length > 0);
3410
+ if (branches.length === 0) return;
3411
+ return branches.join("+");
3412
+ }
3413
+ function buildScreenName(moduleName, screenName) {
3414
+ const normalizedModuleName = typeof moduleName === "string" ? moduleName.trim() : "";
3415
+ const normalizedScreen = normalizeDottedPath(screenName);
3416
+ if (normalizedModuleName.length === 0) return normalizedScreen;
3417
+ if (normalizedScreen.length === 0) return normalizedModuleName;
3418
+ return `${normalizedModuleName}.${normalizedScreen}`;
3419
+ }
3420
+ function getDefaultManagerScreenName(snapshot) {
3421
+ return stateValueToScreenSegment(snapshot.value);
3422
+ }
3423
+ function createManagerInstrumentation(moduleName, options) {
3385
3424
  return {
3386
3425
  moduleName,
3387
3426
  onModuleOpened: moduleOpened,
3388
- onModuleClosed: moduleClosed
3427
+ onModuleClosed: moduleClosed,
3428
+ onScreenOpened: screenOpened,
3429
+ onScreenClosed: screenClosed,
3430
+ getScreenName: (snapshot) => {
3431
+ const mappedScreen = options?.getScreenName?.(snapshot) ?? getDefaultManagerScreenName(snapshot);
3432
+ if (mappedScreen === void 0) return;
3433
+ return buildScreenName(moduleName, mappedScreen);
3434
+ }
3389
3435
  };
3390
3436
  }
3391
3437
 
@@ -3556,4 +3602,4 @@ const cameraScreenNamesMapper = {
3556
3602
  };
3557
3603
 
3558
3604
  //#endregion
3559
- export { fromCallback as _, videoSelfieEvents as a, revokeObjectURL as b, moduleOpened as c, screenOpened as d, addEvent as f, assign as g, setup as h, tutorialScreenNamesMapper as i, screenClosed as l, subscribeEvent as m, eventModuleNames as n, createManagerInstrumentation as o, flushEventQueue as p, eventScreenNames as r, moduleClosed as s, cameraScreenNamesMapper as t, screenEvent as u, fromPromise as v, createActor as y };
3605
+ export { assign as _, videoSelfieEvents as a, createActor as b, moduleClosed as c, screenEvent as d, screenOpened as f, setup as g, subscribeEvent as h, tutorialScreenNamesMapper as i, moduleOpened as l, flushEventQueue as m, eventModuleNames as n, createManagerInstrumentation as o, addEvent as p, eventScreenNames as r, getDefaultManagerScreenName as s, cameraScreenNamesMapper as t, screenClosed as u, fromCallback as v, revokeObjectURL as x, fromPromise as y };
@@ -1,16 +1,16 @@
1
- import { v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import "./backCameraStream-DQY36Tsq.esm.js";
3
- import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-xUbMTjnz.esm.js";
4
- import "./streamingEvents-BNVENF4-.esm.js";
5
- import "./deepsightService-PlHPx0yD.esm.js";
1
+ import { b as createActor, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import "./backCameraStream-THvMPTG_.esm.js";
3
+ import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-D9pJSMO5.esm.js";
4
+ import "./recordingsRepository-D5Tfsc2D.esm.js";
5
+ import "./deepsightService-DaDUTB6Q.esm.js";
6
6
  import "./api-3fZO5bmj.esm.js";
7
7
  import "./endpoints-Bydn-Ave.esm.js";
8
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-hbqwL7Qt.esm.js";
8
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-Ctn8I9Rf.esm.js";
9
9
  import "./stats-D76Thmqp.esm.js";
10
- import { n as faceCaptureMachine } from "./faceCaptureSetup-BQ7cV8vo.esm.js";
11
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Yjdutfo0.esm.js";
12
- import { n as createEmailManagerFromActor } from "./emailManager-B5pmZ3O4.esm.js";
13
- import { n as createSelfieManagerFromActor } from "./selfieManager-DMnrP5LU.esm.js";
14
- import { n as createPhoneManagerFromActor } from "./phoneManager-CXYPFfUs.esm.js";
10
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CW_ZDHuU.esm.js";
11
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DACsi9Bs.esm.js";
12
+ import { n as createEmailManagerFromActor } from "./emailManager-DPTdyYgi.esm.js";
13
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BXRLyPy4.esm.js";
14
+ import { n as createPhoneManagerFromActor } from "./phoneManager-BzZI460X.esm.js";
15
15
 
16
16
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
@@ -1,5 +1,5 @@
1
- import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
@@ -83,14 +83,7 @@ const faceMatchMachine = setup({
83
83
  images: null,
84
84
  result: null,
85
85
  error: void 0
86
- })),
87
- trackContinue: () => {
88
- addEvent({
89
- code: "continue",
90
- module: eventModuleNames.faceMatch,
91
- screen: eventScreenNames.faceMatch
92
- });
93
- }
86
+ }))
94
87
  },
95
88
  guards: { isAnimationDisabled: ({ context }) => context.config.disableFaceMatchAnimation === true }
96
89
  }).createMachine({
@@ -122,10 +115,7 @@ const faceMatchMachine = setup({
122
115
  }
123
116
  } },
124
117
  animating: { on: { ANIMATION_COMPLETE: { target: "result" } } },
125
- result: { on: { CONTINUE: {
126
- target: "finished",
127
- actions: "trackContinue"
128
- } } },
118
+ result: { on: { CONTINUE: { target: "finished" } } },
129
119
  finished: { type: "final" },
130
120
  error: { on: { RESET: {
131
121
  target: "idle",