@incodetech/core 0.0.0-dev-20260323-7ccb042 → 0.0.0-dev-20260323-d5fdccb

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 (42) hide show
  1. package/dist/{addressSearch-DUewuEoH.esm.js → addressSearch-BBIa1heY.esm.js} +2 -2
  2. package/dist/authentication.d.ts +3 -3
  3. package/dist/authentication.esm.js +7 -7
  4. package/dist/{authenticationManager-BjTgDn8A.d.ts → authenticationManager-DZFI79F5.d.ts} +1 -1
  5. package/dist/{authenticationManager-D2XK2lTw.esm.js → authenticationManager-h6dB_vib.esm.js} +4 -4
  6. package/dist/{backCameraStream-DN_DmYvJ.esm.js → backCameraStream-BPxNH3Pg.esm.js} +1 -1
  7. package/dist/consent.esm.js +5 -3
  8. package/dist/curp-validation.esm.js +9 -3
  9. package/dist/{deepsightLoader-D-gWAouI.esm.js → deepsightLoader-CZ_4kZPK.esm.js} +2 -2
  10. package/dist/{deepsightService-DElx3aC-.esm.js → deepsightService-DFek2Sxh.esm.js} +7 -1
  11. package/dist/{deepsightService-CdGGD_BP.d.ts → deepsightService-foKxxo3y.d.ts} +2 -0
  12. package/dist/document-capture.esm.js +11 -4
  13. package/dist/document-upload.esm.js +7 -4
  14. package/dist/ekyb.esm.js +9 -4
  15. package/dist/ekyc.esm.js +8 -4
  16. package/dist/email.esm.js +3 -3
  17. package/dist/{emailManager-B8mMir96.esm.js → emailManager-OpJLWD9-.esm.js} +7 -3
  18. package/dist/{events-CpjfmM8q.esm.js → events-DzHYCTUI.esm.js} +25 -6
  19. package/dist/extensibility.d.ts +5 -5
  20. package/dist/extensibility.esm.js +11 -11
  21. package/dist/face-match.esm.js +4 -3
  22. package/dist/{faceCaptureManagerFactory-BulU7xFu.d.ts → faceCaptureManagerFactory-Bavynz5Q.d.ts} +4 -1
  23. package/dist/{faceCaptureSetup-CCMaAwTM.esm.js → faceCaptureSetup-BOmXn1op.esm.js} +17 -6
  24. package/dist/flow.esm.js +10 -4
  25. package/dist/geolocation.esm.js +6 -3
  26. package/dist/government-validation.esm.js +6 -3
  27. package/dist/id.d.ts +2 -2
  28. package/dist/id.esm.js +6 -6
  29. package/dist/{idCaptureManager-DobE_UEx.esm.js → idCaptureManager-DPzinE1o.esm.js} +26 -8
  30. package/dist/{idCaptureManager-DCXMoCXo.d.ts → idCaptureManager-Ih_zvBCr.d.ts} +4 -1
  31. package/dist/index.d.ts +13 -3
  32. package/dist/index.esm.js +7 -7
  33. package/dist/phone.esm.js +3 -3
  34. package/dist/{phoneManager-CXAVd4Na.esm.js → phoneManager-BwBW-tRA.esm.js} +7 -3
  35. package/dist/{recordingsRepository-V9xqQTl6.esm.js → recordingsRepository-DVPWOR9j.esm.js} +1 -1
  36. package/dist/redirect-to-mobile.esm.js +7 -3
  37. package/dist/selfie.d.ts +3 -3
  38. package/dist/selfie.esm.js +7 -7
  39. package/dist/{selfieManager-vePEfZwp.esm.js → selfieManager-DT0oJmpD.esm.js} +3 -3
  40. package/dist/{selfieManager-BqX2VFj1.d.ts → selfieManager-uSCpF37G.d.ts} +1 -1
  41. package/dist/{src-Dmccepc9.esm.js → src-Cmpz4Jmw.esm.js} +14 -4
  42. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { _ as assign, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
3
- import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-Dmccepc9.esm.js";
4
- import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-V9xqQTl6.esm.js";
1
+ import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-BPxNH3Pg.esm.js";
3
+ import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-Cmpz4Jmw.esm.js";
4
+ import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-DVPWOR9j.esm.js";
5
5
  import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
6
6
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
7
7
  import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
@@ -64,33 +64,42 @@ function mapState(snapshot) {
64
64
  }
65
65
  return { status: "idle" };
66
66
  }
