@auth0/auth0-acul-react 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -10
- package/dist/export/hooks.d.ts +1 -1
- package/dist/hooks/common/change-language.d.ts +92 -0
- package/dist/hooks/common/change-language.js +2 -0
- package/dist/hooks/common/change-language.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/screens/accept-invitation.d.ts +1 -1
- package/dist/screens/accept-invitation.js +1 -1
- package/dist/screens/accept-invitation.js.map +1 -1
- package/dist/screens/consent.d.ts +1 -1
- package/dist/screens/consent.js +1 -1
- package/dist/screens/consent.js.map +1 -1
- package/dist/screens/customized-consent.d.ts +1 -1
- package/dist/screens/customized-consent.js +1 -1
- package/dist/screens/customized-consent.js.map +1 -1
- package/dist/screens/device-code-activation-allowed.d.ts +1 -1
- package/dist/screens/device-code-activation-allowed.js +1 -1
- package/dist/screens/device-code-activation-allowed.js.map +1 -1
- package/dist/screens/device-code-activation-denied.d.ts +1 -1
- package/dist/screens/device-code-activation-denied.js +1 -1
- package/dist/screens/device-code-activation-denied.js.map +1 -1
- package/dist/screens/device-code-activation.d.ts +1 -1
- package/dist/screens/device-code-activation.js +1 -1
- package/dist/screens/device-code-activation.js.map +1 -1
- package/dist/screens/device-code-confirmation.d.ts +1 -1
- package/dist/screens/device-code-confirmation.js +1 -1
- package/dist/screens/device-code-confirmation.js.map +1 -1
- package/dist/screens/email-identifier-challenge.d.ts +1 -1
- package/dist/screens/email-identifier-challenge.js +1 -1
- package/dist/screens/email-identifier-challenge.js.map +1 -1
- package/dist/screens/email-otp-challenge.d.ts +1 -1
- package/dist/screens/email-otp-challenge.js +1 -1
- package/dist/screens/email-otp-challenge.js.map +1 -1
- package/dist/screens/email-verification-result.d.ts +1 -1
- package/dist/screens/email-verification-result.js +1 -1
- package/dist/screens/email-verification-result.js.map +1 -1
- package/dist/screens/interstitial-captcha.d.ts +1 -1
- package/dist/screens/interstitial-captcha.js +1 -1
- package/dist/screens/interstitial-captcha.js.map +1 -1
- package/dist/screens/login-email-verification.d.ts +1 -1
- package/dist/screens/login-email-verification.js +1 -1
- package/dist/screens/login-email-verification.js.map +1 -1
- package/dist/screens/login-id.d.ts +1 -1
- package/dist/screens/login-id.js +1 -1
- package/dist/screens/login-id.js.map +1 -1
- package/dist/screens/login-password.d.ts +1 -1
- package/dist/screens/login-password.js +1 -1
- package/dist/screens/login-password.js.map +1 -1
- package/dist/screens/login-passwordless-email-code.d.ts +3 -2
- package/dist/screens/login-passwordless-email-code.js +1 -1
- package/dist/screens/login-passwordless-email-code.js.map +1 -1
- package/dist/screens/login-passwordless-sms-otp.d.ts +3 -2
- package/dist/screens/login-passwordless-sms-otp.js +1 -1
- package/dist/screens/login-passwordless-sms-otp.js.map +1 -1
- package/dist/screens/login.d.ts +1 -1
- package/dist/screens/login.js +1 -1
- package/dist/screens/login.js.map +1 -1
- package/dist/screens/logout-aborted.d.ts +1 -1
- package/dist/screens/logout-aborted.js +1 -1
- package/dist/screens/logout-aborted.js.map +1 -1
- package/dist/screens/logout-complete.d.ts +1 -1
- package/dist/screens/logout-complete.js +1 -1
- package/dist/screens/logout-complete.js.map +1 -1
- package/dist/screens/logout.d.ts +1 -1
- package/dist/screens/logout.js +1 -1
- package/dist/screens/logout.js.map +1 -1
- package/dist/screens/mfa-begin-enroll-options.d.ts +1 -1
- package/dist/screens/mfa-begin-enroll-options.js +1 -1
- package/dist/screens/mfa-begin-enroll-options.js.map +1 -1
- package/dist/screens/mfa-country-codes.d.ts +1 -1
- package/dist/screens/mfa-country-codes.js +1 -1
- package/dist/screens/mfa-country-codes.js.map +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.d.ts +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.js +1 -1
- package/dist/screens/mfa-detect-browser-capabilities.js.map +1 -1
- package/dist/screens/mfa-email-challenge.d.ts +1 -1
- package/dist/screens/mfa-email-challenge.js +1 -1
- package/dist/screens/mfa-email-challenge.js.map +1 -1
- package/dist/screens/mfa-email-list.d.ts +1 -1
- package/dist/screens/mfa-email-list.js +1 -1
- package/dist/screens/mfa-email-list.js.map +1 -1
- package/dist/screens/mfa-enroll-result.d.ts +1 -1
- package/dist/screens/mfa-enroll-result.js +1 -1
- package/dist/screens/mfa-enroll-result.js.map +1 -1
- package/dist/screens/mfa-login-options.d.ts +1 -1
- package/dist/screens/mfa-login-options.js +1 -1
- package/dist/screens/mfa-login-options.js.map +1 -1
- package/dist/screens/mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/mfa-otp-challenge.js +1 -1
- package/dist/screens/mfa-otp-challenge.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-code.d.ts +3 -2
- package/dist/screens/mfa-otp-enrollment-code.js +1 -1
- package/dist/screens/mfa-otp-enrollment-code.js.map +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.d.ts +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.js +1 -1
- package/dist/screens/mfa-otp-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/mfa-phone-challenge.js +1 -1
- package/dist/screens/mfa-phone-challenge.js.map +1 -1
- package/dist/screens/mfa-phone-enrollment.d.ts +1 -1
- package/dist/screens/mfa-phone-enrollment.js +1 -1
- package/dist/screens/mfa-phone-enrollment.js.map +1 -1
- package/dist/screens/mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/mfa-push-challenge-push.js +1 -1
- package/dist/screens/mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/mfa-push-enrollment-qr.d.ts +1 -1
- package/dist/screens/mfa-push-enrollment-qr.js +1 -1
- package/dist/screens/mfa-push-enrollment-qr.js.map +1 -1
- package/dist/screens/mfa-push-list.d.ts +1 -1
- package/dist/screens/mfa-push-list.js +1 -1
- package/dist/screens/mfa-push-list.js.map +1 -1
- package/dist/screens/mfa-push-welcome.d.ts +1 -1
- package/dist/screens/mfa-push-welcome.js +1 -1
- package/dist/screens/mfa-push-welcome.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.js +1 -1
- package/dist/screens/mfa-recovery-code-challenge-new-code.js.map +1 -1
- package/dist/screens/mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-challenge.js +1 -1
- package/dist/screens/mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.d.ts +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.js +1 -1
- package/dist/screens/mfa-recovery-code-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/mfa-sms-challenge.js +1 -1
- package/dist/screens/mfa-sms-challenge.js.map +1 -1
- package/dist/screens/mfa-sms-enrollment.d.ts +1 -1
- package/dist/screens/mfa-sms-enrollment.js +1 -1
- package/dist/screens/mfa-sms-enrollment.js.map +1 -1
- package/dist/screens/mfa-sms-list.d.ts +1 -1
- package/dist/screens/mfa-sms-list.js +1 -1
- package/dist/screens/mfa-sms-list.js.map +1 -1
- package/dist/screens/mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/mfa-voice-challenge.js +1 -1
- package/dist/screens/mfa-voice-challenge.js.map +1 -1
- package/dist/screens/mfa-voice-enrollment.d.ts +1 -1
- package/dist/screens/mfa-voice-enrollment.js +1 -1
- package/dist/screens/mfa-voice-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.d.ts +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.js +1 -1
- package/dist/screens/mfa-webauthn-change-key-nickname.js.map +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.d.ts +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.js +1 -1
- package/dist/screens/mfa-webauthn-enrollment-success.js.map +1 -1
- package/dist/screens/mfa-webauthn-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-error.js +1 -1
- package/dist/screens/mfa-webauthn-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.d.ts +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.js +1 -1
- package/dist/screens/mfa-webauthn-not-available-error.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.js +1 -1
- package/dist/screens/mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.js +1 -1
- package/dist/screens/mfa-webauthn-platform-enrollment.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.js +1 -1
- package/dist/screens/mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.d.ts +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.js +1 -1
- package/dist/screens/mfa-webauthn-roaming-enrollment.js.map +1 -1
- package/dist/screens/organization-picker.d.ts +1 -1
- package/dist/screens/organization-picker.js +1 -1
- package/dist/screens/organization-picker.js.map +1 -1
- package/dist/screens/organization-selection.d.ts +1 -1
- package/dist/screens/organization-selection.js +1 -1
- package/dist/screens/organization-selection.js.map +1 -1
- package/dist/screens/passkey-enrollment-local.d.ts +1 -1
- package/dist/screens/passkey-enrollment-local.js +1 -1
- package/dist/screens/passkey-enrollment-local.js.map +1 -1
- package/dist/screens/passkey-enrollment.d.ts +1 -1
- package/dist/screens/passkey-enrollment.js +1 -1
- package/dist/screens/passkey-enrollment.js.map +1 -1
- package/dist/screens/phone-identifier-challenge.d.ts +1 -1
- package/dist/screens/phone-identifier-challenge.js +1 -1
- package/dist/screens/phone-identifier-challenge.js.map +1 -1
- package/dist/screens/phone-identifier-enrollment.d.ts +1 -1
- package/dist/screens/phone-identifier-enrollment.js +1 -1
- package/dist/screens/phone-identifier-enrollment.js.map +1 -1
- package/dist/screens/redeem-ticket.d.ts +1 -1
- package/dist/screens/redeem-ticket.js +1 -1
- package/dist/screens/redeem-ticket.js.map +1 -1
- package/dist/screens/reset-password-email.d.ts +1 -1
- package/dist/screens/reset-password-email.js +1 -1
- package/dist/screens/reset-password-email.js.map +1 -1
- package/dist/screens/reset-password-error.d.ts +1 -1
- package/dist/screens/reset-password-error.js +1 -1
- package/dist/screens/reset-password-error.js.map +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-email-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-otp-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-phone-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.d.ts +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.js +1 -1
- package/dist/screens/reset-password-mfa-push-challenge-push.js.map +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-recovery-code-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-sms-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-voice-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-webauthn-platform-challenge.js.map +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.d.ts +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js +1 -1
- package/dist/screens/reset-password-mfa-webauthn-roaming-challenge.js.map +1 -1
- package/dist/screens/reset-password-request.d.ts +1 -1
- package/dist/screens/reset-password-request.js +1 -1
- package/dist/screens/reset-password-request.js.map +1 -1
- package/dist/screens/reset-password-success.d.ts +1 -1
- package/dist/screens/reset-password-success.js +1 -1
- package/dist/screens/reset-password-success.js.map +1 -1
- package/dist/screens/reset-password.d.ts +1 -1
- package/dist/screens/reset-password.js +1 -1
- package/dist/screens/reset-password.js.map +1 -1
- package/dist/screens/signup-id.d.ts +1 -1
- package/dist/screens/signup-id.js +1 -1
- package/dist/screens/signup-id.js.map +1 -1
- package/dist/screens/signup-password.d.ts +1 -1
- package/dist/screens/signup-password.js +1 -1
- package/dist/screens/signup-password.js.map +1 -1
- package/dist/screens/signup.d.ts +1 -1
- package/dist/screens/signup.js +1 -1
- package/dist/screens/signup.js.map +1 -1
- package/dist/telemetry.js +1 -1
- package/package.json +2 -2
- package/dist/export/getting-started.d.ts +0 -282
|
@@ -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 } from '../hooks';
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
7
|
export declare const useLoginEmailVerification: () => LoginEmailVerificationMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/login-email-verification";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/login-email-verification";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:d}=u,x=e=>m(n.continueWithCode(e)),k=e=>m(n.resendCode(e)),l=()=>o(()=>n,[]);export{x as continueWithCode,k as resendCode,c as useBranding,h as useClient,l as useLoginEmailVerification,p as useOrganization,f as usePrompt,g as useScreen,i as useTenant,j as useTransaction,d as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=login-email-verification.js.map
|
|
@@ -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 { 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":"
|
|
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, useChangeLanguage } 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":"ojBAcA,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"}
|
|
@@ -6,5 +6,5 @@ export declare const passkeyLogin: (payload?: CustomOptions) => void | Promise<v
|
|
|
6
6
|
export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
7
7
|
export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
|
|
8
8
|
export { usePasskeyAutofill } from '../hooks/utility/passkey-autofill';
|
|
9
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
9
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
10
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";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:
|
|
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{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";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:h,useOrganization:f,usePrompt:p,useScreen:g,useTransaction:k,useUntrustedData:l}=u,j=o=>i(n.login(o)),d=o=>i(n.federatedLogin(o)),x=o=>i(n.passkeyLogin(o)),y=o=>i(n.pickCountryCode(o)),C=()=>e(()=>n,[]);export{d as federatedLogin,j as login,x as passkeyLogin,y as pickCountryCode,c as useBranding,h as useClient,C as useLoginId,f as useOrganization,p as usePrompt,g as useScreen,a as useTenant,k as useTransaction,l 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// 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":"
|
|
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, useChangeLanguage } 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":"snBAeA,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"}
|
|
@@ -3,5 +3,5 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const login: (payload: LoginPasswordOptions) => void | Promise<void>;
|
|
4
4
|
export declare const federatedLogin: (payload: FederatedLoginOptions) => void | Promise<void>;
|
|
5
5
|
export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
6
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
7
|
export declare const useLoginPassword: () => LoginPasswordMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/login-password";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/login-password";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:g,useScreen:f,useTransaction:j,useUntrustedData:x}=a,d=o=>m(n.login(o)),k=o=>m(n.federatedLogin(o)),l=o=>m(n.switchConnection(o)),w=()=>e(()=>n,[]);export{k as federatedLogin,d as login,l as switchConnection,i as useBranding,h as useClient,w as useLoginPassword,p as useOrganization,g as usePrompt,f as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,u 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 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":"
|
|
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, useChangeLanguage } 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":"gfAeA,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"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { LoginPasswordlessEmailCodeMembers, SubmitCodeOptions, CustomOptions } from '@auth0/auth0-acul-js/login-passwordless-email-code';
|
|
1
|
+
import type { LoginPasswordlessEmailCodeMembers, SubmitCodeOptions, CustomOptions, SwitchConnectionOptions } from '@auth0/auth0-acul-js/login-passwordless-email-code';
|
|
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").ScreenMembersOnLoginPasswordlessEmailCode, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginPasswordlessEmailCode, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const submitCode: (payload: SubmitCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
|
|
5
6
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
8
|
export declare const useLoginPasswordlessEmailCode: () => LoginPasswordlessEmailCodeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/login-passwordless-email-code";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:d,useScreen:f,useTransaction:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/login-passwordless-email-code";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:d,useScreen:f,useTransaction:g,useUntrustedData:j}=u,x=e=>m(n.submitCode(e)),k=e=>m(n.resendCode(e)),l=e=>m(n.switchConnection(e)),C=()=>o(()=>n,[]);export{k as resendCode,x as submitCode,l as switchConnection,c as useBranding,h as useClient,C as useLoginPasswordlessEmailCode,p as useOrganization,d as usePrompt,f as useScreen,i as useTenant,g as useTransaction,j as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=login-passwordless-email-code.js.map
|
|
@@ -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 { 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":"
|
|
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 SwitchConnectionOptions,\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));\nexport const switchConnection = (payload: SwitchConnectionOptions) =>\n withError(instance.switchConnection(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of 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","switchConnection","useLoginPasswordlessEmailCode","useMemo"],"mappings":"yjBAeA,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,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IASzBG,EAAgC,IAC3CC,EAAQ,IAAMrB,EAAU"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { LoginPasswordlessSmsOtpMembers, SubmitOTPOptions, CustomOptions } from '@auth0/auth0-acul-js/login-passwordless-sms-otp';
|
|
1
|
+
import type { LoginPasswordlessSmsOtpMembers, SubmitOTPOptions, CustomOptions, SwitchConnectionOptions } from '@auth0/auth0-acul-js/login-passwordless-sms-otp';
|
|
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").ScreenMembersOnLoginPasswordlessSmsOtp, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginPasswordlessSmsOtp, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const submitOTP: (payload: SubmitOTPOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendOTP: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
+
export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
|
|
5
6
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
6
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
8
|
export declare const useLoginPasswordlessSmsOtp: () => LoginPasswordlessSmsOtpMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/login-passwordless-sms-otp";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
|
|
1
|
+
import o from"@auth0/auth0-acul-js/login-passwordless-sms-otp";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as s}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(o),{withError:m}=s,u=new r(n),{useUser:a,useTenant:i,useBranding:c,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,d=o=>m(n.submitOTP(o)),k=o=>m(n.resendOTP(o)),l=o=>m(n.switchConnection(o)),T=()=>e(()=>n,[]);export{k as resendOTP,d as submitOTP,l as switchConnection,c as useBranding,h as useClient,T as useLoginPasswordlessSmsOtp,p as useOrganization,f as usePrompt,g as useScreen,i as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=login-passwordless-sms-otp.js.map
|
|
@@ -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 { 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":"
|
|
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 SwitchConnectionOptions,\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));\nexport const switchConnection = (payload: SwitchConnectionOptions) =>\n withError(instance.switchConnection(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of 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","switchConnection","useLoginPasswordlessSmsOtp","useMemo"],"mappings":"sjBAeA,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,IACtEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IASzBG,EAA6B,IACxCC,EAAQ,IAAMrB,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 } from '../hooks';
|
|
7
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
8
8
|
export declare const useLogin: () => LoginMembers;
|
package/dist/screens/login.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/login";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:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/login";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";export{useLoginIdentifiers}from"../hooks/utility/login-identifiers.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,i=new s(n),{useUser:u,useTenant:a,useBranding:c,useClient:h,useOrganization:f,usePrompt:g,useScreen:p,useTransaction:j,useUntrustedData:d}=i,k=o=>m(n.login(o)),x=o=>m(n.federatedLogin(o)),l=o=>m(n.pickCountryCode(o)),C=()=>e(()=>n,[]);export{x as federatedLogin,k as login,l as pickCountryCode,c as useBranding,h as useClient,C as useLogin,f as useOrganization,g as usePrompt,p as useScreen,a as useTenant,j as useTransaction,d as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=login.js.map
|
|
@@ -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 { 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":"
|
|
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, useChangeLanguage } 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":"8iBAeA,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 } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useLogoutAborted: () => LogoutAbortedMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/logout-aborted";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:u,useTenant:m,useBranding:a,useClient:c,useOrganization:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/logout-aborted";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:u,useTenant:m,useBranding:a,useClient:c,useOrganization:h,usePrompt:i,useScreen:p,useTransaction:g,useUntrustedData:f}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useLogoutAborted,h as useOrganization,i as usePrompt,p as useScreen,m as useTenant,g as useTransaction,f as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=logout-aborted.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-aborted.js","sources":["../../src/screens/logout-aborted.tsx"],"sourcesContent":["import LogoutAborted from '@auth0/auth0-acul-js/logout-aborted';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutAbortedMembers } from '@auth0/auth0-acul-js/logout-aborted';\n\n// Register the singleton instance of LogoutAborted\nconst instance = registerScreen<LogoutAbortedMembers>(LogoutAborted)!;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutAbortedMembers>(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 LogoutAborted\nexport const useLogoutAborted = (): LogoutAbortedMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LogoutAborted","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useLogoutAborted","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout-aborted.js","sources":["../../src/screens/logout-aborted.tsx"],"sourcesContent":["import LogoutAborted from '@auth0/auth0-acul-js/logout-aborted';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutAbortedMembers } from '@auth0/auth0-acul-js/logout-aborted';\n\n// Register the singleton instance of LogoutAborted\nconst instance = registerScreen<LogoutAbortedMembers>(LogoutAborted)!;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutAbortedMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LogoutAborted\nexport const useLogoutAborted = (): LogoutAbortedMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LogoutAborted","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useLogoutAborted","useMemo"],"mappings":"ubASA,MAAMA,EAAWC,EAAqCC,GAGhDC,EAAU,IAAIC,EAAmCJ,IAC1CK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAmB,IAA4BC,EAAQ,IAAMf,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LogoutCompleteMembers } from '@auth0/auth0-acul-js/logout-complete';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembers, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useLogoutComplete: () => LogoutCompleteMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/logout-complete";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:c,useOrganization:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/logout-complete";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:c,useOrganization:h,usePrompt:i,useScreen:p,useTransaction:g,useUntrustedData:f}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useLogoutComplete,h as useOrganization,i as usePrompt,p as useScreen,u as useTenant,g as useTransaction,f as useUntrustedData,m as useUser};
|
|
2
2
|
//# sourceMappingURL=logout-complete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-complete.js","sources":["../../src/screens/logout-complete.tsx"],"sourcesContent":["import LogoutComplete from '@auth0/auth0-acul-js/logout-complete';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutCompleteMembers } from '@auth0/auth0-acul-js/logout-complete';\n\n// Register the singleton instance of LogoutComplete\nconst instance = registerScreen<LogoutCompleteMembers>(LogoutComplete)!;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutCompleteMembers>(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 LogoutComplete\nexport const useLogoutComplete = (): LogoutCompleteMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LogoutComplete","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useLogoutComplete","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout-complete.js","sources":["../../src/screens/logout-complete.tsx"],"sourcesContent":["import LogoutComplete from '@auth0/auth0-acul-js/logout-complete';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutCompleteMembers } from '@auth0/auth0-acul-js/logout-complete';\n\n// Register the singleton instance of LogoutComplete\nconst instance = registerScreen<LogoutCompleteMembers>(LogoutComplete)!;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutCompleteMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of LogoutComplete\nexport const useLogoutComplete = (): LogoutCompleteMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","LogoutComplete","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useLogoutComplete","useMemo"],"mappings":"wbASA,MAAMA,EAAWC,EAAsCC,GAGjDC,EAAU,IAAIC,EAAoCJ,IAC3CK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAoB,IAA6BC,EAAQ,IAAMf,EAAU"}
|
package/dist/screens/logout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LogoutMembers, ConfirmLogoutOptions } from '@auth0/auth0-acul-js/logout';
|
|
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 confirmLogout: (payload: ConfirmLogoutOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
5
5
|
export declare const useLogout: () => LogoutMembers;
|
package/dist/screens/logout.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/logout";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/logout";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.confirmLogout(o)),l=()=>e(()=>n,[]);export{k as confirmLogout,h as useBranding,i as useClient,l as useLogout,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=logout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.js","sources":["../../src/screens/logout.tsx"],"sourcesContent":["import Logout from '@auth0/auth0-acul-js/logout';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutMembers, ConfirmLogoutOptions } from '@auth0/auth0-acul-js/logout';\n\n// Register the singleton instance of Logout\nconst instance = registerScreen<LogoutMembers>(Logout)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutMembers>(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 confirmLogout = (payload: ConfirmLogoutOptions) =>\n withError(instance.confirmLogout(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Logout\nexport const useLogout = (): LogoutMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Logout","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirmLogout","payload","useLogout","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout.js","sources":["../../src/screens/logout.tsx"],"sourcesContent":["import Logout from '@auth0/auth0-acul-js/logout';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { LogoutMembers, ConfirmLogoutOptions } from '@auth0/auth0-acul-js/logout';\n\n// Register the singleton instance of Logout\nconst instance = registerScreen<LogoutMembers>(Logout)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<LogoutMembers>(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 confirmLogout = (payload: ConfirmLogoutOptions) =>\n withError(instance.confirmLogout(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Logout\nexport const useLogout = (): LogoutMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Logout","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","confirmLogout","payload","useLogout","useMemo"],"mappings":"weAUA,MAAMA,EAAWC,EAA8BC,IAGzCC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA4BN,IACnCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAiBC,GAC5Bd,EAAUH,EAASgB,cAAcC,IAMtBC,EAAY,IAAqBC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MfaBeginEnrollOptionsMembers, MfaEnrollOptions } from '@auth0/auth0-acul-js/mfa-begin-enroll-options';
|
|
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 enroll: (payload: MfaEnrollOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
5
5
|
export declare const useMfaBeginEnrollOptions: () => MfaBeginEnrollOptionsMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/mfa-begin-enroll-options";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/mfa-begin-enroll-options";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:l}=u,x=o=>m(n.enroll(o)),k=()=>e(()=>n,[]);export{x as enroll,h as useBranding,i as useClient,k as useMfaBeginEnrollOptions,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,l as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-begin-enroll-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-begin-enroll-options.js","sources":["../../src/screens/mfa-begin-enroll-options.tsx"],"sourcesContent":["import MfaBeginEnrollOptions from '@auth0/auth0-acul-js/mfa-begin-enroll-options';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaBeginEnrollOptionsMembers,\n MfaEnrollOptions,\n} from '@auth0/auth0-acul-js/mfa-begin-enroll-options';\n\n// Register the singleton instance of MfaBeginEnrollOptions\nconst instance = registerScreen<MfaBeginEnrollOptionsMembers>(MfaBeginEnrollOptions)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaBeginEnrollOptionsMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const enroll = (payload: MfaEnrollOptions) => withError(instance.enroll(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaBeginEnrollOptions\nexport const useMfaBeginEnrollOptions = (): MfaBeginEnrollOptionsMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaBeginEnrollOptions","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","enroll","payload","useMfaBeginEnrollOptions","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-begin-enroll-options.js","sources":["../../src/screens/mfa-begin-enroll-options.tsx"],"sourcesContent":["import MfaBeginEnrollOptions from '@auth0/auth0-acul-js/mfa-begin-enroll-options';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaBeginEnrollOptionsMembers,\n MfaEnrollOptions,\n} from '@auth0/auth0-acul-js/mfa-begin-enroll-options';\n\n// Register the singleton instance of MfaBeginEnrollOptions\nconst instance = registerScreen<MfaBeginEnrollOptionsMembers>(MfaBeginEnrollOptions)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaBeginEnrollOptionsMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const enroll = (payload: MfaEnrollOptions) => withError(instance.enroll(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaBeginEnrollOptions\nexport const useMfaBeginEnrollOptions = (): MfaBeginEnrollOptionsMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaBeginEnrollOptions","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","enroll","payload","useMfaBeginEnrollOptions","useMemo"],"mappings":"0fAaA,MAAMA,EAAWC,EAA6CC,IAGxDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA2CN,IAClDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA8Bd,EAAUH,EAASgB,OAAOC,IAMlEC,EAA2B,IACtCC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { MfaCountryCodesMembers, SelectCountryCodeOptions, CustomOptions }
|
|
|
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").ScreenMembersOnMfaCountryCodes, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const selectCountryCode: (payload: SelectCountryCodeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const goBack: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
6
6
|
export declare const useMfaCountryCodes: () => MfaCountryCodesMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/mfa-country-codes";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/mfa-country-codes";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:k}=u,x=o=>m(n.selectCountryCode(o)),d=o=>m(n.goBack(o)),C=()=>e(()=>n,[]);export{d as goBack,x as selectCountryCode,h as useBranding,i as useClient,C as useMfaCountryCodes,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,k as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-country-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-country-codes.js","sources":["../../src/screens/mfa-country-codes.tsx"],"sourcesContent":["import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaCountryCodesMembers,\n SelectCountryCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-country-codes';\n\n// Register the singleton instance of MfaCountryCodes\nconst instance = registerScreen<MfaCountryCodesMembers>(MfaCountryCodes)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaCountryCodesMembers>(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 selectCountryCode = (payload: SelectCountryCodeOptions) =>\n withError(instance.selectCountryCode(payload));\nexport const goBack = (payload?: CustomOptions) => withError(instance.goBack(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaCountryCodes\nexport const useMfaCountryCodes = (): MfaCountryCodesMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaCountryCodes","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectCountryCode","payload","goBack","useMfaCountryCodes","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-country-codes.js","sources":["../../src/screens/mfa-country-codes.tsx"],"sourcesContent":["import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaCountryCodesMembers,\n SelectCountryCodeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-country-codes';\n\n// Register the singleton instance of MfaCountryCodes\nconst instance = registerScreen<MfaCountryCodesMembers>(MfaCountryCodes)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaCountryCodesMembers>(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 selectCountryCode = (payload: SelectCountryCodeOptions) =>\n withError(instance.selectCountryCode(payload));\nexport const goBack = (payload?: CustomOptions) => withError(instance.goBack(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaCountryCodes\nexport const useMfaCountryCodes = (): MfaCountryCodesMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaCountryCodes","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectCountryCode","payload","goBack","useMfaCountryCodes","useMemo"],"mappings":"mfAcA,MAAMA,EAAWC,EAAuCC,IAGlDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAqCN,IAC5CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAqBC,GAChCd,EAAUH,EAASgB,kBAAkBC,IAC1BC,EAAUD,GAA4Bd,EAAUH,EAASkB,OAAOD,IAMhEE,EAAqB,IAA8BC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MfaDetectBrowserCapabilitiesMembers, CustomOptions } from '@auth0/auth0-acul-js/mfa-detect-browser-capabilities';
|
|
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 detectCapabilities: (payload: CustomOptions) => void | Promise<void>;
|
|
4
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
4
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
5
5
|
export declare const useMfaDetectBrowserCapabilities: () => MfaDetectBrowserCapabilitiesMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/mfa-detect-browser-capabilities";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const
|
|
1
|
+
import e from"@auth0/auth0-acul-js/mfa-detect-browser-capabilities";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(e),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=a,k=e=>m(n.detectCapabilities(e)),d=()=>o(()=>n,[]);export{k as detectCapabilities,i as useBranding,h as useClient,d as useMfaDetectBrowserCapabilities,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-detect-browser-capabilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-detect-browser-capabilities.js","sources":["../../src/screens/mfa-detect-browser-capabilities.tsx"],"sourcesContent":["import MfaDetectBrowserCapabilities from '@auth0/auth0-acul-js/mfa-detect-browser-capabilities';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaDetectBrowserCapabilitiesMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-detect-browser-capabilities';\n\n// Register the singleton instance of MfaDetectBrowserCapabilities\nconst instance = registerScreen<MfaDetectBrowserCapabilitiesMembers>(MfaDetectBrowserCapabilities)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaDetectBrowserCapabilitiesMembers>(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 detectCapabilities = (payload: CustomOptions) =>\n withError(instance.detectCapabilities(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaDetectBrowserCapabilities\nexport const useMfaDetectBrowserCapabilities = (): MfaDetectBrowserCapabilitiesMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaDetectBrowserCapabilities","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","detectCapabilities","payload","useMfaDetectBrowserCapabilities","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-detect-browser-capabilities.js","sources":["../../src/screens/mfa-detect-browser-capabilities.tsx"],"sourcesContent":["import MfaDetectBrowserCapabilities from '@auth0/auth0-acul-js/mfa-detect-browser-capabilities';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaDetectBrowserCapabilitiesMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-detect-browser-capabilities';\n\n// Register the singleton instance of MfaDetectBrowserCapabilities\nconst instance = registerScreen<MfaDetectBrowserCapabilitiesMembers>(MfaDetectBrowserCapabilities)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaDetectBrowserCapabilitiesMembers>(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 detectCapabilities = (payload: CustomOptions) =>\n withError(instance.detectCapabilities(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaDetectBrowserCapabilities\nexport const useMfaDetectBrowserCapabilities = (): MfaDetectBrowserCapabilitiesMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaDetectBrowserCapabilities","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","detectCapabilities","payload","useMfaDetectBrowserCapabilities","useMemo"],"mappings":"igBAaA,MAAMA,EAAWC,EAAoDC,IAG/DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkDN,IACzDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAsBC,GACjCd,EAAUH,EAASgB,mBAAmBC,IAM3BC,EAAkC,IAC7CC,EAAQ,IAAMnB,EAAU"}
|
|
@@ -5,5 +5,5 @@ export declare const resendCode: (payload?: ResendCodeOptions) => void | Promise
|
|
|
5
5
|
export declare const tryAnotherMethod: (payload?: TryAnotherMethodOptions) => void | Promise<void>;
|
|
6
6
|
export declare const pickEmail: (payload?: CustomOptions) => void | Promise<void>;
|
|
7
7
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
8
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
8
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
9
9
|
export declare const useMfaEmailChallenge: () => MfaEmailChallengeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/mfa-email-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,
|
|
1
|
+
import e from"@auth0/auth0-acul-js/mfa-email-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,a=new s(n),{useUser:u,useTenant:c,useBranding:h,useClient:i,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:d}=a,k=e=>m(n.continue(e)),l=e=>m(n.resendCode(e)),x=e=>m(n.tryAnotherMethod(e)),C=e=>m(n.pickEmail(e)),E=()=>o(()=>n,[]);export{k as continueMethod,C as pickEmail,l as resendCode,x as tryAnotherMethod,h as useBranding,i as useClient,E as useMfaEmailChallenge,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,d as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-email-challenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-email-challenge.js","sources":["../../src/screens/mfa-email-challenge.tsx"],"sourcesContent":["import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaEmailChallengeMembers,\n ContinueOptions,\n ResendCodeOptions,\n TryAnotherMethodOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-email-challenge';\n\n// Register the singleton instance of MfaEmailChallenge\nconst instance = registerScreen<MfaEmailChallengeMembers>(MfaEmailChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEmailChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const resendCode = (payload?: ResendCodeOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const pickEmail = (payload?: CustomOptions) => withError(instance.pickEmail(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 MfaEmailChallenge\nexport const useMfaEmailChallenge = (): MfaEmailChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEmailChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendCode","tryAnotherMethod","pickEmail","useMfaEmailChallenge","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-email-challenge.js","sources":["../../src/screens/mfa-email-challenge.tsx"],"sourcesContent":["import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaEmailChallengeMembers,\n ContinueOptions,\n ResendCodeOptions,\n TryAnotherMethodOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-email-challenge';\n\n// Register the singleton instance of MfaEmailChallenge\nconst instance = registerScreen<MfaEmailChallengeMembers>(MfaEmailChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEmailChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continueMethod = (payload: ContinueOptions) => withError(instance.continue(payload));\nexport const resendCode = (payload?: ResendCodeOptions) => withError(instance.resendCode(payload));\nexport const tryAnotherMethod = (payload?: TryAnotherMethodOptions) =>\n withError(instance.tryAnotherMethod(payload));\nexport const pickEmail = (payload?: CustomOptions) => withError(instance.pickEmail(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaEmailChallenge\nexport const useMfaEmailChallenge = (): MfaEmailChallengeMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEmailChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continueMethod","payload","continue","resendCode","tryAnotherMethod","pickEmail","useMfaEmailChallenge","useMemo"],"mappings":"+iBAgBA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAA6Bd,EAAUH,EAASkB,SAASD,IAC3EE,EAAcF,GAAgCd,EAAUH,EAASmB,WAAWF,IAC5EG,EAAoBH,GAC/Bd,EAAUH,EAASoB,iBAAiBH,IACzBI,EAAaJ,GAA4Bd,EAAUH,EAASqB,UAAUJ,IAStEK,EAAuB,IAAgCC,EAAQ,IAAMvB,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { MfaEmailListMembers, SelectMfaEmailOptions, CustomOptions } from '
|
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnMfaEmailList, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const selectMfaEmail: (payload: SelectMfaEmailOptions) => void | Promise<void>;
|
|
4
4
|
export declare const goBack: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
6
6
|
export declare const useMfaEmailList: () => MfaEmailListMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/mfa-email-list";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const m=t(o),{withError:n}=r,a=new s(m),{useUser:u,useTenant:c,useBranding:i,useClient:h,useOrganization:f,usePrompt:p,useScreen:
|
|
1
|
+
import o from"@auth0/auth0-acul-js/mfa-email-list";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const m=t(o),{withError:n}=r,a=new s(m),{useUser:u,useTenant:c,useBranding:i,useClient:h,useOrganization:f,usePrompt:p,useScreen:g,useTransaction:j,useUntrustedData:k}=a,l=o=>n(m.selectMfaEmail(o)),x=o=>n(m.goBack(o)),d=()=>e(()=>m,[]);export{x as goBack,l as selectMfaEmail,i as useBranding,h as useClient,d as useMfaEmailList,f as useOrganization,p as usePrompt,g as useScreen,c as useTenant,j as useTransaction,k as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-email-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-email-list.js","sources":["../../src/screens/mfa-email-list.tsx"],"sourcesContent":["import MfaEmailList from '@auth0/auth0-acul-js/mfa-email-list';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaEmailListMembers,\n SelectMfaEmailOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-email-list';\n\n// Register the singleton instance of MfaEmailList\nconst instance = registerScreen<MfaEmailListMembers>(MfaEmailList)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEmailListMembers>(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 selectMfaEmail = (payload: SelectMfaEmailOptions) =>\n withError(instance.selectMfaEmail(payload));\nexport const goBack = (payload?: CustomOptions) => withError(instance.goBack(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaEmailList\nexport const useMfaEmailList = (): MfaEmailListMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEmailList","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectMfaEmail","payload","goBack","useMfaEmailList","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-email-list.js","sources":["../../src/screens/mfa-email-list.tsx"],"sourcesContent":["import MfaEmailList from '@auth0/auth0-acul-js/mfa-email-list';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n MfaEmailListMembers,\n SelectMfaEmailOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/mfa-email-list';\n\n// Register the singleton instance of MfaEmailList\nconst instance = registerScreen<MfaEmailListMembers>(MfaEmailList)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEmailListMembers>(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 selectMfaEmail = (payload: SelectMfaEmailOptions) =>\n withError(instance.selectMfaEmail(payload));\nexport const goBack = (payload?: CustomOptions) => withError(instance.goBack(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaEmailList\nexport const useMfaEmailList = (): MfaEmailListMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEmailList","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","selectMfaEmail","payload","goBack","useMfaEmailList","useMemo"],"mappings":"gfAcA,MAAMA,EAAWC,EAAoCC,IAG/CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAkCN,IACzCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAkBC,GAC7Bd,EAAUH,EAASgB,eAAeC,IACvBC,EAAUD,GAA4Bd,EAAUH,EAASkB,OAAOD,IAMhEE,EAAkB,IAA2BC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { MfaEnrollResultMembers } from '@auth0/auth0-acul-js/mfa-enroll-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").ScreenMembersOnMfaEnrollResult, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
3
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
4
4
|
export declare const useMfaEnrollResult: () => MfaEnrollResultMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/mfa-enroll-result";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:c,useOrganization:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/mfa-enroll-result";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as r}from"../hooks/context/index.js";import{registerScreen as s}from"../state/instance-store.js";const t=s(e),n=new r(t),{useUser:m,useTenant:u,useBranding:a,useClient:c,useOrganization:h,usePrompt:i,useScreen:p,useTransaction:f,useUntrustedData:g}=n,j=()=>o(()=>t,[]);export{a as useBranding,c as useClient,j as useMfaEnrollResult,h as useOrganization,i as usePrompt,p as useScreen,u as useTenant,f as useTransaction,g as useUntrustedData,m as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-enroll-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa-enroll-result.js","sources":["../../src/screens/mfa-enroll-result.tsx"],"sourcesContent":["import MfaEnrollResult from '@auth0/auth0-acul-js/mfa-enroll-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { MfaEnrollResultMembers } from '@auth0/auth0-acul-js/mfa-enroll-result';\n\n// Register the singleton instance of MfaEnrollResult\nconst instance = registerScreen<MfaEnrollResultMembers>(MfaEnrollResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEnrollResultMembers>(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 MfaEnrollResult\nexport const useMfaEnrollResult = (): MfaEnrollResultMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEnrollResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useMfaEnrollResult","useMemo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mfa-enroll-result.js","sources":["../../src/screens/mfa-enroll-result.tsx"],"sourcesContent":["import MfaEnrollResult from '@auth0/auth0-acul-js/mfa-enroll-result';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type { MfaEnrollResultMembers } from '@auth0/auth0-acul-js/mfa-enroll-result';\n\n// Register the singleton instance of MfaEnrollResult\nconst instance = registerScreen<MfaEnrollResultMembers>(MfaEnrollResult)!;\n\n// Context hooks\nconst factory = new ContextHooks<MfaEnrollResultMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of MfaEnrollResult\nexport const useMfaEnrollResult = (): MfaEnrollResultMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","MfaEnrollResult","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","useMfaEnrollResult","useMemo"],"mappings":"0bASA,MAAMA,EAAWC,EAAuCC,GAGlDC,EAAU,IAAIC,EAAqCJ,IAC5CK,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAMSW,EAAqB,IAA8BC,EAAQ,IAAMf,EAAU"}
|
|
@@ -2,5 +2,5 @@ import type { MfaLoginOptionsMembers, LoginEnrollOptions, CustomOptions } from '
|
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnMfaLoginOptions, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const enroll: (payload: LoginEnrollOptions) => void | Promise<void>;
|
|
4
4
|
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
|
-
export { useCurrentScreen, useErrors, useAuth0Themes } from '../hooks';
|
|
5
|
+
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
6
6
|
export declare const useMfaLoginOptions: () => MfaLoginOptionsMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@auth0/auth0-acul-js/mfa-login-options";import{useMemo as
|
|
1
|
+
import o from"@auth0/auth0-acul-js/mfa-login-options";import{useMemo as e}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";const n=t(o),{withError:m}=r,u=new s(n),{useUser:a,useTenant:c,useBranding:i,useClient:h,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:j,useUntrustedData:x}=u,k=o=>m(n.enroll(o)),l=o=>m(n.returnToPrevious(o)),T=()=>e(()=>n,[]);export{k as enroll,l as returnToPrevious,i as useBranding,h as useClient,T as useMfaLoginOptions,p as useOrganization,f as usePrompt,g as useScreen,c as useTenant,j as useTransaction,x as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=mfa-login-options.js.map
|