@incodetech/core 0.0.0-dev-20260727-4e22043f → 0.0.0-dev-20260728-bbd74326

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 (56) hide show
  1. package/dist/{Face2DProvider-xWUeSJZI.esm.js → Face2DProvider-BZCsS_sf.esm.js} +16 -4
  2. package/dist/PrivacyLensProvider-DA3rp6sf.esm.js +727 -0
  3. package/dist/authentication.d.ts +2 -2
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-CqcUarZL.esm.js → authenticationManager-DAAdpM_f.esm.js} +2 -2
  6. package/dist/{authenticationManager-Ce1nLm5y.d.ts → authenticationManager-DqyCzK3H.d.ts} +1 -1
  7. package/dist/{authenticationStateMachine-C65ym-xr.esm.js → authenticationStateMachine-oxArsYdg.esm.js} +2 -2
  8. package/dist/avatar.esm.js +1 -1
  9. package/dist/avatarStats-BIB3SREM.esm.js +146 -0
  10. package/dist/consent.d.ts +1 -1
  11. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
  12. package/dist/{createFaceAvatar-CwVapQiu.esm.js → createFaceAvatar-x5aaJwVM.esm.js} +2 -2
  13. package/dist/{deepsightLoader-P9BYMXpo.esm.js → deepsightLoader-Dlc_Weco.esm.js} +1 -1
  14. package/dist/document-upload.d.ts +4 -4
  15. package/dist/ekyb.esm.js +3 -3
  16. package/dist/{ekybManager-viscdI3d.esm.js → ekybManager-C8D2E58Z.esm.js} +1 -1
  17. package/dist/{ekybStateMachine-DR_8mE1j.esm.js → ekybStateMachine-vndKNS03.esm.js} +1 -1
  18. package/dist/extensibility.d.ts +8 -8
  19. package/dist/extensibility.esm.js +6 -6
  20. package/dist/{faceCaptureManagerFactory-BUE6z9iY.d.ts → faceCaptureManagerFactory-BpVpExwX.d.ts} +0 -6
  21. package/dist/{faceCaptureManagerFactory-BVZ3fonQ.esm.js → faceCaptureManagerFactory-C6IocH9G.esm.js} +1 -2
  22. package/dist/{faceCaptureSetup-DWPFfh6J.esm.js → faceCaptureSetup-6sVLFiOS.esm.js} +3 -11
  23. package/dist/flow.d.ts +2 -2
  24. package/dist/flow.esm.js +1 -1
  25. package/dist/{flowServices-DR1uBo_E.esm.js → flowServices-Cr7_BFYP.esm.js} +2 -2
  26. package/dist/id-ocr.d.ts +2 -2
  27. package/dist/id.d.ts +2 -2
  28. package/dist/id.esm.js +2 -2
  29. package/dist/{idCaptureManager-DZjNKCN0.esm.js → idCaptureManager-DmGinDs-.esm.js} +4 -3
  30. package/dist/{idCaptureManager-CtsYvX-Z.d.ts → idCaptureManager-DmVmaxd9.d.ts} +1 -2
  31. package/dist/{idCaptureStateMachine-CXMJ1Yjg.esm.js → idCaptureStateMachine-B-txehAH.esm.js} +25 -23
  32. package/dist/{idOcrManager-DlYG277_.d.ts → idOcrManager-5vi0uwLZ.d.ts} +1 -1
  33. package/dist/index.esm.js +1 -1
  34. package/dist/mandatory-consent.d.ts +1 -1
  35. package/dist/{mandatoryConsentManager-BobEyNBc.d.ts → mandatoryConsentManager-Ck2e2W4o.d.ts} +4 -4
  36. package/dist/{onDeviceFaceResults-Ck6PjuaN.esm.js → onDeviceFaceResults-CWYb5Pry.esm.js} +1 -1
  37. package/dist/personhood.esm.js +2 -2
  38. package/dist/{recordingService-C37o41ar.esm.js → recordingService-CWs4c_bi.esm.js} +1 -1
  39. package/dist/selfie.d.ts +2 -2
  40. package/dist/selfie.esm.js +4 -4
  41. package/dist/{selfieManager-CUSnS_Ty.esm.js → selfieManager-BG79dEch.esm.js} +2 -2
  42. package/dist/{selfieManager-LabfZln4.d.ts → selfieManager-DR-EIsRb.d.ts} +1 -1
  43. package/dist/{selfieStateMachine-CSTR3bTY.esm.js → selfieStateMachine-DIhTwBBG.esm.js} +2 -2
  44. package/dist/session-5JaQ3ELc.esm.js +1 -0
  45. package/dist/session.esm.js +2 -2
  46. package/dist/{sessionInitializer-B_GKYIAU.esm.js → sessionInitializer-CMwm-WD5.esm.js} +1 -1
  47. package/dist/{setup-Dr_yQTok.esm.js → setup-DOqvwH5q.esm.js} +2 -2
  48. package/dist/{types-D0ohdBDu.d.ts → types-DByREvr1.d.ts} +2 -4
  49. package/dist/video-selfie.esm.js +3 -3
  50. package/dist/wasm.esm.js +1 -1
  51. package/dist/workflow.d.ts +4 -4
  52. package/dist/workflow.esm.js +6 -6
  53. package/package.json +3 -3
  54. package/dist/PrivacyLensProvider-BrYSd1dr.esm.js +0 -336
  55. package/dist/session-DTuRfMtr.esm.js +0 -1
  56. /package/dist/{types-CBJI9n6h.d.ts → types-CBJI9n6h2.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BUE6z9iY.js";
1
+ import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BpVpExwX.js";
2
2
  import { t as AuthenticationConfig } from "./types-BAvkiv6L.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Ce1nLm5y.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DqyCzK3H.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-C65ym-xr.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CqcUarZL.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-oxArsYdg.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DAAdpM_f.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BVZ3fonQ.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-C6IocH9G.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-C65ym-xr.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-oxArsYdg.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BUE6z9iY.js";
3
+ import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BpVpExwX.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DWPFfh6J.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Ck6PjuaN.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-6sVLFiOS.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CWYb5Pry.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,2 +1,2 @@
1
- import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
1
+ import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
2
2
  export { createFaceAvatar };
@@ -0,0 +1,146 @@
1
+ /** Creates a tolerance-based fps cap. The first frame is always accepted. */
2
+ function createFramePacer(maxFps, toleranceMs = 8) {
3
+ const intervalMs = 1e3 / Math.max(maxFps, 1);
4
+ const minGapMs = Math.max(intervalMs - toleranceMs, 0);
5
+ let lastAcceptedAt = Number.NEGATIVE_INFINITY;
6
+ let dropped = 0;
7
+ return {
8
+ shouldRender(nowMs) {
9
+ if (nowMs - lastAcceptedAt >= minGapMs) {
10
+ lastAcceptedAt = nowMs;
11
+ return true;
12
+ }
13
+ dropped += 1;
14
+ return false;
15
+ },
16
+ get droppedCount() {
17
+ return dropped;
18
+ }
19
+ };
20
+ }
21
+ //#endregion
22
+ //#region ../infra/src/avatar/avatarStats.ts
23
+ /**
24
+ * Whether stats collection is on. Providers use this to skip the
25
+ * `performance.now()` bracketing entirely when off (zero production cost).
26
+ */
27
+ function isAvatarStatsEnabled() {
28
+ return globalThis.__incodeAvatarStatsEnabled === true;
29
+ }
30
+ /**
31
+ * Publishes a snapshot to the dev-global (no-op unless stats are enabled). The
32
+ * single owner of the `__incodeAvatarStats` key — used both by the in-process
33
+ * reporter below and by the privacy-lens provider when it relays a snapshot
34
+ * computed in its render worker, so the key/type live in exactly one place.
35
+ */
36
+ function publishAvatarStats(snapshot) {
37
+ if (!isAvatarStatsEnabled()) return;
38
+ globalThis.__incodeAvatarStats = snapshot;
39
+ }
40
+ /**
41
+ * Pure, self-contained windowing accumulator shared by the in-process reporter
42
+ * and the privacy-lens render worker. It MUST NOT reference any module-level
43
+ * value (constant, helper, or import): it is serialized via
44
+ * `Function.prototype.toString()` into the worker blob, where module scope does
45
+ * not exist, so everything it needs — the publish sink, the window sizes, the
46
+ * variant/mode — arrives through `config`. For the same reason p95 is inlined
47
+ * and `gaps.slice()` is used instead of spread. Gating (the reporter's
48
+ * {@link isAvatarStatsEnabled} check / the worker's `statsEnabled` flag) stays
49
+ * with the caller: every method here assumes stats are on when it is called.
50
+ */
51
+ function createStatsWindow(config) {
52
+ let droppedTotal = 0;
53
+ let renderedTotal = 0;
54
+ let windowStartMs = NaN;
55
+ let windowFrames = 0;
56
+ let windowUploadMs = 0;
57
+ let windowUploadCount = 0;
58
+ let windowDrawMs = 0;
59
+ let windowDrawCount = 0;
60
+ const gaps = [];
61
+ let lastFrameAt = NaN;
62
+ function publish(nowMs) {
63
+ const elapsed = nowMs - windowStartMs;
64
+ if (!(elapsed > 0)) return;
65
+ const renderedFps = Math.round(windowFrames / elapsed * 1e3 * 10) / 10;
66
+ const snapshot = {
67
+ variant: config.variant,
68
+ avatarFps: renderedFps,
69
+ renderedFps,
70
+ renderedTotal,
71
+ droppedByThrottle: droppedTotal,
72
+ tsMs: nowMs
73
+ };
74
+ if (config.mode !== void 0) snapshot.mode = config.mode;
75
+ if (windowUploadCount > 0) snapshot.uploadMsAvg = Math.round(windowUploadMs / windowUploadCount * 100) / 100;
76
+ if (windowDrawCount > 0) snapshot.drawMsAvg = Math.round(windowDrawMs / windowDrawCount * 100) / 100;
77
+ if (gaps.length > 0) {
78
+ const sorted = gaps.slice().sort((a, b) => a - b);
79
+ const idx = Math.min(sorted.length - 1, Math.floor(sorted.length * .95));
80
+ snapshot.frameGapP95Ms = Math.round(sorted[idx] * 10) / 10;
81
+ }
82
+ config.publish(snapshot);
83
+ windowStartMs = nowMs;
84
+ windowFrames = 0;
85
+ windowUploadMs = 0;
86
+ windowUploadCount = 0;
87
+ windowDrawMs = 0;
88
+ windowDrawCount = 0;
89
+ }
90
+ return {
91
+ noteRendered(nowMs, uploadMs, drawMs) {
92
+ renderedTotal += 1;
93
+ if (Number.isNaN(windowStartMs)) windowStartMs = nowMs;
94
+ else windowFrames += 1;
95
+ if (uploadMs !== void 0) {
96
+ windowUploadMs += uploadMs;
97
+ windowUploadCount += 1;
98
+ }
99
+ if (drawMs !== void 0) {
100
+ windowDrawMs += drawMs;
101
+ windowDrawCount += 1;
102
+ }
103
+ if (!Number.isNaN(lastFrameAt)) {
104
+ gaps.push(nowMs - lastFrameAt);
105
+ if (gaps.length > config.gapWindow) gaps.shift();
106
+ }
107
+ lastFrameAt = nowMs;
108
+ if (nowMs - windowStartMs >= config.publishIntervalMs) publish(nowMs);
109
+ },
110
+ noteDropped() {
111
+ droppedTotal += 1;
112
+ }
113
+ };
114
+ }
115
+ /**
116
+ * Creates a per-provider reporter. Publishing is driven lazily from the frame
117
+ * callbacks (no timers to leak); when {@link isAvatarStatsEnabled} is false
118
+ * every method is a cheap no-op. The windowing is the shared
119
+ * {@link createStatsWindow}; this wrapper adds the enabled-gate and the
120
+ * dev-global ownership cleanup on {@link AvatarStatsReporter.dispose}.
121
+ */
122
+ function createAvatarStatsReporter(variant, mode) {
123
+ const statsWindow = createStatsWindow({
124
+ variant,
125
+ mode,
126
+ publishIntervalMs: 500,
127
+ gapWindow: 128,
128
+ publish: publishAvatarStats
129
+ });
130
+ return {
131
+ frameRendered(nowMs, uploadMs, drawMs) {
132
+ if (!isAvatarStatsEnabled()) return;
133
+ statsWindow.noteRendered(nowMs, uploadMs, drawMs);
134
+ },
135
+ frameDropped() {
136
+ if (!isAvatarStatsEnabled()) return;
137
+ statsWindow.noteDropped();
138
+ },
139
+ dispose() {
140
+ const globals = globalThis;
141
+ if (globals.__incodeAvatarStats?.variant === variant) delete globals.__incodeAvatarStats;
142
+ }
143
+ };
144
+ }
145
+ //#endregion
146
+ export { createFramePacer as a, publishAvatarStats as i, createStatsWindow as n, isAvatarStatsEnabled as r, createAvatarStatsReporter as t };
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -82,6 +82,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
82
82
  type: "clearError";
83
83
  params: NonReducibleUnknown;
84
84
  };
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: NonReducibleUnknown;
88
+ };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
91
  params: NonReducibleUnknown;
