@niledatabase/react 3.0.0-alpha.44 → 3.0.0-alpha.46
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/index.d.mts +103 -45
- package/dist/index.d.ts +103 -45
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -12,11 +12,11 @@ import { CtxOrReq } from 'next-auth/client/_utils';
|
|
|
12
12
|
import { Session } from 'next-auth';
|
|
13
13
|
|
|
14
14
|
type EmailSignInInfo = SignInOptions;
|
|
15
|
-
type SignInSuccess
|
|
15
|
+
type SignInSuccess = (response: Response) => void;
|
|
16
16
|
type AllowedAny$3 = any;
|
|
17
|
-
interface Props$
|
|
17
|
+
interface Props$5 {
|
|
18
18
|
redirect?: boolean;
|
|
19
|
-
onSuccess?: SignInSuccess
|
|
19
|
+
onSuccess?: SignInSuccess;
|
|
20
20
|
onError?: (e: Error, info: EmailSignInInfo) => void;
|
|
21
21
|
beforeMutate?: (data: AllowedAny$3) => AllowedAny$3;
|
|
22
22
|
buttonText?: string;
|
|
@@ -24,7 +24,7 @@ interface Props$3 {
|
|
|
24
24
|
callbackUrl?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
declare function EmailSigningIn(props: Props$
|
|
27
|
+
declare function EmailSigningIn(props: Props$5): React__default.JSX.Element;
|
|
28
28
|
|
|
29
29
|
declare const buttonVariants: (props?: ({
|
|
30
30
|
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
@@ -58,7 +58,7 @@ declare const EmailSignInButton: React__default.ForwardRefExoticComponent<Button
|
|
|
58
58
|
buttonText?: string;
|
|
59
59
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
60
60
|
|
|
61
|
-
declare function useSignIn$1(params?: Props$
|
|
61
|
+
declare function useSignIn$1(params?: Props$5): _tanstack_react_query.UseMutateFunction<Response, Error, next_auth_react.SignInOptions, unknown>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* A component for a Google login button, according to their design language.
|
|
@@ -108,14 +108,13 @@ declare const XSignInButton: React__default.ForwardRefExoticComponent<ButtonProp
|
|
|
108
108
|
|
|
109
109
|
type SignUpInfo = CreateBasicUserRequest & {
|
|
110
110
|
tenantId?: string;
|
|
111
|
-
|
|
111
|
+
fetchUrl?: string;
|
|
112
112
|
callbackUrl?: string;
|
|
113
113
|
newTenantName?: string;
|
|
114
114
|
};
|
|
115
|
-
type SignInSuccess = (response: Response, formValues: SignUpInfo) => void;
|
|
116
115
|
type AllowedAny$2 = any;
|
|
117
|
-
interface Props$
|
|
118
|
-
onSuccess?:
|
|
116
|
+
interface Props$4 {
|
|
117
|
+
onSuccess?: (response: Response, formValues: SignUpInfo) => void;
|
|
119
118
|
onError?: (e: Error, info: SignUpInfo) => void;
|
|
120
119
|
beforeMutate?: (data: AllowedAny$2) => AllowedAny$2;
|
|
121
120
|
buttonText?: string;
|
|
@@ -124,9 +123,9 @@ interface Props$2 {
|
|
|
124
123
|
baseUrl?: string;
|
|
125
124
|
}
|
|
126
125
|
|
|
127
|
-
declare function SigningUp(props: Props$
|
|
126
|
+
declare function SigningUp(props: Props$4): React__default.JSX.Element;
|
|
128
127
|
|
|
129
|
-
declare function useSignUp<T extends SignUpInfo>(params: Props$
|
|
128
|
+
declare function useSignUp<T extends SignUpInfo>(params: Props$4, client?: QueryClient): _tanstack_react_query.UseMutateFunction<Response, Error, SignUpInfo, unknown>;
|
|
130
129
|
|
|
131
130
|
type AllowedAny$1 = any;
|
|
132
131
|
type LoginInfo = {
|
|
@@ -134,7 +133,7 @@ type LoginInfo = {
|
|
|
134
133
|
password: string;
|
|
135
134
|
};
|
|
136
135
|
type LoginSuccess = (response: AllowedAny$1, formValues: LoginInfo, ...args: AllowedAny$1) => void;
|
|
137
|
-
interface Props$
|
|
136
|
+
interface Props$3 {
|
|
138
137
|
beforeMutate?: (data: AllowedAny$1) => AllowedAny$1;
|
|
139
138
|
onSuccess?: LoginSuccess;
|
|
140
139
|
onError?: (error: Error, data: AllowedAny$1) => void;
|
|
@@ -142,9 +141,9 @@ interface Props$1 {
|
|
|
142
141
|
client?: QueryClient;
|
|
143
142
|
}
|
|
144
143
|
|
|
145
|
-
declare function SigningIn(props: Props$
|
|
144
|
+
declare function SigningIn(props: Props$3): React__default.JSX.Element;
|
|
146
145
|
|
|
147
|
-
declare function useSignIn(params?: Props$
|
|
146
|
+
declare function useSignIn(params?: Props$3): _tanstack_react_query.UseMutateFunction<next_auth_react.SignInResponse | undefined, Error, LoginInfo, any>;
|
|
148
147
|
|
|
149
148
|
declare const SignOutButton: React__default.ForwardRefExoticComponent<ButtonProps & {
|
|
150
149
|
redirect?: boolean;
|
|
@@ -152,36 +151,6 @@ declare const SignOutButton: React__default.ForwardRefExoticComponent<ButtonProp
|
|
|
152
151
|
buttonText?: string;
|
|
153
152
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
154
153
|
|
|
155
|
-
type Props = Params & {
|
|
156
|
-
client?: QueryClient;
|
|
157
|
-
callbackURL?: string;
|
|
158
|
-
defaultValues?: MutateFnParams & {
|
|
159
|
-
confirmPassword?: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
type AllowedAny = any;
|
|
163
|
-
interface Params {
|
|
164
|
-
beforeMutate?: (data: AllowedAny) => AllowedAny;
|
|
165
|
-
onSuccess?: (res: Response) => void;
|
|
166
|
-
onError?: (error: Error, data: AllowedAny) => void;
|
|
167
|
-
callbackURL?: string;
|
|
168
|
-
client?: QueryClient;
|
|
169
|
-
fetchURL?: string;
|
|
170
|
-
}
|
|
171
|
-
type MutateFnParams = {
|
|
172
|
-
email?: string;
|
|
173
|
-
password?: string;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
declare function ResetPasswordForm$1(props: Props): React__default.JSX.Element;
|
|
177
|
-
|
|
178
|
-
declare function ResetPasswordForm(params: Params): React__default.JSX.Element;
|
|
179
|
-
|
|
180
|
-
declare function useResetPassword(params?: Params): _tanstack_react_query.UseMutateFunction<Response, Error, MutateFnParams, unknown>;
|
|
181
|
-
|
|
182
|
-
declare const Email: () => React.JSX.Element;
|
|
183
|
-
declare const Password: () => React.JSX.Element;
|
|
184
|
-
|
|
185
154
|
type UpdateSession = (data?: any) => Promise<Session | null>;
|
|
186
155
|
type SessionContextValue<R extends boolean = false> = R extends true ? {
|
|
187
156
|
update: UpdateSession;
|
|
@@ -262,5 +231,94 @@ declare function signOut<R extends boolean = true>(options?: SignOutParams<R>):
|
|
|
262
231
|
* [Documentation](https://next-auth.js.org/getting-started/client#sessionprovider)
|
|
263
232
|
*/
|
|
264
233
|
declare function SessionProvider(props: SessionProviderProps): React__default.JSX.Element;
|
|
234
|
+
type JWT = {
|
|
235
|
+
email: string;
|
|
236
|
+
sub: string;
|
|
237
|
+
id: string;
|
|
238
|
+
iat: number;
|
|
239
|
+
exp: number;
|
|
240
|
+
jti: string;
|
|
241
|
+
};
|
|
242
|
+
type ActiveSession = {
|
|
243
|
+
id: string;
|
|
244
|
+
email: string;
|
|
245
|
+
expires: string;
|
|
246
|
+
user?: {
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
image: string;
|
|
250
|
+
email: string;
|
|
251
|
+
emailVerified: void | Date;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
type NonErrorSession = JWT | ActiveSession | null | undefined;
|
|
255
|
+
type NileSession = Response | NonErrorSession;
|
|
256
|
+
|
|
257
|
+
declare function SignedIn({ children, session: startSession, ...props }: Omit<SessionProviderProps, 'session'> & {
|
|
258
|
+
session?: NileSession;
|
|
259
|
+
}): React__default.JSX.Element | null;
|
|
260
|
+
|
|
261
|
+
declare function SignedOut({ children, session: startSession, ...props }: Omit<SessionProviderProps, 'session'> & {
|
|
262
|
+
session?: NileSession;
|
|
263
|
+
}): React__default.JSX.Element | null;
|
|
264
|
+
|
|
265
|
+
interface User {
|
|
266
|
+
id: string;
|
|
267
|
+
email: string;
|
|
268
|
+
name?: string | null;
|
|
269
|
+
familyName?: string | null;
|
|
270
|
+
givenName?: string | null;
|
|
271
|
+
picture?: string | null;
|
|
272
|
+
created: string;
|
|
273
|
+
updated?: string;
|
|
274
|
+
emailVerified?: string | null;
|
|
275
|
+
tenants: {
|
|
276
|
+
id: string;
|
|
277
|
+
}[];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
type Props$2 = {
|
|
281
|
+
fetchUrl?: string;
|
|
282
|
+
user?: User | undefined | null;
|
|
283
|
+
};
|
|
284
|
+
declare function useMe(props: Props$2): User;
|
|
285
|
+
|
|
286
|
+
type Props$1 = {
|
|
287
|
+
user?: User | undefined | null;
|
|
288
|
+
fetchUrl?: string;
|
|
289
|
+
profilePicturePlaceholder?: React__default.ReactElement;
|
|
290
|
+
};
|
|
291
|
+
declare function UserInfo(props: Props$1): React__default.JSX.Element | "Loading...";
|
|
292
|
+
|
|
293
|
+
type Props = Params & {
|
|
294
|
+
client?: QueryClient;
|
|
295
|
+
callbackUrl?: string;
|
|
296
|
+
defaultValues?: MutateFnParams & {
|
|
297
|
+
confirmPassword?: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
type AllowedAny = any;
|
|
301
|
+
interface Params {
|
|
302
|
+
beforeMutate?: (data: AllowedAny) => AllowedAny;
|
|
303
|
+
onSuccess?: (res: Response) => void;
|
|
304
|
+
onError?: (error: Error, data: AllowedAny) => void;
|
|
305
|
+
callbackUrl?: string;
|
|
306
|
+
client?: QueryClient;
|
|
307
|
+
fetchUrl?: string;
|
|
308
|
+
baseUrl?: string;
|
|
309
|
+
}
|
|
310
|
+
type MutateFnParams = {
|
|
311
|
+
email?: string;
|
|
312
|
+
password?: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare function ResetPasswordForm$1(props: Props): React__default.JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare function ResetPasswordForm(params: Params): React__default.JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare function useResetPassword(params?: Params): _tanstack_react_query.UseMutateFunction<Response, Error, MutateFnParams, unknown>;
|
|
320
|
+
|
|
321
|
+
declare const Email: () => React.JSX.Element;
|
|
322
|
+
declare const Password: () => React.JSX.Element;
|
|
265
323
|
|
|
266
|
-
export { AzureSignInButton as Azure, DiscordSignInButton as Discord, Email, EmailSigningIn as EmailSignIn, EmailSignInButton, GitHubSignInButton as GitHub, GoogleSSOButton as Google, HubSpotSignInButton as HubSpot, LinkedInSignInButton as LinkedIn, Password, ResetPasswordForm as PasswordResetForm, ResetPasswordForm$1 as PasswordResetRequestForm, SessionContext, SessionProvider, SigningIn as SignInForm, SignOutButton, SigningUp as SignUpForm, SlackSignInButton as Slack, XSignInButton as X, getCsrfToken, getProviders, getSession, signIn, signOut, useSignIn$1 as useEmailSignIn, useResetPassword, useSession, useSignIn, useSignUp };
|
|
324
|
+
export { AzureSignInButton as Azure, DiscordSignInButton as Discord, Email, EmailSigningIn as EmailSignIn, EmailSignInButton, GitHubSignInButton as GitHub, GoogleSSOButton as Google, HubSpotSignInButton as HubSpot, LinkedInSignInButton as LinkedIn, Password, ResetPasswordForm as PasswordResetForm, ResetPasswordForm$1 as PasswordResetRequestForm, SessionContext, SessionProvider, SigningIn as SignInForm, SignOutButton, SigningUp as SignUpForm, SignedIn, SignedOut, SlackSignInButton as Slack, UserInfo, XSignInButton as X, getCsrfToken, getProviders, getSession, signIn, signOut, useSignIn$1 as useEmailSignIn, useMe, useResetPassword, useSession, useSignIn, useSignUp };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ import { CtxOrReq } from 'next-auth/client/_utils';
|
|
|
12
12
|
import { Session } from 'next-auth';
|
|
13
13
|
|
|
14
14
|
type EmailSignInInfo = SignInOptions;
|
|
15
|
-
type SignInSuccess
|
|
15
|
+
type SignInSuccess = (response: Response) => void;
|
|
16
16
|
type AllowedAny$3 = any;
|
|
17
|
-
interface Props$
|
|
17
|
+
interface Props$5 {
|
|
18
18
|
redirect?: boolean;
|
|
19
|
-
onSuccess?: SignInSuccess
|
|
19
|
+
onSuccess?: SignInSuccess;
|
|
20
20
|
onError?: (e: Error, info: EmailSignInInfo) => void;
|
|
21
21
|
beforeMutate?: (data: AllowedAny$3) => AllowedAny$3;
|
|
22
22
|
buttonText?: string;
|
|
@@ -24,7 +24,7 @@ interface Props$3 {
|
|
|
24
24
|
callbackUrl?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
declare function EmailSigningIn(props: Props$
|
|
27
|
+
declare function EmailSigningIn(props: Props$5): React__default.JSX.Element;
|
|
28
28
|
|
|
29
29
|
declare const buttonVariants: (props?: ({
|
|
30
30
|
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
@@ -58,7 +58,7 @@ declare const EmailSignInButton: React__default.ForwardRefExoticComponent<Button
|
|
|
58
58
|
buttonText?: string;
|
|
59
59
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
60
60
|
|
|
61
|
-
declare function useSignIn$1(params?: Props$
|
|
61
|
+
declare function useSignIn$1(params?: Props$5): _tanstack_react_query.UseMutateFunction<Response, Error, next_auth_react.SignInOptions, unknown>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* A component for a Google login button, according to their design language.
|
|
@@ -108,14 +108,13 @@ declare const XSignInButton: React__default.ForwardRefExoticComponent<ButtonProp
|
|
|
108
108
|
|
|
109
109
|
type SignUpInfo = CreateBasicUserRequest & {
|
|
110
110
|
tenantId?: string;
|
|
111
|
-
|
|
111
|
+
fetchUrl?: string;
|
|
112
112
|
callbackUrl?: string;
|
|
113
113
|
newTenantName?: string;
|
|
114
114
|
};
|
|
115
|
-
type SignInSuccess = (response: Response, formValues: SignUpInfo) => void;
|
|
116
115
|
type AllowedAny$2 = any;
|
|
117
|
-
interface Props$
|
|
118
|
-
onSuccess?:
|
|
116
|
+
interface Props$4 {
|
|
117
|
+
onSuccess?: (response: Response, formValues: SignUpInfo) => void;
|
|
119
118
|
onError?: (e: Error, info: SignUpInfo) => void;
|
|
120
119
|
beforeMutate?: (data: AllowedAny$2) => AllowedAny$2;
|
|
121
120
|
buttonText?: string;
|
|
@@ -124,9 +123,9 @@ interface Props$2 {
|
|
|
124
123
|
baseUrl?: string;
|
|
125
124
|
}
|
|
126
125
|
|
|
127
|
-
declare function SigningUp(props: Props$
|
|
126
|
+
declare function SigningUp(props: Props$4): React__default.JSX.Element;
|
|
128
127
|
|
|
129
|
-
declare function useSignUp<T extends SignUpInfo>(params: Props$
|
|
128
|
+
declare function useSignUp<T extends SignUpInfo>(params: Props$4, client?: QueryClient): _tanstack_react_query.UseMutateFunction<Response, Error, SignUpInfo, unknown>;
|
|
130
129
|
|
|
131
130
|
type AllowedAny$1 = any;
|
|
132
131
|
type LoginInfo = {
|
|
@@ -134,7 +133,7 @@ type LoginInfo = {
|
|
|
134
133
|
password: string;
|
|
135
134
|
};
|
|
136
135
|
type LoginSuccess = (response: AllowedAny$1, formValues: LoginInfo, ...args: AllowedAny$1) => void;
|
|
137
|
-
interface Props$
|
|
136
|
+
interface Props$3 {
|
|
138
137
|
beforeMutate?: (data: AllowedAny$1) => AllowedAny$1;
|
|
139
138
|
onSuccess?: LoginSuccess;
|
|
140
139
|
onError?: (error: Error, data: AllowedAny$1) => void;
|
|
@@ -142,9 +141,9 @@ interface Props$1 {
|
|
|
142
141
|
client?: QueryClient;
|
|
143
142
|
}
|
|
144
143
|
|
|
145
|
-
declare function SigningIn(props: Props$
|
|
144
|
+
declare function SigningIn(props: Props$3): React__default.JSX.Element;
|
|
146
145
|
|
|
147
|
-
declare function useSignIn(params?: Props$
|
|
146
|
+
declare function useSignIn(params?: Props$3): _tanstack_react_query.UseMutateFunction<next_auth_react.SignInResponse | undefined, Error, LoginInfo, any>;
|
|
148
147
|
|
|
149
148
|
declare const SignOutButton: React__default.ForwardRefExoticComponent<ButtonProps & {
|
|
150
149
|
redirect?: boolean;
|
|
@@ -152,36 +151,6 @@ declare const SignOutButton: React__default.ForwardRefExoticComponent<ButtonProp
|
|
|
152
151
|
buttonText?: string;
|
|
153
152
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
154
153
|
|
|
155
|
-
type Props = Params & {
|
|
156
|
-
client?: QueryClient;
|
|
157
|
-
callbackURL?: string;
|
|
158
|
-
defaultValues?: MutateFnParams & {
|
|
159
|
-
confirmPassword?: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
type AllowedAny = any;
|
|
163
|
-
interface Params {
|
|
164
|
-
beforeMutate?: (data: AllowedAny) => AllowedAny;
|
|
165
|
-
onSuccess?: (res: Response) => void;
|
|
166
|
-
onError?: (error: Error, data: AllowedAny) => void;
|
|
167
|
-
callbackURL?: string;
|
|
168
|
-
client?: QueryClient;
|
|
169
|
-
fetchURL?: string;
|
|
170
|
-
}
|
|
171
|
-
type MutateFnParams = {
|
|
172
|
-
email?: string;
|
|
173
|
-
password?: string;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
declare function ResetPasswordForm$1(props: Props): React__default.JSX.Element;
|
|
177
|
-
|
|
178
|
-
declare function ResetPasswordForm(params: Params): React__default.JSX.Element;
|
|
179
|
-
|
|
180
|
-
declare function useResetPassword(params?: Params): _tanstack_react_query.UseMutateFunction<Response, Error, MutateFnParams, unknown>;
|
|
181
|
-
|
|
182
|
-
declare const Email: () => React.JSX.Element;
|
|
183
|
-
declare const Password: () => React.JSX.Element;
|
|
184
|
-
|
|
185
154
|
type UpdateSession = (data?: any) => Promise<Session | null>;
|
|
186
155
|
type SessionContextValue<R extends boolean = false> = R extends true ? {
|
|
187
156
|
update: UpdateSession;
|
|
@@ -262,5 +231,94 @@ declare function signOut<R extends boolean = true>(options?: SignOutParams<R>):
|
|
|
262
231
|
* [Documentation](https://next-auth.js.org/getting-started/client#sessionprovider)
|
|
263
232
|
*/
|
|
264
233
|
declare function SessionProvider(props: SessionProviderProps): React__default.JSX.Element;
|
|
234
|
+
type JWT = {
|
|
235
|
+
email: string;
|
|
236
|
+
sub: string;
|
|
237
|
+
id: string;
|
|
238
|
+
iat: number;
|
|
239
|
+
exp: number;
|
|
240
|
+
jti: string;
|
|
241
|
+
};
|
|
242
|
+
type ActiveSession = {
|
|
243
|
+
id: string;
|
|
244
|
+
email: string;
|
|
245
|
+
expires: string;
|
|
246
|
+
user?: {
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
image: string;
|
|
250
|
+
email: string;
|
|
251
|
+
emailVerified: void | Date;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
type NonErrorSession = JWT | ActiveSession | null | undefined;
|
|
255
|
+
type NileSession = Response | NonErrorSession;
|
|
256
|
+
|
|
257
|
+
declare function SignedIn({ children, session: startSession, ...props }: Omit<SessionProviderProps, 'session'> & {
|
|
258
|
+
session?: NileSession;
|
|
259
|
+
}): React__default.JSX.Element | null;
|
|
260
|
+
|
|
261
|
+
declare function SignedOut({ children, session: startSession, ...props }: Omit<SessionProviderProps, 'session'> & {
|
|
262
|
+
session?: NileSession;
|
|
263
|
+
}): React__default.JSX.Element | null;
|
|
264
|
+
|
|
265
|
+
interface User {
|
|
266
|
+
id: string;
|
|
267
|
+
email: string;
|
|
268
|
+
name?: string | null;
|
|
269
|
+
familyName?: string | null;
|
|
270
|
+
givenName?: string | null;
|
|
271
|
+
picture?: string | null;
|
|
272
|
+
created: string;
|
|
273
|
+
updated?: string;
|
|
274
|
+
emailVerified?: string | null;
|
|
275
|
+
tenants: {
|
|
276
|
+
id: string;
|
|
277
|
+
}[];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
type Props$2 = {
|
|
281
|
+
fetchUrl?: string;
|
|
282
|
+
user?: User | undefined | null;
|
|
283
|
+
};
|
|
284
|
+
declare function useMe(props: Props$2): User;
|
|
285
|
+
|
|
286
|
+
type Props$1 = {
|
|
287
|
+
user?: User | undefined | null;
|
|
288
|
+
fetchUrl?: string;
|
|
289
|
+
profilePicturePlaceholder?: React__default.ReactElement;
|
|
290
|
+
};
|
|
291
|
+
declare function UserInfo(props: Props$1): React__default.JSX.Element | "Loading...";
|
|
292
|
+
|
|
293
|
+
type Props = Params & {
|
|
294
|
+
client?: QueryClient;
|
|
295
|
+
callbackUrl?: string;
|
|
296
|
+
defaultValues?: MutateFnParams & {
|
|
297
|
+
confirmPassword?: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
type AllowedAny = any;
|
|
301
|
+
interface Params {
|
|
302
|
+
beforeMutate?: (data: AllowedAny) => AllowedAny;
|
|
303
|
+
onSuccess?: (res: Response) => void;
|
|
304
|
+
onError?: (error: Error, data: AllowedAny) => void;
|
|
305
|
+
callbackUrl?: string;
|
|
306
|
+
client?: QueryClient;
|
|
307
|
+
fetchUrl?: string;
|
|
308
|
+
baseUrl?: string;
|
|
309
|
+
}
|
|
310
|
+
type MutateFnParams = {
|
|
311
|
+
email?: string;
|
|
312
|
+
password?: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare function ResetPasswordForm$1(props: Props): React__default.JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare function ResetPasswordForm(params: Params): React__default.JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare function useResetPassword(params?: Params): _tanstack_react_query.UseMutateFunction<Response, Error, MutateFnParams, unknown>;
|
|
320
|
+
|
|
321
|
+
declare const Email: () => React.JSX.Element;
|
|
322
|
+
declare const Password: () => React.JSX.Element;
|
|
265
323
|
|
|
266
|
-
export { AzureSignInButton as Azure, DiscordSignInButton as Discord, Email, EmailSigningIn as EmailSignIn, EmailSignInButton, GitHubSignInButton as GitHub, GoogleSSOButton as Google, HubSpotSignInButton as HubSpot, LinkedInSignInButton as LinkedIn, Password, ResetPasswordForm as PasswordResetForm, ResetPasswordForm$1 as PasswordResetRequestForm, SessionContext, SessionProvider, SigningIn as SignInForm, SignOutButton, SigningUp as SignUpForm, SlackSignInButton as Slack, XSignInButton as X, getCsrfToken, getProviders, getSession, signIn, signOut, useSignIn$1 as useEmailSignIn, useResetPassword, useSession, useSignIn, useSignUp };
|
|
324
|
+
export { AzureSignInButton as Azure, DiscordSignInButton as Discord, Email, EmailSigningIn as EmailSignIn, EmailSignInButton, GitHubSignInButton as GitHub, GoogleSSOButton as Google, HubSpotSignInButton as HubSpot, LinkedInSignInButton as LinkedIn, Password, ResetPasswordForm as PasswordResetForm, ResetPasswordForm$1 as PasswordResetRequestForm, SessionContext, SessionProvider, SigningIn as SignInForm, SignOutButton, SigningUp as SignUpForm, SignedIn, SignedOut, SlackSignInButton as Slack, UserInfo, XSignInButton as X, getCsrfToken, getProviders, getSession, signIn, signOut, useSignIn$1 as useEmailSignIn, useMe, useResetPassword, useSession, useSignIn, useSignUp };
|