better-auth-ui 3.2.13 → 3.2.14

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.
Files changed (40) hide show
  1. package/dist/{auth-hooks-IOEvlYYv.d.cts → auth-hooks-BuniCu20.d.cts} +5 -4
  2. package/dist/{auth-hooks-IOEvlYYv.d.ts → auth-hooks-BuniCu20.d.ts} +5 -4
  3. package/dist/{auth-ui-provider-BsH3xJDw.d.ts → auth-ui-provider-B3fzotj0.d.ts} +3 -18
  4. package/dist/{auth-ui-provider-DhZfncd3.d.cts → auth-ui-provider-DGboLH2y.d.cts} +3 -18
  5. package/dist/{chunk-CRAHKL2C.cjs → chunk-42PRTYAB.cjs} +11 -1
  6. package/dist/{chunk-SV64DXGW.cjs → chunk-B24ZS3AS.cjs} +77 -78
  7. package/dist/{chunk-BDFQSFBU.js → chunk-GFDS6WTO.js} +67 -68
  8. package/dist/{chunk-MJPOA6PK.js → chunk-YTGCDVH4.js} +10 -0
  9. package/dist/index.cjs +604 -554
  10. package/dist/index.d.cts +49 -13
  11. package/dist/index.d.ts +49 -13
  12. package/dist/index.js +129 -79
  13. package/dist/instantdb.d.cts +1 -1
  14. package/dist/instantdb.d.ts +1 -1
  15. package/dist/metafile-cjs.json +1 -1
  16. package/dist/metafile-esm.json +1 -1
  17. package/dist/server.cjs +10 -10
  18. package/dist/server.d.cts +4 -2
  19. package/dist/server.d.ts +4 -2
  20. package/dist/server.js +1 -1
  21. package/dist/tanstack.cjs +3 -3
  22. package/dist/tanstack.d.cts +3 -3
  23. package/dist/tanstack.d.ts +3 -3
  24. package/dist/tanstack.js +2 -2
  25. package/dist/triplit.d.cts +1 -1
  26. package/dist/triplit.d.ts +1 -1
  27. package/dist/utils-CaN43O_Z.d.cts +24 -0
  28. package/dist/utils-yT5zrMzq.d.ts +24 -0
  29. package/dist/{view-paths-CHSJf5dv.d.ts → view-paths-CIL7NXLh.d.cts} +16 -1
  30. package/dist/{view-paths-CHSJf5dv.d.cts → view-paths-CIL7NXLh.d.ts} +16 -1
  31. package/package.json +5 -3
  32. package/src/components/auth/forms/email-otp-form.tsx +4 -4
  33. package/src/components/organization/organization-members-card.tsx +3 -1
  34. package/src/components/settings/account/update-name-card.tsx +2 -0
  35. package/src/components/settings/account/update-username-card.tsx +2 -0
  36. package/src/components/settings/account-settings-cards.tsx +8 -6
  37. package/src/components/settings/security/change-email-card.tsx +2 -0
  38. package/src/index.ts +25 -1
  39. package/dist/utils-C5R37WDe.d.cts +0 -3
  40. package/dist/utils-C5R37WDe.d.ts +0 -3
