@better-auth-ui/heroui 1.6.27 → 1.6.29

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 (31) hide show
  1. package/dist/components/auth/forgot-password.d.ts +3 -1
  2. package/dist/components/auth/last-login-method/last-used-badge.d.ts +13 -0
  3. package/dist/components/auth/magic-link/magic-link-sent.d.ts +20 -0
  4. package/dist/components/auth/provider-button.d.ts +3 -1
  5. package/dist/components/auth/provider-buttons.d.ts +3 -1
  6. package/dist/components/auth/reset-link-sent.d.ts +20 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +280 -220
  9. package/dist/lib/auth/last-login-method-plugin.d.ts +12 -0
  10. package/dist/lib/auth/magic-link-plugin.d.ts +4 -0
  11. package/dist/plugins.d.ts +3 -0
  12. package/dist/plugins.js +1070 -1005
  13. package/dist/user-view-D9ial2fQ.js +150 -0
  14. package/package.json +1 -1
  15. package/src/components/auth/auth.tsx +8 -1
  16. package/src/components/auth/forgot-password.tsx +9 -6
  17. package/src/components/auth/last-login-method/last-used-badge.tsx +40 -0
  18. package/src/components/auth/magic-link/magic-link-sent.tsx +84 -0
  19. package/src/components/auth/magic-link/magic-link.tsx +12 -8
  20. package/src/components/auth/provider-button.tsx +17 -3
  21. package/src/components/auth/provider-buttons.tsx +5 -1
  22. package/src/components/auth/reset-link-sent.tsx +80 -0
  23. package/src/components/auth/settings/security/change-password.tsx +32 -14
  24. package/src/components/auth/sign-in.tsx +10 -3
  25. package/src/components/auth/sign-up.tsx +2 -2
  26. package/src/components/auth/username/sign-in-username.tsx +6 -3
  27. package/src/index.tsx +1 -0
  28. package/src/lib/auth/last-login-method-plugin.ts +12 -0
  29. package/src/lib/auth/magic-link-plugin.ts +2 -1
  30. package/src/plugins.ts +3 -0
  31. package/dist/user-view--47tVtJ3.js +0 -113
@@ -0,0 +1,12 @@
1
+ import { LastLoginMethodPluginOptions } from '@better-auth-ui/core/plugins';
2
+ export declare const lastLoginMethodPlugin: ((options?: LastLoginMethodPluginOptions | undefined) => {
3
+ localization: {
4
+ lastUsed: string;
5
+ lastUsedShort: string;
6
+ };
7
+ id: "lastLoginMethod";
8
+ } & {
9
+ id: "lastLoginMethod";
10
+ }) & {
11
+ id: "lastLoginMethod";
12
+ };
@@ -1,11 +1,13 @@
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
+ import { MagicLinkSent } from '../../components/auth/magic-link/magic-link-sent';
4
5
  export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => {
5
6
  authButtons: (typeof MagicLinkButton)[];
6
7
  views: {
7
8
  auth: {
8
9
  magicLink: typeof MagicLink;
10
+ magicLinkSent: typeof MagicLinkSent;
9
11
  };
10
12
  };
11
13
  fallbackViews: {
@@ -17,10 +19,12 @@ export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undef
17
19
  magicLink: string;
18
20
  sendMagicLink: string;
19
21
  magicLinkSent: string;
22
+ magicLinkSentTo: string;
20
23
  };
21
24
  viewPaths: {
22
25
  auth: {
23
26
  magicLink: string;
27
+ magicLinkSent: string;
24
28
  };
25
29
  };
26
30
  id: "magicLink";
package/dist/plugins.d.ts CHANGED
@@ -2,7 +2,9 @@ export * from './components/auth/api-key/api-keys';
2
2
  export * from './components/auth/api-key/organization-api-keys';
3
3
  export * from './components/auth/delete-user/danger-zone';
4
4
  export * from './components/auth/delete-user/delete-account';
5
+ export * from './components/auth/last-login-method/last-used-badge';
5
6
  export * from './components/auth/magic-link/magic-link';
7
+ export * from './components/auth/magic-link/magic-link-sent';
6
8
  export * from './components/auth/multi-session/manage-account';
7
9
  export * from './components/auth/multi-session/manage-accounts';
8
10
  export * from './components/auth/multi-session/switch-account-submenu';
@@ -38,6 +40,7 @@ export * from './components/auth/username/username-field';
38
40
  export * from './lib/auth/api-key-plugin';
39
41
  export * from './lib/auth/auth-plugin';
40
42
  export * from './lib/auth/delete-user-plugin';
43
+ export * from './lib/auth/last-login-method-plugin';
41
44
  export * from './lib/auth/magic-link-plugin';
42
45
  export * from './lib/auth/multi-session-plugin';
43
46
  export * from './lib/auth/organization-plugin';