@better-auth-ui/heroui 1.6.26 → 1.6.28

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.
@@ -7,7 +7,9 @@ export type ForgotPasswordProps = {
7
7
  * Render a card-based "Forgot Password" form that sends a password-reset email.
8
8
  *
9
9
  * The form displays an email input, submit button, and a link back to sign-in.
10
- * Success toasts are shown via `useRequestPasswordReset`; errors are handled globally by `ErrorToaster`.
10
+ * After a successful request the submitted email is stored in `sessionStorage`
11
+ * and the user is redirected to the reset-link-sent view, which offers to open
12
+ * their email provider. Errors are handled globally by `ErrorToaster`.
11
13
  *
12
14
  * @param className - Optional additional CSS class names applied to the card
13
15
  * @returns The forgot-password form UI as a JSX element
@@ -0,0 +1,20 @@
1
+ import { CardProps } from '@heroui/react';
2
+ /** `sessionStorage` key the magic-link form stores the submitted email under. */
3
+ export declare const MAGIC_LINK_SENT_STORAGE_KEY = "better-auth-ui.magic-link-sent";
4
+ export type MagicLinkSentProps = {
5
+ className?: string;
6
+ variant?: CardProps["variant"];
7
+ };
8
+ /**
9
+ * Render a card confirming that a magic-link email was sent, with a button
10
+ * to open the user's email provider.
11
+ *
12
+ * The target email is read from `sessionStorage` (set when the magic-link
13
+ * form redirects here); the OpenEmail button is only shown when an email is
14
+ * stored and resolves to a known provider.
15
+ *
16
+ * @param className - Additional CSS classes applied to the outer card container
17
+ * @param variant - Variant to apply to the card
18
+ * @returns The magic-link-sent card React element
19
+ */
20
+ export declare function MagicLinkSent({ className, variant }: MagicLinkSentProps): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { CardProps } from '@heroui/react';
2
+ /** `sessionStorage` key the forgot-password form stores the submitted email under. */
3
+ export declare const RESET_LINK_SENT_STORAGE_KEY = "better-auth-ui.reset-link-sent";
4
+ export type ResetLinkSentProps = {
5
+ className?: string;
6
+ variant?: CardProps["variant"];
7
+ };
8
+ /**
9
+ * Render a card confirming that a password-reset email was sent, with a
10
+ * button to open the user's email provider.
11
+ *
12
+ * The target email is read from `sessionStorage` (set when the forgot-password
13
+ * form redirects here); the OpenEmail button is only shown when an email is
14
+ * stored and resolves to a known provider.
15
+ *
16
+ * @param className - Additional CSS classes applied to the outer card container
17
+ * @param variant - Variant to apply to the card
18
+ * @returns The reset-link-sent card React element
19
+ */
20
+ export declare function ResetLinkSent({ className, variant }: ResetLinkSentProps): import("react").JSX.Element;
@@ -8,9 +8,9 @@ export type VerifyEmailProps = {
8
8
  * that is rate-limited by a cooldown timer.
9
9
  *
10
10
  * The target email is read from `sessionStorage` (set when sign-up or sign-in
11
- * redirects here); if none is stored the user is redirected back to sign-in.
12
- * The resend button is disabled while a cooldown is active and shows the
13
- * remaining seconds.
11
+ * redirects here); the OpenEmail/Resend controls are only shown when an email
12
+ * is stored. The resend button is disabled while a cooldown is active and shows
13
+ * the remaining seconds.
14
14
  *
15
15
  * @param className - Additional CSS classes applied to the outer card container
16
16
  * @param variant - Variant to apply to the card
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './components/auth/forgot-password';
5
5
  export * from './components/auth/open-email-button';
6
6
  export * from './components/auth/provider-button';
7
7
  export * from './components/auth/provider-buttons';
8
+ export * from './components/auth/reset-link-sent';
8
9
  export * from './components/auth/reset-password';
9
10
  export * from './components/auth/settings/account/account-settings';
10
11
  export * from './components/auth/settings/account/change-email';