@incodetech/core 0.0.0-dev-20260602-5f4d4b36 → 0.0.0-dev-20260603-043161c0

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 (158) hide show
  1. package/dist/{OpenViduRecordingProvider-dfIfvJdz.esm.js → OpenViduRecordingProvider-V2u-nbZC.esm.js} +1 -1
  2. package/dist/ae-signature.d.ts +3 -3
  3. package/dist/antifraud.d.ts +3 -3
  4. package/dist/{antifraudManager-C-_he11c.d.ts → antifraudManager-DwFhpD_o.d.ts} +2 -2
  5. package/dist/authentication.d.ts +12 -12
  6. package/dist/authentication.esm.js +4 -4
  7. package/dist/{authenticationManager-Ox_u_uEQ.d.ts → authenticationManager-ChIGDD5r.d.ts} +2 -2
  8. package/dist/{authenticationManager-DBAgrHM4.esm.js → authenticationManager-SxHSXV3F.esm.js} +1 -1
  9. package/dist/{authenticationStateMachine-BeC9dwb2.esm.js → authenticationStateMachine-sLHgqpWn.esm.js} +2 -2
  10. package/dist/camera.d.ts +1 -1
  11. package/dist/consent.d.ts +4 -398
  12. package/dist/consent.esm.js +5 -76
  13. package/dist/consentManager-C7KTApEG.d.ts +419 -0
  14. package/dist/consentManager-fFCO1oob.esm.js +90 -0
  15. package/dist/{consentStateMachine-DKLONjEH.esm.js → consentStateMachine-gpri_8Pu.esm.js} +7 -4
  16. package/dist/cpf-ocr.d.ts +4 -199
  17. package/dist/cpf-ocr.esm.js +8 -177
  18. package/dist/cpfOcrManager-CNc0SN4R.esm.js +190 -0
  19. package/dist/cpfOcrManager-wcAZLwLt.d.ts +216 -0
  20. package/dist/cross-document-data-match.d.ts +1 -1
  21. package/dist/curp-validation.d.ts +8 -159
  22. package/dist/curp-validation.esm.js +5 -107
  23. package/dist/curpValidationManager-BoAPMlVr.d.ts +182 -0
  24. package/dist/curpValidationManager-BtsqkehC.esm.js +121 -0
  25. package/dist/custom-fields.d.ts +2 -2
  26. package/dist/custom-fields.esm.js +1 -1
  27. package/dist/custom-watchlist.d.ts +1 -1
  28. package/dist/custom-watchlist.esm.js +1 -1
  29. package/dist/{deepsightService-DnPLubLz.d.ts → deepsightService-Cj61N1aO.d.ts} +2 -2
  30. package/dist/document-capture.d.ts +80 -80
  31. package/dist/document-capture.esm.js +1 -1
  32. package/dist/document-upload.d.ts +50 -50
  33. package/dist/dynamic-forms.d.ts +2 -2
  34. package/dist/dynamic-forms.esm.js +1 -1
  35. package/dist/ekyb.d.ts +6 -6
  36. package/dist/ekyb.esm.js +5 -5
  37. package/dist/{ekybStateMachine-f9it1UYm.esm.js → ekybStateMachine-ZzpesTmL.esm.js} +2 -2
  38. package/dist/ekyc.d.ts +3 -3
  39. package/dist/ekyc.esm.js +3 -3
  40. package/dist/{ekycStateMachine-p7gsAtZl.esm.js → ekycStateMachine-BiFvcf1j.esm.js} +2 -2
  41. package/dist/electronic-signature.d.ts +3 -3
  42. package/dist/email.d.ts +3 -3
  43. package/dist/email.esm.js +2 -2
  44. package/dist/{emailManager-BAWgEfYH.d.ts → emailManager-CJQsszsp.d.ts} +2 -2
  45. package/dist/{emailManager-IHCJvZiz.esm.js → emailManager-rP1c85r5.esm.js} +1 -1
  46. package/dist/extensibility.d.ts +25 -19
  47. package/dist/extensibility.esm.js +28 -17
  48. package/dist/face-match.d.ts +1 -1
  49. package/dist/face-match.esm.js +1 -1
  50. package/dist/{faceCaptureManagerFactory-Cg32xv92.d.ts → faceCaptureManagerFactory-Cix1EB26.d.ts} +8 -8
  51. package/dist/{faceCaptureSetup--lytJ6nf.esm.js → faceCaptureSetup-DKASst-f.esm.js} +1 -1
  52. package/dist/field-comparison.d.ts +4 -61
  53. package/dist/field-comparison.esm.js +6 -148
  54. package/dist/fieldComparisonManager-BpxhssC8.d.ts +76 -0
  55. package/dist/fieldComparisonManager-DGjxDMx6.esm.js +162 -0
  56. package/dist/flow-events.d.ts +6 -6
  57. package/dist/flow.d.ts +12 -12
  58. package/dist/flow.esm.js +5 -5
  59. package/dist/{flowServices-DLiWM_oM.esm.js → flowServices-8dZbyf3b.esm.js} +1 -1
  60. package/dist/geolocation.d.ts +2 -2
  61. package/dist/geolocation.esm.js +1 -1
  62. package/dist/government-validation.d.ts +2 -2
  63. package/dist/government-validation.esm.js +1 -1
  64. package/dist/home.d.ts +15 -15
  65. package/dist/id-ocr.d.ts +54 -54
  66. package/dist/id-ocr.esm.js +2 -2
  67. package/dist/id-verification.d.ts +27 -27
  68. package/dist/id-verification.esm.js +1 -1
  69. package/dist/id.d.ts +11 -11
  70. package/dist/id.esm.js +6 -6
  71. package/dist/{idCaptureManager-DFWX8qfh.d.ts → idCaptureManager-BsnDyfe_.d.ts} +7 -7
  72. package/dist/{idCaptureManager-Bk8R6e7P.esm.js → idCaptureManager-Da0nyegg.esm.js} +1 -1
  73. package/dist/{idCaptureStateMachine-BeBaaqzE.esm.js → idCaptureStateMachine-a-ZYFzI3.esm.js} +4 -4
  74. package/dist/{idOcrStateMachine-CKlLOgNU.esm.js → idOcrStateMachine-Brpske0-.esm.js} +1 -1
  75. package/dist/identity-reuse.d.ts +3 -3
  76. package/dist/identity-reuse.esm.js +2 -2
  77. package/dist/{identityReuseManager-cG0dhENk.esm.js → identityReuseManager-B5X1Cm3Y.esm.js} +1 -1
  78. package/dist/{identityReuseManager-Ca-HNdCF.d.ts → identityReuseManager-G2mzlCr3.d.ts} +33 -33
  79. package/dist/{index-CyFUw-qE.d.ts → index-C_F0HnYb.d.ts} +2 -2
  80. package/dist/{index-B77Z2Fk-.d.ts → index-CoJkJoJ3.d.ts} +127 -127
  81. package/dist/index.d.ts +2 -2
  82. package/dist/index.esm.js +2 -2
  83. package/dist/mandatory-consent.d.ts +8 -413
  84. package/dist/mandatory-consent.esm.js +5 -75
  85. package/dist/mandatoryConsentManager-CMKVmOk6.esm.js +89 -0
  86. package/dist/mandatoryConsentManager-DBRdjiMD.d.ts +426 -0
  87. package/dist/{mandatoryConsentStateMachine-Bu2GwgIo.esm.js → mandatoryConsentStateMachine-C_qCpWJc.esm.js} +3 -3
  88. package/dist/openviduLazy-B46R4bBl.esm.js +3 -0
  89. package/dist/{openviduLazy-CgN_e8V6.esm.js → openviduLazy-IBOi4mdP.esm.js} +1 -1
  90. package/dist/phone.d.ts +3 -3
  91. package/dist/phone.esm.js +2 -2
  92. package/dist/{phoneManager-CJLJidX1.esm.js → phoneManager-DqcwzgXb.esm.js} +1 -1
  93. package/dist/{phoneManager-loG1R4et.d.ts → phoneManager-ZuGcTt2Z.d.ts} +2 -2
  94. package/dist/qe-signature.d.ts +3 -3
  95. package/dist/qe-signature.esm.js +1 -1
  96. package/dist/{recordingService-D_VuGVdv.esm.js → recordingService-CZRvjHkv.esm.js} +4 -4
  97. package/dist/redirect-to-mobile.d.ts +5 -143
  98. package/dist/redirect-to-mobile.esm.js +6 -145
  99. package/dist/redirectToMobileManager-Cw-tm2xq.esm.js +159 -0
  100. package/dist/redirectToMobileManager-l5ILUHUR.d.ts +178 -0
  101. package/dist/selfie.d.ts +12 -12
  102. package/dist/selfie.esm.js +5 -5
  103. package/dist/{selfieManager-Cy_WPFoy.esm.js → selfieManager-BO2dGFbP.esm.js} +1 -1
  104. package/dist/{selfieManager-DqgT86bv.d.ts → selfieManager-CvegV4Dw.d.ts} +2 -2
  105. package/dist/{selfieStateMachine-CJw2vkzA.esm.js → selfieStateMachine-BOlpY73w.esm.js} +2 -2
  106. package/dist/session.d.ts +5 -5
  107. package/dist/session.esm.js +3 -3
  108. package/dist/{sessionInitializer-D0v6el5X.esm.js → sessionInitializer-B_JilCbM.esm.js} +1 -1
  109. package/dist/{setup-BCMSGD4S.esm.js → setup-BLLJmn6S.esm.js} +1 -1
  110. package/dist/{setup-D8yN1pvy.d.ts → setup-rGOxd5ti.d.ts} +1 -1
  111. package/dist/signature.d.ts +2 -2
  112. package/dist/signature.esm.js +1 -1
  113. package/dist/trust-graph.d.ts +3 -3
  114. package/dist/{types-B-YHRn8Q.d.ts → types-7YvjxrE8.d.ts} +1 -1
  115. package/dist/{types-B4zE7QVQ.d.ts → types-CF9Shf3H.d.ts} +2 -2
  116. package/dist/{types-D4ZTL8-s.d.ts → types-CKlC8P6D.d.ts} +1 -1
  117. package/dist/wasm.d.ts +2 -2
  118. package/dist/wasm.esm.js +2 -2
  119. package/dist/watchlist-for-business.d.ts +1 -1
  120. package/dist/watchlist-for-business.esm.js +1 -1
  121. package/dist/watchlist.d.ts +1 -1
  122. package/dist/watchlist.esm.js +1 -1
  123. package/dist/workflow.d.ts +96 -96
  124. package/dist/workflow.esm.js +32 -32
  125. package/package.json +1 -1
  126. package/dist/openviduLazy-_lSYT11z.esm.js +0 -3
  127. /package/dist/{Actor-LDyqfWZV.d.ts → Actor-CSrrg3bi.d.ts} +0 -0
  128. /package/dist/{Manager-Li1pXOFC.d.ts → Manager-Vivkfry8.d.ts} +0 -0
  129. /package/dist/{StateMachine-Nl-Jtl1w.d.ts → StateMachine-BOoToc6g.d.ts} +0 -0
  130. /package/dist/{addressSearch-BmANIaSq.esm.js → addressSearch-CNpjjUQz.esm.js} +0 -0
  131. /package/dist/{camera-BgyHeDdc.d.ts → camera-B3cj1x5s.d.ts} +0 -0
  132. /package/dist/{cpf-Wwu9VLfA.esm.js → cpf-CsMvhgPy.esm.js} +0 -0
  133. /package/dist/{curpValidationStateMachine-DRa9npZV.esm.js → curpValidationStateMachine-DjISFFWB.esm.js} +0 -0
  134. /package/dist/{customWatchlistStateMachine-I3gP0TDW.esm.js → customWatchlistStateMachine-BZFp-HLB.esm.js} +0 -0
  135. /package/dist/{dateUtils-iJujdoEB.esm.js → dateUtils-Cl7jrAfM.esm.js} +0 -0
  136. /package/dist/{deepsightLoader-BzmwKcAY.esm.js → deepsightLoader-Bkdln3Q_.esm.js} +0 -0
  137. /package/dist/{documentCaptureStateMachine-dyL-UmQE.esm.js → documentCaptureStateMachine-mzXknZwz.esm.js} +0 -0
  138. /package/dist/{emailStateMachine-BE-VaJp3.esm.js → emailStateMachine-CKfboIlZ.esm.js} +0 -0
  139. /package/dist/{faceMatchStateMachine-Bd4mRtgq.esm.js → faceMatchStateMachine-Ch5EjM7P.esm.js} +0 -0
  140. /package/dist/{flowCompletionService-7NEI1i7g.d.ts → flowCompletionService-Bf4om3D-.d.ts} +0 -0
  141. /package/dist/{flowCompletionService-Cshgj0gV.esm.js → flowCompletionService-KBd2zFGC.esm.js} +0 -0
  142. /package/dist/{geolocationStateMachine-DWIlVTDs.esm.js → geolocationStateMachine-DHAIdNJP.esm.js} +0 -0
  143. /package/dist/{governmentValidationStateMachine-Bhfg7-kH.esm.js → governmentValidationStateMachine-B91Wn4MO.esm.js} +0 -0
  144. /package/dist/{idVerificationStateMachine-BicmjAoY.esm.js → idVerificationStateMachine-DgIziD2M.esm.js} +0 -0
  145. /package/dist/{identityReuseStateMachine-BmBxUiRQ.esm.js → identityReuseStateMachine-CIgLduV4.esm.js} +0 -0
  146. /package/dist/{invokeOnCaptureCallback-CH7T3THr.esm.js → invokeOnCaptureCallback-Dd7hjhFk.esm.js} +0 -0
  147. /package/dist/{lib-WqARpotm.esm.js → lib-Dw3nlyRn.esm.js} +0 -0
  148. /package/dist/{phoneStateMachine-B3a-RKHn.esm.js → phoneStateMachine-CQ6d6I_0.esm.js} +0 -0
  149. /package/dist/{qe-signature-CYSZszZ7.esm.js → qe-signature-BtnJz3J0.esm.js} +0 -0
  150. /package/dist/{redirectToMobileStateMachine-Q40PJni2.esm.js → redirectToMobileStateMachine-CN3DEYr0.esm.js} +0 -0
  151. /package/dist/{runChildModule-D3uaw05g.esm.js → runChildModule-Bu88HJq3.esm.js} +0 -0
  152. /package/dist/{session-CKUCSZHC.esm.js → session-Bp-2CzTW.esm.js} +0 -0
  153. /package/dist/{signatureStateMachine-D7aDVITq.esm.js → signatureStateMachine-CZftXdP1.esm.js} +0 -0
  154. /package/dist/{types-B9hcs5GV.d.ts → types-8T8ucC_X.d.ts} +0 -0
  155. /package/dist/{types-CA1a_172.d.ts → types-BRwPqsN3.d.ts} +0 -0
  156. /package/dist/{warmup-BXBDbhKe.d.ts → warmup-BDLfUjzz.d.ts} +0 -0
  157. /package/dist/{watchlistForBusinessStateMachine-DgH3Zlv2.esm.js → watchlistForBusinessStateMachine-qRVzgNMs.esm.js} +0 -0
  158. /package/dist/{watchlistStateMachine-DfipYi32.esm.js → watchlistStateMachine-BBpGY5Ir.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as loadOpenVidu } from "./openviduLazy-CgN_e8V6.esm.js";