package/dist/index.d.cts CHANGED
@@ -1,27 +1,29 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as AuthLocalization, a as AccountViewPath, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath } from './view-paths-CHSJf5dv.cjs';
3
- export { f as AccountViewPaths, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CHSJf5dv.cjs';
2
+ import { A as AuthLocalization, a as AccountViewPath, b as AuthViewPath, c as AuthViewPaths, P as PasswordValidation, O as OrganizationViewPath } from './view-paths-CIL7NXLh.cjs';
3
+ export { f as AccountViewPaths, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CIL7NXLh.cjs';
4
4
  import * as React from 'react';
5
- import { ComponentProps, ReactNode } from 'react';
5
+ import { ComponentProps, ReactNode, RefObject } from 'react';
6
6
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
- import { P as PasswordValidation, F as FieldType } from './auth-ui-provider-DhZfncd3.cjs';
8
- export { A as AppleIcon, m as AuthUIContext, k as AuthUIContextType, n as AuthUIProvider, l as AuthUIProviderProps, D as DiscordIcon, c as DropboxIcon, d as FacebookIcon, G as GitHubIcon, e as GitLabIcon, f as GoogleIcon, H as HuggingFaceIcon, K as KickIcon, L as LinearIcon, g as LinkedInIcon, M as MicrosoftIcon, N as NotionIcon, o as Provider, b as ProviderIcon, a as ProviderIconProps, R as RedditIcon, h as RobloxIcon, S as SlackIcon, i as SpotifyIcon, T as TikTokIcon, j as TwitchIcon, V as VKIcon, X as XIcon, Z as ZoomIcon, s as socialProviders } from './auth-ui-provider-DhZfncd3.cjs';
9
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
8
  import { Organization } from 'better-auth/plugins/organization';
11
9
  import * as class_variance_authority_types from 'class-variance-authority/types';
12
10
  import { VariantProps } from 'class-variance-authority';
11
+ import { F as FieldType } from './auth-ui-provider-DGboLH2y.cjs';
12
+ export { o as AccountOptions, p as AccountOptionsContext, q as AdditionalField, r as AdditionalFields, A as AppleIcon, l as AuthUIContext, j as AuthUIContextType, m as AuthUIProvider, k as AuthUIProviderProps, t as AvatarOptions, C as CaptchaOptions, u as CredentialsOptions, v as DeleteUserOptions, D as DiscordIcon, b as DropboxIcon, c as FacebookIcon, w as GenericOAuthOptions, G as GitHubIcon, d as GitLabIcon, e as GoogleIcon, x as GravatarOptions, H as HuggingFaceIcon, K as KickIcon, L as LinearIcon, y as Link, f as LinkedInIcon, M as MicrosoftIcon, N as NotionIcon, O as OrganizationLogoOptions, z as OrganizationOptions, B as OrganizationOptionsContext, n as Provider, a as ProviderIcon, P as ProviderIconProps, R as RedditIcon, E as RenderToast, g as RobloxIcon, I as SignUpOptions, S as SlackIcon, J as SocialOptions, h as SpotifyIcon, T as TikTokIcon, i as TwitchIcon, V as VKIcon, X as XIcon, Z as ZoomIcon, s as socialProviders } from './auth-ui-provider-DGboLH2y.cjs';
13
13
  import * as better_auth from 'better-auth';
14
14
  import { Account } from 'better-auth';
15
- import { R as Refetch, A as AnyAuthClient } from './auth-hooks-IOEvlYYv.cjs';
16
- export { a as AuthHooks } from './auth-hooks-IOEvlYYv.cjs';
15
+ import { R as Refetch, A as AnyAuthClient } from './auth-hooks-BuniCu20.cjs';
16
+ export { b as AuthClient, c as AuthHooks, S as Session, U as User, a as authClient } from './auth-hooks-BuniCu20.cjs';
17
17
  import * as _better_fetch_fetch from '@better-fetch/fetch';
18
- export { g as getViewByPath } from './utils-C5R37WDe.cjs';
18
+ export { c as cn, e as errorCodeToCamelCase, d as getKeyByValue, g as getLocalizedError, f as getPasswordSchema, a as getSearchParam, b as getViewByPath, i as isValidEmail } from './utils-CaN43O_Z.cjs';
19
19
  export { A as AuthMutators } from './auth-mutators-DdqOmQ32.cjs';
20
20
  import 'better-auth/social-providers';
21
21
  import 'better-auth/react';
22
22
  import 'inspector';
23
23
  import 'better-auth/client/plugins';
24
24
  import 'better-auth/plugins/passkey';
25
+ import 'clsx';
26
+ import 'zod';
25
27
 
26
28
  declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
29
 
@@ -370,9 +372,10 @@ interface OrganizationLogoCardProps extends ComponentProps<typeof Card> {
370
372
  }
371
373
  declare function OrganizationLogoCard({ className, classNames, localization: localizationProp, slug, ...props }: OrganizationLogoCardProps): react_jsx_runtime.JSX.Element;
372
374
 
373
- declare function OrganizationMembersCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: SettingsCardProps & {
375
+ type OrganizationMembersCardProps = SettingsCardProps & {
374
376
  slug?: string;
375
- }): react_jsx_runtime.JSX.Element;
377
+ };
378
+ declare function OrganizationMembersCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: OrganizationMembersCardProps): react_jsx_runtime.JSX.Element;
376
379
 
