@ttoss/react-auth-core 0.4.29 → 0.4.31

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.cts CHANGED
@@ -1,76 +1,78 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
1
 
2
+ import * as React$1 from "react";
3
+
4
+ //#region src/AuthCard.d.ts
4
5
  type LogoContextProps = {
5
- logo?: React$1.ReactNode;
6
- children?: React$1.ReactNode;
6
+ logo?: React$1.ReactNode;
7
+ children?: React$1.ReactNode;
7
8
  };
8
-
9
+ //#endregion
10
+ //#region src/types.d.ts
9
11
  type AuthUser = {
10
- id: string;
11
- email: string;
12
- emailVerified?: boolean;
12
+ id: string;
13
+ email: string;
14
+ emailVerified?: boolean;
13
15
  };
14
16
  type AuthTokens = {
15
- accessToken: string;
16
- refreshToken?: string;
17
- idToken?: string;
18
- expiresIn?: number;
19
- expiresAt?: number;
17
+ accessToken: string;
18
+ refreshToken?: string;
19
+ idToken?: string;
20
+ expiresIn?: number;
21
+ expiresAt?: number;
20
22
  };
21
23
  type AuthData = {
22
- user: AuthUser | null;
23
- tokens: AuthTokens | null;
24
- isAuthenticated: boolean | undefined;
24
+ user: AuthUser | null;
25
+ tokens: AuthTokens | null;
26
+ isAuthenticated: boolean | undefined;
25
27
  };
26
28
  type AuthContextValue = {
27
- signOut: () => Promise<void>;
28
- isAuthenticated: boolean;
29
- user: AuthUser | null;
30
- tokens: AuthTokens | null;
31
- setAuthData: React.Dispatch<React.SetStateAction<AuthData>>;
29
+ signOut: () => Promise<void>;
30
+ isAuthenticated: boolean;
31
+ user: AuthUser | null;
32
+ tokens: AuthTokens | null;
33
+ setAuthData: React.Dispatch<React.SetStateAction<AuthData>>;
32
34
  };
33
35
  type AuthScreen = {
34
- value: 'signIn';
36
+ value: 'signIn';
35
37
  } | {
36
- value: 'signUp';
38
+ value: 'signUp';
37
39
  } | {
38
- value: 'confirmSignUpWithCode';
39
- context: {
40
- email: string;
41
- };
40
+ value: 'confirmSignUpWithCode';
41
+ context: {
42
+ email: string;
43
+ };
42
44
  } | {
43
- value: 'confirmSignUpCheckEmail';
45
+ value: 'confirmSignUpCheckEmail';
44
46
  } | {
45
- value: 'forgotPassword';
47
+ value: 'forgotPassword';
46
48
  } | {
47
- value: 'confirmResetPassword';
48
- context: {
49
- email?: string;
50
- code?: string;
51
- };
49
+ value: 'confirmResetPassword';
50
+ context: {
51
+ email?: string;
52
+ code?: string;
53
+ };
52
54
  };
53
55
  type OnSignInInput = {
54
- email: string;
55
- password: string;
56
+ email: string;
57
+ password: string;
56
58
  };
57
59
  type OnSignUpInput = {
58
- email: string;
59
- password: string;
60
- confirmPassword: string;
61
- signUpTerms?: boolean;
60
+ email: string;
61
+ password: string;
62
+ confirmPassword: string;
63
+ signUpTerms?: boolean;
62
64
  };
63
65
  type OnConfirmSignUpWithCodeInput = {
64
- email: string;
65
- code: string;
66
+ email: string;
67
+ code: string;
66
68
  };
67
69
  type OnForgotPasswordInput = {
68
- email: string;
70
+ email: string;
69
71
  };
70
72
  type OnForgotPasswordResetPasswordInput = {
71
- email?: string;
72
- code?: string;
73
- newPassword: string;
73
+ email?: string;
74
+ code?: string;
75
+ newPassword: string;
74
76
  };