67
- function createApi({ actor }) {
67
+ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
68
+ const snapshot = actor.getSnapshot();
69
+ snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
68
70
  return {
69
71
  load() {
70
72
  actor.send({ type: "LOAD" });
71
73
  },
72
74
  nextStep() {
75
+ trackElementClicked?.("nextStep");
73
76
  actor.send({ type: "NEXT_STEP" });
74
77
  },
75
78
  requestPermission() {
79
+ trackElementClicked?.("requestPermission");
76
80
  actor.send({ type: "REQUEST_PERMISSION" });
77
81
  },
78
82
  goToLearnMore() {
83
+ trackElementClicked?.("goToLearnMore");
79
84
  actor.send({ type: "GO_TO_LEARN_MORE" });
80
85
  },
81
86
  back() {
87
+ trackElementClicked?.("back");
82
88
  actor.send({ type: "BACK" });
83
89
  },
84
90
  close() {
91
+ trackElementClicked?.("close");
85
92
  actor.send({ type: "QUIT" });
86
93
  },
87
94
  reset() {
88
95
  actor.send({ type: "RESET" });
89
96
  },
90
97
  retryCapture() {
98
+ trackElementClicked?.("retryCapture");
91
99
  actor.send({ type: "RETRY_CAPTURE" });
92
100
  },
93
101
  capture() {
102
+ trackElementClicked?.("capture");
94
103
  actor.send({ type: "MANUAL_CAPTURE" });
95
104
  }
96
105
  };
@@ -355,7 +364,7 @@ async function stopRecording(session) {
355
364
  }
356
365
  }
