@incodetech/core 2.1.1-rc.7 → 2.1.1-rc.9

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 (59) hide show
  1. package/dist/{BrowserStorageProvider-DaKI3I0m.esm.js → BrowserStorageProvider-CBHBhKQN.esm.js} +2 -18
  2. package/dist/{MotionSensorProvider-D95kOKVK.esm.js → MotionSensorProvider-BHuHoYvJ.esm.js} +48 -10
  3. package/dist/ae-signature.d.ts +1 -1
  4. package/dist/authentication.esm.js +10 -10
  5. package/dist/{authenticationManager-Dwf7TrZC.esm.js → authenticationManager-22c0J0KL.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-BBNa41d5.esm.js → authenticationStateMachine-CBpUpAlf.esm.js} +2 -2
  7. package/dist/camera.esm.js +2 -2
  8. package/dist/certificate-issuance.d.ts +28 -28
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-BvgtYr9W.d.ts → consentManager-D3sphOwm.d.ts} +50 -50
  11. package/dist/cpf-ocr.d.ts +1 -1
  12. package/dist/{cpfOcrManager-2eYelPF7.d.ts → cpfOcrManager-BCn8lRBE.d.ts} +17 -17
  13. package/dist/{deepsightLoader-bisFKMf_.esm.js → deepsightLoader-BhVgoH3m.esm.js} +2 -2
  14. package/dist/document-capture.d.ts +228 -228
  15. package/dist/document-capture.esm.js +4 -4
  16. package/dist/document-upload.d.ts +43 -43
  17. package/dist/{documentCaptureStateMachine-BHIYPUEu.esm.js → documentCaptureStateMachine-BkTvU3yq.esm.js} +2 -2
  18. package/dist/ekyb.esm.js +3 -3
  19. package/dist/{ekybStateMachine-_vaRFELH.esm.js → ekybStateMachine-DZH5G2Xh.esm.js} +1 -1
  20. package/dist/electronic-signature.d.ts +1 -1
  21. package/dist/extensibility.d.ts +5 -5
  22. package/dist/extensibility.esm.js +15 -15
  23. package/dist/{faceCaptureManagerFactory-Cf8m_RNb.esm.js → faceCaptureManagerFactory-BHvkCNX5.esm.js} +2 -2
  24. package/dist/{faceCaptureSetup-Gj6XnsY4.esm.js → faceCaptureSetup-O1iwlXvM.esm.js} +4 -4
  25. package/dist/flow.d.ts +2 -2
  26. package/dist/flow.esm.js +2 -2
  27. package/dist/{flowServices-OFgzA7NX.esm.js → flowServices-BmeIG5d5.esm.js} +1 -1
  28. package/dist/home.d.ts +10 -10
  29. package/dist/id-ocr.d.ts +1 -1
  30. package/dist/id-verification.d.ts +25 -25
  31. package/dist/id.esm.js +9 -9
  32. package/dist/{idCaptureManager-BziLyrVE.esm.js → idCaptureManager-CyYOwHGv.esm.js} +3 -3
  33. package/dist/{idCaptureStateMachine-B7vsPrsl.esm.js → idCaptureStateMachine-DP1Qa_PM.esm.js} +6 -6
  34. package/dist/{idOcrManager-BeUOERWK.d.ts → idOcrManager-DDMgU3Lk.d.ts} +52 -52
  35. package/dist/identity-reuse.d.ts +1 -1
  36. package/dist/{identityReuseManager-D1C3DNjo.d.ts → identityReuseManager-BkBMwekK.d.ts} +34 -34
  37. package/dist/{index-Dzf83PXV.d.ts → index-mvb3bTl_.d.ts} +150 -150
  38. package/dist/index.esm.js +2 -2
  39. package/dist/mandatory-consent.d.ts +1 -1
  40. package/dist/{mandatoryConsentManager-BxZjDE9f.d.ts → mandatoryConsentManager-Myw60oH-.d.ts} +50 -50
  41. package/dist/{onDeviceFaceResults-BWxOJueW.esm.js → onDeviceFaceResults-4px0Q6Ic.esm.js} +1 -1
  42. package/dist/{permissionGuards-BPZGWaL4.esm.js → permissionGuards-BNOe4Tnu.esm.js} +1 -1
  43. package/dist/{permissionServices-BElIOcoJ.esm.js → permissionServices-C_kxhNeo.esm.js} +7 -5
  44. package/dist/personhood.esm.js +5 -5
  45. package/dist/qe-signature.d.ts +1 -1
  46. package/dist/{recordingService-lBmeVE49.esm.js → recordingService-DjitqMcW.esm.js} +1 -1
  47. package/dist/selfie.esm.js +10 -10
  48. package/dist/{selfieManager-DsoqRiV2.esm.js → selfieManager-Ba79wP5Z.esm.js} +3 -3
  49. package/dist/{selfieStateMachine-Czcb2so_.esm.js → selfieStateMachine-BwRm83h1.esm.js} +2 -2
  50. package/dist/session.esm.js +1 -1
  51. package/dist/{sessionInitializer-DdIllyuV.esm.js → sessionInitializer-BtuRZlja.esm.js} +1 -1
  52. package/dist/{setup-B27YJgm_.esm.js → setup-DwubT66W.esm.js} +1 -1
  53. package/dist/trust-graph.d.ts +2 -2
  54. package/dist/video-selfie.d.ts +2 -2
  55. package/dist/video-selfie.esm.js +5 -5
  56. package/dist/wasm.esm.js +2 -2
  57. package/dist/workflow.d.ts +156 -156
  58. package/dist/workflow.esm.js +13 -13
  59. package/package.json +1 -1