@@ -90,10 +94,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
90
94
  type: "toggleCheckbox";
91
95
  params: NonReducibleUnknown;
92
96
  };
93
- resetContext: {
94
- type: "resetContext";
95
- params: NonReducibleUnknown;
96
- };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
@@ -3,8 +3,8 @@
3
3
  async function loadProvider(variant) {
4
4
  switch (variant) {
5
5
  case "avatar-3d": return (await import("./3dAvatarProvider-D9H4rR6_.esm.js")).createProvider();
6
- case "avatar-2d": return (await import("./Face2DProvider-xWUeSJZI.esm.js")).createProvider();
7
- case "privacy-lens": return (await import("./PrivacyLensProvider-BrYSd1dr.esm.js")).createProvider();
6
+ case "avatar-2d": return (await import("./Face2DProvider-BZCsS_sf.esm.js")).createProvider();
7
+ case "privacy-lens": return (await import("./PrivacyLensProvider-DA3rp6sf.esm.js")).createProvider();
8
8
  default: throw new Error(`Unknown avatar variant: ${String(variant)}`);
9
9
  }
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
4
- import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-B_GKYIAU.esm.js";
4
+ import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CMwm-WD5.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
7
7
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
@@ -38,6 +38,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: NonReducibleUnknown;
44
+ };
41
45
  setStream: {
42
46
  type: "setStream";
43
47
  params: NonReducibleUnknown;
@@ -50,10 +54,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
50
54
  type: "setProgress";
51
55
  params: NonReducibleUnknown;
52
56
  };
