@auth0/auth0-acul-react 1.2.0 → 1.4.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/dist/screens/email-identifier-challenge.d.ts +1 -0
- package/dist/screens/email-identifier-challenge.js +1 -1
- package/dist/screens/email-identifier-challenge.js.map +1 -1
- package/dist/screens/login-password.d.ts +2 -1
- package/dist/screens/login-password.js +1 -1
- package/dist/screens/login-password.js.map +1 -1
- package/dist/screens/passkey-enrollment.d.ts +2 -2
- package/dist/screens/passkey-enrollment.js.map +1 -1
- package/dist/screens/phone-identifier-challenge.d.ts +1 -0
- package/dist/screens/phone-identifier-challenge.js +1 -1
- package/dist/screens/phone-identifier-challenge.js.map +1 -1
- package/dist/telemetry.js +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers,
|
|
|
3
3
|
export declare const submitEmailChallenge: (payload: EmailChallengeOptions) => void | Promise<void>;
|
|
4
4
|
export declare const resendCode: (payload?: CustomOptions) => void | Promise<void>;
|
|
5
5
|
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
|
+
export declare const switchToPassword: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
7
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
7
8
|
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
8
9
|
export declare const useEmailIdentifierChallenge: () => EmailIdentifierChallengeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/email-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,
|
|
1
|
+
import e from"@auth0/auth0-acul-js/email-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,a=new s(n),{useUser:u,useTenant:i,useBranding:h,useClient:c,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:l,useUntrustedData:d}=a,j=e=>m(n.submitEmailChallenge(e)),x=e=>m(n.resendCode(e)),k=e=>m(n.returnToPrevious(e)),C=e=>m(n.switchToPassword(e)),T=()=>o(()=>n,[]);export{x as resendCode,k as returnToPrevious,j as submitEmailChallenge,C as switchToPassword,h as useBranding,c as useClient,T as useEmailIdentifierChallenge,p as useOrganization,f as usePrompt,g as useScreen,i as useTenant,l as useTransaction,d as useUntrustedData,u as useUser};
|
|
2
2
|
//# sourceMappingURL=email-identifier-challenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitEmailChallenge","payload","resendCode","returnToPrevious","useEmailIdentifierChallenge","useMemo"],"mappings":"sjBAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,
|
|
1
|
+
{"version":3,"file":"email-identifier-challenge.js","sources":["../../src/screens/email-identifier-challenge.tsx"],"sourcesContent":["import EmailIdentifierChallenge from '@auth0/auth0-acul-js/email-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n EmailIdentifierChallengeMembers,\n EmailChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/email-identifier-challenge';\n\n// Register the singleton instance of EmailIdentifierChallenge\nconst instance = registerScreen<EmailIdentifierChallengeMembers>(EmailIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<EmailIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitEmailChallenge = (payload: EmailChallengeOptions) =>\n withError(instance.submitEmailChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\nexport const switchToPassword = (payload?: CustomOptions) =>\n withError(instance.switchToPassword(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of EmailIdentifierChallenge\nexport const useEmailIdentifierChallenge = (): EmailIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","EmailIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitEmailChallenge","payload","resendCode","returnToPrevious","switchToPassword","useEmailIdentifierChallenge","useMemo"],"mappings":"sjBAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAoBH,GAC/Bd,EAAUH,EAASoB,iBAAiBH,IASzBI,EAA8B,IACzCC,EAAQ,IAAMtB,EAAU"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { LoginPasswordMembers, LoginPasswordOptions, FederatedLoginOptions, SwitchConnectionOptions } from '@auth0/auth0-acul-js/login-password';
|
|
1
|
+
import type { LoginPasswordMembers, LoginPasswordOptions, FederatedLoginOptions, SwitchConnectionOptions, CustomOptions } from '@auth0/auth0-acul-js/login-password';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnLoginPassword, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginPassword, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const login: (payload: LoginPasswordOptions) => void | Promise<void>;
|
|
4
4
|
export declare const federatedLogin: (payload: FederatedLoginOptions) => void | Promise<void>;
|
|
5
5
|
export declare const switchConnection: (payload: SwitchConnectionOptions) => void | Promise<void>;
|
|
6
|
+
export declare const switchToOtp: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
7
|
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
7
8
|
export declare const useLoginPassword: () => LoginPasswordMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
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,
|
|
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=o=>m(n.switchToOtp(o)),C=()=>e(()=>n,[]);export{k as federatedLogin,d as login,l as switchConnection,w as switchToOtp,i as useBranding,h as useClient,C 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, 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":"
|
|
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 CustomOptions,\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));\nexport const switchToOtp = (payload?: CustomOptions) => withError(instance.switchToOtp(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","switchToOtp","useLoginPassword","useMemo"],"mappings":"gfAgBA,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,IACzBG,EAAeH,GAA4Bd,EAAUH,EAASoB,YAAYH,IAM1EI,EAAmB,IAA4BC,EAAQ,IAAMtB,EAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PasskeyEnrollmentMembers, CustomOptions } from '@auth0/auth0-acul-js/passkey-enrollment';
|
|
1
|
+
import type { PasskeyEnrollmentMembers, CustomOptions, AbortEnrollmentOptions } from '@auth0/auth0-acul-js/passkey-enrollment';
|
|
2
2
|
export declare const useUser: () => import("@auth0/auth0-acul-js").UserMembers, useTenant: () => import("@auth0/auth0-acul-js").TenantMembers, useBranding: () => import("@auth0/auth0-acul-js").BrandingMembers, useClient: () => import("@auth0/auth0-acul-js").ClientMembers, useOrganization: () => import("@auth0/auth0-acul-js").OrganizationMembers, usePrompt: () => import("@auth0/auth0-acul-js").PromptMembers, useScreen: () => import("@auth0/auth0-acul-js").ScreenMembersOnPasskeyEnrollment, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembers, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
|
|
3
3
|
export declare const continuePasskeyEnrollment: (payload?: CustomOptions) => void | Promise<void>;
|
|
4
|
-
export declare const abortPasskeyEnrollment: (payload?:
|
|
4
|
+
export declare const abortPasskeyEnrollment: (payload?: AbortEnrollmentOptions) => void | Promise<void>;
|
|
5
5
|
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
6
6
|
export declare const usePasskeyEnrollment: () => PasskeyEnrollmentMembers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passkey-enrollment.js","sources":["../../src/screens/passkey-enrollment.tsx"],"sourcesContent":["import PasskeyEnrollment from '@auth0/auth0-acul-js/passkey-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentMembers,\n CustomOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment';\n\n// Register the singleton instance of PasskeyEnrollment\nconst instance = registerScreen<PasskeyEnrollmentMembers>(PasskeyEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload?:
|
|
1
|
+
{"version":3,"file":"passkey-enrollment.js","sources":["../../src/screens/passkey-enrollment.tsx"],"sourcesContent":["import PasskeyEnrollment from '@auth0/auth0-acul-js/passkey-enrollment';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PasskeyEnrollmentMembers,\n CustomOptions,\n AbortEnrollmentOptions,\n} from '@auth0/auth0-acul-js/passkey-enrollment';\n\n// Register the singleton instance of PasskeyEnrollment\nconst instance = registerScreen<PasskeyEnrollmentMembers>(PasskeyEnrollment)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PasskeyEnrollmentMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const continuePasskeyEnrollment = (payload?: CustomOptions) =>\n withError(instance.continuePasskeyEnrollment(payload));\nexport const abortPasskeyEnrollment = (payload?: AbortEnrollmentOptions) =>\n withError(instance.abortPasskeyEnrollment(payload));\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PasskeyEnrollment\nexport const usePasskeyEnrollment = (): PasskeyEnrollmentMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PasskeyEnrollment","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","continuePasskeyEnrollment","payload","abortPasskeyEnrollment","usePasskeyEnrollment","useMemo"],"mappings":"ofAcA,MAAMA,EAAWC,EAAyCC,IAGpDC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAAuCN,IAC9CO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAA6BC,GACxCd,EAAUH,EAASgB,0BAA0BC,IAClCC,EAA0BD,GACrCd,EAAUH,EAASkB,uBAAuBD,IAM/BE,EAAuB,IAAgCC,EAAQ,IAAMpB,EAAU"}
|
|
@@ -5,6 +5,7 @@ export declare const resendCode: (payload?: CustomOptions) => void | Promise<voi
|
|
|
5
5
|
export declare const returnToPrevious: (payload?: CustomOptions) => void | Promise<void>;
|
|
6
6
|
export declare const switchToVoice: (payload?: CustomOptions) => void | Promise<void>;
|
|
7
7
|
export declare const switchToText: (payload?: CustomOptions) => void | Promise<void>;
|
|
8
|
+
export declare const switchToPassword: (payload?: CustomOptions) => void | Promise<void>;
|
|
8
9
|
export { useResend } from '../hooks/utility/resend-manager';
|
|
9
10
|
export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
|
|
10
11
|
export declare const usePhoneIdentifierChallenge: () => PhoneIdentifierChallengeMembers;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@auth0/auth0-acul-js/phone-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:h,useClient:c,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:
|
|
1
|
+
import e from"@auth0/auth0-acul-js/phone-identifier-challenge";import{useMemo as o}from"react";export{useAuth0Themes}from"../hooks/common/auth0-themes.js";export{useChangeLanguage}from"../hooks/common/change-language.js";export{useCurrentScreen}from"../hooks/common/current-screen.js";import{errorManager as r}from"../hooks/common/errors.js";export{useErrors}from"../hooks/common/errors.js";import{ContextHooks as s}from"../hooks/context/index.js";import{registerScreen as t}from"../state/instance-store.js";export{useResend}from"../hooks/utility/resend-manager.js";const n=t(e),{withError:m}=r,u=new s(n),{useUser:a,useTenant:i,useBranding:h,useClient:c,useOrganization:p,usePrompt:f,useScreen:g,useTransaction:d,useUntrustedData:j}=u,x=e=>m(n.submitPhoneChallenge(e)),l=e=>m(n.resendCode(e)),T=e=>m(n.returnToPrevious(e)),k=e=>m(n.switchToVoice(e)),w=e=>m(n.switchToText(e)),C=e=>m(n.switchToPassword(e)),P=()=>o(()=>n,[]);export{l as resendCode,T as returnToPrevious,x as submitPhoneChallenge,C as switchToPassword,w as switchToText,k as switchToVoice,h as useBranding,c as useClient,p as useOrganization,P as usePhoneIdentifierChallenge,f as usePrompt,g as useScreen,i as useTenant,d as useTransaction,j as useUntrustedData,a as useUser};
|
|
2
2
|
//# sourceMappingURL=phone-identifier-challenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-identifier-challenge.js","sources":["../../src/screens/phone-identifier-challenge.tsx"],"sourcesContent":["import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PhoneIdentifierChallengeMembers,\n PhoneChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/phone-identifier-challenge';\n\n// Register the singleton instance of PhoneIdentifierChallenge\nconst instance = registerScreen<PhoneIdentifierChallengeMembers>(PhoneIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PhoneIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitPhoneChallenge = (payload: PhoneChallengeOptions) =>\n withError(instance.submitPhoneChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\nexport const switchToVoice = (payload?: CustomOptions) =>\n withError(instance.switchToVoice(payload));\nexport const switchToText = (payload?: CustomOptions) => withError(instance.switchToText(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PhoneIdentifierChallenge\nexport const usePhoneIdentifierChallenge = (): PhoneIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PhoneIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPhoneChallenge","payload","resendCode","returnToPrevious","switchToVoice","switchToText","usePhoneIdentifierChallenge","useMemo"],"mappings":"sjBAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAiBH,GAC5Bd,EAAUH,EAASoB,cAAcH,IACtBI,EAAgBJ,GAA4Bd,EAAUH,EAASqB,aAAaJ,
|
|
1
|
+
{"version":3,"file":"phone-identifier-challenge.js","sources":["../../src/screens/phone-identifier-challenge.tsx"],"sourcesContent":["import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n PhoneIdentifierChallengeMembers,\n PhoneChallengeOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/phone-identifier-challenge';\n\n// Register the singleton instance of PhoneIdentifierChallenge\nconst instance = registerScreen<PhoneIdentifierChallengeMembers>(PhoneIdentifierChallenge)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<PhoneIdentifierChallengeMembers>(instance);\nexport const {\n useUser,\n useTenant,\n useBranding,\n useClient,\n useOrganization,\n usePrompt,\n useScreen,\n useTransaction,\n useUntrustedData,\n} = factory;\n\n// Submit functions\nexport const submitPhoneChallenge = (payload: PhoneChallengeOptions) =>\n withError(instance.submitPhoneChallenge(payload));\nexport const resendCode = (payload?: CustomOptions) => withError(instance.resendCode(payload));\nexport const returnToPrevious = (payload?: CustomOptions) =>\n withError(instance.returnToPrevious(payload));\nexport const switchToVoice = (payload?: CustomOptions) =>\n withError(instance.switchToVoice(payload));\nexport const switchToText = (payload?: CustomOptions) => withError(instance.switchToText(payload));\nexport const switchToPassword = (payload?: CustomOptions) =>\n withError(instance.switchToPassword(payload));\n\n// Utility Hooks\nexport { useResend } from '../hooks/utility/resend-manager';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of PhoneIdentifierChallenge\nexport const usePhoneIdentifierChallenge = (): PhoneIdentifierChallengeMembers =>\n useMemo(() => instance, []);\n"],"names":["instance","registerScreen","PhoneIdentifierChallenge","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","submitPhoneChallenge","payload","resendCode","returnToPrevious","switchToVoice","switchToText","switchToPassword","usePhoneIdentifierChallenge","useMemo"],"mappings":"sjBAcA,MAAMA,EAAWC,EAAgDC,IAG3DC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8CN,IACrDO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAwBC,GACnCd,EAAUH,EAASgB,qBAAqBC,IAC7BC,EAAcD,GAA4Bd,EAAUH,EAASkB,WAAWD,IACxEE,EAAoBF,GAC/Bd,EAAUH,EAASmB,iBAAiBF,IACzBG,EAAiBH,GAC5Bd,EAAUH,EAASoB,cAAcH,IACtBI,EAAgBJ,GAA4Bd,EAAUH,EAASqB,aAAaJ,IAC5EK,EAAoBL,GAC/Bd,EAAUH,EAASsB,iBAAiBL,IASzBM,EAA8B,IACzCC,EAAQ,IAAMxB,EAAU"}
|
package/dist/telemetry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.
|
|
1
|
+
globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.4.0";
|
|
2
2
|
//# sourceMappingURL=telemetry.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth0/auth0-acul-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ts-node": "^10.9.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@auth0/auth0-acul-js": "1.
|
|
53
|
+
"@auth0/auth0-acul-js": "1.4.0"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"dist",
|