@auth0/auth0-acul-react 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +214 -11
- package/dist/export/getting-started.d.ts +1 -1
- package/dist/export/hooks.d.ts +1 -1
- package/dist/hooks/common/errors.d.ts +19 -19
- package/dist/hooks/common/errors.js +1 -1
- package/dist/hooks/common/errors.js.map +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/utility/passkey-autofill.d.ts +86 -0
- package/dist/hooks/utility/passkey-autofill.js +2 -0
- package/dist/hooks/utility/passkey-autofill.js.map +1 -0
- package/dist/hooks/utility/polling-manager.d.ts +1 -0
- package/dist/hooks/utility/polling-manager.js.map +1 -1
- package/dist/hooks/utility/validate-password.js +1 -1
- package/dist/hooks/utility/validate-password.js.map +1 -1
- package/dist/hooks/utility/validate-username.js +1 -1
- package/dist/hooks/utility/validate-username.js.map +1 -1
- package/dist/screens/accept-invitation.d.ts +1 -1
- package/dist/screens/accept-invitation.js.map +1 -1
- package/dist/screens/consent.d.ts +1 -1
- package/dist/screens/consent.js.map +1 -1
- package/dist/screens/customized-consent.d.ts +1 -1
- package/dist/screens/customized-consent.js.map +1 -1
- package/dist/screens/device-code-activation-allowed.d.ts +1 -1
- package/dist/screens/device-code-activation-allowed.js.map +1 -1
- package/dist/screens/device-code-activation-denied.d.ts +1 -1
- package/dist/screens/device-code-activation-denied.js.map +1 -1
- package/dist/screens/device-code-activation.d.ts +1 -1
- package/dist/screens/device-code-activation.js.map +1 -1
- package/dist/screens/device-code-confirmation.d.ts +1 -1
- package/dist/screens/device-code-confirmation.js.map +1 -1
- package/dist/screens/email-identifier-challenge.d.ts +1 -1
- package/dist/screens/email-identifier-challenge.js.map +1 -1
- package/dist/screens/email-otp-challenge.d.ts +1 -1
- package/dist/screens/email-otp-challenge.js.map +1 -1
- package/dist/screens/email-verification-result.d.ts +1 -1
- package/dist/screens/email-verification-result.js.map +1 -1
- package/dist/screens/interstitial-captcha.d.ts +1 -1
- package/dist/screens/interstitial-captcha.js.map +1 -1
- package/dist/screens/login-email-verification.d.ts +1 -1
- package/dist/screens/login-email-verification.js.map +1 -1
- package/dist/screens/login-id.d.ts +2 -1
- package/dist/screens/login-id.js +1 -1
- package/dist/screens/login-id.js.map +1 -1
- package/dist/screens/login-password.d.ts +3 -2
- package/dist/screens/login-password.js +1 -1
- package/dist/screens/login-password.js.map +1 -1
- package/dist/screens/login-passwordless-email-code.d.ts +1 -1
- package/dist/screens/login-passwordless-email-code.js.map +1 -1
- package/dist/screens/login-passwordless-sms-otp.d.ts +1 -1
- package/dist/screens/login-passwordless-sms-otp.js.map +1 -1
- package/dist/screens/login.d.ts +1 -1
- package/dist/screens/login.js.map +1 -1
- package/dist/screens/logout-aborted.d.ts +1 -1
- package/dist/screens/logout-aborted.js.map +1 -1
- package/dist/screens/logout-complete.d.ts +1 -1
- package/dist/screens/logout-complete.js.map +1 -1
- package/dist/screens/logout.d.ts +1 -1
- package/dist/screens/logout.js.map +1 -1
- package/dist/screens/mfa-begin-enroll-options.d.ts +1 -1
- package/dist/screens/mfa-begin-enroll-options.js.map +1 -1
- package/dist/screens/mfa-country-codes.d.ts +1 -1
- package/dist/screens/mfa-country-codes.js.map +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.d.ts +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -1
- package/dist/screens/mfa-email-challenge.d.ts +1 -1
- package/dist/screens/mfa-email-challenge.js.map +1 -1
- package/dist/screens/mfa-email-list.d.ts +1 -1
- package/dist/screens/mfa-email-list.js.map +1 -1
- package/dist/screens/mfa-enroll-result.d.ts +1 -1
- package/dist/screens/mfa-enroll-result.js.map +1 -1
- package/dist/screens/mfa-login-options.d.ts +3 -2
- package/dist/screens/mfa-login-options.js +1 -1
- package/dist/screens/mfa-login-options.js.map +1 -1
- package/dist/screens/mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/mfa-otp-challenge.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-code.d.ts +1 -1
- package/dist/screens/mfa-otp-enrollment-code.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.d.ts +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/mfa-phone-challenge.js.map +1 -1
- package/dist/screens/mfa-phone-enrollment.d.ts +1 -1
- package/dist/screens/mfa-phone-enrollment.js.map +1 -1
- package/dist/screens/mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/mfa-push-enrollment-qr.d.ts +4 -2
- package/dist/screens/mfa-push-enrollment-qr.js +1 -1
- package/dist/screens/mfa-push-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-push-list.d.ts +1 -1
- package/dist/screens/mfa-push-list.js.map +1 -1
- package/dist/screens/mfa-push-welcome.d.ts +1 -1
- package/dist/screens/mfa-push-welcome.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/mfa-sms-challenge.js.map +1 -1
- package/dist/screens/mfa-sms-enrollment.d.ts +1 -1
- package/dist/screens/mfa-sms-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-list.d.ts +1 -1
- package/dist/screens/mfa-sms-list.js.map +1 -1
- package/dist/screens/mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/mfa-voice-challenge.js.map +1 -1
- package/dist/screens/mfa-voice-enrollment.d.ts +1 -1
- package/dist/screens/mfa-voice-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.d.ts +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -1
- package/dist/screens/mfa-webauthn-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -1
- package/dist/screens/organization-picker.d.ts +1 -1
- package/dist/screens/organization-picker.js.map +1 -1
- package/dist/screens/organization-selection.d.ts +1 -1
- package/dist/screens/organization-selection.js.map +1 -1
- package/dist/screens/passkey-enrollment-local.d.ts +1 -1
- package/dist/screens/passkey-enrollment-local.js.map +1 -1
- package/dist/screens/passkey-enrollment.d.ts +1 -1
- package/dist/screens/passkey-enrollment.js.map +1 -1
- package/dist/screens/phone-identifier-challenge.d.ts +3 -1
- package/dist/screens/phone-identifier-challenge.js +1 -1
- package/dist/screens/phone-identifier-challenge.js.map +1 -1
- package/dist/screens/phone-identifier-enrollment.d.ts +1 -1
- package/dist/screens/phone-identifier-enrollment.js.map +1 -1
- package/dist/screens/redeem-ticket.d.ts +1 -1
- package/dist/screens/redeem-ticket.js.map +1 -1
- package/dist/screens/reset-password-email.d.ts +1 -1
- package/dist/screens/reset-password-email.js.map +1 -1
- package/dist/screens/reset-password-error.d.ts +1 -1
- package/dist/screens/reset-password-error.js.map +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/reset-password-request.d.ts +1 -1
- package/dist/screens/reset-password-request.js.map +1 -1
- package/dist/screens/reset-password-success.d.ts +1 -1
- package/dist/screens/reset-password-success.js.map +1 -1
- package/dist/screens/reset-password.d.ts +1 -1
- package/dist/screens/reset-password.js.map +1 -1
- package/dist/screens/signup-id.d.ts +1 -1
- package/dist/screens/signup-id.js.map +1 -1
- package/dist/screens/signup-password.d.ts +3 -2
- package/dist/screens/signup-password.js +1 -1
- package/dist/screens/signup-password.js.map +1 -1
- package/dist/screens/signup.d.ts +1 -1
- package/dist/screens/signup.js.map +1 -1
- package/dist/state/error-store.d.ts +14 -14
- package/dist/state/error-store.js +1 -1
- package/dist/state/error-store.js.map +1 -1
- package/dist/telemetry.js +1 -1
- package/package.json +4 -3
|
@@ -52,6 +52,7 @@ export interface MfaPollingResult {
|
|
|
52
52
|
*@supportedScreens
|
|
53
53
|
* - `mfa-push-challenge-push`
|
|
54
54
|
* - `reset-password-mfa-push-challenge-push`
|
|
55
|
+
* - `mfa-push-enrollment-qr`
|
|
55
56
|
*
|
|
56
57
|
* @returns object {@link MfaPollingResult} containing:
|
|
57
58
|
* - `isRunning` — `true` while polling is active.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polling-manager.js","sources":["../../../src/hooks/utility/polling-manager.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { getScreen } from '../../state/instance-store';\nimport { errorManager } from '../common/errors';\n\nimport type {\n MfaPollingOptions,\n MfaPushPollingControl,\n Error as ULError,\n} from '@auth0/auth0-acul-js';\n\n/**\n * Result object returned by {@link useMfaPolling}.\n *\n * @public\n */\nexport interface MfaPollingResult {\n /**\n * Indicates whether the MFA push polling process is currently active.\n *\n * - `true` — Polling is running and awaiting completion.\n * - `false` — Polling has stopped, either due to completion,\n * manual cancellation, or component unmount.\n */\n isRunning: boolean;\n\n /**\n * Starts or resumes the polling process.\n *\n * - If polling is already active, this call has no effect.\n * - If previously stopped, calling this restarts the polling loop.\n */\n startPolling: () => void;\n\n /**\n * Stops the polling process immediately.\n *\n * - Cancels any scheduled timers or in-flight requests.\n * - Safe to call multiple times; subsequent calls have no effect.\n */\n stopPolling: () => void;\n}\n\n/**\n * React hook to manage MFA push polling (e.g., waiting for a push notification approval)\n * on an Auth0 Advanced Customization of Universal Login (ACUL) screen.\n *\n * This hook sets up and controls a long-running polling loop that repeatedly checks\n * the MFA push challenge endpoint until one of the following occurs:\n *\n * - The challenge is **approved or denied** by the user, triggering `options.onCompleted`.\n * - An **error** occurs (network error, non-200/429 response), triggering `options.onError`.\n * - The **component unmounts** or `stopPolling()` is called, which cancels polling.\n *\n * ### Key Features\n * - `isRunning` is **reactive** — it updates automatically if the polling loop\n * stops internally or is canceled.\n * - Uses a **stable single polling instance** (`useRef`) to prevent\n * duplicate network calls and unintended restarts during React re-renders.\n * - **Automatic cleanup** on unmount: no orphan timers or leaked XHR requests.\n *\n * @param options - {@link MfaPollingOptions} specifying the polling interval,\n * success callback (`onCompleted`), and optional error handler (`onError`).\n *\n *@supportedScreens\n * - `mfa-push-challenge-push`\n * - `reset-password-mfa-push-challenge-push`\n *\n * @returns object {@link MfaPollingResult} containing:\n * - `isRunning` — `true` while polling is active.\n * - `startPolling()` — starts or resumes polling.\n * - `stopPolling()` — stops polling immediately.\n *\n * @example\n * ```tsx\n * import { useMfaPolling } from '@auth0/auth0-acul-react/mfa-push-challenge-push';\n *\n * export function MfaPushStatus() {\n * const { isRunning, startPolling, stopPolling } = useMfaPolling({\n * intervalMs: 5000,\n * onCompleted: () => console.log('Push approved!/denied'),\n * onError: (error) => console.error('Polling error:', error)\n * });\n *\n * return (\n * <div>\n * <button onClick={startPolling} disabled={isRunning}>\n * {isRunning ? 'Waiting for approval…' : 'Start MFA Polling'}\n * </button>\n * {isRunning && <button onClick={stopPolling}>Cancel</button>}\n * </div>\n * );\n * }\n * ```\n *\n * @remarks\n * - The `onError` callback receives an {@link ULError} object\n * with `status` and `responseText` describing the server response.\n * - Internal rate-limit responses (`429`) are automatically handled:\n * polling waits for the reset window before retrying.\n * - Calling `startPolling()` repeatedly while running is safe and idempotent.\n *\n * @public\n */\nexport function useMfaPolling(options?: MfaPollingOptions): MfaPollingResult {\n const [isRunning, setIsRunning] = useState(false);\n\n // Wrap callbacks safely to immediately update `isRunning` on completion/error.\n const wrappedOptions: MfaPollingOptions = useMemo(() => {\n const safe = options ?? {};\n return {\n ...safe,\n onCompleted: () => {\n setIsRunning(false);\n safe.onCompleted?.();\n },\n onError: (error: ULError) => {\n setIsRunning(false);\n errorManager.pushServerErrors([error]);\n safe.onError?.(error);\n },\n };\n }, [options]);\n\n // Stable screen instance\n const screen = useMemo(\n () => getScreen<{ pollingManager: (o: MfaPollingOptions) => MfaPushPollingControl }>(),\n []\n );\n\n // Single polling control instance per component\n const pollingControlRef = useRef<MfaPushPollingControl | null>(null);\n if (pollingControlRef.current === null) {\n pollingControlRef.current = screen.pollingManager(wrappedOptions);\n }\n const pollingControl = pollingControlRef.current;\n\n const startPolling = useCallback(() => {\n pollingControl.startPolling();\n setIsRunning(true);\n }, [pollingControl]);\n\n const stopPolling = useCallback(() => {\n pollingControl.stopPolling();\n setIsRunning(false);\n }, [pollingControl]);\n\n // One effect handles cleanup and state sync\n useEffect(() => {\n let mounted = true;\n\n const tick = () => {\n if (!mounted) {\n return;\n }\n const running = pollingControl.isRunning();\n setIsRunning(running);\n if (running) {\n requestAnimationFrame(tick);\n }\n };\n tick();\n\n return () => {\n mounted = false;\n pollingControl.stopPolling();\n };\n }, [pollingControl]);\n\n return { isRunning, startPolling, stopPolling };\n}\n\nexport type { MfaPollingOptions, ULError };\n"],"names":["useMfaPolling","options","isRunning","setIsRunning","useState","wrappedOptions","useMemo","safe","onCompleted","onError","error","errorManager","pushServerErrors","screen","getScreen","pollingControlRef","useRef","current","pollingManager","pollingControl","startPolling","useCallback","stopPolling","useEffect","mounted","tick","running","requestAnimationFrame"],"mappings":"
|
|
1
|
+
{"version":3,"file":"polling-manager.js","sources":["../../../src/hooks/utility/polling-manager.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { getScreen } from '../../state/instance-store';\nimport { errorManager } from '../common/errors';\n\nimport type {\n MfaPollingOptions,\n MfaPushPollingControl,\n Error as ULError,\n} from '@auth0/auth0-acul-js';\n\n/**\n * Result object returned by {@link useMfaPolling}.\n *\n * @public\n */\nexport interface MfaPollingResult {\n /**\n * Indicates whether the MFA push polling process is currently active.\n *\n * - `true` — Polling is running and awaiting completion.\n * - `false` — Polling has stopped, either due to completion,\n * manual cancellation, or component unmount.\n */\n isRunning: boolean;\n\n /**\n * Starts or resumes the polling process.\n *\n * - If polling is already active, this call has no effect.\n * - If previously stopped, calling this restarts the polling loop.\n */\n startPolling: () => void;\n\n /**\n * Stops the polling process immediately.\n *\n * - Cancels any scheduled timers or in-flight requests.\n * - Safe to call multiple times; subsequent calls have no effect.\n */\n stopPolling: () => void;\n}\n\n/**\n * React hook to manage MFA push polling (e.g., waiting for a push notification approval)\n * on an Auth0 Advanced Customization of Universal Login (ACUL) screen.\n *\n * This hook sets up and controls a long-running polling loop that repeatedly checks\n * the MFA push challenge endpoint until one of the following occurs:\n *\n * - The challenge is **approved or denied** by the user, triggering `options.onCompleted`.\n * - An **error** occurs (network error, non-200/429 response), triggering `options.onError`.\n * - The **component unmounts** or `stopPolling()` is called, which cancels polling.\n *\n * ### Key Features\n * - `isRunning` is **reactive** — it updates automatically if the polling loop\n * stops internally or is canceled.\n * - Uses a **stable single polling instance** (`useRef`) to prevent\n * duplicate network calls and unintended restarts during React re-renders.\n * - **Automatic cleanup** on unmount: no orphan timers or leaked XHR requests.\n *\n * @param options - {@link MfaPollingOptions} specifying the polling interval,\n * success callback (`onCompleted`), and optional error handler (`onError`).\n *\n *@supportedScreens\n * - `mfa-push-challenge-push`\n * - `reset-password-mfa-push-challenge-push`\n * - `mfa-push-enrollment-qr`\n *\n * @returns object {@link MfaPollingResult} containing:\n * - `isRunning` — `true` while polling is active.\n * - `startPolling()` — starts or resumes polling.\n * - `stopPolling()` — stops polling immediately.\n *\n * @example\n * ```tsx\n * import { useMfaPolling } from '@auth0/auth0-acul-react/mfa-push-challenge-push';\n *\n * export function MfaPushStatus() {\n * const { isRunning, startPolling, stopPolling } = useMfaPolling({\n * intervalMs: 5000,\n * onCompleted: () => console.log('Push approved!/denied'),\n * onError: (error) => console.error('Polling error:', error)\n * });\n *\n * return (\n * <div>\n * <button onClick={startPolling} disabled={isRunning}>\n * {isRunning ? 'Waiting for approval…' : 'Start MFA Polling'}\n * </button>\n * {isRunning && <button onClick={stopPolling}>Cancel</button>}\n * </div>\n * );\n * }\n * ```\n *\n * @remarks\n * - The `onError` callback receives an {@link ULError} object\n * with `status` and `responseText` describing the server response.\n * - Internal rate-limit responses (`429`) are automatically handled:\n * polling waits for the reset window before retrying.\n * - Calling `startPolling()` repeatedly while running is safe and idempotent.\n *\n * @public\n */\nexport function useMfaPolling(options?: MfaPollingOptions): MfaPollingResult {\n const [isRunning, setIsRunning] = useState(false);\n\n // Wrap callbacks safely to immediately update `isRunning` on completion/error.\n const wrappedOptions: MfaPollingOptions = useMemo(() => {\n const safe = options ?? {};\n return {\n ...safe,\n onCompleted: () => {\n setIsRunning(false);\n safe.onCompleted?.();\n },\n onError: (error: ULError) => {\n setIsRunning(false);\n errorManager.pushServerErrors([error]);\n safe.onError?.(error);\n },\n };\n }, [options]);\n\n // Stable screen instance\n const screen = useMemo(\n () => getScreen<{ pollingManager: (o: MfaPollingOptions) => MfaPushPollingControl }>(),\n []\n );\n\n // Single polling control instance per component\n const pollingControlRef = useRef<MfaPushPollingControl | null>(null);\n if (pollingControlRef.current === null) {\n pollingControlRef.current = screen.pollingManager(wrappedOptions);\n }\n const pollingControl = pollingControlRef.current;\n\n const startPolling = useCallback(() => {\n pollingControl.startPolling();\n setIsRunning(true);\n }, [pollingControl]);\n\n const stopPolling = useCallback(() => {\n pollingControl.stopPolling();\n setIsRunning(false);\n }, [pollingControl]);\n\n // One effect handles cleanup and state sync\n useEffect(() => {\n let mounted = true;\n\n const tick = () => {\n if (!mounted) {\n return;\n }\n const running = pollingControl.isRunning();\n setIsRunning(running);\n if (running) {\n requestAnimationFrame(tick);\n }\n };\n tick();\n\n return () => {\n mounted = false;\n pollingControl.stopPolling();\n };\n }, [pollingControl]);\n\n return { isRunning, startPolling, stopPolling };\n}\n\nexport type { MfaPollingOptions, ULError };\n"],"names":["useMfaPolling","options","isRunning","setIsRunning","useState","wrappedOptions","useMemo","safe","onCompleted","onError","error","errorManager","pushServerErrors","screen","getScreen","pollingControlRef","useRef","current","pollingManager","pollingControl","startPolling","useCallback","stopPolling","useEffect","mounted","tick","running","requestAnimationFrame"],"mappings":"uMAyGM,SAAUA,EAAcC,GAC5B,MAAOC,EAAWC,GAAgBC,GAAS,GAGrCC,EAAoCC,EAAQ,KAChD,MAAMC,EAAON,GAAW,CAAA,EACxB,MAAO,IACFM,EACHC,YAAa,KACXL,GAAa,GACbI,EAAKC,iBAEPC,QAAUC,IACRP,GAAa,GACbQ,EAAaC,iBAAiB,CAACF,IAC/BH,EAAKE,UAAUC,MAGlB,CAACT,IAGEY,EAASP,EACb,IAAMQ,IACN,IAIIC,EAAoBC,EAAqC,MAC7B,OAA9BD,EAAkBE,UACpBF,EAAkBE,QAAUJ,EAAOK,eAAeb,IAEpD,MAAMc,EAAiBJ,EAAkBE,QAEnCG,EAAeC,EAAY,KAC/BF,EAAeC,eACfjB,GAAa,IACZ,CAACgB,IAEEG,EAAcD,EAAY,KAC9BF,EAAeG,cACfnB,GAAa,IACZ,CAACgB,IAwBJ,OArBAI,EAAU,KACR,IAAIC,GAAU,EAEd,MAAMC,EAAO,KACX,IAAKD,EACH,OAEF,MAAME,EAAUP,EAAejB,YAC/BC,EAAauB,GACTA,GACFC,sBAAsBF,IAK1B,OAFAA,IAEO,KACLD,GAAU,EACVL,EAAeG,gBAEhB,CAACH,IAEG,CAAEjB,YAAWkB,eAAcE,cACpC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useMemo as r}from"react";import{getScreen as e}from"../../state/instance-store.js";import{errorManager as
|
|
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,t){return r(()=>{const r=e().validatePassword(s);return t?.includeInErrors&&o.replaceValidationErrors(r.isValid?[]:[{code:"password-policy-error",field:"password",message:"The password does not meet the required criteria.",rules:r.results}],{byField:"password"}),r},[s,t?.includeInErrors])}export{s as usePasswordValidation};
|
|
2
2
|
//# sourceMappingURL=validate-password.js.map
|
|
@@ -1 +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.
|
|
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.replaceValidationErrors(\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","replaceValidationErrors","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,wBACXL,EAAWM,QACP,GACA,CACE,CACEC,KAAM,wBACNC,MAAO,WACPC,QAAS,oDACTC,MAAOV,EAAWW,UAG1B,CAAEC,QAAS,aAIRZ,GACN,CAACH,EAAUC,GAASK,iBACzB"}
|
|
@@ -1,2 +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,
|
|
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,i){return r(()=>{const r=e().validateUsername(s);return i?.includeInErrors&&o.replaceValidationErrors(r.errors,{byField:"username"}),{isValid:r.isValid,errors:r.errors}},[s,i?.includeInErrors])}export{s as useUsernameValidation};
|
|
2
2
|
//# sourceMappingURL=validate-username.js.map
|
|
@@ -1 +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.
|
|
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.replaceValidationErrors(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","replaceValidationErrors","errors","byField","isValid"],"mappings":"6IAgEM,SAAUA,EACdC,EACAC,GAEA,OAAOC,EAAQ,KACb,MACMC,EADWC,IACOC,iBAAiBL,GAMzC,OAJIC,GAASK,iBACXC,EAAaC,wBAAwBL,EAAOM,OAAQ,CAAEC,QAAS,aAG1D,CAAEC,QAASR,EAAOQ,QAASF,OAAQN,EAAOM,SAChD,CAACT,EAAUC,GAASK,iBACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptInvitationMembers, CustomOptions } from '@auth0/auth0-acul-js/accept-invitation';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnAcceptInvitation, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const acceptInvitation: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
5
5
|
export declare const useAcceptInvitation: () => AcceptInvitationMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accept-invitation.js","sources":["../../src/screens/accept-invitation.tsx"],"sourcesContent":["import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n AcceptInvitationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/accept-invitation';\n\n// Register the singleton instance of AcceptInvitation\nconst instance = registerScreen<AcceptInvitationMembers>(AcceptInvitation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<AcceptInvitationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const acceptInvitation = (payload?: CustomOptions) =>\n withError(instance.acceptInvitation(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"accept-invitation.js","sources":["../../src/screens/accept-invitation.tsx"],"sourcesContent":["import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n AcceptInvitationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/accept-invitation';\n\n// Register the singleton instance of AcceptInvitation\nconst instance = registerScreen<AcceptInvitationMembers>(AcceptInvitation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<AcceptInvitationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const acceptInvitation = (payload?: CustomOptions) =>\n withError(instance.acceptInvitation(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of AcceptInvitation\nexport const useAcceptInvitation = (): AcceptInvitationMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","AcceptInvitation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","acceptInvitation","payload","useAcceptInvitation","useMemo"],"mappings":"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,IAMzBC,EAAsB,IAA+BC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent
|
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnConsent, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const deny: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
6
|
export declare const useConsent: () => ConsentMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent.js","sources":["../../src/screens/consent.tsx"],"sourcesContent":["import Consent from '@auth0/auth0-acul-js/consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent';\n\n// Register the singleton instance of Consent\nconst instance = registerScreen<ConsentMembers>(Consent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ConsentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"consent.js","sources":["../../src/screens/consent.tsx"],"sourcesContent":["import Consent from '@auth0/auth0-acul-js/consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { ConsentMembers, CustomOptions } from '@auth0/auth0-acul-js/consent';\n\n// Register the singleton instance of Consent\nconst instance = registerScreen<ConsentMembers>(Consent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<ConsentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Consent\nexport const useConsent = (): ConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Consent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useConsent","useMemo"],"mappings":"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,IAM5DE,EAAa,IAAsBC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { CustomizedConsentMembers, CustomOptions } from '@auth0/auth0-acul-
|
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnCustomizedConsent, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const accept: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const deny: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
6
|
export declare const useCustomizedConsent: () => CustomizedConsentMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customized-consent.js","sources":["../../src/screens/customized-consent.tsx"],"sourcesContent":["import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n CustomizedConsentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/customized-consent';\n\n// Register the singleton instance of CustomizedConsent\nconst instance = registerScreen<CustomizedConsentMembers>(CustomizedConsent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<CustomizedConsentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"customized-consent.js","sources":["../../src/screens/customized-consent.tsx"],"sourcesContent":["import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n CustomizedConsentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/customized-consent';\n\n// Register the singleton instance of CustomizedConsent\nconst instance = registerScreen<CustomizedConsentMembers>(CustomizedConsent)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<CustomizedConsentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const accept = (payload?: CustomOptions) => withError(instance.accept(payload));\nexport const deny = (payload?: CustomOptions) => withError(instance.deny(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of CustomizedConsent\nexport const useCustomizedConsent = (): CustomizedConsentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","CustomizedConsent","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","accept","payload","deny","useCustomizedConsent","useMemo"],"mappings":"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,IAM5DE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
4
|
export declare const useDeviceCodeActivationAllowed: () => DeviceCodeActivationAllowedMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation-allowed.js","sources":["../../src/screens/device-code-activation-allowed.tsx"],"sourcesContent":["import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';\n\n// Register the singleton instance of DeviceCodeActivationAllowed\nconst instance = registerScreen<DeviceCodeActivationAllowedMembers>(DeviceCodeActivationAllowed)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationAllowedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"device-code-activation-allowed.js","sources":["../../src/screens/device-code-activation-allowed.tsx"],"sourcesContent":["import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationAllowedMembers } from '@auth0/auth0-acul-js/device-code-activation-allowed';\n\n// Register the singleton instance of DeviceCodeActivationAllowed\nconst instance = registerScreen<DeviceCodeActivationAllowedMembers>(DeviceCodeActivationAllowed)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationAllowedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationAllowed\nexport const useDeviceCodeActivationAllowed = (): DeviceCodeActivationAllowedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationAllowed","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationAllowed","useMemo"],"mappings":"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,EAMSW,EAAiC,IAC5CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
4
|
export declare const useDeviceCodeActivationDenied: () => DeviceCodeActivationDeniedMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation-denied.js","sources":["../../src/screens/device-code-activation-denied.tsx"],"sourcesContent":["import DeviceCodeActivationDenied from '@auth0/auth0-acul-js/device-code-activation-denied';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';\n\n// Register the singleton instance of DeviceCodeActivationDenied\nconst instance = registerScreen<DeviceCodeActivationDeniedMembers>(DeviceCodeActivationDenied)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationDeniedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"device-code-activation-denied.js","sources":["../../src/screens/device-code-activation-denied.tsx"],"sourcesContent":["import DeviceCodeActivationDenied from '@auth0/auth0-acul-js/device-code-activation-denied';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { DeviceCodeActivationDeniedMembers } from '@auth0/auth0-acul-js/device-code-activation-denied';\n\n// Register the singleton instance of DeviceCodeActivationDenied\nconst instance = registerScreen<DeviceCodeActivationDeniedMembers>(DeviceCodeActivationDenied)!;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationDeniedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivationDenied\nexport const useDeviceCodeActivationDenied = (): DeviceCodeActivationDeniedMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivationDenied","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useDeviceCodeActivationDenied","useMemo"],"mappings":"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,EAMSW,EAAgC,IAC3CC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DeviceCodeActivationMembers, ContinueOptions } from '@auth0/auth0-acul-js/device-code-activation';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const continueMethod: (payload: ContinueOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
5
5
|
export declare const useDeviceCodeActivation: () => DeviceCodeActivationMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-activation.js","sources":["../../src/screens/device-code-activation.tsx"],"sourcesContent":["import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeActivationMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/device-code-activation';\n\n// Register the singleton instance of DeviceCodeActivation\nconst instance = registerScreen<DeviceCodeActivationMembers>(DeviceCodeActivation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"device-code-activation.js","sources":["../../src/screens/device-code-activation.tsx"],"sourcesContent":["import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeActivationMembers,\n ContinueOptions,\n} from '@auth0/auth0-acul-js/device-code-activation';\n\n// Register the singleton instance of DeviceCodeActivation\nconst instance = registerScreen<DeviceCodeActivationMembers>(DeviceCodeActivation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeActivationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeActivation\nexport const useDeviceCodeActivation = (): DeviceCodeActivationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeActivation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","useDeviceCodeActivation","useMemo"],"mappings":"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,IAM3EE,EAA0B,IACrCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { DeviceCodeConfirmationMembers, CustomOptions } from '@auth0/auth0-
|
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnDeviceCodeConfirmation, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const confirm: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
4
|
export declare const cancel: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
6
|
export declare const useDeviceCodeConfirmation: () => DeviceCodeConfirmationMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-code-confirmation.js","sources":["../../src/screens/device-code-confirmation.tsx"],"sourcesContent":["import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeConfirmationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/device-code-confirmation';\n\n// Register the singleton instance of DeviceCodeConfirmation\nconst instance = registerScreen<DeviceCodeConfirmationMembers>(DeviceCodeConfirmation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeConfirmationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const confirm = (payload?: CustomOptions) => withError(instance.confirm(payload));\nexport const cancel = (payload?: CustomOptions) => withError(instance.cancel(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"device-code-confirmation.js","sources":["../../src/screens/device-code-confirmation.tsx"],"sourcesContent":["import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n DeviceCodeConfirmationMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/device-code-confirmation';\n\n// Register the singleton instance of DeviceCodeConfirmation\nconst instance = registerScreen<DeviceCodeConfirmationMembers>(DeviceCodeConfirmation)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<DeviceCodeConfirmationMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const confirm = (payload?: CustomOptions) => withError(instance.confirm(payload));\nexport const cancel = (payload?: CustomOptions) => withError(instance.cancel(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of DeviceCodeConfirmation\nexport const useDeviceCodeConfirmation = (): DeviceCodeConfirmationMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","DeviceCodeConfirmation","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirm","payload","cancel","useDeviceCodeConfirmation","useMemo"],"mappings":"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,IAMhEE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -4,5 +4,5 @@ export declare const submitEmailChallenge: (payload: EmailChallengeOptions) => v
|
|
|
4
4
|
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
6
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
7
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
8
8
|
export declare const useEmailIdentifierChallenge: () => EmailIdentifierChallengeMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitEmailChallenge","payload","resendCode","returnToPrevious","useEmailIdentifierChallenge","useMemo"],"mappings":"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,IASzBG,EAA8B,IACzCC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const submitCode: (options: OtpCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (options?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
7
|
export declare const useEmailOTPChallenge: () => EmailOTPChallengeMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-otp-challenge.js","sources":["../../src/screens/email-otp-challenge.tsx"],"sourcesContent":["import EmailOTPChallenge from '@auth0/auth0-acul-js/email-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailOTPChallengeMembers,\n OtpCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-otp-challenge';\n\n// Register the singleton instance of EmailOTPChallenge\nconst instance = registerScreen<EmailOTPChallengeMembers>(EmailOTPChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailOTPChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitCode = (options: OtpCodeOptions) => withError(instance.submitCode(options));\nexport const resendCode = (options?: CustomOptions) => withError(instance.resendCode(options));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"email-otp-challenge.js","sources":["../../src/screens/email-otp-challenge.tsx"],"sourcesContent":["import EmailOTPChallenge from '@auth0/auth0-acul-js/email-otp-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailOTPChallengeMembers,\n OtpCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-otp-challenge';\n\n// Register the singleton instance of EmailOTPChallenge\nconst instance = registerScreen<EmailOTPChallengeMembers>(EmailOTPChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailOTPChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitCode = (options: OtpCodeOptions) => withError(instance.submitCode(options));\nexport const resendCode = (options?: CustomOptions) => withError(instance.resendCode(options));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailOTPChallenge\nexport const useEmailOTPChallenge = (): EmailOTPChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailOTPChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitCode","options","resendCode","useEmailOTPChallenge","useMemo"],"mappings":"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,IASxEE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnEmailVerificationResult, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
4
|
export declare const useEmailVerificationResult: () => EmailVerificationResultMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-verification-result.js","sources":["../../src/screens/email-verification-result.tsx"],"sourcesContent":["import EmailVerificationResult from '@auth0/auth0-acul-js/email-verification-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';\n\n// Register the singleton instance of EmailVerificationResult\nconst instance = registerScreen<EmailVerificationResultMembers>(EmailVerificationResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<EmailVerificationResultMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"email-verification-result.js","sources":["../../src/screens/email-verification-result.tsx"],"sourcesContent":["import EmailVerificationResult from '@auth0/auth0-acul-js/email-verification-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { EmailVerificationResultMembers } from '@auth0/auth0-acul-js/email-verification-result';\n\n// Register the singleton instance of EmailVerificationResult\nconst instance = registerScreen<EmailVerificationResultMembers>(EmailVerificationResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<EmailVerificationResultMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailVerificationResult\nexport const useEmailVerificationResult = (): EmailVerificationResultMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailVerificationResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useEmailVerificationResult","useMemo"],"mappings":"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,EAMSW,EAA6B,IACxCC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
4
|
export declare const useInterstitialCaptcha: () => InterstitialCaptchaMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interstitial-captcha.js","sources":["../../src/screens/interstitial-captcha.tsx"],"sourcesContent":["import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';\n\n// Register the singleton instance of InterstitialCaptcha\nconst instance = registerScreen<InterstitialCaptchaMembers>(InterstitialCaptcha)!;\n\n// Context hooks\nconst factory = new ContextHooks<InterstitialCaptchaMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"interstitial-captcha.js","sources":["../../src/screens/interstitial-captcha.tsx"],"sourcesContent":["import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { InterstitialCaptchaMembers } from '@auth0/auth0-acul-js/interstitial-captcha';\n\n// Register the singleton instance of InterstitialCaptcha\nconst instance = registerScreen<InterstitialCaptchaMembers>(InterstitialCaptcha)!;\n\n// Context hooks\nconst factory = new ContextHooks<InterstitialCaptchaMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of InterstitialCaptcha\nexport const useInterstitialCaptcha = (): InterstitialCaptchaMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","InterstitialCaptcha","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useInterstitialCaptcha","useMemo"],"mappings":"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,EAMSW,EAAyB,IAAkCC,EAAQ,IAAMf,EAAU"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const continueWithCode: (payload: ContinueWithCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (payload?: ResendCodeOptions) => void | Promise<void>;
|
|
5
5
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
7
|
export declare const useLoginEmailVerification: () => LoginEmailVerificationMembers;
|
|
@@ -1 +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 {
|
|
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 { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginEmailVerification\nexport const useLoginEmailVerification = (): LoginEmailVerificationMembers =>\n useMemo(() => instance, []);\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,IAS5EE,EAA4B,IACvCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -5,5 +5,6 @@ export declare const federatedLogin: (payload: FederatedLoginOptions) => void |
|
|
|
5
5
|
export declare const passkeyLogin: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
6
|
export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
7
7
|
export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
|
|
8
|
-
export {
|
|
8
|
+
export { usePasskeyAutofill } from '../hooks/utility/passkey-autofill';
|
|
9
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
9
10
|
export declare const useLoginId: () => LoginIdMembers;
|
package/dist/screens/login-id.js
CHANGED
|
@@ -1,2 +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,
|
|
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";export{usePasskeyAutofill}from"../hooks/utility/passkey-autofill.js";const n=t(o),{withError:i}=r,u=new s(n),{useUser:m,useTenant:a,useBranding:c,useClient:f,useOrganization:p,usePrompt:h,useScreen:k,useTransaction:l,useUntrustedData:d}=u,j=o=>i(n.login(o)),g=o=>i(n.federatedLogin(o)),x=o=>i(n.passkeyLogin(o)),y=o=>i(n.pickCountryCode(o)),C=()=>e(()=>n,[]);export{g as federatedLogin,j as login,x as passkeyLogin,y as pickCountryCode,c as useBranding,f as useClient,C as useLoginId,p as useOrganization,h as usePrompt,k as useScreen,a as useTenant,l as useTransaction,d as useUntrustedData,m as useUser};
|
|
2
2
|
//# sourceMappingURL=login-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-id.js","sources":["../../src/screens/login-id.tsx"],"sourcesContent":["import LoginId from '@auth0/auth0-acul-js/login-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginIdMembers,\n LoginOptions,\n FederatedLoginOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-id';\n\n// Register the singleton instance of LoginId\nconst instance = registerScreen<LoginIdMembers>(LoginId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginIdMembers>(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 login = (payload: LoginOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\nexport const passkeyLogin = (payload?: CustomOptions) => withError(instance.passkeyLogin(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"login-id.js","sources":["../../src/screens/login-id.tsx"],"sourcesContent":["import LoginId from '@auth0/auth0-acul-js/login-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginIdMembers,\n LoginOptions,\n FederatedLoginOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-id';\n\n// Register the singleton instance of LoginId\nconst instance = registerScreen<LoginIdMembers>(LoginId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginIdMembers>(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 login = (payload: LoginOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\nexport const passkeyLogin = (payload?: CustomOptions) => withError(instance.passkeyLogin(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Utility Hooks\nexport { usePasskeyAutofill } from '../hooks/utility/passkey-autofill';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginId\nexport const useLoginId = (): LoginIdMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LoginId","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","login","payload","federatedLogin","passkeyLogin","pickCountryCode","useLoginId","useMemo"],"mappings":"ojBAeA,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,EAASC,GAA0Bd,EAAUH,EAASgB,MAAMC,IAC5DC,EAAkBD,GAC7Bd,EAAUH,EAASkB,eAAeD,IACvBE,EAAgBF,GAA4Bd,EAAUH,EAASmB,aAAaF,IAC5EG,EAAmBH,GAC9Bd,EAAUH,EAASoB,gBAAgBH,IAYxBI,EAAa,IAAsBC,EAAQ,IAAMtB,EAAU"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { LoginPasswordMembers, LoginPasswordOptions, FederatedLoginOptions } from '@auth0/auth0-acul-js/login-password';
|
|
1
|
+
import type { LoginPasswordMembers, LoginPasswordOptions, FederatedLoginOptions, SwitchConnectionOptions } from '@auth0/auth0-acul-js/login-password';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnLoginPassword, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginPassword, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const login: (payload: LoginPasswordOptions) => void | Promise<void>;
|
|
4
4
|
export declare const federatedLogin: (payload: FederatedLoginOptions) => void | Promise<void>;
|
|
5
|
-
export
|
|
5
|
+
export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
7
|
export declare const useLoginPassword: () => LoginPasswordMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/login-password";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,u=new s(n),{useUser:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/login-password";import{useMemo as r}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as e}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=e,u=new s(n),{useUser:i,useTenant:a,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:j,useTransaction:d,useUntrustedData:x}=u,g=o=>m(n.login(o)),k=o=>m(n.federatedLogin(o)),l=o=>m(n.switchConnection(o)),w=()=>r(()=>n,[]);export{k as federatedLogin,g as login,l as switchConnection,c as useBranding,h as useClient,w as useLoginPassword,p as useOrganization,f as usePrompt,j as useScreen,a as useTenant,d as useTransaction,x as useUntrustedData,i as useUser};
|
|
2
2
|
//# sourceMappingURL=login-password.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-password.js","sources":["../../src/screens/login-password.tsx"],"sourcesContent":["import LoginPassword from '@auth0/auth0-acul-js/login-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordMembers,\n LoginPasswordOptions,\n FederatedLoginOptions,\n} from '@auth0/auth0-acul-js/login-password';\n\n// Register the singleton instance of LoginPassword\nconst instance = registerScreen<LoginPasswordMembers>(LoginPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordMembers>(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 login = (payload: LoginPasswordOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"login-password.js","sources":["../../src/screens/login-password.tsx"],"sourcesContent":["import LoginPassword from '@auth0/auth0-acul-js/login-password';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordMembers,\n LoginPasswordOptions,\n FederatedLoginOptions,\n SwitchConnectionOptions,\n} from '@auth0/auth0-acul-js/login-password';\n\n// Register the singleton instance of LoginPassword\nconst instance = registerScreen<LoginPasswordMembers>(LoginPassword)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordMembers>(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 login = (payload: LoginPasswordOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\nexport const switchConnection = (payload: SwitchConnectionOptions) =>\n withError(instance.switchConnection(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginPassword\nexport const useLoginPassword = (): LoginPasswordMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LoginPassword","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","login","payload","federatedLogin","switchConnection","useLoginPassword","useMemo"],"mappings":"8aAeA,MAAMA,EAAWC,EAAqCC,IAGhDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAmCN,IAC1CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAASC,GAAkCd,EAAUH,EAASgB,MAAMC,IACpEC,EAAkBD,GAC7Bd,EAAUH,EAASkB,eAAeD,IACvBE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IAMzBG,EAAmB,IAA4BC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const submitCode: (payload: SubmitCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
7
|
export declare const useLoginPasswordlessEmailCode: () => LoginPasswordlessEmailCodeMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-passwordless-email-code.js","sources":["../../src/screens/login-passwordless-email-code.tsx"],"sourcesContent":["import LoginPasswordlessEmailCode from '@auth0/auth0-acul-js/login-passwordless-email-code';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordlessEmailCodeMembers,\n SubmitCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-passwordless-email-code';\n\n// Register the singleton instance of LoginPasswordlessEmailCode\nconst instance = registerScreen<LoginPasswordlessEmailCodeMembers>(LoginPasswordlessEmailCode)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordlessEmailCodeMembers>(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 = (payload: SubmitCodeOptions) => withError(instance.submitCode(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"login-passwordless-email-code.js","sources":["../../src/screens/login-passwordless-email-code.tsx"],"sourcesContent":["import LoginPasswordlessEmailCode from '@auth0/auth0-acul-js/login-passwordless-email-code';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordlessEmailCodeMembers,\n SubmitCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-passwordless-email-code';\n\n// Register the singleton instance of LoginPasswordlessEmailCode\nconst instance = registerScreen<LoginPasswordlessEmailCodeMembers>(LoginPasswordlessEmailCode)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordlessEmailCodeMembers>(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 = (payload: SubmitCodeOptions) => withError(instance.submitCode(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginPasswordlessEmailCode\nexport const useLoginPasswordlessEmailCode = (): LoginPasswordlessEmailCodeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LoginPasswordlessEmailCode","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitCode","payload","resendCode","useLoginPasswordlessEmailCode","useMemo"],"mappings":"ufAcA,MAAMA,EAAWC,EAAkDC,IAG7DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAgDN,IACvDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAcC,GAA+Bd,EAAUH,EAASgB,WAAWC,IAC3EC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IASxEE,EAAgC,IAC3CC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const submitOTP: (payload: SubmitOTPOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendOTP: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
7
|
export declare const useLoginPasswordlessSmsOtp: () => LoginPasswordlessSmsOtpMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-passwordless-sms-otp.js","sources":["../../src/screens/login-passwordless-sms-otp.tsx"],"sourcesContent":["import LoginPasswordlessSmsOtp from '@auth0/auth0-acul-js/login-passwordless-sms-otp';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordlessSmsOtpMembers,\n SubmitOTPOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-passwordless-sms-otp';\n\n// Register the singleton instance of LoginPasswordlessSmsOtp\nconst instance = registerScreen<LoginPasswordlessSmsOtpMembers>(LoginPasswordlessSmsOtp)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordlessSmsOtpMembers>(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 submitOTP = (payload: SubmitOTPOptions) => withError(instance.submitOTP(payload));\nexport const resendOTP = (payload?: CustomOptions) => withError(instance.resendOTP(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"login-passwordless-sms-otp.js","sources":["../../src/screens/login-passwordless-sms-otp.tsx"],"sourcesContent":["import LoginPasswordlessSmsOtp from '@auth0/auth0-acul-js/login-passwordless-sms-otp';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginPasswordlessSmsOtpMembers,\n SubmitOTPOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login-passwordless-sms-otp';\n\n// Register the singleton instance of LoginPasswordlessSmsOtp\nconst instance = registerScreen<LoginPasswordlessSmsOtpMembers>(LoginPasswordlessSmsOtp)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginPasswordlessSmsOtpMembers>(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 submitOTP = (payload: SubmitOTPOptions) => withError(instance.submitOTP(payload));\nexport const resendOTP = (payload?: CustomOptions) => withError(instance.resendOTP(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LoginPasswordlessSmsOtp\nexport const useLoginPasswordlessSmsOtp = (): LoginPasswordlessSmsOtpMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LoginPasswordlessSmsOtp","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitOTP","payload","resendOTP","useLoginPasswordlessSmsOtp","useMemo"],"mappings":"ofAcA,MAAMA,EAAWC,EAA+CC,IAG1DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA6CN,IACpDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAaC,GAA8Bd,EAAUH,EAASgB,UAAUC,IACxEC,EAAaD,GAA4Bd,EAAUH,EAASkB,UAAUD,IAStEE,EAA6B,IACxCC,EAAQ,IAAMpB,EAAU"}
|
package/dist/screens/login.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export declare const login: (payload: LoginOptions) => void | Promise<void>;
|
|
|
4
4
|
export declare const federatedLogin: (payload: FederatedLoginOptions) => void | Promise<void>;
|
|
5
5
|
export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
6
|
export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
|
|
7
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
8
8
|
export declare const useLogin: () => LoginMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sources":["../../src/screens/login.tsx"],"sourcesContent":["import Login from '@auth0/auth0-acul-js/login';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginMembers,\n LoginOptions,\n FederatedLoginOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login';\n\n// Register the singleton instance of Login\nconst instance = registerScreen<LoginMembers>(Login)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginMembers>(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 login = (payload: LoginOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Common hooks\nexport {
|
|
1
|
+
{"version":3,"file":"login.js","sources":["../../src/screens/login.tsx"],"sourcesContent":["import Login from '@auth0/auth0-acul-js/login';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n LoginMembers,\n LoginOptions,\n FederatedLoginOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/login';\n\n// Register the singleton instance of Login\nconst instance = registerScreen<LoginMembers>(Login)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LoginMembers>(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 login = (payload: LoginOptions) => withError(instance.login(payload));\nexport const federatedLogin = (payload: FederatedLoginOptions) =>\n withError(instance.federatedLogin(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useLoginIdentifiers } from '../hooks/utility/login-identifiers';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Login\nexport const useLogin = (): LoginMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Login","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","login","payload","federatedLogin","pickCountryCode","useLogin","useMemo"],"mappings":"4eAeA,MAAMA,EAAWC,EAA6BC,IAGxCC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2BN,IAClCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAASC,GAA0Bd,EAAUH,EAASgB,MAAMC,IAC5DC,EAAkBD,GAC7Bd,EAAUH,EAASkB,eAAeD,IACvBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IASxBG,EAAW,IAAoBC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LogoutAbortedMembers } from '@auth0/auth0-acul-js/logout-aborted';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
4
|
export declare const useLogoutAborted: () => LogoutAbortedMembers;
|