@ttoss/react-auth-core 0.4.29 → 0.4.30
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.cjs +1102 -0
- package/dist/index.d.cts +154 -126
- package/dist/index.d.mts +213 -0
- package/dist/index.mjs +1059 -0
- package/i18n/compiled/en.json +4 -4
- package/package.json +19 -19
- package/dist/esm/index.js +0 -1064
- package/dist/index.d.ts +0 -185
- package/dist/index.js +0 -1130
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
id: string;
|
|
13
|
+
email: string;
|
|
14
|
+
emailVerified?: boolean;
|
|
13
15
|
};
|
|
14
16
|
type AuthTokens = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
accessToken: string;
|
|
18
|
+
refreshToken?: string;
|
|
19
|
+
idToken?: string;
|
|
20
|
+
expiresIn?: number;
|
|
21
|
+
expiresAt?: number;
|
|
20
22
|
};
|
|
21
23
|
type AuthData = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
user: AuthUser | null;
|
|
25
|
+
tokens: AuthTokens | null;
|
|
26
|
+
isAuthenticated: boolean | undefined;
|
|
25
27
|
};
|
|
26
28
|
type AuthContextValue = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
+
value: 'signIn';
|
|
35
37
|
} | {
|
|
36
|
-
|
|
38
|
+
value: 'signUp';
|
|
37
39
|
} | {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
value: 'confirmSignUpWithCode';
|
|
41
|
+
context: {
|
|
42
|
+
email: string;
|
|
43
|
+
};
|
|
42
44
|
} | {
|
|
43
|
-
|
|
45
|
+
value: 'confirmSignUpCheckEmail';
|
|
44
46
|
} | {
|
|
45
|
-
|
|
47
|
+
value: 'forgotPassword';
|
|
46
48
|
} | {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
value: 'confirmResetPassword';
|
|
50
|
+
context: {
|
|
51
|
+
email?: string;
|
|
52
|
+
code?: string;
|
|
53
|
+
};
|
|
52
54
|
};
|
|
53
55
|
type OnSignInInput = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
email: string;
|
|
57
|
+
password: string;
|
|
56
58
|
};
|
|
57
59
|
type OnSignUpInput = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
email: string;
|
|
61
|
+
password: string;
|
|
62
|
+
confirmPassword: string;
|
|
63
|
+
signUpTerms?: boolean;
|
|
62
64
|
};
|
|
63
65
|
type OnConfirmSignUpWithCodeInput = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
email: string;
|
|
67
|
+
code: string;
|
|
66
68
|
};
|
|
67
69
|
type OnForgotPasswordInput = {
|
|
68
|
-
|
|
70
|
+
email: string;
|
|
69
71
|
};
|
|
70
72
|
type OnForgotPasswordResetPasswordInput = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
screen: AuthScreen;
|
|
105
|
+
setScreen: (screen: AuthScreen) => void;
|
|
106
|
+
initialScreen?: never;
|
|
104
107
|
};
|
|
105
108
|
type AuthPropsWithInitialScreen = AuthPropsBase & {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
screen?: never;
|
|
110
|
+
setScreen?: never;
|
|
111
|
+
initialScreen?: AuthScreen;
|
|
109
112
|
};
|
|
110
113
|
type AuthLayout = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
fullScreen?: boolean;
|
|
115
|
+
sideContent?: React$1.ReactNode;
|
|
116
|
+
sideContentPosition?: 'left' | 'right';
|
|
114
117
|
};
|
|
115
118
|
type AuthProps = LogoContextProps & (AuthPropsWithScreen | AuthPropsWithInitialScreen) & {
|
|
116
|
-
|
|
119
|
+
layout?: AuthLayout;
|
|
117
120
|
};
|
|
118
|
-
declare const Auth: (props: AuthProps) =>
|
|
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
|
-
|
|
125
|
+
onConfirmSignUpCheckEmail: OnConfirmSignUpCheckEmail;
|
|
122
126
|
};
|
|
123
|
-
declare const AuthConfirmSignUpCheckEmail: ({
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
declare const AuthConfirmSignUpWithCode: ({
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
143
|
+
onForgotPassword: OnForgotPassword;
|
|
144
|
+
onGoToSignIn: () => void;
|
|
145
|
+
onGoToSignUp?: () => void;
|
|
135
146
|
};
|
|
136
|
-
declare const AuthForgotPassword: (props: AuthForgotPasswordProps) =>
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
};
|
|
145
|
-
declare const AuthForgotPasswordResetPassword: (props: AuthForgotPasswordResetPasswordProps) =>
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
};
|
|
151
|
-
declare const AuthFullScreen: ({
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
170
|
+
children: React$1.ReactNode;
|
|
171
|
+
getAuthData: () => Promise<AuthData | null>;
|
|
172
|
+
signOut: () => Promise<void>;
|
|
157
173
|
};
|
|
158
|
-
declare const AuthProvider: (props: AuthProviderProps) =>
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
declare const AuthSignIn: ({
|
|
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
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
};
|
|
176
|
-
declare const AuthSignUp: (props: AuthSignUpProps) =>
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
182
|
-
|
|
209
|
+
screen: AuthScreen;
|
|
210
|
+
setScreen: React$1.Dispatch<React$1.SetStateAction<AuthScreen>>;
|
|
183
211
|
};
|
|
184
|
-
|
|
185
|
-
export { Auth, AuthConfirmSignUpCheckEmail, type AuthConfirmSignUpCheckEmailProps, AuthConfirmSignUpWithCode, type AuthConfirmSignUpWithCodeProps,
|
|
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 };
|
package/dist/index.d.mts
ADDED
|
@@ -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 };
|