@auth0/auth0-acul-react 1.0.0 → 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.
- package/README.md +2 -10
- package/dist/export/hooks.d.ts +1 -1
- package/dist/hooks/common/change-language.d.ts +92 -0
- package/dist/hooks/common/change-language.js +2 -0
- package/dist/hooks/common/change-language.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/screens/accept-invitation.d.ts +1 -1
- package/dist/screens/accept-invitation.js +1 -1
- package/dist/screens/accept-invitation.js.map +1 -1
- package/dist/screens/consent.d.ts +1 -1
- package/dist/screens/consent.js +1 -1
- package/dist/screens/consent.js.map +1 -1
- package/dist/screens/customized-consent.d.ts +1 -1
- package/dist/screens/customized-consent.js +1 -1
- package/dist/screens/customized-consent.js.map +1 -1
- package/dist/screens/device-code-activation-allowed.d.ts +1 -1
- package/dist/screens/device-code-activation-allowed.js +1 -1
- package/dist/screens/device-code-activation-allowed.js.map +1 -1
- package/dist/screens/device-code-activation-denied.d.ts +1 -1
- package/dist/screens/device-code-activation-denied.js +1 -1
- package/dist/screens/device-code-activation-denied.js.map +1 -1
- package/dist/screens/device-code-activation.d.ts +1 -1
- package/dist/screens/device-code-activation.js +1 -1
- package/dist/screens/device-code-activation.js.map +1 -1
- package/dist/screens/device-code-confirmation.d.ts +1 -1
- package/dist/screens/device-code-confirmation.js +1 -1
- package/dist/screens/device-code-confirmation.js.map +1 -1
- package/dist/screens/email-identifier-challenge.d.ts +1 -1
- package/dist/screens/email-identifier-challenge.js +1 -1
- package/dist/screens/email-identifier-challenge.js.map +1 -1
- package/dist/screens/email-otp-challenge.d.ts +1 -1
- package/dist/screens/email-otp-challenge.js +1 -1
- package/dist/screens/email-otp-challenge.js.map +1 -1
- package/dist/screens/email-verification-result.d.ts +1 -1
- package/dist/screens/email-verification-result.js +1 -1
- package/dist/screens/email-verification-result.js.map +1 -1
- package/dist/screens/interstitial-captcha.d.ts +1 -1
- package/dist/screens/interstitial-captcha.js +1 -1
- package/dist/screens/interstitial-captcha.js.map +1 -1
- package/dist/screens/login-email-verification.d.ts +1 -1
- package/dist/screens/login-email-verification.js +1 -1
- package/dist/screens/login-email-verification.js.map +1 -1
- package/dist/screens/login-id.d.ts +1 -1
- package/dist/screens/login-id.js +1 -1
- package/dist/screens/login-id.js.map +1 -1
- package/dist/screens/login-password.d.ts +1 -1
- package/dist/screens/login-password.js +1 -1
- package/dist/screens/login-password.js.map +1 -1
- package/dist/screens/login-passwordless-email-code.d.ts +3 -2
- package/dist/screens/login-passwordless-email-code.js +1 -1
- package/dist/screens/login-passwordless-email-code.js.map +1 -1
- package/dist/screens/login-passwordless-sms-otp.d.ts +3 -2
- package/dist/screens/login-passwordless-sms-otp.js +1 -1
- package/dist/screens/login-passwordless-sms-otp.js.map +1 -1
- package/dist/screens/login.d.ts +1 -1
- package/dist/screens/login.js +1 -1
- package/dist/screens/login.js.map +1 -1
- package/dist/screens/logout-aborted.d.ts +1 -1
- package/dist/screens/logout-aborted.js +1 -1
- package/dist/screens/logout-aborted.js.map +1 -1
- package/dist/screens/logout-complete.d.ts +1 -1
- package/dist/screens/logout-complete.js +1 -1
- package/dist/screens/logout-complete.js.map +1 -1
- package/dist/screens/logout.d.ts +1 -1
- package/dist/screens/logout.js +1 -1
- package/dist/screens/logout.js.map +1 -1
- package/dist/screens/mfa-begin-enroll-options.d.ts +1 -1
- package/dist/screens/mfa-begin-enroll-options.js +1 -1
- package/dist/screens/mfa-begin-enroll-options.js.map +1 -1
- package/dist/screens/mfa-country-codes.d.ts +1 -1
- package/dist/screens/mfa-country-codes.js +1 -1
- package/dist/screens/mfa-country-codes.js.map +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.d.ts +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.js +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -1
- package/dist/screens/mfa-email-challenge.d.ts +1 -1
- package/dist/screens/mfa-email-challenge.js +1 -1
- package/dist/screens/mfa-email-challenge.js.map +1 -1
- package/dist/screens/mfa-email-list.d.ts +1 -1
- package/dist/screens/mfa-email-list.js +1 -1
- package/dist/screens/mfa-email-list.js.map +1 -1
- package/dist/screens/mfa-enroll-result.d.ts +1 -1
- package/dist/screens/mfa-enroll-result.js +1 -1
- package/dist/screens/mfa-enroll-result.js.map +1 -1
- package/dist/screens/mfa-login-options.d.ts +1 -1
- package/dist/screens/mfa-login-options.js +1 -1
- package/dist/screens/mfa-login-options.js.map +1 -1
- package/dist/screens/mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/mfa-otp-challenge.js +1 -1
- package/dist/screens/mfa-otp-challenge.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-code.d.ts +3 -2
- package/dist/screens/mfa-otp-enrollment-code.js +1 -1
- package/dist/screens/mfa-otp-enrollment-code.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.d.ts +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.js +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/mfa-phone-challenge.js +1 -1
- package/dist/screens/mfa-phone-challenge.js.map +1 -1
- package/dist/screens/mfa-phone-enrollment.d.ts +1 -1
- package/dist/screens/mfa-phone-enrollment.js +1 -1
- package/dist/screens/mfa-phone-enrollment.js.map +1 -1
- package/dist/screens/mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/mfa-push-challenge-push.js +1 -1
- package/dist/screens/mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/mfa-push-enrollment-qr.d.ts +1 -1
- package/dist/screens/mfa-push-enrollment-qr.js +1 -1
- package/dist/screens/mfa-push-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-push-list.d.ts +1 -1
- package/dist/screens/mfa-push-list.js +1 -1
- package/dist/screens/mfa-push-list.js.map +1 -1
- package/dist/screens/mfa-push-welcome.d.ts +1 -1
- package/dist/screens/mfa-push-welcome.js +1 -1
- package/dist/screens/mfa-push-welcome.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.js +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge.js +1 -1
- package/dist/screens/mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.js +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/mfa-sms-challenge.js +1 -1
- package/dist/screens/mfa-sms-challenge.js.map +1 -1
- package/dist/screens/mfa-sms-enrollment.d.ts +1 -1
- package/dist/screens/mfa-sms-enrollment.js +1 -1
- package/dist/screens/mfa-sms-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-list.d.ts +1 -1
- package/dist/screens/mfa-sms-list.js +1 -1
- package/dist/screens/mfa-sms-list.js.map +1 -1
- package/dist/screens/mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/mfa-voice-challenge.js +1 -1
- package/dist/screens/mfa-voice-challenge.js.map +1 -1
- package/dist/screens/mfa-voice-enrollment.d.ts +1 -1
- package/dist/screens/mfa-voice-enrollment.js +1 -1
- package/dist/screens/mfa-voice-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.js +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.d.ts +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.js +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -1
- package/dist/screens/mfa-webauthn-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-error.js +1 -1
- package/dist/screens/mfa-webauthn-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.js +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.js +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.js +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.js +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.js +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -1
- package/dist/screens/organization-picker.d.ts +1 -1
- package/dist/screens/organization-picker.js +1 -1
- package/dist/screens/organization-picker.js.map +1 -1
- package/dist/screens/organization-selection.d.ts +1 -1
- package/dist/screens/organization-selection.js +1 -1
- package/dist/screens/organization-selection.js.map +1 -1
- package/dist/screens/passkey-enrollment-local.d.ts +1 -1
- package/dist/screens/passkey-enrollment-local.js +1 -1
- package/dist/screens/passkey-enrollment-local.js.map +1 -1
- package/dist/screens/passkey-enrollment.d.ts +1 -1
- package/dist/screens/passkey-enrollment.js +1 -1
- package/dist/screens/passkey-enrollment.js.map +1 -1
- package/dist/screens/phone-identifier-challenge.d.ts +1 -1
- package/dist/screens/phone-identifier-challenge.js +1 -1
- package/dist/screens/phone-identifier-challenge.js.map +1 -1
- package/dist/screens/phone-identifier-enrollment.d.ts +1 -1
- package/dist/screens/phone-identifier-enrollment.js +1 -1
- package/dist/screens/phone-identifier-enrollment.js.map +1 -1
- package/dist/screens/redeem-ticket.d.ts +1 -1
- package/dist/screens/redeem-ticket.js +1 -1
- package/dist/screens/redeem-ticket.js.map +1 -1
- package/dist/screens/reset-password-email.d.ts +1 -1
- package/dist/screens/reset-password-email.js +1 -1
- package/dist/screens/reset-password-email.js.map +1 -1
- package/dist/screens/reset-password-error.d.ts +1 -1
- package/dist/screens/reset-password-error.js +1 -1
- package/dist/screens/reset-password-error.js.map +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.js +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/reset-password-request.d.ts +1 -1
- package/dist/screens/reset-password-request.js +1 -1
- package/dist/screens/reset-password-request.js.map +1 -1
- package/dist/screens/reset-password-success.d.ts +1 -1
- package/dist/screens/reset-password-success.js +1 -1
- package/dist/screens/reset-password-success.js.map +1 -1
- package/dist/screens/reset-password.d.ts +1 -1
- package/dist/screens/reset-password.js +1 -1
- package/dist/screens/reset-password.js.map +1 -1
- package/dist/screens/signup-id.d.ts +1 -1
- package/dist/screens/signup-id.js +1 -1
- package/dist/screens/signup-id.js.map +1 -1
- package/dist/screens/signup-password.d.ts +1 -1
- package/dist/screens/signup-password.js +1 -1
- package/dist/screens/signup-password.js.map +1 -1
- package/dist/screens/signup.d.ts +1 -1
- package/dist/screens/signup.js +1 -1
- package/dist/screens/signup.js.map +1 -1
- package/dist/telemetry.js +1 -1
- package/package.json +2 -2
- package/dist/export/getting-started.d.ts +0 -282
package/README.md
CHANGED
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
|
-
Developers using Auth0
|
|
20
|
+
Developers using Auth0's Universal Login can use this React SDK to customize screens like login, signup, or reset password. It provides hooks, context, and utilities to build flexible, type-safe experiences that match your brand and deliver a seamless user experience.
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
> [!CAUTION]
|
|
25
|
-
>
|
|
26
|
-
> This feature is still in **Early Access**.
|
|
27
|
-
|
|
28
24
|
<a id="documentation"></a>
|
|
29
25
|
## 📚 Documentation
|
|
30
26
|
|
|
@@ -213,7 +209,7 @@ Refer to our [API Reference](#api-reference) for the full list of available type
|
|
|
213
209
|
| 68 |mfa-webauthn | mfa-webauthn-platform-challenge | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.mfa-webauthn-platform-challenge.html) |
|
|
214
210
|
| 69 |mfa-webauthn | mfa-webauthn-enrollment-success | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.mfa-webauthn-enrollment-success.html) |
|
|
215
211
|
| 70 |mfa-webauthn | mfa-webauthn-change-key-nickname | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.mfa-webauthn-change-key-nickname.html) |
|
|
216
|
-
| 71 |mfa-webauthn | mfa-webauthn-not-available-error | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/
|
|
212
|
+
| 71 |mfa-webauthn | mfa-webauthn-not-available-error | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.mfa-webauthn-not-available-error.html) |
|
|
217
213
|
| 72 |reset-password | reset-password-mfa-webauthn-platform-challenge | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.reset-password-mfa-webauthn-platform-challenge.html) |
|
|
218
214
|
| 73 |reset-password | reset-password-mfa-webauthn-roaming-challenge | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.reset-password-mfa-webauthn-roaming-challenge.html) |
|
|
219
215
|
| 74 |consent | consent | [Link](https://auth0.github.io/universal-login/auth0-acul-react/modules/Screens.consent.html) |
|
|
@@ -311,10 +307,6 @@ To provide feedback or report a bug, please [raise an issue on our issue tracker
|
|
|
311
307
|
|
|
312
308
|
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.
|
|
313
309
|
|
|
314
|
-
### Legal
|
|
315
|
-
|
|
316
|
-
**Early Access.** This SDK and its associated product are made available only in Early Access ("EA") format and are governed by the Free Trial terms of the [Okta Master Subscription Agreement](https://www.okta.com/agreements/#mastersubscriptionagreement). If Okta elects to make a version of this SDK and its associated product Generally Available ("GA"), such GA version may have different pricing, product and feature configurations, and use of the GA product and SDK will be subject to the standard terms of the Agreement (or other such titled written or electronic agreement addressing the same subject matter) between Okta and Customer."
|
|
317
|
-
|
|
318
310
|
---
|
|
319
311
|
|
|
320
312
|
<p align="center">
|
package/dist/export/hooks.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { usePasswordValidation, useUsernameValidation, useResend, useMfaPolling, useErrors, useAuth0Themes, useCurrentScreen, useLoginIdentifiers, useSignupIdentifiers, usePasskeyAutofill, } from '../hooks';
|
|
1
|
+
export { usePasswordValidation, useUsernameValidation, useResend, useMfaPolling, useErrors, useAuth0Themes, useCurrentScreen, useChangeLanguage, useLoginIdentifiers, useSignupIdentifiers, usePasskeyAutofill, } from '../hooks';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { type LanguageChangeOptions } from '@auth0/auth0-acul-js';
|
|
2
|
+
/**
|
|
3
|
+
* React hook that provides a function to change the language/locale.
|
|
4
|
+
*
|
|
5
|
+
* This hook returns a function that triggers a language change by submitting the new locale preference
|
|
6
|
+
* to the server with the 'change-language' action. The language change will cause the current screen
|
|
7
|
+
* to re-render with the new locale.
|
|
8
|
+
*
|
|
9
|
+
* ## Parameters
|
|
10
|
+
*
|
|
11
|
+
* The returned function accepts `LanguageChangeOptions`:
|
|
12
|
+
* - **`language`** (required) - Short language name (locale code) to be set (e.g., 'en', 'fr', 'es')
|
|
13
|
+
* - **`persist`** (required) - Persistence scope for the language preference (defaults to 'session')
|
|
14
|
+
*
|
|
15
|
+
* ## Key Points
|
|
16
|
+
*
|
|
17
|
+
* - The language must be one of the enabled locales configured in your Auth0 tenant
|
|
18
|
+
* - The screen will automatically re-render with the new language after submission
|
|
19
|
+
* - The function returns a promise that resolves when the form submission is complete
|
|
20
|
+
*
|
|
21
|
+
* @returns {(options: LanguageChangeOptions) => Promise<void>} Function to change the language
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Basic language change
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { useChangeLanguage } from '@auth0/auth0-acul-react';
|
|
27
|
+
*
|
|
28
|
+
* const LanguageSelector = () => {
|
|
29
|
+
* const changeLanguage = useChangeLanguage();
|
|
30
|
+
*
|
|
31
|
+
* const handleLanguageChange = async (lang: string) => {
|
|
32
|
+
* await changeLanguage({
|
|
33
|
+
* language: lang,
|
|
34
|
+
* persist: 'session'
|
|
35
|
+
* });
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* return (
|
|
39
|
+
* <div>
|
|
40
|
+
* <button onClick={() => handleLanguageChange('en')}>English</button>
|
|
41
|
+
* <button onClick={() => handleLanguageChange('fr')}>Français</button>
|
|
42
|
+
* <button onClick={() => handleLanguageChange('es')}>Español</button>
|
|
43
|
+
* </div>
|
|
44
|
+
* );
|
|
45
|
+
* };
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* With tenant enabled locales
|
|
50
|
+
* ```tsx
|
|
51
|
+
* import { useChangeLanguage, useCurrentScreen } from '@auth0/auth0-acul-react';
|
|
52
|
+
*
|
|
53
|
+
* const LanguageSelector = () => {
|
|
54
|
+
* const changeLanguage = useChangeLanguage();
|
|
55
|
+
* const screenOptions = useCurrentScreen();
|
|
56
|
+
* const tenant = screenOptions?.tenant;
|
|
57
|
+
* const transaction = screenOptions?.transaction;
|
|
58
|
+
*
|
|
59
|
+
* const handleChangeLanguage = async (language: string) => {
|
|
60
|
+
* try {
|
|
61
|
+
* await changeLanguage({ language, persist: 'session' });
|
|
62
|
+
* } catch (error) {
|
|
63
|
+
* console.error('Failed to change language:', error);
|
|
64
|
+
* }
|
|
65
|
+
* };
|
|
66
|
+
*
|
|
67
|
+
* return (
|
|
68
|
+
* <>
|
|
69
|
+
* {tenant?.enabledLocales && (
|
|
70
|
+
* <div>
|
|
71
|
+
* <label htmlFor="language-select">
|
|
72
|
+
* Language
|
|
73
|
+
* </label>
|
|
74
|
+
* <select
|
|
75
|
+
* id="language-select"
|
|
76
|
+
* onChange={(e) => handleChangeLanguage(e.target.value)}
|
|
77
|
+
* defaultValue={transaction?.locale}
|
|
78
|
+
* >
|
|
79
|
+
* {tenant.enabledLocales.map((locale: string) => (
|
|
80
|
+
* <option key={locale} value={locale}>
|
|
81
|
+
* {locale.toUpperCase()}
|
|
82
|
+
* </option>
|
|
83
|
+
* ))}
|
|
84
|
+
* </select>
|
|
85
|
+
* </div>
|
|
86
|
+
* )}
|
|
87
|
+
* </>
|
|
88
|
+
* );
|
|
89
|
+
* };
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare const useChangeLanguage: () => ((options: LanguageChangeOptions) => Promise<void>);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-language.js","sources":["../../../src/hooks/common/change-language.ts"],"sourcesContent":["import { changeLanguage, type LanguageChangeOptions } from '@auth0/auth0-acul-js';\n\n/**\n * React hook that provides a function to change the language/locale.\n *\n * This hook returns a function that triggers a language change by submitting the new locale preference\n * to the server with the 'change-language' action. The language change will cause the current screen\n * to re-render with the new locale.\n *\n * ## Parameters\n *\n * The returned function accepts `LanguageChangeOptions`:\n * - **`language`** (required) - Short language name (locale code) to be set (e.g., 'en', 'fr', 'es')\n * - **`persist`** (required) - Persistence scope for the language preference (defaults to 'session')\n *\n * ## Key Points\n *\n * - The language must be one of the enabled locales configured in your Auth0 tenant\n * - The screen will automatically re-render with the new language after submission\n * - The function returns a promise that resolves when the form submission is complete\n *\n * @returns {(options: LanguageChangeOptions) => Promise<void>} Function to change the language\n *\n * @example\n * Basic language change\n * ```tsx\n * import { useChangeLanguage } from '@auth0/auth0-acul-react';\n *\n * const LanguageSelector = () => {\n * const changeLanguage = useChangeLanguage();\n *\n * const handleLanguageChange = async (lang: string) => {\n * await changeLanguage({\n * language: lang,\n * persist: 'session'\n * });\n * };\n *\n * return (\n * <div>\n * <button onClick={() => handleLanguageChange('en')}>English</button>\n * <button onClick={() => handleLanguageChange('fr')}>Français</button>\n * <button onClick={() => handleLanguageChange('es')}>Español</button>\n * </div>\n * );\n * };\n * ```\n *\n * @example\n * With tenant enabled locales\n * ```tsx\n * import { useChangeLanguage, useCurrentScreen } from '@auth0/auth0-acul-react';\n *\n * const LanguageSelector = () => {\n * const changeLanguage = useChangeLanguage();\n * const screenOptions = useCurrentScreen();\n * const tenant = screenOptions?.tenant;\n * const transaction = screenOptions?.transaction;\n *\n * const handleChangeLanguage = async (language: string) => {\n * try {\n * await changeLanguage({ language, persist: 'session' });\n * } catch (error) {\n * console.error('Failed to change language:', error);\n * }\n * };\n *\n * return (\n * <>\n * {tenant?.enabledLocales && (\n * <div>\n * <label htmlFor=\"language-select\">\n * Language\n * </label>\n * <select\n * id=\"language-select\"\n * onChange={(e) => handleChangeLanguage(e.target.value)}\n * defaultValue={transaction?.locale}\n * >\n * {tenant.enabledLocales.map((locale: string) => (\n * <option key={locale} value={locale}>\n * {locale.toUpperCase()}\n * </option>\n * ))}\n * </select>\n * </div>\n * )}\n * </>\n * );\n * };\n * ```\n */\nexport const useChangeLanguage = (): ((options: LanguageChangeOptions) => Promise<void>) => {\n return changeLanguage as (options: LanguageChangeOptions) => Promise<void>;\n};\n"],"names":["useChangeLanguage","changeLanguage"],"mappings":"sDA4FO,MAAMA,EAAoB,IACxBC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { useAuth0Themes } from './common/auth0-themes';
|
|
2
|
+
export { useChangeLanguage } from './common/change-language';
|
|
2
3
|
export { useCurrentScreen } from './common/current-screen';
|
|
3
4
|
export { errorManager, useErrors, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorType, type ErrorItem, } from './common/errors';
|
|
4
5
|
export { ContextHooks } from './context';
|
package/dist/index.d.ts
CHANGED
|
@@ -75,4 +75,4 @@ export { useMfaWebAuthnChangeKeyNickname } from './screens/mfa-webauthn-change-k
|
|
|
75
75
|
export { useConsent } from './screens/consent';
|
|
76
76
|
export { useResetPasswordMfaWebAuthnPlatformChallenge } from './screens/reset-password-mfa-webauthn-platform-challenge';
|
|
77
77
|
export { useResetPasswordMfaWebAuthnRoamingChallenge } from './screens/reset-password-mfa-webauthn-roaming-challenge';
|
|
78
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from './hooks';
|
|
78
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from './hooks';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./telemetry.js";export{useLoginId}from"./screens/login-id.js";export{useLoginPassword}from"./screens/login-password.js";export{useSignupId}from"./screens/signup-id.js";export{useSignupPassword}from"./screens/signup-password.js";export{useLoginPasswordlessEmailCode}from"./screens/login-passwordless-email-code.js";export{useLoginPasswordlessSmsOtp}from"./screens/login-passwordless-sms-otp.js";export{usePasskeyEnrollment}from"./screens/passkey-enrollment.js";export{usePasskeyEnrollmentLocal}from"./screens/passkey-enrollment-local.js";export{usePhoneIdentifierChallenge}from"./screens/phone-identifier-challenge.js";export{usePhoneIdentifierEnrollment}from"./screens/phone-identifier-enrollment.js";export{useEmailIdentifierChallenge}from"./screens/email-identifier-challenge.js";export{useInterstitialCaptcha}from"./screens/interstitial-captcha.js";export{useSignup}from"./screens/signup.js";export{useLogin}from"./screens/login.js";export{useResetPassword}from"./screens/reset-password.js";export{useResetPasswordRequest}from"./screens/reset-password-request.js";export{useResetPasswordEmail}from"./screens/reset-password-email.js";export{useResetPasswordError}from"./screens/reset-password-error.js";export{useResetPasswordSuccess}from"./screens/reset-password-success.js";export{useMfaPushEnrollmentQr}from"./screens/mfa-push-enrollment-qr.js";export{useMfaPushList}from"./screens/mfa-push-list.js";export{useMfaPushWelcome}from"./screens/mfa-push-welcome.js";export{useMfaSmsEnrollment}from"./screens/mfa-sms-enrollment.js";export{useMfaBeginEnrollOptions}from"./screens/mfa-begin-enroll-options.js";export{useMfaSmsChallenge}from"./screens/mfa-sms-challenge.js";export{useMfaSmsList}from"./screens/mfa-sms-list.js";export{useMfaCountryCodes}from"./screens/mfa-country-codes.js";export{useMfaDetectBrowserCapabilities}from"./screens/mfa-detect-browser-capabilities.js";export{useMfaEmailChallenge}from"./screens/mfa-email-challenge.js";export{useMfaEmailList}from"./screens/mfa-email-list.js";export{useMfaEnrollResult}from"./screens/mfa-enroll-result.js";export{useMfaLoginOptions}from"./screens/mfa-login-options.js";export{useMfaPushChallengePush}from"./screens/mfa-push-challenge-push.js";export{useMfaOtpChallenge}from"./screens/mfa-otp-challenge.js";export{useMfaOtpEnrollmentQr}from"./screens/mfa-otp-enrollment-qr.js";export{useMfaOtpEnrollmentCode}from"./screens/mfa-otp-enrollment-code.js";export{useResetPasswordMfaPushChallengePush}from"./screens/reset-password-mfa-push-challenge-push.js";export{useResetPasswordMfaEmailChallenge}from"./screens/reset-password-mfa-email-challenge.js";export{useResetPasswordMfaSmsChallenge}from"./screens/reset-password-mfa-sms-challenge.js";export{useResetPasswordMfaOtpChallenge}from"./screens/reset-password-mfa-otp-challenge.js";export{useOrganizationSelection}from"./screens/organization-selection.js";export{useOrganizationPicker}from"./screens/organization-picker.js";export{useAcceptInvitation}from"./screens/accept-invitation.js";export{useCustomizedConsent}from"./screens/customized-consent.js";export{useMfaPhoneEnrollment}from"./screens/mfa-phone-enrollment.js";export{useMfaVoiceEnrollment}from"./screens/mfa-voice-enrollment.js";export{useMfaRecoveryCodeChallenge}from"./screens/mfa-recovery-code-challenge.js";export{useDeviceCodeActivationAllowed}from"./screens/device-code-activation-allowed.js";export{useDeviceCodeActivationDenied}from"./screens/device-code-activation-denied.js";export{useDeviceCodeActivation}from"./screens/device-code-activation.js";export{useMfaVoiceChallenge}from"./screens/mfa-voice-challenge.js";export{useResetPasswordMfaRecoveryCodeChallenge}from"./screens/reset-password-mfa-recovery-code-challenge.js";export{useResetPasswordMfaVoiceChallenge}from"./screens/reset-password-mfa-voice-challenge.js";export{useRedeemTicket}from"./screens/redeem-ticket.js";export{useDeviceCodeConfirmation}from"./screens/device-code-confirmation.js";export{useMfaPhoneChallenge}from"./screens/mfa-phone-challenge.js";export{useMfaRecoveryCodeEnrollment}from"./screens/mfa-recovery-code-enrollment.js";export{useResetPasswordMfaPhoneChallenge}from"./screens/reset-password-mfa-phone-challenge.js";export{useMfaRecoveryCodeChallengeNewCode}from"./screens/mfa-recovery-code-challenge-new-code.js";export{useLogout}from"./screens/logout.js";export{useLogoutAborted}from"./screens/logout-aborted.js";export{useLogoutComplete}from"./screens/logout-complete.js";export{useEmailOTPChallenge}from"./screens/email-otp-challenge.js";export{useEmailVerificationResult}from"./screens/email-verification-result.js";export{useLoginEmailVerification}from"./screens/login-email-verification.js";export{useMfaWebAuthnPlatformEnrollment}from"./screens/mfa-webauthn-platform-enrollment.js";export{useMfaWebAuthnError}from"./screens/mfa-webauthn-error.js";export{useMfaWebAuthnNotAvailableError}from"./screens/mfa-webauthn-not-available-error.js";export{useMfaWebAuthnRoamingEnrollment}from"./screens/mfa-webauthn-roaming-enrollment.js";export{useMfaWebAuthnRoamingChallenge}from"./screens/mfa-webauthn-roaming-challenge.js";export{useMfaWebAuthnPlatformChallenge}from"./screens/mfa-webauthn-platform-challenge.js";export{useMfaWebAuthnEnrollmentSuccess}from"./screens/mfa-webauthn-enrollment-success.js";export{useMfaWebAuthnChangeKeyNickname}from"./screens/mfa-webauthn-change-key-nickname.js";export{useConsent}from"./screens/consent.js";export{useResetPasswordMfaWebAuthnPlatformChallenge}from"./screens/reset-password-mfa-webauthn-platform-challenge.js";export{useResetPasswordMfaWebAuthnRoamingChallenge}from"./screens/reset-password-mfa-webauthn-roaming-challenge.js";export{useAuth0Themes}from"./hooks/common/auth0-themes.js";export{useCurrentScreen}from"./hooks/common/current-screen.js";export{useErrors}from"./hooks/common/errors.js";import"@auth0/auth0-acul-js";import"react";
|
|
1
|
+
import"./telemetry.js";export{useLoginId}from"./screens/login-id.js";export{useLoginPassword}from"./screens/login-password.js";export{useSignupId}from"./screens/signup-id.js";export{useSignupPassword}from"./screens/signup-password.js";export{useLoginPasswordlessEmailCode}from"./screens/login-passwordless-email-code.js";export{useLoginPasswordlessSmsOtp}from"./screens/login-passwordless-sms-otp.js";export{usePasskeyEnrollment}from"./screens/passkey-enrollment.js";export{usePasskeyEnrollmentLocal}from"./screens/passkey-enrollment-local.js";export{usePhoneIdentifierChallenge}from"./screens/phone-identifier-challenge.js";export{usePhoneIdentifierEnrollment}from"./screens/phone-identifier-enrollment.js";export{useEmailIdentifierChallenge}from"./screens/email-identifier-challenge.js";export{useInterstitialCaptcha}from"./screens/interstitial-captcha.js";export{useSignup}from"./screens/signup.js";export{useLogin}from"./screens/login.js";export{useResetPassword}from"./screens/reset-password.js";export{useResetPasswordRequest}from"./screens/reset-password-request.js";export{useResetPasswordEmail}from"./screens/reset-password-email.js";export{useResetPasswordError}from"./screens/reset-password-error.js";export{useResetPasswordSuccess}from"./screens/reset-password-success.js";export{useMfaPushEnrollmentQr}from"./screens/mfa-push-enrollment-qr.js";export{useMfaPushList}from"./screens/mfa-push-list.js";export{useMfaPushWelcome}from"./screens/mfa-push-welcome.js";export{useMfaSmsEnrollment}from"./screens/mfa-sms-enrollment.js";export{useMfaBeginEnrollOptions}from"./screens/mfa-begin-enroll-options.js";export{useMfaSmsChallenge}from"./screens/mfa-sms-challenge.js";export{useMfaSmsList}from"./screens/mfa-sms-list.js";export{useMfaCountryCodes}from"./screens/mfa-country-codes.js";export{useMfaDetectBrowserCapabilities}from"./screens/mfa-detect-browser-capabilities.js";export{useMfaEmailChallenge}from"./screens/mfa-email-challenge.js";export{useMfaEmailList}from"./screens/mfa-email-list.js";export{useMfaEnrollResult}from"./screens/mfa-enroll-result.js";export{useMfaLoginOptions}from"./screens/mfa-login-options.js";export{useMfaPushChallengePush}from"./screens/mfa-push-challenge-push.js";export{useMfaOtpChallenge}from"./screens/mfa-otp-challenge.js";export{useMfaOtpEnrollmentQr}from"./screens/mfa-otp-enrollment-qr.js";export{useMfaOtpEnrollmentCode}from"./screens/mfa-otp-enrollment-code.js";export{useResetPasswordMfaPushChallengePush}from"./screens/reset-password-mfa-push-challenge-push.js";export{useResetPasswordMfaEmailChallenge}from"./screens/reset-password-mfa-email-challenge.js";export{useResetPasswordMfaSmsChallenge}from"./screens/reset-password-mfa-sms-challenge.js";export{useResetPasswordMfaOtpChallenge}from"./screens/reset-password-mfa-otp-challenge.js";export{useOrganizationSelection}from"./screens/organization-selection.js";export{useOrganizationPicker}from"./screens/organization-picker.js";export{useAcceptInvitation}from"./screens/accept-invitation.js";export{useCustomizedConsent}from"./screens/customized-consent.js";export{useMfaPhoneEnrollment}from"./screens/mfa-phone-enrollment.js";export{useMfaVoiceEnrollment}from"./screens/mfa-voice-enrollment.js";export{useMfaRecoveryCodeChallenge}from"./screens/mfa-recovery-code-challenge.js";export{useDeviceCodeActivationAllowed}from"./screens/device-code-activation-allowed.js";export{useDeviceCodeActivationDenied}from"./screens/device-code-activation-denied.js";export{useDeviceCodeActivation}from"./screens/device-code-activation.js";export{useMfaVoiceChallenge}from"./screens/mfa-voice-challenge.js";export{useResetPasswordMfaRecoveryCodeChallenge}from"./screens/reset-password-mfa-recovery-code-challenge.js";export{useResetPasswordMfaVoiceChallenge}from"./screens/reset-password-mfa-voice-challenge.js";export{useRedeemTicket}from"./screens/redeem-ticket.js";export{useDeviceCodeConfirmation}from"./screens/device-code-confirmation.js";export{useMfaPhoneChallenge}from"./screens/mfa-phone-challenge.js";export{useMfaRecoveryCodeEnrollment}from"./screens/mfa-recovery-code-enrollment.js";export{useResetPasswordMfaPhoneChallenge}from"./screens/reset-password-mfa-phone-challenge.js";export{useMfaRecoveryCodeChallengeNewCode}from"./screens/mfa-recovery-code-challenge-new-code.js";export{useLogout}from"./screens/logout.js";export{useLogoutAborted}from"./screens/logout-aborted.js";export{useLogoutComplete}from"./screens/logout-complete.js";export{useEmailOTPChallenge}from"./screens/email-otp-challenge.js";export{useEmailVerificationResult}from"./screens/email-verification-result.js";export{useLoginEmailVerification}from"./screens/login-email-verification.js";export{useMfaWebAuthnPlatformEnrollment}from"./screens/mfa-webauthn-platform-enrollment.js";export{useMfaWebAuthnError}from"./screens/mfa-webauthn-error.js";export{useMfaWebAuthnNotAvailableError}from"./screens/mfa-webauthn-not-available-error.js";export{useMfaWebAuthnRoamingEnrollment}from"./screens/mfa-webauthn-roaming-enrollment.js";export{useMfaWebAuthnRoamingChallenge}from"./screens/mfa-webauthn-roaming-challenge.js";export{useMfaWebAuthnPlatformChallenge}from"./screens/mfa-webauthn-platform-challenge.js";export{useMfaWebAuthnEnrollmentSuccess}from"./screens/mfa-webauthn-enrollment-success.js";export{useMfaWebAuthnChangeKeyNickname}from"./screens/mfa-webauthn-change-key-nickname.js";export{useConsent}from"./screens/consent.js";export{useResetPasswordMfaWebAuthnPlatformChallenge}from"./screens/reset-password-mfa-webauthn-platform-challenge.js";export{useResetPasswordMfaWebAuthnRoamingChallenge}from"./screens/reset-password-mfa-webauthn-roaming-challenge.js";export{useAuth0Themes}from"./hooks/common/auth0-themes.js";export{useChangeLanguage}from"./hooks/common/change-language.js";export{useCurrentScreen}from"./hooks/common/current-screen.js";export{useErrors}from"./hooks/common/errors.js";import"@auth0/auth0-acul-js";import"react";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptInvitationMembers, CustomOptions } from '@auth0/auth0-acul-js/accept-invitation';
|
|
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").ScreenMembersOnAcceptInvitation, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const acceptInvitation: (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 useAcceptInvitation: () => AcceptInvitationMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/accept-invitation";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/accept-invitation";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:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.acceptInvitation(o)),d=()=>e(()=>n,[]);export{k as acceptInvitation,d as useAcceptInvitation,i as useBranding,h as useClient,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=accept-invitation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accept-invitation.js","sources":["../../src/screens/accept-invitation.tsx"],"sourcesContent":["import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n AcceptInvitationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/accept-invitation';\n\n// Register the singleton instance of AcceptInvitation\nconst instance = registerScreen<AcceptInvitationMembers>(AcceptInvitation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<AcceptInvitationMembers>(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 acceptInvitation = (payload?: CustomOptions) =>\n withError(instance.acceptInvitation(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of AcceptInvitation\nexport const useAcceptInvitation = (): AcceptInvitationMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","AcceptInvitation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","acceptInvitation","payload","useAcceptInvitation","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"accept-invitation.js","sources":["../../src/screens/accept-invitation.tsx"],"sourcesContent":["import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n AcceptInvitationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/accept-invitation';\n\n// Register the singleton instance of AcceptInvitation\nconst instance = registerScreen<AcceptInvitationMembers>(AcceptInvitation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<AcceptInvitationMembers>(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 acceptInvitation = (payload?: CustomOptions) =>\n withError(instance.acceptInvitation(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of AcceptInvitation\nexport const useAcceptInvitation = (): AcceptInvitationMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","AcceptInvitation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","acceptInvitation","payload","useAcceptInvitation","useMemo"],"mappings":"mfAaA,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,EAAoBC,GAC/Bd,EAAUH,EAASgB,iBAAiBC,IAMzBC,EAAsB,IAA+BC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent
|
|
|
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").ScreenMembersOnConsent, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const deny: (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 useConsent: () => ConsentMembers;
|
package/dist/screens/consent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/consent";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:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/consent";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.accept(o)),d=o=>m(n.deny(o)),l=()=>e(()=>n,[]);export{k as accept,d as deny,h as useBranding,i as useClient,l as useConsent,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=consent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent.js","sources":["../../src/screens/consent.tsx"],"sourcesContent":["import Consent from '@auth0/auth0-acul-js/consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent';\n\n// Register the singleton instance of Consent\nconst instance = registerScreen<ConsentMembers>(Consent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ConsentMembers>(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 accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Consent\nexport const useConsent = (): ConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Consent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useConsent","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"consent.js","sources":["../../src/screens/consent.tsx"],"sourcesContent":["import Consent from '@auth0/auth0-acul-js/consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent';\n\n// Register the singleton instance of Consent\nconst instance = registerScreen<ConsentMembers>(Consent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ConsentMembers>(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 accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Consent\nexport const useConsent = (): ConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Consent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useConsent","useMemo"],"mappings":"yeAUA,MAAMA,EAAWC,EAA+BC,IAG1CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA6BN,IACpCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA4Bd,EAAUH,EAASgB,OAAOC,IAChEC,EAAQD,GAA4Bd,EAAUH,EAASkB,KAAKD,IAM5DE,EAAa,IAAsBC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { CustomizedConsentMembers, 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").ScreenMembersOnCustomizedConsent, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const deny: (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 useCustomizedConsent: () => CustomizedConsentMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/customized-consent";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:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/customized-consent";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.accept(o)),d=o=>m(n.deny(o)),l=()=>e(()=>n,[]);export{k as accept,d as deny,h as useBranding,i as useClient,l as useCustomizedConsent,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=customized-consent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customized-consent.js","sources":["../../src/screens/customized-consent.tsx"],"sourcesContent":["import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n CustomizedConsentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/customized-consent';\n\n// Register the singleton instance of CustomizedConsent\nconst instance = registerScreen<CustomizedConsentMembers>(CustomizedConsent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<CustomizedConsentMembers>(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 accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of CustomizedConsent\nexport const useCustomizedConsent = (): CustomizedConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","CustomizedConsent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useCustomizedConsent","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"customized-consent.js","sources":["../../src/screens/customized-consent.tsx"],"sourcesContent":["import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n CustomizedConsentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/customized-consent';\n\n// Register the singleton instance of CustomizedConsent\nconst instance = registerScreen<CustomizedConsentMembers>(CustomizedConsent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<CustomizedConsentMembers>(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 accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of CustomizedConsent\nexport const useCustomizedConsent = (): CustomizedConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","CustomizedConsent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useCustomizedConsent","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,EAAUC,GAA4Bd,EAAUH,EAASgB,OAAOC,IAChEC,EAAQD,GAA4Bd,EAAUH,EAASkB,KAAKD,IAM5DE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';
|
|
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
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useDeviceCodeActivationAllowed: () => DeviceCodeActivationAllowedMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/device-code-activation-allowed";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/device-code-activation-allowed";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";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:a,useTenant:m,useBranding:u,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:g}=n,j=()=>o(()=>t,[]);export{u as useBranding,c as useClient,j as useDeviceCodeActivationAllowed,i as useOrganization,h as usePrompt,p as useScreen,m as useTenant,f as useTransaction,g as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=device-code-activation-allowed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation-allowed.js","sources":["../../src/screens/device-code-activation-allowed.tsx"],"sourcesContent":["import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';\n\n// Register the singleton instance of DeviceCodeActivationAllowed\nconst instance = registerScreen<DeviceCodeActivationAllowedMembers>(DeviceCodeActivationAllowed)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationAllowedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationAllowed\nexport const useDeviceCodeActivationAllowed = (): DeviceCodeActivationAllowedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationAllowed","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationAllowed","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-code-activation-allowed.js","sources":["../../src/screens/device-code-activation-allowed.tsx"],"sourcesContent":["import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';\n\n// Register the singleton instance of DeviceCodeActivationAllowed\nconst instance = registerScreen<DeviceCodeActivationAllowedMembers>(DeviceCodeActivationAllowed)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationAllowedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationAllowed\nexport const useDeviceCodeActivationAllowed = (): DeviceCodeActivationAllowedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationAllowed","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationAllowed","useMemo"],"mappings":"ucASA,MAAMA,EAAWC,EAAmDC,GAG9DC,EAAU,IAAIC,EAAiDJ,IACxDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAiC,IAC5CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';
|
|
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
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useDeviceCodeActivationDenied: () => DeviceCodeActivationDeniedMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/device-code-activation-denied";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/device-code-activation-denied";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";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:a,useTenant:m,useBranding:u,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:g}=n,d=()=>o(()=>t,[]);export{u as useBranding,c as useClient,d as useDeviceCodeActivationDenied,i as useOrganization,h as usePrompt,p as useScreen,m as useTenant,f as useTransaction,g as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=device-code-activation-denied.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation-denied.js","sources":["../../src/screens/device-code-activation-denied.tsx"],"sourcesContent":["import DeviceCodeActivationDenied from '@auth0/auth0-acul-js/device-code-activation-denied';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';\n\n// Register the singleton instance of DeviceCodeActivationDenied\nconst instance = registerScreen<DeviceCodeActivationDeniedMembers>(DeviceCodeActivationDenied)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationDeniedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationDenied\nexport const useDeviceCodeActivationDenied = (): DeviceCodeActivationDeniedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationDenied","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationDenied","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-code-activation-denied.js","sources":["../../src/screens/device-code-activation-denied.tsx"],"sourcesContent":["import DeviceCodeActivationDenied from '@auth0/auth0-acul-js/device-code-activation-denied';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';\n\n// Register the singleton instance of DeviceCodeActivationDenied\nconst instance = registerScreen<DeviceCodeActivationDeniedMembers>(DeviceCodeActivationDenied)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationDeniedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationDenied\nexport const useDeviceCodeActivationDenied = (): DeviceCodeActivationDeniedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationDenied","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationDenied","useMemo"],"mappings":"scASA,MAAMA,EAAWC,EAAkDC,GAG7DC,EAAU,IAAIC,EAAgDJ,IACvDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAgC,IAC3CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DeviceCodeActivationMembers, ContinueOptions } from '@auth0/auth0-acul-js/device-code-activation';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
5
5
|
export declare const useDeviceCodeActivation: () => DeviceCodeActivationMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/device-code-activation";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:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/device-code-activation";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:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.continue(o)),d=()=>e(()=>n,[]);export{k as continueMethod,i as useBranding,h as useClient,d as useDeviceCodeActivation,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=device-code-activation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation.js","sources":["../../src/screens/device-code-activation.tsx"],"sourcesContent":["import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeActivationMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/device-code-activation';\n\n// Register the singleton instance of DeviceCodeActivation\nconst instance = registerScreen<DeviceCodeActivationMembers>(DeviceCodeActivation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationMembers>(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 DeviceCodeActivation\nexport const useDeviceCodeActivation = (): DeviceCodeActivationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useDeviceCodeActivation","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-code-activation.js","sources":["../../src/screens/device-code-activation.tsx"],"sourcesContent":["import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeActivationMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/device-code-activation';\n\n// Register the singleton instance of DeviceCodeActivation\nconst instance = registerScreen<DeviceCodeActivationMembers>(DeviceCodeActivation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationMembers>(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 DeviceCodeActivation\nexport const useDeviceCodeActivation = (): DeviceCodeActivationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useDeviceCodeActivation","useMemo"],"mappings":"wfAaA,MAAMA,EAAWC,EAA4CC,IAGvDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA0CN,IACjDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAM3EE,EAA0B,IACrCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { DeviceCodeConfirmationMembers, CustomOptions } from '@auth0/auth0-
|
|
|
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").ScreenMembersOnDeviceCodeConfirmation, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const confirm: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const cancel: (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 useDeviceCodeConfirmation: () => DeviceCodeConfirmationMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/device-code-confirmation";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/device-code-confirmation";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:i,useClient:h,useOrganization:f,usePrompt:p,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=o=>m(n.confirm(o)),d=o=>m(n.cancel(o)),l=()=>e(()=>n,[]);export{d as cancel,k as confirm,i as useBranding,h as useClient,l as useDeviceCodeConfirmation,f as useOrganization,p as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=device-code-confirmation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-confirmation.js","sources":["../../src/screens/device-code-confirmation.tsx"],"sourcesContent":["import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeConfirmationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/device-code-confirmation';\n\n// Register the singleton instance of DeviceCodeConfirmation\nconst instance = registerScreen<DeviceCodeConfirmationMembers>(DeviceCodeConfirmation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeConfirmationMembers>(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 confirm = (payload?: CustomOptions) => withError(instance.confirm(payload));\nexport const cancel = (payload?: CustomOptions) => withError(instance.cancel(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeConfirmation\nexport const useDeviceCodeConfirmation = (): DeviceCodeConfirmationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeConfirmation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirm","payload","cancel","useDeviceCodeConfirmation","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-code-confirmation.js","sources":["../../src/screens/device-code-confirmation.tsx"],"sourcesContent":["import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeConfirmationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/device-code-confirmation';\n\n// Register the singleton instance of DeviceCodeConfirmation\nconst instance = registerScreen<DeviceCodeConfirmationMembers>(DeviceCodeConfirmation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeConfirmationMembers>(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 confirm = (payload?: CustomOptions) => withError(instance.confirm(payload));\nexport const cancel = (payload?: CustomOptions) => withError(instance.cancel(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeConfirmation\nexport const useDeviceCodeConfirmation = (): DeviceCodeConfirmationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeConfirmation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirm","payload","cancel","useDeviceCodeConfirmation","useMemo"],"mappings":"0fAaA,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,EAAWC,GAA4Bd,EAAUH,EAASgB,QAAQC,IAClEC,EAAUD,GAA4Bd,EAAUH,EAASkB,OAAOD,IAMhEE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -4,5 +4,5 @@ export declare const submitEmailChallenge: (payload: EmailChallengeOptions) => v
|
|
|
4
4
|
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
6
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
7
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
8
8
|
export declare const useEmailIdentifierChallenge: () => EmailIdentifierChallengeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/email-identifier-challenge";import{useMemo as
|
|
1
|
+
import e from"@auth0/auth0-acul-js/email-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:l,useUntrustedData:j}=u,d=e=>m(n.submitEmailChallenge(e)),x=e=>m(n.resendCode(e)),k=e=>m(n.returnToPrevious(e)),C=()=>o(()=>n,[]);export{x as resendCode,k as returnToPrevious,d as submitEmailChallenge,h as useBranding,c as useClient,C as useEmailIdentifierChallenge,p as useOrganization,f as usePrompt,g as useScreen,i as useTenant,l as useTransaction,j as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=email-identifier-challenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-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 EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(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 submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(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 EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitEmailChallenge","payload","resendCode","returnToPrevious","useEmailIdentifierChallenge","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-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 EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(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 submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(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 EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitEmailChallenge","payload","resendCode","returnToPrevious","useEmailIdentifierChallenge","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,IASzBG,EAA8B,IACzCC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const submitCode: (options: OtpCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (options?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
7
|
export declare const useEmailOTPChallenge: () => EmailOTPChallengeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/email-otp-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:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/email-otp-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,x=e=>m(n.submitCode(e)),k=e=>m(n.resendCode(e)),l=()=>o(()=>n,[]);export{k as resendCode,x as submitCode,h as useBranding,i as useClient,l as useEmailOTPChallenge,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,d as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=email-otp-challenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-otp-challenge.js","sources":["../../src/screens/email-otp-challenge.tsx"],"sourcesContent":["import EmailOTPChallenge from '@auth0/auth0-acul-js/email-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailOTPChallengeMembers,\n OtpCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-otp-challenge';\n\n// Register the singleton instance of EmailOTPChallenge\nconst instance = registerScreen<EmailOTPChallengeMembers>(EmailOTPChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailOTPChallengeMembers>(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 submitCode = (options: OtpCodeOptions) => withError(instance.submitCode(options));\nexport const resendCode = (options?: CustomOptions) => withError(instance.resendCode(options));\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 EmailOTPChallenge\nexport const useEmailOTPChallenge = (): EmailOTPChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailOTPChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitCode","options","resendCode","useEmailOTPChallenge","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-otp-challenge.js","sources":["../../src/screens/email-otp-challenge.tsx"],"sourcesContent":["import EmailOTPChallenge from '@auth0/auth0-acul-js/email-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailOTPChallengeMembers,\n OtpCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-otp-challenge';\n\n// Register the singleton instance of EmailOTPChallenge\nconst instance = registerScreen<EmailOTPChallengeMembers>(EmailOTPChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailOTPChallengeMembers>(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 submitCode = (options: OtpCodeOptions) => withError(instance.submitCode(options));\nexport const resendCode = (options?: CustomOptions) => withError(instance.resendCode(options));\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 EmailOTPChallenge\nexport const useEmailOTPChallenge = (): EmailOTPChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailOTPChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitCode","options","resendCode","useEmailOTPChallenge","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,EAAcC,GAA4Bd,EAAUH,EAASgB,WAAWC,IACxEC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IASxEE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';
|
|
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").ScreenMembersOnEmailVerificationResult, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useEmailVerificationResult: () => EmailVerificationResultMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/email-verification-result";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/email-verification-result";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";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:g}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useEmailVerificationResult,i as useOrganization,h as usePrompt,p as useScreen,u as useTenant,f as useTransaction,g as useUntrustedData,m as useUser};
|
|
2
2
|
//# sourceMappingURL=email-verification-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-verification-result.js","sources":["../../src/screens/email-verification-result.tsx"],"sourcesContent":["import EmailVerificationResult from '@auth0/auth0-acul-js/email-verification-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';\n\n// Register the singleton instance of EmailVerificationResult\nconst instance = registerScreen<EmailVerificationResultMembers>(EmailVerificationResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<EmailVerificationResultMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailVerificationResult\nexport const useEmailVerificationResult = (): EmailVerificationResultMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailVerificationResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useEmailVerificationResult","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-verification-result.js","sources":["../../src/screens/email-verification-result.tsx"],"sourcesContent":["import EmailVerificationResult from '@auth0/auth0-acul-js/email-verification-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';\n\n// Register the singleton instance of EmailVerificationResult\nconst instance = registerScreen<EmailVerificationResultMembers>(EmailVerificationResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<EmailVerificationResultMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailVerificationResult\nexport const useEmailVerificationResult = (): EmailVerificationResultMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailVerificationResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useEmailVerificationResult","useMemo"],"mappings":"kcASA,MAAMA,EAAWC,EAA+CC,GAG1DC,EAAU,IAAIC,EAA6CJ,IACpDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAA6B,IACxCC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';
|
|
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
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useInterstitialCaptcha: () => InterstitialCaptchaMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/interstitial-captcha";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/interstitial-captcha";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";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:a,useTenant:m,useBranding:u,useClient:c,useOrganization:h,usePrompt:i,useScreen:p,useTransaction:f,useUntrustedData:g}=n,j=()=>o(()=>t,[]);export{u as useBranding,c as useClient,j as useInterstitialCaptcha,h as useOrganization,i as usePrompt,p as useScreen,m as useTenant,f as useTransaction,g as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=interstitial-captcha.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interstitial-captcha.js","sources":["../../src/screens/interstitial-captcha.tsx"],"sourcesContent":["import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';\n\n// Register the singleton instance of InterstitialCaptcha\nconst instance = registerScreen<InterstitialCaptchaMembers>(InterstitialCaptcha)!;\n\n// Context hooks\nconst factory = new ContextHooks<InterstitialCaptchaMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of InterstitialCaptcha\nexport const useInterstitialCaptcha = (): InterstitialCaptchaMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","InterstitialCaptcha","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useInterstitialCaptcha","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"interstitial-captcha.js","sources":["../../src/screens/interstitial-captcha.tsx"],"sourcesContent":["import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';\n\n// Register the singleton instance of InterstitialCaptcha\nconst instance = registerScreen<InterstitialCaptchaMembers>(InterstitialCaptcha)!;\n\n// Context hooks\nconst factory = new ContextHooks<InterstitialCaptchaMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of InterstitialCaptcha\nexport const useInterstitialCaptcha = (): InterstitialCaptchaMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","InterstitialCaptcha","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useInterstitialCaptcha","useMemo"],"mappings":"6bASA,MAAMA,EAAWC,EAA2CC,GAGtDC,EAAU,IAAIC,EAAyCJ,IAChDK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAyB,IAAkCC,EAAQ,IAAMf,EAAU"}
|