357
366
  async function initializeDeepsightSession(options) {
358
- const { loadDeepsightSession } = await import("./deepsightLoader-D-gWAouI.esm.js");
367
+ const { loadDeepsightSession } = await import("./deepsightLoader-CZ_4kZPK.esm.js");
359
368
  return loadDeepsightSession({
360
369
  ds: options.ds,
361
370
  storage: options.storage
@@ -517,6 +526,8 @@ const _faceCaptureMachine = setup({
517
526
  try {
518
527
  if (ctx.deepsightService) await Promise.all([ctx.deepsightService.performVirtualCameraCheck(sessionToken, "SELFIE"), ctx.deepsightService.analyzeFrame(ctx.capturedImage.getImageData())]);
519
528
  } catch (error) {}
529
+ const logs = ctx.deepsightService?.getPipelineState() ?? "";
530
+ ctx.dependencies.trackCaptureAttemptFinished?.({ logs });
520
531
  return {
521
532
  encryptedBase64Image: await encryptSelfieImage({
522
533
  canvas: ctx.capturedImage,
package/dist/flow.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { A as createManager } from "./src-Dmccepc9.esm.js";
1
+ import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { A as createManager } from "./src-Cmpz4Jmw.esm.js";
3
3
  import "./api-3fZO5bmj.esm.js";
4
4
  import "./endpoints-Bydn-Ave.esm.js";
5
5
  import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
@@ -158,7 +158,7 @@ function mapState$1(snapshot) {
158
158
  default: return { status: "idle" };
159
159
  }
160
160
  }
161
- function createApi$1({ actor, getSnapshot }) {
161
+ function createApi$1({ actor, getSnapshot, trackElementClicked }) {
162
162
  function getCanNext() {
163
163
  const snapshot = getSnapshot();
164
164
  const { currentStepIndex, steps } = snapshot.context;
@@ -183,15 +183,18 @@ function createApi$1({ actor, getSnapshot }) {
183
183
  actor.send({ type: "LOAD" });
184
184
  },
185
185
  cancel() {
186
+ trackElementClicked?.("cancel");
186
187
  actor.send({ type: "CANCEL" });
187
188
  },
188
189
  reset() {
189
190
  actor.send({ type: "RESET" });
190
191
  },
191
192
  nextStep() {
193
+ trackElementClicked?.("nextStep");
192
194
  actor.send({ type: "NEXT_STEP" });
193
195
  },
194
196
  prevStep() {
197
+ trackElementClicked?.("prevStep");
195
198
  actor.send({ type: "PREV_STEP" });
196
199
  },
197
200
  get canNext() {
@@ -529,7 +532,7 @@ function mapState(snapshot) {
529
532
  default: return { status: "idle" };
530
533
  }
531
534
  }
532
- function createApi({ actor, getSnapshot }) {
535
+ function createApi({ actor, getSnapshot, trackElementClicked }) {
533
536
  function getCanNext() {
534
537
  const snapshot = getSnapshot();
535
538
  const { currentStepIndex, steps } = snapshot.context;
@@ -550,15 +553,18 @@ function createApi({ actor, getSnapshot }) {
550
553
  actor.send({ type: "LOAD" });
551
554
  },
552
555
  cancel() {
556
+ trackElementClicked?.("cancel");
553
557
  actor.send({ type: "CANCEL" });
554
558
  },
555
559
  reset() {
556
560
  actor.send({ type: "RESET" });
557
561
  },
558
562
  completeModule() {
563
+ trackElementClicked?.("completeModule");
559
564
  actor.send({ type: "MODULE_COMPLETE" });
560
565
  },
561
566
  completeFlow() {
567
+ trackElementClicked?.("completeFlow");
562
568
  actor.send({ type: "COMPLETE_FLOW" });
563
569
  },
564
570
  errorModule(error) {
@@ -1,5 +1,5 @@
1
- import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-Dmccepc9.esm.js";
1
+ import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-Cmpz4Jmw.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
 
@@ -131,15 +131,18 @@ function mapState(snapshot) {
131
131
  if (typedSnapshot.matches("finished")) return { status: "finished" };
132
132
  return { status: "idle" };
133
133
  }
134
- function createApi({ actor }) {
134
+ function createApi({ actor, trackElementClicked }) {
135
135
  return {
136
136
  request() {
137
+ trackElementClicked?.("request");
137
138
  actor.send({ type: "REQUEST" });
138
139
  },
139
140
  continue() {
141
+ trackElementClicked?.("continue");
140
142
  actor.send({ type: "CONTINUE" });
141
143
  },
142
144
  skip() {
145
+ trackElementClicked?.("skip");
143
146
  actor.send({ type: "SKIP" });
144
147
  },
145
148
  reset() {
@@ -1,5 +1,5 @@
1
- import { _ as assign, b as createActor, g as setup, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
1
+ import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-Cmpz4Jmw.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
 
@@ -302,7 +302,7 @@ function mapState(snapshot) {
302
302
  };
303
303
  return { status: "idle" };
304
304
  }
305
- function createApi({ actor }) {
305
+ function createApi({ actor, trackElementClicked }) {
306
306
  return {
307
307
  load() {
308
308
  actor.send({ type: "LOAD" });
@@ -314,6 +314,7 @@ function createApi({ actor }) {
314
314
  });
315
315
  },
316
316
  submitOtp(code) {
317
+ trackElementClicked?.("submitOtp");
317
318
  actor.send({
318
319
  type: "OTP_CHANGED",
319
320
  code
@@ -321,9 +322,11 @@ function createApi({ actor }) {
321
322
  actor.send({ type: "SUBMIT_OTP" });
322
323
  },
323
324
  resendOtp() {
325
+ trackElementClicked?.("resendOtp");
324
326
  actor.send({ type: "RESEND_OTP" });
325
327
  },
326
328
  retry() {
329
+ trackElementClicked?.("retry");
327
330
  actor.send({ type: "RETRY" });
328
331
  }
329
332
  };
package/dist/id.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-DCXMoCXo.js";
2
- import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-CdGGD_BP.js";
1
+ import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-Ih_zvBCr.js";
2
+ import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-foKxxo3y.js";
3
3
  import "./Manager-CVDYGoSq.js";
4
4
  import { t as CameraStream } from "./camera-CVBwqx-j.js";
5
5
  import "./Actor-D6rhGxJy.js";
package/dist/id.esm.js CHANGED
@@ -1,11 +1,11 @@
1
- import "./events-CpjfmM8q.esm.js";
2
- import "./backCameraStream-DN_DmYvJ.esm.js";
3
- import "./src-Dmccepc9.esm.js";
4
- import "./recordingsRepository-V9xqQTl6.esm.js";
5
- import "./deepsightService-DElx3aC-.esm.js";
1
+ import "./events-DzHYCTUI.esm.js";
2
+ import "./backCameraStream-BPxNH3Pg.esm.js";
3
+ import "./src-Cmpz4Jmw.esm.js";
4
+ import "./recordingsRepository-DVPWOR9j.esm.js";
5
+ import "./deepsightService-DFek2Sxh.esm.js";
6
6
  import "./api-3fZO5bmj.esm.js";
7
7
  import "./endpoints-Bydn-Ave.esm.js";
8
- import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DobE_UEx.esm.js";
8
+ import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DPzinE1o.esm.js";
9
9
  import "./stats-D76Thmqp.esm.js";
10
10
  import "./id-r_CoQ3r-.esm.js";
11
11
 
@@ -1,8 +1,8 @@
1
- import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, p as addEvent, s as getDefaultManagerScreenName, v as fromCallback, x as revokeObjectURL, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DN_DmYvJ.esm.js";
3
- import { A as createManager, I as isDesktop, N as getWindowDimensions, S as StreamCanvasCapture, T as IncodeCanvas, _ as BrowserStorageProvider, d as OpenViduRecordingProvider, g as BrowserTimerProvider, h as FingerprintProvider, i as DEFAULT_ID_CAPTURE_THRESHOLDS, m as IpifyProvider, o as IdCaptureProvider, r as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as BrowserInfoProvider, x as StreamCanvasProcessingSession, y as BrowserEnvironmentProvider } from "./src-Dmccepc9.esm.js";
4
- import { a as checkPermission, c as getDeviceClass, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-V9xqQTl6.esm.js";
5
- import { n as isBrowserSimulation } from "./deepsightService-DElx3aC-.esm.js";
1
+ import { C as revokeObjectURL, S as createActor, b as fromCallback, h as addEvent, n as eventModuleNames, o as createManagerInstrumentation, s as getDefaultManagerScreenName, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-BPxNH3Pg.esm.js";
3
+ import { A as createManager, I as isDesktop, N as getWindowDimensions, S as StreamCanvasCapture, T as IncodeCanvas, _ as BrowserStorageProvider, d as OpenViduRecordingProvider, g as BrowserTimerProvider, h as FingerprintProvider, i as DEFAULT_ID_CAPTURE_THRESHOLDS, m as IpifyProvider, o as IdCaptureProvider, r as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as BrowserInfoProvider, x as StreamCanvasProcessingSession, y as BrowserEnvironmentProvider } from "./src-Cmpz4Jmw.esm.js";
4
+ import { a as checkPermission, c as getDeviceClass, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-DVPWOR9j.esm.js";
5
+ import { n as isBrowserSimulation } from "./deepsightService-DFek2Sxh.esm.js";
6
6
  import { n as getApi, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
7
7
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
8
8
  import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
@@ -774,6 +774,8 @@ const uploadIdImageActor = fromPromise(async ({ input, signal }) => {
774
774
  metadata = input.deepsightService.getMetadata();
775
775
  } catch {}
776
776
  const imageData = input.canvas?.getImageData() ?? void 0;
777
+ const logs = input.deepsightService?.getPipelineState() ?? "";
778
+ input.dependencies?.trackCaptureAttemptFinished?.({ logs });
777
779
  return uploadIdImage({
778
780
  image,
779
781
  type: input.type,
@@ -822,7 +824,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
822
824
  });
823
825
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
824
826
  if (!input.dependencies) return;
825
- const { loadDeepsightSession } = await import("./deepsightLoader-D-gWAouI.esm.js");
827
+ const { loadDeepsightSession } = await import("./deepsightLoader-CZ_4kZPK.esm.js");
826
828
  return loadDeepsightSession({
827
829
  ds: input.ds,
828
830
  storage: input.dependencies.storage,
@@ -1733,7 +1735,8 @@ const _idCaptureMachine = setup({
1733
1735
  deepsightService: context.deepsightService,
1734
1736
  stream: context.stream,
1735
1737
  isSecondId: context.config.isSecondId ?? false,
1736
- onlyFront: context.config.onlyFront
1738
+ onlyFront: context.config.onlyFront,
1739
+ dependencies: context.dependencies
1737
1740
  };
1738
1741
  },
1739
1742
  onDone: {
@@ -2090,54 +2093,69 @@ function mapState(snapshot) {
2090
2093
  };
2091
2094
  return { status: "idle" };
2092
2095
  }
2093
- function createApi({ actor }) {
2096
+ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
2097
+ const snapshot = actor.getSnapshot();
2098
+ if (snapshot.context.dependencies) snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
2094
2099
  return {
2095
2100
  load() {
2096
2101
  actor.send({ type: "LOAD" });
2097
2102
  },
2098
2103
  selectDocument(documentType) {
2104
+ trackElementClicked?.(`selectDocument.${documentType}`);
2099
2105
  actor.send({
2100
2106
  type: "SELECT_DOCUMENT",
2101
2107
  documentType
2102
2108
  });
2103
2109
  },
2104
2110
  nextStep() {
2111
+ trackElementClicked?.("nextStep");
2105
2112
  actor.send({ type: "NEXT_STEP" });
2106
2113
  },
2107
2114
  requestPermission() {
2115
+ trackElementClicked?.("requestPermission");
2108
2116
  actor.send({ type: "REQUEST_PERMISSION" });
2109
2117
  },
2110
2118
  goToLearnMore() {
2119
+ trackElementClicked?.("goToLearnMore");
2111
2120
  actor.send({ type: "GO_TO_LEARN_MORE" });
2112
2121
  },
2113
2122
  back() {
2123
+ trackElementClicked?.("back");
2114
2124
  actor.send({ type: "BACK" });
2115
2125
  },
2116
2126
  close() {
2127
+ trackElementClicked?.("close");
2117
2128
  actor.send({ type: "QUIT" });
2118
2129
  },
2119
2130
  reset() {
2120
2131
  actor.send({ type: "RESET" });
2121
2132
  },
2122
2133
  retryCapture() {
2134
+ trackElementClicked?.("retryCapture");
2123
2135
  actor.send({ type: "RETRY_CAPTURE" });
2124
2136
  },
2125
2137
  continueFromError() {
2138
+ trackElementClicked?.("continueFromError");
2126
2139
  actor.send({ type: "CONTINUE_FROM_ERROR" });
2127
2140
  },
2128
2141
  capture() {
2142
+ trackElementClicked?.("capture");
2129
2143
  actor.send({ type: "MANUAL_CAPTURE" });
2130
2144
  },
2131
2145
  switchToManualCapture() {
2146
+ trackElementClicked?.("switchToManualCapture");
2132
2147
  actor.send({ type: "SWITCH_TO_MANUAL_CAPTURE" });
2133
2148
  },
2134
2149
  continueToBack() {
2150
+ trackElementClicked?.("continueToBack");
2135
2151
  actor.send({ type: "CONTINUE_TO_BACK" });
2136
2152
  },
2137
2153
  continueToFront() {
2154
+ trackElementClicked?.("continueToFront");
2138
2155
  actor.send({ type: "CONTINUE_TO_FRONT" });
2139
2156
  },
2140
2157
  skipBack() {
2158
+ trackElementClicked?.("skipBack");
2141
2159
  actor.send({ type: "SKIP_BACK" });
2142
2160
  },
2143
2161
  updateDetectionArea(detectionArea) {
@@ -1,4 +1,4 @@
1
- import { a as IStorageCapability, c as IMotionSensorCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, s as RecordingConnection, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-CdGGD_BP.js";
1
+ import { a as IStorageCapability, c as IMotionSensorCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, s as RecordingConnection, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-foKxxo3y.js";
2
2
  import { t as Manager } from "./Manager-CVDYGoSq.js";
3
3
  import { t as CameraStream } from "./camera-CVBwqx-j.js";
4
4
  import { t as ActorRefFrom } from "./Actor-D6rhGxJy.js";
@@ -427,6 +427,9 @@ type IdCaptureEvent = {
427
427
  };
428
428
  type IdCaptureDependencies = {
429
429
  storage: IStorageCapability;
430
+ trackCaptureAttemptFinished?: (payload: {
431
+ logs: string;
432
+ }) => void;
430
433
  };
431
434
  type IdCaptureInput = {
432
435
  config: IdCaptureConfig;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-DCXMoCXo.js";
2
- import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-CdGGD_BP.js";
1
+ import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-Ih_zvBCr.js";
2
+ import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-foKxxo3y.js";
3
3
  import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-DoQLFT3z.js";
4
4
  import "./Manager-CVDYGoSq.js";
5
5
  import { t as CameraStream } from "./camera-CVBwqx-j.js";
@@ -570,10 +570,20 @@ type ScreenEventParams = {
570
570
  code: string;
571
571
  payload?: Record<string, unknown>;
572
572
  };
573
+ type ElementClickedPayload = {
574
+ element: string;
575
+ action?: string;
576
+ metadata?: Record<string, unknown>;
577
+ };
578
+ type CaptureAttemptFinishedPayload = {
579
+ logs: string;
580
+ };
573
581
  declare function screenEvent(params: ScreenEventParams): void;
574
582
  declare function moduleOpened(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
575
583
  declare function moduleClosed(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
576
584
  declare function screenOpened(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
577
585
  declare function screenClosed(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
586
+ declare function elementClicked(module: EventModule | string, screen: EventScreen | string | undefined, payload: ElementClickedPayload): void;
587
+ declare function captureAttemptFinished(module: EventModule | string, screen: EventScreen | string | undefined, payload: CaptureAttemptFinishedPayload): void;
578
588
  //#endregion
579
- export { type Browser, CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DEFAULT_WASM_VERSION, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
589
+ export { type Browser, CameraStream, type CaptureAttemptFinishedPayload, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DEFAULT_WASM_VERSION, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type ElementClickedPayload, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
package/dist/index.esm.js CHANGED
@@ -1,11 +1,11 @@
1
- import { a as videoSelfieEvents, c as moduleClosed, d as screenEvent, f as screenOpened, h as subscribeEvent, i as tutorialScreenNamesMapper, l as moduleOpened, m as flushEventQueue, n as eventModuleNames, p as addEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as screenClosed } from "./events-CpjfmM8q.esm.js";
2
- import "./backCameraStream-DN_DmYvJ.esm.js";
3
- import { R as isIPad, a as WasmUtilProvider, c as warmupWasm, j as createApi_default, n as buildDefaultWasmConfig, t as DEFAULT_WASM_VERSION, u as ScreenOrientationProvider } from "./src-Dmccepc9.esm.js";
4
- import { a as checkPermission, c as getDeviceClass, l as getBrowser, o as requestPermission, s as createScreenOrientationObserver } from "./recordingsRepository-V9xqQTl6.esm.js";
5
- import "./deepsightService-DElx3aC-.esm.js";
1
+ import { _ as subscribeEvent, a as videoSelfieEvents, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as flushEventQueue, h 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-DzHYCTUI.esm.js";
2
+ import "./backCameraStream-BPxNH3Pg.esm.js";
3
+ import { R as isIPad, a as WasmUtilProvider, c as warmupWasm, j as createApi_default, n as buildDefaultWasmConfig, t as DEFAULT_WASM_VERSION, u as ScreenOrientationProvider } from "./src-Cmpz4Jmw.esm.js";
4
+ import { a as checkPermission, c as getDeviceClass, l as getBrowser, o as requestPermission, s as createScreenOrientationObserver } from "./recordingsRepository-DVPWOR9j.esm.js";
5
+ import "./deepsightService-DFek2Sxh.esm.js";
6
6
  import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-3fZO5bmj.esm.js";
7
7
  import "./endpoints-Bydn-Ave.esm.js";
8
- import { _ as resetSessionInit, a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, g as isSessionInitialized, h as initializeSession, i as idCaptureMachine, l as stopStream, m as getSessionFeatures, o as processId, p as getDisableIpify, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage, v as createSession } from "./idCaptureManager-DobE_UEx.esm.js";
8
+ import { _ as resetSessionInit, a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, g as isSessionInitialized, h as initializeSession, i as idCaptureMachine, l as stopStream, m as getSessionFeatures, o as processId, p as getDisableIpify, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage, v as createSession } from "./idCaptureManager-DPzinE1o.esm.js";
9
9
  import "./stats-D76Thmqp.esm.js";
10
10
  import "./id-r_CoQ3r-.esm.js";
11
11
 
@@ -120,4 +120,4 @@ function reset() {
120
120
  }
121
121
 
122
122
  //#endregion
123
- export { DEFAULT_WASM_VERSION, ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
123
+ export { DEFAULT_WASM_VERSION, ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
package/dist/phone.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./events-CpjfmM8q.esm.js";
2
- import "./src-Dmccepc9.esm.js";
1
+ import "./events-DzHYCTUI.esm.js";
2
+ import "./src-Cmpz4Jmw.esm.js";
3
3
  import "./api-3fZO5bmj.esm.js";
4
4
  import "./endpoints-Bydn-Ave.esm.js";
5
- import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-CXAVd4Na.esm.js";
5
+ import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-BwBW-tRA.esm.js";
6
6
 
7
7
  export { createPhoneManager, phoneMachine };
@@ -1,5 +1,5 @@
1
- import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
1
+ import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-Cmpz4Jmw.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
 
@@ -443,7 +443,7 @@ function mapState(snapshot) {
443
443
  };
444
444
  return { status: "idle" };
445
445
  }
446
- function createApi({ actor }) {
446
+ function createApi({ actor, trackElementClicked }) {
447
447
  return {
448
448
  load() {
449
449
  actor.send({ type: "LOAD" });
@@ -462,6 +462,7 @@ function createApi({ actor }) {
462
462
  });
463
463
  },
464
464
  submit() {
465
+ trackElementClicked?.("submit");
465
466
  actor.send({ type: "SUBMIT" });
466
467
  },
467
468
  setOtpCode(code) {
@@ -471,6 +472,7 @@ function createApi({ actor }) {
471
472
  });
472
473
  },
473
474
  submitOtp(code) {
475
+ trackElementClicked?.("submitOtp");
474
476
  actor.send({
475
477
  type: "OTP_CHANGED",
476
478
  code
@@ -478,9 +480,11 @@ function createApi({ actor }) {
478
480
  actor.send({ type: "VERIFY_OTP" });
479
481
  },
480
482
  resendOtp() {
483
+ trackElementClicked?.("resendOtp");
481
484
  actor.send({ type: "RESEND_OTP" });
482
485
  },
483
486
  back() {
487
+ trackElementClicked?.("back");
484
488
  actor.send({ type: "BACK" });
485
489
  },
486
490
  reset() {
@@ -1,4 +1,4 @@
1
- import { C as queryCameraPermission, M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, R as isIPad, f as MotionSensorProvider, k as stopCameraStream } from "./src-Dmccepc9.esm.js";
1
+ import { C as queryCameraPermission, M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, R as isIPad, f as MotionSensorProvider, k as stopCameraStream } from "./src-Cmpz4Jmw.esm.js";
2
2
  import { t as api } from "./api-3fZO5bmj.esm.js";
3
3
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
4
4
 
@@ -1,5 +1,5 @@
1
- import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromCallback, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-Dmccepc9.esm.js";
1
+ import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-Cmpz4Jmw.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
 
@@ -273,27 +273,31 @@ function mapState(snapshot) {
273
273
  };
274
274
  return { status: "idle" };
275
275
  }
276
- function createApi({ actor }) {
276
+ function createApi({ actor, trackElementClicked }) {
277
277
  return {
278
278
  load() {
279
279
  actor.send({ type: "LOAD" });
280
280
  },
281
281
  sendSms(phone) {
282
+ trackElementClicked?.("sendSms");
282
283
  actor.send({
283
284
  type: "SEND_SMS",
284
285
  phone
285
286
  });
286
287
  },
287
288
  continueOnDesktop() {
289
+ trackElementClicked?.("continueOnDesktop");
288
290
  actor.send({ type: "CONTINUE_ON_DESKTOP" });
289
291
  },
290
292
  resetSms() {
291
293
  actor.send({ type: "RESET_SMS" });
292
294
  },
293
295
  close() {
296
+ trackElementClicked?.("close");
294
297
  actor.send({ type: "CLOSE" });
295
298
  },
296
299
  retry() {
300
+ trackElementClicked?.("retry");
297
301
  actor.send({ type: "RETRY" });
298
302
  }
299
303
  };
package/dist/selfie.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-CdGGD_BP.js";
2
- import { _ as DetectionStatus, a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as FaceErrorCode } from "./faceCaptureManagerFactory-BulU7xFu.js";
1
+ import { n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-foKxxo3y.js";
2
+ import { _ as DetectionStatus, a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as FaceErrorCode } from "./faceCaptureManagerFactory-Bavynz5Q.js";
3
3
  import "./warmup-DoQLFT3z.js";
4
4
  import "./Manager-CVDYGoSq.js";
5
5
  import { t as CameraStream } from "./camera-CVBwqx-j.js";
@@ -7,5 +7,5 @@ import "./Actor-D6rhGxJy.js";
7
7
  import "./StateMachine-BqtRw_hz.js";
8
8
  import "./types-CHzupruc.js";
9
9
  import "./types-DSJflCEU.js";
10
- import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-BqX2VFj1.js";
10
+ import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-uSCpF37G.js";
11
11
  export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
@@ -1,12 +1,12 @@
1
- import "./events-CpjfmM8q.esm.js";
2
- import "./backCameraStream-DN_DmYvJ.esm.js";
3
- import "./src-Dmccepc9.esm.js";
4
- import "./recordingsRepository-V9xqQTl6.esm.js";
5
- import "./deepsightService-DElx3aC-.esm.js";
1
+ import "./events-DzHYCTUI.esm.js";
2
+ import "./backCameraStream-BPxNH3Pg.esm.js";
3
+ import "./src-Cmpz4Jmw.esm.js";
4
+ import "./recordingsRepository-DVPWOR9j.esm.js";
5
+ import "./deepsightService-DFek2Sxh.esm.js";
6
6
  import "./api-3fZO5bmj.esm.js";
7
7
  import "./endpoints-Bydn-Ave.esm.js";
8
8
  import "./stats-D76Thmqp.esm.js";
9
- import { n as processFace } from "./faceCaptureSetup-CCMaAwTM.esm.js";
10
- import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-vePEfZwp.esm.js";
9
+ import { n as processFace } from "./faceCaptureSetup-BOmXn1op.esm.js";
10
+ import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-DT0oJmpD.esm.js";
11
11
 
12
12
  export { createSelfieManager, processFace, selfieMachine };
@@ -1,6 +1,6 @@
1
- import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-CpjfmM8q.esm.js";
2
- import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Dmccepc9.esm.js";
3
- import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-CCMaAwTM.esm.js";
1
+ import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
+ import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Cmpz4Jmw.esm.js";
3
+ import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-BOmXn1op.esm.js";
4
4
 
5
5
  //#region src/modules/selfie/selfieErrorUtils.ts
6
6
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
@@ -1,4 +1,4 @@
1
- import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-BulU7xFu.js";
1
+ import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-Bavynz5Q.js";
2
2
  import { t as Manager } from "./Manager-CVDYGoSq.js";
3
3
 
4
4
  //#region src/modules/selfie/selfieUploadService.d.ts
@@ -2001,14 +2001,24 @@ function createManager(options) {
2001
2001
  });
2002
2002
  return () => subscription.unsubscribe();
2003
2003
  }
2004
+ let currentScreenName = instrumentation.getScreenName(getSnapshot());
2005
+ let currentErrorName = instrumentation.getErrorName(getSnapshot());
2006
+ let currentErrorPayload = instrumentation.getErrorPayload(getSnapshot());
2004
2007
  const api = createApi$1({
2005
2008
  actor,
2006
- getSnapshot
2009
+ getSnapshot,
2010
+ trackElementClicked: (elementName, payload) => {
2011
+ instrumentation.onElementClicked?.(instrumentation.moduleName, currentScreenName, {
2012
+ element: elementName,
2013
+ action: payload?.action,
2014
+ metadata: payload?.metadata
2015
+ });
2016
+ },
2017
+ trackCaptureAttemptFinished: (payload) => {
2018
+ instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentScreenName, { logs: payload.logs });
2019
+ }
2007
2020
  });
2008
2021
  instrumentation.onModuleOpened(instrumentation.moduleName);
2009
- let currentScreenName = instrumentation.getScreenName(getSnapshot());
2010
- let currentErrorName = instrumentation.getErrorName(getSnapshot());
2011
- let currentErrorPayload = instrumentation.getErrorPayload(getSnapshot());
2012
2022
  if (currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
2013
2023
  if (currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentErrorPayload);
2014
2024
  const actorSubscription = actor.subscribe((snapshot) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260323-7ccb042",
3
+ "version": "0.0.0-dev-20260323-d5fdccb",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",