@auth0/auth0-acul-react 1.0.0-alpha.4 → 1.1.0

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 (239) hide show
  1. package/README.md +2 -10
  2. package/dist/export/hooks.d.ts +1 -1
  3. package/dist/hooks/common/change-language.d.ts +92 -0
  4. package/dist/hooks/common/change-language.js +2 -0
  5. package/dist/hooks/common/change-language.js.map +1 -0
  6. package/dist/hooks/index.d.ts +1 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/screens/accept-invitation.d.ts +1 -1
  10. package/dist/screens/accept-invitation.js +1 -1
  11. package/dist/screens/accept-invitation.js.map +1 -1
  12. package/dist/screens/consent.d.ts +1 -1
  13. package/dist/screens/consent.js +1 -1
  14. package/dist/screens/consent.js.map +1 -1
  15. package/dist/screens/customized-consent.d.ts +1 -1
  16. package/dist/screens/customized-consent.js +1 -1
  17. package/dist/screens/customized-consent.js.map +1 -1
  18. package/dist/screens/device-code-activation-allowed.d.ts +1 -1
  19. package/dist/screens/device-code-activation-allowed.js +1 -1
  20. package/dist/screens/device-code-activation-allowed.js.map +1 -1
  21. package/dist/screens/device-code-activation-denied.d.ts +1 -1
  22. package/dist/screens/device-code-activation-denied.js +1 -1
  23. package/dist/screens/device-code-activation-denied.js.map +1 -1
  24. package/dist/screens/device-code-activation.d.ts +1 -1
  25. package/dist/screens/device-code-activation.js +1 -1
  26. package/dist/screens/device-code-activation.js.map +1 -1
  27. package/dist/screens/device-code-confirmation.d.ts +1 -1
  28. package/dist/screens/device-code-confirmation.js +1 -1
  29. package/dist/screens/device-code-confirmation.js.map +1 -1
  30. package/dist/screens/email-identifier-challenge.d.ts +1 -1
  31. package/dist/screens/email-identifier-challenge.js +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 +1 -1
  35. package/dist/screens/email-otp-challenge.js.map +1 -1
  36. package/dist/screens/email-verification-result.d.ts +1 -1
  37. package/dist/screens/email-verification-result.js +1 -1
  38. package/dist/screens/email-verification-result.js.map +1 -1
  39. package/dist/screens/interstitial-captcha.d.ts +1 -1
  40. package/dist/screens/interstitial-captcha.js +1 -1
  41. package/dist/screens/interstitial-captcha.js.map +1 -1
  42. package/dist/screens/login-email-verification.d.ts +1 -1
  43. package/dist/screens/login-email-verification.js +1 -1
  44. package/dist/screens/login-email-verification.js.map +1 -1
  45. package/dist/screens/login-id.d.ts +1 -1
  46. package/dist/screens/login-id.js +1 -1
  47. package/dist/screens/login-id.js.map +1 -1
  48. package/dist/screens/login-password.d.ts +1 -1
  49. package/dist/screens/login-password.js +1 -1
  50. package/dist/screens/login-password.js.map +1 -1
  51. package/dist/screens/login-passwordless-email-code.d.ts +3 -2
  52. package/dist/screens/login-passwordless-email-code.js +1 -1
  53. package/dist/screens/login-passwordless-email-code.js.map +1 -1
  54. package/dist/screens/login-passwordless-sms-otp.d.ts +3 -2
  55. package/dist/screens/login-passwordless-sms-otp.js +1 -1
  56. package/dist/screens/login-passwordless-sms-otp.js.map +1 -1
  57. package/dist/screens/login.d.ts +1 -1
  58. package/dist/screens/login.js +1 -1
  59. package/dist/screens/login.js.map +1 -1
  60. package/dist/screens/logout-aborted.d.ts +1 -1
  61. package/dist/screens/logout-aborted.js +1 -1
  62. package/dist/screens/logout-aborted.js.map +1 -1
  63. package/dist/screens/logout-complete.d.ts +1 -1
  64. package/dist/screens/logout-complete.js +1 -1
  65. package/dist/screens/logout-complete.js.map +1 -1
  66. package/dist/screens/logout.d.ts +1 -1
  67. package/dist/screens/logout.js +1 -1
  68. package/dist/screens/logout.js.map +1 -1
  69. package/dist/screens/mfa-begin-enroll-options.d.ts +1 -1
  70. package/dist/screens/mfa-begin-enroll-options.js +1 -1
  71. package/dist/screens/mfa-begin-enroll-options.js.map +1 -1
  72. package/dist/screens/mfa-country-codes.d.ts +1 -1
  73. package/dist/screens/mfa-country-codes.js +1 -1
  74. package/dist/screens/mfa-country-codes.js.map +1 -1
  75. package/dist/screens/mfa-detect-browser-capabilities.d.ts +1 -1
  76. package/dist/screens/mfa-detect-browser-capabilities.js +1 -1
  77. package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -1
  78. package/dist/screens/mfa-email-challenge.d.ts +1 -1
  79. package/dist/screens/mfa-email-challenge.js +1 -1
  80. package/dist/screens/mfa-email-challenge.js.map +1 -1
  81. package/dist/screens/mfa-email-list.d.ts +1 -1
  82. package/dist/screens/mfa-email-list.js +1 -1
  83. package/dist/screens/mfa-email-list.js.map +1 -1
  84. package/dist/screens/mfa-enroll-result.d.ts +1 -1
  85. package/dist/screens/mfa-enroll-result.js +1 -1
  86. package/dist/screens/mfa-enroll-result.js.map +1 -1
  87. package/dist/screens/mfa-login-options.d.ts +1 -1
  88. package/dist/screens/mfa-login-options.js +1 -1
  89. package/dist/screens/mfa-login-options.js.map +1 -1
  90. package/dist/screens/mfa-otp-challenge.d.ts +1 -1
  91. package/dist/screens/mfa-otp-challenge.js +1 -1
  92. package/dist/screens/mfa-otp-challenge.js.map +1 -1
  93. package/dist/screens/mfa-otp-enrollment-code.d.ts +3 -2
  94. package/dist/screens/mfa-otp-enrollment-code.js +1 -1
  95. package/dist/screens/mfa-otp-enrollment-code.js.map +1 -1
  96. package/dist/screens/mfa-otp-enrollment-qr.d.ts +1 -1
  97. package/dist/screens/mfa-otp-enrollment-qr.js +1 -1
  98. package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -1
  99. package/dist/screens/mfa-phone-challenge.d.ts +1 -1
  100. package/dist/screens/mfa-phone-challenge.js +1 -1
  101. package/dist/screens/mfa-phone-challenge.js.map +1 -1
  102. package/dist/screens/mfa-phone-enrollment.d.ts +1 -1
  103. package/dist/screens/mfa-phone-enrollment.js +1 -1
  104. package/dist/screens/mfa-phone-enrollment.js.map +1 -1
  105. package/dist/screens/mfa-push-challenge-push.d.ts +1 -1
  106. package/dist/screens/mfa-push-challenge-push.js +1 -1
  107. package/dist/screens/mfa-push-challenge-push.js.map +1 -1
  108. package/dist/screens/mfa-push-enrollment-qr.d.ts +1 -1
  109. package/dist/screens/mfa-push-enrollment-qr.js +1 -1
  110. package/dist/screens/mfa-push-enrollment-qr.js.map +1 -1
  111. package/dist/screens/mfa-push-list.d.ts +1 -1
  112. package/dist/screens/mfa-push-list.js +1 -1
  113. package/dist/screens/mfa-push-list.js.map +1 -1
  114. package/dist/screens/mfa-push-welcome.d.ts +1 -1
  115. package/dist/screens/mfa-push-welcome.js +1 -1
  116. package/dist/screens/mfa-push-welcome.js.map +1 -1
  117. package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +1 -1
  118. package/dist/screens/mfa-recovery-code-challenge-new-code.js +1 -1
  119. package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -1
  120. package/dist/screens/mfa-recovery-code-challenge.d.ts +1 -1
  121. package/dist/screens/mfa-recovery-code-challenge.js +1 -1
  122. package/dist/screens/mfa-recovery-code-challenge.js.map +1 -1
  123. package/dist/screens/mfa-recovery-code-enrollment.d.ts +1 -1
  124. package/dist/screens/mfa-recovery-code-enrollment.js +1 -1
  125. package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -1
  126. package/dist/screens/mfa-sms-challenge.d.ts +1 -1
  127. package/dist/screens/mfa-sms-challenge.js +1 -1
  128. package/dist/screens/mfa-sms-challenge.js.map +1 -1
  129. package/dist/screens/mfa-sms-enrollment.d.ts +1 -1
  130. package/dist/screens/mfa-sms-enrollment.js +1 -1
  131. package/dist/screens/mfa-sms-enrollment.js.map +1 -1
  132. package/dist/screens/mfa-sms-list.d.ts +1 -1
  133. package/dist/screens/mfa-sms-list.js +1 -1
  134. package/dist/screens/mfa-sms-list.js.map +1 -1
  135. package/dist/screens/mfa-voice-challenge.d.ts +1 -1
  136. package/dist/screens/mfa-voice-challenge.js +1 -1
  137. package/dist/screens/mfa-voice-challenge.js.map +1 -1
  138. package/dist/screens/mfa-voice-enrollment.d.ts +1 -1
  139. package/dist/screens/mfa-voice-enrollment.js +1 -1
  140. package/dist/screens/mfa-voice-enrollment.js.map +1 -1
  141. package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +1 -1
  142. package/dist/screens/mfa-webauthn-change-key-nickname.js +1 -1
  143. package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -1
  144. package/dist/screens/mfa-webauthn-enrollment-success.d.ts +1 -1
  145. package/dist/screens/mfa-webauthn-enrollment-success.js +1 -1
  146. package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -1
  147. package/dist/screens/mfa-webauthn-error.d.ts +1 -1
  148. package/dist/screens/mfa-webauthn-error.js +1 -1
  149. package/dist/screens/mfa-webauthn-error.js.map +1 -1
  150. package/dist/screens/mfa-webauthn-not-available-error.d.ts +1 -1
  151. package/dist/screens/mfa-webauthn-not-available-error.js +1 -1
  152. package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -1
  153. package/dist/screens/mfa-webauthn-platform-challenge.d.ts +1 -1
  154. package/dist/screens/mfa-webauthn-platform-challenge.js +1 -1
  155. package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -1
  156. package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +1 -1
  157. package/dist/screens/mfa-webauthn-platform-enrollment.js +1 -1
  158. package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -1
  159. package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +1 -1
  160. package/dist/screens/mfa-webauthn-roaming-challenge.js +1 -1
  161. package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -1
  162. package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +1 -1
  163. package/dist/screens/mfa-webauthn-roaming-enrollment.js +1 -1
  164. package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -1
  165. package/dist/screens/organization-picker.d.ts +1 -1
  166. package/dist/screens/organization-picker.js +1 -1
  167. package/dist/screens/organization-picker.js.map +1 -1
  168. package/dist/screens/organization-selection.d.ts +1 -1
  169. package/dist/screens/organization-selection.js +1 -1
  170. package/dist/screens/organization-selection.js.map +1 -1
  171. package/dist/screens/passkey-enrollment-local.d.ts +1 -1
  172. package/dist/screens/passkey-enrollment-local.js +1 -1
  173. package/dist/screens/passkey-enrollment-local.js.map +1 -1
  174. package/dist/screens/passkey-enrollment.d.ts +1 -1
  175. package/dist/screens/passkey-enrollment.js +1 -1
  176. package/dist/screens/passkey-enrollment.js.map +1 -1
  177. package/dist/screens/phone-identifier-challenge.d.ts +1 -1
  178. package/dist/screens/phone-identifier-challenge.js +1 -1
  179. package/dist/screens/phone-identifier-challenge.js.map +1 -1
  180. package/dist/screens/phone-identifier-enrollment.d.ts +1 -1
  181. package/dist/screens/phone-identifier-enrollment.js +1 -1
  182. package/dist/screens/phone-identifier-enrollment.js.map +1 -1
  183. package/dist/screens/redeem-ticket.d.ts +1 -1
  184. package/dist/screens/redeem-ticket.js +1 -1
  185. package/dist/screens/redeem-ticket.js.map +1 -1
  186. package/dist/screens/reset-password-email.d.ts +1 -1
  187. package/dist/screens/reset-password-email.js +1 -1
  188. package/dist/screens/reset-password-email.js.map +1 -1
  189. package/dist/screens/reset-password-error.d.ts +1 -1
  190. package/dist/screens/reset-password-error.js +1 -1
  191. package/dist/screens/reset-password-error.js.map +1 -1
  192. package/dist/screens/reset-password-mfa-email-challenge.d.ts +1 -1
  193. package/dist/screens/reset-password-mfa-email-challenge.js +1 -1
  194. package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -1
  195. package/dist/screens/reset-password-mfa-otp-challenge.d.ts +1 -1
  196. package/dist/screens/reset-password-mfa-otp-challenge.js +1 -1
  197. package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -1
  198. package/dist/screens/reset-password-mfa-phone-challenge.d.ts +1 -1
  199. package/dist/screens/reset-password-mfa-phone-challenge.js +1 -1
  200. package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -1
  201. package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +1 -1
  202. package/dist/screens/reset-password-mfa-push-challenge-push.js +1 -1
  203. package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -1
  204. package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +1 -1
  205. package/dist/screens/reset-password-mfa-recovery-code-challenge.js +1 -1
  206. package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -1
  207. package/dist/screens/reset-password-mfa-sms-challenge.d.ts +1 -1
  208. package/dist/screens/reset-password-mfa-sms-challenge.js +1 -1
  209. package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -1
  210. package/dist/screens/reset-password-mfa-voice-challenge.d.ts +1 -1
  211. package/dist/screens/reset-password-mfa-voice-challenge.js +1 -1
  212. package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -1
  213. package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +1 -1
  214. package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js +1 -1
  215. package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -1
  216. package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +1 -1
  217. package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js +1 -1
  218. package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -1
  219. package/dist/screens/reset-password-request.d.ts +1 -1
  220. package/dist/screens/reset-password-request.js +1 -1
  221. package/dist/screens/reset-password-request.js.map +1 -1
  222. package/dist/screens/reset-password-success.d.ts +1 -1
  223. package/dist/screens/reset-password-success.js +1 -1
  224. package/dist/screens/reset-password-success.js.map +1 -1
  225. package/dist/screens/reset-password.d.ts +1 -1
  226. package/dist/screens/reset-password.js +1 -1
  227. package/dist/screens/reset-password.js.map +1 -1
  228. package/dist/screens/signup-id.d.ts +1 -1
  229. package/dist/screens/signup-id.js +1 -1
  230. package/dist/screens/signup-id.js.map +1 -1
  231. package/dist/screens/signup-password.d.ts +1 -1
  232. package/dist/screens/signup-password.js +1 -1
  233. package/dist/screens/signup-password.js.map +1 -1
  234. package/dist/screens/signup.d.ts +1 -1
  235. package/dist/screens/signup.js +1 -1
  236. package/dist/screens/signup.js.map +1 -1
  237. package/dist/telemetry.js +1 -1
  238. package/package.json +2 -2
  239. package/dist/export/getting-started.d.ts +0 -282