75
77
  type OnSignIn = (input: OnSignInInput) => Promise<void> | void;
76
78
  type OnSignUp = (input: OnSignUpInput) => Promise<void> | void;
@@ -79,107 +81,133 @@ type OnConfirmSignUpWithCode = (input: OnConfirmSignUpWithCodeInput) => Promise<
79
81
  type OnForgotPassword = (input: OnForgotPasswordInput) => Promise<void> | void;
80
82
  type OnForgotPasswordResetPassword = (input: OnForgotPasswordResetPasswordInput) => Promise<void> | void;
81
83
  type SignUpTerms = {
82
- isRequired: boolean;
83
- terms: {
84
- label: string;
85
- url: string;
86
- }[];
87
- };
88
-
84
+ isRequired: boolean;
85
+ terms: {
86
+ label: string;
87
+ url: string;
88
+ }[];
89
+ };
90
+ //#endregion
91
+ //#region src/Auth.d.ts
89
92
  type AuthPropsBase = {
90
- signUpTerms?: SignUpTerms;
91
- passwordMinimumLength?: number;
92
- maxForgotPasswordCodeLength?: number;
93
- onSignIn: OnSignIn;
94
- onSignUp?: OnSignUp;
95
- onConfirmSignUpCheckEmail?: OnConfirmSignUpCheckEmail;
96
- onConfirmSignUpWithCode?: OnConfirmSignUpWithCode;
97
- onForgotPassword?: OnForgotPassword;
98
- onForgotPasswordResetPassword?: OnForgotPasswordResetPassword;
93
+ signUpTerms?: SignUpTerms;
94
+ passwordMinimumLength?: number;
95
+ maxForgotPasswordCodeLength?: number;
96
+ onSignIn: OnSignIn;
97
+ onSignUp?: OnSignUp;
98
+ onConfirmSignUpCheckEmail?: OnConfirmSignUpCheckEmail;
99
+ onConfirmSignUpWithCode?: OnConfirmSignUpWithCode;
100
+ onForgotPassword?: OnForgotPassword;
101
+ onForgotPasswordResetPassword?: OnForgotPasswordResetPassword;
99
102
  };
100
103
  type AuthPropsWithScreen = AuthPropsBase & {
101
- screen: AuthScreen;
102
- setScreen: (screen: AuthScreen) => void;
103
- initialScreen?: never;
104
+ screen: AuthScreen;
105
+ setScreen: (screen: AuthScreen) => void;
106
+ initialScreen?: never;
104
107
  };
105
108
  type AuthPropsWithInitialScreen = AuthPropsBase & {
106
- screen?: never;
107
- setScreen?: never;
108
- initialScreen?: AuthScreen;
109
+ screen?: never;
110
+ setScreen?: never;
111
+ initialScreen?: AuthScreen;
109
112
  };
110
113
  type AuthLayout = {
111
- fullScreen?: boolean;
112
- sideContent?: React$1.ReactNode;
113
- sideContentPosition?: 'left' | 'right';
114
+ fullScreen?: boolean;
115
+ sideContent?: React$1.ReactNode;
116
+ sideContentPosition?: 'left' | 'right';
114
117
  };
115
118
  type AuthProps = LogoContextProps & (AuthPropsWithScreen | AuthPropsWithInitialScreen) & {
116
- layout?: AuthLayout;
119
+ layout?: AuthLayout;
117
120
  };
118
- declare const Auth: (props: AuthProps) => react_jsx_runtime.JSX.Element;
119
-
121
+ declare const Auth: (props: AuthProps) => import("react/jsx-runtime").JSX.Element;
122
+ //#endregion
123
+ //#region src/AuthConfirmSignUpCheckEmail.d.ts
120
124
  type AuthConfirmSignUpCheckEmailProps = {
121
- onConfirmSignUpCheckEmail: OnConfirmSignUpCheckEmail;
125
+ onConfirmSignUpCheckEmail: OnConfirmSignUpCheckEmail;
122
126
  };