@@ -1,23 +1,7 @@
1
+ import { n as resolveLocalStorage } from "./MotionSensorProvider-BHuHoYvJ.esm.js";
2
+
1
3
  //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
2
4
  /**
3
- * Resolves `localStorage`, or `null` when the host makes it unreachable.
4
- *
5
- * Two hostile shapes are handled:
6
- *
7
- * - the host **deleted the bare global** as a self-XSS mitigation
8
- * (`delete window.localStorage`) — the identifier no longer resolves, so
9
- * `typeof` is the only safe way to probe it
10
- * - a webview **blocks** storage — reading the accessor throws `SecurityError`
11
- */
12
- function resolveLocalStorage() {
13
- try {
14
- if (typeof localStorage === "undefined") return null;
15
- return localStorage;
16
- } catch {
17
- return null;
18
- }
19
- }
20
- /**
21
5
  * Browser-based storage provider wrapping localStorage.
22
6
  * Handles JSON serialization/deserialization automatically.
23
7
  *
@@ -1,3 +1,38 @@
1
+ //#region ../infra/src/storage/safeStorage.ts
2
+ /**
3
+ * Storage resolvers that tolerate hosts which make Web Storage unreachable.
4
+ *
5
+ * Two hostile shapes occur in the field, and they fail differently:
6
+ *
7
+ * 1. **Deleted bare global** — a page mitigates self-XSS with
8
+ * `delete window.localStorage` and keeps a module-private reference. Since
9
+ * `window` *is* the global object, the identifier stops resolving: a bare
10
+ * read throws `ReferenceError`. `typeof` is the only safe probe, because it
11
+ * is the one operator that tolerates an unresolvable identifier.
12
+ * 2. **Blocked storage** — a webview or a cross-origin/partitioned context
13
+ * makes the accessor itself throw (`SecurityError`). Here `typeof` is *not*
14
+ * enough: it invokes the getter, so the throw escapes the guard.
15
+ *
16
+ * Handling only one shape leaves the other live, so always go through these
17
+ * resolvers instead of touching the globals directly. A `null` return means
18
+ * "no storage in this host" — callers degrade, they do not throw.
19
+ */
20
+ function resolveLocalStorage() {
21
+ try {
22
+ return typeof localStorage === "undefined" ? null : localStorage;
23
+ } catch {
24
+ return null;
25
+ }
26
+ }
27
+ function resolveSessionStorage() {
28
+ try {
29
+ return typeof sessionStorage === "undefined" ? null : sessionStorage;
30
+ } catch {
31
+ return null;
32
+ }
33
+ }
34
+
35
+ //#endregion
1
36
  //#region ../infra/src/providers/browser/MotionSensorProvider.ts
