better-auth-ui 3.2.14 → 3.2.15
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/{auth-ui-provider-DGboLH2y.d.cts → auth-ui-provider-D3GrYvcj.d.cts} +1 -1
- package/dist/{auth-ui-provider-B3fzotj0.d.ts → auth-ui-provider-mrVNJ6zj.d.ts} +1 -1
- package/dist/{chunk-GFDS6WTO.js → chunk-BJHZPU6H.js} +11 -10
- package/dist/{chunk-B24ZS3AS.cjs → chunk-GB6DYT26.cjs} +12 -11
- package/dist/index.cjs +126 -121
- package/dist/index.d.cts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +6 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tanstack.cjs +2 -2
- package/dist/tanstack.d.cts +1 -1
- package/dist/tanstack.d.ts +1 -1
- package/dist/tanstack.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
|
@@ -679,4 +679,4 @@ type AuthUIProviderProps = {
|
|
|
679
679
|
declare const AuthUIContext: React.Context<AuthUIContextType>;
|
|
680
680
|
declare const AuthUIProvider: ({ children, authClient: authClientProp, account: accountProp, avatar: avatarProp, deleteUser: deleteUserProp, social: socialProp, genericOAuth: genericOAuthProp, basePath, baseURL, captcha, redirectTo, credentials: credentialsProp, changeEmail, freshAge, hooks: hooksProp, mutators: mutatorsProp, localization: localizationProp, nameRequired, organization: organizationProp, signUp: signUpProp, toast, viewPaths: viewPathsProp, navigate, replace, Link, ...props }: AuthUIProviderProps) => react_jsx_runtime.JSX.Element;
|
|
681
681
|
|
|
682
|
-
export { AppleIcon as A, type OrganizationOptionsContext as B, type CaptchaOptions as C, DiscordIcon as D, type RenderToast as E, type FieldType as F,
|
|
682
|
+
export { AppleIcon as A, type OrganizationOptionsContext as B, type CaptchaOptions as C, DiscordIcon as D, type RenderToast as E, type FieldType as F, type GravatarOptions as G, HuggingFaceIcon as H, type SignUpOptions as I, type SocialOptions as J, KickIcon as K, LinearIcon as L, MicrosoftIcon as M, NotionIcon as N, type OrganizationLogoOptions as O, type ProviderIconProps as P, RedditIcon as R, SlackIcon as S, TikTokIcon as T, VKIcon as V, XIcon as X, ZoomIcon as Z, type ProviderIcon as a, DropboxIcon as b, FacebookIcon as c, GitHubIcon as d, GitLabIcon as e, GoogleIcon as f, LinkedInIcon as g, RobloxIcon as h, SpotifyIcon as i, TwitchIcon as j, type AuthUIContextType as k, type AuthUIProviderProps as l, AuthUIContext as m, AuthUIProvider as n, type Provider as o, type AccountOptions as p, type AccountOptionsContext as q, type AdditionalField as r, socialProviders as s, type AdditionalFields as t, type AvatarOptions as u, type CredentialsOptions as v, type DeleteUserOptions as w, type GenericOAuthOptions as x, type Link as y, type OrganizationOptions as z };
|
|
@@ -679,4 +679,4 @@ type AuthUIProviderProps = {
|
|
|
679
679
|
declare const AuthUIContext: React.Context<AuthUIContextType>;
|
|
680
680
|
declare const AuthUIProvider: ({ children, authClient: authClientProp, account: accountProp, avatar: avatarProp, deleteUser: deleteUserProp, social: socialProp, genericOAuth: genericOAuthProp, basePath, baseURL, captcha, redirectTo, credentials: credentialsProp, changeEmail, freshAge, hooks: hooksProp, mutators: mutatorsProp, localization: localizationProp, nameRequired, organization: organizationProp, signUp: signUpProp, toast, viewPaths: viewPathsProp, navigate, replace, Link, ...props }: AuthUIProviderProps) => react_jsx_runtime.JSX.Element;
|
|
681
681
|
|
|
682
|
-
export { AppleIcon as A, type OrganizationOptionsContext as B, type CaptchaOptions as C, DiscordIcon as D, type RenderToast as E, type FieldType as F,
|
|
682
|
+
export { AppleIcon as A, type OrganizationOptionsContext as B, type CaptchaOptions as C, DiscordIcon as D, type RenderToast as E, type FieldType as F, type GravatarOptions as G, HuggingFaceIcon as H, type SignUpOptions as I, type SocialOptions as J, KickIcon as K, LinearIcon as L, MicrosoftIcon as M, NotionIcon as N, type OrganizationLogoOptions as O, type ProviderIconProps as P, RedditIcon as R, SlackIcon as S, TikTokIcon as T, VKIcon as V, XIcon as X, ZoomIcon as Z, type ProviderIcon as a, DropboxIcon as b, FacebookIcon as c, GitHubIcon as d, GitLabIcon as e, GoogleIcon as f, LinkedInIcon as g, RobloxIcon as h, SpotifyIcon as i, TwitchIcon as j, type AuthUIContextType as k, type AuthUIProviderProps as l, AuthUIContext as m, AuthUIProvider as n, type Provider as o, type AccountOptions as p, type AccountOptionsContext as q, type AdditionalField as r, socialProviders as s, type AdditionalFields as t, type AvatarOptions as u, type CredentialsOptions as v, type DeleteUserOptions as w, type GenericOAuthOptions as x, type Link as y, type OrganizationOptions as z };
|
|
@@ -71,16 +71,6 @@ function useTheme() {
|
|
|
71
71
|
return { theme };
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// src/hooks/use-auth-data.ts
|
|
75
|
-
import {
|
|
76
|
-
useCallback,
|
|
77
|
-
useContext as useContext4,
|
|
78
|
-
useEffect as useEffect5,
|
|
79
|
-
useRef,
|
|
80
|
-
useState as useState3,
|
|
81
|
-
useSyncExternalStore as useSyncExternalStore2
|
|
82
|
-
} from "react";
|
|
83
|
-
|
|
84
74
|
// src/lib/auth-data-cache.ts
|
|
85
75
|
var AuthDataCache = class {
|
|
86
76
|
cache = /* @__PURE__ */ new Map();
|
|
@@ -155,6 +145,16 @@ var AuthDataCache = class {
|
|
|
155
145
|
};
|
|
156
146
|
var authDataCache = new AuthDataCache();
|
|
157
147
|
|
|
148
|
+
// src/hooks/use-auth-data.ts
|
|
149
|
+
import {
|
|
150
|
+
useCallback,
|
|
151
|
+
useContext as useContext4,
|
|
152
|
+
useEffect as useEffect5,
|
|
153
|
+
useRef,
|
|
154
|
+
useState as useState3,
|
|
155
|
+
useSyncExternalStore as useSyncExternalStore2
|
|
156
|
+
} from "react";
|
|
157
|
+
|
|
158
158
|
// src/lib/auth-ui-provider.tsx
|
|
159
159
|
import { createContext, useMemo as useMemo2 } from "react";
|
|
160
160
|
import { toast } from "sonner";
|
|
@@ -741,6 +741,7 @@ export {
|
|
|
741
741
|
useIsHydrated,
|
|
742
742
|
useLang,
|
|
743
743
|
useTheme,
|
|
744
|
+
authDataCache,
|
|
744
745
|
useAuthData,
|
|
745
746
|
useCurrentOrganization,
|
|
746
747
|
OrganizationRefetcher,
|
|
@@ -71,16 +71,6 @@ function useTheme() {
|
|
|
71
71
|
return { theme };
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// src/hooks/use-auth-data.ts
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
74
|
// src/lib/auth-data-cache.ts
|
|
85
75
|
var AuthDataCache = (_class = class {constructor() { _class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this); }
|
|
86
76
|
__init() {this.cache = /* @__PURE__ */ new Map()}
|
|
@@ -155,6 +145,16 @@ var AuthDataCache = (_class = class {constructor() { _class.prototype.__init.cal
|
|
|
155
145
|
}, _class);
|
|
156
146
|
var authDataCache = new AuthDataCache();
|
|
157
147
|
|
|
148
|
+
// src/hooks/use-auth-data.ts
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
158
|
// src/lib/auth-ui-provider.tsx
|
|
159
159
|
|
|
160
160
|
var _sonner = require('sonner');
|
|
@@ -746,4 +746,5 @@ function useAuthData({
|
|
|
746
746
|
|
|
747
747
|
|
|
748
748
|
|
|
749
|
-
|
|
749
|
+
|
|
750
|
+
exports.useIsHydrated = useIsHydrated; exports.useLang = useLang; exports.useTheme = useTheme; exports.authDataCache = authDataCache; exports.useAuthData = useAuthData; exports.useCurrentOrganization = useCurrentOrganization; exports.OrganizationRefetcher = OrganizationRefetcher; exports.AuthUIContext = AuthUIContext; exports.AuthUIProvider = AuthUIProvider;
|