@auth0/auth0-acul-react 1.0.0-alpha.1 → 1.0.0-alpha.3

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 (179) hide show
  1. package/README.md +214 -11
  2. package/dist/export/getting-started.d.ts +1 -1
  3. package/dist/export/hooks.d.ts +1 -1
  4. package/dist/hooks/common/errors.d.ts +19 -19
  5. package/dist/hooks/common/errors.js +1 -1
  6. package/dist/hooks/common/errors.js.map +1 -1
  7. package/dist/hooks/index.d.ts +2 -1
  8. package/dist/hooks/utility/passkey-autofill.d.ts +86 -0
  9. package/dist/hooks/utility/passkey-autofill.js +2 -0
  10. package/dist/hooks/utility/passkey-autofill.js.map +1 -0
  11. package/dist/hooks/utility/polling-manager.d.ts +1 -0
  12. package/dist/hooks/utility/polling-manager.js.map +1 -1
  13. package/dist/hooks/utility/validate-password.js +1 -1
  14. package/dist/hooks/utility/validate-password.js.map +1 -1
  15. package/dist/hooks/utility/validate-username.js +1 -1
  16. package/dist/hooks/utility/validate-username.js.map +1 -1
  17. package/dist/screens/accept-invitation.d.ts +1 -1
  18. package/dist/screens/accept-invitation.js.map +1 -1
  19. package/dist/screens/consent.d.ts +1 -1
  20. package/dist/screens/consent.js.map +1 -1
  21. package/dist/screens/customized-consent.d.ts +1 -1
  22. package/dist/screens/customized-consent.js.map +1 -1
  23. package/dist/screens/device-code-activation-allowed.d.ts +1 -1
  24. package/dist/screens/device-code-activation-allowed.js.map +1 -1
  25. package/dist/screens/device-code-activation-denied.d.ts +1 -1
  26. package/dist/screens/device-code-activation-denied.js.map +1 -1
  27. package/dist/screens/device-code-activation.d.ts +1 -1
  28. package/dist/screens/device-code-activation.js.map +1 -1
  29. package/dist/screens/device-code-confirmation.d.ts +1 -1
  30. package/dist/screens/device-code-confirmation.js.map +1 -1
  31. package/dist/screens/email-identifier-challenge.d.ts +1 -1
  32. package/dist/screens/email-identifier-challenge.js.map +1 -1
  33. package/dist/screens/email-otp-challenge.d.ts +1 -1
  34. package/dist/screens/email-otp-challenge.js.map +1 -1
  35. package/dist/screens/email-verification-result.d.ts +1 -1
  36. package/dist/screens/email-verification-result.js.map +1 -1
  37. package/dist/screens/interstitial-captcha.d.ts +1 -1
  38. package/dist/screens/interstitial-captcha.js.map +1 -1
  39. package/dist/screens/login-email-verification.d.ts +1 -1
  40. package/dist/screens/login-email-verification.js.map +1 -1
  41. package/dist/screens/login-id.d.ts +2 -1
  42. package/dist/screens/login-id.js +1 -1
  43. package/dist/screens/login-id.js.map +1 -1
  44. package/dist/screens/login-password.d.ts +3 -2
  45. package/dist/screens/login-password.js +1 -1
  46. package/dist/screens/login-password.js.map +1 -1
  47. package/dist/screens/login-passwordless-email-code.d.ts +1 -1
  48. package/dist/screens/login-passwordless-email-code.js.map +1 -1
  49. package/dist/screens/login-passwordless-sms-otp.d.ts +1 -1
  50. package/dist/screens/login-passwordless-sms-otp.js.map +1 -1
  51. package/dist/screens/login.d.ts +1 -1
  52. package/dist/screens/login.js.map +1 -1
  53. package/dist/screens/logout-aborted.d.ts +1 -1
  54. package/dist/screens/logout-aborted.js.map +1 -1
  55. package/dist/screens/logout-complete.d.ts +1 -1
  56. package/dist/screens/logout-complete.js.map +1 -1
  57. package/dist/screens/logout.d.ts +1 -1
  58. package/dist/screens/logout.js.map +1 -1
  59. package/dist/screens/mfa-begin-enroll-options.d.ts +1 -1
  60. package/dist/screens/mfa-begin-enroll-options.js.map +1 -1
  61. package/dist/screens/mfa-country-codes.d.ts +1 -1
  62. package/dist/screens/mfa-country-codes.js.map +1 -1
  63. package/dist/screens/mfa-detect-browser-capabilities.d.ts +1 -1
  64. package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -1
  65. package/dist/screens/mfa-email-challenge.d.ts +1 -1
  66. package/dist/screens/mfa-email-challenge.js.map +1 -1
  67. package/dist/screens/mfa-email-list.d.ts +1 -1
  68. package/dist/screens/mfa-email-list.js.map +1 -1
  69. package/dist/screens/mfa-enroll-result.d.ts +1 -1
  70. package/dist/screens/mfa-enroll-result.js.map +1 -1
  71. package/dist/screens/mfa-login-options.d.ts +3 -2
  72. package/dist/screens/mfa-login-options.js +1 -1
  73. package/dist/screens/mfa-login-options.js.map +1 -1
  74. package/dist/screens/mfa-otp-challenge.d.ts +1 -1
  75. package/dist/screens/mfa-otp-challenge.js.map +1 -1
  76. package/dist/screens/mfa-otp-enrollment-code.d.ts +1 -1
  77. package/dist/screens/mfa-otp-enrollment-code.js.map +1 -1
  78. package/dist/screens/mfa-otp-enrollment-qr.d.ts +1 -1
  79. package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -1
  80. package/dist/screens/mfa-phone-challenge.d.ts +1 -1
  81. package/dist/screens/mfa-phone-challenge.js.map +1 -1
  82. package/dist/screens/mfa-phone-enrollment.d.ts +1 -1
  83. package/dist/screens/mfa-phone-enrollment.js.map +1 -1
  84. package/dist/screens/mfa-push-challenge-push.d.ts +1 -1
  85. package/dist/screens/mfa-push-challenge-push.js.map +1 -1
  86. package/dist/screens/mfa-push-enrollment-qr.d.ts +4 -2
  87. package/dist/screens/mfa-push-enrollment-qr.js +1 -1
  88. package/dist/screens/mfa-push-enrollment-qr.js.map +1 -1
  89. package/dist/screens/mfa-push-list.d.ts +1 -1
  90. package/dist/screens/mfa-push-list.js.map +1 -1
  91. package/dist/screens/mfa-push-welcome.d.ts +1 -1
  92. package/dist/screens/mfa-push-welcome.js.map +1 -1
  93. package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +1 -1
  94. package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -1
  95. package/dist/screens/mfa-recovery-code-challenge.d.ts +1 -1
  96. package/dist/screens/mfa-recovery-code-challenge.js.map +1 -1
  97. package/dist/screens/mfa-recovery-code-enrollment.d.ts +1 -1
  98. package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -1
  99. package/dist/screens/mfa-sms-challenge.d.ts +1 -1
  100. package/dist/screens/mfa-sms-challenge.js.map +1 -1
  101. package/dist/screens/mfa-sms-enrollment.d.ts +1 -1
  102. package/dist/screens/mfa-sms-enrollment.js.map +1 -1
  103. package/dist/screens/mfa-sms-list.d.ts +1 -1
  104. package/dist/screens/mfa-sms-list.js.map +1 -1
  105. package/dist/screens/mfa-voice-challenge.d.ts +1 -1
  106. package/dist/screens/mfa-voice-challenge.js.map +1 -1
  107. package/dist/screens/mfa-voice-enrollment.d.ts +1 -1
  108. package/dist/screens/mfa-voice-enrollment.js.map +1 -1
  109. package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +1 -1
  110. package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -1
  111. package/dist/screens/mfa-webauthn-enrollment-success.d.ts +1 -1
  112. package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -1
  113. package/dist/screens/mfa-webauthn-error.d.ts +1 -1
  114. package/dist/screens/mfa-webauthn-error.js.map +1 -1
  115. package/dist/screens/mfa-webauthn-not-available-error.d.ts +1 -1
  116. package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -1
  117. package/dist/screens/mfa-webauthn-platform-challenge.d.ts +1 -1
  118. package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -1
  119. package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +1 -1
  120. package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -1
  121. package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +1 -1
  122. package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -1
  123. package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +1 -1
  124. package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -1
  125. package/dist/screens/organization-picker.d.ts +1 -1
  126. package/dist/screens/organization-picker.js.map +1 -1
  127. package/dist/screens/organization-selection.d.ts +1 -1
  128. package/dist/screens/organization-selection.js.map +1 -1
  129. package/dist/screens/passkey-enrollment-local.d.ts +1 -1
  130. package/dist/screens/passkey-enrollment-local.js.map +1 -1
  131. package/dist/screens/passkey-enrollment.d.ts +1 -1
  132. package/dist/screens/passkey-enrollment.js.map +1 -1
  133. package/dist/screens/phone-identifier-challenge.d.ts +3 -1
  134. package/dist/screens/phone-identifier-challenge.js +1 -1
  135. package/dist/screens/phone-identifier-challenge.js.map +1 -1
  136. package/dist/screens/phone-identifier-enrollment.d.ts +1 -1
  137. package/dist/screens/phone-identifier-enrollment.js.map +1 -1
  138. package/dist/screens/redeem-ticket.d.ts +1 -1
  139. package/dist/screens/redeem-ticket.js.map +1 -1
  140. package/dist/screens/reset-password-email.d.ts +1 -1
  141. package/dist/screens/reset-password-email.js.map +1 -1
  142. package/dist/screens/reset-password-error.d.ts +1 -1
  143. package/dist/screens/reset-password-error.js.map +1 -1
  144. package/dist/screens/reset-password-mfa-email-challenge.d.ts +1 -1
  145. package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -1
  146. package/dist/screens/reset-password-mfa-otp-challenge.d.ts +1 -1
  147. package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -1
  148. package/dist/screens/reset-password-mfa-phone-challenge.d.ts +1 -1
  149. package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -1
  150. package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +1 -1
  151. package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -1
  152. package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +1 -1
  153. package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -1
  154. package/dist/screens/reset-password-mfa-sms-challenge.d.ts +1 -1
  155. package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -1
  156. package/dist/screens/reset-password-mfa-voice-challenge.d.ts +1 -1
  157. package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -1
  158. package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +1 -1
  159. package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -1
  160. package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +1 -1
  161. package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -1
  162. package/dist/screens/reset-password-request.d.ts +1 -1
  163. package/dist/screens/reset-password-request.js.map +1 -1
  164. package/dist/screens/reset-password-success.d.ts +1 -1
  165. package/dist/screens/reset-password-success.js.map +1 -1
  166. package/dist/screens/reset-password.d.ts +1 -1
  167. package/dist/screens/reset-password.js.map +1 -1
  168. package/dist/screens/signup-id.d.ts +1 -1
  169. package/dist/screens/signup-id.js.map +1 -1
  170. package/dist/screens/signup-password.d.ts +3 -2
  171. package/dist/screens/signup-password.js +1 -1
  172. package/dist/screens/signup-password.js.map +1 -1
  173. package/dist/screens/signup.d.ts +1 -1
  174. package/dist/screens/signup.js.map +1 -1
  175. package/dist/state/error-store.d.ts +14 -14
  176. package/dist/state/error-store.js +1 -1
  177. package/dist/state/error-store.js.map +1 -1
  178. package/dist/telemetry.js +1 -1
  179. package/package.json +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-email.js","sources":["../../src/screens/reset-password-email.tsx"],"sourcesContent":["import ResetPasswordEmail from '@auth0/auth0-acul-js/reset-password-email';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordEmailMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-email';\n\n// Register the singleton instance of ResetPasswordEmail\nconst instance = registerScreen<ResetPasswordEmailMembers>(ResetPasswordEmail)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordEmailMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resendEmail = (payload?: CustomOptions) => withError(instance.resendEmail(payload));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordEmail\nexport const useResetPasswordEmail = (): ResetPasswordEmailMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordEmail","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resendEmail","payload","useResetPasswordEmail","useMemo"],"mappings":"obAaA,MAAMA,EAAWC,EAA0CC,IAGrDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAwCN,IAC/CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAeC,GAA4Bd,EAAUH,EAASgB,YAAYC,IAc1EC,EAAwB,IAAiCC,EAAQ,IAAMnB,EAAU"}