123
- declare const AuthConfirmSignUpCheckEmail: ({ onConfirmSignUpCheckEmail, }: AuthConfirmSignUpCheckEmailProps) => react_jsx_runtime.JSX.Element;
124
-
127
+ declare const AuthConfirmSignUpCheckEmail: ({
128
+ onConfirmSignUpCheckEmail
129
+ }: AuthConfirmSignUpCheckEmailProps) => import("react/jsx-runtime").JSX.Element;
130
+ //#endregion
131
+ //#region src/AuthConfirmSignUpWithCode.d.ts
125
132
  type AuthConfirmSignUpWithCodeProps = {
126
- email: string;
127
- onConfirmSignUpWithCode: OnConfirmSignUpWithCode;
128
- };
129
- declare const AuthConfirmSignUpWithCode: ({ email, onConfirmSignUpWithCode, }: AuthConfirmSignUpWithCodeProps) => react_jsx_runtime.JSX.Element;
130
-
133
+ email: string;
134
+ onConfirmSignUpWithCode: OnConfirmSignUpWithCode;
135
+ };
136
+ declare const AuthConfirmSignUpWithCode: ({
137
+ email,
138
+ onConfirmSignUpWithCode
139
+ }: AuthConfirmSignUpWithCodeProps) => import("react/jsx-runtime").JSX.Element;
140
+ //#endregion
141
+ //#region src/AuthForgotPassword.d.ts
131
142
  type AuthForgotPasswordProps = {
132
- onForgotPassword: OnForgotPassword;
133
- onGoToSignIn: () => void;
134
- onGoToSignUp?: () => void;
143
+ onForgotPassword: OnForgotPassword;
144
+ onGoToSignIn: () => void;
145
+ onGoToSignUp?: () => void;
135
146
  };
136
- declare const AuthForgotPassword: (props: AuthForgotPasswordProps) => react_jsx_runtime.JSX.Element;
137
-
147
+ declare const AuthForgotPassword: (props: AuthForgotPasswordProps) => import("react/jsx-runtime").JSX.Element;
148
+ //#endregion
149
+ //#region src/AuthForgotPasswordResetPassword.d.ts
138
150
  type AuthForgotPasswordResetPasswordProps = {
139
- email?: string;
140
- maxCodeLength?: number;
141
- onForgotPasswordResetPassword: OnForgotPasswordResetPassword;
142
- onGoToSignIn: () => void;
143
- passwordMinimumLength?: number;
144
- };
145
- declare const AuthForgotPasswordResetPassword: (props: AuthForgotPasswordResetPasswordProps) => react_jsx_runtime.JSX.Element;
146
-
151
+ email?: string;
152
+ maxCodeLength?: number;
153
+ onForgotPasswordResetPassword: OnForgotPasswordResetPassword;
154
+ onGoToSignIn: () => void;
155
+ passwordMinimumLength?: number;
156
+ };
157
+ declare const AuthForgotPasswordResetPassword: (props: AuthForgotPasswordResetPasswordProps) => import("react/jsx-runtime").JSX.Element;
158
+ //#endregion
159
+ //#region src/AuthFullScreen.d.ts
147
160
  type AuthFullScreenProps = {
148
- backgroundImageUrl?: string;
149
- children: React.ReactNode;
150
- };
151
- declare const AuthFullScreen: ({ children }: AuthFullScreenProps) => react_jsx_runtime.JSX.Element;
152
-
161
+ backgroundImageUrl?: string;
162
+ children: React.ReactNode;
163
+ };
164
+ declare const AuthFullScreen: ({
165
+ children
166
+ }: AuthFullScreenProps) => import("react/jsx-runtime").JSX.Element;
167
+ //#endregion
168
+ //#region src/AuthProvider.d.ts
153
169
  type AuthProviderProps = {
154
- children: React$1.ReactNode;
155
- getAuthData: () => Promise<AuthData | null>;
156
- signOut: () => Promise<void>;
170
+ children: React$1.ReactNode;
171
+ getAuthData: () => Promise<AuthData | null>;
172
+ signOut: () => Promise<void>;
157
173
  };