@@ -6,5 +6,5 @@ export declare const switchToSms: (payload?: CustomOptions) => void | Promise<vo
6
6
  export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
7
7
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
8
8
  export { useResend } from '../hooks/utility/resend-manager';
9
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
10
10
  export declare const useMfaVoiceChallenge: () => MfaVoiceChallengeMembers;
@@ -1,2 +1,2 @@
1
- import e from"@auth0/auth0-acul-js/mfa-voice-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:d,useTransaction:j,useUntrustedData:k}=u,x=e=>m(n.continue(e)),l=e=>m(n.pickPhone(e)),g=e=>m(n.switchToSms(e)),T=e=>m(n.resendCode(e)),w=e=>m(n.tryAnotherMethod(e)),C=()=>o(()=>n,[]);export{x as continueMethod,l as pickPhone,T as resendCode,g as switchToSms,w as tryAnotherMethod,i as useBranding,h as useClient,C as useMfaVoiceChallenge,p as useOrganization,f as usePrompt,d as useScreen,c as useTenant,j as useTransaction,k as useUntrustedData,a as useUser};
1
+ import e from"@auth0/auth0-acul-js/mfa-voice-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:d}=u,k=e=>m(n.continue(e)),x=e=>m(n.pickPhone(e)),l=e=>m(n.switchToSms(e)),C=e=>m(n.resendCode(e)),T=e=>m(n.tryAnotherMethod(e)),w=()=>o(()=>n,[]);export{k as continueMethod,x as pickPhone,C as resendCode,l as switchToSms,T as tryAnotherMethod,h as useBranding,i as useClient,w as useMfaVoiceChallenge,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,d as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=mfa-voice-challenge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-voice-challenge.js","sources":["../../src/screens/mfa-voice-challenge.tsx"],"sourcesContent":["import MfaVoiceChallenge from '@auth0/auth0-acul-js/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 MfaVoiceChallengeMembers,\n MfaVoiceChallengeContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-voice-challenge';\n\n// Register the singleton instance of MfaVoiceChallenge\nconst instance = registerScreen<MfaVoiceChallengeMembers>(MfaVoiceChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaVoiceChallengeMembers>(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: MfaVoiceChallengeContinueOptions) =>\n withError(instance.continue(payload));\nexport const pickPhone = (payload?: CustomOptions) => withError(instance.pickPhone(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 MfaVoiceChallenge\nexport const useMfaVoiceChallenge = (): MfaVoiceChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaVoiceChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","pickPhone","switchToSms","resendCode","tryAnotherMethod","useMfaVoiceChallenge","useMemo"],"mappings":"6eAcA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAC7Bd,EAAUH,EAASkB,SAASD,IACjBE,EAAaF,GAA4Bd,EAAUH,EAASmB,UAAUF,IACtEG,EAAeH,GAA4Bd,EAAUH,EAASoB,YAAYH,IAC1EI,EAAcJ,GAA4Bd,EAAUH,EAASqB,WAAWJ,IACxEK,EAAoBL,GAC/Bd,EAAUH,EAASsB,iBAAiBL,IASzBM,EAAuB,IAAgCC,EAAQ,IAAMxB,EAAU"}
1
+ {"version":3,"file":"mfa-voice-challenge.js","sources":["../../src/screens/mfa-voice-challenge.tsx"],"sourcesContent":["import MfaVoiceChallenge from '@auth0/auth0-acul-js/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 MfaVoiceChallengeMembers,\n MfaVoiceChallengeContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-voice-challenge';\n\n// Register the singleton instance of MfaVoiceChallenge\nconst instance = registerScreen<MfaVoiceChallengeMembers>(MfaVoiceChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaVoiceChallengeMembers>(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: MfaVoiceChallengeContinueOptions) =>\n withError(instance.continue(payload));\nexport const pickPhone = (payload?: CustomOptions) => withError(instance.pickPhone(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, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaVoiceChallenge\nexport const useMfaVoiceChallenge = (): MfaVoiceChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaVoiceChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","pickPhone","switchToSms","resendCode","tryAnotherMethod","useMfaVoiceChallenge","useMemo"],"mappings":"+iBAcA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAC7Bd,EAAUH,EAASkB,SAASD,IACjBE,EAAaF,GAA4Bd,EAAUH,EAASmB,UAAUF,IACtEG,EAAeH,GAA4Bd,EAAUH,EAASoB,YAAYH,IAC1EI,EAAcJ,GAA4Bd,EAAUH,EAASqB,WAAWJ,IACxEK,EAAoBL,GAC/Bd,EAAUH,EAASsB,iBAAiBL,IASzBM,EAAuB,IAAgCC,EAAQ,IAAMxB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
4
4
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
5
5
  export declare const selectPhoneCountryCode: (payload?: CustomOptions) => void | Promise<void>;
6
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
7
7
  export declare const useMfaVoiceEnrollment: () => MfaVoiceEnrollmentMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/mfa-voice-enrollment";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as t}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const n=s(o),{withError:m}=r,u=new t(n),{useUser:c,useTenant:a,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:d}=u,k=o=>m(n.continue(o)),l=o=>m(n.tryAnotherMethod(o)),C=o=>m(n.selectPhoneCountryCode(o)),T=()=>e(()=>n,[]);export{k as continueMethod,C as selectPhoneCountryCode,l as tryAnotherMethod,h as useBranding,i as useClient,T as useMfaVoiceEnrollment,p as useOrganization,f as usePrompt,j as useScreen,a as useTenant,x as useTransaction,d as useUntrustedData,c as useUser};
1
+ import o from"@auth0/auth0-acul-js/mfa-voice-enrollment";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.continue(o)),l=o=>m(n.tryAnotherMethod(o)),d=o=>m(n.selectPhoneCountryCode(o)),C=()=>e(()=>n,[]);export{k as continueMethod,d as selectPhoneCountryCode,l as tryAnotherMethod,h as useBranding,i as useClient,C as useMfaVoiceEnrollment,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=mfa-voice-enrollment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-voice-enrollment.js","sources":["../../src/screens/mfa-voice-enrollment.tsx"],"sourcesContent":["import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaVoiceEnrollmentMembers,\n ContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-voice-enrollment';\n\n// Register the singleton instance of MfaVoiceEnrollment\nconst instance = registerScreen<MfaVoiceEnrollmentMembers>(MfaVoiceEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaVoiceEnrollmentMembers>(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?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const selectPhoneCountryCode = (payload?: CustomOptions) =>\n withError(instance.selectPhoneCountryCode(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaVoiceEnrollment\nexport const useMfaVoiceEnrollment = (): MfaVoiceEnrollmentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaVoiceEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","selectPhoneCountryCode","useMfaVoiceEnrollment","useMemo"],"mappings":"obAcA,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,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAA0BH,GACrCd,EAAUH,EAASoB,uBAAuBH,IAM/BI,EAAwB,IAAiCC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"mfa-voice-enrollment.js","sources":["../../src/screens/mfa-voice-enrollment.tsx"],"sourcesContent":["import MfaVoiceEnrollment from '@auth0/auth0-acul-js/mfa-voice-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaVoiceEnrollmentMembers,\n ContinueOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-voice-enrollment';\n\n// Register the singleton instance of MfaVoiceEnrollment\nconst instance = registerScreen<MfaVoiceEnrollmentMembers>(MfaVoiceEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaVoiceEnrollmentMembers>(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?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const selectPhoneCountryCode = (payload?: CustomOptions) =>\n withError(instance.selectPhoneCountryCode(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaVoiceEnrollment\nexport const useMfaVoiceEnrollment = (): MfaVoiceEnrollmentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaVoiceEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","tryAnotherMethod","selectPhoneCountryCode","useMfaVoiceEnrollment","useMemo"],"mappings":"sfAcA,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,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAA0BH,GACrCd,EAAUH,EAASoB,uBAAuBH,IAM/BI,EAAwB,IAAiCC,EAAQ,IAAMtB,EAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { MfaWebAuthnChangeKeyNicknameMembers, ContinueOptions } from '@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname';
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").ScreenMembersOnMfaWebAuthnChangeKeyNickname, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continueWithNewNickname: (payload: ContinueOptions) => void | Promise<void>;
4
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
5
5
  export declare const useMfaWebAuthnChangeKeyNickname: () => MfaWebAuthnChangeKeyNicknameMembers;
@@ -1,2 +1,2 @@
1
- import e from"@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:k,useTransaction:j,useUntrustedData:x}=u,w=e=>m(n.continueWithNewNickname(e)),d=()=>o(()=>n,[]);export{w as continueWithNewNickname,i as useBranding,h as useClient,d as useMfaWebAuthnChangeKeyNickname,p as useOrganization,f as usePrompt,k as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
1
+ import e from"@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as n}from"../state/instance-store.js";const t=n(e),{withError:m}=r,a=new s(t),{useUser:u,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:k,useUntrustedData:j}=a,x=e=>m(t.continueWithNewNickname(e)),w=()=>o(()=>t,[]);export{x as continueWithNewNickname,h as useBranding,i as useClient,w as useMfaWebAuthnChangeKeyNickname,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,k as useTransaction,j as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-change-key-nickname.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-change-key-nickname.js","sources":["../../src/screens/mfa-webauthn-change-key-nickname.tsx"],"sourcesContent":["import MfaWebAuthnChangeKeyNickname from '@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnChangeKeyNicknameMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname';\n\n// Register the singleton instance of MfaWebAuthnChangeKeyNickname\nconst instance = registerScreen<MfaWebAuthnChangeKeyNicknameMembers>(MfaWebAuthnChangeKeyNickname)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnChangeKeyNicknameMembers>(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 continueWithNewNickname = (payload: ContinueOptions) =>\n withError(instance.continueWithNewNickname(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnChangeKeyNickname\nexport const useMfaWebAuthnChangeKeyNickname = (): MfaWebAuthnChangeKeyNicknameMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnChangeKeyNickname","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithNewNickname","payload","useMfaWebAuthnChangeKeyNickname","useMemo"],"mappings":"gcAaA,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,IAMhCC,EAAkC,IAC7CC,EAAQ,IAAMnB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-change-key-nickname.js","sources":["../../src/screens/mfa-webauthn-change-key-nickname.tsx"],"sourcesContent":["import MfaWebAuthnChangeKeyNickname from '@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnChangeKeyNicknameMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-change-key-nickname';\n\n// Register the singleton instance of MfaWebAuthnChangeKeyNickname\nconst instance = registerScreen<MfaWebAuthnChangeKeyNicknameMembers>(MfaWebAuthnChangeKeyNickname)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnChangeKeyNicknameMembers>(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 continueWithNewNickname = (payload: ContinueOptions) =>\n withError(instance.continueWithNewNickname(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnChangeKeyNickname\nexport const useMfaWebAuthnChangeKeyNickname = (): MfaWebAuthnChangeKeyNicknameMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnChangeKeyNickname","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithNewNickname","payload","useMfaWebAuthnChangeKeyNickname","useMemo"],"mappings":"kgBAaA,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,IAMhCC,EAAkC,IAC7CC,EAAQ,IAAMnB,EAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { MfaWebAuthnEnrollmentSuccessMembers, ContinueOptions } from '@auth0/auth0-acul-js/mfa-webauthn-enrollment-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").ScreenMembersOnMfaWebAuthnEnrollmentSuccess, 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
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
5
5
  export declare const useMfaWebAuthnEnrollmentSuccess: () => MfaWebAuthnEnrollmentSuccessMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/mfa-webauthn-enrollment-success";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,l=o=>m(n.continue(o)),d=()=>e(()=>n,[]);export{l as continueMethod,i as useBranding,h as useClient,d as useMfaWebAuthnEnrollmentSuccess,p as useOrganization,f as usePrompt,j as useScreen,c as useTenant,x as useTransaction,k as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-enrollment-success";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.continue(o)),l=()=>e(()=>n,[]);export{k as continueMethod,h as useBranding,i as useClient,l as useMfaWebAuthnEnrollmentSuccess,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-enrollment-success.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-enrollment-success.js","sources":["../../src/screens/mfa-webauthn-enrollment-success.tsx"],"sourcesContent":["import MfaWebAuthnEnrollmentSuccess from '@auth0/auth0-acul-js/mfa-webauthn-enrollment-success';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnEnrollmentSuccessMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-enrollment-success';\n\n// Register the singleton instance of MfaWebAuthnEnrollmentSuccess\nconst instance = registerScreen<MfaWebAuthnEnrollmentSuccessMembers>(MfaWebAuthnEnrollmentSuccess)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnEnrollmentSuccessMembers>(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));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnEnrollmentSuccess\nexport const useMfaWebAuthnEnrollmentSuccess = (): MfaWebAuthnEnrollmentSuccessMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnEnrollmentSuccess","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useMfaWebAuthnEnrollmentSuccess","useMemo"],"mappings":"+bAaA,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,GAA8Bd,EAAUH,EAASkB,SAASD,IAM5EE,EAAkC,IAC7CC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-enrollment-success.js","sources":["../../src/screens/mfa-webauthn-enrollment-success.tsx"],"sourcesContent":["import MfaWebAuthnEnrollmentSuccess from '@auth0/auth0-acul-js/mfa-webauthn-enrollment-success';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnEnrollmentSuccessMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-enrollment-success';\n\n// Register the singleton instance of MfaWebAuthnEnrollmentSuccess\nconst instance = registerScreen<MfaWebAuthnEnrollmentSuccessMembers>(MfaWebAuthnEnrollmentSuccess)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnEnrollmentSuccessMembers>(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));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnEnrollmentSuccess\nexport const useMfaWebAuthnEnrollmentSuccess = (): MfaWebAuthnEnrollmentSuccessMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnEnrollmentSuccess","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useMfaWebAuthnEnrollmentSuccess","useMemo"],"mappings":"igBAaA,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,GAA8Bd,EAAUH,EAASkB,SAASD,IAM5EE,EAAkC,IAC7CC,EAAQ,IAAMpB,EAAU"}
@@ -4,5 +4,5 @@ export declare const tryAgain: (payload?: CustomOptions) => void | Promise<void>
4
4
  export declare const usePassword: (payload?: CustomOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const noThanks: (payload?: CustomOptions) => void | Promise<void>;
7
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
8
8
  export declare const useMfaWebAuthnError: () => MfaWebAuthnErrorMembers;
@@ -1,2 +1,2 @@
1
- import r from"@auth0/auth0-acul-js/mfa-webauthn-error";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(r),{withError:m}=e,u=new s(n),{useUser:a,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:k,useUntrustedData:x}=u,d=r=>m(n.tryAgain(r)),w=r=>m(n.usePassword(r)),T=r=>m(n.tryAnotherMethod(r)),g=r=>m(n.noThanks(r)),A=()=>o(()=>n,[]);export{g as noThanks,d as tryAgain,T as tryAnotherMethod,c as useBranding,i as useClient,A as useMfaWebAuthnError,p as useOrganization,w as usePassword,f as usePrompt,j as useScreen,h as useTenant,k as useTransaction,x as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-error";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,a=new s(n),{useUser:u,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:k}=a,x=o=>m(n.tryAgain(o)),d=o=>m(n.usePassword(o)),w=o=>m(n.tryAnotherMethod(o)),T=o=>m(n.noThanks(o)),l=()=>r(()=>n,[]);export{T as noThanks,x as tryAgain,w as tryAnotherMethod,c as useBranding,i as useClient,l as useMfaWebAuthnError,p as useOrganization,d as usePassword,f as usePrompt,g as useScreen,h as useTenant,j as useTransaction,k as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-error.js","sources":["../../src/screens/mfa-webauthn-error.tsx"],"sourcesContent":["import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnErrorMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-error';\n\n// Register the singleton instance of MfaWebAuthnError\nconst instance = registerScreen<MfaWebAuthnErrorMembers>(MfaWebAuthnError)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnErrorMembers>(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 tryAgain = (payload?: CustomOptions) => withError(instance.tryAgain(payload));\nexport const usePassword = (payload?: CustomOptions) => withError(instance.usePassword(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const noThanks = (payload?: CustomOptions) => withError(instance.noThanks(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnError\nexport const useMfaWebAuthnError = (): MfaWebAuthnErrorMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnError","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","tryAgain","payload","usePassword","tryAnotherMethod","noThanks","useMfaWebAuthnError","useMemo"],"mappings":"kbAaA,MAAMA,EAAWC,EAAwCC,IAGnDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAsCN,IAC7CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAYC,GAA4Bd,EAAUH,EAASgB,SAASC,IACpEC,EAAeD,GAA4Bd,EAAUH,EAASkB,YAAYD,IAC1EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAYH,GAA4Bd,EAAUH,EAASoB,SAASH,IAMpEI,EAAsB,IAA+BC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-error.js","sources":["../../src/screens/mfa-webauthn-error.tsx"],"sourcesContent":["import MfaWebAuthnError from '@auth0/auth0-acul-js/mfa-webauthn-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnErrorMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-error';\n\n// Register the singleton instance of MfaWebAuthnError\nconst instance = registerScreen<MfaWebAuthnErrorMembers>(MfaWebAuthnError)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnErrorMembers>(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 tryAgain = (payload?: CustomOptions) => withError(instance.tryAgain(payload));\nexport const usePassword = (payload?: CustomOptions) => withError(instance.usePassword(payload));\nexport const tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const noThanks = (payload?: CustomOptions) => withError(instance.noThanks(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnError\nexport const useMfaWebAuthnError = (): MfaWebAuthnErrorMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnError","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","tryAgain","payload","usePassword","tryAnotherMethod","noThanks","useMfaWebAuthnError","useMemo"],"mappings":"ofAaA,MAAMA,EAAWC,EAAwCC,IAGnDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAsCN,IAC7CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAYC,GAA4Bd,EAAUH,EAASgB,SAASC,IACpEC,EAAeD,GAA4Bd,EAAUH,EAASkB,YAAYD,IAC1EE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAYH,GAA4Bd,EAAUH,EAASoB,SAASH,IAMpEI,EAAsB,IAA+BC,EAAQ,IAAMtB,EAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { MfaWebAuthnNotAvailableErrorMembers, CustomOptions } from '@auth0/auth0-acul-js/mfa-webauthn-not-available-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").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const tryAnotherMethod: (payload?: CustomOptions) => void | Promise<void>;
4
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
5
5
  export declare const useMfaWebAuthnNotAvailableError: () => MfaWebAuthnNotAvailableErrorMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/mfa-webauthn-not-available-error";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 e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as t}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const n=s(o),{withError:m}=e,u=new t(n),{useUser:a,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,d=o=>m(n.tryAnotherMethod(o)),l=()=>r(()=>n,[]);export{d as tryAnotherMethod,c as useBranding,i as useClient,l as useMfaWebAuthnNotAvailableError,p as useOrganization,f as usePrompt,j as useScreen,h as useTenant,x as useTransaction,k as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-not-available-error";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.tryAnotherMethod(o)),l=()=>e(()=>n,[]);export{k as tryAnotherMethod,c as useBranding,i as useClient,l as useMfaWebAuthnNotAvailableError,p as useOrganization,f as usePrompt,g as useScreen,h as useTenant,j as useTransaction,x as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-not-available-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-not-available-error.js","sources":["../../src/screens/mfa-webauthn-not-available-error.tsx"],"sourcesContent":["import MfaWebAuthnNotAvailableError from '@auth0/auth0-acul-js/mfa-webauthn-not-available-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnNotAvailableErrorMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-not-available-error';\n\n// Register the singleton instance of MfaWebAuthnNotAvailableError\nconst instance = registerScreen<MfaWebAuthnNotAvailableErrorMembers>(MfaWebAuthnNotAvailableError)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnNotAvailableErrorMembers>(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 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 MfaWebAuthnNotAvailableError\nexport const useMfaWebAuthnNotAvailableError = (): MfaWebAuthnNotAvailableErrorMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnNotAvailableError","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","tryAnotherMethod","payload","useMfaWebAuthnNotAvailableError","useMemo"],"mappings":"gcAaA,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,EAAoBC,GAC/Bd,EAAUH,EAASgB,iBAAiBC,IAMzBC,EAAkC,IAC7CC,EAAQ,IAAMnB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-not-available-error.js","sources":["../../src/screens/mfa-webauthn-not-available-error.tsx"],"sourcesContent":["import MfaWebAuthnNotAvailableError from '@auth0/auth0-acul-js/mfa-webauthn-not-available-error';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnNotAvailableErrorMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-not-available-error';\n\n// Register the singleton instance of MfaWebAuthnNotAvailableError\nconst instance = registerScreen<MfaWebAuthnNotAvailableErrorMembers>(MfaWebAuthnNotAvailableError)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnNotAvailableErrorMembers>(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 tryAnotherMethod = (payload?: CustomOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnNotAvailableError\nexport const useMfaWebAuthnNotAvailableError = (): MfaWebAuthnNotAvailableErrorMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnNotAvailableError","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","tryAnotherMethod","payload","useMfaWebAuthnNotAvailableError","useMemo"],"mappings":"kgBAaA,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,EAAoBC,GAC/Bd,EAAUH,EAASgB,iBAAiBC,IAMzBC,EAAkC,IAC7CC,EAAQ,IAAMnB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const verify: (options?: VerifyPlatformAuthenticatorOptions) => 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 } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
7
7
  export declare const useMfaWebAuthnPlatformChallenge: () => MfaWebAuthnPlatformChallengeMembers;
@@ -1,2 +1,2 @@
1
- import r from"@auth0/auth0-acul-js/mfa-webauthn-platform-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as t}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const n=s(r),{withError:m}=e,u=new t(n),{useUser:a,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,l=r=>m(n.verify(r)),d=r=>m(n.reportBrowserError(r)),w=r=>m(n.tryAnotherMethod(r)),g=()=>o(()=>n,[]);export{d as reportBrowserError,w as tryAnotherMethod,c as useBranding,i as useClient,g as useMfaWebAuthnPlatformChallenge,p as useOrganization,f as usePrompt,j as useScreen,h as useTenant,x as useTransaction,k as useUntrustedData,a as useUser,l as verify};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-platform-challenge";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,a=new s(n),{useUser:u,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.verify(o)),l=o=>m(n.reportBrowserError(o)),d=o=>m(n.tryAnotherMethod(o)),w=()=>r(()=>n,[]);export{l as reportBrowserError,d as tryAnotherMethod,c as useBranding,i as useClient,w as useMfaWebAuthnPlatformChallenge,p as useOrganization,f as usePrompt,g as useScreen,h as useTenant,j as useTransaction,x as useUntrustedData,u as useUser,k as verify};
2
2
  //# sourceMappingURL=mfa-webauthn-platform-challenge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-platform-challenge.js","sources":["../../src/screens/mfa-webauthn-platform-challenge.tsx"],"sourcesContent":["import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/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 MfaWebAuthnPlatformChallengeMembers,\n VerifyPlatformAuthenticatorOptions,\n ReportBrowserErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';\n\n// Register the singleton instance of MfaWebAuthnPlatformChallenge\nconst instance = registerScreen<MfaWebAuthnPlatformChallengeMembers>(MfaWebAuthnPlatformChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnPlatformChallengeMembers>(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 verify = (options?: VerifyPlatformAuthenticatorOptions) =>\n withError(instance.verify(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 MfaWebAuthnPlatformChallenge\nexport const useMfaWebAuthnPlatformChallenge = (): MfaWebAuthnPlatformChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnPlatformChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","verify","options","reportBrowserError","tryAnotherMethod","useMfaWebAuthnPlatformChallenge","useMemo"],"mappings":"+bAeA,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,EAAUC,GACrBd,EAAUH,EAASgB,OAAOC,IACfC,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-platform-challenge.js","sources":["../../src/screens/mfa-webauthn-platform-challenge.tsx"],"sourcesContent":["import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/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 MfaWebAuthnPlatformChallengeMembers,\n VerifyPlatformAuthenticatorOptions,\n ReportBrowserErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';\n\n// Register the singleton instance of MfaWebAuthnPlatformChallenge\nconst instance = registerScreen<MfaWebAuthnPlatformChallengeMembers>(MfaWebAuthnPlatformChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnPlatformChallengeMembers>(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 verify = (options?: VerifyPlatformAuthenticatorOptions) =>\n withError(instance.verify(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, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnPlatformChallenge\nexport const useMfaWebAuthnPlatformChallenge = (): MfaWebAuthnPlatformChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnPlatformChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","verify","options","reportBrowserError","tryAnotherMethod","useMfaWebAuthnPlatformChallenge","useMemo"],"mappings":"igBAeA,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,EAAUC,GACrBd,EAAUH,EAASgB,OAAOC,IACfC,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
@@ -4,5 +4,5 @@ export declare const submitPasskeyCredential: (payload?: SubmitPasskeyCredential
4
4
  export declare const reportBrowserError: (payload: ReportBrowserErrorOptions) => void | Promise<void>;
5
5
  export declare const snoozeEnrollment: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const refuseEnrollmentOnThisDevice: (payload?: CustomOptions) => void | Promise<void>;
7
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
7
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
8
8
  export declare const useMfaWebAuthnPlatformEnrollment: () => MfaWebAuthnPlatformEnrollmentMembers;
@@ -1,2 +1,2 @@
1
- import r from"@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as o}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(r),{withError:m}=o,u=new s(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:l,useTransaction:j,useUntrustedData:k}=u,x=r=>m(n.submitPasskeyCredential(r)),E=r=>m(n.reportBrowserError(r)),d=r=>m(n.snoozeEnrollment(r)),w=r=>m(n.refuseEnrollmentOnThisDevice(r)),T=()=>e(()=>n,[]);export{w as refuseEnrollmentOnThisDevice,E as reportBrowserError,d as snoozeEnrollment,x as submitPasskeyCredential,c as useBranding,h as useClient,T as useMfaWebAuthnPlatformEnrollment,p as useOrganization,f as usePrompt,l as useScreen,i as useTenant,j as useTransaction,k as useUntrustedData,a as useUser};
1
+ import e from"@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(e),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:l,useTransaction:g,useUntrustedData:j}=a,k=e=>m(n.submitPasskeyCredential(e)),x=e=>m(n.reportBrowserError(e)),E=e=>m(n.snoozeEnrollment(e)),d=e=>m(n.refuseEnrollmentOnThisDevice(e)),w=()=>o(()=>n,[]);export{d as refuseEnrollmentOnThisDevice,x as reportBrowserError,E as snoozeEnrollment,k as submitPasskeyCredential,h as useBranding,i as useClient,w as useMfaWebAuthnPlatformEnrollment,p as useOrganization,f as usePrompt,l as useScreen,c as useTenant,g as useTransaction,j as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-platform-enrollment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-platform-enrollment.js","sources":["../../src/screens/mfa-webauthn-platform-enrollment.tsx"],"sourcesContent":["import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnPlatformEnrollmentMembers,\n SubmitPasskeyCredentialOptions,\n ReportBrowserErrorOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';\n\n// Register the singleton instance of MfaWebAuthnPlatformEnrollment\nconst instance = registerScreen<MfaWebAuthnPlatformEnrollmentMembers>(\n MfaWebAuthnPlatformEnrollment\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnPlatformEnrollmentMembers>(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 submitPasskeyCredential = (payload?: SubmitPasskeyCredentialOptions) =>\n withError(instance.submitPasskeyCredential(payload));\nexport const reportBrowserError = (payload: ReportBrowserErrorOptions) =>\n withError(instance.reportBrowserError(payload));\nexport const snoozeEnrollment = (payload?: CustomOptions) =>\n withError(instance.snoozeEnrollment(payload));\nexport const refuseEnrollmentOnThisDevice = (payload?: CustomOptions) =>\n withError(instance.refuseEnrollmentOnThisDevice(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnPlatformEnrollment\nexport const useMfaWebAuthnPlatformEnrollment = (): MfaWebAuthnPlatformEnrollmentMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnPlatformEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPasskeyCredential","payload","reportBrowserError","snoozeEnrollment","refuseEnrollmentOnThisDevice","useMfaWebAuthnPlatformEnrollment","useMemo"],"mappings":"gcAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAmDN,IAC1DO,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,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAgCH,GAC3Cd,EAAUH,EAASoB,6BAA6BH,IAMrCI,EAAmC,IAC9CC,EAAQ,IAAMtB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-platform-enrollment.js","sources":["../../src/screens/mfa-webauthn-platform-enrollment.tsx"],"sourcesContent":["import MfaWebAuthnPlatformEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnPlatformEnrollmentMembers,\n SubmitPasskeyCredentialOptions,\n ReportBrowserErrorOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-platform-enrollment';\n\n// Register the singleton instance of MfaWebAuthnPlatformEnrollment\nconst instance = registerScreen<MfaWebAuthnPlatformEnrollmentMembers>(\n MfaWebAuthnPlatformEnrollment\n)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnPlatformEnrollmentMembers>(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 submitPasskeyCredential = (payload?: SubmitPasskeyCredentialOptions) =>\n withError(instance.submitPasskeyCredential(payload));\nexport const reportBrowserError = (payload: ReportBrowserErrorOptions) =>\n withError(instance.reportBrowserError(payload));\nexport const snoozeEnrollment = (payload?: CustomOptions) =>\n withError(instance.snoozeEnrollment(payload));\nexport const refuseEnrollmentOnThisDevice = (payload?: CustomOptions) =>\n withError(instance.refuseEnrollmentOnThisDevice(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnPlatformEnrollment\nexport const useMfaWebAuthnPlatformEnrollment = (): MfaWebAuthnPlatformEnrollmentMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnPlatformEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPasskeyCredential","payload","reportBrowserError","snoozeEnrollment","refuseEnrollmentOnThisDevice","useMfaWebAuthnPlatformEnrollment","useMemo"],"mappings":"kgBAeA,MAAMA,EAAWC,EACfC,IAIIC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAmDN,IAC1DO,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,EAAsBD,GACjCd,EAAUH,EAASkB,mBAAmBD,IAC3BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAgCH,GAC3Cd,EAAUH,EAASoB,6BAA6BH,IAMrCI,EAAmC,IAC9CC,EAAQ,IAAMtB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const verify: (options?: VerifySecurityKeyOptions) => void | Promise<void>;
4
4
  export declare const reportWebAuthnError: (options: ReportWebAuthnErrorOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (options?: TryAnotherMethodOptions) => void | Promise<void>;
6
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
7
7
  export declare const useMfaWebAuthnRoamingChallenge: () => MfaWebAuthnRoamingChallengeMembers;
@@ -1,2 +1,2 @@
1
- import r from"@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as t}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const n=s(r),{withError:m}=e,u=new t(n),{useUser:a,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,d=r=>m(n.verify(r)),g=r=>m(n.reportWebAuthnError(r)),l=r=>m(n.tryAnotherMethod(r)),w=()=>o(()=>n,[]);export{g as reportWebAuthnError,l as tryAnotherMethod,c as useBranding,i as useClient,w as useMfaWebAuthnRoamingChallenge,p as useOrganization,f as usePrompt,j as useScreen,h as useTenant,x as useTransaction,k as useUntrustedData,a as useUser,d as verify};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.verify(o)),l=o=>m(n.reportWebAuthnError(o)),d=o=>m(n.tryAnotherMethod(o)),w=()=>e(()=>n,[]);export{l as reportWebAuthnError,d as tryAnotherMethod,c as useBranding,i as useClient,w as useMfaWebAuthnRoamingChallenge,p as useOrganization,f as usePrompt,g as useScreen,h as useTenant,j as useTransaction,x as useUntrustedData,u as useUser,k as verify};
2
2
  //# sourceMappingURL=mfa-webauthn-roaming-challenge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-roaming-challenge.js","sources":["../../src/screens/mfa-webauthn-roaming-challenge.tsx"],"sourcesContent":["import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/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 MfaWebAuthnRoamingChallengeMembers,\n VerifySecurityKeyOptions,\n ReportWebAuthnErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';\n\n// Register the singleton instance of MfaWebAuthnRoamingChallenge\nconst instance = registerScreen<MfaWebAuthnRoamingChallengeMembers>(MfaWebAuthnRoamingChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnRoamingChallengeMembers>(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 verify = (options?: VerifySecurityKeyOptions) => withError(instance.verify(options));\nexport const reportWebAuthnError = (options: ReportWebAuthnErrorOptions) =>\n withError(instance.reportWebAuthnError(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 MfaWebAuthnRoamingChallenge\nexport const useMfaWebAuthnRoamingChallenge = (): MfaWebAuthnRoamingChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnRoamingChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","verify","options","reportWebAuthnError","tryAnotherMethod","useMfaWebAuthnRoamingChallenge","useMemo"],"mappings":"8bAeA,MAAMA,EAAWC,EAAmDC,IAG9DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAiDN,IACxDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAAuCd,EAAUH,EAASgB,OAAOC,IAC3EC,EAAuBD,GAClCd,EAAUH,EAASkB,oBAAoBD,IAC5BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAiC,IAC5CC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-roaming-challenge.js","sources":["../../src/screens/mfa-webauthn-roaming-challenge.tsx"],"sourcesContent":["import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/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 MfaWebAuthnRoamingChallengeMembers,\n VerifySecurityKeyOptions,\n ReportWebAuthnErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';\n\n// Register the singleton instance of MfaWebAuthnRoamingChallenge\nconst instance = registerScreen<MfaWebAuthnRoamingChallengeMembers>(MfaWebAuthnRoamingChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnRoamingChallengeMembers>(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 verify = (options?: VerifySecurityKeyOptions) => withError(instance.verify(options));\nexport const reportWebAuthnError = (options: ReportWebAuthnErrorOptions) =>\n withError(instance.reportWebAuthnError(options));\nexport const tryAnotherMethod = (options?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(options));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnRoamingChallenge\nexport const useMfaWebAuthnRoamingChallenge = (): MfaWebAuthnRoamingChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnRoamingChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","verify","options","reportWebAuthnError","tryAnotherMethod","useMfaWebAuthnRoamingChallenge","useMemo"],"mappings":"ggBAeA,MAAMA,EAAWC,EAAmDC,IAG9DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAiDN,IACxDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAAuCd,EAAUH,EAASgB,OAAOC,IAC3EC,EAAuBD,GAClCd,EAAUH,EAASkB,oBAAoBD,IAC5BE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAiC,IAC5CC,EAAQ,IAAMrB,EAAU"}
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
3
3
  export declare const enroll: (payload: CustomOptions) => void | Promise<void>;
4
4
  export declare const showError: (payload: ShowErrorOptions) => void | Promise<void>;
5
5
  export declare const tryAnotherMethod: (payload?: TryAnotherMethodOptions) => void | Promise<void>;
6
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
6
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
7
7
  export declare const useMfaWebAuthnRoamingEnrollment: () => MfaWebAuthnRoamingEnrollmentMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment";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 e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,u=new s(n),{useUser:a,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:l,useUntrustedData:x}=u,k=o=>m(n.enroll(o)),d=o=>m(n.showError(o)),w=o=>m(n.tryAnotherMethod(o)),g=()=>r(()=>n,[]);export{k as enroll,d as showError,w as tryAnotherMethod,c as useBranding,i as useClient,g as useMfaWebAuthnRoamingEnrollment,p as useOrganization,f as usePrompt,j as useScreen,h as useTenant,l as useTransaction,x as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,a=new s(n),{useUser:u,useTenant:h,useBranding:c,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:l}=a,x=o=>m(n.enroll(o)),k=o=>m(n.showError(o)),d=o=>m(n.tryAnotherMethod(o)),w=()=>r(()=>n,[]);export{x as enroll,k as showError,d as tryAnotherMethod,c as useBranding,i as useClient,w as useMfaWebAuthnRoamingEnrollment,p as useOrganization,f as usePrompt,g as useScreen,h as useTenant,j as useTransaction,l as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=mfa-webauthn-roaming-enrollment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfa-webauthn-roaming-enrollment.js","sources":["../../src/screens/mfa-webauthn-roaming-enrollment.tsx"],"sourcesContent":["import MfaWebAuthnRoamingEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnRoamingEnrollmentMembers,\n CustomOptions,\n ShowErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment';\n\n// Register the singleton instance of MfaWebAuthnRoamingEnrollment\nconst instance = registerScreen<MfaWebAuthnRoamingEnrollmentMembers>(MfaWebAuthnRoamingEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnRoamingEnrollmentMembers>(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 enroll = (payload: CustomOptions) => withError(instance.enroll(payload));\nexport const showError = (payload: ShowErrorOptions) => withError(instance.showError(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 MfaWebAuthnRoamingEnrollment\nexport const useMfaWebAuthnRoamingEnrollment = (): MfaWebAuthnRoamingEnrollmentMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnRoamingEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","enroll","payload","showError","tryAnotherMethod","useMfaWebAuthnRoamingEnrollment","useMemo"],"mappings":"+bAeA,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,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAaD,GAA8Bd,EAAUH,EAASkB,UAAUD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"mfa-webauthn-roaming-enrollment.js","sources":["../../src/screens/mfa-webauthn-roaming-enrollment.tsx"],"sourcesContent":["import MfaWebAuthnRoamingEnrollment from '@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaWebAuthnRoamingEnrollmentMembers,\n CustomOptions,\n ShowErrorOptions,\n TryAnotherMethodOptions,\n} from '@auth0/auth0-acul-js/mfa-webauthn-roaming-enrollment';\n\n// Register the singleton instance of MfaWebAuthnRoamingEnrollment\nconst instance = registerScreen<MfaWebAuthnRoamingEnrollmentMembers>(MfaWebAuthnRoamingEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaWebAuthnRoamingEnrollmentMembers>(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 enroll = (payload: CustomOptions) => withError(instance.enroll(payload));\nexport const showError = (payload: ShowErrorOptions) => withError(instance.showError(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaWebAuthnRoamingEnrollment\nexport const useMfaWebAuthnRoamingEnrollment = (): MfaWebAuthnRoamingEnrollmentMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaWebAuthnRoamingEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","enroll","payload","showError","tryAnotherMethod","useMfaWebAuthnRoamingEnrollment","useMemo"],"mappings":"igBAeA,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,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAaD,GAA8Bd,EAAUH,EAASkB,UAAUD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAkC,IAC7CC,EAAQ,IAAMrB,EAAU"}
@@ -5,5 +5,5 @@ export declare const selectOrganization: (payload: {
5
5
  state: string;
6
6
  }) => void | Promise<void>;
7
7
  export declare const skipOrganizationSelection: (payload?: CustomOptions) => void | Promise<void>;
8
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
8
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
9
9
  export declare const useOrganizationPicker: () => OrganizationPickerMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/organization-picker";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 e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,i=new s(n),{useUser:a,useTenant:u,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:k,useUntrustedData:x}=i,g=o=>m(n.selectOrganization(o)),l=o=>m(n.skipOrganizationSelection(o)),z=()=>r(()=>n,[]);export{g as selectOrganization,l as skipOrganizationSelection,c as useBranding,h as useClient,p as useOrganization,z as useOrganizationPicker,f as usePrompt,j as useScreen,u as useTenant,k as useTransaction,x as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/organization-picker";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:a}=r,m=new s(n),{useUser:u,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:g,useScreen:f,useTransaction:j,useUntrustedData:k}=m,x=o=>a(n.selectOrganization(o)),l=o=>a(n.skipOrganizationSelection(o)),z=()=>e(()=>n,[]);export{x as selectOrganization,l as skipOrganizationSelection,c as useBranding,h as useClient,p as useOrganization,z as useOrganizationPicker,g as usePrompt,f as useScreen,i as useTenant,j as useTransaction,k as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=organization-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization-picker.js","sources":["../../src/screens/organization-picker.tsx"],"sourcesContent":["import OrganizationPicker from '@auth0/auth0-acul-js/organization-picker';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n OrganizationPickerMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/organization-picker';\n\n// Register the singleton instance of OrganizationPicker\nconst instance = registerScreen<OrganizationPickerMembers>(OrganizationPicker)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<OrganizationPickerMembers>(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 selectOrganization = (payload: { organization: string; state: string }) =>\n withError(instance.selectOrganization(payload));\nexport const skipOrganizationSelection = (payload?: CustomOptions) =>\n withError(instance.skipOrganizationSelection(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of OrganizationPicker\nexport const useOrganizationPicker = (): OrganizationPickerMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","OrganizationPicker","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectOrganization","payload","skipOrganizationSelection","useOrganizationPicker","useMemo"],"mappings":"mbAaA,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,EAAsBC,GACjCd,EAAUH,EAASgB,mBAAmBC,IAC3BC,EAA6BD,GACxCd,EAAUH,EAASkB,0BAA0BD,IAMlCE,EAAwB,IAAiCC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"organization-picker.js","sources":["../../src/screens/organization-picker.tsx"],"sourcesContent":["import OrganizationPicker from '@auth0/auth0-acul-js/organization-picker';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n OrganizationPickerMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/organization-picker';\n\n// Register the singleton instance of OrganizationPicker\nconst instance = registerScreen<OrganizationPickerMembers>(OrganizationPicker)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<OrganizationPickerMembers>(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 selectOrganization = (payload: { organization: string; state: string }) =>\n withError(instance.selectOrganization(payload));\nexport const skipOrganizationSelection = (payload?: CustomOptions) =>\n withError(instance.skipOrganizationSelection(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of OrganizationPicker\nexport const useOrganizationPicker = (): OrganizationPickerMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","OrganizationPicker","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectOrganization","payload","skipOrganizationSelection","useOrganizationPicker","useMemo"],"mappings":"qfAaA,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,EAAsBC,GACjCd,EAAUH,EAASgB,mBAAmBC,IAC3BC,EAA6BD,GACxCd,EAAUH,EAASkB,0BAA0BD,IAMlCE,EAAwB,IAAiCC,EAAQ,IAAMpB,EAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { OrganizationSelectionMembers, ContinueWithOrganizationNameOptions } from '@auth0/auth0-acul-js/organization-selection';
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").ScreenMembersOnOrganizationSelection, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continueWithOrganizationName: (payload: ContinueWithOrganizationNameOptions) => void | Promise<void>;
4
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
4
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
5
5
  export declare const useOrganizationSelection: () => OrganizationSelectionMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/organization-selection";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 e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,u=new s(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,g=o=>m(n.continueWithOrganizationName(o)),d=()=>r(()=>n,[]);export{g as continueWithOrganizationName,c as useBranding,h as useClient,p as useOrganization,d as useOrganizationSelection,f as usePrompt,j as useScreen,i as useTenant,x as useTransaction,k as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/organization-selection";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:g,useScreen:f,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.continueWithOrganizationName(o)),l=()=>e(()=>n,[]);export{k as continueWithOrganizationName,c as useBranding,h as useClient,p as useOrganization,l as useOrganizationSelection,g as usePrompt,f as useScreen,i as useTenant,j as useTransaction,x as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=organization-selection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization-selection.js","sources":["../../src/screens/organization-selection.tsx"],"sourcesContent":["import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n OrganizationSelectionMembers,\n ContinueWithOrganizationNameOptions,\n} from '@auth0/auth0-acul-js/organization-selection';\n\n// Register the singleton instance of OrganizationSelection\nconst instance = registerScreen<OrganizationSelectionMembers>(OrganizationSelection)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<OrganizationSelectionMembers>(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 continueWithOrganizationName = (payload: ContinueWithOrganizationNameOptions) =>\n withError(instance.continueWithOrganizationName(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of OrganizationSelection\nexport const useOrganizationSelection = (): OrganizationSelectionMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","OrganizationSelection","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithOrganizationName","payload","useOrganizationSelection","useMemo"],"mappings":"sbAaA,MAAMA,EAAWC,EAA6CC,IAGxDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2CN,IAClDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAgCC,GAC3Cd,EAAUH,EAASgB,6BAA6BC,IAMrCC,EAA2B,IACtCC,EAAQ,IAAMnB,EAAU"}
1
+ {"version":3,"file":"organization-selection.js","sources":["../../src/screens/organization-selection.tsx"],"sourcesContent":["import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n OrganizationSelectionMembers,\n ContinueWithOrganizationNameOptions,\n} from '@auth0/auth0-acul-js/organization-selection';\n\n// Register the singleton instance of OrganizationSelection\nconst instance = registerScreen<OrganizationSelectionMembers>(OrganizationSelection)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<OrganizationSelectionMembers>(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 continueWithOrganizationName = (payload: ContinueWithOrganizationNameOptions) =>\n withError(instance.continueWithOrganizationName(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of OrganizationSelection\nexport const useOrganizationSelection = (): OrganizationSelectionMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","OrganizationSelection","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithOrganizationName","payload","useOrganizationSelection","useMemo"],"mappings":"wfAaA,MAAMA,EAAWC,EAA6CC,IAGxDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2CN,IAClDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAgCC,GAC3Cd,EAAUH,EAASgB,6BAA6BC,IAMrCC,EAA2B,IACtCC,EAAQ,IAAMnB,EAAU"}
@@ -2,5 +2,5 @@ import type { PasskeyEnrollmentLocalMembers, CustomOptions, AbortEnrollmentOptio
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").ScreenMembersOnPasskeyEnrollmentLocal, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continuePasskeyEnrollment: (payload?: CustomOptions) => void | Promise<void>;
4
4
  export declare const abortPasskeyEnrollment: (payload: AbortEnrollmentOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
6
6
  export declare const usePasskeyEnrollmentLocal: () => PasskeyEnrollmentLocalMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/passkey-enrollment-local";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:l,useScreen:f,useTransaction:k,useUntrustedData:j}=u,x=o=>m(n.continuePasskeyEnrollment(o)),E=o=>m(n.abortPasskeyEnrollment(o)),d=()=>e(()=>n,[]);export{E as abortPasskeyEnrollment,x as continuePasskeyEnrollment,i as useBranding,h as useClient,p as useOrganization,d as usePasskeyEnrollmentLocal,l as usePrompt,f as useScreen,c as useTenant,k as useTransaction,j as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/passkey-enrollment-local";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:l,useScreen:f,useTransaction:k,useUntrustedData:g}=a,j=o=>m(n.continuePasskeyEnrollment(o)),x=o=>m(n.abortPasskeyEnrollment(o)),E=()=>e(()=>n,[]);export{x as abortPasskeyEnrollment,j as continuePasskeyEnrollment,h as useBranding,i as useClient,p as useOrganization,E as usePasskeyEnrollmentLocal,l as usePrompt,f as useScreen,c as useTenant,k as useTransaction,g as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=passkey-enrollment-local.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"passkey-enrollment-local.js","sources":["../../src/screens/passkey-enrollment-local.tsx"],"sourcesContent":["import PasskeyEnrollmentLocal from '@auth0/auth0-acul-js/passkey-enrollment-local';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentLocalMembers,\n CustomOptions,\n AbortEnrollmentOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment-local';\n\n// Register the singleton instance of PasskeyEnrollmentLocal\nconst instance = registerScreen<PasskeyEnrollmentLocalMembers>(PasskeyEnrollmentLocal)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentLocalMembers>(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 continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload: AbortEnrollmentOptions) =>\n withError(instance.abortPasskeyEnrollment(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PasskeyEnrollmentLocal\nexport const usePasskeyEnrollmentLocal = (): PasskeyEnrollmentLocalMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PasskeyEnrollmentLocal","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continuePasskeyEnrollment","payload","abortPasskeyEnrollment","usePasskeyEnrollmentLocal","useMemo"],"mappings":"wbAcA,MAAMA,EAAWC,EAA8CC,IAGzDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA4CN,IACnDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA6BC,GACxCd,EAAUH,EAASgB,0BAA0BC,IAClCC,EAA0BD,GACrCd,EAAUH,EAASkB,uBAAuBD,IAM/BE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"passkey-enrollment-local.js","sources":["../../src/screens/passkey-enrollment-local.tsx"],"sourcesContent":["import PasskeyEnrollmentLocal from '@auth0/auth0-acul-js/passkey-enrollment-local';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentLocalMembers,\n CustomOptions,\n AbortEnrollmentOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment-local';\n\n// Register the singleton instance of PasskeyEnrollmentLocal\nconst instance = registerScreen<PasskeyEnrollmentLocalMembers>(PasskeyEnrollmentLocal)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentLocalMembers>(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 continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload: AbortEnrollmentOptions) =>\n withError(instance.abortPasskeyEnrollment(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PasskeyEnrollmentLocal\nexport const usePasskeyEnrollmentLocal = (): PasskeyEnrollmentLocalMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PasskeyEnrollmentLocal","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continuePasskeyEnrollment","payload","abortPasskeyEnrollment","usePasskeyEnrollmentLocal","useMemo"],"mappings":"0fAcA,MAAMA,EAAWC,EAA8CC,IAGzDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA4CN,IACnDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA6BC,GACxCd,EAAUH,EAASgB,0BAA0BC,IAClCC,EAA0BD,GACrCd,EAAUH,EAASkB,uBAAuBD,IAM/BE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
@@ -2,5 +2,5 @@ import type { PasskeyEnrollmentMembers, CustomOptions } from '@auth0/auth0-acul-
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").ScreenMembersOnPasskeyEnrollment, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continuePasskeyEnrollment: (payload?: CustomOptions) => void | Promise<void>;
4
4
  export declare const abortPasskeyEnrollment: (payload?: CustomOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
6
6
  export declare const usePasskeyEnrollment: () => PasskeyEnrollmentMembers;
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/passkey-enrollment";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:k,useTransaction:l,useUntrustedData:j}=u,x=o=>m(n.continuePasskeyEnrollment(o)),E=o=>m(n.abortPasskeyEnrollment(o)),d=()=>e(()=>n,[]);export{E as abortPasskeyEnrollment,x as continuePasskeyEnrollment,i as useBranding,h as useClient,p as useOrganization,d as usePasskeyEnrollment,f as usePrompt,k as useScreen,c as useTenant,l as useTransaction,j as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/passkey-enrollment";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:k,useTransaction:l,useUntrustedData:g}=a,j=o=>m(n.continuePasskeyEnrollment(o)),x=o=>m(n.abortPasskeyEnrollment(o)),E=()=>e(()=>n,[]);export{x as abortPasskeyEnrollment,j as continuePasskeyEnrollment,h as useBranding,i as useClient,p as useOrganization,E as usePasskeyEnrollment,f as usePrompt,k as useScreen,c as useTenant,l as useTransaction,g as useUntrustedData,u as useUser};
2
2
  //# sourceMappingURL=passkey-enrollment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"passkey-enrollment.js","sources":["../../src/screens/passkey-enrollment.tsx"],"sourcesContent":["import PasskeyEnrollment from '@auth0/auth0-acul-js/passkey-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment';\n\n// Register the singleton instance of PasskeyEnrollment\nconst instance = registerScreen<PasskeyEnrollmentMembers>(PasskeyEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentMembers>(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 continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.abortPasskeyEnrollment(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PasskeyEnrollment\nexport const usePasskeyEnrollment = (): PasskeyEnrollmentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PasskeyEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continuePasskeyEnrollment","payload","abortPasskeyEnrollment","usePasskeyEnrollment","useMemo"],"mappings":"kbAaA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA6BC,GACxCd,EAAUH,EAASgB,0BAA0BC,IAClCC,EAA0BD,GACrCd,EAAUH,EAASkB,uBAAuBD,IAM/BE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
1
+ {"version":3,"file":"passkey-enrollment.js","sources":["../../src/screens/passkey-enrollment.tsx"],"sourcesContent":["import PasskeyEnrollment from '@auth0/auth0-acul-js/passkey-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment';\n\n// Register the singleton instance of PasskeyEnrollment\nconst instance = registerScreen<PasskeyEnrollmentMembers>(PasskeyEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentMembers>(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 continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.abortPasskeyEnrollment(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PasskeyEnrollment\nexport const usePasskeyEnrollment = (): PasskeyEnrollmentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PasskeyEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continuePasskeyEnrollment","payload","abortPasskeyEnrollment","usePasskeyEnrollment","useMemo"],"mappings":"ofAaA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA6BC,GACxCd,EAAUH,EAASgB,0BAA0BC,IAClCC,EAA0BD,GACrCd,EAAUH,EAASkB,uBAAuBD,IAM/BE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
@@ -6,5 +6,5 @@ export declare const returnToPrevious: (payload?: CustomOptions) => void | Promi
6
6
  export declare const switchToVoice: (payload?: CustomOptions) => void | Promise<void>;
7
7
  export declare const switchToText: (payload?: CustomOptions) => void | Promise<void>;
8
8
  export { useResend } from '../hooks/utility/resend-manager';
9
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
9
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
10
10
  export declare const usePhoneIdentifierChallenge: () => PhoneIdentifierChallengeMembers;
@@ -1,2 +1,2 @@
1
- import e from"@auth0/auth0-acul-js/phone-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:i,useTenant:a,useBranding:h,useClient:c,useOrganization:p,usePrompt:f,useScreen:d,useTransaction:j,useUntrustedData:x}=u,l=e=>m(n.submitPhoneChallenge(e)),T=e=>m(n.resendCode(e)),k=e=>m(n.returnToPrevious(e)),g=e=>m(n.switchToVoice(e)),w=e=>m(n.switchToText(e)),C=()=>o(()=>n,[]);export{T as resendCode,k as returnToPrevious,l as submitPhoneChallenge,w as switchToText,g as switchToVoice,h as useBranding,c as useClient,p as useOrganization,C as usePhoneIdentifierChallenge,f as usePrompt,d as useScreen,a as useTenant,j as useTransaction,x as useUntrustedData,i as useUser};
1
+ import e from"@auth0/auth0-acul-js/phone-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:h,useClient:c,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,d=e=>m(n.submitPhoneChallenge(e)),l=e=>m(n.resendCode(e)),k=e=>m(n.returnToPrevious(e)),T=e=>m(n.switchToVoice(e)),C=e=>m(n.switchToText(e)),w=()=>o(()=>n,[]);export{l as resendCode,k as returnToPrevious,d as submitPhoneChallenge,C as switchToText,T as switchToVoice,h as useBranding,c as useClient,p as useOrganization,w as usePhoneIdentifierChallenge,f as usePrompt,g as useScreen,i as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=phone-identifier-challenge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone-identifier-challenge.js","sources":["../../src/screens/phone-identifier-challenge.tsx"],"sourcesContent":["import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PhoneIdentifierChallengeMembers,\n PhoneChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/phone-identifier-challenge';\n\n// Register the singleton instance of PhoneIdentifierChallenge\nconst instance = registerScreen<PhoneIdentifierChallengeMembers>(PhoneIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PhoneIdentifierChallengeMembers>(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 submitPhoneChallenge = (payload: PhoneChallengeOptions) =>\n withError(instance.submitPhoneChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\nexport const switchToVoice = (payload?: CustomOptions) =>\n withError(instance.switchToVoice(payload));\nexport const switchToText = (payload?: CustomOptions) => withError(instance.switchToText(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 PhoneIdentifierChallenge\nexport const usePhoneIdentifierChallenge = (): PhoneIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PhoneIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPhoneChallenge","payload","resendCode","returnToPrevious","switchToVoice","switchToText","usePhoneIdentifierChallenge","useMemo"],"mappings":"ofAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAiBH,GAC5Bd,EAAUH,EAASoB,cAAcH,IACtBI,EAAgBJ,GAA4Bd,EAAUH,EAASqB,aAAaJ,IAS5EK,EAA8B,IACzCC,EAAQ,IAAMvB,EAAU"}
1
+ {"version":3,"file":"phone-identifier-challenge.js","sources":["../../src/screens/phone-identifier-challenge.tsx"],"sourcesContent":["import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PhoneIdentifierChallengeMembers,\n PhoneChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/phone-identifier-challenge';\n\n// Register the singleton instance of PhoneIdentifierChallenge\nconst instance = registerScreen<PhoneIdentifierChallengeMembers>(PhoneIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PhoneIdentifierChallengeMembers>(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 submitPhoneChallenge = (payload: PhoneChallengeOptions) =>\n withError(instance.submitPhoneChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\nexport const switchToVoice = (payload?: CustomOptions) =>\n withError(instance.switchToVoice(payload));\nexport const switchToText = (payload?: CustomOptions) => withError(instance.switchToText(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PhoneIdentifierChallenge\nexport const usePhoneIdentifierChallenge = (): PhoneIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PhoneIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPhoneChallenge","payload","resendCode","returnToPrevious","switchToVoice","switchToText","usePhoneIdentifierChallenge","useMemo"],"mappings":"sjBAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAiBH,GAC5Bd,EAAUH,EAASoB,cAAcH,IACtBI,EAAgBJ,GAA4Bd,EAAUH,EAASqB,aAAaJ,IAS5EK,EAA8B,IACzCC,EAAQ,IAAMvB,EAAU"}
@@ -2,5 +2,5 @@ import type { PhoneIdentifierEnrollmentMembers, PhoneEnrollmentOptions, CustomOp
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").ScreenMembersOnPhoneIdentifierEnrollment, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const continuePhoneEnrollment: (payload: PhoneEnrollmentOptions) => void | Promise<void>;
4
4
  export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
5
- export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
5
+ export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
6
6
  export declare const usePhoneIdentifierEnrollment: () => PhoneIdentifierEnrollmentMembers;