@auth0/auth0-acul-react 1.4.0 → 1.5.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.
@@ -1,9 +1,10 @@
1
- import type { LoginIdMembers, LoginOptions, FederatedLoginOptions, CustomOptions } from '@auth0/auth0-acul-js/login-id';
1
+ import type { LoginIdMembers, LoginOptions, FederatedLoginOptions, CustomOptions, GoogleOneTapOptions } from '@auth0/auth0-acul-js/login-id';
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").ScreenMembersOnLoginId, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLoginId, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  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 passkeyLogin: (payload?: CustomOptions) => void | Promise<void>;
6
6
  export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
7
+ export declare const googleOneTap: (payload: GoogleOneTapOptions) => void | Promise<void>;
7
8
  export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
8
9
  export { usePasskeyAutofill } from '../hooks/utility/passkey-autofill';
9
10
  export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
@@ -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{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};
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:p,usePrompt:f,useScreen:g,useTransaction:l,useUntrustedData:k}=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=o=>i(n.googleOneTap(o)),L=()=>e(()=>n,[]);export{d as federatedLogin,C as googleOneTap,j as login,x as passkeyLogin,y as pickCountryCode,c as useBranding,h as useClient,L as useLoginId,p as useOrganization,f as usePrompt,g as useScreen,a as useTenant,l as useTransaction,k 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, 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"}
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 GoogleOneTapOptions,\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));\nexport const googleOneTap = (payload: GoogleOneTapOptions) =>\n withError(instance.googleOneTap(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","googleOneTap","useLoginId","useMemo"],"mappings":"snBAgBA,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,IACxBI,EAAgBJ,GAC3Bd,EAAUH,EAASqB,aAAaJ,IAYrBK,EAAa,IAAsBC,EAAQ,IAAMvB,EAAU"}
@@ -1,8 +1,9 @@
1
- import type { LoginMembers, LoginOptions, FederatedLoginOptions, CustomOptions } from '@auth0/auth0-acul-js/login';
1
+ import type { LoginMembers, LoginOptions, FederatedLoginOptions, CustomOptions, GoogleOneTapOptions } from '@auth0/auth0-acul-js/login';
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").ScreenMembersOnLogin, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnLogin, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  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
+ export declare const googleOneTap: (payload: GoogleOneTapOptions) => void | Promise<void>;
6
7
  export { useLoginIdentifiers } from '../hooks/utility/login-identifiers';
7
8
  export { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';
8
9
  export declare const useLogin: () => LoginMembers;
@@ -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{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};
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:g,usePrompt:p,useScreen:f,useTransaction:j,useUntrustedData:d}=i,k=o=>m(n.login(o)),l=o=>m(n.federatedLogin(o)),x=o=>m(n.pickCountryCode(o)),C=o=>m(n.googleOneTap(o)),T=()=>e(()=>n,[]);export{l as federatedLogin,C as googleOneTap,k as login,x as pickCountryCode,c as useBranding,h as useClient,T as useLogin,g as useOrganization,p as usePrompt,f 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, 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
+ {"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 GoogleOneTapOptions,\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));\nexport const googleOneTap = (payload: GoogleOneTapOptions) =>\n withError(instance.googleOneTap(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","googleOneTap","useLogin","useMemo"],"mappings":"8iBAgBA,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,IACxBG,EAAgBH,GAC3Bd,EAAUH,EAASoB,aAAaH,IASrBI,EAAW,IAAoBC,EAAQ,IAAMtB,EAAU"}
@@ -1,7 +1,8 @@
1
- import type { SignupIdMembers, SignupOptions, FederatedSignupOptions, CustomOptions } from '@auth0/auth0-acul-js/signup-id';
1
+ import type { SignupIdMembers, SignupOptions, FederatedSignupOptions, GoogleOneTapOptions, CustomOptions } from '@auth0/auth0-acul-js/signup-id';
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").ScreenMembersOnSignupId, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnSignupId, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const signup: (payload: SignupOptions) => void | Promise<void>;
4
4
  export declare const federatedSignup: (payload: FederatedSignupOptions) => void | Promise<void>;
5
+ export declare const googleOneTap: (payload: GoogleOneTapOptions) => void | Promise<void>;
5
6
  export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
6
7
  export { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';
7
8
  export { useUsernameValidation } from '../hooks/utility/validate-username';
@@ -1,2 +1,2 @@
1
- import e from"@auth0/auth0-acul-js/signup-id";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{useSignupIdentifiers}from"../hooks/utility/signup-identifiers.js";export{useUsernameValidation}from"../hooks/utility/validate-username.js";const n=t(e),{withError:u}=r,i=new s(n),{useUser:m,useTenant:a,useBranding:p,useClient:c,useOrganization:h,usePrompt:f,useScreen:g,useTransaction:d,useUntrustedData:j}=i,k=e=>u(n.signup(e)),x=e=>u(n.federatedSignup(e)),l=e=>u(n.pickCountryCode(e)),C=()=>o(()=>n,[]);export{x as federatedSignup,l as pickCountryCode,k as signup,p as useBranding,c as useClient,h as useOrganization,f as usePrompt,g as useScreen,C as useSignupId,a as useTenant,d as useTransaction,j as useUntrustedData,m as useUser};
1
+ import e from"@auth0/auth0-acul-js/signup-id";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{useSignupIdentifiers}from"../hooks/utility/signup-identifiers.js";export{useUsernameValidation}from"../hooks/utility/validate-username.js";const n=t(e),{withError:u}=r,i=new s(n),{useUser:m,useTenant:a,useBranding:p,useClient:c,useOrganization:h,usePrompt:g,useScreen:f,useTransaction:d,useUntrustedData:j}=i,k=e=>u(n.signup(e)),x=e=>u(n.federatedSignup(e)),l=e=>u(n.googleOneTap(e)),C=e=>u(n.pickCountryCode(e)),S=()=>o(()=>n,[]);export{x as federatedSignup,l as googleOneTap,C as pickCountryCode,k as signup,p as useBranding,c as useClient,h as useOrganization,g as usePrompt,f as useScreen,S as useSignupId,a as useTenant,d as useTransaction,j as useUntrustedData,m as useUser};
2
2
  //# sourceMappingURL=signup-id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signup-id.js","sources":["../../src/screens/signup-id.tsx"],"sourcesContent":["import SignupId from '@auth0/auth0-acul-js/signup-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupIdMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup-id';\n\n// Register the singleton instance of SignupId\nconst instance = registerScreen<SignupIdMembers>(SignupId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupIdMembers>(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 signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupId\nexport const useSignupId = (): SignupIdMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","SignupId","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignupId","useMemo"],"mappings":"6nBAeA,MAAMA,EAAWC,EAAgCC,IAG3CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8BN,IACrCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAYxBG,EAAc,IAAuBC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"signup-id.js","sources":["../../src/screens/signup-id.tsx"],"sourcesContent":["import SignupId from '@auth0/auth0-acul-js/signup-id';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupIdMembers,\n SignupOptions,\n FederatedSignupOptions,\n GoogleOneTapOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup-id';\n\n// Register the singleton instance of SignupId\nconst instance = registerScreen<SignupIdMembers>(SignupId)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupIdMembers>(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 signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const googleOneTap = (payload: GoogleOneTapOptions) =>\n withError(instance.googleOneTap(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of SignupId\nexport const useSignupId = (): SignupIdMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","SignupId","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","googleOneTap","pickCountryCode","useSignupId","useMemo"],"mappings":"6nBAgBA,MAAMA,EAAWC,EAAgCC,IAG3CC,UAAEA,GAAcC,EAGhBC,EAAU,IAAIC,EAA8BN,IACrCO,QACXA,EAAOC,UACPA,EAASC,YACTA,EAAWC,UACXA,EAASC,gBACTA,EAAeC,UACfA,EAASC,UACTA,EAASC,eACTA,EAAcC,iBACdA,GACEV,EAGSW,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAgBF,GAC3Bd,EAAUH,EAASmB,aAAaF,IACrBG,EAAmBH,GAC9Bd,EAAUH,EAASoB,gBAAgBH,IAYxBI,EAAc,IAAuBC,EAAQ,IAAMtB,EAAU"}
@@ -1,7 +1,8 @@
1
- import type { SignupMembers, SignupOptions, FederatedSignupOptions, CustomOptions } from '@auth0/auth0-acul-js/signup';
1
+ import type { SignupMembers, SignupOptions, FederatedSignupOptions, GoogleOneTapOptions, CustomOptions } from '@auth0/auth0-acul-js/signup';
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").ScreenMembersOnSignup, useTransaction: () => import("@auth0/auth0-acul-js").TransactionMembersOnSignup, useUntrustedData: () => import("@auth0/auth0-acul-js").UntrustedDataMembers;
3
3
  export declare const signup: (payload: SignupOptions) => void | Promise<void>;
4
4
  export declare const federatedSignup: (payload: FederatedSignupOptions) => void | Promise<void>;
5
+ export declare const googleOneTap: (payload: GoogleOneTapOptions) => void | Promise<void>;
5
6
  export declare const pickCountryCode: (payload?: CustomOptions) => void | Promise<void>;
6
7
  export { usePasswordValidation } from '../hooks/utility/validate-password';
7
8
  export { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';
@@ -1,2 +1,2 @@
1
- import o from"@auth0/auth0-acul-js/signup";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";export{useSignupIdentifiers}from"../hooks/utility/signup-identifiers.js";export{usePasswordValidation}from"../hooks/utility/validate-password.js";export{useUsernameValidation}from"../hooks/utility/validate-username.js";const n=t(o),{withError:i}=r,u=new s(n),{useUser:a,useTenant:m,useBranding:p,useClient:h,useOrganization:c,usePrompt:f,useScreen:d,useTransaction:g,useUntrustedData:j}=u,k=o=>i(n.signup(o)),l=o=>i(n.federatedSignup(o)),x=o=>i(n.pickCountryCode(o)),C=()=>e(()=>n,[]);export{l as federatedSignup,x as pickCountryCode,k as signup,p as useBranding,h as useClient,c as useOrganization,f as usePrompt,d as useScreen,C as useSignup,m as useTenant,g as useTransaction,j as useUntrustedData,a as useUser};
1
+ import o from"@auth0/auth0-acul-js/signup";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";export{useSignupIdentifiers}from"../hooks/utility/signup-identifiers.js";export{usePasswordValidation}from"../hooks/utility/validate-password.js";export{useUsernameValidation}from"../hooks/utility/validate-username.js";const n=t(o),{withError:i}=r,u=new s(n),{useUser:a,useTenant:m,useBranding:p,useClient:h,useOrganization:c,usePrompt:f,useScreen:g,useTransaction:d,useUntrustedData:j}=u,l=o=>i(n.signup(o)),k=o=>i(n.federatedSignup(o)),x=o=>i(n.googleOneTap(o)),C=o=>i(n.pickCountryCode(o)),w=()=>e(()=>n,[]);export{k as federatedSignup,x as googleOneTap,C as pickCountryCode,l as signup,p as useBranding,h as useClient,c as useOrganization,f as usePrompt,g as useScreen,w as useSignup,m as useTenant,d as useTransaction,j as useUntrustedData,a as useUser};
2
2
  //# sourceMappingURL=signup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signup.js","sources":["../../src/screens/signup.tsx"],"sourcesContent":["import Signup from '@auth0/auth0-acul-js/signup';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupMembers,\n SignupOptions,\n FederatedSignupOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup';\n\n// Register the singleton instance of Signup\nconst instance = registerScreen<SignupMembers>(Signup)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupMembers>(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 signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Signup\nexport const useSignup = (): SignupMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Signup","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","pickCountryCode","useSignup","useMemo"],"mappings":"msBAeA,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,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAmBF,GAC9Bd,EAAUH,EAASmB,gBAAgBF,IAexBG,EAAY,IAAqBC,EAAQ,IAAMrB,EAAU"}
1
+ {"version":3,"file":"signup.js","sources":["../../src/screens/signup.tsx"],"sourcesContent":["import Signup from '@auth0/auth0-acul-js/signup';\nimport { useMemo } from 'react';\n\nimport { ContextHooks } from '../hooks';\nimport { errorManager } from '../hooks';\nimport { registerScreen } from '../state/instance-store';\n\nimport type {\n SignupMembers,\n SignupOptions,\n FederatedSignupOptions,\n GoogleOneTapOptions,\n CustomOptions,\n} from '@auth0/auth0-acul-js/signup';\n\n// Register the singleton instance of Signup\nconst instance = registerScreen<SignupMembers>(Signup)!;\n\n// Error wrapper\nconst { withError } = errorManager;\n\n// Context hooks\nconst factory = new ContextHooks<SignupMembers>(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 signup = (payload: SignupOptions) => withError(instance.signup(payload));\nexport const federatedSignup = (payload: FederatedSignupOptions) =>\n withError(instance.federatedSignup(payload));\nexport const googleOneTap = (payload: GoogleOneTapOptions) =>\n withError(instance.googleOneTap(payload));\nexport const pickCountryCode = (payload?: CustomOptions) =>\n withError(instance.pickCountryCode(payload));\n\n// Utility Hooks\nexport { usePasswordValidation } from '../hooks/utility/validate-password';\n\n// Utility Hooks\nexport { useSignupIdentifiers } from '../hooks/utility/signup-identifiers';\n\n// Utility Hooks\nexport { useUsernameValidation } from '../hooks/utility/validate-username';\n\n// Common hooks\nexport { useCurrentScreen, useErrors, useAuth0Themes, useChangeLanguage } from '../hooks';\n\n// Main instance hook. Returns singleton instance of Signup\nexport const useSignup = (): SignupMembers => useMemo(() => instance, []);\n"],"names":["instance","registerScreen","Signup","withError","errorManager","factory","ContextHooks","useUser","useTenant","useBranding","useClient","useOrganization","usePrompt","useScreen","useTransaction","useUntrustedData","signup","payload","federatedSignup","googleOneTap","pickCountryCode","useSignup","useMemo"],"mappings":"msBAgBA,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,EAAUC,GAA2Bd,EAAUH,EAASgB,OAAOC,IAC/DC,EAAmBD,GAC9Bd,EAAUH,EAASkB,gBAAgBD,IACxBE,EAAgBF,GAC3Bd,EAAUH,EAASmB,aAAaF,IACrBG,EAAmBH,GAC9Bd,EAAUH,EAASoB,gBAAgBH,IAexBI,EAAY,IAAqBC,EAAQ,IAAMtB,EAAU"}
package/dist/telemetry.js CHANGED
@@ -1,2 +1,2 @@
1
- globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.4.0";
1
+ globalThis.__ACUL_SDK_NAME__="@auth0/auth0-acul-react",globalThis.__ACUL_SDK_VERSION__="1.5.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.4.0",
3
+ "version": "1.5.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.4.0"
53
+ "@auth0/auth0-acul-js": "1.5.0"
54
54
  },
55
55
  "files": [
56
56
  "dist",