1
+ import { t as loadOpenVidu } from "./openviduLazy-IBOi4mdP.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/browser/OpenViduRecordingProvider.ts
4
4
  function createHiddenContainer() {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-Li1pXOFC.js";
2
- import "./Actor-LDyqfWZV.js";
3
- 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-B77Z2Fk-.js";
1
+ import { t as Manager } from "./Manager-Vivkfry8.js";
2
+ import "./Actor-CSrrg3bi.js";
3
+ 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-CoJkJoJ3.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,6 +1,6 @@
1
- import "./Manager-Li1pXOFC.js";
2
- import "./Actor-LDyqfWZV.js";
3
- import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-C-_he11c.js";
1
+ import "./Manager-Vivkfry8.js";
2
+ import "./Actor-CSrrg3bi.js";
3
+ import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-DwFhpD_o.js";
4
4
 
5
5
  //#region src/modules/antifraud/types.d.ts
6
6
 
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-Li1pXOFC.js";
2
- import { t as ActorRefFrom } from "./Actor-LDyqfWZV.js";
1
+ import { t as Manager } from "./Manager-Vivkfry8.js";
2
+ import { t as ActorRefFrom } from "./Actor-CSrrg3bi.js";
3
3
 
4
4
  //#region src/modules/antifraud/antifraudStateMachine.d.ts
5
5
  declare const antifraudMachine: any;
@@ -1,13 +1,13 @@
1
- import "./warmup-BXBDbhKe.js";
2
- import "./Manager-Li1pXOFC.js";
3
- import "./Actor-LDyqfWZV.js";
4
- import "./StateMachine-Nl-Jtl1w.js";
5
- import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-Cg32xv92.js";
6
- import "./camera-BgyHeDdc.js";
7
- import "./types-D4ZTL8-s.js";
8
- import "./types-CA1a_172.js";
9
- import "./types-B4zE7QVQ.js";
10
- import "./deepsightService-DnPLubLz.js";
11
- import "./types-B9hcs5GV.js";
12
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Ox_u_uEQ.js";
1
+ import "./warmup-BDLfUjzz.js";
2
+ import "./Manager-Vivkfry8.js";
3
+ import "./Actor-CSrrg3bi.js";
4
+ import "./StateMachine-BOoToc6g.js";
5
+ import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-Cix1EB26.js";
6
+ import "./camera-B3cj1x5s.js";
7
+ import "./types-CKlC8P6D.js";
8
+ import "./types-BRwPqsN3.js";
9
+ import "./types-CF9Shf3H.js";
10
+ import "./deepsightService-Cj61N1aO.js";
11
+ import "./types-8T8ucC_X.js";
12
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-ChIGDD5r.js";
13
13
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -12,14 +12,14 @@ import "./MotionSensorProvider-D1JWpMLJ.esm.js";
12
12
  import "./permissionServices-BjXAT5OT.esm.js";
13
13
  import "./camera-P7dse339.esm.js";
14
14
  import "./faceCaptureManagerFactory-CuIu05bt.esm.js";
15
- import "./recordingService-D_VuGVdv.esm.js";
15
+ import "./recordingService-CZRvjHkv.esm.js";
16
16
  import "./ITimerCapability-gIlcIrAX.esm.js";
17
17
  import "./deepsightService-Dh9EiWze.esm.js";
18
18
  import "./backCameraStream-sqXIvxpl.esm.js";
19
19
  import "./getDeviceClass-C5yT6K2e.esm.js";
20
20
  import "./getDeviceClass-cJ-TvND7.esm.js";
21
- import "./faceCaptureSetup--lytJ6nf.esm.js";
22
- import { t as authenticationMachine } from "./authenticationStateMachine-BeC9dwb2.esm.js";
23
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DBAgrHM4.esm.js";
21
+ import "./faceCaptureSetup-DKASst-f.esm.js";
22
+ import { t as authenticationMachine } from "./authenticationStateMachine-sLHgqpWn.esm.js";
23
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-SxHSXV3F.esm.js";
24
24
 
25
25
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-Li1pXOFC.js";
2
- import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-Cg32xv92.js";
1
+ import { t as Manager } from "./Manager-Vivkfry8.js";
2
+ import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-Cix1EB26.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -3,7 +3,7 @@ import { n as eventModuleNames } from "./events-Bsw1l0pH.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BrJver0U.esm.js";
5
5
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CuIu05bt.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BeC9dwb2.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-sLHgqpWn.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -2,9 +2,9 @@ import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-AwLva7-C.esm.js";
4
4
  import { a as fromPromise, r as assign } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { b as FACE_ERROR_CODES, d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-D_VuGVdv.esm.js";
5
+ import { b as FACE_ERROR_CODES, d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-CZRvjHkv.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-cJ-TvND7.esm.js";
7
- import { t as faceCaptureMachine } from "./faceCaptureSetup--lytJ6nf.esm.js";
7
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DKASst-f.esm.js";
8
8
 
9
9
  //#region src/modules/authentication/authenticationErrorUtils.ts
10
10
  const AUTH_ERROR_MAP = {
package/dist/camera.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PermissionStatus, t as PermissionResult } from "./types-B9hcs5GV.js";
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-8T8ucC_X.js";
2
2
 
3
3
  //#region src/internal/permissions/permissionServices.d.ts
4
4
  type RequestPermissionOptions = {
package/dist/consent.d.ts CHANGED
@@ -1,398 +1,4 @@
1
- import { t as Manager } from "./Manager-Li1pXOFC.js";
2
- import "./Actor-LDyqfWZV.js";
3
- import * as xstate430 from "xstate";
4
-
5
- //#region src/modules/consent/types.d.ts
6
- type ConsentConfig = {
7
- combinedConsents?: string;
8
- consentId?: string;
9
- };
10
- type ConsentCheckbox = {
11
- id: string;
12
- label: string;
13
- required: boolean;
14
- checked: boolean;
15
- };
16
- type FetchCombinedConsentResponse = {
17
- languageConsentId: string;
18
- terms: string;
19
- title: string;
20
- consents: Array<{
21
- checkboxId: string;
22
- consentText: string;
23
- optional: boolean;
24
- }>;
25
- };
26
- //#endregion
27
- //#region src/modules/consent/consentStateMachine.d.ts
28
- type ConsentContext = {
29
- config: ConsentConfig;
30
- title: string;
31
- richText: string;
32
- languageConsentId: string;
33
- checkboxes: ConsentCheckbox[];
34
- error: string | undefined;
35
- };
36
- type ConsentInput = {
37
- config: ConsentConfig;
38
- };
39
- declare const consentMachine: xstate430.StateMachine<ConsentContext, {
40
- type: "LOAD";
41
- } | {
42
- type: "TOGGLE_CHECKBOX";
43
- checkboxId: string;
44
- } | {
45
- type: "SUBMIT";
46
- } | {
47
- type: "RETRY";
48
- } | {
49
- type: "RESET";
50
- }, {
51
- [x: string]: xstate430.ActorRefFromLogic<xstate430.PromiseActorLogic<FetchCombinedConsentResponse, {
52
- consentId: string;
53
- }, xstate430.EventObject>> | xstate430.ActorRefFromLogic<xstate430.PromiseActorLogic<void, {
54
- languageConsentId: string;
55
- checkboxes: ConsentCheckbox[];
56
- }, xstate430.EventObject>> | undefined;
57
- }, xstate430.Values<{
58
- fetchConsent: {
59
- src: "fetchConsent";
60
- logic: xstate430.PromiseActorLogic<FetchCombinedConsentResponse, {
61
- consentId: string;
62
- }, xstate430.EventObject>;
63
- id: string | undefined;
64
- };
65
- submitConsent: {
66
- src: "submitConsent";
67
- logic: xstate430.PromiseActorLogic<void, {
68
- languageConsentId: string;
69
- checkboxes: ConsentCheckbox[];
70
- }, xstate430.EventObject>;
71
- id: string | undefined;
72
- };
73
- }>, xstate430.Values<{
74
- setError: {
75
- type: "setError";
76
- params: xstate430.NonReducibleUnknown;
77
- };
78
- clearError: {
79
- type: "clearError";
80
- params: xstate430.NonReducibleUnknown;
81
- };
82
- setConsentData: {
83
- type: "setConsentData";
84
- params: xstate430.NonReducibleUnknown;
85
- };
86
- toggleCheckbox: {
87
- type: "toggleCheckbox";
88
- params: xstate430.NonReducibleUnknown;
89
- };
90
- resetContext: {
91
- type: "resetContext";
92
- params: xstate430.NonReducibleUnknown;
93
- };
94
- }>, {
95
- type: "canSubmit";
96
- params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate430.NonReducibleUnknown, xstate430.EventObject, xstate430.MetaObject, {
98
- readonly id: "consent";
99
- readonly initial: "idle";
100
- readonly context: ({
101
- input
102
- }: {
103
- spawn: {
104
- <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
- src: "fetchConsent";
106
- logic: xstate430.PromiseActorLogic<FetchCombinedConsentResponse, {
107
- consentId: string;
108
- }, xstate430.EventObject>;
109
- id: string | undefined;
110
- } extends infer T ? T extends {
111
- src: "fetchConsent";
112
- logic: xstate430.PromiseActorLogic<FetchCombinedConsentResponse, {
113
- consentId: string;
114
- }, xstate430.EventObject>;
115
- id: string | undefined;
116
- } ? T extends {
117
- src: TSrc;
118
- } ? xstate430.ConditionalRequired<[options?: ({
119
- id?: T["id"] | undefined;
120
- systemId?: string;
121
- input?: xstate430.InputFrom<T["logic"]> | undefined;
122
- syncSnapshot?: boolean;
123
- } & { [K in xstate430.RequiredActorOptions<T>]: unknown }) | undefined], xstate430.IsNotNever<xstate430.RequiredActorOptions<T>>> : never : never : never) | ({
124
- src: "submitConsent";
125
- logic: xstate430.PromiseActorLogic<void, {
126
- languageConsentId: string;
127
- checkboxes: ConsentCheckbox[];
128
- }, xstate430.EventObject>;
129
- id: string | undefined;
130
- } extends infer T_1 ? T_1 extends {
131
- src: "submitConsent";
132
- logic: xstate430.PromiseActorLogic<void, {
133
- languageConsentId: string;
134
- checkboxes: ConsentCheckbox[];
135
- }, xstate430.EventObject>;
136
- id: string | undefined;
137
- } ? T_1 extends {
138
- src: TSrc;
139
- } ? xstate430.ConditionalRequired<[options?: ({
140
- id?: T_1["id"] | undefined;
141
- systemId?: string;
142
- input?: xstate430.InputFrom<T_1["logic"]> | undefined;
143
- syncSnapshot?: boolean;
144
- } & { [K_1 in xstate430.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate430.IsNotNever<xstate430.RequiredActorOptions<T_1>>> : never : never : never)): xstate430.ActorRefFromLogic<xstate430.GetConcreteByKey<xstate430.Values<{
145
- fetchConsent: {
146
- src: "fetchConsent";
147
- logic: xstate430.PromiseActorLogic<FetchCombinedConsentResponse, {
148
- consentId: string;
149
- }, xstate430.EventObject>;
150
- id: string | undefined;
151
- };
152
- submitConsent: {
153
- src: "submitConsent";
154
- logic: xstate430.PromiseActorLogic<void, {
155
- languageConsentId: string;
156
- checkboxes: ConsentCheckbox[];
157
- }, xstate430.EventObject>;
158
- id: string | undefined;
159
- };
160
- }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate430.AnyActorLogic>(src: TLogic, ...[options]: xstate430.ConditionalRequired<[options?: ({
162
- id?: never;
163
- systemId?: string;
164
- input?: xstate430.InputFrom<TLogic> | undefined;
165
- syncSnapshot?: boolean;
166
- } & { [K in xstate430.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate430.IsNotNever<xstate430.RequiredLogicInput<TLogic>>>): xstate430.ActorRefFromLogic<TLogic>;
167
- };
168
- input: ConsentInput;
169
- self: xstate430.ActorRef<xstate430.MachineSnapshot<ConsentContext, {
170
- type: "LOAD";
171
- } | {
172
- type: "TOGGLE_CHECKBOX";
173
- checkboxId: string;
174
- } | {
175
- type: "SUBMIT";
176
- } | {
177
- type: "RETRY";
178
- } | {
179
- type: "RESET";
180
- }, Record<string, xstate430.AnyActorRef | undefined>, xstate430.StateValue, string, unknown, any, any>, {
181
- type: "LOAD";
182
- } | {
183
- type: "TOGGLE_CHECKBOX";
184
- checkboxId: string;
185
- } | {
186
- type: "SUBMIT";
187
- } | {
188
- type: "RETRY";
189
- } | {
190
- type: "RESET";
191
- }, xstate430.AnyEventObject>;
192
- }) => {
193
- config: ConsentConfig;
194
- title: string;
195
- richText: string;
196
- languageConsentId: string;
197
- checkboxes: never[];
198
- error: undefined;
199
- };
200
- readonly states: {
201
- readonly idle: {
202
- readonly on: {
203
- readonly LOAD: {
204
- readonly target: "loading";
205
- readonly actions: "clearError";
206
- };
207
- };
208
- };
209
- readonly loading: {
210
- readonly invoke: {
211
- readonly id: "fetchConsent";
212
- readonly src: "fetchConsent";
213
- readonly input: ({
214
- context
215
- }: {
216
- context: ConsentContext;
217
- event: {
218
- type: "LOAD";
219
- } | {
220
- type: "TOGGLE_CHECKBOX";
221
- checkboxId: string;
222
- } | {
223
- type: "SUBMIT";
224
- } | {
225
- type: "RETRY";
226
- } | {
227
- type: "RESET";
228
- };
229
- self: xstate430.ActorRef<xstate430.MachineSnapshot<ConsentContext, {
230
- type: "LOAD";
231
- } | {
232
- type: "TOGGLE_CHECKBOX";
233
- checkboxId: string;
234
- } | {
235
- type: "SUBMIT";
236
- } | {
237
- type: "RETRY";
238
- } | {
239
- type: "RESET";
240
- }, Record<string, xstate430.AnyActorRef>, xstate430.StateValue, string, unknown, any, any>, {
241
- type: "LOAD";
242
- } | {
243
- type: "TOGGLE_CHECKBOX";
244
- checkboxId: string;
245
- } | {
246
- type: "SUBMIT";
247
- } | {
248
- type: "RETRY";
249
- } | {
250
- type: "RESET";
251
- }, xstate430.AnyEventObject>;
252
- }) => {
253
- consentId: string;
254
- };
255
- readonly onDone: {
256
- readonly target: "display";
257
- readonly actions: "setConsentData";
258
- };
259
- readonly onError: {
260
- readonly target: "error";
261
- readonly actions: "setError";
262
- };
263
- };
264
- };
265
- readonly display: {
266
- readonly on: {
267
- readonly TOGGLE_CHECKBOX: {
268
- readonly actions: "toggleCheckbox";
269
- };
270
- readonly SUBMIT: {
271
- readonly target: "submitting";
272
- readonly guard: "canSubmit";
273
- };
274
- readonly RETRY: {
275
- readonly target: "loading";
276
- readonly actions: "clearError";
277
- };
278
- };
279
- };
280
- readonly submitting: {
281
- readonly invoke: {
282
- readonly id: "submitConsent";
283
- readonly src: "submitConsent";
284
- readonly input: ({
285
- context
286
- }: {
287
- context: ConsentContext;
288
- event: {
289
- type: "LOAD";
290
- } | {
291
- type: "TOGGLE_CHECKBOX";
292
- checkboxId: string;
293
- } | {
294
- type: "SUBMIT";
295
- } | {
296
- type: "RETRY";
297
- } | {
298
- type: "RESET";
299
- };
300
- self: xstate430.ActorRef<xstate430.MachineSnapshot<ConsentContext, {
301
- type: "LOAD";
302
- } | {
303
- type: "TOGGLE_CHECKBOX";
304
- checkboxId: string;
305
- } | {
306
- type: "SUBMIT";
307
- } | {
308
- type: "RETRY";
309
- } | {
310
- type: "RESET";
311
- }, Record<string, xstate430.AnyActorRef>, xstate430.StateValue, string, unknown, any, any>, {
312
- type: "LOAD";
313
- } | {
314
- type: "TOGGLE_CHECKBOX";
315
- checkboxId: string;
316
- } | {
317
- type: "SUBMIT";
318
- } | {
319
- type: "RETRY";
320
- } | {
321
- type: "RESET";
322
- }, xstate430.AnyEventObject>;
323
- }) => {
324
- languageConsentId: string;
325
- checkboxes: ConsentCheckbox[];
326
- };
327
- readonly onDone: {
328
- readonly target: "finished";
329
- };
330
- readonly onError: {
331
- readonly target: "display";
332
- readonly actions: "setError";
333
- };
334
- };
335
- };
336
- readonly error: {
337
- readonly on: {
338
- readonly RETRY: {
339
- readonly target: "loading";
340
- readonly actions: "clearError";
341
- };
342
- readonly RESET: {
343
- readonly target: "idle";
344
- readonly actions: "resetContext";
345
- };
346
- };
347
- };
348
- readonly finished: {
349
- readonly type: "final";
350
- };
351
- };
352
- }>;
353
- //#endregion
354
- //#region src/modules/consent/consentActor.d.ts
355
- type CreateConsentActorOptions = {
356
- config: ConsentConfig;
357
- };
358
- //#endregion
359
- //#region src/modules/consent/consentManager.d.ts
360
- type ConsentIdleState = {
361
- status: 'idle';
362
- };
363
- type ConsentLoadingState = {
364
- status: 'loading';
365
- };
366
- type ConsentDisplayState = {
367
- status: 'display';
368
- title: string;
369
- richText: string;
370
- checkboxes: ConsentCheckbox[];
371
- canSubmit: boolean;
372
- error?: string;
373
- };
374
- type ConsentSubmittingState = {
375
- status: 'submitting';
376
- title: string;
377
- richText: string;
378
- checkboxes: ConsentCheckbox[];
379
- canSubmit: false;
380
- };
381
- type ConsentFinishedState = {
382
- status: 'finished';
383
- };
384
- type ConsentErrorState = {
385
- status: 'error';
386
- error: string;
387
- };
388
- type ConsentState = ConsentIdleState | ConsentLoadingState | ConsentDisplayState | ConsentSubmittingState | ConsentFinishedState | ConsentErrorState;
389
- declare function createConsentManager(options: CreateConsentActorOptions): Manager<ConsentState> & {
390
- load(): void;
391
- toggleCheckbox(checkboxId: string): void;
392
- submit(): void;
393
- retry(): void;
394
- reset(): void;
395
- };
396
- type ConsentManager = ReturnType<typeof createConsentManager>;
397
- //#endregion
398
- export { type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager };
1
+ import "./Manager-Vivkfry8.js";
2
+ import "./Actor-CSrrg3bi.js";
3
+ 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-C7KTApEG.js";
4
+ export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,79 +1,8 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
2
+ import "./events-Bsw1l0pH.esm.js";
3
3
  import "./endpoints-BPHddOTi.esm.js";
4
- import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { t as consentMachine } from "./consentStateMachine-DKLONjEH.esm.js";
4
+ import "./xstate.esm-CWoFJOio.esm.js";
5
+ import { t as consentMachine } from "./consentStateMachine-gpri_8Pu.esm.js";
6
+ import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-fFCO1oob.esm.js";
6
7
 
7
- //#region src/modules/consent/consentActor.ts
8
- function createConsentActor(options) {
9
- return createActor(consentMachine, { input: { config: options.config } }).start();
10
- }
11
-
12
- //#endregion
13
- //#region src/modules/consent/consentManager.ts
14
- function getCanSubmit(checkboxes) {
15
- return checkboxes.filter((checkbox) => checkbox.required).every((checkbox) => checkbox.checked);
16
- }
17
- function mapState(snapshot) {
18
- const typedSnapshot = snapshot;
19
- const { context } = typedSnapshot;
20
- const canSubmit = getCanSubmit(context.checkboxes);
21
- if (typedSnapshot.matches("idle")) return { status: "idle" };
22
- if (typedSnapshot.matches("loading")) return { status: "loading" };
23
- if (typedSnapshot.matches("display")) return {
24
- status: "display",
25
- title: context.title,
26
- richText: context.richText,
27
- checkboxes: context.checkboxes,
28
- canSubmit,
29
- error: context.error
30
- };
31
- if (typedSnapshot.matches("submitting")) return {
32
- status: "submitting",
33
- title: context.title,
34
- richText: context.richText,
35
- checkboxes: context.checkboxes,
36
- canSubmit: false
37
- };
38
- if (typedSnapshot.matches("finished")) return { status: "finished" };
39
- if (typedSnapshot.matches("error")) return {
40
- status: "error",
41
- error: context.error ?? "Unknown error"
42
- };
43
- return { status: "idle" };
44
- }
45
- function createApi({ actor, trackElementClicked }) {
46
- return {
47
- load() {
48
- actor.send({ type: "LOAD" });
49
- },
50
- toggleCheckbox(checkboxId) {
51
- actor.send({
52
- type: "TOGGLE_CHECKBOX",
53
- checkboxId
54
- });
55
- },
56
- submit() {
57
- trackElementClicked?.("submit");
58
- actor.send({ type: "SUBMIT" });
59
- },
60
- retry() {
61
- trackElementClicked?.("retry");
62
- actor.send({ type: "RETRY" });
63
- },
64
- reset() {
65
- actor.send({ type: "RESET" });
66
- }
67
- };
68
- }
69
- function createConsentManager(options) {
70
- return createManager({
71
- actor: createConsentActor(options),
72
- mapState,
73
- createApi,
74
- instrumentation: createManagerInstrumentation(eventModuleNames.combinedConsent)
75
- });
76
- }
77
-
78
- //#endregion
79
- export { consentMachine, createConsentManager };
8
+ export { consentMachine, createConsentManager, createConsentManagerFromActor };