1
+ {"version":3,"file":"reset-password-email.js","sources":["../../src/screens/reset-password-email.tsx"],"sourcesContent":["import ResetPasswordEmail from '@auth0/auth0-acul-js/reset-password-email';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordEmailMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-email';\n\n// Register the singleton instance of ResetPasswordEmail\nconst instance = registerScreen<ResetPasswordEmailMembers>(ResetPasswordEmail)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordEmailMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resendEmail = (payload?: CustomOptions) => withError(instance.resendEmail(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordEmail\nexport const useResetPasswordEmail = (): ResetPasswordEmailMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordEmail","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resendEmail","payload","useResetPasswordEmail","useMemo"],"mappings":"obAaA,MAAMA,EAAWC,EAA0CC,IAGrDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAwCN,IAC/CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAeC,GAA4Bd,EAAUH,EAASgB,YAAYC,IAM1EC,EAAwB,IAAiCC,EAAQ,IAAMnB,EAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { ResetPasswordErrorMembers } from '@auth0/auth0-acul-js/reset-password-error';
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnResetPasswordError, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
3
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
4
  export declare const useResetPasswordError: () => ResetPasswordErrorMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-error.js","sources":["../../src/screens/reset-password-error.tsx"],"sourcesContent":["import ResetPasswordError from '@auth0/auth0-acul-js/reset-password-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ResetPasswordErrorMembers } from '@auth0/auth0-acul-js/reset-password-error';\n\n// Register the singleton instance of ResetPasswordError\nconst instance = registerScreen<ResetPasswordErrorMembers>(ResetPasswordError)!;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordErrorMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordError\nexport const useResetPasswordError = (): ResetPasswordErrorMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordError","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useResetPasswordError","useMemo"],"mappings":"2XASA,MAAMA,EAAWC,EAA0CC,GAGrDC,EAAU,IAAIC,EAAwCJ,IAC/CK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAcSW,EAAwB,IAAiCC,EAAQ,IAAMf,EAAU"}
1
+ {"version":3,"file":"reset-password-error.js","sources":["../../src/screens/reset-password-error.tsx"],"sourcesContent":["import ResetPasswordError from '@auth0/auth0-acul-js/reset-password-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ResetPasswordErrorMembers } from '@auth0/auth0-acul-js/reset-password-error';\n\n// Register the singleton instance of ResetPasswordError\nconst instance = registerScreen<ResetPasswordErrorMembers>(ResetPasswordError)!;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordErrorMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordError\nexport const useResetPasswordError = (): ResetPasswordErrorMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordError","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useResetPasswordError","useMemo"],"mappings":"2XASA,MAAMA,EAAWC,EAA0CC,GAGrDC,EAAU,IAAIC,EAAwCJ,IAC/CK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAwB,IAAiCC,EAAQ,IAAMf,EAAU"}
@@ -4,5 +4,5 @@ export declare const continueMethod: (payload: ContinueOptions) => void | Promis
4
4
  export declare const resendCode: (payload?: ResendCodeOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (payload?: TryAnotherMethodOptions) => void | Promise<void>;
6
6
  export { useResend } from '../hooks/utility/resend-manager';
7
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
7
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
8
8
  export declare const useResetPasswordMfaEmailChallenge: () => ResetPasswordMfaEmailChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-email-challenge.js","sources":["../../src/screens/reset-password-mfa-email-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaEmailChallengeMembers,\n ContinueOptions,\n ResendCodeOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';\n\n// Register the singleton instance of ResetPasswordMfaEmailChallenge\nconst instance = registerScreen<ResetPasswordMfaEmailChallengeMembers>(\n ResetPasswordMfaEmailChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaEmailChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const resendCode = (payload?: ResendCodeOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaEmailChallenge\nexport const useResetPasswordMfaEmailChallenge = (): ResetPasswordMfaEmailChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaEmailChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendCode","tryAnotherMethod","useResetPasswordMfaEmailChallenge","useMemo"],"mappings":"4fAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAcF,GAAgCd,EAAUH,EAASmB,WAAWF,IAC5EG,EAAoBH,GAC/Bd,EAAUH,EAASoB,iBAAiBH,IAiBzBI,EAAoC,IAC/CC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-email-challenge.js","sources":["../../src/screens/reset-password-mfa-email-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaEmailChallenge from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaEmailChallengeMembers,\n ContinueOptions,\n ResendCodeOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-email-challenge';\n\n// Register the singleton instance of ResetPasswordMfaEmailChallenge\nconst instance = registerScreen<ResetPasswordMfaEmailChallengeMembers>(\n ResetPasswordMfaEmailChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaEmailChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const resendCode = (payload?: ResendCodeOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaEmailChallenge\nexport const useResetPasswordMfaEmailChallenge = (): ResetPasswordMfaEmailChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaEmailChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendCode","tryAnotherMethod","useResetPasswordMfaEmailChallenge","useMemo"],"mappings":"4fAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAcF,GAAgCd,EAAUH,EAASmB,WAAWF,IAC5EG,EAAoBH,GAC/Bd,EAAUH,EAASoB,iBAAiBH,IASzBI,EAAoC,IAC/CC,EAAQ,IAAMtB,EAAU"}
@@ -2,5 +2,5 @@ import type { ResetPasswordMfaOtpChallengeMembers, ContinueOptions, TryAnotherMe
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
4
4
  export declare const tryAnotherMethod: (payload?: TryAnotherMethodOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
6
  export declare const useResetPasswordMfaOtpChallenge: () => ResetPasswordMfaOtpChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-otp-challenge.js","sources":["../../src/screens/reset-password-mfa-otp-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaOtpChallengeMembers,\n ContinueOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';\n\n// Register the singleton instance of ResetPasswordMfaOtpChallenge\nconst instance = registerScreen<ResetPasswordMfaOtpChallengeMembers>(ResetPasswordMfaOtpChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaOtpChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaOtpChallenge\nexport const useResetPasswordMfaOtpChallenge = (): ResetPasswordMfaOtpChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaOtpChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","useResetPasswordMfaOtpChallenge","useMemo"],"mappings":"gcAcA,MAAMA,EAAWC,EAAoDC,IAG/DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkDN,IACzDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAczBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-otp-challenge.js","sources":["../../src/screens/reset-password-mfa-otp-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaOtpChallengeMembers,\n ContinueOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';\n\n// Register the singleton instance of ResetPasswordMfaOtpChallenge\nconst instance = registerScreen<ResetPasswordMfaOtpChallengeMembers>(ResetPasswordMfaOtpChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaOtpChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaOtpChallenge\nexport const useResetPasswordMfaOtpChallenge = (): ResetPasswordMfaOtpChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaOtpChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","useResetPasswordMfaOtpChallenge","useMemo"],"mappings":"gcAcA,MAAMA,EAAWC,EAAoDC,IAG/DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkDN,IACzDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
@@ -2,5 +2,5 @@ import type { ResetPasswordMfaPhoneChallengeMembers, ContinueOptions, TryAnother
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnResetPasswordMfaPhoneChallenge, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
4
4
  export declare const tryAnotherMethod: (payload: TryAnotherMethodOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
6
  export declare const useResetPasswordMfaPhoneChallenge: () => ResetPasswordMfaPhoneChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-phone-challenge.js","sources":["../../src/screens/reset-password-mfa-phone-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaPhoneChallengeMembers,\n ContinueOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';\n\n// Register the singleton instance of ResetPasswordMfaPhoneChallenge\nconst instance = registerScreen<ResetPasswordMfaPhoneChallengeMembers>(\n ResetPasswordMfaPhoneChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaPhoneChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const tryAnotherMethod = (payload: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaPhoneChallenge\nexport const useResetPasswordMfaPhoneChallenge = (): ResetPasswordMfaPhoneChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaPhoneChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","useResetPasswordMfaPhoneChallenge","useMemo"],"mappings":"kcAcA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAczBG,EAAoC,IAC/CC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-phone-challenge.js","sources":["../../src/screens/reset-password-mfa-phone-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaPhoneChallengeMembers,\n ContinueOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';\n\n// Register the singleton instance of ResetPasswordMfaPhoneChallenge\nconst instance = registerScreen<ResetPasswordMfaPhoneChallengeMembers>(\n ResetPasswordMfaPhoneChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaPhoneChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const tryAnotherMethod = (payload: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaPhoneChallenge\nexport const useResetPasswordMfaPhoneChallenge = (): ResetPasswordMfaPhoneChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaPhoneChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","useResetPasswordMfaPhoneChallenge","useMemo"],"mappings":"kcAcA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAoC,IAC/CC,EAAQ,IAAMrB,EAAU"}
@@ -5,5 +5,5 @@ export declare const resendPushNotification: (payload?: CustomOptions) => void |
5
5
  export declare const enterCodeManually: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
7
7
  export { useMfaPolling } from '../hooks/utility/polling-manager';
8
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
8
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
9
  export declare const useResetPasswordMfaPushChallengePush: () => ResetPasswordMfaPushChallengePushMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-push-challenge-push.js","sources":["../../src/screens/reset-password-mfa-push-challenge-push.tsx"],"sourcesContent":["import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaPushChallengePushMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';\n\n// Register the singleton instance of ResetPasswordMfaPushChallengePush\nconst instance = registerScreen<ResetPasswordMfaPushChallengePushMembers>(\n ResetPasswordMfaPushChallengePush\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaPushChallengePushMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload?: CustomOptions) => withError(instance.continue(payload));\nexport const resendPushNotification = (payload?: CustomOptions) =>\n withError(instance.resendPushNotification(payload));\nexport const enterCodeManually = (payload?: CustomOptions) =>\n withError(instance.enterCodeManually(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useMfaPolling } from '../hooks/utility/polling-manager';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaPushChallengePush\nexport const useResetPasswordMfaPushChallengePush = (): ResetPasswordMfaPushChallengePushMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaPushChallengePush","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendPushNotification","enterCodeManually","tryAnotherMethod","useResetPasswordMfaPushChallengePush","useMemo"],"mappings":"qgBAaA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuDN,IAC9DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA4Bd,EAAUH,EAASkB,SAASD,IAC1EE,EAA0BF,GACrCd,EAAUH,EAASmB,uBAAuBF,IAC/BG,EAAqBH,GAChCd,EAAUH,EAASoB,kBAAkBH,IAC1BI,EAAoBJ,GAC/Bd,EAAUH,EAASqB,iBAAiBJ,IAiBzBK,EAAuC,IAClDC,EAAQ,IAAMvB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-push-challenge-push.js","sources":["../../src/screens/reset-password-mfa-push-challenge-push.tsx"],"sourcesContent":["import ResetPasswordMfaPushChallengePush from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaPushChallengePushMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-push-challenge-push';\n\n// Register the singleton instance of ResetPasswordMfaPushChallengePush\nconst instance = registerScreen<ResetPasswordMfaPushChallengePushMembers>(\n ResetPasswordMfaPushChallengePush\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaPushChallengePushMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload?: CustomOptions) => withError(instance.continue(payload));\nexport const resendPushNotification = (payload?: CustomOptions) =>\n withError(instance.resendPushNotification(payload));\nexport const enterCodeManually = (payload?: CustomOptions) =>\n withError(instance.enterCodeManually(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useMfaPolling } from '../hooks/utility/polling-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaPushChallengePush\nexport const useResetPasswordMfaPushChallengePush = (): ResetPasswordMfaPushChallengePushMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaPushChallengePush","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendPushNotification","enterCodeManually","tryAnotherMethod","useResetPasswordMfaPushChallengePush","useMemo"],"mappings":"qgBAaA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuDN,IAC9DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA4Bd,EAAUH,EAASkB,SAASD,IAC1EE,EAA0BF,GACrCd,EAAUH,EAASmB,uBAAuBF,IAC/BG,EAAqBH,GAChCd,EAAUH,EAASoB,kBAAkBH,IAC1BI,EAAoBJ,GAC/Bd,EAAUH,EAASqB,iBAAiBJ,IASzBK,EAAuC,IAClDC,EAAQ,IAAMvB,EAAU"}
@@ -2,5 +2,5 @@ import type { ResetPasswordMfaRecoveryCodeChallengeMembers, CustomOptions } from
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continueMethod: (code: string, payload?: CustomOptions) => void | Promise<void>;
4
4
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
6
  export declare const useResetPasswordMfaRecoveryCodeChallenge: () => ResetPasswordMfaRecoveryCodeChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-recovery-code-challenge.js","sources":["../../src/screens/reset-password-mfa-recovery-code-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaRecoveryCodeChallengeMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';\n\n// Register the singleton instance of ResetPasswordMfaRecoveryCodeChallenge\nconst instance = registerScreen<ResetPasswordMfaRecoveryCodeChallengeMembers>(\n ResetPasswordMfaRecoveryCodeChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaRecoveryCodeChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (code: string, payload?: CustomOptions) =>\n withError(instance.continue(code, payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaRecoveryCodeChallenge\nexport const useResetPasswordMfaRecoveryCodeChallenge =\n (): ResetPasswordMfaRecoveryCodeChallengeMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaRecoveryCodeChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","code","payload","continue","tryAnotherMethod","useResetPasswordMfaRecoveryCodeChallenge","useMemo"],"mappings":"0cAaA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2DN,IAClEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiB,CAACC,EAAcC,IAC3Cf,EAAUH,EAASmB,SAASF,EAAMC,IACvBE,EAAoBF,GAC/Bf,EAAUH,EAASoB,iBAAiBF,IAczBG,EACX,IAAoDC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-recovery-code-challenge.js","sources":["../../src/screens/reset-password-mfa-recovery-code-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaRecoveryCodeChallengeMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';\n\n// Register the singleton instance of ResetPasswordMfaRecoveryCodeChallenge\nconst instance = registerScreen<ResetPasswordMfaRecoveryCodeChallengeMembers>(\n ResetPasswordMfaRecoveryCodeChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaRecoveryCodeChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (code: string, payload?: CustomOptions) =>\n withError(instance.continue(code, payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaRecoveryCodeChallenge\nexport const useResetPasswordMfaRecoveryCodeChallenge =\n (): ResetPasswordMfaRecoveryCodeChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaRecoveryCodeChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","code","payload","continue","tryAnotherMethod","useResetPasswordMfaRecoveryCodeChallenge","useMemo"],"mappings":"0cAaA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2DN,IAClEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiB,CAACC,EAAcC,IAC3Cf,EAAUH,EAASmB,SAASF,EAAMC,IACvBE,EAAoBF,GAC/Bf,EAAUH,EAASoB,iBAAiBF,IAMzBG,EACX,IAAoDC,EAAQ,IAAMtB,EAAU"}
@@ -5,5 +5,5 @@ export declare const resendCode: (payload?: CustomOptions) => void | Promise<voi
5
5
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const getACall: (payload?: CustomOptions) => void | Promise<void>;
7
7
  export { useResend } from '../hooks/utility/resend-manager';
8
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
8
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
9
  export declare const useResetPasswordMfaSmsChallenge: () => ResetPasswordMfaSmsChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-sms-challenge.js","sources":["../../src/screens/reset-password-mfa-sms-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaSmsChallengeMembers,\n MfaSmsChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';\n\n// Register the singleton instance of ResetPasswordMfaSmsChallenge\nconst instance = registerScreen<ResetPasswordMfaSmsChallengeMembers>(ResetPasswordMfaSmsChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaSmsChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMfaSmsChallenge = (payload: MfaSmsChallengeOptions) =>\n withError(instance.continueMfaSmsChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const getACall = (payload?: CustomOptions) => withError(instance.getACall(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaSmsChallenge\nexport const useResetPasswordMfaSmsChallenge = (): ResetPasswordMfaSmsChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaSmsChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMfaSmsChallenge","payload","resendCode","tryAnotherMethod","getACall","useResetPasswordMfaSmsChallenge","useMemo"],"mappings":"0fAcA,MAAMA,EAAWC,EAAoDC,IAG/DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkDN,IACzDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA2BC,GACtCd,EAAUH,EAASgB,wBAAwBC,IAChCC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAYH,GAA4Bd,EAAUH,EAASoB,SAASH,IAiBpEI,EAAkC,IAC7CC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-sms-challenge.js","sources":["../../src/screens/reset-password-mfa-sms-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaSmsChallengeMembers,\n MfaSmsChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';\n\n// Register the singleton instance of ResetPasswordMfaSmsChallenge\nconst instance = registerScreen<ResetPasswordMfaSmsChallengeMembers>(ResetPasswordMfaSmsChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaSmsChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMfaSmsChallenge = (payload: MfaSmsChallengeOptions) =>\n withError(instance.continueMfaSmsChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const getACall = (payload?: CustomOptions) => withError(instance.getACall(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaSmsChallenge\nexport const useResetPasswordMfaSmsChallenge = (): ResetPasswordMfaSmsChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaSmsChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMfaSmsChallenge","payload","resendCode","tryAnotherMethod","getACall","useResetPasswordMfaSmsChallenge","useMemo"],"mappings":"0fAcA,MAAMA,EAAWC,EAAoDC,IAG/DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkDN,IACzDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA2BC,GACtCd,EAAUH,EAASgB,wBAAwBC,IAChCC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAYH,GAA4Bd,EAAUH,EAASoB,SAASH,IASpEI,EAAkC,IAC7CC,EAAQ,IAAMtB,EAAU"}
@@ -5,5 +5,5 @@ export declare const switchToSms: (payload?: CustomOptions) => void | Promise<vo
5
5
  export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
7
7
  export { useResend } from '../hooks/utility/resend-manager';
8
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
8
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
9
  export declare const useResetPasswordMfaVoiceChallenge: () => ResetPasswordMfaVoiceChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-voice-challenge.js","sources":["../../src/screens/reset-password-mfa-voice-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaVoiceChallenge from '@auth0/auth0-acul-js/reset-password-mfa-voice-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaVoiceChallengeMembers,\n ContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-voice-challenge';\n\n// Register the singleton instance of ResetPasswordMfaVoiceChallenge\nconst instance = registerScreen<ResetPasswordMfaVoiceChallengeMembers>(\n ResetPasswordMfaVoiceChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaVoiceChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const switchToSms = (payload?: CustomOptions) => withError(instance.switchToSms(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaVoiceChallenge\nexport const useResetPasswordMfaVoiceChallenge = (): ResetPasswordMfaVoiceChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaVoiceChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","switchToSms","resendCode","tryAnotherMethod","useResetPasswordMfaVoiceChallenge","useMemo"],"mappings":"4fAcA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAeF,GAA4Bd,EAAUH,EAASmB,YAAYF,IAC1EG,EAAcH,GAA4Bd,EAAUH,EAASoB,WAAWH,IACxEI,EAAoBJ,GAC/Bd,EAAUH,EAASqB,iBAAiBJ,IAiBzBK,EAAoC,IAC/CC,EAAQ,IAAMvB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-voice-challenge.js","sources":["../../src/screens/reset-password-mfa-voice-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaVoiceChallenge from '@auth0/auth0-acul-js/reset-password-mfa-voice-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaVoiceChallengeMembers,\n ContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-voice-challenge';\n\n// Register the singleton instance of ResetPasswordMfaVoiceChallenge\nconst instance = registerScreen<ResetPasswordMfaVoiceChallengeMembers>(\n ResetPasswordMfaVoiceChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaVoiceChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const switchToSms = (payload?: CustomOptions) => withError(instance.switchToSms(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaVoiceChallenge\nexport const useResetPasswordMfaVoiceChallenge = (): ResetPasswordMfaVoiceChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaVoiceChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","switchToSms","resendCode","tryAnotherMethod","useResetPasswordMfaVoiceChallenge","useMemo"],"mappings":"4fAcA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoDN,IAC3DO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAeF,GAA4Bd,EAAUH,EAASmB,YAAYF,IAC1EG,EAAcH,GAA4Bd,EAAUH,EAASoB,WAAWH,IACxEI,EAAoBJ,GAC/Bd,EAAUH,EAASqB,iBAAiBJ,IASzBK,EAAoC,IAC/CC,EAAQ,IAAMvB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const continueWithPasskey: (options?: ContinueWithPasskeyOptions) => void | Promise<void>;
4
4
  export declare const reportBrowserError: (options: ReportBrowserErrorOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (options?: TryAnotherMethodOptions) => void | Promise<void>;
6
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
7
  export declare const useResetPasswordMfaWebAuthnPlatformChallenge: () => ResetPasswordMfaWebAuthnPlatformChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-webauthn-platform-challenge.js","sources":["../../src/screens/reset-password-mfa-webauthn-platform-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-platform-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaWebAuthnPlatformChallengeMembers,\n ContinueWithPasskeyOptions,\n ReportBrowserErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-platform-challenge';\n\n// Register the singleton instance of ResetPasswordMfaWebAuthnPlatformChallenge\nconst instance = registerScreen<ResetPasswordMfaWebAuthnPlatformChallengeMembers>(\n ResetPasswordMfaWebAuthnPlatformChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaWebAuthnPlatformChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueWithPasskey = (options?: ContinueWithPasskeyOptions) =>\n withError(instance.continueWithPasskey(options));\nexport const reportBrowserError = (options: ReportBrowserErrorOptions) =>\n withError(instance.reportBrowserError(options));\nexport const tryAnotherMethod = (options?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(options));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaWebAuthnPlatformChallenge\nexport const useResetPasswordMfaWebAuthnPlatformChallenge =\n (): ResetPasswordMfaWebAuthnPlatformChallengeMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaWebAuthnPlatformChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithPasskey","options","reportBrowserError","tryAnotherMethod","useResetPasswordMfaWebAuthnPlatformChallenge","useMemo"],"mappings":"8cAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA+DN,IACtEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAuBC,GAClCd,EAAUH,EAASgB,oBAAoBC,IAC5BC,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAczBG,EACX,IAAwDC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-webauthn-platform-challenge.js","sources":["../../src/screens/reset-password-mfa-webauthn-platform-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-platform-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaWebAuthnPlatformChallengeMembers,\n ContinueWithPasskeyOptions,\n ReportBrowserErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-platform-challenge';\n\n// Register the singleton instance of ResetPasswordMfaWebAuthnPlatformChallenge\nconst instance = registerScreen<ResetPasswordMfaWebAuthnPlatformChallengeMembers>(\n ResetPasswordMfaWebAuthnPlatformChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaWebAuthnPlatformChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueWithPasskey = (options?: ContinueWithPasskeyOptions) =>\n withError(instance.continueWithPasskey(options));\nexport const reportBrowserError = (options: ReportBrowserErrorOptions) =>\n withError(instance.reportBrowserError(options));\nexport const tryAnotherMethod = (options?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(options));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaWebAuthnPlatformChallenge\nexport const useResetPasswordMfaWebAuthnPlatformChallenge =\n (): ResetPasswordMfaWebAuthnPlatformChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaWebAuthnPlatformChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithPasskey","options","reportBrowserError","tryAnotherMethod","useResetPasswordMfaWebAuthnPlatformChallenge","useMemo"],"mappings":"8cAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA+DN,IACtEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAuBC,GAClCd,EAAUH,EAASgB,oBAAoBC,IAC5BC,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EACX,IAAwDC,EAAQ,IAAMrB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const useSecurityKey: (options?: UseSecurityKeyOptions) => void | Promise<void>;
4
4
  export declare const showError: (options: ShowErrorOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (options?: TryAnotherMethodOptions) => void | Promise<void>;
6
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
7
  export declare const useResetPasswordMfaWebAuthnRoamingChallenge: () => ResetPasswordMfaWebAuthnRoamingChallengeMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-mfa-webauthn-roaming-challenge.js","sources":["../../src/screens/reset-password-mfa-webauthn-roaming-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaWebAuthnRoamingChallengeMembers,\n UseSecurityKeyOptions,\n ShowErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';\n\n// Register the singleton instance of ResetPasswordMfaWebAuthnRoamingChallenge\nconst instance = registerScreen<ResetPasswordMfaWebAuthnRoamingChallengeMembers>(\n ResetPasswordMfaWebAuthnRoamingChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaWebAuthnRoamingChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const useSecurityKey = (options?: UseSecurityKeyOptions) =>\n withError(instance.useSecurityKey(options));\nexport const showError = (options: ShowErrorOptions) => withError(instance.showError(options));\nexport const tryAnotherMethod = (options?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(options));\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaWebAuthnRoamingChallenge\nexport const useResetPasswordMfaWebAuthnRoamingChallenge =\n (): ResetPasswordMfaWebAuthnRoamingChallengeMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordMfaWebAuthnRoamingChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useSecurityKey","options","showError","tryAnotherMethod","useResetPasswordMfaWebAuthnRoamingChallenge","useMemo"],"mappings":"6cAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8DN,IACrEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAC7Bd,EAAUH,EAASgB,eAAeC,IACvBC,EAAaD,GAA8Bd,EAAUH,EAASkB,UAAUD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAczBG,EACX,IAAuDC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"reset-password-mfa-webauthn-roaming-challenge.js","sources":["../../src/screens/reset-password-mfa-webauthn-roaming-challenge.tsx"],"sourcesContent":["import ResetPasswordMfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMfaWebAuthnRoamingChallengeMembers,\n UseSecurityKeyOptions,\n ShowErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/reset-password-mfa-webauthn-roaming-challenge';\n\n// Register the singleton instance of ResetPasswordMfaWebAuthnRoamingChallenge\nconst instance = registerScreen<ResetPasswordMfaWebAuthnRoamingChallengeMembers>(\n ResetPasswordMfaWebAuthnRoamingChallenge\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMfaWebAuthnRoamingChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const useSecurityKey = (options?: UseSecurityKeyOptions) =>\n withError(instance.useSecurityKey(options));\nexport const showError = (options: ShowErrorOptions) => withError(instance.showError(options));\nexport const tryAnotherMethod = (options?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(options));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordMfaWebAuthnRoamingChallenge\nexport const useResetPasswordMfaWebAuthnRoamingChallenge =\n (): ResetPasswordMfaWebAuthnRoamingChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordMfaWebAuthnRoamingChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useSecurityKey","options","showError","tryAnotherMethod","useResetPasswordMfaWebAuthnRoamingChallenge","useMemo"],"mappings":"6cAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8DN,IACrEO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAC7Bd,EAAUH,EAASgB,eAAeC,IACvBC,EAAaD,GAA8Bd,EAAUH,EAASkB,UAAUD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EACX,IAAuDC,EAAQ,IAAMrB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const resetPassword: (payload: ResetPasswordRequestOptions) => void | Promise<void>;
4
4
  export declare const backToLogin: (payload?: CustomOptions) => void | Promise<void>;
5
5
  export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
6
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
7
  export declare const useResetPasswordRequest: () => ResetPasswordRequestMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-request.js","sources":["../../src/screens/reset-password-request.tsx"],"sourcesContent":["import ResetPasswordRequest from '@auth0/auth0-acul-js/reset-password-request';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordRequestMembers,\n ResetPasswordRequestOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-request';\n\n// Register the singleton instance of ResetPasswordRequest\nconst instance = registerScreen<ResetPasswordRequestMembers>(ResetPasswordRequest)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordRequestMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resetPassword = (payload: ResetPasswordRequestOptions) =>\n withError(instance.resetPassword(payload));\nexport const backToLogin = (payload?: CustomOptions) => withError(instance.backToLogin(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordRequest\nexport const useResetPasswordRequest = (): ResetPasswordRequestMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordRequest","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resetPassword","payload","backToLogin","useResetPasswordRequest","useMemo"],"mappings":"6fAcA,MAAMA,EAAWC,EAA4CC,IAGvDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA0CN,IACjDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiBC,GAC5Bd,EAAUH,EAASgB,cAAcC,IACtBC,EAAeD,GAA4Bd,EAAUH,EAASkB,YAAYD,IAiB1EE,EAA0B,IACrCC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"reset-password-request.js","sources":["../../src/screens/reset-password-request.tsx"],"sourcesContent":["import ResetPasswordRequest from '@auth0/auth0-acul-js/reset-password-request';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordRequestMembers,\n ResetPasswordRequestOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/reset-password-request';\n\n// Register the singleton instance of ResetPasswordRequest\nconst instance = registerScreen<ResetPasswordRequestMembers>(ResetPasswordRequest)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordRequestMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resetPassword = (payload: ResetPasswordRequestOptions) =>\n withError(instance.resetPassword(payload));\nexport const backToLogin = (payload?: CustomOptions) => withError(instance.backToLogin(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordRequest\nexport const useResetPasswordRequest = (): ResetPasswordRequestMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordRequest","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resetPassword","payload","backToLogin","useResetPasswordRequest","useMemo"],"mappings":"6fAcA,MAAMA,EAAWC,EAA4CC,IAGvDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA0CN,IACjDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiBC,GAC5Bd,EAAUH,EAASgB,cAAcC,IACtBC,EAAeD,GAA4Bd,EAAUH,EAASkB,YAAYD,IAS1EE,EAA0B,IACrCC,EAAQ,IAAMpB,EAAU"}
@@ -1,4 +1,4 @@
1
1
  import type { ResetPasswordSuccessMembers } from '@auth0/auth0-acul-js/reset-password-success';
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnResetPasswordSuccess, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
3
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
4
  export declare const useResetPasswordSuccess: () => ResetPasswordSuccessMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-success.js","sources":["../../src/screens/reset-password-success.tsx"],"sourcesContent":["import ResetPasswordSuccess from '@auth0/auth0-acul-js/reset-password-success';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ResetPasswordSuccessMembers } from '@auth0/auth0-acul-js/reset-password-success';\n\n// Register the singleton instance of ResetPasswordSuccess\nconst instance = registerScreen<ResetPasswordSuccessMembers>(ResetPasswordSuccess)!;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordSuccessMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordSuccess\nexport const useResetPasswordSuccess = (): ResetPasswordSuccessMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPasswordSuccess","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useResetPasswordSuccess","useMemo"],"mappings":"6XASA,MAAMA,EAAWC,EAA4CC,GAGvDC,EAAU,IAAIC,EAA0CJ,IACjDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAcSW,EAA0B,IACrCC,EAAQ,IAAMf,EAAU"}
1
+ {"version":3,"file":"reset-password-success.js","sources":["../../src/screens/reset-password-success.tsx"],"sourcesContent":["import ResetPasswordSuccess from '@auth0/auth0-acul-js/reset-password-success';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ResetPasswordSuccessMembers } from '@auth0/auth0-acul-js/reset-password-success';\n\n// Register the singleton instance of ResetPasswordSuccess\nconst instance = registerScreen<ResetPasswordSuccessMembers>(ResetPasswordSuccess)!;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordSuccessMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPasswordSuccess\nexport const useResetPasswordSuccess = (): ResetPasswordSuccessMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPasswordSuccess","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useResetPasswordSuccess","useMemo"],"mappings":"6XASA,MAAMA,EAAWC,EAA4CC,GAGvDC,EAAU,IAAIC,EAA0CJ,IACjDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAA0B,IACrCC,EAAQ,IAAMf,EAAU"}
@@ -2,5 +2,5 @@ import type { ResetPasswordMembers, ResetPasswordOptions } from '@auth0/auth0-ac
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnResetPassword, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnResetPassword, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const resetPassword: (payload: ResetPasswordOptions) => void | Promise<void>;
4
4
  export { usePasswordValidation } from '../hooks/utility/validate-password';
5
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
6
  export declare const useResetPassword: () => ResetPasswordMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password.js","sources":["../../src/screens/reset-password.tsx"],"sourcesContent":["import ResetPassword from '@auth0/auth0-acul-js/reset-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMembers,\n ResetPasswordOptions,\n} from '@auth0/auth0-acul-js/reset-password';\n\n// Register the singleton instance of ResetPassword\nconst instance = registerScreen<ResetPasswordMembers>(ResetPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resetPassword = (payload: ResetPasswordOptions) =>\n withError(instance.resetPassword(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPassword\nexport const useResetPassword = (): ResetPasswordMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","ResetPassword","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resetPassword","payload","useResetPassword","useMemo"],"mappings":"ufAaA,MAAMA,EAAWC,EAAqCC,IAGhDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAmCN,IAC1CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiBC,GAC5Bd,EAAUH,EAASgB,cAAcC,IAiBtBC,EAAmB,IAA4BC,EAAQ,IAAMnB,EAAU"}
1
+ {"version":3,"file":"reset-password.js","sources":["../../src/screens/reset-password.tsx"],"sourcesContent":["import ResetPassword from '@auth0/auth0-acul-js/reset-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n ResetPasswordMembers,\n ResetPasswordOptions,\n} from '@auth0/auth0-acul-js/reset-password';\n\n// Register the singleton instance of ResetPassword\nconst instance = registerScreen<ResetPasswordMembers>(ResetPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ResetPasswordMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const resetPassword = (payload: ResetPasswordOptions) =>\n withError(instance.resetPassword(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of ResetPassword\nexport const useResetPassword = (): ResetPasswordMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","ResetPassword","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","resetPassword","payload","useResetPassword","useMemo"],"mappings":"ufAaA,MAAMA,EAAWC,EAAqCC,IAGhDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAmCN,IAC1CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiBC,GAC5Bd,EAAUH,EAASgB,cAAcC,IAStBC,EAAmB,IAA4BC,EAAQ,IAAMnB,EAAU"}
@@ -5,5 +5,5 @@ export declare const federatedSignup: (payload: FederatedSignupOptions) => void
5
5
  export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';
7
7
  export { useUsernameValidation } from '../hooks/utility/validate-username';
8
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
8
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
9
  export declare const useSignupId: () => SignupIdMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"signup-id.js","sources":["../../src/screens/signup-id.tsx"],"sourcesContent":["import SignupId from '@auth0/auth0-acul-js/signup-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupIdMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup-id';\n\n// Register the singleton instance of SignupId\nconst instance = registerScreen<SignupIdMembers>(SignupId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupIdMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupId\nexport const useSignupId = (): SignupIdMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","SignupId","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignupId","useMemo"],"mappings":"2jBAeA,MAAMA,EAAWC,EAAgCC,IAG3CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8BN,IACrCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAoBxBG,EAAc,IAAuBC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"signup-id.js","sources":["../../src/screens/signup-id.tsx"],"sourcesContent":["import SignupId from '@auth0/auth0-acul-js/signup-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupIdMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup-id';\n\n// Register the singleton instance of SignupId\nconst instance = registerScreen<SignupIdMembers>(SignupId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupIdMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupId\nexport const useSignupId = (): SignupIdMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","SignupId","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignupId","useMemo"],"mappings":"2jBAeA,MAAMA,EAAWC,EAAgCC,IAG3CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8BN,IACrCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAYxBG,EAAc,IAAuBC,EAAQ,IAAMrB,EAAU"}
@@ -1,7 +1,8 @@
1
- import type { SignupPasswordMembers, SignupPasswordOptions, FederatedSignupOptions } from '@auth0/auth0-acul-js/signup-password';
1
+ import type { SignupPasswordMembers, SignupPasswordOptions, FederatedSignupOptions, SwitchConnectionOptions } from '@auth0/auth0-acul-js/signup-password';
2
2
  export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnSignupPassword, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnSignupPassword, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const signup: (payload: SignupPasswordOptions) => void | Promise<void>;
4
4
  export declare const federatedSignup: (payload: FederatedSignupOptions) => void | Promise<void>;
5
+ export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
5
6
  export { usePasswordValidation } from '../hooks/utility/validate-password';
6
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
7
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
8
  export declare const useSignupPassword: () => SignupPasswordMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/signup-password";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as s}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as e}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{usePasswordValidation}from"../hooks/utility/validate-password.js";const n=t(o),{withError:m}=s,u=new e(n),{useUser:a,useTenant:i,useBranding:p,useClient:c,useOrganization:h,usePrompt:d,useScreen:f,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.signup(o)),g=o=>m(n.federatedSignup(o)),l=()=>r(()=>n,[]);export{g as federatedSignup,k as signup,p as useBranding,c as useClient,h as useOrganization,d as usePrompt,f as useScreen,l as useSignupPassword,i as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/signup-password";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as s}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as e}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{usePasswordValidation}from"../hooks/utility/validate-password.js";const n=t(o),{withError:m}=s,u=new e(n),{useUser:a,useTenant:i,useBranding:c,useClient:p,useOrganization:h,usePrompt:d,useScreen:f,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.signup(o)),w=o=>m(n.federatedSignup(o)),g=o=>m(n.switchConnection(o)),l=()=>r(()=>n,[]);export{w as federatedSignup,k as signup,g as switchConnection,c as useBranding,p as useClient,h as useOrganization,d as usePrompt,f as useScreen,l as useSignupPassword,i as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=signup-password.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signup-password.js","sources":["../../src/screens/signup-password.tsx"],"sourcesContent":["import SignupPassword from '@auth0/auth0-acul-js/signup-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupPasswordMembers,\n SignupPasswordOptions,\n FederatedSignupOptions,\n} from '@auth0/auth0-acul-js/signup-password';\n\n// Register the singleton instance of SignupPassword\nconst instance = registerScreen<SignupPasswordMembers>(SignupPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupPasswordMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupPasswordOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupPassword\nexport const useSignupPassword = (): SignupPasswordMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","SignupPassword","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","useSignupPassword","useMemo"],"mappings":"wfAcA,MAAMA,EAAWC,EAAsCC,IAGjDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoCN,IAC3CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAAmCd,EAAUH,EAASgB,OAAOC,IACvEC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IAiBxBE,EAAoB,IAA6BC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"signup-password.js","sources":["../../src/screens/signup-password.tsx"],"sourcesContent":["import SignupPassword from '@auth0/auth0-acul-js/signup-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupPasswordMembers,\n SignupPasswordOptions,\n FederatedSignupOptions,\n SwitchConnectionOptions,\n} from '@auth0/auth0-acul-js/signup-password';\n\n// Register the singleton instance of SignupPassword\nconst instance = registerScreen<SignupPasswordMembers>(SignupPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupPasswordMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupPasswordOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const switchConnection = (payload: SwitchConnectionOptions) =>\n withError(instance.switchConnection(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupPassword\nexport const useSignupPassword = (): SignupPasswordMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","SignupPassword","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","switchConnection","useSignupPassword","useMemo"],"mappings":"wfAeA,MAAMA,EAAWC,EAAsCC,IAGjDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAoCN,IAC3CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAAmCd,EAAUH,EAASgB,OAAOC,IACvEC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IASzBG,EAAoB,IAA6BC,EAAQ,IAAMrB,EAAU"}
@@ -6,5 +6,5 @@ export declare const pickCountryCode: (payload?: CustomOptions) => void | Promis
6
6
  export { usePasswordValidation } from '../hooks/utility/validate-password';
7
7
  export { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';
8
8
  export { useUsernameValidation } from '../hooks/utility/validate-username';
9
- export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
9
+ export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
10
10
  export declare const useSignup: () => SignupMembers;
@@ -1 +1 @@
1
- {"version":3,"file":"signup.js","sources":["../../src/screens/signup.tsx"],"sourcesContent":["import Signup from '@auth0/auth0-acul-js/signup';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup';\n\n// Register the singleton instance of Signup\nconst instance = registerScreen<SignupMembers>(Signup)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of Signup\nexport const useSignup = (): SignupMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","Signup","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignup","useMemo"],"mappings":"ioBAeA,MAAMA,EAAWC,EAA8BC,IAGzCC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA4BN,IACnCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAuBxBG,EAAY,IAAqBC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"signup.js","sources":["../../src/screens/signup.tsx"],"sourcesContent":["import Signup from '@auth0/auth0-acul-js/signup';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup';\n\n// Register the singleton instance of Signup\nconst instance = registerScreen<SignupMembers>(Signup)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Signup\nexport const useSignup = (): SignupMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Signup","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignup","useMemo"],"mappings":"ioBAeA,MAAMA,EAAWC,EAA8BC,IAGzCC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA4BN,IACnCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAexBG,EAAY,IAAqBC,EAAQ,IAAMrB,EAAU"}
@@ -2,14 +2,14 @@ import type { Error as Auth0Error } from '@auth0/auth0-acul-js';
2
2
  export interface ErrorItem extends Auth0Error {
3
3
  id: string;
4
4
  label?: string;
5
- kind?: ErrorKind;
5
+ type?: ErrorType;
6
6
  }
7
- export type ErrorKind = 'server' | 'client' | 'developer';
8
- export declare const ERROR_KINDS: ErrorKind[];
7
+ export type ErrorType = 'auth0' | 'validation' | 'configuration';
8
+ export declare const ERROR_TYPES: ErrorType[];
9
9
  type Bucket = {
10
- server: ReadonlyArray<ErrorItem>;
11
- client: ReadonlyArray<ErrorItem>;
12
- developer: ReadonlyArray<ErrorItem>;
10
+ auth0: ReadonlyArray<ErrorItem>;
11
+ validation: ReadonlyArray<ErrorItem>;
12
+ configuration: ReadonlyArray<ErrorItem>;
13
13
  };
14
14
  type Listener = () => void;
15
15
  /**
@@ -25,22 +25,22 @@ declare class ErrorStore {
25
25
  snapshot(): Readonly<Bucket>;
26
26
  /** Add ids and freeze an array of ErrorItem-like objects. */
27
27
  private normalize;
28
- /** Replace an entire kind with a new list (generating ids if needed). */
29
- replace(kind: ErrorKind, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>): void;
28
+ /** Replace an entire type with a new list (generating ids if needed). */
29
+ replace(type: ErrorType, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>): void;
30
30
  /**
31
- * Replace only errors for a specific field within a kind.
31
+ * Replace only errors for a specific field within a type.
32
32
  * - Keeps all existing errors for other fields.
33
33
  * - Normalizes incoming errors and replaces matching field ones.
34
34
  */
35
- replacePartial(kind: ErrorKind, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>, field: string): void;
36
- /** Append one or more items to a kind. */
37
- push(kind: ErrorKind, list: Omit<ErrorItem, 'id'> | ErrorItem | Array<Omit<ErrorItem, 'id'> | ErrorItem>): void;
35
+ replacePartial(type: ErrorType, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>, field: string): void;
36
+ /** Append one or more items to a type. */
37
+ push(type: ErrorType, list: Omit<ErrorItem, 'id'> | ErrorItem | Array<Omit<ErrorItem, 'id'> | ErrorItem>): void;
38
38
  /** Clear one or more kinds (default: all kinds). */
39
- clear(kinds?: ErrorKind[]): void;
39
+ clear(kinds?: ErrorType[]): void;
40
40
  /**
41
41
  * Remove errors that match a given id or predicate from specified kinds.
42
42
  */
43
- remove(kinds: ErrorKind[] | undefined, test: string | ((e: ErrorItem) => boolean)): void;
43
+ remove(kinds: ErrorType[] | undefined, test: string | ((e: ErrorItem) => boolean)): void;
44
44
  private notify;
45
45
  }
46
46
  export declare const errorStore: ErrorStore;
@@ -1,2 +1,2 @@
1
- const e=["server","client","developer"];function t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r].id!==t[r].id)return!1;return!0}const r=Object.freeze({server:Object.freeze([]),client:Object.freeze([]),developer:Object.freeze([])});let s=0;const i=new class{constructor(){this.bucket=r,this.listeners=new Set}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}snapshot(){return this.bucket}normalize(e){return Object.freeze(e.map(e=>Object.freeze({...e,id:e.id??`${Date.now()}-${s++}`})))}replace(e,r){const s=this.normalize(r);t(this.bucket[e],s)||(this.bucket=Object.freeze({...this.bucket,[e]:s}),this.notify())}replacePartial(e,r,s){const i=this.normalize(r),c=this.bucket[e].filter(e=>e.field!==s),n=Object.freeze([...c,...i]);t(this.bucket[e],n)||(this.bucket=Object.freeze({...this.bucket,[e]:n}),this.notify())}push(e,t){const r=Array.isArray(t)?t:[t];if(0===r.length)return;const s=Object.freeze([...this.bucket[e],...this.normalize(r)]);this.bucket=Object.freeze({...this.bucket,[e]:s}),this.notify()}clear(t=e){let r=!1;const s={...this.bucket};for(const e of t)this.bucket[e].length>0&&(s[e]=Object.freeze([]),r=!0);r&&(this.bucket=Object.freeze(s),this.notify())}remove(t=e,r){const s="string"==typeof r?e=>e.id===r:r;let i=!1;const c={...this.bucket};for(const e of t){const t=this.bucket[e].filter(e=>!s(e));t.length!==this.bucket[e].length&&(c[e]=Object.freeze(t),i=!0)}i&&(this.bucket=Object.freeze(c),this.notify())}notify(){for(const e of this.listeners)e()}};export{e as ERROR_KINDS,i as errorStore};
1
+ const e=["auth0","validation","configuration"];function t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i].id!==t[i].id)return!1;return!0}const i=Object.freeze({auth0:Object.freeze([]),validation:Object.freeze([]),configuration:Object.freeze([])});let s=0;const r=new class{constructor(){this.bucket=i,this.listeners=new Set}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}snapshot(){return this.bucket}normalize(e){return Object.freeze(e.map(e=>Object.freeze({...e,id:e.id??`${Date.now()}-${s++}`})))}replace(e,i){const s=this.normalize(i);t(this.bucket[e],s)||(this.bucket=Object.freeze({...this.bucket,[e]:s}),this.notify())}replacePartial(e,i,s){const r=this.normalize(i),c=this.bucket[e].filter(e=>e.field!==s),n=Object.freeze([...c,...r]);t(this.bucket[e],n)||(this.bucket=Object.freeze({...this.bucket,[e]:n}),this.notify())}push(e,t){const i=Array.isArray(t)?t:[t];if(0===i.length)return;const s=Object.freeze([...this.bucket[e],...this.normalize(i)]);this.bucket=Object.freeze({...this.bucket,[e]:s}),this.notify()}clear(t=e){let i=!1;const s={...this.bucket};for(const e of t)this.bucket[e].length>0&&(s[e]=Object.freeze([]),i=!0);i&&(this.bucket=Object.freeze(s),this.notify())}remove(t=e,i){const s="string"==typeof i?e=>e.id===i:i;let r=!1;const c={...this.bucket};for(const e of t){const t=this.bucket[e].filter(e=>!s(e));t.length!==this.bucket[e].length&&(c[e]=Object.freeze(t),r=!0)}r&&(this.bucket=Object.freeze(c),this.notify())}notify(){for(const e of this.listeners)e()}};export{e as ERROR_TYPES,r as errorStore};
2
2
  //# sourceMappingURL=error-store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-store.js","sources":["../../src/state/error-store.ts"],"sourcesContent":["import type { Error as Auth0Error } from '@auth0/auth0-acul-js';\n\nexport interface ErrorItem extends Auth0Error {\n id: string;\n label?: string;\n kind?: ErrorKind;\n}\n\nexport type ErrorKind = 'server' | 'client' | 'developer';\n\nexport const ERROR_KINDS: ErrorKind[] = ['server', 'client', 'developer'];\n\ntype Bucket = {\n server: ReadonlyArray<ErrorItem>;\n client: ReadonlyArray<ErrorItem>;\n developer: ReadonlyArray<ErrorItem>;\n};\n\ntype Listener = () => void;\n\n/** Compare two error lists by id only for maximal speed. */\nfunction listsEqual(a: ReadonlyArray<ErrorItem>, b: ReadonlyArray<ErrorItem>) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (a[i].id !== b[i].id) return false;\n }\n return true;\n}\n\nconst EMPTY_BUCKET: Bucket = Object.freeze({\n server: Object.freeze([]),\n client: Object.freeze([]),\n developer: Object.freeze([]),\n});\n\nlet nextId = 0;\nconst genId = () => `${Date.now()}-${nextId++}`;\n\n/**\n * Global error store for ACUL (one screen per page).\n * - Holds a single bucket of errors across the current page.\n * - Generates stable ids for every inserted error.\n * - Emits immutable snapshots to subscribers.\n */\nclass ErrorStore {\n private bucket: Bucket = EMPTY_BUCKET;\n private listeners: Set<Listener> = new Set();\n\n subscribe(cb: Listener): () => void {\n this.listeners.add(cb);\n return () => this.listeners.delete(cb);\n }\n\n snapshot(): Readonly<Bucket> {\n return this.bucket;\n }\n\n /** Add ids and freeze an array of ErrorItem-like objects. */\n private normalize(\n list: Array<Omit<ErrorItem, 'id'> & { id?: string }>\n ): ReadonlyArray<ErrorItem> {\n return Object.freeze(\n list.map((e) =>\n Object.freeze({\n ...e,\n id: e.id ?? genId(),\n })\n )\n );\n }\n\n /** Replace an entire kind with a new list (generating ids if needed). */\n replace(kind: ErrorKind, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>) {\n const nextList = this.normalize(list);\n if (listsEqual(this.bucket[kind], nextList)) return;\n\n this.bucket = Object.freeze({\n ...this.bucket,\n [kind]: nextList,\n });\n this.notify();\n }\n\n /**\n * Replace only errors for a specific field within a kind.\n * - Keeps all existing errors for other fields.\n * - Normalizes incoming errors and replaces matching field ones.\n */\n replacePartial(kind: ErrorKind, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>, field: string) {\n const incoming = this.normalize(list);\n const existing = this.bucket[kind].filter((e) => e.field !== field);\n const nextKindList = Object.freeze([...existing, ...incoming]);\n\n if (listsEqual(this.bucket[kind], nextKindList)) return;\n\n this.bucket = Object.freeze({\n ...this.bucket,\n [kind]: nextKindList,\n });\n this.notify();\n }\n\n /** Append one or more items to a kind. */\n push(\n kind: ErrorKind,\n list: Omit<ErrorItem, 'id'> | ErrorItem | Array<Omit<ErrorItem, 'id'> | ErrorItem>\n ) {\n const arr = Array.isArray(list) ? list : [list];\n if (arr.length === 0) return;\n\n const nextKindList = Object.freeze([...this.bucket[kind], ...this.normalize(arr)]);\n this.bucket = Object.freeze({\n ...this.bucket,\n [kind]: nextKindList,\n });\n this.notify();\n }\n\n /** Clear one or more kinds (default: all kinds). */\n clear(kinds: ErrorKind[] = ERROR_KINDS) {\n let changed = false;\n const next: Bucket = { ...this.bucket };\n\n for (const k of kinds) {\n if (this.bucket[k].length > 0) {\n next[k] = Object.freeze([]);\n changed = true;\n }\n }\n\n if (!changed) return;\n this.bucket = Object.freeze(next);\n this.notify();\n }\n\n /**\n * Remove errors that match a given id or predicate from specified kinds.\n */\n remove(kinds: ErrorKind[] = ERROR_KINDS, test: string | ((e: ErrorItem) => boolean)) {\n const isMatch = typeof test === 'string' ? (e: ErrorItem) => e.id === test : test;\n\n let changed = false;\n const next: Bucket = { ...this.bucket };\n\n for (const k of kinds) {\n const filtered = this.bucket[k].filter((e) => !isMatch(e));\n if (filtered.length !== this.bucket[k].length) {\n next[k] = Object.freeze(filtered);\n changed = true;\n }\n }\n\n if (!changed) return;\n this.bucket = Object.freeze(next);\n this.notify();\n }\n\n private notify() {\n for (const cb of this.listeners) cb();\n }\n}\n\nexport const errorStore = new ErrorStore();\n"],"names":["ERROR_KINDS","listsEqual","a","b","length","i","id","EMPTY_BUCKET","Object","freeze","server","client","developer","nextId","errorStore","constructor","this","bucket","listeners","Set","subscribe","cb","add","delete","snapshot","normalize","list","map","e","Date","now","replace","kind","nextList","notify","replacePartial","field","incoming","existing","filter","nextKindList","push","arr","Array","isArray","clear","kinds","changed","next","k","remove","test","isMatch","filtered"],"mappings":"AAUO,MAAMA,EAA2B,CAAC,SAAU,SAAU,aAW7D,SAASC,EAAWC,EAA6BC,GAC/C,GAAID,IAAMC,EAAG,OAAO,EACpB,GAAID,EAAEE,SAAWD,EAAEC,OAAQ,OAAO,EAClC,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAEE,OAAQC,IAC5B,GAAIH,EAAEG,GAAGC,KAAOH,EAAEE,GAAGC,GAAI,OAAO,EAElC,OAAO,CACT,CAEA,MAAMC,EAAuBC,OAAOC,OAAO,CACzCC,OAAQF,OAAOC,OAAO,IACtBE,OAAQH,OAAOC,OAAO,IACtBG,UAAWJ,OAAOC,OAAO,MAG3B,IAAII,EAAS,EA+HN,MAAMC,EAAa,IAtH1B,MAAA,WAAAC,GACUC,KAAAC,OAAiBV,EACjBS,KAAAE,UAA2B,IAAIC,GAkHzC,CAhHE,SAAAC,CAAUC,GAER,OADAL,KAAKE,UAAUI,IAAID,GACZ,IAAML,KAAKE,UAAUK,OAAOF,EACrC,CAEA,QAAAG,GACE,OAAOR,KAAKC,MACd,CAGQ,SAAAQ,CACNC,GAEA,OAAOlB,OAAOC,OACZiB,EAAKC,IAAKC,GACRpB,OAAOC,OAAO,IACTmB,EACHtB,GAAIsB,EAAEtB,IA7BI,GAAGuB,KAAKC,SAASjB,SAiCnC,CAGA,OAAAkB,CAAQC,EAAiBN,GACvB,MAAMO,EAAWjB,KAAKS,UAAUC,GAC5BzB,EAAWe,KAAKC,OAAOe,GAAOC,KAElCjB,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOC,IAEVjB,KAAKkB,SACP,CAOA,cAAAC,CAAeH,EAAiBN,EAAgDU,GAC9E,MAAMC,EAAWrB,KAAKS,UAAUC,GAC1BY,EAAWtB,KAAKC,OAAOe,GAAMO,OAAQX,GAAMA,EAAEQ,QAAUA,GACvDI,EAAehC,OAAOC,OAAO,IAAI6B,KAAaD,IAEhDpC,EAAWe,KAAKC,OAAOe,GAAOQ,KAElCxB,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOQ,IAEVxB,KAAKkB,SACP,CAGA,IAAAO,CACET,EACAN,GAEA,MAAMgB,EAAMC,MAAMC,QAAQlB,GAAQA,EAAO,CAACA,GAC1C,GAAmB,IAAfgB,EAAItC,OAAc,OAEtB,MAAMoC,EAAehC,OAAOC,OAAO,IAAIO,KAAKC,OAAOe,MAAUhB,KAAKS,UAAUiB,KAC5E1B,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOQ,IAEVxB,KAAKkB,QACP,CAGA,KAAAW,CAAMC,EAAqB9C,GACzB,IAAI+C,GAAU,EACd,MAAMC,EAAe,IAAKhC,KAAKC,QAE/B,IAAK,MAAMgC,KAAKH,EACV9B,KAAKC,OAAOgC,GAAG7C,OAAS,IAC1B4C,EAAKC,GAAKzC,OAAOC,OAAO,IACxBsC,GAAU,GAITA,IACL/B,KAAKC,OAAST,OAAOC,OAAOuC,GAC5BhC,KAAKkB,SACP,CAKA,MAAAgB,CAAOJ,EAAqB9C,EAAamD,GACvC,MAAMC,EAA0B,iBAATD,EAAqBvB,GAAiBA,EAAEtB,KAAO6C,EAAOA,EAE7E,IAAIJ,GAAU,EACd,MAAMC,EAAe,IAAKhC,KAAKC,QAE/B,IAAK,MAAMgC,KAAKH,EAAO,CACrB,MAAMO,EAAWrC,KAAKC,OAAOgC,GAAGV,OAAQX,IAAOwB,EAAQxB,IACnDyB,EAASjD,SAAWY,KAAKC,OAAOgC,GAAG7C,SACrC4C,EAAKC,GAAKzC,OAAOC,OAAO4C,GACxBN,GAAU,EAEd,CAEKA,IACL/B,KAAKC,OAAST,OAAOC,OAAOuC,GAC5BhC,KAAKkB,SACP,CAEQ,MAAAA,GACN,IAAK,MAAMb,KAAML,KAAKE,UAAWG,GACnC"}