377
380
  interface OrganizationNameCardProps extends SettingsCardProps {
378
381
  slug?: string;
@@ -561,18 +564,21 @@ interface UpdateFieldCardProps {
561
564
  }
562
565
  declare function UpdateFieldCard({ className, classNames, description, instructions, localization: localizationProp, name, placeholder, required, label, type, multiline, value, validate }: UpdateFieldCardProps): react_jsx_runtime.JSX.Element;
563
566
 
567
+ type UpdateNameCardProps = SettingsCardProps;
564
568
  declare function UpdateNameCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
565
569
 
570
+ type UpdateUsernameCardProps = SettingsCardProps;
566
571
  declare function UpdateUsernameCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
567
572
 
568
- declare function AccountSettingsCards({ className, classNames, localization }: {
573
+ interface AccountSettingsCardsProps {
569
574
  className?: string;
570
575
  classNames?: {
571
576
  card?: SettingsCardClassNames;
572
577
  cards?: string;
573
578
  };
574
579
  localization?: Partial<AuthLocalization>;
575
- }): react_jsx_runtime.JSX.Element;
580
+ }
581
+ declare function AccountSettingsCards({ className, classNames, localization }: AccountSettingsCardsProps): react_jsx_runtime.JSX.Element;
576
582
 
577
583
  interface ApiKeysCardProps extends SettingsCardProps {
578
584
  organizationId?: string;
@@ -597,6 +603,7 @@ interface ProvidersCardProps {
597
603
  }
598
604
  declare function ProvidersCard({ className, classNames, accounts, isPending, localization, skipHook, refetch }: ProvidersCardProps): react_jsx_runtime.JSX.Element;
599
605
 
606
+ type ChangeEmailCardProps = SettingsCardProps;
600
607
  declare function ChangeEmailCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
601
608
 
602
609
  interface ChangePasswordCardProps {
@@ -756,6 +763,16 @@ declare function useAuthenticate<TAuthClient extends AnyAuthClient>(options?: Au
756
763
  }) => void;
757
764
  };
758
765
 
766
+ declare function useCaptcha({ localization }: {
767
+ localization: Partial<AuthLocalization>;
768
+ }): {
769
+ captchaRef: RefObject<any>;
770
+ getCaptchaHeaders: (action: string) => Promise<{
771
+ "x-captcha-response": string;
772
+ } | undefined>;
773
+ resetCaptcha: () => void;
774
+ };
775
+
759
776
  declare function useCurrentOrganization({ slug: slugProp }?: {
760
777
  slug?: string;
761
778
  }): {
@@ -772,4 +789,23 @@ declare function useCurrentOrganization({ slug: slugProp }?: {
772
789
  refetch: (() => void) | undefined;
773
790
  };
774
791
 
775
- export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };
792
+ declare function useIsHydrated(): boolean;
793
+
794
+ declare function useLang(): {
795
+ lang: string | undefined;
796
+ };
797
+
798
+ declare function useOnSuccessTransition({ redirectTo: redirectToProp }: {
799
+ redirectTo?: string;
800
+ }): {
801
+ onSuccess: () => Promise<void>;
802
+ isPending: boolean;
803
+ };
804
+
805
+ declare function useTheme(): {
806
+ theme: "light" | "dark";
807
+ };
808
+
809
+ declare const OrganizationRefetcher: () => null;
810
+
811
+ export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, type AccountSettingsCardsProps, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, AnyAuthClient, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, type ChangeEmailCardProps, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, FieldType, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, type OrganizationMembersCardProps, OrganizationNameCard, type OrganizationNameCardProps, OrganizationRefetcher, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, PasswordValidation, type Profile, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, Refetch, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, type UpdateNameCardProps, UpdateUsernameCard, type UpdateUsernameCardProps, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCaptcha, useCurrentOrganization, useIsHydrated, useLang, useOnSuccessTransition, useTheme };
package/dist/index.d.ts CHANGED
@@ -1,27 +1,29 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as AuthLocalization, a as AccountViewPath, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath } from './view-paths-CHSJf5dv.js';
3
- export { f as AccountViewPaths, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CHSJf5dv.js';
2
+ import { A as AuthLocalization, a as AccountViewPath, b as AuthViewPath, c as AuthViewPaths, P as PasswordValidation, O as OrganizationViewPath } from './view-paths-CIL7NXLh.js';
3
+ export { f as AccountViewPaths, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CIL7NXLh.js';
4
4
  import * as React from 'react';
5
- import { ComponentProps, ReactNode } from 'react';
5
+ import { ComponentProps, ReactNode, RefObject } from 'react';
6
6
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
- import { P as PasswordValidation, F as FieldType } from './auth-ui-provider-BsH3xJDw.js';
8
- export { A as AppleIcon, m as AuthUIContext, k as AuthUIContextType, n as AuthUIProvider, l as AuthUIProviderProps, D as DiscordIcon, c as DropboxIcon, d as FacebookIcon, G as GitHubIcon, e as GitLabIcon, f as GoogleIcon, H as HuggingFaceIcon, K as KickIcon, L as LinearIcon, g as LinkedInIcon, M as MicrosoftIcon, N as NotionIcon, o as Provider, b as ProviderIcon, a as ProviderIconProps, R as RedditIcon, h as RobloxIcon, S as SlackIcon, i as SpotifyIcon, T as TikTokIcon, j as TwitchIcon, V as VKIcon, X as XIcon, Z as ZoomIcon, s as socialProviders } from './auth-ui-provider-BsH3xJDw.js';
9
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
8
  import { Organization } from 'better-auth/plugins/organization';
11
9
  import * as class_variance_authority_types from 'class-variance-authority/types';
12
10
  import { VariantProps } from 'class-variance-authority';
11
+ import { F as FieldType } from './auth-ui-provider-B3fzotj0.js';
12
+ export { o as AccountOptions, p as AccountOptionsContext, q as AdditionalField, r as AdditionalFields, A as AppleIcon, l as AuthUIContext, j as AuthUIContextType, m as AuthUIProvider, k as AuthUIProviderProps, t as AvatarOptions, C as CaptchaOptions, u as CredentialsOptions, v as DeleteUserOptions, D as DiscordIcon, b as DropboxIcon, c as FacebookIcon, w as GenericOAuthOptions, G as GitHubIcon, d as GitLabIcon, e as GoogleIcon, x as GravatarOptions, H as HuggingFaceIcon, K as KickIcon, L as LinearIcon, y as Link, f as LinkedInIcon, M as MicrosoftIcon, N as NotionIcon, O as OrganizationLogoOptions, z as OrganizationOptions, B as OrganizationOptionsContext, n as Provider, a as ProviderIcon, P as ProviderIconProps, R as RedditIcon, E as RenderToast, g as RobloxIcon, I as SignUpOptions, S as SlackIcon, J as SocialOptions, h as SpotifyIcon, T as TikTokIcon, i as TwitchIcon, V as VKIcon, X as XIcon, Z as ZoomIcon, s as socialProviders } from './auth-ui-provider-B3fzotj0.js';
13
13
  import * as better_auth from 'better-auth';
14
14
  import { Account } from 'better-auth';
15
- import { R as Refetch, A as AnyAuthClient } from './auth-hooks-IOEvlYYv.js';
16
- export { a as AuthHooks } from './auth-hooks-IOEvlYYv.js';
15
+ import { R as Refetch, A as AnyAuthClient } from './auth-hooks-BuniCu20.js';
16
+ export { b as AuthClient, c as AuthHooks, S as Session, U as User, a as authClient } from './auth-hooks-BuniCu20.js';
17
17
  import * as _better_fetch_fetch from '@better-fetch/fetch';
18
- export { g as getViewByPath } from './utils-C5R37WDe.js';
18
+ export { c as cn, e as errorCodeToCamelCase, d as getKeyByValue, g as getLocalizedError, f as getPasswordSchema, a as getSearchParam, b as getViewByPath, i as isValidEmail } from './utils-yT5zrMzq.js';
19
19
  export { A as AuthMutators } from './auth-mutators-DdqOmQ32.js';
20
20
  import 'better-auth/social-providers';
21
21
  import 'better-auth/react';
22
22
  import 'inspector';
23
23
  import 'better-auth/client/plugins';
24
24
  import 'better-auth/plugins/passkey';
25
+ import 'clsx';
26
+ import 'zod';
25
27
 
26
28
  declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
29
 
@@ -370,9 +372,10 @@ interface OrganizationLogoCardProps extends ComponentProps<typeof Card> {
370
372
  }
371
373
  declare function OrganizationLogoCard({ className, classNames, localization: localizationProp, slug, ...props }: OrganizationLogoCardProps): react_jsx_runtime.JSX.Element;
372
374
 
373
- declare function OrganizationMembersCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: SettingsCardProps & {
375
+ type OrganizationMembersCardProps = SettingsCardProps & {
374
376
  slug?: string;
375
- }): react_jsx_runtime.JSX.Element;
377
+ };
378
+ declare function OrganizationMembersCard({ className, classNames, localization: localizationProp, slug: slugProp, ...props }: OrganizationMembersCardProps): react_jsx_runtime.JSX.Element;
376
379
 
377
380
  interface OrganizationNameCardProps extends SettingsCardProps {
378
381
  slug?: string;
@@ -561,18 +564,21 @@ interface UpdateFieldCardProps {
561
564
  }
562
565
  declare function UpdateFieldCard({ className, classNames, description, instructions, localization: localizationProp, name, placeholder, required, label, type, multiline, value, validate }: UpdateFieldCardProps): react_jsx_runtime.JSX.Element;
563
566
 
567
+ type UpdateNameCardProps = SettingsCardProps;
564
568
  declare function UpdateNameCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
565
569
 
570
+ type UpdateUsernameCardProps = SettingsCardProps;
566
571
  declare function UpdateUsernameCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
567
572
 
568
- declare function AccountSettingsCards({ className, classNames, localization }: {
573
+ interface AccountSettingsCardsProps {
569
574
  className?: string;
570
575
  classNames?: {
571
576
  card?: SettingsCardClassNames;
572
577
  cards?: string;
573
578
  };
574
579
  localization?: Partial<AuthLocalization>;
575
- }): react_jsx_runtime.JSX.Element;
580
+ }
581
+ declare function AccountSettingsCards({ className, classNames, localization }: AccountSettingsCardsProps): react_jsx_runtime.JSX.Element;
576
582
 
577
583
  interface ApiKeysCardProps extends SettingsCardProps {
578
584
  organizationId?: string;
@@ -597,6 +603,7 @@ interface ProvidersCardProps {
597
603
  }
598
604
  declare function ProvidersCard({ className, classNames, accounts, isPending, localization, skipHook, refetch }: ProvidersCardProps): react_jsx_runtime.JSX.Element;
599
605
 
606
+ type ChangeEmailCardProps = SettingsCardProps;
600
607
  declare function ChangeEmailCard({ className, classNames, localization, ...props }: SettingsCardProps): react_jsx_runtime.JSX.Element;
601
608
 
602
609
  interface ChangePasswordCardProps {
@@ -756,6 +763,16 @@ declare function useAuthenticate<TAuthClient extends AnyAuthClient>(options?: Au
756
763
  }) => void;
757
764
  };
758
765
 
766
+ declare function useCaptcha({ localization }: {
767
+ localization: Partial<AuthLocalization>;
768
+ }): {
769
+ captchaRef: RefObject<any>;
770
+ getCaptchaHeaders: (action: string) => Promise<{
771
+ "x-captcha-response": string;
772
+ } | undefined>;
773
+ resetCaptcha: () => void;
774
+ };
775
+
759
776
  declare function useCurrentOrganization({ slug: slugProp }?: {
760
777
  slug?: string;
761
778
  }): {
@@ -772,4 +789,23 @@ declare function useCurrentOrganization({ slug: slugProp }?: {
772
789
  refetch: (() => void) | undefined;
773
790
  };
774
791
 
775
- export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, type OrganizationNameCardProps, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCurrentOrganization };
792
+ declare function useIsHydrated(): boolean;
793
+
794
+ declare function useLang(): {
795
+ lang: string | undefined;
796
+ };
797
+
798
+ declare function useOnSuccessTransition({ redirectTo: redirectToProp }: {
799
+ redirectTo?: string;
800
+ }): {
801
+ onSuccess: () => Promise<void>;
802
+ isPending: boolean;
803
+ };
804
+
805
+ declare function useTheme(): {
806
+ theme: "light" | "dark";
807
+ };
808
+
809
+ declare const OrganizationRefetcher: () => null;
810
+
811
+ export { AcceptInvitationCard, type AcceptInvitationCardProps, AccountSettingsCards, type AccountSettingsCardsProps, AccountView, AccountViewPath, type AccountViewProps, AccountsCard, type AccountsCardProps, AnyAuthClient, ApiKeysCard, type ApiKeysCardProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLoading, AuthLocalization, AuthView, type AuthViewClassNames, AuthViewPath, AuthViewPaths, type AuthViewProps, ChangeEmailCard, type ChangeEmailCardProps, ChangePasswordCard, type ChangePasswordCardProps, CreateOrganizationDialog, type CreateOrganizationDialogProps, DeleteAccountCard, type DeleteAccountCardProps, DeleteOrganizationCard, FieldType, ForgotPasswordForm, type ForgotPasswordFormProps, InputFieldSkeleton, MagicLinkForm, type MagicLinkFormProps, OrganizationCellView, type OrganizationCellViewProps, OrganizationInvitationsCard, type OrganizationInvitationsCardProps, OrganizationLogo, OrganizationLogoCard, type OrganizationLogoCardProps, type OrganizationLogoClassNames, type OrganizationLogoProps, OrganizationMembersCard, type OrganizationMembersCardProps, OrganizationNameCard, type OrganizationNameCardProps, OrganizationRefetcher, OrganizationSettingsCards, type OrganizationSettingsCardsProps, OrganizationSlugCard, type OrganizationSlugCardProps, OrganizationSwitcher, type OrganizationSwitcherClassNames, type OrganizationSwitcherProps, OrganizationView, type OrganizationViewClassNames, OrganizationViewPath, type OrganizationViewProps, OrganizationsCard, type OrganizationsCardProps, PasskeysCard, type PasskeysCardProps, PasswordInput, PasswordValidation, type Profile, ProvidersCard, type ProvidersCardProps, RecoverAccountForm, type RecoverAccountFormProps, RedirectToSignIn, RedirectToSignUp, Refetch, ResetPasswordForm, type ResetPasswordFormProps, SecuritySettingsCards, SessionsCard, type SessionsCardProps, SettingsCard, type SettingsCardClassNames, type SettingsCardProps, SettingsCellSkeleton, SignInForm, type SignInFormProps, SignOut, SignUpForm, type SignUpFormProps, SignedIn, SignedOut, TwoFactorCard, type TwoFactorCardProps, TwoFactorForm, type TwoFactorFormProps, UpdateAvatarCard, type UpdateAvatarCardProps, UpdateFieldCard, type UpdateFieldCardProps, UpdateNameCard, type UpdateNameCardProps, UpdateUsernameCard, type UpdateUsernameCardProps, UserAvatar, type UserAvatarClassNames, type UserAvatarProps, UserButton, type UserButtonClassNames, type UserButtonProps, UserInvitationsCard, type UserInvitationsCardProps, UserView, type UserViewClassNames, type UserViewProps, useAuthData, useAuthenticate, useCaptcha, useCurrentOrganization, useIsHydrated, useLang, useOnSuccessTransition, useTheme };