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/server.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkCRAHKL2Ccjs = require('./chunk-CRAHKL2C.cjs');
8
+ var _chunk42PRTYABcjs = require('./chunk-42PRTYAB.cjs');
9
9
 
10
10
  // src/components/email/email-template.tsx
11
11
 
@@ -95,7 +95,7 @@ var EmailTemplate = ({
95
95
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _components.Tailwind, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
96
96
  _components.Body,
97
97
  {
98
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
98
+ className: _chunk42PRTYABcjs.cn.call(void 0,
99
99
  "mx-auto my-auto px-2 font-sans",
100
100
  classNames == null ? void 0 : classNames.body
101
101
  ),
@@ -104,7 +104,7 @@ var EmailTemplate = ({
104
104
  _components.Img,
105
105
  {
106
106
  alt: siteName,
107
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
107
+ className: _chunk42PRTYABcjs.cn.call(void 0,
108
108
  "mx-auto my-0 rounded-full",
109
109
  classNames == null ? void 0 : classNames.image
110
110
  ),
@@ -116,7 +116,7 @@ var EmailTemplate = ({
116
116
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
117
117
  _components.Heading,
118
118
  {
119
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
119
+ className: _chunk42PRTYABcjs.cn.call(void 0,
120
120
  "mx-0 my-[30px] p-0 text-center font-bold text-[24px]",
121
121
  classNames == null ? void 0 : classNames.heading
122
122
  ),
@@ -126,7 +126,7 @@ var EmailTemplate = ({
126
126
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
127
127
  _components.Text,
128
128
  {
129
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
129
+ className: _chunk42PRTYABcjs.cn.call(void 0,
130
130
  "text-[14px] leading-[24px]",
131
131
  classNames == null ? void 0 : classNames.content
132
132
  ),
@@ -136,7 +136,7 @@ var EmailTemplate = ({
136
136
  action && url && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _components.Section, { className: "mt-[32px] mb-[32px] text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
137
137
  _components.Button,
138
138
  {
139
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
139
+ className: _chunk42PRTYABcjs.cn.call(void 0,
140
140
  "action-button rounded px-5 py-3 text-center font-semibold text-[12px] no-underline",
141
141
  classNames == null ? void 0 : classNames.button
142
142
  ),
@@ -147,7 +147,7 @@ var EmailTemplate = ({
147
147
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
148
148
  _components.Hr,
149
149
  {
150
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
150
+ className: _chunk42PRTYABcjs.cn.call(void 0,
151
151
  "mx-0 my-[26px] w-full border border-color border-solid",
152
152
  classNames == null ? void 0 : classNames.hr
153
153
  )
@@ -156,7 +156,7 @@ var EmailTemplate = ({
156
156
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
157
157
  _components.Text,
158
158
  {
159
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
159
+ className: _chunk42PRTYABcjs.cn.call(void 0,
160
160
  "text-[#666666] text-[12px] leading-[24px]",
161
161
  classNames == null ? void 0 : classNames.footer
162
162
  ),
@@ -168,7 +168,7 @@ var EmailTemplate = ({
168
168
  baseUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
169
169
  _components.Link,
170
170
  {
171
- className: _chunkCRAHKL2Ccjs.cn.call(void 0,
171
+ className: _chunk42PRTYABcjs.cn.call(void 0,
172
172
  "no-underline",
173
173
  classNames == null ? void 0 : classNames.link
174
174
  ),
@@ -191,4 +191,4 @@ var EmailTemplate = ({
191
191
 
192
192
 
193
193
 
194
- exports.EmailTemplate = EmailTemplate; exports.accountViewPaths = _chunkCRAHKL2Ccjs.accountViewPaths; exports.authLocalization = _chunkCRAHKL2Ccjs.authLocalization; exports.authViewPaths = _chunkCRAHKL2Ccjs.authViewPaths; exports.getViewByPath = _chunkCRAHKL2Ccjs.getViewByPath; exports.organizationViewPaths = _chunkCRAHKL2Ccjs.organizationViewPaths;
194
+ exports.EmailTemplate = EmailTemplate; exports.accountViewPaths = _chunk42PRTYABcjs.accountViewPaths; exports.authLocalization = _chunk42PRTYABcjs.authLocalization; exports.authViewPaths = _chunk42PRTYABcjs.authViewPaths; exports.getViewByPath = _chunk42PRTYABcjs.getViewByPath; exports.organizationViewPaths = _chunk42PRTYABcjs.organizationViewPaths;
package/dist/server.d.cts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- export { g as getViewByPath } from './utils-C5R37WDe.cjs';
4
- export { a as AccountViewPath, f as AccountViewPaths, A as AuthLocalization, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CHSJf5dv.cjs';
3
+ export { b as getViewByPath } from './utils-CaN43O_Z.cjs';
4
+ export { a as AccountViewPath, f as AccountViewPaths, A as AuthLocalization, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CIL7NXLh.cjs';
5
+ import 'clsx';
6
+ import 'zod';
5
7
 
6
8
  interface EmailTemplateClassNames {
7
9
  body?: string;
package/dist/server.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- export { g as getViewByPath } from './utils-C5R37WDe.js';
4
- export { a as AccountViewPath, f as AccountViewPaths, A as AuthLocalization, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CHSJf5dv.js';
3
+ export { b as getViewByPath } from './utils-yT5zrMzq.js';
4
+ export { a as AccountViewPath, f as AccountViewPaths, A as AuthLocalization, b as AuthViewPath, c as AuthViewPaths, O as OrganizationViewPath, g as OrganizationViewPaths, e as accountViewPaths, h as authLocalization, d as authViewPaths, o as organizationViewPaths } from './view-paths-CIL7NXLh.js';
5
+ import 'clsx';
6
+ import 'zod';
5
7
 
6
8
  interface EmailTemplateClassNames {
7
9
  body?: string;
package/dist/server.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  cn,
6
6
  getViewByPath,
7
7
  organizationViewPaths
8
- } from "./chunk-MJPOA6PK.js";
8
+ } from "./chunk-YTGCDVH4.js";
9
9
 
10
10
  // src/components/email/email-template.tsx
11
11
  import {
package/dist/tanstack.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSV64DXGWcjs = require('./chunk-SV64DXGW.cjs');
4
- require('./chunk-CRAHKL2C.cjs');
3
+ var _chunkB24ZS3AScjs = require('./chunk-B24ZS3AS.cjs');
4
+ require('./chunk-42PRTYAB.cjs');
5
5
 
6
6
  // src/lib/tanstack/auth-ui-provider-tanstack.tsx
7
7
  var _react = require('react');
@@ -136,7 +136,7 @@ function AuthUIProviderTanstack({
136
136
  await (onSessionChangeProp == null ? void 0 : onSessionChangeProp());
137
137
  }, [onSessionChangeProp, onSessionChange]);
138
138
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
139
- _chunkSV64DXGWcjs.AuthUIProvider,
139
+ _chunkB24ZS3AScjs.AuthUIProvider,
140
140
  {
141
141
  authClient,
142
142
  hooks,
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { l as AuthUIProviderProps } from './auth-ui-provider-DhZfncd3.cjs';
2
+ import { k as AuthUIProviderProps } from './auth-ui-provider-DGboLH2y.cjs';
3
3
  import 'react';
4
- import './view-paths-CHSJf5dv.cjs';
5
- import './auth-hooks-IOEvlYYv.cjs';
4
+ import './view-paths-CIL7NXLh.cjs';
5
+ import './auth-hooks-BuniCu20.cjs';
6
6
  import '@better-fetch/fetch';
7
7
  import 'better-auth';
8
8
  import 'better-auth/plugins/organization';
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { l as AuthUIProviderProps } from './auth-ui-provider-BsH3xJDw.js';
2
+ import { k as AuthUIProviderProps } from './auth-ui-provider-B3fzotj0.js';
3
3
  import 'react';
4
- import './view-paths-CHSJf5dv.js';
5
- import './auth-hooks-IOEvlYYv.js';
4
+ import './view-paths-CIL7NXLh.js';
5
+ import './auth-hooks-BuniCu20.js';
6
6
  import '@better-fetch/fetch';
7
7
  import 'better-auth';
8
8
  import 'better-auth/plugins/organization';
package/dist/tanstack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AuthUIProvider
3
- } from "./chunk-BDFQSFBU.js";
4
- import "./chunk-MJPOA6PK.js";
3
+ } from "./chunk-GFDS6WTO.js";
4
+ import "./chunk-YTGCDVH4.js";
5
5
 
6
6
  // src/lib/tanstack/auth-ui-provider-tanstack.tsx
7
7
  import { useCallback as useCallback2, useMemo as useMemo2 } from "react";
@@ -1,6 +1,6 @@
1
1
  import { TriplitClient } from '@triplit/client';
2
2
  import { User } from 'better-auth';
3
- import { S as Session, R as Refetch, a as AuthHooks } from './auth-hooks-IOEvlYYv.cjs';
3
+ import { S as Session, R as Refetch, c as AuthHooks } from './auth-hooks-BuniCu20.cjs';
4
4
  import '@better-fetch/fetch';
5
5
  import 'better-auth/plugins/organization';
6
6
  import 'better-auth/react';
package/dist/triplit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TriplitClient } from '@triplit/client';
2
2
  import { User } from 'better-auth';
3
- import { S as Session, R as Refetch, a as AuthHooks } from './auth-hooks-IOEvlYYv.js';
3
+ import { S as Session, R as Refetch, c as AuthHooks } from './auth-hooks-BuniCu20.js';
4
4
  import '@better-fetch/fetch';
5
5
  import 'better-auth/plugins/organization';
6
6
  import 'better-auth/react';
@@ -0,0 +1,24 @@
1
+ import { ClassValue } from 'clsx';
2
+ import * as z from 'zod';
3
+ import { A as AuthLocalization, P as PasswordValidation } from './view-paths-CIL7NXLh.cjs';
4
+
5
+ declare function cn(...inputs: ClassValue[]): string;
6
+ declare function isValidEmail(email: string): boolean;
7
+ /**
8
+ * Converts error codes from SNAKE_CASE to camelCase
9
+ * Example: INVALID_TWO_FACTOR_COOKIE -> invalidTwoFactorCookie
10
+ */
11
+ declare function errorCodeToCamelCase(errorCode: string): string;
12
+ /**
13
+ * Gets a localized error message from an error object
14
+ */
15
+ declare function getLocalizedError({ error, localization }: {
16
+ error: any;
17
+ localization?: Partial<AuthLocalization>;
18
+ }): any;
19
+ declare function getSearchParam(paramName: string): string | null;
20
+ declare function getViewByPath<T extends object>(viewPaths: T, path?: string): Extract<keyof T, string> | undefined;
21
+ declare function getKeyByValue<T extends Record<string, unknown>>(object: T, value?: T[keyof T]): keyof T | undefined;
22
+ declare function getPasswordSchema(passwordValidation?: PasswordValidation, localization?: AuthLocalization): z.ZodString;
23
+
24
+ export { getSearchParam as a, getViewByPath as b, cn as c, getKeyByValue as d, errorCodeToCamelCase as e, getPasswordSchema as f, getLocalizedError as g, isValidEmail as i };
@@ -0,0 +1,24 @@
1
+ import { ClassValue } from 'clsx';
2
+ import * as z from 'zod';
3
+ import { A as AuthLocalization, P as PasswordValidation } from './view-paths-CIL7NXLh.js';
4
+
5
+ declare function cn(...inputs: ClassValue[]): string;
6
+ declare function isValidEmail(email: string): boolean;
7
+ /**
8
+ * Converts error codes from SNAKE_CASE to camelCase
9
+ * Example: INVALID_TWO_FACTOR_COOKIE -> invalidTwoFactorCookie
10
+ */
11
+ declare function errorCodeToCamelCase(errorCode: string): string;
12
+ /**
13
+ * Gets a localized error message from an error object
14
+ */
15
+ declare function getLocalizedError({ error, localization }: {
16
+ error: any;
17
+ localization?: Partial<AuthLocalization>;
18
+ }): any;
19
+ declare function getSearchParam(paramName: string): string | null;
20
+ declare function getViewByPath<T extends object>(viewPaths: T, path?: string): Extract<keyof T, string> | undefined;
21
+ declare function getKeyByValue<T extends Record<string, unknown>>(object: T, value?: T[keyof T]): keyof T | undefined;
22
+ declare function getPasswordSchema(passwordValidation?: PasswordValidation, localization?: AuthLocalization): z.ZodString;
23
+
24
+ export { getSearchParam as a, getViewByPath as b, cn as c, getKeyByValue as d, errorCodeToCamelCase as e, getPasswordSchema as f, getLocalizedError as g, isValidEmail as i };
@@ -593,6 +593,21 @@ declare const authLocalization: {
593
593
  };
594
594
  type AuthLocalization = Partial<typeof authLocalization>;
595
595
 
596
+ type PasswordValidation = {
597
+ /**
598
+ * Maximum password length
599
+ */
600
+ maxLength?: number;
601
+ /**
602
+ * Minimum password length
603
+ */
604
+ minLength?: number;
605
+ /**
606
+ * Password validation regex
607
+ */
608
+ regex?: RegExp;
609
+ };
610
+
596
611
  declare const authViewPaths: {
597
612
  /** @default "callback" */
598
613
  CALLBACK: string;
@@ -642,4 +657,4 @@ type AuthViewPath = keyof AuthViewPaths;
642
657
  type AccountViewPath = keyof AccountViewPaths;
643
658
  type OrganizationViewPath = keyof OrganizationViewPaths;
644
659
 
645
- export { type AuthLocalization as A, type OrganizationViewPath as O, type AccountViewPath as a, type AuthViewPath as b, type AuthViewPaths as c, authViewPaths as d, accountViewPaths as e, type AccountViewPaths as f, type OrganizationViewPaths as g, authLocalization as h, organizationViewPaths as o };
660
+ export { type AuthLocalization as A, type OrganizationViewPath as O, type PasswordValidation as P, type AccountViewPath as a, type AuthViewPath as b, type AuthViewPaths as c, authViewPaths as d, accountViewPaths as e, type AccountViewPaths as f, type OrganizationViewPaths as g, authLocalization as h, organizationViewPaths as o };
@@ -593,6 +593,21 @@ declare const authLocalization: {
593
593
  };
594
594
  type AuthLocalization = Partial<typeof authLocalization>;
595
595
 
596
+ type PasswordValidation = {
597
+ /**
598
+ * Maximum password length
599
+ */
600
+ maxLength?: number;
601
+ /**
602
+ * Minimum password length
603
+ */
604
+ minLength?: number;
605
+ /**
606
+ * Password validation regex
607
+ */
608
+ regex?: RegExp;
609
+ };
610
+
596
611
  declare const authViewPaths: {
597
612
  /** @default "callback" */
598
613
  CALLBACK: string;
@@ -642,4 +657,4 @@ type AuthViewPath = keyof AuthViewPaths;
642
657
  type AccountViewPath = keyof AccountViewPaths;
643
658
  type OrganizationViewPath = keyof OrganizationViewPaths;
644
659
 
645
- export { type AuthLocalization as A, type OrganizationViewPath as O, type AccountViewPath as a, type AuthViewPath as b, type AuthViewPaths as c, authViewPaths as d, accountViewPaths as e, type AccountViewPaths as f, type OrganizationViewPaths as g, authLocalization as h, organizationViewPaths as o };
660
+ export { type AuthLocalization as A, type OrganizationViewPath as O, type PasswordValidation as P, type AccountViewPath as a, type AuthViewPath as b, type AuthViewPaths as c, authViewPaths as d, accountViewPaths as e, type AccountViewPaths as f, type OrganizationViewPaths as g, authLocalization as h, organizationViewPaths as o };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "better-auth-ui",
3
- "homepage": "https://better-auth-ui.com",
4
- "version": "3.2.13",
3
+ "homepage": "https://stackproviders.github.io/better-auth-ui/",
4
+ "version": "3.2.14",
5
5
  "description": "Plug & play shadcn/ui components for better-auth",
6
6
  "scripts": {
7
- "build": "tsup --clean --dts && shx cp src/style.css dist/style.css",
7
+ "build": "pnpm build:registry && tsup --clean --dts && shx cp src/style.css dist/style.css",
8
+ "build:registry": "pnpm sync:registry && pnpm dlx shadcn@latest build && shx mkdir -p docs/public/r && shx cp public/r/*.json docs/public/r/",
9
+ "sync:registry": "node scripts/sync-registry.js",
8
10
  "dev": "tsc-watch",
9
11
  "prepublishOnly": "shx rm -rf dist && turbo build"
10
12
  },
@@ -25,7 +25,7 @@ import { InputOTP } from "../../ui/input-otp"
25
25
  import type { AuthFormClassNames } from "../auth-form"
26
26
  import { OTPInputGroup } from "../otp-input-group"
27
27
 
28
- export interface EmailOTPFormProps {
28
+ export interface EmailOtpFormProps {
29
29
  className?: string
30
30
  classNames?: AuthFormClassNames
31
31
  callbackURL?: string
@@ -36,7 +36,7 @@ export interface EmailOTPFormProps {
36
36
  setIsSubmitting?: (value: boolean) => void
37
37
  }
38
38
 
39
- export function EmailOTPForm(props: EmailOTPFormProps) {
39
+ export function EmailOTPForm(props: EmailOtpFormProps) {
40
40
  const [email, setEmail] = useState<string | undefined>()
41
41
 
42
42
  if (!email) {
@@ -53,7 +53,7 @@ function EmailForm({
53
53
  localization,
54
54
  setIsSubmitting,
55
55
  setEmail
56
- }: EmailOTPFormProps & {
56
+ }: EmailOtpFormProps & {
57
57
  setEmail: (email: string) => void
58
58
  }) {
59
59
  const isHydrated = useIsHydrated()
@@ -167,7 +167,7 @@ export function OTPForm({
167
167
  redirectTo,
168
168
  setIsSubmitting,
169
169
  email
170
- }: EmailOTPFormProps & {
170
+ }: EmailOtpFormProps & {
171
171
  email: string
172
172
  }) {
173
173
  const {
@@ -12,13 +12,15 @@ import { CardContent } from "../ui/card"
12
12
  import { InviteMemberDialog } from "./invite-member-dialog"
13
13
  import { MemberCell } from "./member-cell"
14
14
 
15
+ export type OrganizationMembersCardProps = SettingsCardProps & { slug?: string }
16
+
15
17
  export function OrganizationMembersCard({
16
18
  className,
17
19
  classNames,
18
20
  localization: localizationProp,
19
21
  slug: slugProp,
20
22
  ...props
21
- }: SettingsCardProps & { slug?: string }) {
23
+ }: OrganizationMembersCardProps) {
22
24
  const {
23
25
  localization: contextLocalization,
24
26
  organization: organizationOptions
@@ -5,6 +5,8 @@ import { AuthUIContext } from "../../../lib/auth-ui-provider"
5
5
  import type { SettingsCardProps } from "../shared/settings-card"
6
6
  import { UpdateFieldCard } from "./update-field-card"
7
7
 
8
+ export type UpdateNameCardProps = SettingsCardProps
9
+
8
10
  export function UpdateNameCard({
9
11
  className,
10
12
  classNames,
@@ -6,6 +6,8 @@ import type { User } from "../../../types/auth-client"
6
6
  import type { SettingsCardProps } from "../shared/settings-card"
7
7
  import { UpdateFieldCard } from "./update-field-card"
8
8
 
9
+ export type UpdateUsernameCardProps = SettingsCardProps
10
+
9
11
  export function UpdateUsernameCard({
10
12
  className,
11
13
  classNames,
@@ -13,18 +13,20 @@ import { UpdateUsernameCard } from "./account/update-username-card"
13
13
  import { ChangeEmailCard } from "./security/change-email-card"
14
14
  import type { SettingsCardClassNames } from "./shared/settings-card"
15
15
 
16
- export function AccountSettingsCards({
17
- className,
18
- classNames,
19
- localization
20
- }: {
16
+ export interface AccountSettingsCardsProps {
21
17
  className?: string
22
18
  classNames?: {
23
19
  card?: SettingsCardClassNames
24
20
  cards?: string
25
21
  }
26
22
  localization?: Partial<AuthLocalization>
27
- }) {
23
+ }
24
+
25
+ export function AccountSettingsCards({
26
+ className,
27
+ classNames,
28
+ localization
29
+ }: AccountSettingsCardsProps) {
28
30
  const {
29
31
  additionalFields,
30
32
  avatar,
@@ -19,6 +19,8 @@ import { Skeleton } from "../../ui/skeleton"
19
19
  import type { SettingsCardProps } from "../shared/settings-card"
20
20
  import { SettingsCard } from "../shared/settings-card"
21
21
 
22
+ export type ChangeEmailCardProps = SettingsCardProps
23
+
22
24
  export function ChangeEmailCard({
23
25
  className,
24
26
  classNames,
package/src/index.ts CHANGED
@@ -55,11 +55,35 @@ export * from "./components/user-button"
55
55
  export * from "./components/user-view"
56
56
  export * from "./hooks/use-auth-data"
57
57
  export * from "./hooks/use-authenticate"
58
+ export * from "./hooks/use-captcha"
58
59
  export * from "./hooks/use-current-organization"
60
+ export * from "./hooks/use-hydrated"
61
+ export * from "./hooks/use-lang"
62
+ export * from "./hooks/use-success-transition"
63
+ export * from "./hooks/use-theme"
59
64
  export * from "./lib/auth-ui-provider"
60
65
  export * from "./lib/social-providers"
61
- export { getViewByPath } from "./lib/utils"
66
+ export * from "./lib/utils"
62
67
  export * from "./lib/view-paths"
63
68
  export * from "./localization/auth-localization"
69
+ export * from "./types/account-options"
70
+ export * from "./types/additional-fields"
71
+ export * from "./types/any-auth-client"
72
+ export * from "./types/auth-client"
64
73
  export * from "./types/auth-hooks"
65
74
  export * from "./types/auth-mutators"
75
+ export * from "./types/avatar-options"
76
+ export * from "./types/captcha-options"
77
+ export * from "./types/credentials-options"
78
+ export * from "./types/delete-user-options"
79
+ export * from "./types/generic-oauth-options"
80
+ export * from "./types/gravatar-options"
81
+ export * from "./types/link"
82
+ export * from "./types/organization-options"
83
+ export * from "./types/password-validation"
84
+ export * from "./types/profile"
85
+ export * from "./types/refetch"
86
+ export * from "./types/render-toast"
87
+ export * from "./types/sign-up-options"
88
+ export * from "./types/social-options"
89
+ export * from "./lib/organization-refetcher"
@@ -1,3 +0,0 @@
1
- declare function getViewByPath<T extends object>(viewPaths: T, path?: string): Extract<keyof T, string> | undefined;
2
-
3
- export { getViewByPath as g };
@@ -1,3 +0,0 @@
1
- declare function getViewByPath<T extends object>(viewPaths: T, path?: string): Extract<keyof T, string> | undefined;
2
-
3
- export { getViewByPath as g };