1
+ {"version":3,"file":"error-store.js","sources":["../../src/state/error-store.ts"],"sourcesContent":["import type { Error as Auth0Error } from '@auth0/auth0-acul-js';\n\nexport interface ErrorItem extends Auth0Error {\n id: string;\n label?: string;\n type?: ErrorType;\n}\n\nexport type ErrorType = 'auth0' | 'validation' | 'configuration';\n\nexport const ERROR_TYPES: ErrorType[] = ['auth0', 'validation', 'configuration'];\n\ntype Bucket = {\n auth0: ReadonlyArray<ErrorItem>;\n validation: ReadonlyArray<ErrorItem>;\n configuration: ReadonlyArray<ErrorItem>;\n};\n\ntype Listener = () => void;\n\n/** Compare two error lists by id only for maximal speed. */\nfunction listsEqual(a: ReadonlyArray<ErrorItem>, b: ReadonlyArray<ErrorItem>) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (a[i].id !== b[i].id) return false;\n }\n return true;\n}\n\nconst EMPTY_BUCKET: Bucket = Object.freeze({\n auth0: Object.freeze([]),\n validation: Object.freeze([]),\n configuration: Object.freeze([]),\n});\n\nlet nextId = 0;\nconst genId = () => `${Date.now()}-${nextId++}`;\n\n/**\n * Global error store for ACUL (one screen per page).\n * - Holds a single bucket of errors across the current page.\n * - Generates stable ids for every inserted error.\n * - Emits immutable snapshots to subscribers.\n */\nclass ErrorStore {\n private bucket: Bucket = EMPTY_BUCKET;\n private listeners: Set<Listener> = new Set();\n\n subscribe(cb: Listener): () => void {\n this.listeners.add(cb);\n return () => this.listeners.delete(cb);\n }\n\n snapshot(): Readonly<Bucket> {\n return this.bucket;\n }\n\n /** Add ids and freeze an array of ErrorItem-like objects. */\n private normalize(\n list: Array<Omit<ErrorItem, 'id'> & { id?: string }>\n ): ReadonlyArray<ErrorItem> {\n return Object.freeze(\n list.map((e) =>\n Object.freeze({\n ...e,\n id: e.id ?? genId(),\n })\n )\n );\n }\n\n /** Replace an entire type with a new list (generating ids if needed). */\n replace(type: ErrorType, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>) {\n const nextList = this.normalize(list);\n if (listsEqual(this.bucket[type], nextList)) return;\n\n this.bucket = Object.freeze({\n ...this.bucket,\n [type]: nextList,\n });\n this.notify();\n }\n\n /**\n * Replace only errors for a specific field within a type.\n * - Keeps all existing errors for other fields.\n * - Normalizes incoming errors and replaces matching field ones.\n */\n replacePartial(type: ErrorType, list: Array<Omit<ErrorItem, 'id'> | ErrorItem>, field: string) {\n const incoming = this.normalize(list);\n const existing = this.bucket[type].filter((e) => e.field !== field);\n const nextKindList = Object.freeze([...existing, ...incoming]);\n\n if (listsEqual(this.bucket[type], nextKindList)) return;\n\n this.bucket = Object.freeze({\n ...this.bucket,\n [type]: nextKindList,\n });\n this.notify();\n }\n\n /** Append one or more items to a type. */\n push(\n type: ErrorType,\n list: Omit<ErrorItem, 'id'> | ErrorItem | Array<Omit<ErrorItem, 'id'> | ErrorItem>\n ) {\n const arr = Array.isArray(list) ? list : [list];\n if (arr.length === 0) return;\n\n const nextKindList = Object.freeze([...this.bucket[type], ...this.normalize(arr)]);\n this.bucket = Object.freeze({\n ...this.bucket,\n [type]: nextKindList,\n });\n this.notify();\n }\n\n /** Clear one or more kinds (default: all kinds). */\n clear(kinds: ErrorType[] = ERROR_TYPES) {\n let changed = false;\n const next: Bucket = { ...this.bucket };\n\n for (const k of kinds) {\n if (this.bucket[k].length > 0) {\n next[k] = Object.freeze([]);\n changed = true;\n }\n }\n\n if (!changed) return;\n this.bucket = Object.freeze(next);\n this.notify();\n }\n\n /**\n * Remove errors that match a given id or predicate from specified kinds.\n */\n remove(kinds: ErrorType[] = ERROR_TYPES, test: string | ((e: ErrorItem) => boolean)) {\n const isMatch = typeof test === 'string' ? (e: ErrorItem) => e.id === test : test;\n\n let changed = false;\n const next: Bucket = { ...this.bucket };\n\n for (const k of kinds) {\n const filtered = this.bucket[k].filter((e) => !isMatch(e));\n if (filtered.length !== this.bucket[k].length) {\n next[k] = Object.freeze(filtered);\n changed = true;\n }\n }\n\n if (!changed) return;\n this.bucket = Object.freeze(next);\n this.notify();\n }\n\n private notify() {\n for (const cb of this.listeners) cb();\n }\n}\n\nexport const errorStore = new ErrorStore();\n"],"names":["ERROR_TYPES","listsEqual","a","b","length","i","id","EMPTY_BUCKET","Object","freeze","auth0","validation","configuration","nextId","errorStore","constructor","this","bucket","listeners","Set","subscribe","cb","add","delete","snapshot","normalize","list","map","e","Date","now","replace","type","nextList","notify","replacePartial","field","incoming","existing","filter","nextKindList","push","arr","Array","isArray","clear","kinds","changed","next","k","remove","test","isMatch","filtered"],"mappings":"AAUO,MAAMA,EAA2B,CAAC,QAAS,aAAc,iBAWhE,SAASC,EAAWC,EAA6BC,GAC/C,GAAID,IAAMC,EAAG,OAAO,EACpB,GAAID,EAAEE,SAAWD,EAAEC,OAAQ,OAAO,EAClC,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAEE,OAAQC,IAC5B,GAAIH,EAAEG,GAAGC,KAAOH,EAAEE,GAAGC,GAAI,OAAO,EAElC,OAAO,CACT,CAEA,MAAMC,EAAuBC,OAAOC,OAAO,CACzCC,MAAOF,OAAOC,OAAO,IACrBE,WAAYH,OAAOC,OAAO,IAC1BG,cAAeJ,OAAOC,OAAO,MAG/B,IAAII,EAAS,EA+HN,MAAMC,EAAa,IAtH1B,MAAA,WAAAC,GACUC,KAAAC,OAAiBV,EACjBS,KAAAE,UAA2B,IAAIC,GAkHzC,CAhHE,SAAAC,CAAUC,GAER,OADAL,KAAKE,UAAUI,IAAID,GACZ,IAAML,KAAKE,UAAUK,OAAOF,EACrC,CAEA,QAAAG,GACE,OAAOR,KAAKC,MACd,CAGQ,SAAAQ,CACNC,GAEA,OAAOlB,OAAOC,OACZiB,EAAKC,IAAKC,GACRpB,OAAOC,OAAO,IACTmB,EACHtB,GAAIsB,EAAEtB,IA7BI,GAAGuB,KAAKC,SAASjB,SAiCnC,CAGA,OAAAkB,CAAQC,EAAiBN,GACvB,MAAMO,EAAWjB,KAAKS,UAAUC,GAC5BzB,EAAWe,KAAKC,OAAOe,GAAOC,KAElCjB,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOC,IAEVjB,KAAKkB,SACP,CAOA,cAAAC,CAAeH,EAAiBN,EAAgDU,GAC9E,MAAMC,EAAWrB,KAAKS,UAAUC,GAC1BY,EAAWtB,KAAKC,OAAOe,GAAMO,OAAQX,GAAMA,EAAEQ,QAAUA,GACvDI,EAAehC,OAAOC,OAAO,IAAI6B,KAAaD,IAEhDpC,EAAWe,KAAKC,OAAOe,GAAOQ,KAElCxB,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOQ,IAEVxB,KAAKkB,SACP,CAGA,IAAAO,CACET,EACAN,GAEA,MAAMgB,EAAMC,MAAMC,QAAQlB,GAAQA,EAAO,CAACA,GAC1C,GAAmB,IAAfgB,EAAItC,OAAc,OAEtB,MAAMoC,EAAehC,OAAOC,OAAO,IAAIO,KAAKC,OAAOe,MAAUhB,KAAKS,UAAUiB,KAC5E1B,KAAKC,OAAST,OAAOC,OAAO,IACvBO,KAAKC,OACRe,CAACA,GAAOQ,IAEVxB,KAAKkB,QACP,CAGA,KAAAW,CAAMC,EAAqB9C,GACzB,IAAI+C,GAAU,EACd,MAAMC,EAAe,IAAKhC,KAAKC,QAE/B,IAAK,MAAMgC,KAAKH,EACV9B,KAAKC,OAAOgC,GAAG7C,OAAS,IAC1B4C,EAAKC,GAAKzC,OAAOC,OAAO,IACxBsC,GAAU,GAITA,IACL/B,KAAKC,OAAST,OAAOC,OAAOuC,GAC5BhC,KAAKkB,SACP,CAKA,MAAAgB,CAAOJ,EAAqB9C,EAAamD,GACvC,MAAMC,EAA0B,iBAATD,EAAqBvB,GAAiBA,EAAEtB,KAAO6C,EAAOA,EAE7E,IAAIJ,GAAU,EACd,MAAMC,EAAe,IAAKhC,KAAKC,QAE/B,IAAK,MAAMgC,KAAKH,EAAO,CACrB,MAAMO,EAAWrC,KAAKC,OAAOgC,GAAGV,OAAQX,IAAOwB,EAAQxB,IACnDyB,EAASjD,SAAWY,KAAKC,OAAOgC,GAAG7C,SACrC4C,EAAKC,GAAKzC,OAAOC,OAAO4C,GACxBN,GAAU,EAEd,CAEKA,IACL/B,KAAKC,OAAST,OAAOC,OAAOuC,GAC5BhC,KAAKkB,SACP,CAEQ,MAAAA,GACN,IAAK,MAAMb,KAAML,KAAKE,UAAWG,GACnC"}
package/dist/telemetry.js CHANGED
@@ -1,2 +1,2 @@
1
- globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.0.0-alpha.1";
1
+ globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.0.0-alpha.3";
2
2
  //# sourceMappingURL=telemetry.js.map