@auth0/auth0-acul-react 1.0.0-alpha.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/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/export/getting-started.d.ts +336 -0
- package/dist/export/hooks.d.ts +1 -0
- package/dist/export/index.d.ts +6 -0
- package/dist/export/screens.d.ts +76 -0
- package/dist/hooks/common/auth0-themes.d.ts +48 -0
- package/dist/hooks/common/auth0-themes.js +2 -0
- package/dist/hooks/common/auth0-themes.js.map +1 -0
- package/dist/hooks/common/current-screen.d.ts +75 -0
- package/dist/hooks/common/current-screen.js +2 -0
- package/dist/hooks/common/current-screen.js.map +1 -0
- package/dist/hooks/common/errors.d.ts +103 -0
- package/dist/hooks/common/errors.js +2 -0
- package/dist/hooks/common/errors.js.map +1 -0
- package/dist/hooks/context/index.d.ts +120 -0
- package/dist/hooks/context/index.js +2 -0
- package/dist/hooks/context/index.js.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/utility/login-identifiers.d.ts +26 -0
- package/dist/hooks/utility/login-identifiers.js +2 -0
- package/dist/hooks/utility/login-identifiers.js.map +1 -0
- package/dist/hooks/utility/polling-manager.d.ts +93 -0
- package/dist/hooks/utility/polling-manager.js +2 -0
- package/dist/hooks/utility/polling-manager.js.map +1 -0
- package/dist/hooks/utility/resend-manager.d.ts +74 -0
- package/dist/hooks/utility/resend-manager.js +2 -0
- package/dist/hooks/utility/resend-manager.js.map +1 -0
- package/dist/hooks/utility/signup-identifiers.d.ts +34 -0
- package/dist/hooks/utility/signup-identifiers.js +2 -0
- package/dist/hooks/utility/signup-identifiers.js.map +1 -0
- package/dist/hooks/utility/validate-password.d.ts +36 -0
- package/dist/hooks/utility/validate-password.js +2 -0
- package/dist/hooks/utility/validate-password.js.map +1 -0
- package/dist/hooks/utility/validate-username.d.ts +58 -0
- package/dist/hooks/utility/validate-username.js +2 -0
- package/dist/hooks/utility/validate-username.js.map +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/screens/accept-invitation.d.ts +5 -0
- package/dist/screens/accept-invitation.js +2 -0
- package/dist/screens/accept-invitation.js.map +1 -0
- package/dist/screens/consent.d.ts +6 -0
- package/dist/screens/consent.js +2 -0
- package/dist/screens/consent.js.map +1 -0
- package/dist/screens/customized-consent.d.ts +6 -0
- package/dist/screens/customized-consent.js +2 -0
- package/dist/screens/customized-consent.js.map +1 -0
- package/dist/screens/device-code-activation-allowed.d.ts +4 -0
- package/dist/screens/device-code-activation-allowed.js +2 -0
- package/dist/screens/device-code-activation-allowed.js.map +1 -0
- package/dist/screens/device-code-activation-denied.d.ts +4 -0
- package/dist/screens/device-code-activation-denied.js +2 -0
- package/dist/screens/device-code-activation-denied.js.map +1 -0
- package/dist/screens/device-code-activation.d.ts +5 -0
- package/dist/screens/device-code-activation.js +2 -0
- package/dist/screens/device-code-activation.js.map +1 -0
- package/dist/screens/device-code-confirmation.d.ts +6 -0
- package/dist/screens/device-code-confirmation.js +2 -0
- package/dist/screens/device-code-confirmation.js.map +1 -0
- package/dist/screens/email-identifier-challenge.d.ts +8 -0
- package/dist/screens/email-identifier-challenge.js +2 -0
- package/dist/screens/email-identifier-challenge.js.map +1 -0
- package/dist/screens/email-otp-challenge.d.ts +7 -0
- package/dist/screens/email-otp-challenge.js +2 -0
- package/dist/screens/email-otp-challenge.js.map +1 -0
- package/dist/screens/email-verification-result.d.ts +4 -0
- package/dist/screens/email-verification-result.js +2 -0
- package/dist/screens/email-verification-result.js.map +1 -0
- package/dist/screens/interstitial-captcha.d.ts +4 -0
- package/dist/screens/interstitial-captcha.js +2 -0
- package/dist/screens/interstitial-captcha.js.map +1 -0
- package/dist/screens/login-email-verification.d.ts +7 -0
- package/dist/screens/login-email-verification.js +2 -0
- package/dist/screens/login-email-verification.js.map +1 -0
- package/dist/screens/login-id.d.ts +9 -0
- package/dist/screens/login-id.js +2 -0
- package/dist/screens/login-id.js.map +1 -0
- package/dist/screens/login-password.d.ts +6 -0
- package/dist/screens/login-password.js +2 -0
- package/dist/screens/login-password.js.map +1 -0
- package/dist/screens/login-passwordless-email-code.d.ts +7 -0
- package/dist/screens/login-passwordless-email-code.js +2 -0
- package/dist/screens/login-passwordless-email-code.js.map +1 -0
- package/dist/screens/login-passwordless-sms-otp.d.ts +7 -0
- package/dist/screens/login-passwordless-sms-otp.js +2 -0
- package/dist/screens/login-passwordless-sms-otp.js.map +1 -0
- package/dist/screens/login.d.ts +8 -0
- package/dist/screens/login.js +2 -0
- package/dist/screens/login.js.map +1 -0
- package/dist/screens/logout-aborted.d.ts +4 -0
- package/dist/screens/logout-aborted.js +2 -0
- package/dist/screens/logout-aborted.js.map +1 -0
- package/dist/screens/logout-complete.d.ts +4 -0
- package/dist/screens/logout-complete.js +2 -0
- package/dist/screens/logout-complete.js.map +1 -0
- package/dist/screens/logout.d.ts +5 -0
- package/dist/screens/logout.js +2 -0
- package/dist/screens/logout.js.map +1 -0
- package/dist/screens/mfa-begin-enroll-options.d.ts +5 -0
- package/dist/screens/mfa-begin-enroll-options.js +2 -0
- package/dist/screens/mfa-begin-enroll-options.js.map +1 -0
- package/dist/screens/mfa-country-codes.d.ts +6 -0
- package/dist/screens/mfa-country-codes.js +2 -0
- package/dist/screens/mfa-country-codes.js.map +1 -0
- package/dist/screens/mfa-detect-browser-capabilities.d.ts +5 -0
- package/dist/screens/mfa-detect-browser-capabilities.js +2 -0
- package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -0
- package/dist/screens/mfa-email-challenge.d.ts +8 -0
- package/dist/screens/mfa-email-challenge.js +2 -0
- package/dist/screens/mfa-email-challenge.js.map +1 -0
- package/dist/screens/mfa-email-list.d.ts +6 -0
- package/dist/screens/mfa-email-list.js +2 -0
- package/dist/screens/mfa-email-list.js.map +1 -0
- package/dist/screens/mfa-enroll-result.d.ts +4 -0
- package/dist/screens/mfa-enroll-result.js +2 -0
- package/dist/screens/mfa-enroll-result.js.map +1 -0
- package/dist/screens/mfa-login-options.d.ts +5 -0
- package/dist/screens/mfa-login-options.js +2 -0
- package/dist/screens/mfa-login-options.js.map +1 -0
- package/dist/screens/mfa-otp-challenge.d.ts +6 -0
- package/dist/screens/mfa-otp-challenge.js +2 -0
- package/dist/screens/mfa-otp-challenge.js.map +1 -0
- package/dist/screens/mfa-otp-enrollment-code.d.ts +6 -0
- package/dist/screens/mfa-otp-enrollment-code.js +2 -0
- package/dist/screens/mfa-otp-enrollment-code.js.map +1 -0
- package/dist/screens/mfa-otp-enrollment-qr.d.ts +7 -0
- package/dist/screens/mfa-otp-enrollment-qr.js +2 -0
- package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -0
- package/dist/screens/mfa-phone-challenge.d.ts +7 -0
- package/dist/screens/mfa-phone-challenge.js +2 -0
- package/dist/screens/mfa-phone-challenge.js.map +1 -0
- package/dist/screens/mfa-phone-enrollment.d.ts +7 -0
- package/dist/screens/mfa-phone-enrollment.js +2 -0
- package/dist/screens/mfa-phone-enrollment.js.map +1 -0
- package/dist/screens/mfa-push-challenge-push.d.ts +9 -0
- package/dist/screens/mfa-push-challenge-push.js +2 -0
- package/dist/screens/mfa-push-challenge-push.js.map +1 -0
- package/dist/screens/mfa-push-enrollment-qr.d.ts +5 -0
- package/dist/screens/mfa-push-enrollment-qr.js +2 -0
- package/dist/screens/mfa-push-enrollment-qr.js.map +1 -0
- package/dist/screens/mfa-push-list.d.ts +6 -0
- package/dist/screens/mfa-push-list.js +2 -0
- package/dist/screens/mfa-push-list.js.map +1 -0
- package/dist/screens/mfa-push-welcome.d.ts +6 -0
- package/dist/screens/mfa-push-welcome.js +2 -0
- package/dist/screens/mfa-push-welcome.js.map +1 -0
- package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +5 -0
- package/dist/screens/mfa-recovery-code-challenge-new-code.js +2 -0
- package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -0
- package/dist/screens/mfa-recovery-code-challenge.d.ts +6 -0
- package/dist/screens/mfa-recovery-code-challenge.js +2 -0
- package/dist/screens/mfa-recovery-code-challenge.js.map +1 -0
- package/dist/screens/mfa-recovery-code-enrollment.d.ts +5 -0
- package/dist/screens/mfa-recovery-code-enrollment.js +2 -0
- package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -0
- package/dist/screens/mfa-sms-challenge.d.ts +10 -0
- package/dist/screens/mfa-sms-challenge.js +2 -0
- package/dist/screens/mfa-sms-challenge.js.map +1 -0
- package/dist/screens/mfa-sms-enrollment.d.ts +10 -0
- package/dist/screens/mfa-sms-enrollment.js +2 -0
- package/dist/screens/mfa-sms-enrollment.js.map +1 -0
- package/dist/screens/mfa-sms-list.d.ts +6 -0
- package/dist/screens/mfa-sms-list.js +2 -0
- package/dist/screens/mfa-sms-list.js.map +1 -0
- package/dist/screens/mfa-voice-challenge.d.ts +10 -0
- package/dist/screens/mfa-voice-challenge.js +2 -0
- package/dist/screens/mfa-voice-challenge.js.map +1 -0
- package/dist/screens/mfa-voice-enrollment.d.ts +7 -0
- package/dist/screens/mfa-voice-enrollment.js +2 -0
- package/dist/screens/mfa-voice-enrollment.js.map +1 -0
- package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +5 -0
- package/dist/screens/mfa-webauthn-change-key-nickname.js +2 -0
- package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -0
- package/dist/screens/mfa-webauthn-enrollment-success.d.ts +5 -0
- package/dist/screens/mfa-webauthn-enrollment-success.js +2 -0
- package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -0
- package/dist/screens/mfa-webauthn-error.d.ts +8 -0
- package/dist/screens/mfa-webauthn-error.js +2 -0
- package/dist/screens/mfa-webauthn-error.js.map +1 -0
- package/dist/screens/mfa-webauthn-not-available-error.d.ts +5 -0
- package/dist/screens/mfa-webauthn-not-available-error.js +2 -0
- package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -0
- package/dist/screens/mfa-webauthn-platform-challenge.d.ts +7 -0
- package/dist/screens/mfa-webauthn-platform-challenge.js +2 -0
- package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -0
- package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +8 -0
- package/dist/screens/mfa-webauthn-platform-enrollment.js +2 -0
- package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -0
- package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +7 -0
- package/dist/screens/mfa-webauthn-roaming-challenge.js +2 -0
- package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -0
- package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +7 -0
- package/dist/screens/mfa-webauthn-roaming-enrollment.js +2 -0
- package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -0
- package/dist/screens/organization-picker.d.ts +9 -0
- package/dist/screens/organization-picker.js +2 -0
- package/dist/screens/organization-picker.js.map +1 -0
- package/dist/screens/organization-selection.d.ts +5 -0
- package/dist/screens/organization-selection.js +2 -0
- package/dist/screens/organization-selection.js.map +1 -0
- package/dist/screens/passkey-enrollment-local.d.ts +6 -0
- package/dist/screens/passkey-enrollment-local.js +2 -0
- package/dist/screens/passkey-enrollment-local.js.map +1 -0
- package/dist/screens/passkey-enrollment.d.ts +6 -0
- package/dist/screens/passkey-enrollment.js +2 -0
- package/dist/screens/passkey-enrollment.js.map +1 -0
- package/dist/screens/phone-identifier-challenge.d.ts +8 -0
- package/dist/screens/phone-identifier-challenge.js +2 -0
- package/dist/screens/phone-identifier-challenge.js.map +1 -0
- package/dist/screens/phone-identifier-enrollment.d.ts +6 -0
- package/dist/screens/phone-identifier-enrollment.js +2 -0
- package/dist/screens/phone-identifier-enrollment.js.map +1 -0
- package/dist/screens/redeem-ticket.d.ts +5 -0
- package/dist/screens/redeem-ticket.js +2 -0
- package/dist/screens/redeem-ticket.js.map +1 -0
- package/dist/screens/reset-password-email.d.ts +5 -0
- package/dist/screens/reset-password-email.js +2 -0
- package/dist/screens/reset-password-email.js.map +1 -0
- package/dist/screens/reset-password-error.d.ts +4 -0
- package/dist/screens/reset-password-error.js +2 -0
- package/dist/screens/reset-password-error.js.map +1 -0
- package/dist/screens/reset-password-mfa-email-challenge.d.ts +8 -0
- package/dist/screens/reset-password-mfa-email-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-otp-challenge.d.ts +6 -0
- package/dist/screens/reset-password-mfa-otp-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-phone-challenge.d.ts +6 -0
- package/dist/screens/reset-password-mfa-phone-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +9 -0
- package/dist/screens/reset-password-mfa-push-challenge-push.js +2 -0
- package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -0
- package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +6 -0
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-sms-challenge.d.ts +9 -0
- package/dist/screens/reset-password-mfa-sms-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-voice-challenge.d.ts +9 -0
- package/dist/screens/reset-password-mfa-voice-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +7 -0
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -0
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +7 -0
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js +2 -0
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -0
- package/dist/screens/reset-password-request.d.ts +7 -0
- package/dist/screens/reset-password-request.js +2 -0
- package/dist/screens/reset-password-request.js.map +1 -0
- package/dist/screens/reset-password-success.d.ts +4 -0
- package/dist/screens/reset-password-success.js +2 -0
- package/dist/screens/reset-password-success.js.map +1 -0
- package/dist/screens/reset-password.d.ts +6 -0
- package/dist/screens/reset-password.js +2 -0
- package/dist/screens/reset-password.js.map +1 -0
- package/dist/screens/signup-id.d.ts +9 -0
- package/dist/screens/signup-id.js +2 -0
- package/dist/screens/signup-id.js.map +1 -0
- package/dist/screens/signup-password.d.ts +7 -0
- package/dist/screens/signup-password.js +2 -0
- package/dist/screens/signup-password.js.map +1 -0
- package/dist/screens/signup.d.ts +10 -0
- package/dist/screens/signup.js +2 -0
- package/dist/screens/signup.js.map +1 -0
- package/dist/state/error-store.d.ts +47 -0
- package/dist/state/error-store.js +2 -0
- package/dist/state/error-store.js.map +1 -0
- package/dist/state/instance-store.d.ts +19 -0
- package/dist/state/instance-store.js +2 -0
- package/dist/state/instance-store.js.map +1 -0
- package/dist/telemetry.d.ts +8 -0
- package/dist/telemetry.js +2 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +61 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Identifier } from '@auth0/auth0-acul-js';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a list of enabled identifiers (email, phone, or username), each with its `required` status,
|
|
4
|
+
* based on the current screen's signup identifiers.
|
|
5
|
+
*
|
|
6
|
+
* @supportedScreens
|
|
7
|
+
* - `signup`
|
|
8
|
+
* - `signup-id`
|
|
9
|
+
*
|
|
10
|
+
* @returns An array of {@link Identifier} objects, where each contains a `type` (identifier type)
|
|
11
|
+
* and a `required` flag indicating whether it is mandatory for signup.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { useSignupIdentifiers } from '@auth0/auth0-acul-react/signup';
|
|
16
|
+
*
|
|
17
|
+
* const identifiers = useSignupIdentifiers();
|
|
18
|
+
* const emailIdentifier = identifiers.find(({ type }) => type === 'email');
|
|
19
|
+
* const phoneIdentifier = identifiers.find(({ type }) => type === 'phone');
|
|
20
|
+
* const usernameIdentifier = identifiers.find(({ type }) => type === 'username');
|
|
21
|
+
*
|
|
22
|
+
* const emailRequired = emailIdentifier?.required ?? false;
|
|
23
|
+
* const phoneRequired = phoneIdentifier?.required ?? false;
|
|
24
|
+
* const usernameRequired = usernameIdentifier?.required ?? false;
|
|
25
|
+
*
|
|
26
|
+
* // Example output:
|
|
27
|
+
* // [
|
|
28
|
+
* // { type: 'email', required: true },
|
|
29
|
+
* // { type: 'phone', required: false },
|
|
30
|
+
* // { type: 'username', required: true },
|
|
31
|
+
* // ]
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const useSignupIdentifiers: () => Identifier[] | [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup-identifiers.js","sources":["../../../src/hooks/utility/signup-identifiers.ts"],"sourcesContent":["import { getScreen } from '../../state/instance-store';\n\nimport type { Identifier } from '@auth0/auth0-acul-js';\n\ninterface WithSignupIdentifiers {\n getSignupIdentifiers: () => Identifier[];\n}\n\n/**\n * Returns a list of enabled identifiers (email, phone, or username), each with its `required` status,\n * based on the current screen's signup identifiers.\n *\n * @supportedScreens\n * - `signup`\n * - `signup-id`\n *\n * @returns An array of {@link Identifier} objects, where each contains a `type` (identifier type)\n * and a `required` flag indicating whether it is mandatory for signup.\n *\n * @example\n * ```tsx\n * import { useSignupIdentifiers } from '@auth0/auth0-acul-react/signup';\n *\n * const identifiers = useSignupIdentifiers();\n * const emailIdentifier = identifiers.find(({ type }) => type === 'email');\n * const phoneIdentifier = identifiers.find(({ type }) => type === 'phone');\n * const usernameIdentifier = identifiers.find(({ type }) => type === 'username');\n *\n * const emailRequired = emailIdentifier?.required ?? false;\n * const phoneRequired = phoneIdentifier?.required ?? false;\n * const usernameRequired = usernameIdentifier?.required ?? false;\n *\n * // Example output:\n * // [\n * // { type: 'email', required: true },\n * // { type: 'phone', required: false },\n * // { type: 'username', required: true },\n * // ]\n * ```\n */\n\nexport const useSignupIdentifiers = (): Identifier[] | [] => {\n const instance = getScreen<WithSignupIdentifiers>();\n return instance.getSignupIdentifiers() ?? [];\n};\n"],"names":["useSignupIdentifiers","getScreen","getSignupIdentifiers"],"mappings":"0DAyCO,MAAMA,EAAuB,IACjBC,IACDC,wBAA0B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PasswordValidationResult } from '@auth0/auth0-acul-js';
|
|
2
|
+
/**
|
|
3
|
+
* This React hook validates a password against the current Auth0 password policy
|
|
4
|
+
* and returns a structured result describing whether the password satisfies each rule.
|
|
5
|
+
*
|
|
6
|
+
* Optionally, it can send the validation results to the global error manager so that
|
|
7
|
+
* form error components can update automatically.
|
|
8
|
+
*
|
|
9
|
+
* @supportedScreens
|
|
10
|
+
* - `signup`
|
|
11
|
+
* - `signup-password`
|
|
12
|
+
* - `reset-password`
|
|
13
|
+
*
|
|
14
|
+
* @param password
|
|
15
|
+
* - The password to validate.
|
|
16
|
+
* @param options.includeInErrors
|
|
17
|
+
* - If `true`, validation errors are stored in the global error manager under the `password` field. Defaults to `false`.
|
|
18
|
+
*
|
|
19
|
+
* @returns A {@link PasswordValidationResult} object containing:
|
|
20
|
+
* - `isValid` — `true` if the password satisfies all configured rules.
|
|
21
|
+
* - `results` — an array of per-rule results with `code`, `label`, `status`, and `isValid`.
|
|
22
|
+
*
|
|
23
|
+
* @example This example shows how to use the hook in a functional component on "signup" screen.
|
|
24
|
+
* ```tsx
|
|
25
|
+
* import { usePasswordValidation } from '@auth0/auth0-acul-react/signup';
|
|
26
|
+
* const { isValid, results} = usePasswordValidation(password, { includeInErrors: true });
|
|
27
|
+
*
|
|
28
|
+
* if (!isValid) {
|
|
29
|
+
* console.log(results);
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function usePasswordValidation(password: string, options?: {
|
|
34
|
+
includeInErrors?: boolean;
|
|
35
|
+
}): PasswordValidationResult;
|
|
36
|
+
export { PasswordValidationResult, PasswordComplexityRule } from '@auth0/auth0-acul-js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useMemo as r}from"react";import{getScreen as e}from"../../state/instance-store.js";import{errorManager as s}from"../common/errors.js";function o(o,t){return r(()=>{const r=e().validatePassword(o);return t?.includeInErrors&&s.replaceClientErrors(r.isValid?[]:[{code:"password-policy-error",field:"password",message:"The password does not meet the required criteria.",rules:r.results}],{byField:"password"}),r},[o,t?.includeInErrors])}export{o as usePasswordValidation};
|
|
2
|
+
//# sourceMappingURL=validate-password.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-password.js","sources":["../../../src/hooks/utility/validate-password.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { getScreen } from '../../state/instance-store';\nimport { errorManager } from '../common/errors';\n\nimport type { PasswordValidationResult } from '@auth0/auth0-acul-js';\n\ninterface WithValidatePassword {\n validatePassword: (password: string) => PasswordValidationResult;\n}\n\n/**\n * This React hook validates a password against the current Auth0 password policy\n * and returns a structured result describing whether the password satisfies each rule.\n *\n * Optionally, it can send the validation results to the global error manager so that\n * form error components can update automatically.\n *\n * @supportedScreens\n * - `signup`\n * - `signup-password`\n * - `reset-password`\n *\n * @param password\n * - The password to validate.\n * @param options.includeInErrors\n * - If `true`, validation errors are stored in the global error manager under the `password` field. Defaults to `false`.\n *\n * @returns A {@link PasswordValidationResult} object containing:\n * - `isValid` — `true` if the password satisfies all configured rules.\n * - `results` — an array of per-rule results with `code`, `label`, `status`, and `isValid`.\n *\n * @example This example shows how to use the hook in a functional component on \"signup\" screen.\n * ```tsx\n * import { usePasswordValidation } from '@auth0/auth0-acul-react/signup';\n * const { isValid, results} = usePasswordValidation(password, { includeInErrors: true });\n *\n * if (!isValid) {\n * console.log(results);\n * }\n * ```\n */\nexport function usePasswordValidation(\n password: string,\n options?: { includeInErrors?: boolean }\n): PasswordValidationResult {\n return useMemo(() => {\n const instance = getScreen<WithValidatePassword>();\n const validation = instance.validatePassword(password);\n\n if (options?.includeInErrors) {\n errorManager.replaceClientErrors(\n validation.isValid\n ? []\n : [\n {\n code: 'password-policy-error',\n field: 'password',\n message: 'The password does not meet the required criteria.',\n rules: validation.results,\n },\n ],\n { byField: 'password' }\n );\n }\n\n return validation;\n }, [password, options?.includeInErrors]);\n}\n\nexport { PasswordValidationResult, PasswordComplexityRule } from '@auth0/auth0-acul-js';\n"],"names":["usePasswordValidation","password","options","useMemo","validation","getScreen","validatePassword","includeInErrors","errorManager","replaceClientErrors","isValid","code","field","message","rules","results","byField"],"mappings":"6IA0CM,SAAUA,EACdC,EACAC,GAEA,OAAOC,EAAQ,KACb,MACMC,EADWC,IACWC,iBAAiBL,GAkB7C,OAhBIC,GAASK,iBACXC,EAAaC,oBACXL,EAAWM,QACP,GACA,CACE,CACEC,KAAM,wBACNC,MAAO,WACPC,QAAS,oDACTC,MAAOV,EAAWW,UAG1B,CAAEC,QAAS,aAIRZ,GACN,CAACH,EAAUC,GAASK,iBACzB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { UsernameValidationResult } from '@auth0/auth0-acul-js';
|
|
2
|
+
/**
|
|
3
|
+
* React hook for validating a username against the current Auth0 username policy.
|
|
4
|
+
*
|
|
5
|
+
* This hook checks the provided username against all configured validation rules
|
|
6
|
+
* and returns a structured result describing whether it passes.
|
|
7
|
+
* Optionally, it can send validation errors to the global error manager so that
|
|
8
|
+
* UI components observing the `username` field can automatically display or react
|
|
9
|
+
* to these errors.
|
|
10
|
+
*
|
|
11
|
+
* @supportedScreens
|
|
12
|
+
* - `signup`
|
|
13
|
+
* - `signup-id`
|
|
14
|
+
*
|
|
15
|
+
* @param username - The username string to validate.
|
|
16
|
+
* @param options.includeInErrors - When `true`, validation errors are stored in the
|
|
17
|
+
* global error manager under the `username` field. Defaults to `false`.
|
|
18
|
+
*
|
|
19
|
+
* @returns A {@link UsernameValidationResult} object with:
|
|
20
|
+
* - `isValid` — `true` if the username satisfies all configured rules.
|
|
21
|
+
* - `errors` — an array of per-rule validation errors with `code`, `message`, and `isValid`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* import { useUsernameValidation } from "@auth0/auth0-acul-react/signup";
|
|
26
|
+
*
|
|
27
|
+
* export function UsernameField() {
|
|
28
|
+
* const { isValid, errors } = useUsernameValidation(username, { includeInErrors: true });
|
|
29
|
+
*
|
|
30
|
+
* return (
|
|
31
|
+
* <div>
|
|
32
|
+
* <input
|
|
33
|
+
* value={username}
|
|
34
|
+
* onChange={e => setUsername(e.target.value)}
|
|
35
|
+
* aria-invalid={!isValid}
|
|
36
|
+
* />
|
|
37
|
+
*
|
|
38
|
+
* {!isValid && (
|
|
39
|
+
* <ul>
|
|
40
|
+
* {errors.map(err => (
|
|
41
|
+
* <li key={err.code}>{err.message}</li>
|
|
42
|
+
* ))}
|
|
43
|
+
* </ul>
|
|
44
|
+
* )}
|
|
45
|
+
* </div>
|
|
46
|
+
* );
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* - When `includeInErrors` is enabled, the hook automatically updates the errors to the error-store
|
|
52
|
+
* which can be consumed by `useErrors` hook.
|
|
53
|
+
* - The hook only recomputes when `username` or `options.includeInErrors` change.
|
|
54
|
+
*/
|
|
55
|
+
export declare function useUsernameValidation(username: string, options?: {
|
|
56
|
+
includeInErrors?: boolean;
|
|
57
|
+
}): UsernameValidationResult;
|
|
58
|
+
export type { UsernameValidationResult, UsernameValidationError } from '@auth0/auth0-acul-js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useMemo as r}from"react";import{getScreen as e}from"../../state/instance-store.js";import{errorManager as o}from"../common/errors.js";function s(s,n){return r(()=>{const r=e().validateUsername(s);return n?.includeInErrors&&o.replaceClientErrors(r.errors,{byField:"username"}),{isValid:r.isValid,errors:r.errors}},[s,n?.includeInErrors])}export{s as useUsernameValidation};
|
|
2
|
+
//# sourceMappingURL=validate-username.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-username.js","sources":["../../../src/hooks/utility/validate-username.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { getScreen } from '../../state/instance-store';\nimport { errorManager } from '../common/errors';\n\nimport type { UsernameValidationResult } from '@auth0/auth0-acul-js';\n\ninterface WithValidateUsername {\n validateUsername: (username: string) => UsernameValidationResult;\n}\n\n/**\n * React hook for validating a username against the current Auth0 username policy.\n *\n * This hook checks the provided username against all configured validation rules\n * and returns a structured result describing whether it passes.\n * Optionally, it can send validation errors to the global error manager so that\n * UI components observing the `username` field can automatically display or react\n * to these errors.\n *\n * @supportedScreens\n * - `signup`\n * - `signup-id`\n *\n * @param username - The username string to validate.\n * @param options.includeInErrors - When `true`, validation errors are stored in the\n * global error manager under the `username` field. Defaults to `false`.\n *\n * @returns A {@link UsernameValidationResult} object with:\n * - `isValid` — `true` if the username satisfies all configured rules.\n * - `errors` — an array of per-rule validation errors with `code`, `message`, and `isValid`.\n *\n * @example\n * ```tsx\n * import { useUsernameValidation } from \"@auth0/auth0-acul-react/signup\";\n *\n * export function UsernameField() {\n * const { isValid, errors } = useUsernameValidation(username, { includeInErrors: true });\n *\n * return (\n * <div>\n * <input\n * value={username}\n * onChange={e => setUsername(e.target.value)}\n * aria-invalid={!isValid}\n * />\n *\n * {!isValid && (\n * <ul>\n * {errors.map(err => (\n * <li key={err.code}>{err.message}</li>\n * ))}\n * </ul>\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @remarks\n * - When `includeInErrors` is enabled, the hook automatically updates the errors to the error-store\n * which can be consumed by `useErrors` hook.\n * - The hook only recomputes when `username` or `options.includeInErrors` change.\n */\nexport function useUsernameValidation(\n username: string,\n options?: { includeInErrors?: boolean }\n): UsernameValidationResult {\n return useMemo(() => {\n const instance = getScreen<WithValidateUsername>();\n const result = instance.validateUsername(username);\n\n if (options?.includeInErrors) {\n errorManager.replaceClientErrors(result.errors, { byField: 'username' });\n }\n\n return { isValid: result.isValid, errors: result.errors };\n }, [username, options?.includeInErrors]);\n}\n\nexport type { UsernameValidationResult, UsernameValidationError } from '@auth0/auth0-acul-js';\n"],"names":["useUsernameValidation","username","options","useMemo","result","getScreen","validateUsername","includeInErrors","errorManager","replaceClientErrors","errors","byField","isValid"],"mappings":"6IAgEM,SAAUA,EACdC,EACAC,GAEA,OAAOC,EAAQ,KACb,MACMC,EADWC,IACOC,iBAAiBL,GAMzC,OAJIC,GAASK,iBACXC,EAAaC,oBAAoBL,EAAOM,OAAQ,CAAEC,QAAS,aAGtD,CAAEC,QAASR,EAAOQ,QAASF,OAAQN,EAAOM,SAChD,CAACT,EAAUC,GAASK,iBACzB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import './telemetry';
|
|
2
|
+
export { useLoginId } from './screens/login-id';
|
|
3
|
+
export { useLoginPassword } from './screens/login-password';
|
|
4
|
+
export { useSignupId } from './screens/signup-id';
|
|
5
|
+
export { useSignupPassword } from './screens/signup-password';
|
|
6
|
+
export { useLoginPasswordlessEmailCode } from './screens/login-passwordless-email-code';
|
|
7
|
+
export { useLoginPasswordlessSmsOtp } from './screens/login-passwordless-sms-otp';
|
|
8
|
+
export { usePasskeyEnrollment } from './screens/passkey-enrollment';
|
|
9
|
+
export { usePasskeyEnrollmentLocal } from './screens/passkey-enrollment-local';
|
|
10
|
+
export { usePhoneIdentifierChallenge } from './screens/phone-identifier-challenge';
|
|
11
|
+
export { usePhoneIdentifierEnrollment } from './screens/phone-identifier-enrollment';
|
|
12
|
+
export { useEmailIdentifierChallenge } from './screens/email-identifier-challenge';
|
|
13
|
+
export { useInterstitialCaptcha } from './screens/interstitial-captcha';
|
|
14
|
+
export { useSignup } from './screens/signup';
|
|
15
|
+
export { useLogin } from './screens/login';
|
|
16
|
+
export { useResetPassword } from './screens/reset-password';
|
|
17
|
+
export { useResetPasswordRequest } from './screens/reset-password-request';
|
|
18
|
+
export { useResetPasswordEmail } from './screens/reset-password-email';
|
|
19
|
+
export { useResetPasswordError } from './screens/reset-password-error';
|
|
20
|
+
export { useResetPasswordSuccess } from './screens/reset-password-success';
|
|
21
|
+
export { useMfaPushEnrollmentQr } from './screens/mfa-push-enrollment-qr';
|
|
22
|
+
export { useMfaPushList } from './screens/mfa-push-list';
|
|
23
|
+
export { useMfaPushWelcome } from './screens/mfa-push-welcome';
|
|
24
|
+
export { useMfaSmsEnrollment } from './screens/mfa-sms-enrollment';
|
|
25
|
+
export { useMfaBeginEnrollOptions } from './screens/mfa-begin-enroll-options';
|
|
26
|
+
export { useMfaSmsChallenge } from './screens/mfa-sms-challenge';
|
|
27
|
+
export { useMfaSmsList } from './screens/mfa-sms-list';
|
|
28
|
+
export { useMfaCountryCodes } from './screens/mfa-country-codes';
|
|
29
|
+
export { useMfaDetectBrowserCapabilities } from './screens/mfa-detect-browser-capabilities';
|
|
30
|
+
export { useMfaEmailChallenge } from './screens/mfa-email-challenge';
|
|
31
|
+
export { useMfaEmailList } from './screens/mfa-email-list';
|
|
32
|
+
export { useMfaEnrollResult } from './screens/mfa-enroll-result';
|
|
33
|
+
export { useMfaLoginOptions } from './screens/mfa-login-options';
|
|
34
|
+
export { useMfaPushChallengePush } from './screens/mfa-push-challenge-push';
|
|
35
|
+
export { useMfaOtpChallenge } from './screens/mfa-otp-challenge';
|
|
36
|
+
export { useMfaOtpEnrollmentQr } from './screens/mfa-otp-enrollment-qr';
|
|
37
|
+
export { useMfaOtpEnrollmentCode } from './screens/mfa-otp-enrollment-code';
|
|
38
|
+
export { useResetPasswordMfaPushChallengePush } from './screens/reset-password-mfa-push-challenge-push';
|
|
39
|
+
export { useResetPasswordMfaEmailChallenge } from './screens/reset-password-mfa-email-challenge';
|
|
40
|
+
export { useResetPasswordMfaSmsChallenge } from './screens/reset-password-mfa-sms-challenge';
|
|
41
|
+
export { useResetPasswordMfaOtpChallenge } from './screens/reset-password-mfa-otp-challenge';
|
|
42
|
+
export { useOrganizationSelection } from './screens/organization-selection';
|
|
43
|
+
export { useOrganizationPicker } from './screens/organization-picker';
|
|
44
|
+
export { useAcceptInvitation } from './screens/accept-invitation';
|
|
45
|
+
export { useCustomizedConsent } from './screens/customized-consent';
|
|
46
|
+
export { useMfaPhoneEnrollment } from './screens/mfa-phone-enrollment';
|
|
47
|
+
export { useMfaVoiceEnrollment } from './screens/mfa-voice-enrollment';
|
|
48
|
+
export { useMfaRecoveryCodeChallenge } from './screens/mfa-recovery-code-challenge';
|
|
49
|
+
export { useDeviceCodeActivationAllowed } from './screens/device-code-activation-allowed';
|
|
50
|
+
export { useDeviceCodeActivationDenied } from './screens/device-code-activation-denied';
|
|
51
|
+
export { useDeviceCodeActivation } from './screens/device-code-activation';
|
|
52
|
+
export { useMfaVoiceChallenge } from './screens/mfa-voice-challenge';
|
|
53
|
+
export { useResetPasswordMfaRecoveryCodeChallenge } from './screens/reset-password-mfa-recovery-code-challenge';
|
|
54
|
+
export { useResetPasswordMfaVoiceChallenge } from './screens/reset-password-mfa-voice-challenge';
|
|
55
|
+
export { useRedeemTicket } from './screens/redeem-ticket';
|
|
56
|
+
export { useDeviceCodeConfirmation } from './screens/device-code-confirmation';
|
|
57
|
+
export { useMfaPhoneChallenge } from './screens/mfa-phone-challenge';
|
|
58
|
+
export { useMfaRecoveryCodeEnrollment } from './screens/mfa-recovery-code-enrollment';
|
|
59
|
+
export { useResetPasswordMfaPhoneChallenge } from './screens/reset-password-mfa-phone-challenge';
|
|
60
|
+
export { useMfaRecoveryCodeChallengeNewCode } from './screens/mfa-recovery-code-challenge-new-code';
|
|
61
|
+
export { useLogout } from './screens/logout';
|
|
62
|
+
export { useLogoutAborted } from './screens/logout-aborted';
|
|
63
|
+
export { useLogoutComplete } from './screens/logout-complete';
|
|
64
|
+
export { useEmailOTPChallenge } from './screens/email-otp-challenge';
|
|
65
|
+
export { useEmailVerificationResult } from './screens/email-verification-result';
|
|
66
|
+
export { useLoginEmailVerification } from './screens/login-email-verification';
|
|
67
|
+
export { useMfaWebAuthnPlatformEnrollment } from './screens/mfa-webauthn-platform-enrollment';
|
|
68
|
+
export { useMfaWebAuthnError } from './screens/mfa-webauthn-error';
|
|
69
|
+
export { useMfaWebAuthnNotAvailableError } from './screens/mfa-webauthn-not-available-error';
|
|
70
|
+
export { useMfaWebAuthnRoamingEnrollment } from './screens/mfa-webauthn-roaming-enrollment';
|
|
71
|
+
export { useMfaWebAuthnRoamingChallenge } from './screens/mfa-webauthn-roaming-challenge';
|
|
72
|
+
export { useMfaWebAuthnPlatformChallenge } from './screens/mfa-webauthn-platform-challenge';
|
|
73
|
+
export { useMfaWebAuthnEnrollmentSuccess } from './screens/mfa-webauthn-enrollment-success';
|
|
74
|
+
export { useMfaWebAuthnChangeKeyNickname } from './screens/mfa-webauthn-change-key-nickname';
|
|
75
|
+
export { useConsent } from './screens/consent';
|
|
76
|
+
export { useResetPasswordMfaWebAuthnPlatformChallenge } from './screens/reset-password-mfa-webauthn-platform-challenge';
|
|
77
|
+
export { useResetPasswordMfaWebAuthnRoamingChallenge } from './screens/reset-password-mfa-webauthn-roaming-challenge';
|
|
78
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from './hooks';
|
package/dist/index.js
ADDED
|
@@ -0,0 +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";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AcceptInvitationMembers, CustomOptions } from '@auth0/auth0-acul-js/accept-invitation';
|
|
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
|
+
export declare const acceptInvitation: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
5
|
+
export declare const useAcceptInvitation: () => AcceptInvitationMembers;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@auth0/auth0-acul-js/accept-invitation";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as t}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const n=s(o),{withError:m}=e,u=new t(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,d=o=>m(n.acceptInvitation(o)),T=()=>r(()=>n,[]);export{d as acceptInvitation,T as useAcceptInvitation,i as useBranding,h as useClient,p as useOrganization,f as usePrompt,j as useScreen,c as useTenant,x as useTransaction,k as useUntrustedData,a as useUser};
|
|
2
|
+
//# sourceMappingURL=accept-invitation.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of AcceptInvitation\nexport const useAcceptInvitation = (): AcceptInvitationMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","AcceptInvitation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","acceptInvitation","payload","useAcceptInvitation","useMemo"],"mappings":"ibAaA,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,IAczBC,EAAsB,IAA+BC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent';
|
|
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
|
+
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
+
export declare const deny: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
6
|
+
export declare const useConsent: () => ConsentMembers;
|
|
@@ -0,0 +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:c,useTenant:a,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:k}=u,d=o=>m(n.accept(o)),T=o=>m(n.deny(o)),g=()=>e(()=>n,[]);export{d as accept,T as deny,i as useBranding,h as useClient,g as useConsent,p as useOrganization,f as usePrompt,j as useScreen,a as useTenant,x as useTransaction,k as useUntrustedData,c as useUser};
|
|
2
|
+
//# sourceMappingURL=consent.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of Consent\nexport const useConsent = (): ConsentMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","Consent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useConsent","useMemo"],"mappings":"uaAUA,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,IAc5DE,EAAa,IAAsBC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CustomizedConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/customized-consent';
|
|
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
|
+
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
+
export declare const deny: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
6
|
+
export declare const useCustomizedConsent: () => CustomizedConsentMembers;
|
|
@@ -0,0 +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:c,useTenant:a,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:d}=u,k=o=>m(n.accept(o)),T=o=>m(n.deny(o)),g=()=>e(()=>n,[]);export{k as accept,T as deny,i as useBranding,h as useClient,g as useCustomizedConsent,p as useOrganization,f as usePrompt,j as useScreen,a as useTenant,x as useTransaction,d as useUntrustedData,c as useUser};
|
|
2
|
+
//# sourceMappingURL=customized-consent.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of CustomizedConsent\nexport const useCustomizedConsent = (): CustomizedConsentMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","CustomizedConsent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useCustomizedConsent","useMemo"],"mappings":"kbAaA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA4Bd,EAAUH,EAASgB,OAAOC,IAChEC,EAAQD,GAA4Bd,EAAUH,EAASkB,KAAKD,IAc5DE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';
|
|
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, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
4
|
+
export declare const useDeviceCodeActivationAllowed: () => DeviceCodeActivationAllowedMembers;
|
|
@@ -0,0 +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:m,useTenant:u,useBranding:a,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:d}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useDeviceCodeActivationAllowed,i as useOrganization,h as usePrompt,p as useScreen,u as useTenant,f as useTransaction,d as useUntrustedData,m as useUser};
|
|
2
|
+
//# sourceMappingURL=device-code-activation-allowed.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationAllowed\nexport const useDeviceCodeActivationAllowed = (): DeviceCodeActivationAllowedMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","DeviceCodeActivationAllowed","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationAllowed","useMemo"],"mappings":"qYASA,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,EAcSW,EAAiC,IAC5CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';
|
|
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, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
4
|
+
export declare const useDeviceCodeActivationDenied: () => DeviceCodeActivationDeniedMembers;
|
|
@@ -0,0 +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:m,useTenant:u,useBranding:a,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:d,useUntrustedData:f}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useDeviceCodeActivationDenied,i as useOrganization,h as usePrompt,p as useScreen,u as useTenant,d as useTransaction,f as useUntrustedData,m as useUser};
|
|
2
|
+
//# sourceMappingURL=device-code-activation-denied.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationDenied\nexport const useDeviceCodeActivationDenied = (): DeviceCodeActivationDeniedMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","DeviceCodeActivationDenied","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationDenied","useMemo"],"mappings":"oYASA,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,EAcSW,EAAgC,IAC3CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DeviceCodeActivationMembers, ContinueOptions } from '@auth0/auth0-acul-js/device-code-activation';
|
|
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 declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
5
|
+
export declare const useDeviceCodeActivation: () => DeviceCodeActivationMembers;
|
|
@@ -0,0 +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:c,useTenant:a,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:x,useUntrustedData:d}=u,k=o=>m(n.continue(o)),T=()=>e(()=>n,[]);export{k as continueMethod,i as useBranding,h as useClient,T as useDeviceCodeActivation,p as useOrganization,f as usePrompt,j as useScreen,a as useTenant,x as useTransaction,d as useUntrustedData,c as useUser};
|
|
2
|
+
//# sourceMappingURL=device-code-activation.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivation\nexport const useDeviceCodeActivation = (): DeviceCodeActivationMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","DeviceCodeActivation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useDeviceCodeActivation","useMemo"],"mappings":"sbAaA,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,IAc3EE,EAA0B,IACrCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DeviceCodeConfirmationMembers, CustomOptions } from '@auth0/auth0-acul-js/device-code-confirmation';
|
|
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
|
+
export declare const confirm: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
+
export declare const cancel: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
6
|
+
export declare const useDeviceCodeConfirmation: () => DeviceCodeConfirmationMembers;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@auth0/auth0-acul-js/device-code-confirmation";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,c=new s(n),{useUser:u,useTenant:a,useBranding:i,useClient:h,useOrganization:f,usePrompt:p,useScreen:j,useTransaction:x,useUntrustedData:d}=c,k=o=>m(n.confirm(o)),l=o=>m(n.cancel(o)),T=()=>r(()=>n,[]);export{l as cancel,k as confirm,i as useBranding,h as useClient,T as useDeviceCodeConfirmation,f as useOrganization,p as usePrompt,j as useScreen,a as useTenant,x as useTransaction,d as useUntrustedData,u as useUser};
|
|
2
|
+
//# sourceMappingURL=device-code-confirmation.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeConfirmation\nexport const useDeviceCodeConfirmation = (): DeviceCodeConfirmationMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","DeviceCodeConfirmation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirm","payload","cancel","useDeviceCodeConfirmation","useMemo"],"mappings":"wbAaA,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,IAchEE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EmailIdentifierChallengeMembers, EmailChallengeOptions, CustomOptions } from '@auth0/auth0-acul-js/email-identifier-challenge';
|
|
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").ScreenMembersOnEmailIdentifierChallenge, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
+
export declare const submitEmailChallenge: (payload: EmailChallengeOptions) => void | Promise<void>;
|
|
4
|
+
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
|
+
export { useResend } from '../hooks/utility/resend-manager';
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
8
|
+
export declare const useEmailIdentifierChallenge: () => EmailIdentifierChallengeMembers;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@auth0/auth0-acul-js/email-identifier-challenge";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as o}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=o,u=new s(n),{useUser:i,useTenant:a,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:l,useTransaction:d,useUntrustedData:j}=u,x=e=>m(n.submitEmailChallenge(e)),k=e=>m(n.resendCode(e)),g=e=>m(n.returnToPrevious(e)),C=()=>r(()=>n,[]);export{k as resendCode,g as returnToPrevious,x as submitEmailChallenge,c as useBranding,h as useClient,C as useEmailIdentifierChallenge,p as useOrganization,f as usePrompt,l as useScreen,a as useTenant,d as useTransaction,j as useUntrustedData,i as useUser};
|
|
2
|
+
//# sourceMappingURL=email-identifier-challenge.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\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":"ofAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAiBzBG,EAA8B,IACzCC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EmailOTPChallengeMembers, OtpCodeOptions, CustomOptions } from '@auth0/auth0-acul-js/email-otp-challenge';
|
|
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").ScreenMembersOnEmailOTPChallenge, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
+
export declare const submitCode: (options: OtpCodeOptions) => void | Promise<void>;
|
|
4
|
+
export declare const resendCode: (options?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
7
|
+
export declare const useEmailOTPChallenge: () => EmailOTPChallengeMembers;
|
|
@@ -0,0 +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:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:d,useTransaction:j,useUntrustedData:x}=u,k=e=>m(n.submitCode(e)),l=e=>m(n.resendCode(e)),g=()=>o(()=>n,[]);export{l as resendCode,k as submitCode,c as useBranding,h as useClient,g as useEmailOTPChallenge,p as useOrganization,f as usePrompt,d as useScreen,i as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
|
+
//# sourceMappingURL=email-otp-challenge.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailOTPChallenge\nexport const useEmailOTPChallenge = (): EmailOTPChallengeMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","EmailOTPChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitCode","options","resendCode","useEmailOTPChallenge","useMemo"],"mappings":"6eAcA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAcC,GAA4Bd,EAAUH,EAASgB,WAAWC,IACxEC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IAiBxEE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';
|
|
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, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
4
|
+
export declare const useEmailVerificationResult: () => EmailVerificationResultMembers;
|
|
@@ -0,0 +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:i,useOrganization:c,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:j}=n,x=()=>o(()=>t,[]);export{a as useBranding,i as useClient,x as useEmailVerificationResult,c as useOrganization,h as usePrompt,p as useScreen,u as useTenant,f as useTransaction,j as useUntrustedData,m as useUser};
|
|
2
|
+
//# sourceMappingURL=email-verification-result.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailVerificationResult\nexport const useEmailVerificationResult = (): EmailVerificationResultMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","EmailVerificationResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useEmailVerificationResult","useMemo"],"mappings":"gYASA,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,EAcSW,EAA6B,IACxCC,EAAQ,IAAMf,EAAU"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';
|
|
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, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
4
|
+
export declare const useInterstitialCaptcha: () => InterstitialCaptchaMembers;
|
|
@@ -0,0 +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:m,useTenant:u,useBranding:a,useClient:c,useOrganization:i,usePrompt:h,useScreen:p,useTransaction:f,useUntrustedData:j}=n,x=()=>o(()=>t,[]);export{a as useBranding,c as useClient,x as useInterstitialCaptcha,i as useOrganization,h as usePrompt,p as useScreen,u as useTenant,f as useTransaction,j as useUntrustedData,m as useUser};
|
|
2
|
+
//# sourceMappingURL=interstitial-captcha.js.map
|
|
@@ -0,0 +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 {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of InterstitialCaptcha\nexport const useInterstitialCaptcha = (): InterstitialCaptchaMembers => useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","InterstitialCaptcha","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useInterstitialCaptcha","useMemo"],"mappings":"2XASA,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,EAcSW,EAAyB,IAAkCC,EAAQ,IAAMf,EAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LoginEmailVerificationMembers, ContinueWithCodeOptions, ResendCodeOptions } from '@auth0/auth0-acul-js/login-email-verification';
|
|
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 declare const continueWithCode: (payload: ContinueWithCodeOptions) => void | Promise<void>;
|
|
4
|
+
export declare const resendCode: (payload?: ResendCodeOptions) => void | Promise<void>;
|
|
5
|
+
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
7
|
+
export declare const useLoginEmailVerification: () => LoginEmailVerificationMembers;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@auth0/auth0-acul-js/login-email-verification";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:i,useTenant:a,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:d,useTransaction:j,useUntrustedData:x}=u,k=e=>m(n.continueWithCode(e)),l=e=>m(n.resendCode(e)),g=()=>o(()=>n,[]);export{k as continueWithCode,l as resendCode,c as useBranding,h as useClient,g as useLoginEmailVerification,p as useOrganization,f as usePrompt,d as useScreen,a as useTenant,j as useTransaction,x as useUntrustedData,i as useUser};
|
|
2
|
+
//# sourceMappingURL=login-email-verification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-email-verification.js","sources":["../../src/screens/login-email-verification.tsx"],"sourcesContent":["import LoginEmailVerification from '@auth0/auth0-acul-js/login-email-verification';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginEmailVerificationMembers,\n ContinueWithCodeOptions,\n ResendCodeOptions,\n} from '@auth0/auth0-acul-js/login-email-verification';\n\n// Register the singleton instance of LoginEmailVerification\nconst instance = registerScreen<LoginEmailVerificationMembers>(LoginEmailVerification)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginEmailVerificationMembers>(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 continueWithCode = (payload: ContinueWithCodeOptions) =>\n withError(instance.continueWithCode(payload));\nexport const resendCode = (payload?: ResendCodeOptions) => withError(instance.resendCode(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {\n useCurrentScreen,\n useErrors,\n useAuth0Themes,\n type UseErrorOptions,\n type UseErrorsResult,\n type ErrorsResult,\n type ErrorKind,\n} from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginEmailVerification\nexport const useLoginEmailVerification = (): LoginEmailVerificationMembers =>\n useMemo(() => instance, []);\n\n// Export all types from the core SDK for this screen\n"],"names":["instance","registerScreen","LoginEmailVerification","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueWithCode","payload","resendCode","useLoginEmailVerification","useMemo"],"mappings":"kfAcA,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,EAAoBC,GAC/Bd,EAAUH,EAASgB,iBAAiBC,IACzBC,EAAcD,GAAgCd,EAAUH,EAASkB,WAAWD,IAiB5EE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LoginIdMembers, LoginOptions, FederatedLoginOptions, CustomOptions } from '@auth0/auth0-acul-js/login-id';
|
|
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").ScreenMembersOnLoginId, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginId, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
+
export declare const login: (payload: LoginOptions) => void | Promise<void>;
|
|
4
|
+
export declare const federatedLogin: (payload: FederatedLoginOptions) => void | Promise<void>;
|
|
5
|
+
export declare const passkeyLogin: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
|
+
export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
7
|
+
export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
|
|
8
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, type UseErrorOptions, type UseErrorsResult, type ErrorsResult, type ErrorKind, } from '../hooks';
|
|
9
|
+
export declare const useLoginId: () => LoginIdMembers;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@auth0/auth0-acul-js/login-id";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";export{useLoginIdentifiers}from"../hooks/utility/login-identifiers.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:i}=r,m=new s(n),{useUser:u,useTenant:a,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:d,useTransaction:g,useUntrustedData:j}=m,k=o=>i(n.login(o)),x=o=>i(n.federatedLogin(o)),l=o=>i(n.passkeyLogin(o)),C=o=>i(n.pickCountryCode(o)),y=()=>e(()=>n,[]);export{x as federatedLogin,k as login,l as passkeyLogin,C as pickCountryCode,c as useBranding,h as useClient,y as useLoginId,p as useOrganization,f as usePrompt,d as useScreen,a as useTenant,g as useTransaction,j as useUntrustedData,u as useUser};
|
|
2
|
+
//# sourceMappingURL=login-id.js.map
|