@better-auth-ui/heroui 1.6.8 → 1.6.10
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/components/auth/api-key/api-key.d.ts +5 -1
- package/dist/components/auth/api-key/api-keys-empty.d.ts +3 -1
- package/dist/components/auth/api-key/api-keys.d.ts +9 -1
- package/dist/components/auth/api-key/create-api-key-dialog.d.ts +3 -1
- package/dist/components/auth/api-key/delete-api-key-dialog.d.ts +3 -1
- package/dist/components/auth/api-key/organization-api-keys.d.ts +14 -0
- package/dist/components/auth/delete-user/danger-zone.d.ts +1 -1
- package/dist/components/auth/delete-user/{delete-user.d.ts → delete-account.d.ts} +2 -2
- package/dist/components/auth/email/organization-invitation-email.d.ts +3 -0
- package/dist/components/auth/multi-session/switch-account-submenu-content.d.ts +3 -1
- package/dist/components/auth/multi-session/switch-account-submenu-item.d.ts +2 -1
- package/dist/components/auth/multi-session/switch-account-submenu.d.ts +2 -1
- package/dist/components/auth/organization/change-organization-logo.d.ts +4 -0
- package/dist/components/auth/organization/create-organization-dialog.d.ts +13 -0
- package/dist/components/auth/organization/delete-organization-dialog.d.ts +7 -0
- package/dist/components/auth/organization/delete-organization-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/delete-organization.d.ts +5 -0
- package/dist/components/auth/organization/invite-member-dialog.d.ts +13 -0
- package/dist/components/auth/organization/leave-organization-dialog.d.ts +7 -0
- package/dist/components/auth/organization/leave-organization.d.ts +4 -0
- package/dist/components/auth/organization/organization-danger-zone.d.ts +16 -0
- package/dist/components/auth/organization/organization-invitation-row-skeleton.d.ts +5 -0
- package/dist/components/auth/organization/organization-invitation-row.d.ts +5 -0
- package/dist/components/auth/organization/organization-invitations-empty.d.ts +8 -0
- package/dist/components/auth/organization/organization-invitations.d.ts +9 -0
- package/dist/components/auth/organization/organization-logo.d.ts +15 -0
- package/dist/components/auth/organization/organization-member-row-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/organization-member-row.d.ts +9 -0
- package/dist/components/auth/organization/organization-members.d.ts +9 -0
- package/dist/components/auth/organization/organization-people.d.ts +10 -0
- package/dist/components/auth/organization/organization-profile.d.ts +9 -0
- package/dist/components/auth/organization/organization-row.d.ts +8 -0
- package/dist/components/auth/organization/organization-settings.d.ts +12 -0
- package/dist/components/auth/organization/organization-switcher.d.ts +20 -0
- package/dist/components/auth/organization/organization-view-skeleton.d.ts +6 -0
- package/dist/components/auth/organization/organization-view.d.ts +15 -0
- package/dist/components/auth/organization/organization.d.ts +17 -0
- package/dist/components/auth/organization/organizations-empty.d.ts +4 -0
- package/dist/components/auth/organization/organizations-settings.d.ts +17 -0
- package/dist/components/auth/organization/organizations.d.ts +10 -0
- package/dist/components/auth/organization/remove-member-dialog.d.ts +9 -0
- package/dist/components/auth/organization/slug-field.d.ts +19 -0
- package/dist/components/auth/organization/user-invitation-row-skeleton.d.ts +4 -0
- package/dist/components/auth/organization/user-invitation-row.d.ts +10 -0
- package/dist/components/auth/organization/user-invitations-empty.d.ts +4 -0
- package/dist/components/auth/organization/user-invitations.d.ts +10 -0
- package/dist/components/auth/settings/settings.d.ts +1 -1
- package/dist/components/auth/user/user-avatar.d.ts +1 -1
- package/dist/components/auth/user/user-button.d.ts +4 -5
- package/dist/components/auth/user/user-view.d.ts +10 -4
- package/dist/email.d.ts +1 -0
- package/dist/email.js +211 -8
- package/dist/index.js +1682 -22
- package/dist/lib/auth/api-key-plugin.d.ts +5 -2
- package/dist/lib/auth/auth-plugin.d.ts +6 -2
- package/dist/lib/auth/delete-user-plugin.d.ts +4 -4
- package/dist/lib/auth/magic-link-plugin.d.ts +2 -2
- package/dist/lib/auth/multi-session-plugin.d.ts +2 -2
- package/dist/lib/auth/organization-plugin.d.ts +37 -0
- package/dist/lib/auth/passkey-plugin.d.ts +2 -2
- package/dist/lib/auth/theme-plugin.d.ts +3 -3
- package/dist/lib/auth/username-plugin.d.ts +8 -8
- package/dist/plugins.d.ts +25 -1
- package/dist/plugins.js +2824 -22
- package/dist/user-view--47tVtJ3.js +113 -0
- package/package.json +23 -18
- package/src/components/auth/api-key/api-key.tsx +25 -16
- package/src/components/auth/api-key/api-keys-empty.tsx +8 -4
- package/src/components/auth/api-key/api-keys.tsx +52 -14
- package/src/components/auth/api-key/create-api-key-dialog.tsx +15 -2
- package/src/components/auth/api-key/delete-api-key-dialog.tsx +10 -2
- package/src/components/auth/api-key/organization-api-keys.tsx +55 -0
- package/src/components/auth/delete-user/danger-zone.tsx +3 -3
- package/src/components/auth/delete-user/{delete-user.tsx → delete-account.tsx} +9 -9
- package/src/components/auth/email/organization-invitation-email.tsx +38 -0
- package/src/components/auth/error-toaster.tsx +28 -10
- package/src/components/auth/forgot-password.tsx +10 -2
- package/src/components/auth/multi-session/manage-accounts.tsx +1 -1
- package/src/components/auth/multi-session/switch-account-submenu-content.tsx +7 -2
- package/src/components/auth/multi-session/switch-account-submenu-item.tsx +4 -2
- package/src/components/auth/multi-session/switch-account-submenu.tsx +8 -4
- package/src/components/auth/organization/change-organization-logo.tsx +171 -0
- package/src/components/auth/organization/create-organization-dialog.tsx +133 -0
- package/src/components/auth/organization/delete-organization-dialog.tsx +97 -0
- package/src/components/auth/organization/delete-organization-skeleton.tsx +17 -0
- package/src/components/auth/organization/delete-organization.tsx +77 -0
- package/src/components/auth/organization/invite-member-dialog.tsx +177 -0
- package/src/components/auth/organization/leave-organization-dialog.tsx +95 -0
- package/src/components/auth/organization/leave-organization.tsx +59 -0
- package/src/components/auth/organization/organization-danger-zone.tsx +68 -0
- package/src/components/auth/organization/organization-invitation-row-skeleton.tsx +29 -0
- package/src/components/auth/organization/organization-invitation-row.tsx +97 -0
- package/src/components/auth/organization/organization-invitations-empty.tsx +39 -0
- package/src/components/auth/organization/organization-invitations.tsx +351 -0
- package/src/components/auth/organization/organization-logo.tsx +64 -0
- package/src/components/auth/organization/organization-member-row-skeleton.tsx +24 -0
- package/src/components/auth/organization/organization-member-row.tsx +157 -0
- package/src/components/auth/organization/organization-members.tsx +284 -0
- package/src/components/auth/organization/organization-people.tsx +26 -0
- package/src/components/auth/organization/organization-profile.tsx +141 -0
- package/src/components/auth/organization/organization-row.tsx +66 -0
- package/src/components/auth/organization/organization-settings.tsx +38 -0
- package/src/components/auth/organization/organization-switcher.tsx +233 -0
- package/src/components/auth/organization/organization-view-skeleton.tsx +36 -0
- package/src/components/auth/organization/organization-view.tsx +109 -0
- package/src/components/auth/organization/organization.tsx +162 -0
- package/src/components/auth/organization/organizations-empty.tsx +35 -0
- package/src/components/auth/organization/organizations-settings.tsx +36 -0
- package/src/components/auth/organization/organizations.tsx +80 -0
- package/src/components/auth/organization/remove-member-dialog.tsx +95 -0
- package/src/components/auth/organization/slug-field.tsx +111 -0
- package/src/components/auth/organization/user-invitation-row-skeleton.tsx +17 -0
- package/src/components/auth/organization/user-invitation-row.tsx +90 -0
- package/src/components/auth/organization/user-invitations-empty.tsx +30 -0
- package/src/components/auth/organization/user-invitations.tsx +59 -0
- package/src/components/auth/settings/account/change-email.tsx +1 -1
- package/src/components/auth/settings/account/user-profile.tsx +5 -5
- package/src/components/auth/settings/security/active-sessions.tsx +6 -4
- package/src/components/auth/settings/security/linked-accounts.tsx +2 -2
- package/src/components/auth/settings/settings.tsx +77 -14
- package/src/components/auth/user/user-avatar.tsx +4 -1
- package/src/components/auth/user/user-button.tsx +14 -11
- package/src/components/auth/user/user-view.tsx +32 -12
- package/src/email.ts +1 -0
- package/src/lib/auth/api-key-plugin.ts +10 -4
- package/src/lib/auth/auth-plugin.ts +6 -1
- package/src/lib/auth/organization-plugin.tsx +32 -0
- package/src/plugins.ts +25 -1
- package/dist/components/auth/additional-field.js +0 -270
- package/dist/components/auth/api-key/api-key-skeleton.js +0 -21
- package/dist/components/auth/api-key/api-key.js +0 -55
- package/dist/components/auth/api-key/api-keys-empty.js +0 -35
- package/dist/components/auth/api-key/api-keys.js +0 -41
- package/dist/components/auth/api-key/create-api-key-dialog.js +0 -74
- package/dist/components/auth/api-key/delete-api-key-dialog.js +0 -51
- package/dist/components/auth/api-key/new-api-key-dialog.js +0 -60
- package/dist/components/auth/auth-provider.js +0 -17
- package/dist/components/auth/auth.js +0 -63
- package/dist/components/auth/delete-user/danger-zone.js +0 -18
- package/dist/components/auth/delete-user/delete-user.js +0 -95
- package/dist/components/auth/email/email-changed-email.js +0 -30
- package/dist/components/auth/email/email-verification-email.js +0 -30
- package/dist/components/auth/email/magic-link-email.js +0 -30
- package/dist/components/auth/email/new-device-email.js +0 -30
- package/dist/components/auth/email/otp-email.js +0 -29
- package/dist/components/auth/email/password-changed-email.js +0 -30
- package/dist/components/auth/email/reset-password-email.js +0 -30
- package/dist/components/auth/error-toaster.js +0 -17
- package/dist/components/auth/field-separator.js +0 -18
- package/dist/components/auth/forgot-password.js +0 -89
- package/dist/components/auth/magic-link/magic-link-button.js +0 -20
- package/dist/components/auth/magic-link/magic-link.js +0 -87
- package/dist/components/auth/multi-session/manage-account.js +0 -49
- package/dist/components/auth/multi-session/manage-accounts.js +0 -34
- package/dist/components/auth/multi-session/switch-account-submenu-content.js +0 -28
- package/dist/components/auth/multi-session/switch-account-submenu-item.js +0 -20
- package/dist/components/auth/multi-session/switch-account-submenu.js +0 -24
- package/dist/components/auth/passkey/add-passkey-dialog.js +0 -65
- package/dist/components/auth/passkey/delete-passkey-dialog.js +0 -47
- package/dist/components/auth/passkey/passkey-button.js +0 -24
- package/dist/components/auth/passkey/passkey-skeleton.js +0 -17
- package/dist/components/auth/passkey/passkey.js +0 -48
- package/dist/components/auth/passkey/passkeys-empty.js +0 -35
- package/dist/components/auth/passkey/passkeys.js +0 -42
- package/dist/components/auth/provider-button.js +0 -25
- package/dist/components/auth/provider-buttons.js +0 -19
- package/dist/components/auth/reset-password.js +0 -147
- package/dist/components/auth/settings/account/account-settings.js +0 -20
- package/dist/components/auth/settings/account/change-avatar.js +0 -89
- package/dist/components/auth/settings/account/change-email.js +0 -54
- package/dist/components/auth/settings/account/user-profile.js +0 -86
- package/dist/components/auth/settings/security/active-session.js +0 -59
- package/dist/components/auth/settings/security/active-sessions.js +0 -34
- package/dist/components/auth/settings/security/change-password.js +0 -189
- package/dist/components/auth/settings/security/linked-account.js +0 -56
- package/dist/components/auth/settings/security/linked-accounts.js +0 -45
- package/dist/components/auth/settings/security/security-settings.js +0 -22
- package/dist/components/auth/settings/settings.js +0 -45
- package/dist/components/auth/sign-in.js +0 -133
- package/dist/components/auth/sign-out.js +0 -27
- package/dist/components/auth/sign-up.js +0 -212
- package/dist/components/auth/theme/appearance.js +0 -72
- package/dist/components/auth/theme/theme-toggle-item.js +0 -62
- package/dist/components/auth/user/user-avatar.js +0 -29
- package/dist/components/auth/user/user-button.js +0 -74
- package/dist/components/auth/user/user-view.js +0 -37
- package/dist/components/auth/username/sign-in-username.js +0 -148
- package/dist/components/auth/username/username-field.js +0 -53
- package/dist/lib/auth/api-key-plugin.js +0 -10
- package/dist/lib/auth/delete-user-plugin.js +0 -10
- package/dist/lib/auth/magic-link-plugin.js +0 -13
- package/dist/lib/auth/multi-session-plugin.js +0 -12
- package/dist/lib/auth/passkey-plugin.js +0 -12
- package/dist/lib/auth/theme-plugin.js +0 -23
- package/dist/lib/auth/username-plugin.js +0 -18
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ApiKeyPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { ApiKeys } from '../../components/auth/api-key/api-keys';
|
|
3
|
-
|
|
3
|
+
import { OrganizationApiKeys } from '../../components/auth/api-key/organization-api-keys';
|
|
4
|
+
export declare const apiKeyPlugin: ((options?: ApiKeyPluginOptions | undefined) => {
|
|
5
|
+
organizationCards?: (typeof OrganizationApiKeys)[] | undefined;
|
|
4
6
|
securityCards: (typeof ApiKeys)[];
|
|
5
7
|
localization: {
|
|
6
8
|
apiKey: string;
|
|
@@ -15,8 +17,9 @@ export declare const apiKeyPlugin: ((options?: ApiKeyPluginOptions | undefined)
|
|
|
15
17
|
deleteApiKeyWarning: string;
|
|
16
18
|
dismissNewKey: string;
|
|
17
19
|
};
|
|
20
|
+
organization: boolean;
|
|
18
21
|
id: "apiKey";
|
|
19
|
-
}
|
|
22
|
+
} & {
|
|
20
23
|
id: "apiKey";
|
|
21
24
|
}) & {
|
|
22
25
|
id: "apiKey";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdditionalField as AdditionalFieldConfig } from '@better-auth-ui/core';
|
|
2
|
-
import { AccountCardProps, AuthPlugin as AuthPluginPrimitive, AuthPluginComponents as BaseAuthPluginComponents, SecurityCardProps, UserMenuItemProps } from '@better-auth-ui/react';
|
|
2
|
+
import { AccountCardProps, AuthPlugin as AuthPluginPrimitive, AuthPluginComponents as BaseAuthPluginComponents, OrganizationCardProps, SecurityCardProps, UserMenuItemProps } from '@better-auth-ui/react';
|
|
3
3
|
import { CardProps } from '@heroui/react';
|
|
4
4
|
import { ComponentType, ReactNode } from 'react';
|
|
5
5
|
import { SocialLayout } from '../../components/auth/provider-buttons';
|
|
@@ -21,7 +21,7 @@ declare module "@better-auth-ui/core" {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
/** Heroui slot component shapes — inherits from the framework-agnostic defaults and narrows slots that receive a heroui variant from the host. */
|
|
24
|
-
export type AuthPluginComponents = Omit<BaseAuthPluginComponents, "securityCards" | "accountCards"> & {
|
|
24
|
+
export type AuthPluginComponents = Omit<BaseAuthPluginComponents, "securityCards" | "accountCards" | "organizationCards"> & {
|
|
25
25
|
/** Rendered as cards inside security settings */
|
|
26
26
|
securityCards?: ComponentType<SecurityCardProps & {
|
|
27
27
|
variant?: CardProps["variant"];
|
|
@@ -30,6 +30,10 @@ export type AuthPluginComponents = Omit<BaseAuthPluginComponents, "securityCards
|
|
|
30
30
|
accountCards?: ComponentType<AccountCardProps & {
|
|
31
31
|
variant?: CardProps["variant"];
|
|
32
32
|
}>[];
|
|
33
|
+
/** Rendered as cards inside the active organization's settings */
|
|
34
|
+
organizationCards?: ComponentType<OrganizationCardProps & {
|
|
35
|
+
variant?: CardProps["variant"];
|
|
36
|
+
}>[];
|
|
33
37
|
/** Rendered as items inside the `UserButton` dropdown (e.g. account switcher). */
|
|
34
38
|
userMenuItems?: ComponentType<UserMenuItemProps>[];
|
|
35
39
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DeleteUserPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { DangerZone } from '../../components/auth/delete-user/danger-zone';
|
|
3
|
-
export declare const deleteUserPlugin: ((options?: DeleteUserPluginOptions | undefined) =>
|
|
3
|
+
export declare const deleteUserPlugin: ((options?: DeleteUserPluginOptions | undefined) => {
|
|
4
4
|
securityCards: (typeof DangerZone)[];
|
|
5
5
|
localization: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
deleteAccount: string;
|
|
7
|
+
deleteAccountDescription: string;
|
|
8
8
|
deleteUserVerificationSent: string;
|
|
9
9
|
deleteUserSuccess: string;
|
|
10
10
|
};
|
|
11
11
|
sendDeleteAccountVerification: boolean;
|
|
12
12
|
id: "deleteUser";
|
|
13
|
-
}
|
|
13
|
+
} & {
|
|
14
14
|
id: "deleteUser";
|
|
15
15
|
}) & {
|
|
16
16
|
id: "deleteUser";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MagicLinkPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { MagicLink } from '../../components/auth/magic-link/magic-link';
|
|
3
3
|
import { MagicLinkButton } from '../../components/auth/magic-link/magic-link-button';
|
|
4
|
-
export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) =>
|
|
4
|
+
export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => {
|
|
5
5
|
authButtons: (typeof MagicLinkButton)[];
|
|
6
6
|
views: {
|
|
7
7
|
auth: {
|
|
@@ -24,7 +24,7 @@ export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undef
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
id: "magicLink";
|
|
27
|
-
}
|
|
27
|
+
} & {
|
|
28
28
|
id: "magicLink";
|
|
29
29
|
}) & {
|
|
30
30
|
id: "magicLink";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MultiSessionPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { ManageAccounts } from '../../components/auth/multi-session/manage-accounts';
|
|
3
3
|
import { SwitchAccountSubmenu } from '../../components/auth/multi-session/switch-account-submenu';
|
|
4
|
-
export declare const multiSessionPlugin: ((options?: MultiSessionPluginOptions | undefined) =>
|
|
4
|
+
export declare const multiSessionPlugin: ((options?: MultiSessionPluginOptions | undefined) => {
|
|
5
5
|
accountCards: (typeof ManageAccounts)[];
|
|
6
6
|
userMenuItems: (typeof SwitchAccountSubmenu)[];
|
|
7
7
|
localization: {
|
|
@@ -11,7 +11,7 @@ export declare const multiSessionPlugin: ((options?: MultiSessionPluginOptions |
|
|
|
11
11
|
manageAccountsDescription: string;
|
|
12
12
|
};
|
|
13
13
|
id: "multiSession";
|
|
14
|
-
}
|
|
14
|
+
} & {
|
|
15
15
|
id: "multiSession";
|
|
16
16
|
}) & {
|
|
17
17
|
id: "multiSession";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OrganizationLocalization, OrganizationPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
|
+
import { OrganizationsSettings } from '../../components/auth/organization/organizations-settings';
|
|
3
|
+
export declare const organizationPlugin: ((options?: OrganizationPluginOptions | undefined) => {
|
|
4
|
+
localization: OrganizationLocalization;
|
|
5
|
+
settingsTabs: {
|
|
6
|
+
view: "organizations";
|
|
7
|
+
label: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
component: typeof OrganizationsSettings;
|
|
9
|
+
}[];
|
|
10
|
+
slug: string | null | undefined;
|
|
11
|
+
checkSlug: boolean;
|
|
12
|
+
logo: {
|
|
13
|
+
delete?: (url: string) => Promise<void>;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
extension: "png" | "jpg" | "webp" | "inherit";
|
|
16
|
+
resize: (file: File, size?: number, extension?: "png" | "jpg" | "webp" | "inherit") => Promise<File>;
|
|
17
|
+
size: number;
|
|
18
|
+
upload?: (file: File) => Promise<string>;
|
|
19
|
+
};
|
|
20
|
+
roles: {
|
|
21
|
+
[x: string]: string;
|
|
22
|
+
};
|
|
23
|
+
viewPaths: {
|
|
24
|
+
settings: {
|
|
25
|
+
organizations: string;
|
|
26
|
+
};
|
|
27
|
+
organization: {
|
|
28
|
+
settings: string;
|
|
29
|
+
people: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
id: "organization";
|
|
33
|
+
} & {
|
|
34
|
+
id: "organization";
|
|
35
|
+
}) & {
|
|
36
|
+
id: "organization";
|
|
37
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PasskeyPluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { PasskeyButton } from '../../components/auth/passkey/passkey-button';
|
|
3
3
|
import { Passkeys } from '../../components/auth/passkey/passkeys';
|
|
4
|
-
export declare const passkeyPlugin: ((options?: PasskeyPluginOptions | undefined) =>
|
|
4
|
+
export declare const passkeyPlugin: ((options?: PasskeyPluginOptions | undefined) => {
|
|
5
5
|
authButtons: (typeof PasskeyButton)[];
|
|
6
6
|
securityCards: (typeof Passkeys)[];
|
|
7
7
|
localization: {
|
|
@@ -16,7 +16,7 @@ export declare const passkeyPlugin: ((options?: PasskeyPluginOptions | undefined
|
|
|
16
16
|
name: string;
|
|
17
17
|
};
|
|
18
18
|
id: "passkey";
|
|
19
|
-
}
|
|
19
|
+
} & {
|
|
20
20
|
id: "passkey";
|
|
21
21
|
}) & {
|
|
22
22
|
id: "passkey";
|
|
@@ -45,7 +45,7 @@ export type ThemePluginOptions = CommonThemeOptions & ({
|
|
|
45
45
|
setTheme: (theme: string) => void;
|
|
46
46
|
useTheme?: never;
|
|
47
47
|
});
|
|
48
|
-
export declare const themePlugin: ((args_0: ThemePluginOptions) =>
|
|
48
|
+
export declare const themePlugin: ((args_0: ThemePluginOptions) => {
|
|
49
49
|
useTheme: UseThemeHook;
|
|
50
50
|
userMenuItems: (typeof ThemeToggleItem)[];
|
|
51
51
|
accountCards: (typeof Appearance)[];
|
|
@@ -57,10 +57,10 @@ export declare const themePlugin: ((args_0: ThemePluginOptions) => Omit<{
|
|
|
57
57
|
dark: string;
|
|
58
58
|
};
|
|
59
59
|
theme: string;
|
|
60
|
-
themes: string[];
|
|
61
60
|
setTheme: (theme: string) => void;
|
|
61
|
+
themes: string[];
|
|
62
62
|
id: "theme";
|
|
63
|
-
}
|
|
63
|
+
} & {
|
|
64
64
|
id: "theme";
|
|
65
65
|
}) & {
|
|
66
66
|
id: "theme";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UsernamePluginOptions } from '@better-auth-ui/core/plugins';
|
|
2
2
|
import { SignInUsername } from '../../components/auth/username/sign-in-username';
|
|
3
3
|
import { UsernameField } from '../../components/auth/username/username-field';
|
|
4
|
-
export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefined) =>
|
|
4
|
+
export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefined) => {
|
|
5
5
|
additionalFields: ({
|
|
6
6
|
name: string;
|
|
7
7
|
type: "string";
|
|
@@ -9,7 +9,7 @@ export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefin
|
|
|
9
9
|
placeholder: string;
|
|
10
10
|
inputType: "input";
|
|
11
11
|
signUp: "above";
|
|
12
|
-
required:
|
|
12
|
+
required: true;
|
|
13
13
|
} | {
|
|
14
14
|
name: string;
|
|
15
15
|
type: "string";
|
|
@@ -26,7 +26,7 @@ export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefin
|
|
|
26
26
|
placeholder: string;
|
|
27
27
|
inputType: "input";
|
|
28
28
|
signUp: "above";
|
|
29
|
-
required:
|
|
29
|
+
required: true;
|
|
30
30
|
} | {
|
|
31
31
|
render: typeof UsernameField;
|
|
32
32
|
name: string;
|
|
@@ -42,6 +42,8 @@ export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefin
|
|
|
42
42
|
signIn: typeof SignInUsername;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
+
minUsernameLength: number;
|
|
46
|
+
maxUsernameLength: number;
|
|
45
47
|
localization: {
|
|
46
48
|
username: string;
|
|
47
49
|
usernamePlaceholder: string;
|
|
@@ -51,12 +53,10 @@ export declare const usernamePlugin: ((options?: UsernamePluginOptions | undefin
|
|
|
51
53
|
displayUsername: string;
|
|
52
54
|
displayUsernamePlaceholder: string;
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
minUsernameLength: number;
|
|
57
|
-
maxUsernameLength: number;
|
|
56
|
+
displayUsername?: boolean;
|
|
57
|
+
isUsernameAvailable?: boolean;
|
|
58
58
|
id: "username";
|
|
59
|
-
}
|
|
59
|
+
} & {
|
|
60
60
|
id: "username";
|
|
61
61
|
}) & {
|
|
62
62
|
id: "username";
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
export * from './components/auth/api-key/api-keys';
|
|
2
|
+
export * from './components/auth/api-key/organization-api-keys';
|
|
2
3
|
export * from './components/auth/delete-user/danger-zone';
|
|
3
|
-
export * from './components/auth/delete-user/delete-
|
|
4
|
+
export * from './components/auth/delete-user/delete-account';
|
|
4
5
|
export * from './components/auth/magic-link/magic-link';
|
|
5
6
|
export * from './components/auth/multi-session/manage-account';
|
|
6
7
|
export * from './components/auth/multi-session/manage-accounts';
|
|
7
8
|
export * from './components/auth/multi-session/switch-account-submenu';
|
|
8
9
|
export * from './components/auth/multi-session/switch-account-submenu-content';
|
|
9
10
|
export * from './components/auth/multi-session/switch-account-submenu-item';
|
|
11
|
+
export * from './components/auth/organization/change-organization-logo';
|
|
12
|
+
export * from './components/auth/organization/create-organization-dialog';
|
|
13
|
+
export * from './components/auth/organization/delete-organization';
|
|
14
|
+
export * from './components/auth/organization/delete-organization-skeleton';
|
|
15
|
+
export * from './components/auth/organization/invite-member-dialog';
|
|
16
|
+
export * from './components/auth/organization/leave-organization';
|
|
17
|
+
export * from './components/auth/organization/organization';
|
|
18
|
+
export * from './components/auth/organization/organization-danger-zone';
|
|
19
|
+
export * from './components/auth/organization/organization-invitations';
|
|
20
|
+
export * from './components/auth/organization/organization-invitations-empty';
|
|
21
|
+
export * from './components/auth/organization/organization-logo';
|
|
22
|
+
export * from './components/auth/organization/organization-members';
|
|
23
|
+
export * from './components/auth/organization/organization-people';
|
|
24
|
+
export * from './components/auth/organization/organization-profile';
|
|
25
|
+
export * from './components/auth/organization/organization-row';
|
|
26
|
+
export * from './components/auth/organization/organization-settings';
|
|
27
|
+
export * from './components/auth/organization/organization-switcher';
|
|
28
|
+
export * from './components/auth/organization/organization-view';
|
|
29
|
+
export * from './components/auth/organization/organization-view-skeleton';
|
|
30
|
+
export * from './components/auth/organization/organizations';
|
|
31
|
+
export * from './components/auth/organization/organizations-settings';
|
|
32
|
+
export * from './components/auth/organization/user-invitations';
|
|
10
33
|
export * from './components/auth/passkey/passkeys';
|
|
11
34
|
export * from './components/auth/theme/appearance';
|
|
12
35
|
export * from './components/auth/theme/theme-toggle-item';
|
|
@@ -17,6 +40,7 @@ export * from './lib/auth/auth-plugin';
|
|
|
17
40
|
export * from './lib/auth/delete-user-plugin';
|
|
18
41
|
export * from './lib/auth/magic-link-plugin';
|
|
19
42
|
export * from './lib/auth/multi-session-plugin';
|
|
43
|
+
export * from './lib/auth/organization-plugin';
|
|
20
44
|
export * from './lib/auth/passkey-plugin';
|
|
21
45
|
export * from './lib/auth/theme-plugin';
|
|
22
46
|
export * from './lib/auth/username-plugin';
|