2
37
  const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
3
38
  const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
@@ -6,8 +41,9 @@ var MotionSensorProvider = class MotionSensorProvider {
6
41
  return typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function";
7
42
  }
8
43
  static readSessionFlag(key) {
9
- if (typeof sessionStorage === "undefined") return false;
10
- return sessionStorage.getItem(key) === "true";
44
+ const storage = resolveSessionStorage();
45
+ if (!storage) return false;
46
+ return storage.getItem(key) === "true";
11
47
  }
12
48
  static hasMotionPermissionGrantedInSession() {
13
49
  return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_GRANTED_KEY);
@@ -114,15 +150,17 @@ var MotionSensorProvider = class MotionSensorProvider {
114
150
  return MotionSensorProvider.hasMotionPermissionDeniedInSession();
115
151
  }
116
152
  markMotionPermissionGrantedInSession() {
117
- if (typeof sessionStorage === "undefined") return;
118
- sessionStorage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
119
- sessionStorage.removeItem(MOTION_PERMISSION_DENIED_KEY);
120
- sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
153
+ const storage = resolveSessionStorage();
154
+ if (!storage) return;
155
+ storage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
156
+ storage.removeItem(MOTION_PERMISSION_DENIED_KEY);
157
+ storage.setItem("motionSensorsPermissionsRequested", String(true));
121
158
  }
122
159
  markMotionPermissionDeniedInSession() {
123
- if (typeof sessionStorage === "undefined") return;
124
- sessionStorage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
125
- sessionStorage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
160
+ const storage = resolveSessionStorage();
161
+ if (!storage) return;
162
+ storage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
163
+ storage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
126
164
  }
