@better-auth-ui/core 1.6.27 → 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.
@@ -11,6 +11,7 @@ var e = {
11
11
  confirmPassword: "Confirm password",
12
12
  confirmPasswordPlaceholder: "Confirm your password",
13
13
  checkYourEmail: "Check your email for a verification link",
14
+ checkYourEmailTitle: "Check your email",
14
15
  continueWith: "Continue with {{provider}}",
15
16
  email: "Email",
16
17
  emailPlaceholder: "m@example.com",
@@ -38,6 +39,7 @@ var e = {
38
39
  rememberYourPassword: "Remember your password?",
39
40
  resend: "Resend",
40
41
  resendIn: "Resend in {{seconds}}s",
42
+ resetLinkSentTo: "We sent a password reset link to {{email}}",
41
43
  resetPassword: "Reset Password",
42
44
  sendResetLink: "Send reset link",
43
45
  showPassword: "Show password",
@@ -144,6 +146,7 @@ var s = {
144
146
  signUp: "sign-up",
145
147
  forgotPassword: "forgot-password",
146
148
  resetPassword: "reset-password",
149
+ resetLinkSent: "reset-link-sent",
147
150
  signOut: "sign-out",
148
151
  verifyEmail: "verify-email"
149
152
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./create-auth-plugin-CSJlOwwp.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./create-auth-plugin-DvOQZp9O.js";
2
2
  //#region src/config/additional-fields-config.ts
3
3
  function l(e, t) {
4
4
  if (e.type === "boolean") return t === "on" || t === "true";
@@ -12,6 +12,8 @@ export declare const localization: {
12
12
  confirmPasswordPlaceholder: string;
13
13
  /** @remarks `"Check your email for a verification link"` */
14
14
  checkYourEmail: string;
15
+ /** @remarks `"Check your email"` */
16
+ checkYourEmailTitle: string;
15
17
  /** @remarks `"Continue with {{provider}}"` */
16
18
  continueWith: string;
17
19
  /** @remarks `"Email"` */
@@ -66,6 +68,8 @@ export declare const localization: {
66
68
  resend: string;
67
69
  /** @remarks `"Resend in {{seconds}}s"` */
68
70
  resendIn: string;
71
+ /** @remarks `"We sent a password reset link to {{email}}"` */
72
+ resetLinkSentTo: string;
69
73
  /** @remarks `"Reset Password"` */
70
74
  resetPassword: string;
71
75
  /** @remarks `"Send reset link"` */
@@ -22,6 +22,11 @@ export interface AuthViewPaths {
22
22
  * @default "reset-password"
23
23
  */
24
24
  resetPassword: string;
25
+ /**
26
+ * Path segment for the reset-link-sent confirmation view
27
+ * @default "reset-link-sent"
28
+ */
29
+ resetLinkSent: string;
25
30
  /**
26
31
  * Path segment for the sign-out view
27
32
  * @default "sign-out"
@@ -5,5 +5,7 @@ export declare const magicLinkLocalization: {
5
5
  sendMagicLink: string;
6
6
  /** @remarks `"Check your email for the magic link"` */
7
7
  magicLinkSent: string;
8
+ /** @remarks `"We sent a magic link to {{email}}"` */
9
+ magicLinkSentTo: string;
8
10
  };
9
11
  export type MagicLinkLocalization = typeof magicLinkLocalization;
@@ -1,9 +1,11 @@
1
1
  import { MagicLinkLocalization } from './magic-link-localization';
2
2
  declare module "../../lib/view-paths" {
3
- /** Widens `AuthViewPaths` by adding the `"magicLink"` path when this plugin is imported. */
3
+ /** Widens `AuthViewPaths` with the magic-link paths when this plugin is imported. */
4
4
  interface AuthViewPaths {
5
5
  /** @default "magic-link" */
6
6
  magicLink?: string;
7
+ /** @default "magic-link-sent" */
8
+ magicLinkSent?: string;
7
9
  }
8
10
  }
9
11
  export type MagicLinkPluginOptions = {
@@ -18,16 +20,24 @@ export type MagicLinkPluginOptions = {
18
20
  * @default "magic-link"
19
21
  */
20
22
  path?: string;
23
+ /**
24
+ * URL segment for the magic-link-sent confirmation view.
25
+ * @remarks `string`
26
+ * @default "magic-link-sent"
27
+ */
28
+ sentPath?: string;
21
29
  };
22
30
  export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => {
23
31
  localization: {
24
32
  magicLink: string;
25
33
  sendMagicLink: string;
26
34
  magicLinkSent: string;
35
+ magicLinkSentTo: string;
27
36
  };
28
37
  viewPaths: {
29
38
  auth: {
30
39
  magicLink: string;
40
+ magicLinkSent: string;
31
41
  };
32
42
  };
33
43
  } & {
package/dist/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, r as t, t as n } from "./create-auth-plugin-CSJlOwwp.js";
1
+ import { n as e, r as t, t as n } from "./create-auth-plugin-DvOQZp9O.js";
2
2
  //#region src/plugins/api-key/api-key-localization.ts
3
3
  var r = {
4
4
  apiKey: "API key",
@@ -48,7 +48,8 @@ var r = {
48
48
  })), u = {
49
49
  magicLink: "Magic Link",
50
50
  sendMagicLink: "Send Magic Link",
51
- magicLinkSent: "Check your email for the magic link"
51
+ magicLinkSent: "Check your email for the magic link",
52
+ magicLinkSentTo: "We sent a magic link to {{email}}"
52
53
  }, d = { signIn: [
53
54
  "auth",
54
55
  "signIn",
@@ -58,7 +59,10 @@ var r = {
58
59
  ...u,
59
60
  ...e.localization
60
61
  },
61
- viewPaths: { auth: { magicLink: e.path ?? "magic-link" } }
62
+ viewPaths: { auth: {
63
+ magicLink: e.path ?? "magic-link",
64
+ magicLinkSent: e.sentPath ?? "magic-link-sent"
65
+ } }
62
66
  })), p = {
63
67
  switchAccount: "Switch Account",
64
68
  addAccount: "Add Account",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth-ui/core",
3
- "version": "1.6.27",
3
+ "version": "1.6.28",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",
@@ -18,6 +18,9 @@ export const localization = {
18
18
  /** @remarks `"Check your email for a verification link"` */
19
19
  checkYourEmail: "Check your email for a verification link",
20
20
 
21
+ /** @remarks `"Check your email"` */
22
+ checkYourEmailTitle: "Check your email",
23
+
21
24
  /** @remarks `"Continue with {{provider}}"` */
22
25
  continueWith: "Continue with {{provider}}",
23
26
 
@@ -99,6 +102,9 @@ export const localization = {
99
102
  /** @remarks `"Resend in {{seconds}}s"` */
100
103
  resendIn: "Resend in {{seconds}}s",
101
104
 
105
+ /** @remarks `"We sent a password reset link to {{email}}"` */
106
+ resetLinkSentTo: "We sent a password reset link to {{email}}",
107
+
102
108
  /** @remarks `"Reset Password"` */
103
109
  resetPassword: "Reset Password",
104
110
 
@@ -22,6 +22,11 @@ export interface AuthViewPaths {
22
22
  * @default "reset-password"
23
23
  */
24
24
  resetPassword: string
25
+ /**
26
+ * Path segment for the reset-link-sent confirmation view
27
+ * @default "reset-link-sent"
28
+ */
29
+ resetLinkSent: string
25
30
  /**
26
31
  * Path segment for the sign-out view
27
32
  * @default "sign-out"
@@ -66,6 +71,7 @@ export const viewPaths: ViewPaths = {
66
71
  signUp: "sign-up",
67
72
  forgotPassword: "forgot-password",
68
73
  resetPassword: "reset-password",
74
+ resetLinkSent: "reset-link-sent",
69
75
  signOut: "sign-out",
70
76
  verifyEmail: "verify-email"
71
77
  },
@@ -4,7 +4,9 @@ export const magicLinkLocalization = {
4
4
  /** @remarks `"Send Magic Link"` */
5
5
  sendMagicLink: "Send Magic Link",
6
6
  /** @remarks `"Check your email for the magic link"` */
7
- magicLinkSent: "Check your email for the magic link"
7
+ magicLinkSent: "Check your email for the magic link",
8
+ /** @remarks `"We sent a magic link to {{email}}"` */
9
+ magicLinkSentTo: "We sent a magic link to {{email}}"
8
10
  }
9
11
 
10
12
  export type MagicLinkLocalization = typeof magicLinkLocalization
@@ -8,10 +8,12 @@ import {
8
8
  } from "./magic-link-localization"
9
9
 
10
10
  declare module "../../lib/view-paths" {
11
- /** Widens `AuthViewPaths` by adding the `"magicLink"` path when this plugin is imported. */
11
+ /** Widens `AuthViewPaths` with the magic-link paths when this plugin is imported. */
12
12
  interface AuthViewPaths {
13
13
  /** @default "magic-link" */
14
14
  magicLink?: string
15
+ /** @default "magic-link-sent" */
16
+ magicLinkSent?: string
15
17
  }
16
18
  }
17
19
 
@@ -27,6 +29,12 @@ export type MagicLinkPluginOptions = {
27
29
  * @default "magic-link"
28
30
  */
29
31
  path?: string
32
+ /**
33
+ * URL segment for the magic-link-sent confirmation view.
34
+ * @remarks `string`
35
+ * @default "magic-link-sent"
36
+ */
37
+ sentPath?: string
30
38
  }
31
39
 
32
40
  export const magicLinkPlugin = createAuthPlugin(
@@ -34,7 +42,10 @@ export const magicLinkPlugin = createAuthPlugin(
34
42
  (options: MagicLinkPluginOptions = {}) => ({
35
43
  localization: { ...magicLinkLocalization, ...options.localization },
36
44
  viewPaths: {
37
- auth: { magicLink: options.path ?? "magic-link" }
45
+ auth: {
46
+ magicLink: options.path ?? "magic-link",
47
+ magicLinkSent: options.sentPath ?? "magic-link-sent"
48
+ }
38
49
  }
39
50
  })
40
51
  )