53
- setError: {
54
- type: "setError";
55
- params: NonReducibleUnknown;
56
- };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-DR1uBo_E.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-DR_8mE1j.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-viscdI3d.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-Cr7_BFYP.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-vndKNS03.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-C8D2E58Z.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-DR_8mE1j.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-vndKNS03.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-DR1uBo_E.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-Cr7_BFYP.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DEYnZoez.esm.js";
@@ -3,13 +3,13 @@ import { n as fromCallback } from "./callback-645_omgz.js";
3
3
  import "./StateMachine-EDpYWy0i.js";
4
4
  import "./Actor-iTq7YY48.js";
5
5
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
6
- import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BUE6z9iY.js";
6
+ import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BpVpExwX.js";
7
7
  import { n as BaseWasmProvider } from "./FaceDetectionProvider-BHweGBEM.js";
8
8
  import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
9
9
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-DMMk51Ec.js";
10
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-LabfZln4.js";
11
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Ce1nLm5y.js";
12
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
10
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DR-EIsRb.js";
11
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DqyCzK3H.js";
12
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
13
13
  import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-C-3PWS2h.js";
14
14
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
15
15
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DRQrbEhj.js";
@@ -18,13 +18,13 @@ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as D
18
18
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
19
19
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
20
20
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
21
- import { n as CaptureIdResponse } from "./types-D0ohdBDu.js";
22
- import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CtsYvX-Z.js";
21
+ import { n as CaptureIdResponse } from "./types-DByREvr1.js";
22
+ import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-DmVmaxd9.js";
23
23
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
24
24
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
25
25
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
26
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BobEyNBc.js";
27
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DlYG277_.js";
26
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Ck2e2W4o.js";
27
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-5vi0uwLZ.js";
28
28
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-DZlJhqvq.js";
29
29
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
30
30
  import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