127
165
  syncSessionPermission() {
128
166
  if (!MotionSensorProvider.isIosMotionPermissionRequired()) {
@@ -301,4 +339,4 @@ var MotionSensorProvider = class MotionSensorProvider {
301
339
  };
302
340
 
303
341
  //#endregion
304
- export { MotionSensorProvider as t };
342
+ export { resolveLocalStorage as n, resolveSessionStorage as r, MotionSensorProvider as t };
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import { t as Manager } from "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Dzf83PXV.js";
4
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-mvb3bTl_.js";
5
5
 
6
6
  //#region src/modules/ae-signature/index.d.ts
7
7
 
@@ -7,15 +7,15 @@ import "./browserSimulation-DZwEy9bu.esm.js";
7
7
  import "./platform-0Ot-bF_a.esm.js";
8
8
  import "./getBrowser-1yNcfFZR.esm.js";
9
9
  import "./xstate.esm-nY3M5UYm.esm.js";
10
- import "./faceCaptureSetup-Gj6XnsY4.esm.js";
10
+ import "./faceCaptureSetup-O1iwlXvM.esm.js";
11
11
  import "./wasmDsFlagSync-Ch0mFJNT.esm.js";
12
12
  import "./BrowserVisibilityObserverProvider-GBS6XSii.esm.js";
13
- import "./MotionSensorProvider-D95kOKVK.esm.js";
14
- import "./permissionServices-BElIOcoJ.esm.js";
13
+ import "./MotionSensorProvider-BHuHoYvJ.esm.js";
14
+ import "./permissionServices-C_kxhNeo.esm.js";
15
15
  import "./camera-CxxXV0VN.esm.js";
16
- import "./faceCaptureManagerFactory-Cf8m_RNb.esm.js";
17
- import "./BrowserStorageProvider-DaKI3I0m.esm.js";
18
- import "./onDeviceFaceResults-BWxOJueW.esm.js";
16
+ import "./faceCaptureManagerFactory-BHvkCNX5.esm.js";
17
+ import "./BrowserStorageProvider-CBHBhKQN.esm.js";
18
+ import "./onDeviceFaceResults-4px0Q6Ic.esm.js";
19
19
  import "./ITimerCapability-DJ73P4RK.esm.js";
20
20
  import "./canvas-Pi10hG_l.esm.js";
21
21
  import "./backCameraStream-ChrMTJv-.esm.js";
@@ -26,10 +26,10 @@ import "./getDeviceClass-DIjnTPjR.esm.js";
26
26
  import "./types-BKLb3C42.esm.js";
27
27
  import "./createFaceAvatar-BZSg2MNo.esm.js";
28
28
  import "./StreamCanvasCapture-CAqUdVkM.esm.js";
29
- import "./permissionGuards-BPZGWaL4.esm.js";
30
- import "./recordingService-lBmeVE49.esm.js";
29
+ import "./permissionGuards-BNOe4Tnu.esm.js";
30
+ import "./recordingService-DjitqMcW.esm.js";
31
31
  import "./mediaRecorderOptions-CClCKAiF.esm.js";
32
- import { t as authenticationMachine } from "./authenticationStateMachine-BBNa41d5.esm.js";
33
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Dwf7TrZC.esm.js";
32
+ import { t as authenticationMachine } from "./authenticationStateMachine-CBpUpAlf.esm.js";
33
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-22c0J0KL.esm.js";
34
34
 
35
35
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BgzcXBdl.esm.js";
2
2
  import { n as eventModuleNames } from "./events-1wxZ97yf.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Cf8m_RNb.esm.js";
5
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DaKI3I0m.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BBNa41d5.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BHvkCNX5.esm.js";
5
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CBHBhKQN.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CBpUpAlf.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -2,8 +2,8 @@ import { t as api } from "./api-DsbUi7TO.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-BVy52wLy.esm.js";
4
4
  import { a as fromPromise, r as assign } from "./xstate.esm-nY3M5UYm.esm.js";
5
- import { t as faceCaptureMachine } from "./faceCaptureSetup-Gj6XnsY4.esm.js";
6
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BWxOJueW.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-O1iwlXvM.esm.js";
6
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-4px0Q6Ic.esm.js";
7
7
  import { t as getDeviceClass } from "./getDeviceClass-DIjnTPjR.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BKLb3C42.esm.js";
9
9
 
@@ -1,6 +1,6 @@
1
1
  import "./WasmUtilProvider-BgzcXBdl.esm.js";
2
- import "./MotionSensorProvider-D95kOKVK.esm.js";
3
- import { i as requestPermission, t as checkPermission } from "./permissionServices-BElIOcoJ.esm.js";
2
+ import "./MotionSensorProvider-BHuHoYvJ.esm.js";
3
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-C_kxhNeo.esm.js";
4
4
  import "./camera-CxxXV0VN.esm.js";
5
5
 
6
6
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import { t as Manager } from "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- import * as xstate656 from "xstate";
4
+ import * as xstate749 from "xstate";
5
5
 
6
6
  //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
7
7
  declare const MIN_PASSWORD_LENGTH = 8;
@@ -40,7 +40,7 @@ type CertificateIssuanceContext = {
40
40
  type CertificateIssuanceInput = {
41
41
  config: CertificateIssuanceConfig;
42
42
  };
43
- declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssuanceContext, {
43
+ declare const certificateIssuanceMachine: xstate749.StateMachine<CertificateIssuanceContext, {
44
44
  type: "LOAD";
45
45
  } | {
46
46
  type: "PASSWORD_CHANGED";
@@ -54,28 +54,28 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
54
54
  } | {
55
55
  type: "FINISH";
56
56
  }, {
57
- [x: string]: xstate656.ActorRefFromLogic<xstate656.PromiseActorLogic<IssueCertificateResponse, {
57
+ [x: string]: xstate749.ActorRefFromLogic<xstate749.PromiseActorLogic<IssueCertificateResponse, {
58
58
  password: string;
59
- }, xstate656.EventObject>> | undefined;
59
+ }, xstate749.EventObject>> | undefined;
60
60
  }, {
61
61
  src: "issueCertificate";
62
- logic: xstate656.PromiseActorLogic<IssueCertificateResponse, {
62
+ logic: xstate749.PromiseActorLogic<IssueCertificateResponse, {
63
63
  password: string;
64
- }, xstate656.EventObject>;
64
+ }, xstate749.EventObject>;
65
65
  id: string | undefined;
66
- }, xstate656.Values<{
66
+ }, xstate749.Values<{
67
67
  setPassword: {
68
68
  type: "setPassword";
69
- params: xstate656.NonReducibleUnknown;
69
+ params: xstate749.NonReducibleUnknown;
70
70
  };
71
71
  setBlob: {
72
72
  type: "setBlob";
73
- params: xstate656.NonReducibleUnknown;
73
+ params: xstate749.NonReducibleUnknown;
74
74
  };
75
75
  }>, {
76
76
  type: "isPasswordValid";
77
77
  params: unknown;
78
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate656.NonReducibleUnknown, xstate656.EventObject, xstate656.MetaObject, {
78
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate749.NonReducibleUnknown, xstate749.EventObject, xstate749.MetaObject, {
79
79
  readonly id: "certificateIssuance";
80
80
  readonly initial: "idle";
81
81
  readonly context: ({
@@ -84,39 +84,39 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
84
84
  spawn: {
85
85
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
86
86
  src: "issueCertificate";
87
- logic: xstate656.PromiseActorLogic<IssueCertificateResponse, {
87
+ logic: xstate749.PromiseActorLogic<IssueCertificateResponse, {
88
88
  password: string;
89
- }, xstate656.EventObject>;
89
+ }, xstate749.EventObject>;
90
90
  id: string | undefined;
91
91
  } extends infer T ? T extends {
92
92
  src: "issueCertificate";
93
- logic: xstate656.PromiseActorLogic<IssueCertificateResponse, {
93
+ logic: xstate749.PromiseActorLogic<IssueCertificateResponse, {
94
94
  password: string;
95
- }, xstate656.EventObject>;
95
+ }, xstate749.EventObject>;
96
96
  id: string | undefined;
97
97
  } ? T extends {
98
98
  src: TSrc;
99
- } ? xstate656.ConditionalRequired<[options?: ({
99
+ } ? xstate749.ConditionalRequired<[options?: ({
100
100
  id?: T["id"] | undefined;
101
101
  systemId?: string;
102
- input?: xstate656.InputFrom<T["logic"]> | undefined;
102
+ input?: xstate749.InputFrom<T["logic"]> | undefined;
103
103
  syncSnapshot?: boolean;
104
- } & { [K in xstate656.RequiredActorOptions<T>]: unknown }) | undefined], xstate656.IsNotNever<xstate656.RequiredActorOptions<T>>> : never : never : never): xstate656.ActorRefFromLogic<xstate656.GetConcreteByKey<{
104
+ } & { [K in xstate749.RequiredActorOptions<T>]: unknown }) | undefined], xstate749.IsNotNever<xstate749.RequiredActorOptions<T>>> : never : never : never): xstate749.ActorRefFromLogic<xstate749.GetConcreteByKey<{
105
105
  src: "issueCertificate";
106
- logic: xstate656.PromiseActorLogic<IssueCertificateResponse, {
106
+ logic: xstate749.PromiseActorLogic<IssueCertificateResponse, {
107
107
  password: string;
108
- }, xstate656.EventObject>;
108
+ }, xstate749.EventObject>;
109
109
  id: string | undefined;
110
110
  }, "src", TSrc>["logic"]>;
111
- <TLogic extends xstate656.AnyActorLogic>(src: TLogic, ...[options]: xstate656.ConditionalRequired<[options?: ({
111
+ <TLogic extends xstate749.AnyActorLogic>(src: TLogic, ...[options]: xstate749.ConditionalRequired<[options?: ({
112
112
  id?: never;
113
113
  systemId?: string;
114
- input?: xstate656.InputFrom<TLogic> | undefined;
114
+ input?: xstate749.InputFrom<TLogic> | undefined;
115
115
  syncSnapshot?: boolean;
116
- } & { [K in xstate656.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate656.IsNotNever<xstate656.RequiredLogicInput<TLogic>>>): xstate656.ActorRefFromLogic<TLogic>;
116
+ } & { [K in xstate749.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate749.IsNotNever<xstate749.RequiredLogicInput<TLogic>>>): xstate749.ActorRefFromLogic<TLogic>;
117
117
  };
118
118
  input: CertificateIssuanceInput;
119
- self: xstate656.ActorRef<xstate656.MachineSnapshot<CertificateIssuanceContext, {
119
+ self: xstate749.ActorRef<xstate749.MachineSnapshot<CertificateIssuanceContext, {
120
120
  type: "LOAD";
121
121
  } | {
122
122
  type: "PASSWORD_CHANGED";
@@ -129,7 +129,7 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
129
129
  type: "DOWNLOAD_FAILED";
130
130
  } | {
131
131
  type: "FINISH";
132
- }, Record<string, xstate656.AnyActorRef | undefined>, xstate656.StateValue, string, unknown, any, any>, {
132
+ }, Record<string, xstate749.AnyActorRef | undefined>, xstate749.StateValue, string, unknown, any, any>, {
133
133
  type: "LOAD";
134
134
  } | {
135
135
  type: "PASSWORD_CHANGED";
@@ -142,7 +142,7 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
142
142
  type: "DOWNLOAD_FAILED";
143
143
  } | {
144
144
  type: "FINISH";
145
- }, xstate656.AnyEventObject>;
145
+ }, xstate749.AnyEventObject>;
146
146
  }) => {
147
147
  config: CertificateIssuanceConfig;
148
148
  password: string;
@@ -190,7 +190,7 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
190
190
  } | {
191
191
  type: "FINISH";
192
192
  };
193
- self: xstate656.ActorRef<xstate656.MachineSnapshot<CertificateIssuanceContext, {
193
+ self: xstate749.ActorRef<xstate749.MachineSnapshot<CertificateIssuanceContext, {
194
194
  type: "LOAD";
195
195
  } | {
196
196
  type: "PASSWORD_CHANGED";
@@ -203,7 +203,7 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
203
203
  type: "DOWNLOAD_FAILED";
204
204
  } | {
205
205
  type: "FINISH";
206
- }, Record<string, xstate656.AnyActorRef>, xstate656.StateValue, string, unknown, any, any>, {
206
+ }, Record<string, xstate749.AnyActorRef>, xstate749.StateValue, string, unknown, any, any>, {
207
207
  type: "LOAD";
208
208
  } | {
209
209
  type: "PASSWORD_CHANGED";
@@ -216,7 +216,7 @@ declare const certificateIssuanceMachine: xstate656.StateMachine<CertificateIssu
216
216
  type: "DOWNLOAD_FAILED";
217
217
  } | {
218
218
  type: "FINISH";
219
- }, xstate656.AnyEventObject>;
219
+ }, xstate749.AnyEventObject>;
220
220
  }) => {
221
221
  password: string;
222
222
  };
package/dist/consent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- 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-BvgtYr9W.js";
4
+ 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-D3sphOwm.js";
5
5
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-goNPc_h_.js";
2
2
  import { t as ActorRefFrom } from "./Actor-BwgmOPkb.js";
3
- import * as xstate1516 from "xstate";
3
+ import * as xstate1044 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -37,7 +37,7 @@ type ConsentContext = {
37
37
  type ConsentInput = {
38
38
  config: ConsentConfig;
39
39
  };
40
- declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1044.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate1516.ActorRefFromLogic<xstate1516.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1044.ActorRefFromLogic<xstate1044.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate1516.EventObject>> | xstate1516.ActorRefFromLogic<xstate1516.PromiseActorLogic<void, {
55
+ }, xstate1044.EventObject>> | xstate1044.ActorRefFromLogic<xstate1044.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate1516.EventObject>> | undefined;
59
- }, xstate1516.Values<{
58
+ }, xstate1044.EventObject>> | undefined;
59
+ }, xstate1044.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate1516.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1044.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate1516.EventObject>;
65
+ }, xstate1044.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate1516.PromiseActorLogic<void, {
70
+ logic: xstate1044.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate1516.EventObject>;
73
+ }, xstate1044.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate1516.Values<{
76
+ }>, xstate1044.Values<{
77
77
  setError: {
78
78
  type: "setError";
79
- params: xstate1516.NonReducibleUnknown;
79
+ params: xstate1044.NonReducibleUnknown;
80
80
  };
81
81
  clearError: {
82
82
  type: "clearError";
83
- params: xstate1516.NonReducibleUnknown;
84
- };
85
- resetContext: {
86
- type: "resetContext";
87
- params: xstate1516.NonReducibleUnknown;
83
+ params: xstate1044.NonReducibleUnknown;
88
84
  };
89
85
  setConsentData: {
90
86
  type: "setConsentData";
91
- params: xstate1516.NonReducibleUnknown;
87
+ params: xstate1044.NonReducibleUnknown;
92
88
  };
93
89
  toggleCheckbox: {
94
90
  type: "toggleCheckbox";
95
- params: xstate1516.NonReducibleUnknown;
91
+ params: xstate1044.NonReducibleUnknown;
92
+ };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: xstate1044.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate1516.NonReducibleUnknown, xstate1516.EventObject, xstate1516.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1044.NonReducibleUnknown, xstate1044.EventObject, xstate1044.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate1516.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1044.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate1516.EventObject>;
112
+ }, xstate1044.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate1516.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1044.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate1516.EventObject>;
119
+ }, xstate1044.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate1516.ConditionalRequired<[options?: ({
123
+ } ? xstate1044.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate1516.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1044.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate1516.RequiredActorOptions<T>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1044.RequiredActorOptions<T>]: unknown }) | undefined], xstate1044.IsNotNever<xstate1044.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate1516.PromiseActorLogic<void, {
130
+ logic: xstate1044.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate1516.EventObject>;
133
+ }, xstate1044.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate1516.PromiseActorLogic<void, {
137
+ logic: xstate1044.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate1516.EventObject>;
140
+ }, xstate1044.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate1516.ConditionalRequired<[options?: ({
144
+ } ? xstate1044.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate1516.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1044.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate1516.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredActorOptions<T_1>>> : never : never : never)): xstate1516.ActorRefFromLogic<xstate1516.GetConcreteByKey<xstate1516.Values<{
149
+ } & { [K_1 in xstate1044.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1044.IsNotNever<xstate1044.RequiredActorOptions<T_1>>> : never : never : never)): xstate1044.ActorRefFromLogic<xstate1044.GetConcreteByKey<xstate1044.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate1516.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1044.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate1516.EventObject>;
155
+ }, xstate1044.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate1516.PromiseActorLogic<void, {
160
+ logic: xstate1044.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate1516.EventObject>;
163
+ }, xstate1044.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate1516.AnyActorLogic>(src: TLogic, ...[options]: xstate1516.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1044.AnyActorLogic>(src: TLogic, ...[options]: xstate1044.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate1516.InputFrom<TLogic> | undefined;
170
+ input?: xstate1044.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate1516.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredLogicInput<TLogic>>>): xstate1516.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1044.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1044.IsNotNever<xstate1044.RequiredLogicInput<TLogic>>>): xstate1044.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate1516.ActorRef<xstate1516.MachineSnapshot<ConsentContext, {
175
+ self: xstate1044.ActorRef<xstate1044.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate1516.AnyActorRef | undefined>, xstate1516.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1044.AnyActorRef | undefined>, xstate1044.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate1516.AnyEventObject>;
197
+ }, xstate1044.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate1516.ActorRef<xstate1516.MachineSnapshot<ConsentContext, {
235
+ self: xstate1044.ActorRef<xstate1044.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate1516.AnyActorRef>, xstate1516.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1044.AnyActorRef>, xstate1044.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate1516.AnyEventObject>;
257
+ }, xstate1044.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate1516.ActorRef<xstate1516.MachineSnapshot<ConsentContext, {
307
+ self: xstate1044.ActorRef<xstate1044.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate1516.AnyActorRef>, xstate1516.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1044.AnyActorRef>, xstate1044.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1516.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate1516.AnyEventObject>;
329
+ }, xstate1044.AnyEventObject>;
330
330
  }) => {
331
331
  languageConsentId: string;
332
332
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-2eYelPF7.js";
4
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-BCn8lRBE.js";
5
5
 
6
6
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
7
7
  declare function formatCPF(value: string): string;