158
- declare const AuthProvider: (props: AuthProviderProps) => react_jsx_runtime.JSX.Element | null;
174
+ declare const AuthProvider: (props: AuthProviderProps) => import("react/jsx-runtime").JSX.Element | null;
159
175
  declare const useAuth: () => AuthContextValue;
160
-
176
+ //#endregion
177
+ //#region src/AuthSignIn.d.ts
161
178
  type AuthSignInProps = {
162
- onSignIn: OnSignIn;
163
- onGoToSignUp?: () => void;
164
- onGoToForgotPassword?: () => void;
165
- defaultValues?: Partial<OnSignInInput>;
166
- passwordMinimumLength?: number;
167
- };
168
- declare const AuthSignIn: ({ onSignIn, onGoToSignUp, defaultValues, onGoToForgotPassword, passwordMinimumLength, }: AuthSignInProps) => react_jsx_runtime.JSX.Element;
169
-
179
+ onSignIn: OnSignIn;
180
+ onGoToSignUp?: () => void;
181
+ onGoToForgotPassword?: () => void;
182
+ defaultValues?: Partial<OnSignInInput>;
183
+ passwordMinimumLength?: number;
184
+ };
185
+ declare const AuthSignIn: ({
186
+ onSignIn,
187
+ onGoToSignUp,
188
+ defaultValues,
189
+ onGoToForgotPassword,
190
+ passwordMinimumLength
191
+ }: AuthSignInProps) => import("react/jsx-runtime").JSX.Element;
192
+ //#endregion
193
+ //#region src/AuthSignUp.d.ts
170
194
  type AuthSignUpProps = {
171
- onSignUp: OnSignUp;
172
- onGoToSignIn: () => void;
173
- signUpTerms?: SignUpTerms;
174
- passwordMinimumLength?: number;
175
- };
176
- declare const AuthSignUp: (props: AuthSignUpProps) => react_jsx_runtime.JSX.Element;
177
-
178
- declare const ErrorBoundary: ({ children }: React$1.PropsWithChildren) => react_jsx_runtime.JSX.Element;
179
-
195
+ onSignUp: OnSignUp;
196
+ onGoToSignIn: () => void;
197
+ signUpTerms?: SignUpTerms;
198
+ passwordMinimumLength?: number;
199
+ };
200
+ declare const AuthSignUp: (props: AuthSignUpProps) => import("react/jsx-runtime").JSX.Element;
201
+ //#endregion
202
+ //#region src/ErrorBoundary.d.ts
203
+ declare const ErrorBoundary: ({
204
+ children
205
+ }: React$1.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
206
+ //#endregion
207
+ //#region src/useAuthScreen.d.ts
180
208
  declare const useAuthScreen: (initialScreen?: AuthScreen) => {
181
- screen: AuthScreen;
182
- setScreen: React$1.Dispatch<React$1.SetStateAction<AuthScreen>>;
209
+ screen: AuthScreen;
210
+ setScreen: React$1.Dispatch<React$1.SetStateAction<AuthScreen>>;
183
211
  };
184
-
185
- export { Auth, AuthConfirmSignUpCheckEmail, type AuthConfirmSignUpCheckEmailProps, AuthConfirmSignUpWithCode, type AuthConfirmSignUpWithCodeProps, type AuthContextValue, type AuthData, AuthForgotPassword, type AuthForgotPasswordProps, AuthForgotPasswordResetPassword, type AuthForgotPasswordResetPasswordProps, AuthFullScreen, type AuthFullScreenProps, type AuthProps, AuthProvider, type AuthProviderProps, type AuthScreen, AuthSignIn, type AuthSignInProps, AuthSignUp, type AuthSignUpProps, type AuthTokens, type AuthUser, ErrorBoundary, type OnConfirmSignUpCheckEmail, type OnConfirmSignUpWithCode, type OnConfirmSignUpWithCodeInput, type OnForgotPassword, type OnForgotPasswordInput, type OnForgotPasswordResetPassword, type OnForgotPasswordResetPasswordInput, type OnSignIn, type OnSignInInput, type OnSignUp, type OnSignUpInput, type SignUpTerms, useAuth, useAuthScreen };
212
+ //#endregion
213
+ export { Auth, AuthConfirmSignUpCheckEmail, type AuthConfirmSignUpCheckEmailProps, AuthConfirmSignUpWithCode, type AuthConfirmSignUpWithCodeProps, AuthContextValue, AuthData, AuthForgotPassword, type AuthForgotPasswordProps, AuthForgotPasswordResetPassword, type AuthForgotPasswordResetPasswordProps, AuthFullScreen, type AuthFullScreenProps, type AuthProps, AuthProvider, type AuthProviderProps, AuthScreen, AuthSignIn, type AuthSignInProps, AuthSignUp, type AuthSignUpProps, AuthTokens, AuthUser, ErrorBoundary, OnConfirmSignUpCheckEmail, OnConfirmSignUpWithCode, OnConfirmSignUpWithCodeInput, OnForgotPassword, OnForgotPasswordInput, OnForgotPasswordResetPassword, OnForgotPasswordResetPasswordInput, OnSignIn, OnSignInInput, OnSignUp, OnSignUpInput, SignUpTerms, useAuth, useAuthScreen };
@@ -0,0 +1,213 @@
1
+
2
+ import * as React$1 from "react";
3
+
4
+ //#region src/AuthCard.d.ts
5
+ type LogoContextProps = {
6
+ logo?: React$1.ReactNode;
7
+ children?: React$1.ReactNode;
8
+ };
9
+ //#endregion
10
+ //#region src/types.d.ts
11
+ type AuthUser = {
12
+ id: string;
13
+ email: string;
14
+ emailVerified?: boolean;
15
+ };
16
+ type AuthTokens = {
17
+ accessToken: string;
18
+ refreshToken?: string;
19
+ idToken?: string;
20
+ expiresIn?: number;
21
+ expiresAt?: number;
22
+ };
23
+ type AuthData = {
24
+ user: AuthUser | null;
25
+ tokens: AuthTokens | null;
26
+ isAuthenticated: boolean | undefined;
27
+ };
28
+ type AuthContextValue = {
29
+ signOut: () => Promise<void>;
30
+ isAuthenticated: boolean;
31
+ user: AuthUser | null;
32
+ tokens: AuthTokens | null;
33
+ setAuthData: React.Dispatch<React.SetStateAction<AuthData>>;
34
+ };
35
+ type AuthScreen = {
36
+ value: 'signIn';
37
+ } | {
38
+ value: 'signUp';
39
+ } | {
40
+ value: 'confirmSignUpWithCode';
41
+ context: {
42
+ email: string;
43
+ };
44
+ } | {
45
+ value: 'confirmSignUpCheckEmail';
46
+ } | {
47
+ value: 'forgotPassword';
48
+ } | {
49
+ value: 'confirmResetPassword';
50
+ context: {
51
+ email?: string;
52
+ code?: string;
53
+ };
54
+ };
55
+ type OnSignInInput = {
56
+ email: string;
57
+ password: string;
58
+ };
59
+ type OnSignUpInput = {
60
+ email: string;
61
+ password: string;
62
+ confirmPassword: string;
63
+ signUpTerms?: boolean;
64
+ };
65
+ type OnConfirmSignUpWithCodeInput = {
66
+ email: string;
67
+ code: string;
68
+ };
69
+ type OnForgotPasswordInput = {
70
+ email: string;
71
+ };
72
+ type OnForgotPasswordResetPasswordInput = {
73
+ email?: string;
74
+ code?: string;
75
+ newPassword: string;
76
+ };
77
+ type OnSignIn = (input: OnSignInInput) => Promise<void> | void;
78
+ type OnSignUp = (input: OnSignUpInput) => Promise<void> | void;
79
+ type OnConfirmSignUpCheckEmail = () => Promise<void> | void;
80
+ type OnConfirmSignUpWithCode = (input: OnConfirmSignUpWithCodeInput) => Promise<void> | void;
81
+ type OnForgotPassword = (input: OnForgotPasswordInput) => Promise<void> | void;
82
+ type OnForgotPasswordResetPassword = (input: OnForgotPasswordResetPasswordInput) => Promise<void> | void;
83
+ type SignUpTerms = {
84
+ isRequired: boolean;
85
+ terms: {
86
+ label: string;
87
+ url: string;
88
+ }[];
89
+ };
90
+ //#endregion
91
+ //#region src/Auth.d.ts
92
+ type AuthPropsBase = {
93
+ signUpTerms?: SignUpTerms;
94
+ passwordMinimumLength?: number;
95
+ maxForgotPasswordCodeLength?: number;
96
+ onSignIn: OnSignIn;
97
+ onSignUp?: OnSignUp;
98
+ onConfirmSignUpCheckEmail?: OnConfirmSignUpCheckEmail;
99
+ onConfirmSignUpWithCode?: OnConfirmSignUpWithCode;
100
+ onForgotPassword?: OnForgotPassword;
101
+ onForgotPasswordResetPassword?: OnForgotPasswordResetPassword;
102
+ };
103
+ type AuthPropsWithScreen = AuthPropsBase & {
104
+ screen: AuthScreen;
105
+ setScreen: (screen: AuthScreen) => void;
106
+ initialScreen?: never;
107
+ };
108
+ type AuthPropsWithInitialScreen = AuthPropsBase & {
109
+ screen?: never;
110
+ setScreen?: never;
111
+ initialScreen?: AuthScreen;
112
+ };
113
+ type AuthLayout = {
114
+ fullScreen?: boolean;
115
+ sideContent?: React$1.ReactNode;
116
+ sideContentPosition?: 'left' | 'right';
117
+ };
118
+ type AuthProps = LogoContextProps & (AuthPropsWithScreen | AuthPropsWithInitialScreen) & {
119
+ layout?: AuthLayout;
120
+ };
121
+ declare const Auth: (props: AuthProps) => import("react/jsx-runtime").JSX.Element;
122
+ //#endregion
123
+ //#region src/AuthConfirmSignUpCheckEmail.d.ts
124
+ type AuthConfirmSignUpCheckEmailProps = {
125
+ onConfirmSignUpCheckEmail: OnConfirmSignUpCheckEmail;
126
+ };
127
+ declare const AuthConfirmSignUpCheckEmail: ({
128
+ onConfirmSignUpCheckEmail
129
+ }: AuthConfirmSignUpCheckEmailProps) => import("react/jsx-runtime").JSX.Element;
130
+ //#endregion
131
+ //#region src/AuthConfirmSignUpWithCode.d.ts
132
+ type AuthConfirmSignUpWithCodeProps = {
133
+ email: string;
134
+ onConfirmSignUpWithCode: OnConfirmSignUpWithCode;
135
+ };
136
+ declare const AuthConfirmSignUpWithCode: ({
137
+ email,
138
+ onConfirmSignUpWithCode
139
+ }: AuthConfirmSignUpWithCodeProps) => import("react/jsx-runtime").JSX.Element;
140
+ //#endregion
141
+ //#region src/AuthForgotPassword.d.ts
142
+ type AuthForgotPasswordProps = {
143
+ onForgotPassword: OnForgotPassword;
144
+ onGoToSignIn: () => void;
145
+ onGoToSignUp?: () => void;
146
+ };
147
+ declare const AuthForgotPassword: (props: AuthForgotPasswordProps) => import("react/jsx-runtime").JSX.Element;
148
+ //#endregion
149
+ //#region src/AuthForgotPasswordResetPassword.d.ts
150
+ type AuthForgotPasswordResetPasswordProps = {
151
+ email?: string;
152
+ maxCodeLength?: number;
153
+ onForgotPasswordResetPassword: OnForgotPasswordResetPassword;
154
+ onGoToSignIn: () => void;
155
+ passwordMinimumLength?: number;
156
+ };
157
+ declare const AuthForgotPasswordResetPassword: (props: AuthForgotPasswordResetPasswordProps) => import("react/jsx-runtime").JSX.Element;
158
+ //#endregion
159
+ //#region src/AuthFullScreen.d.ts
160
+ type AuthFullScreenProps = {
161
+ backgroundImageUrl?: string;
162
+ children: React.ReactNode;
163
+ };
164
+ declare const AuthFullScreen: ({
165
+ children
166
+ }: AuthFullScreenProps) => import("react/jsx-runtime").JSX.Element;
167
+ //#endregion
168
+ //#region src/AuthProvider.d.ts
169
+ type AuthProviderProps = {
170
+ children: React$1.ReactNode;
171
+ getAuthData: () => Promise<AuthData | null>;
172
+ signOut: () => Promise<void>;
173
+ };
174
+ declare const AuthProvider: (props: AuthProviderProps) => import("react/jsx-runtime").JSX.Element | null;
175
+ declare const useAuth: () => AuthContextValue;
176
+ //#endregion
177
+ //#region src/AuthSignIn.d.ts
178
+ type AuthSignInProps = {
179
+ onSignIn: OnSignIn;
180
+ onGoToSignUp?: () => void;
181
+ onGoToForgotPassword?: () => void;
182
+ defaultValues?: Partial<OnSignInInput>;
183
+ passwordMinimumLength?: number;
184
+ };
185
+ declare const AuthSignIn: ({
186
+ onSignIn,
187
+ onGoToSignUp,
188
+ defaultValues,
189
+ onGoToForgotPassword,
190
+ passwordMinimumLength
191
+ }: AuthSignInProps) => import("react/jsx-runtime").JSX.Element;
192
+ //#endregion
193
+ //#region src/AuthSignUp.d.ts
194
+ type AuthSignUpProps = {
195
+ onSignUp: OnSignUp;
196
+ onGoToSignIn: () => void;
197
+ signUpTerms?: SignUpTerms;
198
+ passwordMinimumLength?: number;
199
+ };
200
+ declare const AuthSignUp: (props: AuthSignUpProps) => import("react/jsx-runtime").JSX.Element;
201
+ //#endregion
202
+ //#region src/ErrorBoundary.d.ts
203
+ declare const ErrorBoundary: ({
204
+ children
205
+ }: React$1.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
206
+ //#endregion
207
+ //#region src/useAuthScreen.d.ts
208
+ declare const useAuthScreen: (initialScreen?: AuthScreen) => {
209
+ screen: AuthScreen;
210
+ setScreen: React$1.Dispatch<React$1.SetStateAction<AuthScreen>>;
211
+ };
212
+ //#endregion
213
+ export { Auth, AuthConfirmSignUpCheckEmail, type AuthConfirmSignUpCheckEmailProps, AuthConfirmSignUpWithCode, type AuthConfirmSignUpWithCodeProps, AuthContextValue, AuthData, AuthForgotPassword, type AuthForgotPasswordProps, AuthForgotPasswordResetPassword, type AuthForgotPasswordResetPasswordProps, AuthFullScreen, type AuthFullScreenProps, type AuthProps, AuthProvider, type AuthProviderProps, AuthScreen, AuthSignIn, type AuthSignInProps, AuthSignUp, type AuthSignUpProps, AuthTokens, AuthUser, ErrorBoundary, OnConfirmSignUpCheckEmail, OnConfirmSignUpWithCode, OnConfirmSignUpWithCodeInput, OnForgotPassword, OnForgotPasswordInput, OnForgotPasswordResetPassword, OnForgotPasswordResetPasswordInput, OnSignIn, OnSignInInput, OnSignUp, OnSignUpInput, SignUpTerms, useAuth, useAuthScreen };