@@ -1,22 +1,22 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-B_GKYIAU.esm.js";
2
+ import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-CMwm-WD5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-CFsD4BgV.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DWPFfh6J.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-6sVLFiOS.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CqcUarZL.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DAAdpM_f.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-0EiBXYtL.esm.js";
10
10
  import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Bu32le9u.esm.js";
11
11
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-Dw7euiiZ.esm.js";
12
12
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-BGj9U3E0.esm.js";
13
13
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DBRQX16v.esm.js";
14
14
  import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DI0sCyVB.esm.js";
15
- import { n as createEkybManagerFromActor } from "./ekybManager-viscdI3d.esm.js";
15
+ import { n as createEkybManagerFromActor } from "./ekybManager-C8D2E58Z.esm.js";
16
16
  import { n as createEkycManagerFromActor } from "./ekycManager-DRrG5I6e.esm.js";
17
17
  import { n as createEmailManagerFromActor } from "./emailManager-Dmt1YrtS.esm.js";
18
- import { n as createSelfieManagerFromActor } from "./selfieManager-CUSnS_Ty.esm.js";
19
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DZjNKCN0.esm.js";
18
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BG79dEch.esm.js";
19
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DmGinDs-.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-C3aqq6jS.esm.js";
21
21
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BjMJHKLP.esm.js";
22
22
  import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-USUE9qDr.esm.js";
@@ -156,7 +156,6 @@ type FaceCaptureContext = {
156
156
  frameCapturer: StreamCanvasCapture | undefined;
157
157
  error: string | FaceErrorObject | undefined;
158
158
  detectionStatus: DetectionStatus;
159
- debugFrame: ImageData | undefined;
160
159
  capturedImage: IncodeCanvas | undefined;
161
160
  faceCoordinates: FaceCoordinates | undefined;
162
161
  uploadResponse: Record<string, unknown> | undefined;
@@ -216,9 +215,6 @@ type FaceCaptureEvent = {
216
215
  } | {
217
216
  type: 'DETECTION_UPDATE';
218
217
  status: DetectionStatus;
219
- } | {
220
- type: 'DETECTION_FRAME';
221
- frame: ImageData;
222
218
  } | {
223
219
  type: 'DETECTION_SUCCESS';
224
220
  canvas: IncodeCanvas;
@@ -309,8 +305,6 @@ type FaceCaptureCaptureState = {
309
305
  stream: CameraStream | undefined;
310
306
  /** Current face detection status */
311
307
  detectionStatus: DetectionStatus;
312
- /** Latest frame processed in the detection loop (for UI debug rendering) */
313
- debugFrame: ImageData | undefined;
314
308
  /** Number of capture attempts remaining */
315
309
  attemptsRemaining: number;
316
310
  /** Error message from failed upload */
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-DWPFfh6J.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-6sVLFiOS.esm.js";
5
5
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
6
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.esm.js";
7
7
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
@@ -53,7 +53,6 @@ function mapState(snapshot) {
53
53
  captureStatus: captureStatus ?? "initializing",
54
54
  stream: context.stream,
55
55
  detectionStatus: context.detectionStatus ?? "idle",
56
- debugFrame: context.debugFrame,
57
56
  attemptsRemaining: context.attemptsRemaining ?? 0,
58
57
  uploadError: context.uploadError,
59
58
  assistedOnboarding: context.config?.assistedOnboarding ?? false,
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-Ck6PjuaN.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-CWYb5Pry.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
- import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
7
+ import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-5Cu6a8iN.esm.js";
10
- import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-C37o41ar.esm.js";
10
+ import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CWs4c_bi.esm.js";
11
11
  //#region src/internal/avatar/concealment.ts
12
12
  /**
13
13
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
@@ -83,10 +83,6 @@ const faceCaptureMachine = setup({
83
83
  type: "DETECTION_UPDATE",
84
84
  status
85
85
  }),
86
- onFrame: (frame) => sendBack({
87
- type: "DETECTION_FRAME",
88
- frame
89
- }),
90
86
  onSuccess: (canvas, faceCoordinates) => sendBack({
91
87
  type: "DETECTION_SUCCESS",
92
88
  canvas,
@@ -197,7 +193,6 @@ const faceCaptureMachine = setup({
197
193
  frameCapturer: void 0,
198
194
  error: void 0,
199
195
  detectionStatus: "idle",
200
- debugFrame: void 0,
201
196
  capturedImage: void 0,
202
197
  faceCoordinates: void 0,
203
198
  uploadResponse: void 0,
@@ -260,7 +255,6 @@ const faceCaptureMachine = setup({
260
255
  const status = event.status;
261
256
  return context.manualCaptureTriggered || status === "manualCapture";
262
257
  } }),
263
- setDebugFrameFromEvent: assign({ debugFrame: ({ event }) => event.frame }),
264
258
  setAvatarCanvas: assign({ avatarCanvas: ({ event }) => event.canvas }),
265
259
  clearAvatarCanvas: assign({ avatarCanvas: () => void 0 }),
266
260
  setResetDetectionFromEvent: assign({ resetDetection: ({ event }) => event.reset }),
@@ -329,7 +323,6 @@ const faceCaptureMachine = setup({
329
323
  frameCapturer: void 0,
330
324
  error: void 0,
331
325
  detectionStatus: "idle",
332
- debugFrame: void 0,
333
326
  capturedImage: void 0,
334
327
  faceCoordinates: void 0,
335
328
  uploadResponse: void 0,
@@ -708,7 +701,6 @@ const faceCaptureMachine = setup({
708
701
  exit: ["clearAvatarCanvas"],
709
702
  on: {
710
703
  DETECTION_UPDATE: { actions: ["setDetectionStatusFromEvent", "setManualCaptureTriggered"] },
711
- DETECTION_FRAME: { actions: "setDebugFrameFromEvent" },
712
704
  AVATAR_READY: { actions: "setAvatarCanvas" },
713
705
  DETECTION_RESET_READY: { actions: "setResetDetectionFromEvent" },
714
706
  DETECTION_SUCCESS: {
package/dist/flow.d.ts CHANGED
@@ -9,9 +9,9 @@ import { t as AuthenticationConfig } from "./types-BAvkiv6L.js";
9
9
  import { r as DocumentCaptureConfig } from "./types-B4BObr_7.js";
10
10
  import { t as DynamicFormsConfig } from "./types-xIEGXWk8.js";
11
11
  import { t as EkybConfig } from "./types-BfHiko5D.js";
12
- import { c as IdCaptureConfig } from "./types-D0ohdBDu.js";
12
+ import { c as IdCaptureConfig } from "./types-DByREvr1.js";
13
13
  import { r as MandatoryConsentConfig } from "./types-BQgIv5p8.js";
14
- import { t as IdOcrConfig } from "./types-CBJI9n6h.js";
14
+ import { t as IdOcrConfig } from "./types-CBJI9n6h2.js";
15
15
  import { t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
16
16
  import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
17
17
  import { o as FlowEventSubscribable } from "./index-Ci9wEPiD.js";
package/dist/flow.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-DR1uBo_E.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-Cr7_BFYP.esm.js";
3
3
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
@@ -1,9 +1,9 @@
1
1
  import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
2
2
  import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
4
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-B_GKYIAU.esm.js";
4
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CMwm-WD5.esm.js";
5
5
  import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
6
- import "./session-DTuRfMtr.esm.js";
6
+ import "./session-5JaQ3ELc.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CBJI9n6h.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DlYG277_.js";
1
+ import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CBJI9n6h2.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-5vi0uwLZ.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "flowId">) => OcrFieldConfig[];
package/dist/id.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
2
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
3
3
  import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
4
- import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-D0ohdBDu.js";
5
- import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-CtsYvX-Z.js";
4
+ import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DByREvr1.js";
5
+ import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-DmVmaxd9.js";
6
6
  //#region src/modules/id/idCaptureOnlyManager.d.ts
7
7
  type IdCaptureOnlyManager = IdCaptureManager;
8
8
  /**
package/dist/id.esm.js CHANGED
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
5
- import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-CXMJ1Yjg.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DZjNKCN0.esm.js";
5
+ import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-B-txehAH.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DmGinDs-.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
8
8
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
9
9
  function buildSubImage(canvas) {
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
4
4
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
5
5
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.esm.js";
6
6
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
7
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CXMJ1Yjg.esm.js";
7
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-B-txehAH.esm.js";
8
8
  //#region src/modules/id/digitalUpload/instrumentation.ts
9
9
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
10
10
  function isHoldingState(value) {
@@ -118,6 +118,7 @@ function getCaptureStatus(snapshot) {
118
118
  capturing: snapshot.matches({ capture: "capturing" }),
119
119
  capturingManual: snapshot.matches({ capture: "capturingManual" }),
120
120
  uploading: snapshot.matches({ capture: "uploading" }),
121
+ uploadCompleted: snapshot.matches({ capture: "uploadCompleted" }),
121
122
  submittingBarcode: snapshot.matches({ capture: "submittingBarcode" }),
122
123
  uploadError: snapshot.matches({ capture: "uploadError" }),
123
124
  success: snapshot.matches({ capture: "success" })
@@ -125,7 +126,7 @@ function getCaptureStatus(snapshot) {
125
126
  if (matches.initializing) return "initializing";
126
127
  if (matches.detecting || matches.manualCaptureWaiting) return "detecting";
127
128
  if (matches.capturing || matches.capturingManual) return "capturing";
128
- if (matches.uploading || matches.submittingBarcode) return "uploading";
129
+ if (matches.uploading || matches.uploadCompleted || matches.submittingBarcode) return "uploading";
129
130
  if (matches.uploadError) return "uploadError";
130
131
  if (matches.success) return "success";
131
132
  }
@@ -208,7 +209,6 @@ function mapCaptureState(snapshot, context) {
208
209
  captureStatus,
209
210
  stream: context.stream,
210
211
  detectionStatus: context.detectionStatus,
211
- debugFrame: void 0,
212
212
  attemptsRemaining: context.attemptsRemaining,
213
213
  uploadError,
214
214
  currentMode: context.currentMode,
@@ -582,6 +582,7 @@ function getCaptureSubstateScreen(snapshot, screens) {
582
582
  case "capturing": return `${screens.capturePrefix}.takingphoto`;
583
583
  case "capturingManual": return `${screens.capturePrefix}.manual`;
584
584
  case "uploading":
585
+ case "uploadCompleted":
585
586
  case "validatingUpload": return `${screens.analyzingPrefix}.uploading`;
586
587
  case "uploadError": return getCaptureErrorScreen(screens, context.uploadError);
587
588
  case "success": return getSuccessScreen(snapshot, screens);
@@ -8,7 +8,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
8
8
  import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
9
9
  import { a as RegulationTypes } from "./types-BjTTkLmd.js";
10
10
  import { n as PermissionStatus } from "./types-BT-aiBYV.js";
11
- import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-D0ohdBDu.js";
11
+ import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DByREvr1.js";
12
12
  //#region src/modules/id/idCaptureStateMachine.d.ts
13
13
  declare const idCaptureMachine: AnyStateMachine;
14
14
  type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
@@ -196,7 +196,6 @@ type IdCaptureCaptureState = {
196
196
  captureStatus: CaptureStatus;
197
197
  stream: CameraStream | undefined;
198
198
  detectionStatus: DetectionStatus;
199
- debugFrame: ImageData | undefined;
200
199
  attemptsRemaining: number;
201
200
  uploadError: IdErrorCode | undefined;
202
201
  currentMode: IdCaptureMode;