@authing/react-ui-components 3.1.38 → 4.0.0-beta.0
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/lib/index.d.ts +687 -2621
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare module '@authing/react-ui-components/
|
|
1
|
+
declare module '@authing/react-ui-components/AuthClientProvider/AuthClientProvider' {
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AuthClientContextProps } from '@authing/react-ui-components/
|
|
3
|
+
import { AuthClientContextProps } from '@authing/react-ui-components/AuthClientProvider/context';
|
|
4
4
|
export const AuthClientProvider: React.FC<AuthClientContextProps>;
|
|
5
5
|
export const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
|
|
6
6
|
|
|
7
7
|
}
|
|
8
|
-
declare module '@authing/react-ui-components/
|
|
8
|
+
declare module '@authing/react-ui-components/AuthClientProvider/context' {
|
|
9
9
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
export interface AuthClientContextProps {
|
|
@@ -14,1083 +14,11 @@ declare module '@authing/react-ui-components/components/AuthClientProvider/conte
|
|
|
14
14
|
export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
|
|
15
15
|
|
|
16
16
|
}
|
|
17
|
-
declare module '@authing/react-ui-components/
|
|
18
|
-
export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/
|
|
17
|
+
declare module '@authing/react-ui-components/AuthClientProvider/index' {
|
|
18
|
+
export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/AuthClientProvider/AuthClientProvider';
|
|
19
19
|
|
|
20
20
|
}
|
|
21
|
-
declare module '@authing/react-ui-components/
|
|
22
|
-
import React, { FC } from 'react';
|
|
23
|
-
import './style.less';
|
|
24
|
-
/**
|
|
25
|
-
* 不使用 antd 的 dropdown,因为里面会用 tooltip,体积过大
|
|
26
|
-
*/
|
|
27
|
-
export const AuthingDropdown: FC<{
|
|
28
|
-
className?: string;
|
|
29
|
-
menus: {
|
|
30
|
-
label: React.ReactNode;
|
|
31
|
-
key: string | number;
|
|
32
|
-
onClick?: (key: string | number, evt: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
33
|
-
}[];
|
|
34
|
-
}>;
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/AppMFALayout/index' {
|
|
38
|
-
import { FC } from 'react';
|
|
39
|
-
import './style.less';
|
|
40
|
-
export interface MfaLayoutProps {
|
|
41
|
-
}
|
|
42
|
-
export const AppMfaLayout: FC<MfaLayoutProps>;
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/CompleteUserInfoLayout/index' {
|
|
46
|
-
import { FC } from 'react';
|
|
47
|
-
import './style.less';
|
|
48
|
-
export const CompleteUserInfoLayout: FC;
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ADLoginForm/index' {
|
|
52
|
-
import { FormInstance } from 'antd/lib/form';
|
|
53
|
-
import React from 'react';
|
|
54
|
-
import { ADLoginFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
55
|
-
export const ADLoginForm: React.ForwardRefExoticComponent<ADLoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/Agreements/index' {
|
|
59
|
-
import React, { FC } from 'react';
|
|
60
|
-
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
61
|
-
import './style.less';
|
|
62
|
-
export interface AgreementsProps {
|
|
63
|
-
value?: boolean;
|
|
64
|
-
onChange?: (value: boolean) => void;
|
|
65
|
-
style?: React.CSSProperties;
|
|
66
|
-
agreements: Agreement[];
|
|
67
|
-
showError?: boolean;
|
|
68
|
-
}
|
|
69
|
-
export const Agreements: FC<AgreementsProps>;
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/CompleteUserInfoForm/index' {
|
|
73
|
-
import { FC } from 'react';
|
|
74
|
-
import { CompleteUserInfoFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
75
|
-
export const CompleteUserInfoForm: FC<CompleteUserInfoFormProps>;
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm' {
|
|
79
|
-
import { FC } from 'react';
|
|
80
|
-
import { MFACheckEmailFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
81
|
-
import './style.less';
|
|
82
|
-
export const CheckEmailForm: FC<MFACheckEmailFormProps>;
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm' {
|
|
86
|
-
import { FC } from 'react';
|
|
87
|
-
import { EmailMFAVerifyFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
88
|
-
import './style.less';
|
|
89
|
-
export const VerifyCodeForm: FC<EmailMFAVerifyFormProps>;
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/EmailMfaVerifyForm/index' {
|
|
93
|
-
import { FC } from 'react';
|
|
94
|
-
import { SmsMFAFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
95
|
-
export const EmailMfaVerifyForm: FC<SmsMFAFormProps>;
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/EmailRegisterForm/index' {
|
|
99
|
-
import React from 'react';
|
|
100
|
-
import { FormInstance } from 'antd/lib/form';
|
|
101
|
-
import { EmailRegisterFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
102
|
-
export const EmailRegisterForm: React.ForwardRefExoticComponent<EmailRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/LdapLoginForm/index' {
|
|
106
|
-
import { FormInstance } from 'antd/lib/form';
|
|
107
|
-
import React from 'react';
|
|
108
|
-
import { PasswordLoginFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
109
|
-
export const LdapLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/LoginFormFooter/index' {
|
|
113
|
-
import { FC } from 'react';
|
|
114
|
-
import './style.less';
|
|
115
|
-
export interface LoginFormFooterProps {
|
|
116
|
-
loading: boolean;
|
|
117
|
-
needRestPwd?: boolean;
|
|
118
|
-
needRegister?: boolean;
|
|
119
|
-
}
|
|
120
|
-
export const LoginFormFooter: FC<LoginFormFooterProps>;
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/MfaResetCodeForm/Step1' {
|
|
124
|
-
import { FC } from 'react';
|
|
125
|
-
import { User } from 'authing-js-sdk';
|
|
126
|
-
export const MfaResetStep1: FC<{
|
|
127
|
-
mfaToken: string;
|
|
128
|
-
onSuccess: (user: User & {
|
|
129
|
-
recoveryCode: string;
|
|
130
|
-
}) => void;
|
|
131
|
-
goVerify: () => void;
|
|
132
|
-
onFail?: (error: any) => void;
|
|
133
|
-
}>;
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/MfaResetCodeForm/Step2' {
|
|
137
|
-
import { FC } from 'react';
|
|
138
|
-
export interface MfaResetStep2Props {
|
|
139
|
-
recoverCode: string;
|
|
140
|
-
onFinish: () => void;
|
|
141
|
-
}
|
|
142
|
-
export const MfaResetStep2: FC<MfaResetStep2Props>;
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/MfaResetCodeForm/index' {
|
|
146
|
-
import { FC } from 'react';
|
|
147
|
-
import { MfaResetForm } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
148
|
-
import './style.less';
|
|
149
|
-
export const MfaResetCodeForm: FC<MfaResetForm>;
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/MfaVerifyForm/index' {
|
|
153
|
-
import { FC } from 'react';
|
|
154
|
-
import { MfaVerifyForm } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
155
|
-
import './style.less';
|
|
156
|
-
export const MFAVerifyForm: FC<MfaVerifyForm>;
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/PasswordLoginForm/index' {
|
|
160
|
-
import { FormInstance } from 'antd/lib/form';
|
|
161
|
-
import React from 'react';
|
|
162
|
-
import { PasswordLoginFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
163
|
-
export const PasswordLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/PhoneCodeLoginForm/index' {
|
|
167
|
-
import React from 'react';
|
|
168
|
-
import { FormInstance } from 'antd/lib/form';
|
|
169
|
-
import { PhoneCodeLoginFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
170
|
-
export const PhoneCodeLoginForm: React.ForwardRefExoticComponent<PhoneCodeLoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/PhoneRegisterForm/index' {
|
|
174
|
-
import { FormInstance } from 'antd/lib/form';
|
|
175
|
-
import React from 'react';
|
|
176
|
-
import { PhoneRegisterFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
177
|
-
export const PhoneRegisterForm: React.ForwardRefExoticComponent<PhoneRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/QrCodeLoginForm/index' {
|
|
181
|
-
import { FC } from 'react';
|
|
182
|
-
import { QrLoginFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
183
|
-
import './style.less';
|
|
184
|
-
export const QrCodeLoginForm: FC<QrLoginFormProps>;
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/RegisterFormFooter/index' {
|
|
188
|
-
import { FC } from 'react';
|
|
189
|
-
import './style.less';
|
|
190
|
-
export interface RegisterFormFooterProps {
|
|
191
|
-
loading: boolean;
|
|
192
|
-
}
|
|
193
|
-
export const RegisterFormFooter: FC<RegisterFormFooterProps>;
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/Footer' {
|
|
197
|
-
/// <reference types="react" />
|
|
198
|
-
export const ResetPwdFormFooter: () => JSX.Element;
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/Step1' {
|
|
202
|
-
import { FC } from 'react';
|
|
203
|
-
import { ResetPasswordStep1Props } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
204
|
-
export const ResetPasswordStep1: FC<ResetPasswordStep1Props>;
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/Step2' {
|
|
208
|
-
import { FC } from 'react';
|
|
209
|
-
import { ResetPasswordStep2Props } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
210
|
-
export const ResetPasswordStep2: FC<ResetPasswordStep2Props>;
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/Step3' {
|
|
214
|
-
import { FC } from 'react';
|
|
215
|
-
import { ResetPasswordStep3Props } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
216
|
-
export const ResetPasswordStep3: FC<ResetPasswordStep3Props>;
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/Step4' {
|
|
220
|
-
import { FC } from 'react';
|
|
221
|
-
export const ResetPasswordStep4: FC;
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/index' {
|
|
225
|
-
import { FC } from 'react';
|
|
226
|
-
import { ResetPasswordFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
227
|
-
import './style.less';
|
|
228
|
-
export const ResetPasswordForm: FC<ResetPasswordFormProps>;
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn' {
|
|
232
|
-
import React, { FC } from 'react';
|
|
233
|
-
export interface SendCodeProps {
|
|
234
|
-
beforeSend: () => Promise<boolean>;
|
|
235
|
-
btnRef?: React.RefObject<HTMLButtonElement>;
|
|
236
|
-
}
|
|
237
|
-
export const SendCodeBtn: FC<SendCodeProps>;
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SendPhoneCode/index' {
|
|
241
|
-
import { FC } from 'react';
|
|
242
|
-
import { CommonMessage } from 'authing-js-sdk';
|
|
243
|
-
import './style.less';
|
|
244
|
-
export interface SendPhoneCodeProps {
|
|
245
|
-
phone: string;
|
|
246
|
-
onSend?: () => void;
|
|
247
|
-
onError?: (error: CommonMessage) => void;
|
|
248
|
-
}
|
|
249
|
-
export const SendPhoneCode: FC<SendPhoneCodeProps>;
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm' {
|
|
253
|
-
import { FC } from 'react';
|
|
254
|
-
import { MFACheckPhoneFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
255
|
-
import './style.less';
|
|
256
|
-
export const CheckPhoneForm: FC<MFACheckPhoneFormProps>;
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm' {
|
|
260
|
-
import { FC } from 'react';
|
|
261
|
-
import { SmsMFAVerifyFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
262
|
-
import './style.less';
|
|
263
|
-
export const VerifyCodeForm: FC<SmsMFAVerifyFormProps>;
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SmsMfaVerifyForm/index' {
|
|
267
|
-
import { FC } from 'react';
|
|
268
|
-
import { SmsMFAFormProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
269
|
-
export const SmsMfaVerifyForm: FC<SmsMFAFormProps>;
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/SocialAndIdpLogin/index' {
|
|
273
|
-
import { FC } from 'react';
|
|
274
|
-
import { SocialAndIdpLoginProps } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
275
|
-
import './style.less';
|
|
276
|
-
export const SocialAndIdpLogin: FC<SocialAndIdpLoginProps>;
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/UploadImage/index' {
|
|
280
|
-
import { FC } from 'react';
|
|
281
|
-
export const UploadImage: FC<{
|
|
282
|
-
value?: string;
|
|
283
|
-
onChange?: (value: string) => void;
|
|
284
|
-
}>;
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Forms/index' {
|
|
288
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/ADLoginForm/index';
|
|
289
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/ResetPwdForm/index';
|
|
290
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/MfaVerifyForm/index';
|
|
291
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/LdapLoginForm/index';
|
|
292
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/QrCodeLoginForm/index';
|
|
293
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/MfaResetCodeForm/index';
|
|
294
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/EmailRegisterForm/index';
|
|
295
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/PhoneRegisterForm/index';
|
|
296
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/PasswordLoginForm/index';
|
|
297
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/SocialAndIdpLogin/index';
|
|
298
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/PhoneCodeLoginForm/index';
|
|
299
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/SmsMfaVerifyForm/index';
|
|
300
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/Forms/EmailMfaVerifyForm/index';
|
|
301
|
-
|
|
302
|
-
}
|
|
303
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/GuardLayout/index' {
|
|
304
|
-
import React, { FC } from 'react';
|
|
305
|
-
import { UserConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
306
|
-
import './style.less';
|
|
307
|
-
export const GuardLayout: FC<{
|
|
308
|
-
visible?: boolean;
|
|
309
|
-
className?: string;
|
|
310
|
-
id?: string;
|
|
311
|
-
style?: React.CSSProperties;
|
|
312
|
-
lang?: Lang;
|
|
313
|
-
userConfig: UserConfig;
|
|
314
|
-
}>;
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/Header/index' {
|
|
318
|
-
import React, { FC } from 'react';
|
|
319
|
-
import './style.less';
|
|
320
|
-
export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
321
|
-
}
|
|
322
|
-
export const GuardHeader: FC<HeaderProps>;
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/IconFont/iconfont' {
|
|
326
|
-
export {};
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/IconFont/index' {
|
|
330
|
-
import React, { FC } from 'react';
|
|
331
|
-
import './iconfont';
|
|
332
|
-
import './style.less';
|
|
333
|
-
export const IconFont: FC<{
|
|
334
|
-
type: string;
|
|
335
|
-
style?: React.CSSProperties;
|
|
336
|
-
className?: string;
|
|
337
|
-
}>;
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/IconFont/svg' {
|
|
341
|
-
export const svgStr: "<svg><symbol id=\"authing-gitlab\" viewBox=\"0 0 1024 1024\"><path d=\"M958.326 570.912l-50.136-154.3L808.827 110.8c-5.111-15.733-27.372-15.733-32.485 0l-99.365 305.812H347.024L247.656 110.8c-5.11-15.733-27.37-15.733-32.484 0l-99.363 305.812-50.134 154.3c-4.575 14.073 0.437 29.49 12.407 38.19L512 924.358 945.92 609.1a34.16 34.16 0 0 0 12.407-38.19\" ></path></symbol><symbol id=\"authing-yuyan\" viewBox=\"0 0 1024 1024\"><path d=\"M960 511.616A447.808 447.808 0 0 0 512 64C264.576 64 64 264.384 64 511.616a447.808 447.808 0 0 0 392.32 444.16 224.384 224.384 0 0 0 60.352 3.456A447.744 447.744 0 0 0 960 511.616z m-64 6.4a437.952 437.952 0 0 0-8.768-65.472c0.384-7.616 0.512-14.784 0.256-21.504 5.696 26.496 8.512 53.504 8.512 80.64v6.272z m-768-6.4c0-26.56 2.752-53.12 8.192-79.104 16.576 17.728 55.68 17.28 65.216-9.216 17.024 10.176 39.936 12.032 39.936 32.32 0 67.072 2.432 138.944 63.36 140.032 1.664 0 33.92 12.224 49.28 52.096 5.312 13.76 26.304 0 49.344 0 11.52 0 0 19.328 0 61.184 0 41.92 89.92 105.984 89.92 105.984-0.384 27.584 0.768 49.92 3.008 67.712a150.912 150.912 0 0 0-50.816 6.848A383.68 383.68 0 0 1 128 511.616z m478.592 371.968c-2.048-9.728-10.752-15.04-26.624-10.88 12.672-54.016 18.816-84.288 45.312-107.2 38.272-33.216 4.48-70.144-24.576-65.792-23.04 3.456-8.448-28.416-29.056-30.208-20.544-1.728-47.232-42.432-76.736-56.512-15.616-7.424-30.976-27.328-55.104-28.16-21.376-0.832-52.672 18.048-52.672 3.456 0-46.912-4.8-80.448-5.76-93.76-0.768-10.752-7.04-3.648 21.888-2.944 15.744 0.384 8.064-31.616 23.616-32.832 15.296-1.28 51.712 14.272 60.992 8.128 8.64-5.76 63.36 143.744 63.36 24.704 0-14.08-7.296-38.72 0-52.096 28.992-52.864 56.064-95.936 53.632-102.208-1.344-3.584-29.568-6.464-52.16 1.088-7.68 2.56 2.432 14.464-8.512 17.024-41.024 9.472-77.248-11.072-64.64-30.336 13.056-19.84 60.16-8.64 64.256-48.256 2.368-22.72 4.352-49.088 5.632-68.608 55.232 8.64 49.152-71.616-32.896-80.192a384.128 384.128 0 0 1 358.272 257.92 15.552 15.552 0 0 0-9.152-4.16c-24.832-62.016-84.992-17.152-64.64 37.504-109.44 84.16-81.408 142.784-45.44 176.384 18.944 17.728 36.992 44.288 48.704 63.36-12.8 37.248 47.104 22.336 76.672-40.96a384.576 384.576 0 0 1-274.432 265.6z\" ></path></symbol><symbol id=\"authing-anzhuo\" viewBox=\"0 0 1024 1024\"><path d=\"M141.1 331.2c-35 0-63.3 28.3-63.3 63.2v264.7c0 34.9 28.4 63.2 63.3 63.2 35 0 63.3-28.3 63.3-63.2V394.4c0-34.9-28.3-63.2-63.3-63.2zM228.9 753.3c0 37.3 30.3 67.5 67.6 67.5h46.1v140c0 34.9 28.4 63.2 63.3 63.2 35 0 63.3-28.3 63.3-63.2v-140h85.5v140c0 34.9 28.4 63.2 63.3 63.2 35 0 63.3-28.3 63.3-63.2v-140h46.1c37.3 0 67.6-30.2 67.6-67.5V343.1H228.9v410.2zM651.8 93.4L696 13c2.4-4.2 0.8-9.6-3.5-11.9-4.2-2.3-9.6-0.8-11.9 3.5l-44.7 81.2C598.4 69.2 556.4 59.9 512 59.9c-44.4 0-86.4 9.3-123.9 25.8L343.4 4.6c-2.3-4.3-7.7-5.8-11.9-3.5-4.3 2.3-5.9 7.7-3.5 11.9l44.2 80.4c-86.8 44.8-145.5 130-145.5 227.7h570.5c0.1-97.8-58.6-182.9-145.4-227.7zM382.2 218c-13.2 0-23.9-10.7-23.9-23.9s10.7-23.9 23.9-23.9 23.9 10.7 23.9 23.9c-0.1 13.2-10.8 23.9-23.9 23.9z m259.7 0c-13.2 0-23.9-10.7-23.9-23.9s10.7-23.9 23.9-23.9 23.9 10.7 23.9 23.9c-0.1 13.2-10.8 23.9-23.9 23.9zM882.9 331.2c-35 0-63.3 28.3-63.3 63.2v264.7c0 34.9 28.4 63.2 63.3 63.2 35 0 63.3-28.3 63.3-63.2V394.4c0-34.9-28.3-63.2-63.3-63.2z\" ></path></symbol><symbol id=\"authing-lark-public\" viewBox=\"0 0 1024 1024\"><path d=\"M933.875 98.5625L726.53414917 322.64486695a6.61651612 6.61651612 0 0 0-1.64300537 5.81726073 40.54449463 40.54449463 0 0 1-68.92053223 36.37023927L490.72827148 530.02856445l16.29821778 218.30960083L692.5625 933.875z m0 0\" ></path><path d=\"M931.6098938 104.2026062l-205.12023926 221.68377685a6.61651612 6.61651612 0 0 0-1.64300537 5.86175538 39.96688843 39.96688843 0 0 1-68.21026612 35.92611694L494.23675537 530.07388305a3.28601074 3.28601074 0 0 0-0.93273925 2.53125l16.03125 214.40148927 413.61547851-623.97537232 8.88162232-18.74047852z m0 0\" ></path><path d=\"M925.48199463 90.16949463L701.39880372 297.46502685a6.61651612 6.61651612 0 0 1-5.86175538 1.68832398 40.54449463 40.54449463 0 0 0-36.32574462 68.92053222L493.97143555 533.31622315l-218.22143555-16.43005372L90.125 331.43667602z m0 0\" ></path><path d=\"M919.8427124 92.65625l-221.77359008 205.12023926a6.61651612 6.61651612 0 0 1-5.77276612 1.64300537 39.96688843 39.96688843 0 0 0-35.92611695 68.21026612L493.92611695 530.02938843a3.28601074 3.28601074 0 0 1-2.57574463 0.93273925l-214.40148927-16.03125L900.96875 101.31539917l18.74047852-8.88079834z m0 0\" ></path></symbol><symbol id=\"authing-lark-internal\" viewBox=\"0 0 1024 1024\"><path d=\"M933.875 98.5625L726.53414917 322.64486695a6.61651612 6.61651612 0 0 0-1.64300537 5.81726073 40.54449463 40.54449463 0 0 1-68.92053223 36.37023927L490.72827148 530.02856445l16.29821778 218.30960083L692.5625 933.875z m0 0\" ></path><path d=\"M931.6098938 104.2026062l-205.12023926 221.68377685a6.61651612 6.61651612 0 0 0-1.64300537 5.86175538 39.96688843 39.96688843 0 0 1-68.21026612 35.92611694L494.23675537 530.07388305a3.28601074 3.28601074 0 0 0-0.93273925 2.53125l16.03125 214.40148927 413.61547851-623.97537232 8.88162232-18.74047852z m0 0\" ></path><path d=\"M925.48199463 90.16949463L701.39880372 297.46502685a6.61651612 6.61651612 0 0 1-5.86175538 1.68832398 40.54449463 40.54449463 0 0 0-36.32574462 68.92053222L493.97143555 533.31622315l-218.22143555-16.43005372L90.125 331.43667602z m0 0\" ></path><path d=\"M919.8427124 92.65625l-221.77359008 205.12023926a6.61651612 6.61651612 0 0 1-5.77276612 1.64300537 39.96688843 39.96688843 0 0 0-35.92611695 68.21026612L493.92611695 530.02938843a3.28601074 3.28601074 0 0 1-2.57574463 0.93273925l-214.40148927-16.03125L900.96875 101.31539917l18.74047852-8.88079834z m0 0\" ></path></symbol><symbol id=\"authing-guanbi7-01copy_1\" viewBox=\"0 0 1024 1024\"><path d=\"M0.00007 512.306485a511.999485 511.999485 0 0 1 1023.99797-0.512v0.512a510.974486 510.974486 0 0 1-511.999485 511.691485C228.86384 1023.99797 0.00007 794.725201 0.00007 512.306485z m546.200451 0l178.89282-178.78982a23.244977 23.244977 0 0 0 0-33.075967l-1.126999-1.023999a23.244977 23.244977 0 0 0-33.176967 0L511.999555 478.514519l-178.78982-179.19982a23.244977 23.244977 0 0 0-33.177967 0l-1.023999 1.023999a23.244977 23.244977 0 0 0 0 33.074967l178.78982 179.199819-178.89282 178.789821a23.244977 23.244977 0 0 0 0 33.177966l1.126999 1.023999a23.244977 23.244977 0 0 0 33.176967 0L511.999555 547.12245 690.789375 725.80927a23.244977 23.244977 0 0 0 33.177967 0l1.023999-1.023999a23.244977 23.244977 0 0 0 0-33.176967l-178.78982-179.199819z\" ></path></symbol><symbol id=\"authing-guanbi\" viewBox=\"0 0 1024 1024\"><path d=\"M583.168 523.776L958.464 148.48c18.944-18.944 18.944-50.176 0-69.12l-2.048-2.048c-18.944-18.944-50.176-18.944-69.12 0L512 453.12 136.704 77.312c-18.944-18.944-50.176-18.944-69.12 0l-2.048 2.048c-19.456 18.944-19.456 50.176 0 69.12l375.296 375.296L65.536 899.072c-18.944 18.944-18.944 50.176 0 69.12l2.048 2.048c18.944 18.944 50.176 18.944 69.12 0L512 594.944 887.296 970.24c18.944 18.944 50.176 18.944 69.12 0l2.048-2.048c18.944-18.944 18.944-50.176 0-69.12L583.168 523.776z\" ></path></symbol><symbol id=\"authing-apple-web\" viewBox=\"0 0 1024 1024\"><path d=\"M797.3 656c24.6 34.8 52.8 57.3 84.6 67.5-13.8 42.6-35.7 87-65.7 133.2-46.2 69.6-91.8 104.4-136.8 104.4-16.8 0-41.7-5.7-74.7-17.1-30.6-11.4-57.3-17.1-80.1-17.1-22.8 0-48 6-75.6 18-28.8 11.4-52.5 17.1-71.1 17.1-54 0-107.1-45.9-159.3-137.7-52.2-90.6-78.3-179.7-78.3-267.3 0-81 19.8-147.3 59.4-198.9 40.8-51.6 91.2-77.4 151.2-77.4 13.2 0 27.9 1.65 44.1 4.95 16.2 3.3 33 9.45 50.4 18.45 18.6 10.2 33.9 17.25 45.9 21.15 12 3.9 21.3 5.85 27.9 5.85 7.8 0 19.8-1.8 36-5.4a166.088 166.088 0 0 0 48.6-19.8 366.113 366.113 0 0 1 45-21.6c12.6-4.8 25.5-7.2 38.7-7.2 42 0 79.8 11.4 113.4 34.2 18 12 36.3 29.7 54.9 53.1-27.6 24-47.7 45-60.3 63-23.4 33.6-35.1 70.2-35.1 109.8 0 43.8 12.3 83.4 36.9 118.8zM616.4 235.7c-21 19.8-40.2 32.7-57.6 38.7-6 1.8-13.65 3.45-22.95 4.95-9.3 1.5-19.95 2.85-31.95 4.05 0.6-52.8 14.4-98.4 41.4-136.8 27-38.4 71.4-64.8 133.2-79.2 1.2 6 2.1 10.2 2.7 12.6v9.9c0 21.6-5.1 45.9-15.3 72.9a221.625 221.625 0 0 1-49.5 72.9z\" ></path></symbol><symbol id=\"authing-google\" viewBox=\"0 0 1024 1024\"><path d=\"M1000 523.6c0 283-193.8 484.4-480 484.4-274.4 0-496-221.6-496-496S245.6 16 520 16c133.6 0 246 49 332.6 129.8l-135 129.8c-176.6-170.4-505-42.4-505 236.4 0 173 138.2 313.2 307.4 313.2 196.4 0 270-140.8 281.6-213.8H520V440.8h472.2c4.6 25.4 7.8 49.8 7.8 82.8z\" ></path></symbol><symbol id=\"authing-dingtalk\" viewBox=\"0 0 1024 1024\"><path d=\"M905.857912 382.800144a192.415957 192.415957 0 0 1-12.101998 31.649993h0.186l-0.744 1.257c-35.140992 76.657983-126.881972 226.998949-126.881971 226.998949s-0.093-0.373-0.466-0.93l-26.856994 47.567989h129.301971L621.375975 1024l56.039988-227.649949H575.715986l35.326992-150.525966a1436.834677 1436.834677 0 0 0-102.397977 29.789993s-54.130988 32.393993-155.923965-62.137986c0 0-68.699985-61.672986-28.857994-77.079982 16.941996-6.560999 82.197982-14.892997 133.53597-21.967996 69.444984-9.494998 112.172975-14.614997 112.172975-14.614996s-214.106952 3.257999-264.83994-4.886999c-50.732989-8.099998-115.104974-94.484979-128.834972-170.353962 0 0-21.223995-41.702991 45.65999-21.968995 66.838985 19.734996 343.499923 76.799983 343.499923 76.799983S205.267069 266.95017 181.250074 239.487176c-23.922995-27.459994-70.374984-149.732966-64.324985-224.901949 0 0 2.606999-18.757996 21.457995-13.729997 0 0 266.00294 123.946972 447.852899 191.762957 181.896959 67.815985 340.009924 102.398977 319.622929 190.181957z\" ></path></symbol><symbol id=\"authing-apple\" viewBox=\"0 0 1024 1024\"><path d=\"M797.3 656c24.6 34.8 52.8 57.3 84.6 67.5-13.8 42.6-35.7 87-65.7 133.2-46.2 69.6-91.8 104.4-136.8 104.4-16.8 0-41.7-5.7-74.7-17.1-30.6-11.4-57.3-17.1-80.1-17.1-22.8 0-48 6-75.6 18-28.8 11.4-52.5 17.1-71.1 17.1-54 0-107.1-45.9-159.3-137.7-52.2-90.6-78.3-179.7-78.3-267.3 0-81 19.8-147.3 59.4-198.9 40.8-51.6 91.2-77.4 151.2-77.4 13.2 0 27.9 1.65 44.1 4.95 16.2 3.3 33 9.45 50.4 18.45 18.6 10.2 33.9 17.25 45.9 21.15 12 3.9 21.3 5.85 27.9 5.85 7.8 0 19.8-1.8 36-5.4a166.088 166.088 0 0 0 48.6-19.8 366.113 366.113 0 0 1 45-21.6c12.6-4.8 25.5-7.2 38.7-7.2 42 0 79.8 11.4 113.4 34.2 18 12 36.3 29.7 54.9 53.1-27.6 24-47.7 45-60.3 63-23.4 33.6-35.1 70.2-35.1 109.8 0 43.8 12.3 83.4 36.9 118.8zM616.4 235.7c-21 19.8-40.2 32.7-57.6 38.7-6 1.8-13.65 3.45-22.95 4.95-9.3 1.5-19.95 2.85-31.95 4.05 0.6-52.8 14.4-98.4 41.4-136.8 27-38.4 71.4-64.8 133.2-79.2 1.2 6 2.1 10.2 2.7 12.6v9.9c0 21.6-5.1 45.9-15.3 72.9a221.625 221.625 0 0 1-49.5 72.9z\" ></path></symbol><symbol id=\"authing-alipay-web\" viewBox=\"0 0 1024 1024\"><path d=\"M427.154 210.262l-1.819 59.431H185.792v45.481h242.573v78.84H228.24v43.057l203.153-1.823 203.76-1.818-3.641 14.553c-9.094 35.177-47.907 129.173-55.183 132.196-4.244 1.216-33.961-5.458-67.316-15.16-101.276-30.924-151.61-40.023-220.136-40.023-69.74 0.603-115.217 13.342-158.886 44.27-84.897 60.647-91.57 179.506-12.735 245.602 83.687 70.348 220.739 77.017 345.06 16.375 44.267-21.225 123.71-78.84 150.39-108.553l10.922-12.736 34.57 16.98c34.568 17.586 248.03 116.437 284.413 131.598l19.403 8.49V711.17l-52.762-13.95c-47.907-12.74-170.406-50.94-209.826-66.105l-15.16-6.066 20.012-41.238c21.231-42.444 63.68-162.522 63.68-180.108 0-8.491-12.128-9.702-106.128-9.702H555.71v-78.827h254.704v-40.022c0-1.817-57.614-3.032-127.353-2.425l-127.347 0.602V151.437H428.967l-1.813 58.825z m-23.657 395.392c31.535 10.922 73.382 27.896 92.786 38.206l35.167 18.805-19.404 24.255c-10.913 13.342-35.775 36.387-56.399 51.548-69.133 51.542-133.41 71.553-215.887 66.703-86.112-4.852-132.201-40.023-137.66-105.517-3.64-40.63 5.459-63.675 33.359-84.901 35.172-26.685 63.67-32.742 141.296-30.924 59.431 1.814 78.232 5.449 126.742 21.825z\" ></path></symbol><symbol id=\"authing-wechat-miniprogram-app-launch\" viewBox=\"0 0 1126 1024\"><path d=\"M961.876 262.606C900.851 134.702 747.238 80.676 619.77 141.425c-69.45 33.34-113.232 90.332-130.04 168.839-15.583 71.308-6.328 150.685 2.926 211.869 12.22 78.071 12.656 135.459 1.7 176.393-9.69 36.306-29.464 59.957-61.46 75.54a135.814 135.814 0 0 1-104.372 5.102 137.634 137.634 0 0 1-77.835-69.647 136.764 136.764 0 0 1 64.388-181.93c14.317-7.12 25.668-19.38 30.73-34.607 5.023-15.187 4.628-31.244-2.136-45.996a60.511 60.511 0 0 0-34.487-30.81 61.54 61.54 0 0 0-45.878 2.136 256.284 256.284 0 0 0-131.86 145.98 257.233 257.233 0 0 0 10.284 196.72 256.403 256.403 0 0 0 231.802 146.494 263.007 263.007 0 0 0 110.265-24.916c69.41-33.341 113.192-89.462 130.04-167.97 15.149-70.913 6.328-150.29-2.966-210.603-12.22-78.942-12.656-136.764-1.701-177.698 9.69-36.307 29.465-60.354 62.292-75.54a136.962 136.962 0 0 1 182.205 64.585 136.764 136.764 0 0 1-64.387 181.93 60.511 60.511 0 0 0-28.16 80.167c6.724 14.753 19.34 25.708 34.053 30.81 15.148 5.063 31.166 4.628 45.877-2.135 127.51-62.45 181.378-216.101 120.786-343.531z\" ></path></symbol><symbol id=\"authing-qq\" viewBox=\"0 0 1024 1024\"><path d=\"M821.295 699.385a275.463 275.463 0 0 1-57.3 90.76c54.54 16.634 41.202 45.496 41.202 45.496 24.223 13.299 22.69 99.729-111.381 98.195-89.38-0.996-127.248-26.062-142.695-42.735-11.498 1.15-23.035 1.802-34.61 1.84-14.296 0-28.286-1.073-42.084-2.645-14.91 16.634-52.586 42.544-143.308 43.54-133.879 1.534-135.412-84.895-111.15-98.195 0 0-14.642-31.046 47.142-47.335a272.511 272.511 0 0 1-58.794-98.311c-56.035 99.537-83.057 33.575-79.033-42.66 3.604-67.687 63.241-144.61 78.726-163.43a60.98 60.98 0 0 1-4.6-22.804c0-16.482 6.593-31.506 17.363-42.775a44.844 44.844 0 0 1 20.045-46.223c-0.076-2.414-0.306-4.753-0.306-7.206 0-151.394 123.569-274.235 275.96-274.235 152.469 0 275.961 122.802 275.961 274.235 0 4.6-0.268 9.122-0.498 13.645 10.425 10.617 14.947 25.68 11.998 40.283 10.616 11.192 17.36 25.871 17.36 42.276 0 8.125-1.723 15.829-4.598 22.997 15.56 19.163 74.816 96.01 78.38 163.698 3.91 74.164-21.31 138.67-73.78 51.589z\" ></path></symbol><symbol id=\"authing-wechat-mobile\" viewBox=\"0 0 1239 1024\"><path d=\"M745.256 511.245c-21.665 0-43.385 20.373-43.385 45.595 0 20.373 21.72 40.96 43.385 40.96 32.553 0 55.835-20.587 55.835-40.96 0-25.222-23.282-45.595-55.835-45.595M602.705 298.9c34.115 0 55.78-22.097 55.78-55.08 0-34.655-21.665-55.027-55.78-55.027-32.499 0-63.488 20.372-63.488 54.973 0 33.091 30.99 55.08 63.488 55.08M440.05 756.574c-57.344 0-99.167-9.431-153.439-25.169l-156.456 80.196 44.948-135.222C65.051 597.747 0 498.58 0 377.479 0 163.57 198.333 0 440.05 0c213.8 0 404.427 128.97 441.56 311.458a211.106 211.106 0 0 0-41.822-4.743c-210.729 0-373.383 160.498-373.383 353.927 0 33.037 4.635 62.895 12.396 94.37-12.396 1.616-26.409 1.616-38.804 1.616m646.198 154.14L1117.13 1024l-117.76-67.638c-44.894 9.378-88.28 23.606-133.228 23.606-207.656 0-371.873-144.761-371.873-324.07 0-179.253 164.217-323.96 371.873-323.96 196.77 0 373.437 144.707 373.437 323.907 0 100.783-66.614 190.356-153.384 254.922M295.882 188.793c-32.498 0-66.614 20.372-66.614 54.973 0 33.091 34.116 55.08 66.614 55.08 30.99 0 55.781-21.989 55.781-55.026 0-34.655-24.791-55.027-55.78-55.027m692.6 322.452c-23.228 0-43.385 20.373-43.385 45.595 0 20.373 20.157 40.96 43.385 40.96 30.99 0 54.272-20.587 54.272-40.96 0-25.222-23.282-45.595-54.272-45.595\" ></path></symbol><symbol id=\"authing-baidu\" viewBox=\"0 0 1024 1024\"><path d=\"M204.8 537.876c104.422-22.429 90.196-147.185 86.967-174.501-5.149-42.066-54.545-115.55-121.658-109.746-84.48 7.593-96.873 129.6-96.873 129.6C61.891 439.695 100.64 560.262 204.8 537.876zM315.636 754.75c-3.141 8.858-9.861 31.244-4.058 50.75 11.607 43.766 49.658 45.774 49.658 45.774h54.677V717.658H357.44c-26.27 7.855-39.01 28.407-41.847 37.091z m82.779-426.022c57.774 0 104.29-66.37 104.29-148.407C502.705 98.327 456.19 32 398.415 32c-57.47 0-104.16 66.37-104.16 148.32 0 82.036 46.69 148.364 104.29 148.364z m248.334 9.731c77.062 10.037 126.676-72.262 136.407-134.618 10.037-62.138-39.665-134.53-94.21-146.924-54.633-12.523-122.88 75.055-129.077 132.131-7.418 69.818 9.95 139.462 86.88 149.411zM835.564 704.83s-119.259-92.247-188.815-191.913c-94.254-147.01-228.349-87.185-273.164-12.48-44.64 74.75-114.196 122.095-124.014 134.531-10.036 12.393-144 84.655-114.327 216.742 29.76 132 134.269 129.6 134.269 129.6s76.974 7.55 166.342-12.393c89.323-19.898 166.21 4.975 166.21 4.975s208.67 69.818 265.746-64.713C924.8 774.56 835.564 704.83 835.564 704.83zM478.487 905.076H342.865c-58.56-11.738-81.905-51.665-84.916-58.472-2.924-6.982-19.505-39.142-10.69-93.819 25.308-81.905 97.483-87.796 97.483-87.796h72.218v-88.844l61.484 0.96 0.087 327.928z m252.742-0.96H575.011c-60.524-15.534-63.316-58.56-63.316-58.56V672.844l63.36-1.004v155.127c3.84 16.495 24.436 19.637 24.436 19.637h64.32v-173.76h67.418v231.272z m220.975-461.018c0-29.847-24.742-119.65-116.64-119.65-92.073 0-104.335 84.741-104.335 144.654 0 57.163 4.887 137.062 119.127 134.443 114.415-2.443 101.848-129.469 101.848-159.447z\" ></path></symbol><symbol id=\"authing-wechat-pc\" viewBox=\"0 0 1239 1024\"><path d=\"M727.677 511.336c-19.042 0-38.132 17.906-38.132 40.074 0 17.906 19.09 36 38.132 36 28.61 0 49.074-18.094 49.074-36 0-22.168-20.463-40.074-49.074-40.074m-125.29-186.63c29.985 0 49.026-19.422 49.026-48.411 0-30.459-19.041-48.364-49.025-48.364-28.564 0-55.8 17.905-55.8 48.316 0 29.084 27.237 48.41 55.8 48.41m-142.959 402.3c-50.4 0-87.158-8.288-134.858-22.12L187.06 775.32l39.505-118.847c-96.726-69.11-153.9-156.269-153.9-262.705C72.667 205.763 246.984 62 459.43 62c187.91 0 355.454 113.353 388.09 273.742a185.542 185.542 0 0 0-36.757-4.168c-185.211 0-328.17 141.062-328.17 311.068 0 29.037 4.075 55.28 10.896 82.943-10.895 1.42-23.211 1.42-34.105 1.42M1027.33 862.48l27.19 99.52-103.5-59.447c-39.458 8.242-77.59 20.747-117.096 20.747-182.51 0-326.841-127.231-326.841-284.827 0-157.547 144.331-284.73 326.841-284.73 172.943 0 328.216 127.183 328.216 284.683 0 88.58-58.547 167.305-134.81 224.053M332.72 227.93c-28.563 0-58.548 17.905-58.548 48.316 0 29.084 29.985 48.41 58.547 48.41 27.238 0 49.026-19.326 49.026-48.362 0-30.459-21.788-48.364-49.025-48.364m608.73 283.405c-20.415 0-38.13 17.906-38.13 40.074 0 17.906 17.715 36 38.13 36 27.238 0 47.7-18.094 47.7-36 0-22.168-20.462-40.074-47.7-40.074\" ></path></symbol><symbol id=\"authing-wechat-miniprogram-qrconnec\" viewBox=\"0 0 1126 1024\"><path d=\"M961.876 262.606C900.851 134.702 747.238 80.676 619.77 141.425c-69.45 33.34-113.232 90.332-130.04 168.839-15.583 71.308-6.328 150.685 2.926 211.869 12.22 78.071 12.656 135.459 1.7 176.393-9.69 36.306-29.464 59.957-61.46 75.54a135.814 135.814 0 0 1-104.372 5.102 137.634 137.634 0 0 1-77.835-69.647 136.764 136.764 0 0 1 64.388-181.93c14.317-7.12 25.668-19.38 30.73-34.607 5.023-15.187 4.628-31.244-2.136-45.996a60.511 60.511 0 0 0-34.487-30.81 61.54 61.54 0 0 0-45.878 2.136 256.284 256.284 0 0 0-131.86 145.98 257.233 257.233 0 0 0 10.284 196.72 256.403 256.403 0 0 0 231.802 146.494 263.007 263.007 0 0 0 110.265-24.916c69.41-33.341 113.192-89.462 130.04-167.97 15.149-70.913 6.328-150.29-2.966-210.603-12.22-78.942-12.656-136.764-1.701-177.698 9.69-36.307 29.465-60.354 62.292-75.54a136.962 136.962 0 0 1 182.205 64.585 136.764 136.764 0 0 1-64.387 181.93 60.511 60.511 0 0 0-28.16 80.167c6.724 14.753 19.34 25.708 34.053 30.81 15.148 5.063 31.166 4.628 45.877-2.135 127.51-62.45 181.378-216.101 120.786-343.531z\" ></path></symbol><symbol id=\"authing-wechat-webpage-authorization\" viewBox=\"0 0 1188 1024\"><path d=\"M512 1.896C229.452 1.896 0 229.452 0 512s229.452 510.104 512 510.104S1022.104 794.548 1022.104 512 794.548 1.896 512 1.896z m-91.022 629.57c-26.548 0-49.304-5.688-75.852-11.377l-75.852 37.926 22.756-66.37c-54.993-37.926-87.23-87.23-87.23-147.912 0-104.296 98.607-185.837 218.074-185.837 108.089 0 201.007 64.474 219.97 153.6-7.585 0-13.274-1.896-20.859-1.896-104.296 0-185.837 77.748-185.837 172.563 0 15.17 1.896 30.34 7.585 45.511-7.585 3.793-15.17 3.793-22.755 3.793z m322.37 77.749l17.067 54.992-58.785-34.133c-22.756 5.689-43.615 11.378-66.37 11.378-104.297 0-185.838-70.163-185.838-157.393S530.963 424.77 635.26 424.77c98.608 0 185.837 70.163 185.837 159.29 0 47.407-32.237 91.021-77.748 125.155z\" fill=\"#46BB36\" ></path><path d=\"M318.578 379.26c0 17.066 13.274 30.34 30.34 30.34s30.341-13.274 30.341-30.34-13.274-30.341-30.34-30.341-30.341 13.274-30.341 30.34z m235.14 159.288c0 13.274 11.378 24.652 24.652 24.652 13.274 0 24.652-11.378 24.652-24.652 0-13.274-11.378-24.652-24.652-24.652-13.274-1.896-24.651 9.482-24.651 24.652z m-81.54-159.289c0 17.067 13.274 30.341 30.34 30.341 17.067 0 30.341-13.274 30.341-30.34 0-17.067-13.274-30.341-30.34-30.341-17.067 0-30.341 13.274-30.341 30.34zM675.08 538.55c0 13.273 11.378 24.651 24.652 24.651 13.274 0 24.652-11.378 24.652-24.652 0-13.274-11.378-24.652-24.652-24.652-13.274-1.896-24.652 9.482-24.652 24.652z\" fill=\"#46BB36\" ></path></symbol><symbol id=\"authing-wechat-miniprogram-default\" viewBox=\"0 0 1126 1024\"><path d=\"M961.876 262.606C900.851 134.702 747.238 80.676 619.77 141.425c-69.45 33.34-113.232 90.332-130.04 168.839-15.583 71.308-6.328 150.685 2.926 211.869 12.22 78.071 12.656 135.459 1.7 176.393-9.69 36.306-29.464 59.957-61.46 75.54a135.814 135.814 0 0 1-104.372 5.102 137.634 137.634 0 0 1-77.835-69.647 136.764 136.764 0 0 1 64.388-181.93c14.317-7.12 25.668-19.38 30.73-34.607 5.023-15.187 4.628-31.244-2.136-45.996a60.511 60.511 0 0 0-34.487-30.81 61.54 61.54 0 0 0-45.878 2.136 256.284 256.284 0 0 0-131.86 145.98 257.233 257.233 0 0 0 10.284 196.72 256.403 256.403 0 0 0 231.802 146.494 263.007 263.007 0 0 0 110.265-24.916c69.41-33.341 113.192-89.462 130.04-167.97 15.149-70.913 6.328-150.29-2.966-210.603-12.22-78.942-12.656-136.764-1.701-177.698 9.69-36.307 29.465-60.354 62.292-75.54a136.962 136.962 0 0 1 182.205 64.585 136.764 136.764 0 0 1-64.387 181.93 60.511 60.511 0 0 0-28.16 80.167c6.724 14.753 19.34 25.708 34.053 30.81 15.148 5.063 31.166 4.628 45.877-2.135 127.51-62.45 181.378-216.101 120.786-343.531z\" ></path></symbol><symbol id=\"authing-wechatwork-service-provider-authorization\" viewBox=\"0 0 1182 1024\"><path d=\"M993.598 913.02a7.062 7.062 0 0 1 4.908 2.224c15.678 17.761 37.252 31.073 59.816 35.505 15.713 3.354 26.482 18.873 26.482 36.634 0 19.968-14.706 36.617-32.362 36.617-16.666 0-30.402-14.424-32.361-32.185-4.909-25.53-15.714-47.722-30.42-65.466-0.971-1.112-1.942-3.337-2.931-5.561 0-4.432 2.93-7.768 6.868-7.768zM1024 0a105.931 105.931 0 0 1 105.931 105.949v453.42h-70.62V247.172H70.46v670.88h452.026v70.638H32.84C15.572 988.69 0.829 975.448 0 958.27v-857.9C2.79 44.19 49.346 0.053 105.843 0zM812.138 512c136.651 0 247.172 97.774 247.172 219.224h-60.804c0-101.888-85.663-162.286-182.22-163.045-117.565-0.918-189.686 76.182-193.553 157.184-2.471 51.412 16.42 92.495 61.617 127.47 5.032 4.131 4.184 17.479 3.178 23.658l-2.684 37.34s1.006 0 2.013-1.023l49.982-25.141a16.455 16.455 0 0 1 12.058-1.042c22.104 6.18 37.676 5.509 60.787 5.509 24.117 0 46.857-2.066 64.23-8.087l15.589 55.085a288.662 288.662 0 0 1-78.371 11.317c-25.124 0-49.24-3.09-72.334-9.27l-53.265 26.766c-5.014 2.065-12.059 3.09-18.08 3.09-6.037 0-12.058-2.066-17.09-5.138-10.045-7.221-15.06-19.562-14.053-34.993v-1.041l5.014-42.196c-49.222-40.148-76.358-97.775-76.358-157.484C564.966 609.792 675.486 512 812.138 512z m338.397 330.399c17.655 0 32.362 16.649 32.362 36.634 0 18.856-12.747 34.393-28.443 36.617-22.563 5.544-42.178 17.761-57.874 34.41a21.186 21.186 0 0 1-4.908 3.32c-3.92 0-6.868-3.32-6.868-7.769 0-2.225 0.99-4.431 1.978-5.544 15.678-17.76 27.454-42.178 31.373-67.707 2.948-17.744 16.684-29.961 32.38-29.961z m-141.242-30.261c3.92 0 6.868 3.337 6.868 7.768a9.075 9.075 0 0 1-1.977 5.544c-15.678 17.761-27.454 42.178-31.374 67.708-2.948 17.743-16.684 29.96-32.38 29.96-17.654 0-32.361-16.648-32.361-36.634 0-18.856 12.747-34.392 28.442-36.617 22.564-5.544 42.179-17.743 57.874-34.392 0.971-1.113 2.93-2.225 4.908-3.337z m39.23-70.62c16.667 0 30.402 14.424 32.362 32.185 4.908 25.511 15.713 47.722 30.42 65.465 1.942 1.112 1.942 3.337 2.93 5.561 0 4.432-2.93 7.769-6.867 7.769a7.062 7.062 0 0 1-4.908-2.225c-15.696-17.761-37.253-31.073-59.816-35.504-15.713-3.355-26.483-18.874-26.483-36.635 0-19.968 14.707-36.617 32.362-36.617zM511.912 70.584a53.177 53.177 0 0 0-37.5 15.537 53 53 0 0 0 17.426 86.422 53.407 53.407 0 0 0 58.05-11.582 52.824 52.824 0 0 0 11.388-57.838 53.23 53.23 0 0 0-49.364-32.539z m-176.605 0a53.177 53.177 0 0 0-37.5 15.537 53 53 0 0 0 17.426 86.422 53.407 53.407 0 0 0 58.05-11.582 52.824 52.824 0 0 0 11.388-57.838 53.23 53.23 0 0 0-49.364-32.539z m-176.499 0a53.177 53.177 0 0 0-37.5 15.537 53 53 0 0 0 17.426 86.422 53.407 53.407 0 0 0 58.05-11.582 52.824 52.824 0 0 0 11.388-57.838 53.23 53.23 0 0 0-49.364-32.539z\" ></path></symbol><symbol id=\"authing-wechatwork-corp-qrconnect\" viewBox=\"0 0 1220 1024\"><path d=\"M1077.17 663.237c-29.54-34.659-51.2-77.982-61.047-127.803-3.938-34.659-31.508-62.819-64.985-62.819-35.446 0-64.984 32.493-64.984 71.483 0 34.659 21.661 64.985 53.17 71.484 45.291 8.664 88.614 34.658 120.122 69.316 1.97 2.167 5.908 4.333 9.846 4.333 7.877 0 13.785-6.499 13.785-15.163-1.97-4.333-1.97-8.665-5.908-10.831z m-194.955-26.782c1.97-2.166 3.939-6.498 3.939-10.83 0-8.665-5.908-15.163-13.785-15.163-3.938 2.166-7.877 4.332-9.846 6.498-31.508 32.492-70.892 56.32-116.185 67.15-31.507 4.333-57.107 34.66-57.107 71.484 0 38.99 29.538 71.483 64.984 71.483 31.508 0 59.077-23.828 64.985-58.486 7.877-49.822 31.508-97.477 63.015-132.136z m165.416 243.2c31.507-32.492 70.892-56.32 116.184-67.15 31.508-4.333 57.108-34.659 57.108-71.483 0-38.991-29.538-71.484-64.985-71.484-31.507 0-59.076 23.828-64.984 58.487-7.877 49.821-31.508 97.477-63.016 132.135-1.969 2.166-3.938 6.498-3.938 10.83 0 8.665 5.908 15.164 13.785 15.164 3.938-2.166 7.877-4.332 9.846-6.499z m-76.8 1.379c-45.293-8.665-88.616-34.659-120.123-69.317a14.375 14.375 0 0 0-9.846-4.332c-7.877 0-13.785 6.498-13.785 15.163 1.97 4.332 3.938 8.664 5.908 10.83 29.538 34.659 51.2 77.982 61.046 127.804 3.938 34.658 31.507 62.818 64.984 62.818 35.447 0 64.985-32.492 64.985-71.483 0-34.659-21.662-64.985-53.17-71.483z\" ></path><path d=\"M243.554 810.2s2.048 0 4.096-2.067l101.534-50.708c8.172-4.135 16.345-4.135 24.497-2.067 44.899 12.445 76.544 11.106 123.49 11.106 48.995 0 95.174-4.155 130.502-16.325l31.665 111.065c-51.043 14.533-106.142 22.843-159.232 22.843a571.077 571.077 0 0 1-146.964-18.688l-108.19 53.957c-10.2 4.135-24.497 6.222-36.745 6.222-12.249 0-24.497-4.135-34.698-10.377-20.421-14.514-30.622-39.424-28.574-70.558v-2.068l10.201-85.07C55.099 676.51 0 560.285 0 439.926 0 197.12 224.551 0 502.154 0c277.622 0 502.154 197.14 502.154 442.014h-123.55c0-205.43-174.001-327.208-370.196-328.744-238.808-1.85-385.378 153.6-393.216 316.948-4.982 103.62 33.36 186.466 125.224 257.024 10.2 8.31 8.468 35.19 6.44 47.655\" ></path></symbol><symbol id=\"authing-wechatwork-service-provider-qrconnect\" viewBox=\"0 0 1220 1024\"><path d=\"M1077.17 663.237c-29.54-34.659-51.2-77.982-61.047-127.803-3.938-34.659-31.508-62.819-64.985-62.819-35.446 0-64.984 32.493-64.984 71.483 0 34.659 21.661 64.985 53.17 71.484 45.291 8.664 88.614 34.658 120.122 69.316 1.97 2.167 5.908 4.333 9.846 4.333 7.877 0 13.785-6.499 13.785-15.163-1.97-4.333-1.97-8.665-5.908-10.831z m-194.955-26.782c1.97-2.166 3.939-6.498 3.939-10.83 0-8.665-5.908-15.163-13.785-15.163-3.938 2.166-7.877 4.332-9.846 6.498-31.508 32.492-70.892 56.32-116.185 67.15-31.507 4.333-57.107 34.66-57.107 71.484 0 38.99 29.538 71.483 64.984 71.483 31.508 0 59.077-23.828 64.985-58.486 7.877-49.822 31.508-97.477 63.015-132.136z m165.416 243.2c31.507-32.492 70.892-56.32 116.184-67.15 31.508-4.333 57.108-34.659 57.108-71.483 0-38.991-29.538-71.484-64.985-71.484-31.507 0-59.076 23.828-64.984 58.487-7.877 49.821-31.508 97.477-63.016 132.135-1.969 2.166-3.938 6.498-3.938 10.83 0 8.665 5.908 15.164 13.785 15.164 3.938-2.166 7.877-4.332 9.846-6.499z m-76.8 1.379c-45.293-8.665-88.616-34.659-120.123-69.317a14.375 14.375 0 0 0-9.846-4.332c-7.877 0-13.785 6.498-13.785 15.163 1.97 4.332 3.938 8.664 5.908 10.83 29.538 34.659 51.2 77.982 61.046 127.804 3.938 34.658 31.507 62.818 64.984 62.818 35.447 0 64.985-32.492 64.985-71.483 0-34.659-21.662-64.985-53.17-71.483z\" ></path><path d=\"M243.554 810.2s2.048 0 4.096-2.067l101.534-50.708c8.172-4.135 16.345-4.135 24.497-2.067 44.899 12.445 76.544 11.106 123.49 11.106 48.995 0 95.174-4.155 130.502-16.325l31.665 111.065c-51.043 14.533-106.142 22.843-159.232 22.843a571.077 571.077 0 0 1-146.964-18.688l-108.19 53.957c-10.2 4.135-24.497 6.222-36.745 6.222-12.249 0-24.497-4.135-34.698-10.377-20.421-14.514-30.622-39.424-28.574-70.558v-2.068l10.201-85.07C55.099 676.51 0 560.285 0 439.926 0 197.12 224.551 0 502.154 0c277.622 0 502.154 197.14 502.154 442.014h-123.55c0-205.43-174.001-327.208-370.196-328.744-238.808-1.85-385.378 153.6-393.216 316.948-4.982 103.62 33.36 186.466 125.224 257.024 10.2 8.31 8.468 35.19 6.44 47.655\" ></path></symbol><symbol id=\"authing-weibo\" viewBox=\"0 0 1185 1024\"><path d=\"M891.75 466.973c-17.137-5.012-29.37-7.545-19.616-30.019 19.616-47.477 19.616-90 0-120.017-39.18-57.503-144.538-54.97-264.61-2.48 0 0-39.125 17.517-29.37-12.502 19.615-59.982 17.19-109.992-12.234-140.01-66.127-67.473-240.089 2.532-389.532 154.992C63.7 431.942 0 551.96 0 656.996c0 199.94 252.322 322.49 497.314 322.49 323.354 0 536.55-192.503 538.975-347.496 0-92.533-75.934-142.545-144.539-165.017zM499.794 907C303.79 926.941 134.73 836.94 122.497 704.474c-14.714-129.987 134.73-252.484 330.735-272.532 196.005-19.939 365.01 70.06 377.243 202.527 14.712 129.987-134.73 252.484-330.68 272.532z m19.563-375.034c-93.072-25.005-198.43 22.527-240.088 107.515-41.605 87.52 0 182.478 93.125 212.496 97.975 32.497 213.142-17.515 252.322-109.995 39.179-92.53-9.81-185.01-105.359-210.016z m-70.976 219.987c-19.616 30.018-61.22 45-90.645 30.018-29.372-14.982-39.18-50.012-19.617-82.455 19.616-30.07 58.796-42.574 88.22-30.07 29.372 15.034 39.18 50.01 22.042 82.507z m63.7-82.455c-7.329 12.45-22.095 17.461-34.275 12.45-12.287-4.958-17.192-17.462-9.809-29.964 4.85-12.503 19.564-17.515 31.797-12.503 12.288 5.011 17.191 17.515 12.288 29.964z m431.137-327.555a83.964 83.964 0 0 0-14.66-74.963c-19.616-19.994-46.562-30.019-71.029-22.527-22.096 5.012-41.658-9.97-46.563-30.018a40.258 40.258 0 0 1 29.426-47.479c51.412-10.023 107.783 5.012 144.537 47.479a157.904 157.904 0 0 1 31.797 152.514c-7.33 19.994-29.372 32.497-48.988 25.006-19.563-5.012-31.796-27.485-24.466-50.012z m227.908 75.018a44.838 44.838 0 0 1-56.37 30.019c-24.521-7.546-36.755-35.032-29.426-57.504a226.13 226.13 0 0 0-46.508-222.52c-56.372-62.515-137.21-87.52-213.144-70.006a45.108 45.108 0 0 1-53.892-35.029c-4.904-24.952 9.754-49.958 34.276-54.97a312.789 312.789 0 0 1 298.884 97.544c78.413 87.467 98.03 207.485 66.18 312.466z\" ></path></symbol><symbol id=\"authing-github\" viewBox=\"0 0 1024 1024\"><path d=\"M51.57 672.155c3.72-6.605 52.236-29.956 126.057 57.307 0.186 0 0.465 0.14 0.79 0.419 5.21 4.326 29.538 39.26 43.307 51.865 58.935 53.307 147.083 12.001 157.13 6.047 4.652-38.282 19.025-68.378 43.027-90.52a290.072 290.072 0 0 1-64.052-10.047 203.832 203.832 0 0 1-61.029-18.048 168.852 168.852 0 0 1-58.052-29.165c-17.35-9.35-33.677-23.444-49.027-42.237a205.367 205.367 0 0 1-40.004-58.284c-10.698-20.095-19.071-45.911-25.072-77.356-6-28.84-8.977-62.005-8.977-99.543 0-68.983 22.979-129.64 69.076-181.924-2.745-5.395-33.026-77.17 7.907-179.969 55.447-1.954 115.173 23.49 185.226 68.332A925.198 925.198 0 0 1 547.008 46.89c56.936 1.907 113.592 9.303 169.132 22.142C739.49 54.984 821.637-1.3 900.249 2.747c37.678 89.45 11.024 170.154 6.977 178.9 46.05 46.236 69.076 104.846 69.076 175.875v6.047c0.326 5.024 0.512 10.094 0.512 15.118 0 27.77-3.163 55.958-9.536 84.473a349.24 349.24 0 0 1-25.025 77.402 282.816 282.816 0 0 1-39.027 57.26 367.242 367.242 0 0 1-49.028 41.26c-18.42 10.56-37.445 20.002-57.074 28.142a1890.865 1890.865 0 0 1-61.076 18.048 1650.986 1650.986 0 0 0-64.052 10.048c30.05 25.49 45.4 66.982 46.05 124.662a3242.148 3242.148 0 0 0-0.464 55.54c0 19.583 0.186 40.282 0.465 62.052-0.651 21.444-0.93 37.724-0.93 48.795 0 11.07 0.279 16.931 0.93 17.536a677.27 677.27 0 0 1-159.084 20.048h-14.978c-54.424 0-107.452-6.651-159.177-20.14-0.698-0.652-0.977-39.214-0.977-115.546-20.7 4.652-157.037 31.538-217.508-69.913-19.304-30.05-35.351-103.405-100.753-136.152-6.93 18.048-28.84 2.652-14-10.047z\" ></path></symbol></svg>";
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/LoginLayout/index' {
|
|
345
|
-
/// <reference types="react" />
|
|
346
|
-
import './style.less';
|
|
347
|
-
export const LoginLayout: () => JSX.Element;
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/MfaLayout/Steps' {
|
|
351
|
-
export enum Steps {
|
|
352
|
-
Verify = 0,
|
|
353
|
-
Reset = 1
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/MfaLayout/index' {
|
|
358
|
-
import { FC } from 'react';
|
|
359
|
-
import './style.less';
|
|
360
|
-
export interface MfaLayoutProps {
|
|
361
|
-
}
|
|
362
|
-
export const MfaLayout: FC<MfaLayoutProps>;
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/RegisterLayout/index' {
|
|
366
|
-
import { FC } from 'react';
|
|
367
|
-
export const RegisterLayout: FC;
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/ResetPwdLayout/index' {
|
|
371
|
-
/// <reference types="react" />
|
|
372
|
-
export const ResetPwdLayout: () => JSX.Element;
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/index' {
|
|
376
|
-
import { FC } from 'react';
|
|
377
|
-
export const ToggleLang: FC;
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
|
|
381
|
-
import { Lang, LoginMethods, Protocol, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
382
|
-
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
383
|
-
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
384
|
-
export enum ApplicationMfaType {
|
|
385
|
-
SMS = "SMS",
|
|
386
|
-
EMAIL = "EMAIL"
|
|
387
|
-
}
|
|
388
|
-
export const ApplicationMfaTypeLabel: () => Record<ApplicationMfaType, string>;
|
|
389
|
-
export type QrcodeTabsSettings = Record<LoginMethods, Array<{
|
|
390
|
-
id: string;
|
|
391
|
-
title: string;
|
|
392
|
-
isDefault?: boolean;
|
|
393
|
-
}>>;
|
|
394
|
-
export interface OidcClientMetadata {
|
|
395
|
-
grant_types: string[];
|
|
396
|
-
client_id: string;
|
|
397
|
-
redirect_uris: string[];
|
|
398
|
-
scope: string;
|
|
399
|
-
response_types: ResponseType[];
|
|
400
|
-
}
|
|
401
|
-
export interface InternalExtendsField {
|
|
402
|
-
type: 'internal';
|
|
403
|
-
name: string;
|
|
404
|
-
label: string;
|
|
405
|
-
inputType: string;
|
|
406
|
-
required: boolean;
|
|
407
|
-
validateRules: any[];
|
|
408
|
-
}
|
|
409
|
-
export interface UserExtendsField {
|
|
410
|
-
type: 'user';
|
|
411
|
-
id: string;
|
|
412
|
-
name: string;
|
|
413
|
-
label: string;
|
|
414
|
-
inputType: string;
|
|
415
|
-
required: boolean;
|
|
416
|
-
validateRules: any[];
|
|
417
|
-
}
|
|
418
|
-
export type ExtendsField = InternalExtendsField | UserExtendsField;
|
|
419
|
-
export interface ApplicationPasswordTabConfig {
|
|
420
|
-
enabledLoginMethods?: PasswordLoginMethods[];
|
|
421
|
-
}
|
|
422
|
-
export interface ApplicationVerifyCodeTabConfig {
|
|
423
|
-
enabledLoginMethods: VerifyLoginMethods[];
|
|
424
|
-
}
|
|
425
|
-
export interface Agreement {
|
|
426
|
-
id: number;
|
|
427
|
-
title: string;
|
|
428
|
-
required: boolean;
|
|
429
|
-
lang: Lang;
|
|
430
|
-
availableAt?: number;
|
|
431
|
-
}
|
|
432
|
-
export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
|
|
433
|
-
export type VerifyLoginMethods = 'email-code' | 'phone-code';
|
|
434
|
-
export type ComplateFiledsPlace = 'register' | 'login';
|
|
435
|
-
export interface ApplicationConfig {
|
|
436
|
-
id: string;
|
|
437
|
-
allowedOrigins: string[];
|
|
438
|
-
corsWhitelist: string[];
|
|
439
|
-
cdnBase: string;
|
|
440
|
-
userPoolId: string;
|
|
441
|
-
rootUserPoolId: string;
|
|
442
|
-
publicKey: string;
|
|
443
|
-
internationalSmsConfig?: {
|
|
444
|
-
enabled: boolean;
|
|
445
|
-
defaultISOType: string;
|
|
446
|
-
};
|
|
447
|
-
css: string;
|
|
448
|
-
customLoading?: string;
|
|
449
|
-
name: string;
|
|
450
|
-
logo: string;
|
|
451
|
-
description?: string;
|
|
452
|
-
redirectUris: string[];
|
|
453
|
-
registerDisabled: boolean;
|
|
454
|
-
mergeAdAndAccountPasswordLogin: boolean;
|
|
455
|
-
registerTabs: {
|
|
456
|
-
list: string[];
|
|
457
|
-
default: string;
|
|
458
|
-
title: {
|
|
459
|
-
[x: string]: string;
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
registerTabsConfig: {
|
|
463
|
-
list: string[];
|
|
464
|
-
default: string;
|
|
465
|
-
title: {
|
|
466
|
-
[x: string]: string;
|
|
467
|
-
};
|
|
468
|
-
registerTypeConfig: {
|
|
469
|
-
emailRegisterType?: RegisterMethods[];
|
|
470
|
-
phoneRegisterType?: RegisterMethods[];
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
474
|
-
loginTabs: {
|
|
475
|
-
list: string[];
|
|
476
|
-
default: string;
|
|
477
|
-
defaultV2?: string;
|
|
478
|
-
title: {
|
|
479
|
-
[x: string]: string;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
socialConnections: SocialConnectionItem[];
|
|
483
|
-
complateFiledsPlace: ComplateFiledsPlace[];
|
|
484
|
-
extendsFieldsEnabled: boolean;
|
|
485
|
-
extendsFields: ExtendsField[];
|
|
486
|
-
identifier: string;
|
|
487
|
-
requestHostname: string;
|
|
488
|
-
identityProviders: {
|
|
489
|
-
identifier: string;
|
|
490
|
-
protocol: Protocol;
|
|
491
|
-
displayName: string;
|
|
492
|
-
logo: string;
|
|
493
|
-
config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
494
|
-
}[];
|
|
495
|
-
ssoPageComponentDisplay: {
|
|
496
|
-
autoRegisterThenLoginHintInfo: boolean;
|
|
497
|
-
forgetPasswordBtn: boolean;
|
|
498
|
-
idpBtns: boolean;
|
|
499
|
-
loginBtn: boolean;
|
|
500
|
-
loginByPhoneCodeTab: boolean;
|
|
501
|
-
loginByUserPasswordTab: boolean;
|
|
502
|
-
loginMethodNav: boolean;
|
|
503
|
-
phoneCodeInput: boolean;
|
|
504
|
-
registerBtn: boolean;
|
|
505
|
-
registerByEmailTab: boolean;
|
|
506
|
-
registerByPhoneTab: boolean;
|
|
507
|
-
registerMethodNav: boolean;
|
|
508
|
-
socialLoginBtns: boolean;
|
|
509
|
-
userPasswordInput: boolean;
|
|
510
|
-
wxMpScanTab: boolean;
|
|
511
|
-
};
|
|
512
|
-
protocol: Protocol;
|
|
513
|
-
oidcConfig: OidcClientMetadata;
|
|
514
|
-
passwordTabConfig: ApplicationPasswordTabConfig;
|
|
515
|
-
verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
|
|
516
|
-
agreementEnabled: boolean;
|
|
517
|
-
agreements: Agreement[];
|
|
518
|
-
customPasswordStrength: any;
|
|
519
|
-
passwordStrength: PasswordStrength;
|
|
520
|
-
verifyCodeLength: number;
|
|
521
|
-
websocket: string;
|
|
522
|
-
welcomeMessage: any;
|
|
523
|
-
skipComplateFileds: boolean;
|
|
524
|
-
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
525
|
-
}
|
|
526
|
-
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/api/index' {
|
|
530
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/api/sso';
|
|
531
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/api/appConfig';
|
|
532
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
533
|
-
|
|
534
|
-
}
|
|
535
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/api/sso' {
|
|
536
|
-
import { User } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
537
|
-
export interface SessionData {
|
|
538
|
-
session: null | {
|
|
539
|
-
_id: string;
|
|
540
|
-
cookie: {
|
|
541
|
-
originalMaxAge: number;
|
|
542
|
-
expires: Date;
|
|
543
|
-
secure: boolean;
|
|
544
|
-
httpOnly: boolean;
|
|
545
|
-
path: string;
|
|
546
|
-
sameSite: string;
|
|
547
|
-
};
|
|
548
|
-
appId?: string;
|
|
549
|
-
type: string;
|
|
550
|
-
userId: string;
|
|
551
|
-
};
|
|
552
|
-
userInfo?: User;
|
|
553
|
-
}
|
|
554
|
-
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<SessionData>>;
|
|
555
|
-
|
|
556
|
-
}
|
|
557
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig' {
|
|
558
|
-
import { Lang, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
559
|
-
import { SocialConnectionProvider } from 'authing-js-sdk';
|
|
560
|
-
export interface OIDCConnectionConfig {
|
|
561
|
-
issuerUrl: string;
|
|
562
|
-
authorizationEdpoint: string;
|
|
563
|
-
responseType: string;
|
|
564
|
-
mode: OIDCConnectionMode;
|
|
565
|
-
clientId: string;
|
|
566
|
-
clientSecret: string;
|
|
567
|
-
scopes: string;
|
|
568
|
-
redirectUri: string;
|
|
569
|
-
}
|
|
570
|
-
export interface IOAuthConnectionConfig {
|
|
571
|
-
authEndPoint: string;
|
|
572
|
-
tokenEndPoint: string;
|
|
573
|
-
scope: string;
|
|
574
|
-
clientId: string;
|
|
575
|
-
clientSecret: string;
|
|
576
|
-
authUrlTemplate: string;
|
|
577
|
-
codeToTokenScript: string;
|
|
578
|
-
tokenToUserInfoScript: string;
|
|
579
|
-
tokenToUserInfoScriptFuncId: string;
|
|
580
|
-
codeToTokenScriptFuncId: string;
|
|
581
|
-
authUrl?: string;
|
|
582
|
-
}
|
|
583
|
-
export interface IAzureAdConnectionConfig {
|
|
584
|
-
microsoftAzureAdDomain: string;
|
|
585
|
-
clientId: string;
|
|
586
|
-
syncUserProfileOnLogin: string;
|
|
587
|
-
emailVerifiedDefault: boolean;
|
|
588
|
-
authorizationUrl: string;
|
|
589
|
-
callbackUrl: string;
|
|
590
|
-
}
|
|
591
|
-
export enum OIDCConnectionMode {
|
|
592
|
-
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
593
|
-
BACK_CHANNEL = "BACK_CHANNEL"
|
|
594
|
-
}
|
|
595
|
-
export interface ISamlConnectionConfig {
|
|
596
|
-
signInEndPoint: string;
|
|
597
|
-
samlRequest?: string;
|
|
598
|
-
samlIdpCert: string;
|
|
599
|
-
samlSpCert: string;
|
|
600
|
-
samlSpKey: string;
|
|
601
|
-
signOutEndPoint: string;
|
|
602
|
-
signSamlRequest: boolean;
|
|
603
|
-
signatureAlgorithm: string;
|
|
604
|
-
digestAlgorithm: string;
|
|
605
|
-
protocolBinding: string;
|
|
606
|
-
}
|
|
607
|
-
export interface ICasConnectionConfig {
|
|
608
|
-
casConnectionLoginUrl: string;
|
|
609
|
-
}
|
|
610
|
-
export interface SocialConnectionItem {
|
|
611
|
-
name: string;
|
|
612
|
-
name_en: string;
|
|
613
|
-
displayName: string;
|
|
614
|
-
logo: string;
|
|
615
|
-
description: string;
|
|
616
|
-
identifier: string;
|
|
617
|
-
provider: SocialConnectionProvider;
|
|
618
|
-
authorizationUrl: string;
|
|
619
|
-
tooltip: Record<Lang, string>;
|
|
620
|
-
}
|
|
621
|
-
export interface EnterpriseConnectionItem {
|
|
622
|
-
id: string;
|
|
623
|
-
createdAt: Date;
|
|
624
|
-
updatedAt: Date;
|
|
625
|
-
userPoolId: string;
|
|
626
|
-
protocol: Protocol;
|
|
627
|
-
identifier: string;
|
|
628
|
-
displayName: string;
|
|
629
|
-
logo: string;
|
|
630
|
-
enabled: boolean;
|
|
631
|
-
config: OIDCConnectionConfig | ISamlConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
632
|
-
}
|
|
633
|
-
export interface UserPoolConfig {
|
|
634
|
-
name: string;
|
|
635
|
-
logo: string;
|
|
636
|
-
socialConnections: SocialConnectionItem[];
|
|
637
|
-
enterpriseConnections: EnterpriseConnectionItem[];
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
642
|
-
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
643
|
-
export const OTP_MFA_CODE = 1635;
|
|
644
|
-
export const APP_MFA_CODE = 1636;
|
|
645
|
-
export const NEED_CAPTCHA = 2000;
|
|
646
|
-
export const LOGIN_METHODS_MAP: () => {
|
|
647
|
-
password: string;
|
|
648
|
-
"phone-code": string;
|
|
649
|
-
"app-qrcode": string;
|
|
650
|
-
"wechat-miniprogram-qrcode": string;
|
|
651
|
-
ldap: string;
|
|
652
|
-
ad: string;
|
|
653
|
-
"wechatmp-qrcode": string;
|
|
654
|
-
};
|
|
655
|
-
export const REGISTER_METHODS_MAP: any;
|
|
656
|
-
export const HIDE_SOCIALS: string[];
|
|
657
|
-
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
658
|
-
export enum ApplicationMfaType {
|
|
659
|
-
SMS = "SMS",
|
|
660
|
-
EMAIL = "EMAIL"
|
|
661
|
-
}
|
|
662
|
-
export const defaultGuardConfig: Partial<UserConfig>;
|
|
663
|
-
export const defaultLocalesConfig: LocalesConfig;
|
|
664
|
-
export const defaultHeaders: {
|
|
665
|
-
'userpool-id': string;
|
|
666
|
-
'app-id': string;
|
|
667
|
-
'tenant-id': string;
|
|
668
|
-
'sdk-version': string;
|
|
669
|
-
'request-from': string;
|
|
670
|
-
lang: string;
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/hooks/index' {
|
|
675
|
-
import { AuthenticationClient, AuthenticationClientOptions } from 'authing-js-sdk';
|
|
676
|
-
export interface AuthClientConfig extends AuthenticationClientOptions {
|
|
677
|
-
/**
|
|
678
|
-
* @deprecated 使用 appHost
|
|
679
|
-
*/
|
|
680
|
-
appDomain?: string;
|
|
681
|
-
/**
|
|
682
|
-
* @deprecated 无需传入
|
|
683
|
-
*/
|
|
684
|
-
isSSO?: boolean;
|
|
685
|
-
/**
|
|
686
|
-
* @deprecated 使用 appHost
|
|
687
|
-
*/
|
|
688
|
-
host?: string;
|
|
689
|
-
}
|
|
690
|
-
export const initAuthClient: (config: AuthClientConfig) => AuthenticationClient;
|
|
691
|
-
export const useAuthing: (config?: AuthClientConfig | undefined) => {
|
|
692
|
-
authClient: AuthenticationClient | null;
|
|
693
|
-
};
|
|
694
|
-
export const getAuthClient: (config?: AuthClientConfig | undefined) => AuthenticationClient | null;
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/hooks/useScreenSize' {
|
|
698
|
-
export enum ScreenSize {
|
|
699
|
-
Mobile = "mobile",
|
|
700
|
-
Desktop = "desktop"
|
|
701
|
-
}
|
|
702
|
-
export const SCREEN_SIZE_RANG: {
|
|
703
|
-
size: ScreenSize;
|
|
704
|
-
range: [number, number];
|
|
705
|
-
}[];
|
|
706
|
-
export const getScreenSize: () => ScreenSize | ScreenSize.Desktop;
|
|
707
|
-
export const useScreenSize: () => ScreenSize[];
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/index' {
|
|
711
|
-
import { FC } from 'react';
|
|
712
|
-
import { UserConfig, GuardEventsHandler } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
713
|
-
import './style.less';
|
|
714
|
-
interface AuthingGuardProps extends GuardEventsHandler {
|
|
715
|
-
appId: string;
|
|
716
|
-
tenantId?: string;
|
|
717
|
-
config?: UserConfig;
|
|
718
|
-
visible?: boolean;
|
|
719
|
-
className?: string;
|
|
720
|
-
id?: string;
|
|
721
|
-
}
|
|
722
|
-
export const AuthingGuard: FC<AuthingGuardProps>;
|
|
723
|
-
export {};
|
|
724
|
-
|
|
725
|
-
}
|
|
726
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms' {
|
|
727
|
-
/// <reference types="react" />
|
|
728
|
-
import { User } from 'authing-js-sdk';
|
|
729
|
-
import { LoginMethods } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
730
|
-
import { ResetPwdMethods } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
731
|
-
export interface BaseFormProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
732
|
-
onSuccess?: (user: User) => void;
|
|
733
|
-
onFail?: (error: any) => void;
|
|
734
|
-
}
|
|
735
|
-
export interface CompleteUserInfoFormProps extends BaseFormProps {
|
|
736
|
-
}
|
|
737
|
-
export interface PasswordLoginFormProps extends BaseFormProps {
|
|
738
|
-
onValidateFail?: (error: any) => void;
|
|
739
|
-
}
|
|
740
|
-
export interface ADLoginFormProps extends BaseFormProps {
|
|
741
|
-
onValidateFail?: (error: any) => void;
|
|
742
|
-
}
|
|
743
|
-
export interface PhoneCodeLoginFormProps extends BaseFormProps {
|
|
744
|
-
onValidateFail?: (error: any) => void;
|
|
745
|
-
}
|
|
746
|
-
export interface LdapLoginFormProps extends BaseFormProps {
|
|
747
|
-
onValidateFail?: (error: any) => void;
|
|
748
|
-
}
|
|
749
|
-
export interface QrLoginFormProps extends BaseFormProps {
|
|
750
|
-
type: LoginMethods.AppQr | LoginMethods.WxMinQr | LoginMethods.WechatMpQrcode;
|
|
751
|
-
idpId?: string;
|
|
752
|
-
}
|
|
753
|
-
export interface EmailRegisterFormProps extends BaseFormProps {
|
|
754
|
-
onValidateFail?: (error: any) => void;
|
|
755
|
-
}
|
|
756
|
-
export interface PhoneRegisterFormProps extends BaseFormProps {
|
|
757
|
-
onValidateFail?: (error: any) => void;
|
|
758
|
-
}
|
|
759
|
-
export interface ResetPasswordFormProps {
|
|
760
|
-
onSuccess?: () => void;
|
|
761
|
-
onFail?: (error: any) => void;
|
|
762
|
-
}
|
|
763
|
-
export interface ResetPasswordStep1Props {
|
|
764
|
-
onSuccess: (resetMethod: ResetPwdMethods, val: string) => void;
|
|
765
|
-
}
|
|
766
|
-
export interface ResetPasswordStep2Props {
|
|
767
|
-
phone: string;
|
|
768
|
-
onSuccess: () => void;
|
|
769
|
-
onFail?: (error: any) => void;
|
|
770
|
-
}
|
|
771
|
-
export interface ResetPasswordStep3Props {
|
|
772
|
-
email: string;
|
|
773
|
-
onSuccess: () => void;
|
|
774
|
-
onFail?: (error: any) => void;
|
|
775
|
-
}
|
|
776
|
-
export interface SocialAndIdpLoginProps extends BaseFormProps {
|
|
777
|
-
}
|
|
778
|
-
export interface MfaVerifyForm extends BaseFormProps {
|
|
779
|
-
goReset: () => void;
|
|
780
|
-
}
|
|
781
|
-
export interface SmsMFAVerifyFormProps extends BaseFormProps {
|
|
782
|
-
phone?: string;
|
|
783
|
-
mfaToken: string;
|
|
784
|
-
sendCodeRef: React.RefObject<HTMLButtonElement>;
|
|
785
|
-
}
|
|
786
|
-
export interface SmsMFAFormProps extends BaseFormProps {
|
|
787
|
-
}
|
|
788
|
-
export interface MFACheckPhoneFormProps {
|
|
789
|
-
mfaToken: string;
|
|
790
|
-
onSuccess: (phone: string) => void;
|
|
791
|
-
}
|
|
792
|
-
export interface EmailMFAVerifyFormProps extends BaseFormProps {
|
|
793
|
-
email?: string;
|
|
794
|
-
mfaToken: string;
|
|
795
|
-
sendCodeRef: React.RefObject<HTMLButtonElement>;
|
|
796
|
-
}
|
|
797
|
-
export interface EmailMFAFormProps extends BaseFormProps {
|
|
798
|
-
}
|
|
799
|
-
export interface MFACheckEmailFormProps {
|
|
800
|
-
mfaToken: string;
|
|
801
|
-
onSuccess: (email: string) => void;
|
|
802
|
-
}
|
|
803
|
-
export interface MfaResetForm extends BaseFormProps {
|
|
804
|
-
goVerify: () => void;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
}
|
|
808
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig' {
|
|
809
|
-
import { AuthenticationClient, AuthenticationClientOptions, CommonMessage, SocialConnectionProvider, User } from 'authing-js-sdk';
|
|
810
|
-
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
811
|
-
import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
812
|
-
import { Lang } from '@authing/react-ui-components/components/AuthingGuard/types/Locales';
|
|
813
|
-
export type { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
814
|
-
export enum GuardMode {
|
|
815
|
-
Modal = "modal",
|
|
816
|
-
Normal = "normal"
|
|
817
|
-
}
|
|
818
|
-
export enum LoginMethods {
|
|
819
|
-
LDAP = "ldap",
|
|
820
|
-
AppQr = "app-qrcode",
|
|
821
|
-
Password = "password",
|
|
822
|
-
PhoneCode = "phone-code",
|
|
823
|
-
WxMinQr = "wechat-miniprogram-qrcode",
|
|
824
|
-
AD = "ad",
|
|
825
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
826
|
-
}
|
|
827
|
-
export enum RegisterMethods {
|
|
828
|
-
Email = "email",
|
|
829
|
-
Phone = "phone",
|
|
830
|
-
EmailCode = "emailCode"
|
|
831
|
-
}
|
|
832
|
-
export enum GuardScenes {
|
|
833
|
-
Login = "login",
|
|
834
|
-
Register = "register",
|
|
835
|
-
MfaVerify = "mfaVerify",
|
|
836
|
-
AppMfaVerify = "appMfaVerify",
|
|
837
|
-
RestPassword = "restPassword",
|
|
838
|
-
CompleteUserInfo = "completeUserInfo"
|
|
839
|
-
}
|
|
840
|
-
export enum ResetPwdMethods {
|
|
841
|
-
Email = "email",
|
|
842
|
-
Phone = "phone"
|
|
843
|
-
}
|
|
844
|
-
export enum SocialConnections {
|
|
845
|
-
Qq = "qq",
|
|
846
|
-
Weibo = "weibo",
|
|
847
|
-
Github = "github",
|
|
848
|
-
Google = "google",
|
|
849
|
-
WxPc = "wechat:pc",
|
|
850
|
-
Dingtalk = "dingtalk",
|
|
851
|
-
WxWCorpQr = "wechatwork:corp:qrconnect",
|
|
852
|
-
WxWSPQr = "wechatwork:service-provider:qrconnect",
|
|
853
|
-
WxWSPAuth = "wechatwork:service-provider:authorization",
|
|
854
|
-
AlipayWeb = "alipay:web",
|
|
855
|
-
AppleWeb = "apple:web",
|
|
856
|
-
Baidu = "baidu",
|
|
857
|
-
LarkInternalApp = "lark-internal",
|
|
858
|
-
LarkMarketPlaceApp = "lark-public"
|
|
859
|
-
}
|
|
860
|
-
export enum Protocol {
|
|
861
|
-
AD = "ad",
|
|
862
|
-
CAS = "cas",
|
|
863
|
-
LDAP = "ldap",
|
|
864
|
-
OIDC = "oidc",
|
|
865
|
-
SAML = "saml",
|
|
866
|
-
OAUTH = "oauth",
|
|
867
|
-
AZURE_AD = "azure-ad"
|
|
868
|
-
}
|
|
869
|
-
export const GuardEventsCamelToKebabMap: {
|
|
870
|
-
readonly onLoad: "load";
|
|
871
|
-
readonly onLoadError: "load-error";
|
|
872
|
-
readonly onLogin: "login";
|
|
873
|
-
readonly onBeforeLogin: "before-login";
|
|
874
|
-
readonly onLoginError: "login-error";
|
|
875
|
-
readonly onRegister: "register";
|
|
876
|
-
readonly onBeforeRegister: "before-register";
|
|
877
|
-
readonly onRegisterError: "register-error";
|
|
878
|
-
readonly onPwdEmailSend: "pwd-email-send";
|
|
879
|
-
readonly onPwdEmailSendError: "pwd-email-send-error";
|
|
880
|
-
readonly onPwdPhoneSend: "pwd-phone-send";
|
|
881
|
-
readonly onPwdPhoneSendError: "pwd-phone-send-error";
|
|
882
|
-
readonly onPwdReset: "pwd-reset";
|
|
883
|
-
readonly onPwdResetError: "pwd-reset-error";
|
|
884
|
-
readonly onClose: "close";
|
|
885
|
-
readonly onLoginTabChange: "login-tab-change";
|
|
886
|
-
readonly onRegisterTabChange: "register-tab-change";
|
|
887
|
-
readonly onRegisterInfoCompleted: "register-info-completed";
|
|
888
|
-
readonly onRegisterInfoCompletedError: "register-info-completed-error";
|
|
889
|
-
};
|
|
890
|
-
export interface GuardEventsHandlerKebab {
|
|
891
|
-
load: GuardEventsHandler['onLoad'];
|
|
892
|
-
'load-error': GuardEventsHandler['onLoadError'];
|
|
893
|
-
'before-login': GuardEventsHandler['onBeforeLogin'];
|
|
894
|
-
login: GuardEventsHandler['onLogin'];
|
|
895
|
-
'login-error': GuardEventsHandler['onLoginError'];
|
|
896
|
-
'before-register': GuardEventsHandler['onBeforeRegister'];
|
|
897
|
-
register: GuardEventsHandler['onRegister'];
|
|
898
|
-
'register-error': GuardEventsHandler['onRegisterError'];
|
|
899
|
-
'pwd-email-send': GuardEventsHandler['onPwdEmailSend'];
|
|
900
|
-
'pwd-email-send-error': GuardEventsHandler['onPwdEmailSendError'];
|
|
901
|
-
'pwd-phone-send': GuardEventsHandler['onPwdPhoneSend'];
|
|
902
|
-
'pwd-phone-send-error': GuardEventsHandler['onPwdPhoneSendError'];
|
|
903
|
-
'pwd-reset': GuardEventsHandler['onPwdReset'];
|
|
904
|
-
'pwd-reset-error': GuardEventsHandler['onPwdResetError'];
|
|
905
|
-
close: GuardEventsHandler['onClose'];
|
|
906
|
-
'login-tab-change': GuardEventsHandler['onLoginTabChange'];
|
|
907
|
-
'register-tab-change': GuardEventsHandler['onRegisterTabChange'];
|
|
908
|
-
'register-info-completed': GuardEventsHandler['onRegisterInfoCompleted'];
|
|
909
|
-
'register-info-completed-error': GuardEventsHandler['onRegisterInfoCompletedError'];
|
|
910
|
-
}
|
|
911
|
-
export interface PasswordLoginParams {
|
|
912
|
-
type: LoginMethods.Password;
|
|
913
|
-
data: {
|
|
914
|
-
identity: string;
|
|
915
|
-
password: string;
|
|
916
|
-
captchaCode?: string;
|
|
917
|
-
};
|
|
918
|
-
}
|
|
919
|
-
export interface LDAPLoginParams {
|
|
920
|
-
type: LoginMethods.LDAP;
|
|
921
|
-
data: {
|
|
922
|
-
identity: string;
|
|
923
|
-
password: string;
|
|
924
|
-
captchaCode?: string;
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
export interface ADLoginParams {
|
|
928
|
-
type: LoginMethods.AD;
|
|
929
|
-
data: {
|
|
930
|
-
identity: string;
|
|
931
|
-
password: string;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
export interface PhoneCodeLoginParams {
|
|
935
|
-
type: LoginMethods.PhoneCode;
|
|
936
|
-
data: {
|
|
937
|
-
phone: string;
|
|
938
|
-
code: string;
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
export interface EmailRegisterParams {
|
|
942
|
-
type: RegisterMethods.Email;
|
|
943
|
-
data: {
|
|
944
|
-
email: string;
|
|
945
|
-
password: string;
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
export interface PhoneRegisterParams {
|
|
949
|
-
type: RegisterMethods.Phone;
|
|
950
|
-
data: {
|
|
951
|
-
phone: string;
|
|
952
|
-
password: string;
|
|
953
|
-
code: string;
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
export interface GuardEventsHandler {
|
|
957
|
-
onLoad?: (authClient: AuthenticationClient) => void;
|
|
958
|
-
onLoadError?: (error: CommonMessage) => void;
|
|
959
|
-
onBeforeLogin?: (loginInfo: PasswordLoginParams | LDAPLoginParams | ADLoginParams | PhoneCodeLoginParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
960
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
961
|
-
onLoginError?: (user: User, authClient: AuthenticationClient) => void;
|
|
962
|
-
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
963
|
-
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
964
|
-
onRegisterError?: (user: User, authClient: AuthenticationClient) => void;
|
|
965
|
-
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
966
|
-
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
967
|
-
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
968
|
-
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
969
|
-
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
970
|
-
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
971
|
-
onClose?: () => void;
|
|
972
|
-
onLoginTabChange?: (activeTab: LoginMethods) => void;
|
|
973
|
-
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
974
|
-
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
975
|
-
definition: any;
|
|
976
|
-
value: any;
|
|
977
|
-
}[], authClient: AuthenticationClient) => void;
|
|
978
|
-
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
979
|
-
definition: any;
|
|
980
|
-
value: any;
|
|
981
|
-
}[], authClient: AuthenticationClient) => void;
|
|
982
|
-
}
|
|
983
|
-
export interface UserConfig {
|
|
984
|
-
logo?: string;
|
|
985
|
-
title?: string;
|
|
986
|
-
description?: string;
|
|
987
|
-
zIndex?: number;
|
|
988
|
-
isSSO?: boolean;
|
|
989
|
-
mode?: GuardMode;
|
|
990
|
-
/**
|
|
991
|
-
* @deprecated 使用 appHost
|
|
992
|
-
*/
|
|
993
|
-
apiHost?: string;
|
|
994
|
-
/**
|
|
995
|
-
* @deprecated 使用 appHost
|
|
996
|
-
*/
|
|
997
|
-
appDomain?: string;
|
|
998
|
-
appHost?: string;
|
|
999
|
-
contentCss?: string;
|
|
1000
|
-
text?: {
|
|
1001
|
-
loginBtn?: {
|
|
1002
|
-
normal?: string;
|
|
1003
|
-
loading?: string;
|
|
1004
|
-
};
|
|
1005
|
-
registerBtn?: {
|
|
1006
|
-
normal?: string;
|
|
1007
|
-
loading?: string;
|
|
1008
|
-
};
|
|
1009
|
-
loginTabs?: Partial<Record<LoginMethods, string>>;
|
|
1010
|
-
};
|
|
1011
|
-
escCloseable?: boolean;
|
|
1012
|
-
autoRegister?: boolean;
|
|
1013
|
-
clickCloseable?: boolean;
|
|
1014
|
-
disableResetPwd?: boolean;
|
|
1015
|
-
disableRegister?: boolean;
|
|
1016
|
-
defaultScenes?: GuardScenes;
|
|
1017
|
-
loginMethods?: LoginMethods[];
|
|
1018
|
-
target?: string | HTMLElement;
|
|
1019
|
-
enterpriseConnections?: string[];
|
|
1020
|
-
defaultLoginMethod?: LoginMethods;
|
|
1021
|
-
registerMethods?: RegisterMethods[];
|
|
1022
|
-
socialConnections?: (SocialConnections | SocialConnectionProvider)[];
|
|
1023
|
-
defaultRegisterMethod?: RegisterMethods;
|
|
1024
|
-
qrCodeScanOptions?: Parameters<QrCodeAuthenticationClient['startScanning']>[1];
|
|
1025
|
-
/**
|
|
1026
|
-
* 国际化处理
|
|
1027
|
-
*/
|
|
1028
|
-
localesConfig?: LocalesConfig;
|
|
1029
|
-
lang?: Lang;
|
|
1030
|
-
/**
|
|
1031
|
-
* 用于去品牌化
|
|
1032
|
-
*/
|
|
1033
|
-
headers?: AuthenticationClientOptions['headers'];
|
|
1034
|
-
passwordLoginMethods?: PasswordLoginMethods[];
|
|
1035
|
-
}
|
|
1036
|
-
export interface GuardConfig extends UserConfig {
|
|
1037
|
-
socialConnectionObjs: SocialConnectionItem[];
|
|
1038
|
-
enterpriseConnectionObjs: EnterpriseConnectionItem[];
|
|
1039
|
-
extendsFields: ApplicationConfig['extendsFields'];
|
|
1040
|
-
publicKey: ApplicationConfig['publicKey'];
|
|
1041
|
-
agreementEnabled: boolean;
|
|
1042
|
-
agreements: Agreement[];
|
|
1043
|
-
loginMethodTitleMapping: Record<string, string>;
|
|
1044
|
-
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
1045
|
-
}
|
|
1046
|
-
export interface LocalesConfig {
|
|
1047
|
-
defaultLang?: Lang;
|
|
1048
|
-
isShowChange?: boolean;
|
|
1049
|
-
onChange?: (lang: Lang) => void;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/types/GuardState' {
|
|
1054
|
-
import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
1055
|
-
import { GuardScenes } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
1056
|
-
export interface ActiveTabs {
|
|
1057
|
-
[GuardScenes.Login]: LoginMethods;
|
|
1058
|
-
[GuardScenes.Register]: RegisterMethods;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1062
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/types/Locales' {
|
|
1063
|
-
export type Lang = 'zh-CN' | 'en-US';
|
|
1064
|
-
export const LANG_MAP: {
|
|
1065
|
-
label: string;
|
|
1066
|
-
value: string;
|
|
1067
|
-
}[];
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1070
|
-
declare module '@authing/react-ui-components/components/AuthingGuard/types/index' {
|
|
1071
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/Forms';
|
|
1072
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/GuardState';
|
|
1073
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
|
|
1074
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/Locales';
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
declare module '@authing/react-ui-components/components/AuthingTabs/index' {
|
|
1078
|
-
import React, { FC } from 'react';
|
|
1079
|
-
import './style.less';
|
|
1080
|
-
export interface AuthingTabsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1081
|
-
activeKey?: string;
|
|
1082
|
-
onTabClick: (key: string) => void;
|
|
1083
|
-
showLen?: number;
|
|
1084
|
-
tabs: {
|
|
1085
|
-
key: string;
|
|
1086
|
-
label: string;
|
|
1087
|
-
component: JSX.Element;
|
|
1088
|
-
}[];
|
|
1089
|
-
}
|
|
1090
|
-
export const AuthingTabs: FC<AuthingTabsProps>;
|
|
1091
|
-
|
|
1092
|
-
}
|
|
1093
|
-
declare module '@authing/react-ui-components/components/Back/index' {
|
|
21
|
+
declare module '@authing/react-ui-components/Back/index' {
|
|
1094
22
|
import React from 'react';
|
|
1095
23
|
import './styles.less';
|
|
1096
24
|
export interface BackProps {
|
|
@@ -1103,15 +31,15 @@ declare module '@authing/react-ui-components/components/Back/index' {
|
|
|
1103
31
|
export const BackCustom: React.FC<BackCustomProps>;
|
|
1104
32
|
|
|
1105
33
|
}
|
|
1106
|
-
declare module '@authing/react-ui-components/
|
|
34
|
+
declare module '@authing/react-ui-components/BindTotp/businessRequest' {
|
|
1107
35
|
export enum BindTotpBusinessAction {
|
|
1108
36
|
VerifyTotpFirstTime = "verify-totp-first-time",
|
|
1109
37
|
ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
|
|
1110
38
|
}
|
|
1111
|
-
export const authFlow: (action: BindTotpBusinessAction, content: any) => Promise<import("@authing/react-ui-components/
|
|
39
|
+
export const authFlow: (action: BindTotpBusinessAction, content: any) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1112
40
|
|
|
1113
41
|
}
|
|
1114
|
-
declare module '@authing/react-ui-components/
|
|
42
|
+
declare module '@authing/react-ui-components/BindTotp/core/bindSuccess' {
|
|
1115
43
|
import React from 'react';
|
|
1116
44
|
export interface BindSuccessProps {
|
|
1117
45
|
onBind: any;
|
|
@@ -1120,7 +48,7 @@ declare module '@authing/react-ui-components/components/BindTotp/core/bindSucces
|
|
|
1120
48
|
export const BindSuccess: React.FC<BindSuccessProps>;
|
|
1121
49
|
|
|
1122
50
|
}
|
|
1123
|
-
declare module '@authing/react-ui-components/
|
|
51
|
+
declare module '@authing/react-ui-components/BindTotp/core/securityCode' {
|
|
1124
52
|
import React from 'react';
|
|
1125
53
|
export interface SecurityCodeProps {
|
|
1126
54
|
mfaToken: string;
|
|
@@ -1131,16 +59,16 @@ declare module '@authing/react-ui-components/components/BindTotp/core/securityCo
|
|
|
1131
59
|
export const SecurityCode: React.FC<SecurityCodeProps>;
|
|
1132
60
|
|
|
1133
61
|
}
|
|
1134
|
-
declare module '@authing/react-ui-components/
|
|
62
|
+
declare module '@authing/react-ui-components/BindTotp/index' {
|
|
1135
63
|
import React from 'react';
|
|
1136
64
|
import './styles.less';
|
|
1137
65
|
export const GuardBindTotpView: React.FC;
|
|
1138
66
|
|
|
1139
67
|
}
|
|
1140
|
-
declare module '@authing/react-ui-components/
|
|
1141
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/
|
|
1142
|
-
import {
|
|
1143
|
-
import {
|
|
68
|
+
declare module '@authing/react-ui-components/BindTotp/interface' {
|
|
69
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
70
|
+
import { GuardMFAInitData } from '@authing/react-ui-components/MFA/interface';
|
|
71
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
1144
72
|
export interface BindTotpConfig extends IG2Config {
|
|
1145
73
|
autoRegister: boolean;
|
|
1146
74
|
}
|
|
@@ -1160,12 +88,20 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
|
|
|
1160
88
|
}
|
|
1161
89
|
|
|
1162
90
|
}
|
|
1163
|
-
declare module '@authing/react-ui-components/
|
|
91
|
+
declare module '@authing/react-ui-components/ChangeLanguage/index' {
|
|
1164
92
|
/// <reference types="react" />
|
|
1165
|
-
|
|
93
|
+
import { Lang } from '@authing/react-ui-components/Type/index';
|
|
94
|
+
import './style.less';
|
|
95
|
+
export const LngTextMapping: Record<Lang, {
|
|
96
|
+
label: string;
|
|
97
|
+
}>;
|
|
98
|
+
export const ChangeLanguage: (props: {
|
|
99
|
+
onLangChange?: ((lang: Lang) => void) | undefined;
|
|
100
|
+
langRange?: string[] | undefined;
|
|
101
|
+
}) => JSX.Element | null;
|
|
1166
102
|
|
|
1167
103
|
}
|
|
1168
|
-
declare module '@authing/react-ui-components/
|
|
104
|
+
declare module '@authing/react-ui-components/ChangePassword/businessRequest' {
|
|
1169
105
|
export enum ChangePasswordBusinessAction {
|
|
1170
106
|
ResetPassword = "reset-password-first-time",
|
|
1171
107
|
FirstLoginReset = "reset-password-forced",
|
|
@@ -1174,10 +110,10 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1174
110
|
export const authFlow: (action: ChangePasswordBusinessAction, content: {
|
|
1175
111
|
password: string;
|
|
1176
112
|
oldPassword?: string;
|
|
1177
|
-
}) => Promise<import("@authing/react-ui-components/
|
|
113
|
+
}) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1178
114
|
|
|
1179
115
|
}
|
|
1180
|
-
declare module '@authing/react-ui-components/
|
|
116
|
+
declare module '@authing/react-ui-components/ChangePassword/core/PasswordNotSafeReset' {
|
|
1181
117
|
import React from 'react';
|
|
1182
118
|
interface PasswordNotSafeResetProps {
|
|
1183
119
|
onReset: any;
|
|
@@ -1186,12 +122,12 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/Pass
|
|
|
1186
122
|
export {};
|
|
1187
123
|
|
|
1188
124
|
}
|
|
1189
|
-
declare module '@authing/react-ui-components/
|
|
125
|
+
declare module '@authing/react-ui-components/ChangePassword/core/completePassword' {
|
|
1190
126
|
import React from 'react';
|
|
1191
127
|
export const CompletePassword: React.FC;
|
|
1192
128
|
|
|
1193
129
|
}
|
|
1194
|
-
declare module '@authing/react-ui-components/
|
|
130
|
+
declare module '@authing/react-ui-components/ChangePassword/core/firstLoginReset' {
|
|
1195
131
|
import React from 'react';
|
|
1196
132
|
interface FirstLoginResetProps {
|
|
1197
133
|
onReset: any;
|
|
@@ -1200,7 +136,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/firs
|
|
|
1200
136
|
export {};
|
|
1201
137
|
|
|
1202
138
|
}
|
|
1203
|
-
declare module '@authing/react-ui-components/
|
|
139
|
+
declare module '@authing/react-ui-components/ChangePassword/core/rotateReset' {
|
|
1204
140
|
/// <reference types="react" />
|
|
1205
141
|
interface RotateResetProps {
|
|
1206
142
|
onReset: any;
|
|
@@ -1210,7 +146,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
|
|
|
1210
146
|
export {};
|
|
1211
147
|
|
|
1212
148
|
}
|
|
1213
|
-
declare module '@authing/react-ui-components/
|
|
149
|
+
declare module '@authing/react-ui-components/ChangePassword/index' {
|
|
1214
150
|
import React from 'react';
|
|
1215
151
|
export const GuardChangePassword: React.FC<{
|
|
1216
152
|
title: string;
|
|
@@ -1223,21 +159,21 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1223
159
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1224
160
|
|
|
1225
161
|
}
|
|
1226
|
-
declare module '@authing/react-ui-components/
|
|
162
|
+
declare module '@authing/react-ui-components/CompleteInfo/businessRequest' {
|
|
1227
163
|
import { User } from 'authing-js-sdk';
|
|
1228
|
-
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/
|
|
164
|
+
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/CompleteInfo/interface';
|
|
1229
165
|
export enum CompleteInfoAuthFlowAction {
|
|
1230
166
|
Complete = "complete-completion",
|
|
1231
167
|
Skip = "skip-completion"
|
|
1232
168
|
}
|
|
1233
|
-
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/
|
|
1234
|
-
export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/
|
|
1235
|
-
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/
|
|
169
|
+
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
170
|
+
export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
|
|
171
|
+
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
1236
172
|
|
|
1237
173
|
}
|
|
1238
|
-
declare module '@authing/react-ui-components/
|
|
174
|
+
declare module '@authing/react-ui-components/CompleteInfo/core/completeInfo' {
|
|
1239
175
|
import React from 'react';
|
|
1240
|
-
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/
|
|
176
|
+
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/CompleteInfo/interface';
|
|
1241
177
|
export interface CompleteInfoProps {
|
|
1242
178
|
metaData: CompleteInfoMetaData[];
|
|
1243
179
|
businessRequest: (data: CompleteInfoRequest) => Promise<void>;
|
|
@@ -1249,11 +185,11 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
|
|
|
1249
185
|
export const CompleteInfo: React.FC<CompleteInfoProps>;
|
|
1250
186
|
|
|
1251
187
|
}
|
|
1252
|
-
declare module '@authing/react-ui-components/
|
|
188
|
+
declare module '@authing/react-ui-components/CompleteInfo/index' {
|
|
1253
189
|
import React from 'react';
|
|
1254
|
-
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/
|
|
190
|
+
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/CompleteInfo/interface';
|
|
1255
191
|
import './styles.less';
|
|
1256
|
-
import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/
|
|
192
|
+
import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/CompleteInfo/businessRequest';
|
|
1257
193
|
export const GuardCompleteInfo: React.FC<{
|
|
1258
194
|
metaData: CompleteInfoMetaData[];
|
|
1259
195
|
skipComplateFileds: boolean;
|
|
@@ -1263,9 +199,9 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1263
199
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1264
200
|
|
|
1265
201
|
}
|
|
1266
|
-
declare module '@authing/react-ui-components/
|
|
202
|
+
declare module '@authing/react-ui-components/CompleteInfo/interface' {
|
|
1267
203
|
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
1268
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/
|
|
204
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
1269
205
|
export interface CompleteInfoConfig extends IG2Config {
|
|
1270
206
|
}
|
|
1271
207
|
export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
|
|
@@ -1365,12 +301,12 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1365
301
|
}
|
|
1366
302
|
|
|
1367
303
|
}
|
|
1368
|
-
declare module '@authing/react-ui-components/
|
|
304
|
+
declare module '@authing/react-ui-components/CompleteInfo/utils' {
|
|
1369
305
|
import { User } from 'authing-js-sdk';
|
|
1370
|
-
import {
|
|
1371
|
-
import {
|
|
306
|
+
import { CompleteInfoMetaData, ExtendsField } from '@authing/react-ui-components/CompleteInfo/interface';
|
|
307
|
+
import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
1372
308
|
export const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
|
|
1373
|
-
export const extendsFieldsToMetaData: (extendsFields: import("@authing/react-ui-components/
|
|
309
|
+
export const extendsFieldsToMetaData: (extendsFields: import("@authing/react-ui-components/Type/application").ExtendsField[] | undefined, selectOptions: {
|
|
1374
310
|
key: string;
|
|
1375
311
|
options: {
|
|
1376
312
|
value: string;
|
|
@@ -1384,7 +320,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
|
|
|
1384
320
|
}[] | undefined) => Record<string, any>;
|
|
1385
321
|
|
|
1386
322
|
}
|
|
1387
|
-
declare module '@authing/react-ui-components/
|
|
323
|
+
declare module '@authing/react-ui-components/CopyAbleText/index' {
|
|
1388
324
|
import React, { FC } from 'react';
|
|
1389
325
|
import './style.less';
|
|
1390
326
|
export interface CopyTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1392,14 +328,14 @@ declare module '@authing/react-ui-components/components/CopyAbleText/index' {
|
|
|
1392
328
|
export const CopyAbleText: FC<CopyTextProps>;
|
|
1393
329
|
|
|
1394
330
|
}
|
|
1395
|
-
declare module '@authing/react-ui-components/
|
|
331
|
+
declare module '@authing/react-ui-components/DownloadAuthenticator/index' {
|
|
1396
332
|
import React from 'react';
|
|
1397
333
|
import './styles.less';
|
|
1398
334
|
export const GuardDownloadATView: React.FC;
|
|
1399
335
|
|
|
1400
336
|
}
|
|
1401
|
-
declare module '@authing/react-ui-components/
|
|
1402
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/
|
|
337
|
+
declare module '@authing/react-ui-components/DownloadAuthenticator/interface' {
|
|
338
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
1403
339
|
export interface DownloadATConfig extends IG2Config {
|
|
1404
340
|
}
|
|
1405
341
|
export const getDefaultDownloadAuthenticatorConfig: () => DownloadATConfig;
|
|
@@ -1413,7 +349,7 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
|
|
|
1413
349
|
}
|
|
1414
350
|
|
|
1415
351
|
}
|
|
1416
|
-
declare module '@authing/react-ui-components/
|
|
352
|
+
declare module '@authing/react-ui-components/Error/index' {
|
|
1417
353
|
import React from 'react';
|
|
1418
354
|
import './styles.less';
|
|
1419
355
|
export interface ErrorProps {
|
|
@@ -1422,7 +358,7 @@ declare module '@authing/react-ui-components/components/Error/index' {
|
|
|
1422
358
|
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1423
359
|
|
|
1424
360
|
}
|
|
1425
|
-
declare module '@authing/react-ui-components/
|
|
361
|
+
declare module '@authing/react-ui-components/Error/interface' {
|
|
1426
362
|
export interface ErrorInitData {
|
|
1427
363
|
error?: Error;
|
|
1428
364
|
}
|
|
@@ -1433,7 +369,7 @@ declare module '@authing/react-ui-components/components/Error/interface' {
|
|
|
1433
369
|
}
|
|
1434
370
|
|
|
1435
371
|
}
|
|
1436
|
-
declare module '@authing/react-ui-components/
|
|
372
|
+
declare module '@authing/react-ui-components/ForgetPassword/core/resetPassword' {
|
|
1437
373
|
/// <reference types="react" />
|
|
1438
374
|
export enum InputMethodMap {
|
|
1439
375
|
email = "email-code",
|
|
@@ -1449,14 +385,14 @@ declare module '@authing/react-ui-components/components/ForgetPassword/core/rese
|
|
|
1449
385
|
export {};
|
|
1450
386
|
|
|
1451
387
|
}
|
|
1452
|
-
declare module '@authing/react-ui-components/
|
|
388
|
+
declare module '@authing/react-ui-components/ForgetPassword/index' {
|
|
1453
389
|
import React from 'react';
|
|
1454
390
|
export const GuardForgetPassword: React.FC;
|
|
1455
391
|
|
|
1456
392
|
}
|
|
1457
|
-
declare module '@authing/react-ui-components/
|
|
1458
|
-
import { AuthenticationClient, CommonMessage } from '
|
|
1459
|
-
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/
|
|
393
|
+
declare module '@authing/react-ui-components/ForgetPassword/interface' {
|
|
394
|
+
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
395
|
+
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
|
|
1460
396
|
export interface ForgetPasswordEvents extends IG2Events {
|
|
1461
397
|
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
1462
398
|
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
@@ -1475,10 +411,10 @@ declare module '@authing/react-ui-components/components/ForgetPassword/interface
|
|
|
1475
411
|
}
|
|
1476
412
|
|
|
1477
413
|
}
|
|
1478
|
-
declare module '@authing/react-ui-components/
|
|
1479
|
-
import { GuardEvents } from '@authing/react-ui-components/
|
|
1480
|
-
import { GuardAppendConfig, IG2FCProps } from '@authing/react-ui-components/
|
|
1481
|
-
import { GuardLocalConfig } from '@authing/react-ui-components/
|
|
414
|
+
declare module '@authing/react-ui-components/Guard/Guard' {
|
|
415
|
+
import { GuardEvents } from '@authing/react-ui-components/Guard/event';
|
|
416
|
+
import { GuardAppendConfig, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
417
|
+
import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
|
|
1482
418
|
import 'moment/locale/zh-cn';
|
|
1483
419
|
import React from 'react';
|
|
1484
420
|
export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
@@ -1488,9 +424,9 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
|
|
|
1488
424
|
export const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
|
|
1489
425
|
|
|
1490
426
|
}
|
|
1491
|
-
declare module '@authing/react-ui-components/
|
|
1492
|
-
import { GuardLocalConfig } from '@authing/react-ui-components/
|
|
1493
|
-
import { GuardModuleType } from '@authing/react-ui-components/
|
|
427
|
+
declare module '@authing/react-ui-components/Guard/GuardModule/stateMachine' {
|
|
428
|
+
import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
|
|
429
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/module';
|
|
1494
430
|
export interface ModuleState {
|
|
1495
431
|
moduleName: GuardModuleType;
|
|
1496
432
|
initData?: any;
|
|
@@ -1528,381 +464,58 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1528
464
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1529
465
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
1530
466
|
|
|
1531
|
-
}
|
|
1532
|
-
declare module '@authing/react-ui-components/
|
|
1533
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1534
|
-
import { GuardLocalConfig } from '@authing/react-ui-components/
|
|
1535
|
-
let authClient: AuthenticationClient;
|
|
1536
|
-
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1537
|
-
export const useInitGuardAuthClient: (props: {
|
|
1538
|
-
config?: GuardLocalConfig | undefined;
|
|
1539
|
-
appId?: string | undefined;
|
|
1540
|
-
authClient?: AuthenticationClient | undefined;
|
|
1541
|
-
setError?: any;
|
|
1542
|
-
tenantId?: string | undefined;
|
|
1543
|
-
}) => AuthenticationClient | undefined;
|
|
1544
|
-
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1545
|
-
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1546
|
-
export {};
|
|
1547
|
-
|
|
1548
|
-
}
|
|
1549
|
-
declare module '@authing/react-ui-components/
|
|
1550
|
-
import { ReactNode } from 'react';
|
|
1551
|
-
import { GuardModuleType } from '@authing/react-ui-components/
|
|
1552
|
-
import { LoginConfig } from '@authing/react-ui-components/
|
|
1553
|
-
import { RegisterConfig } from '@authing/react-ui-components/
|
|
1554
|
-
export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
|
|
1555
|
-
}
|
|
1556
|
-
export enum QrCodeScanType {
|
|
1557
|
-
appQrcode = "appQrcode",
|
|
1558
|
-
wechatMiniQrcode = "wechatMiniQrcode",
|
|
1559
|
-
wechatmpQrcode = "wechatmpQrcode"
|
|
1560
|
-
}
|
|
1561
|
-
export interface QrCodeScanOptions {
|
|
1562
|
-
qrcode: string;
|
|
1563
|
-
}
|
|
1564
|
-
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
1565
|
-
isSSO?: boolean;
|
|
1566
|
-
defaultScenes?: GuardModuleType;
|
|
1567
|
-
defaultInitData?: any;
|
|
1568
|
-
showLoading?: boolean;
|
|
1569
|
-
loadingComponent?: ReactNode;
|
|
1570
|
-
/**
|
|
1571
|
-
* @description 是否调用 eventsMapping 中的事件
|
|
1572
|
-
*/
|
|
1573
|
-
openEventsMapping?: boolean;
|
|
1574
|
-
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1575
|
-
}
|
|
1576
|
-
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1579
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts' {
|
|
1580
|
-
/**
|
|
1581
|
-
* 整体的思路:
|
|
1582
|
-
* 在所有登录方式中,当进行登录时保存登录方式(FE侧自定义)
|
|
1583
|
-
* 之后在登录成功(onLogin)中,触发store的方法保存用户信息以及对应的登录方式进入localStorage。
|
|
1584
|
-
* 当用户再次打开页面时,拿出数据进行对比。(主要对比 LoginWay ),TODO: 这里的代码主要显得乱的原因是因为枚举的不正当使用。(主要要和Server端进行互相映射,后续维护时可优化)
|
|
1585
|
-
*
|
|
1586
|
-
* 核心思路:登录成功时,保存的FE侧自定义 LoginWay
|
|
1587
|
-
* 再次打开页面时,初始化时先根据 FE 自定义的 LoginWay 跳转到不同的 tab 下(way)下使用 account 进行回填。TODO: 这里也可优化,应该在登录成功时候就进行 LoginWay 的格式化,而非转来转去。(但是这样无法直观的体现是哪种方式进行登录)
|
|
1588
|
-
*/
|
|
1589
|
-
import { SelectOptions } from '@authing/react-ui-components/components/Login/multipleAccounts/panel';
|
|
1590
|
-
export const QR_CODE_WAY: LoginWay[];
|
|
1591
|
-
/**
|
|
1592
|
-
* 登录时所有支持的登录列表(前端定义列表)
|
|
1593
|
-
* 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
|
|
1594
|
-
*/
|
|
1595
|
-
export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
|
|
1596
|
-
/**
|
|
1597
|
-
* when: 多账号页面跳转进入登录页面
|
|
1598
|
-
* 携带的回填数据信息
|
|
1599
|
-
*/
|
|
1600
|
-
export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickname' | 'username' | 'phone' | 'email' | 'photo' | '_updateTime'> {
|
|
1601
|
-
/**
|
|
1602
|
-
* 回填的账号名称 邮箱/用户名/手机
|
|
1603
|
-
*/
|
|
1604
|
-
account: string;
|
|
1605
|
-
}
|
|
1606
|
-
/**
|
|
1607
|
-
* Store instance
|
|
1608
|
-
*/
|
|
1609
|
-
export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
|
|
1610
|
-
/**
|
|
1611
|
-
* 当前 userId 对应的类型
|
|
1612
|
-
*/
|
|
1613
|
-
export interface CurrentStore {
|
|
1614
|
-
[id: string]: User;
|
|
1615
|
-
}
|
|
1616
|
-
export interface User {
|
|
1617
|
-
/**
|
|
1618
|
-
* userId
|
|
1619
|
-
*/
|
|
1620
|
-
id: string;
|
|
1621
|
-
/**
|
|
1622
|
-
* Tab 栏状态
|
|
1623
|
-
*/
|
|
1624
|
-
tab: 'input' | 'qrcode';
|
|
1625
|
-
/**
|
|
1626
|
-
* 登录方式
|
|
1627
|
-
*/
|
|
1628
|
-
way: LoginWay;
|
|
1629
|
-
/**
|
|
1630
|
-
* 姓名
|
|
1631
|
-
*/
|
|
1632
|
-
name?: string | null;
|
|
1633
|
-
/**
|
|
1634
|
-
* 昵称
|
|
1635
|
-
*/
|
|
1636
|
-
nickname?: string | null;
|
|
1637
|
-
/**
|
|
1638
|
-
* 用户名
|
|
1639
|
-
*/
|
|
1640
|
-
username?: string | null;
|
|
1641
|
-
/**
|
|
1642
|
-
* 手机号
|
|
1643
|
-
*/
|
|
1644
|
-
phone?: string | null;
|
|
1645
|
-
/**
|
|
1646
|
-
* 邮箱
|
|
1647
|
-
*/
|
|
1648
|
-
email?: string | null;
|
|
1649
|
-
/**
|
|
1650
|
-
* 头像
|
|
1651
|
-
*/
|
|
1652
|
-
photo?: string | null;
|
|
1653
|
-
/**
|
|
1654
|
-
* qrCodeId 对应的ID
|
|
1655
|
-
*/
|
|
1656
|
-
qrCodeId?: string;
|
|
1657
|
-
/**
|
|
1658
|
-
* 国际化短信区号
|
|
1659
|
-
*/
|
|
1660
|
-
phoneCountryCode?: string;
|
|
1661
|
-
/**
|
|
1662
|
-
* 国际化短信选择框回填
|
|
1663
|
-
*/
|
|
1664
|
-
areaCode?: string;
|
|
1665
|
-
/**
|
|
1666
|
-
* 登录时间
|
|
1667
|
-
*/
|
|
1668
|
-
_updateTime?: string;
|
|
1669
|
-
}
|
|
1670
|
-
class MultipleAccount {
|
|
1671
|
-
/**
|
|
1672
|
-
* 原始的登录账号
|
|
1673
|
-
*/
|
|
1674
|
-
private originAccount;
|
|
1675
|
-
private originWay;
|
|
1676
|
-
/**
|
|
1677
|
-
* 原始的 localStore 值
|
|
1678
|
-
*/
|
|
1679
|
-
private originStore;
|
|
1680
|
-
/**
|
|
1681
|
-
* 当前 AppId Store
|
|
1682
|
-
*/
|
|
1683
|
-
private currentStore;
|
|
1684
|
-
/**
|
|
1685
|
-
* 单账号直接回填
|
|
1686
|
-
*/
|
|
1687
|
-
private firstBackFillData?;
|
|
1688
|
-
/**
|
|
1689
|
-
* server 返回支持的登录方式
|
|
1690
|
-
*/
|
|
1691
|
-
private serverSideLoginMethods;
|
|
1692
|
-
/**
|
|
1693
|
-
* 是否显示多账号登录页面
|
|
1694
|
-
* true 存在
|
|
1695
|
-
*/
|
|
1696
|
-
private memberState;
|
|
1697
|
-
/**
|
|
1698
|
-
* 二维码登录时的ID
|
|
1699
|
-
*/
|
|
1700
|
-
private qrCodeId?;
|
|
1701
|
-
/**
|
|
1702
|
-
* 国际化短信前缀 区号
|
|
1703
|
-
*/
|
|
1704
|
-
private phoneCountryCode?;
|
|
1705
|
-
/**
|
|
1706
|
-
* 国际化短信前缀 选中地区编号
|
|
1707
|
-
*/
|
|
1708
|
-
private areaCode?;
|
|
1709
|
-
private tabStatus?;
|
|
1710
|
-
/**
|
|
1711
|
-
* 当前登录二级状态
|
|
1712
|
-
*/
|
|
1713
|
-
private loginWay?;
|
|
1714
|
-
private appId;
|
|
1715
|
-
/**
|
|
1716
|
-
* 是否开启国际化短信
|
|
1717
|
-
*/
|
|
1718
|
-
private isInternationSms?;
|
|
1719
|
-
constructor();
|
|
1720
|
-
/**
|
|
1721
|
-
* 页面首次加载时初始化 Store
|
|
1722
|
-
* 从 LocalStore 中拿值 放到这里来
|
|
1723
|
-
*/
|
|
1724
|
-
private initStore;
|
|
1725
|
-
/**
|
|
1726
|
-
* 初始化记住账号相关信息
|
|
1727
|
-
* @param normalCount
|
|
1728
|
-
* @returns
|
|
1729
|
-
*/
|
|
1730
|
-
private initMemberState;
|
|
1731
|
-
/**
|
|
1732
|
-
* 获取当前ID下有效账号个数
|
|
1733
|
-
* @returns qrCount 有效的二维码登录个数 normalCount 有效的账号登录方式
|
|
1734
|
-
*/
|
|
1735
|
-
private memberStateCount;
|
|
1736
|
-
/**
|
|
1737
|
-
* 初始化第一次的数据 TODO: 逻辑有点脏 待整理
|
|
1738
|
-
*/
|
|
1739
|
-
private initBackfillData;
|
|
1740
|
-
/**
|
|
1741
|
-
* 根据前端存储的登录方式返回后端映射方式
|
|
1742
|
-
* @param front
|
|
1743
|
-
*/
|
|
1744
|
-
private getServerLoginMethodByFront;
|
|
1745
|
-
/**
|
|
1746
|
-
* 当前 Store DONE
|
|
1747
|
-
*/
|
|
1748
|
-
private getCurrentStore;
|
|
1749
|
-
/**
|
|
1750
|
-
* 国际化短信过滤
|
|
1751
|
-
* true 表示通过 需要保留
|
|
1752
|
-
* false 表示不通过 需要过滤
|
|
1753
|
-
*/
|
|
1754
|
-
private validateInternationSms;
|
|
1755
|
-
/**
|
|
1756
|
-
* 校验有效的登录方式账号
|
|
1757
|
-
* @param user
|
|
1758
|
-
* @param serverSideLoginMethods
|
|
1759
|
-
* @returns
|
|
1760
|
-
*/
|
|
1761
|
-
private validateMethod;
|
|
1762
|
-
/**
|
|
1763
|
-
*
|
|
1764
|
-
* @param tab 一级Tab状态
|
|
1765
|
-
* @param way 二级Tab状态
|
|
1766
|
-
* @param id 二维码登录时 记录对应的二维码 ID
|
|
1767
|
-
*/
|
|
1768
|
-
private setLoginWay;
|
|
1769
|
-
/**
|
|
1770
|
-
* 设置/更新 store 内的用户信息
|
|
1771
|
-
*/
|
|
1772
|
-
private setUserInfo;
|
|
1773
|
-
/**
|
|
1774
|
-
* 持久化保存
|
|
1775
|
-
*/
|
|
1776
|
-
private saveStore;
|
|
1777
|
-
/**
|
|
1778
|
-
* 根据登录的 account 判断本次登录的方式
|
|
1779
|
-
* @param account 登录输入的账号
|
|
1780
|
-
* @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
|
|
1781
|
-
* @returns
|
|
1782
|
-
*/
|
|
1783
|
-
private setLoginWayByHttpData;
|
|
1784
|
-
/**
|
|
1785
|
-
* 根据登录的 account 判断本次LDAP登录方式
|
|
1786
|
-
* @param account 登录输入的账号
|
|
1787
|
-
* @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
|
|
1788
|
-
* @returns
|
|
1789
|
-
*/
|
|
1790
|
-
private setLoginWayByLDAPData;
|
|
1791
|
-
/**
|
|
1792
|
-
* 根据用户 ID 删除 localStorage 中当前用户 ID
|
|
1793
|
-
*/
|
|
1794
|
-
private delUserById;
|
|
1795
|
-
/**
|
|
1796
|
-
* 获得多账号登录页面的所有用户列表
|
|
1797
|
-
* @param excludeWays
|
|
1798
|
-
*/
|
|
1799
|
-
private getMemoUser;
|
|
1800
|
-
/**
|
|
1801
|
-
* 根据 id 获得当前已登录的用户信息
|
|
1802
|
-
* @param userId
|
|
1803
|
-
* @returns User / undefined
|
|
1804
|
-
*/
|
|
1805
|
-
private getMemoSingleUser;
|
|
1806
|
-
/**
|
|
1807
|
-
* 该方法仅仅需要回填账号的登录方式,其他都不计入
|
|
1808
|
-
* 当用户名/手机号/邮箱/AD/LDAP 相同时,根据登录顺序匹配不同的账号
|
|
1809
|
-
* 根据记住的用户登录方式获取对应的登录账户名
|
|
1810
|
-
* @param way
|
|
1811
|
-
* @param user
|
|
1812
|
-
* @returns
|
|
1813
|
-
*/
|
|
1814
|
-
private getAccountByWay;
|
|
1815
|
-
private _mappingUser;
|
|
467
|
+
}
|
|
468
|
+
declare module '@authing/react-ui-components/Guard/authClient' {
|
|
469
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
470
|
+
import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
|
|
471
|
+
let authClient: AuthenticationClient;
|
|
472
|
+
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
473
|
+
export const useInitGuardAuthClient: (props: {
|
|
474
|
+
config?: GuardLocalConfig | undefined;
|
|
475
|
+
appId?: string | undefined;
|
|
476
|
+
authClient?: AuthenticationClient | undefined;
|
|
477
|
+
setError?: any;
|
|
478
|
+
tenantId?: string | undefined;
|
|
479
|
+
}) => AuthenticationClient | undefined;
|
|
480
|
+
export const getGuardAuthClient: () => AuthenticationClient;
|
|
481
|
+
export const useGuardAuthClient: () => AuthenticationClient;
|
|
482
|
+
export {};
|
|
483
|
+
|
|
484
|
+
}
|
|
485
|
+
declare module '@authing/react-ui-components/Guard/config' {
|
|
486
|
+
import { ReactNode } from 'react';
|
|
487
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
|
|
488
|
+
import { LoginConfig } from '@authing/react-ui-components/Login/interface';
|
|
489
|
+
import { RegisterConfig } from '@authing/react-ui-components/Register/interface';
|
|
490
|
+
export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
|
|
491
|
+
}
|
|
492
|
+
export enum QrCodeScanType {
|
|
493
|
+
appQrcode = "appQrcode",
|
|
494
|
+
wechatMiniQrcode = "wechatMiniQrcode",
|
|
495
|
+
wechatmpQrcode = "wechatmpQrcode"
|
|
496
|
+
}
|
|
497
|
+
export interface QrCodeScanOptions {
|
|
498
|
+
qrcode: string;
|
|
499
|
+
}
|
|
500
|
+
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
501
|
+
isSSO?: boolean;
|
|
502
|
+
defaultScenes?: GuardModuleType;
|
|
503
|
+
defaultInitData?: any;
|
|
504
|
+
showLoading?: boolean;
|
|
505
|
+
loadingComponent?: ReactNode;
|
|
1816
506
|
/**
|
|
1817
|
-
*
|
|
507
|
+
* @description 是否调用 eventsMapping 中的事件
|
|
1818
508
|
*/
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
serverSideLoginMethods: LoginWay[];
|
|
1822
|
-
isInternationSms: boolean;
|
|
1823
|
-
}) => void;
|
|
1824
|
-
setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
|
|
1825
|
-
phoneCountryCode: string;
|
|
1826
|
-
areaCode: string;
|
|
1827
|
-
} | undefined) => void;
|
|
1828
|
-
setUserInfo: (user: Pick<User & {
|
|
1829
|
-
id: string;
|
|
1830
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1831
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1832
|
-
username?: string | undefined;
|
|
1833
|
-
phone?: string | undefined;
|
|
1834
|
-
email?: string | undefined;
|
|
1835
|
-
}) => void;
|
|
1836
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
1837
|
-
name?: string | undefined;
|
|
1838
|
-
phone?: string | undefined;
|
|
1839
|
-
email?: string | undefined;
|
|
1840
|
-
}) => void;
|
|
1841
|
-
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1842
|
-
getMemoSingleUser: (id: string) => {
|
|
1843
|
-
way: LoginWay;
|
|
1844
|
-
account: string;
|
|
1845
|
-
} | undefined;
|
|
1846
|
-
delUserById: (id: string) => string;
|
|
1847
|
-
getMemberState: () => boolean;
|
|
1848
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1849
|
-
getOriginAccount: () => string;
|
|
1850
|
-
getOriginWay: () => string;
|
|
1851
|
-
};
|
|
509
|
+
openEventsMapping?: boolean;
|
|
510
|
+
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1852
511
|
}
|
|
1853
|
-
|
|
1854
|
-
* MultipleAccounts 相关 Hook
|
|
1855
|
-
* Finally Config 类型过滤
|
|
1856
|
-
*/
|
|
1857
|
-
const useMultipleAccounts: ({ appId, finallyConfig }: {
|
|
1858
|
-
appId?: string | undefined;
|
|
1859
|
-
finallyConfig?: any;
|
|
1860
|
-
}) => {
|
|
1861
|
-
instance: {
|
|
1862
|
-
initStore: (appId: string, options: {
|
|
1863
|
-
serverSideLoginMethods: LoginWay[];
|
|
1864
|
-
isInternationSms: boolean;
|
|
1865
|
-
}) => void;
|
|
1866
|
-
setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
|
|
1867
|
-
phoneCountryCode: string;
|
|
1868
|
-
areaCode: string;
|
|
1869
|
-
} | undefined) => void;
|
|
1870
|
-
setUserInfo: (user: Pick<User & {
|
|
1871
|
-
id: string;
|
|
1872
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1873
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1874
|
-
username?: string | undefined;
|
|
1875
|
-
phone?: string | undefined;
|
|
1876
|
-
email?: string | undefined;
|
|
1877
|
-
}) => void;
|
|
1878
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
1879
|
-
name?: string | undefined;
|
|
1880
|
-
phone?: string | undefined;
|
|
1881
|
-
email?: string | undefined;
|
|
1882
|
-
}) => void;
|
|
1883
|
-
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1884
|
-
getMemoSingleUser: (id: string) => {
|
|
1885
|
-
way: LoginWay;
|
|
1886
|
-
account: string;
|
|
1887
|
-
} | undefined;
|
|
1888
|
-
delUserById: (id: string) => string;
|
|
1889
|
-
getMemberState: () => boolean;
|
|
1890
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1891
|
-
getOriginAccount: () => string;
|
|
1892
|
-
getOriginWay: () => string;
|
|
1893
|
-
} | undefined;
|
|
1894
|
-
isMultipleAccount: boolean;
|
|
1895
|
-
referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState | undefined) => void;
|
|
1896
|
-
multipleAccountData: BackFillMultipleState | undefined;
|
|
1897
|
-
clearBackFillData: () => void;
|
|
1898
|
-
};
|
|
1899
|
-
export default useMultipleAccounts;
|
|
512
|
+
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1900
513
|
|
|
1901
514
|
}
|
|
1902
|
-
declare module '@authing/react-ui-components/
|
|
515
|
+
declare module '@authing/react-ui-components/Guard/core/index' {
|
|
1903
516
|
/// <reference types="react" />
|
|
1904
|
-
import { GuardProps } from '@authing/react-ui-components/
|
|
1905
|
-
import { ModuleState } from '@authing/react-ui-components/
|
|
517
|
+
import { GuardProps } from '@authing/react-ui-components/Guard/index';
|
|
518
|
+
import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
|
|
1906
519
|
export interface GuardCoreProps {
|
|
1907
520
|
guardProps: GuardProps;
|
|
1908
521
|
initState: ModuleState;
|
|
@@ -1910,19 +523,19 @@ declare module '@authing/react-ui-components/components/Guard/core/index' {
|
|
|
1910
523
|
export const GuardCore: (props: GuardCoreProps) => JSX.Element;
|
|
1911
524
|
|
|
1912
525
|
}
|
|
1913
|
-
declare module '@authing/react-ui-components/
|
|
1914
|
-
import { GuardProps } from '@authing/react-ui-components/
|
|
526
|
+
declare module '@authing/react-ui-components/Guard/core/renderContext' {
|
|
527
|
+
import { GuardProps } from '@authing/react-ui-components/Guard/index';
|
|
1915
528
|
import React from 'react';
|
|
1916
|
-
import { ModuleState } from '@authing/react-ui-components/
|
|
529
|
+
import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
|
|
1917
530
|
export const RenderContext: React.FC<{
|
|
1918
531
|
guardProps: GuardProps;
|
|
1919
532
|
initState: ModuleState;
|
|
1920
533
|
}>;
|
|
1921
534
|
|
|
1922
535
|
}
|
|
1923
|
-
declare module '@authing/react-ui-components/
|
|
536
|
+
declare module '@authing/react-ui-components/Guard/core/renderModule' {
|
|
1924
537
|
import React from 'react';
|
|
1925
|
-
import { GuardProps } from '@authing/react-ui-components/
|
|
538
|
+
import { GuardProps } from '@authing/react-ui-components/Guard/index';
|
|
1926
539
|
import '../styles.less';
|
|
1927
540
|
export enum LangMAP {
|
|
1928
541
|
zhCn = "zh-CN",
|
|
@@ -1933,63 +546,31 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
|
|
|
1933
546
|
}>;
|
|
1934
547
|
|
|
1935
548
|
}
|
|
1936
|
-
declare module '@authing/react-ui-components/
|
|
1937
|
-
import { GuardAppendConfig } from '@authing/react-ui-components/
|
|
549
|
+
declare module '@authing/react-ui-components/Guard/core/useAppendConfig' {
|
|
550
|
+
import { GuardAppendConfig } from '@authing/react-ui-components/index';
|
|
1938
551
|
export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1939
552
|
export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1940
553
|
export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
1941
554
|
|
|
1942
555
|
}
|
|
1943
|
-
declare module '@authing/react-ui-components/
|
|
1944
|
-
import { FacePlugin } from '@authing/react-ui-components/
|
|
556
|
+
declare module '@authing/react-ui-components/Guard/core/usePlugin' {
|
|
557
|
+
import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
|
|
1945
558
|
export const useGuardPlugin: any;
|
|
1946
559
|
export const useGuardFacePlugin: (facePlugin?: FacePlugin | undefined) => boolean;
|
|
1947
560
|
|
|
1948
561
|
}
|
|
1949
|
-
declare module '@authing/react-ui-components/
|
|
1950
|
-
import { GuardModuleType } from '@authing/react-ui-components/
|
|
1951
|
-
import { CompleteInfoEvents } from '@authing/react-ui-components/
|
|
1952
|
-
import { ForgetPasswordEvents } from '@authing/react-ui-components/
|
|
1953
|
-
import { IdentityBindingEvents } from '@authing/react-ui-components/
|
|
1954
|
-
import { IdentityBindingAskEvents } from '@authing/react-ui-components/
|
|
1955
|
-
import { LoginEvents } from '@authing/react-ui-components/
|
|
1956
|
-
import { RegisterEvents } from '@authing/react-ui-components/
|
|
562
|
+
declare module '@authing/react-ui-components/Guard/event' {
|
|
563
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
|
|
564
|
+
import { CompleteInfoEvents } from '@authing/react-ui-components/CompleteInfo/interface';
|
|
565
|
+
import { ForgetPasswordEvents } from '@authing/react-ui-components/ForgetPassword/interface';
|
|
566
|
+
import { IdentityBindingEvents } from '@authing/react-ui-components/IdentityBinding/interface';
|
|
567
|
+
import { IdentityBindingAskEvents } from '@authing/react-ui-components/IdentityBindingAsk/index';
|
|
568
|
+
import { LoginEvents } from '@authing/react-ui-components/Login/interface';
|
|
569
|
+
import { RegisterEvents } from '@authing/react-ui-components/Register/interface';
|
|
1957
570
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
1958
571
|
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
1959
572
|
}
|
|
1960
|
-
export const guardEventsFilter: (props: any,
|
|
1961
|
-
initStore: (appId: string, options: {
|
|
1962
|
-
serverSideLoginMethods: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[];
|
|
1963
|
-
isInternationSms: boolean;
|
|
1964
|
-
}) => void;
|
|
1965
|
-
setLoginWay: (tab: "input" | "qrcode", way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
|
|
1966
|
-
phoneCountryCode: string;
|
|
1967
|
-
areaCode: string;
|
|
1968
|
-
} | undefined) => void;
|
|
1969
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
1970
|
-
id: string;
|
|
1971
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1972
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1973
|
-
username?: string | undefined;
|
|
1974
|
-
phone?: string | undefined;
|
|
1975
|
-
email?: string | undefined;
|
|
1976
|
-
}) => void;
|
|
1977
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
1978
|
-
name?: string | undefined;
|
|
1979
|
-
phone?: string | undefined;
|
|
1980
|
-
email?: string | undefined;
|
|
1981
|
-
}) => void;
|
|
1982
|
-
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
1983
|
-
getMemoSingleUser: (id: string) => {
|
|
1984
|
-
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
1985
|
-
account: string;
|
|
1986
|
-
} | undefined;
|
|
1987
|
-
delUserById: (id: string) => string;
|
|
1988
|
-
getMemberState: () => boolean;
|
|
1989
|
-
getFirstBackFillData: () => import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").BackFillMultipleState | undefined;
|
|
1990
|
-
getOriginAccount: () => string;
|
|
1991
|
-
getOriginWay: () => string;
|
|
1992
|
-
} | undefined, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
573
|
+
export const guardEventsFilter: (props: any, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1993
574
|
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1994
575
|
export const GuardEventsCamelToKebabMapping: {
|
|
1995
576
|
readonly onLoad: "load";
|
|
@@ -2037,14 +618,14 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
2037
618
|
}
|
|
2038
619
|
|
|
2039
620
|
}
|
|
2040
|
-
declare module '@authing/react-ui-components/
|
|
2041
|
-
export * from '@authing/react-ui-components/
|
|
2042
|
-
export * from '@authing/react-ui-components/
|
|
2043
|
-
export * from '@authing/react-ui-components/
|
|
2044
|
-
export * from '@authing/react-ui-components/
|
|
621
|
+
declare module '@authing/react-ui-components/Guard/index' {
|
|
622
|
+
export * from '@authing/react-ui-components/Guard/Guard';
|
|
623
|
+
export * from '@authing/react-ui-components/Guard/module';
|
|
624
|
+
export * from '@authing/react-ui-components/Guard/event';
|
|
625
|
+
export * from '@authing/react-ui-components/Guard/config';
|
|
2045
626
|
|
|
2046
627
|
}
|
|
2047
|
-
declare module '@authing/react-ui-components/
|
|
628
|
+
declare module '@authing/react-ui-components/Guard/module' {
|
|
2048
629
|
export enum GuardModuleType {
|
|
2049
630
|
ERROR = "error",
|
|
2050
631
|
LOGIN = "login",
|
|
@@ -2075,8 +656,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
2075
656
|
}
|
|
2076
657
|
|
|
2077
658
|
}
|
|
2078
|
-
declare module '@authing/react-ui-components/
|
|
2079
|
-
import { User } from '
|
|
659
|
+
declare module '@authing/react-ui-components/Guard/sso' {
|
|
660
|
+
import { User } from 'authing-js-sdk';
|
|
2080
661
|
export interface SessionData {
|
|
2081
662
|
session: null | {
|
|
2082
663
|
_id: string;
|
|
@@ -2094,10 +675,10 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
2094
675
|
};
|
|
2095
676
|
userInfo?: User;
|
|
2096
677
|
}
|
|
2097
|
-
export const trackSession: () => Promise<import("@authing/react-ui-components/
|
|
678
|
+
export const trackSession: () => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
2098
679
|
|
|
2099
680
|
}
|
|
2100
|
-
declare module '@authing/react-ui-components/
|
|
681
|
+
declare module '@authing/react-ui-components/GuardButton/GuardButton' {
|
|
2101
682
|
import React from 'react';
|
|
2102
683
|
import { ButtonProps } from 'antd/lib/button';
|
|
2103
684
|
import './styles.less';
|
|
@@ -2106,15 +687,15 @@ declare module '@authing/react-ui-components/components/GuardButton/GuardButton'
|
|
|
2106
687
|
export const GuardButton: React.FC<GuardButtonProps>;
|
|
2107
688
|
|
|
2108
689
|
}
|
|
2109
|
-
declare module '@authing/react-ui-components/
|
|
2110
|
-
export * from '@authing/react-ui-components/
|
|
690
|
+
declare module '@authing/react-ui-components/GuardButton/index' {
|
|
691
|
+
export * from '@authing/react-ui-components/GuardButton/GuardButton';
|
|
2111
692
|
|
|
2112
693
|
}
|
|
2113
|
-
declare module '@authing/react-ui-components/
|
|
694
|
+
declare module '@authing/react-ui-components/IconFont/iconfont' {
|
|
2114
695
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
2115
696
|
|
|
2116
697
|
}
|
|
2117
|
-
declare module '@authing/react-ui-components/
|
|
698
|
+
declare module '@authing/react-ui-components/IconFont/index' {
|
|
2118
699
|
import React, { FC } from 'react';
|
|
2119
700
|
import './iconfont';
|
|
2120
701
|
import './style.less';
|
|
@@ -2125,17 +706,17 @@ declare module '@authing/react-ui-components/components/IconFont/index' {
|
|
|
2125
706
|
}>;
|
|
2126
707
|
|
|
2127
708
|
}
|
|
2128
|
-
declare module '@authing/react-ui-components/
|
|
709
|
+
declare module '@authing/react-ui-components/IconFont/useGuardIconfont' {
|
|
2129
710
|
export const useGuardIconfont: (cdnBase?: string | undefined, setError?: any) => boolean;
|
|
2130
711
|
|
|
2131
712
|
}
|
|
2132
|
-
declare module '@authing/react-ui-components/
|
|
713
|
+
declare module '@authing/react-ui-components/IdentityBinding/IdentityBinding' {
|
|
2133
714
|
import React from 'react';
|
|
2134
715
|
import './styles.less';
|
|
2135
716
|
export const GuardIdentityBindingView: React.FC;
|
|
2136
717
|
|
|
2137
718
|
}
|
|
2138
|
-
declare module '@authing/react-ui-components/
|
|
719
|
+
declare module '@authing/react-ui-components/IdentityBinding/businessRequest' {
|
|
2139
720
|
export enum IdentityBindingBusinessAction {
|
|
2140
721
|
PhoneCode = "phone-code",
|
|
2141
722
|
EmailCode = "emial-code",
|
|
@@ -2161,26 +742,26 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
2161
742
|
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
2162
743
|
BindByEmailCode = "bind-identity-by-email-code"
|
|
2163
744
|
}
|
|
2164
|
-
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/
|
|
2165
|
-
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/
|
|
2166
|
-
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/
|
|
745
|
+
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
746
|
+
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
747
|
+
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
2167
748
|
export const useIdentityBindingBusinessRequest: () => {
|
|
2168
|
-
"phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/
|
|
2169
|
-
"emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/
|
|
2170
|
-
password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/
|
|
749
|
+
"phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
750
|
+
"emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
751
|
+
password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
2171
752
|
};
|
|
2172
753
|
|
|
2173
754
|
}
|
|
2174
|
-
declare module '@authing/react-ui-components/
|
|
2175
|
-
export * from '@authing/react-ui-components/
|
|
2176
|
-
export * from '@authing/react-ui-components/
|
|
755
|
+
declare module '@authing/react-ui-components/IdentityBinding/index' {
|
|
756
|
+
export * from '@authing/react-ui-components/IdentityBinding/IdentityBinding';
|
|
757
|
+
export * from '@authing/react-ui-components/IdentityBinding/interface';
|
|
2177
758
|
|
|
2178
759
|
}
|
|
2179
|
-
declare module '@authing/react-ui-components/
|
|
2180
|
-
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/
|
|
2181
|
-
import {
|
|
2182
|
-
import {
|
|
2183
|
-
import {
|
|
760
|
+
declare module '@authing/react-ui-components/IdentityBinding/interface' {
|
|
761
|
+
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/index';
|
|
762
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
763
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
|
|
764
|
+
import { Agreement } from '@authing/react-ui-components/Type/application';
|
|
2184
765
|
export interface IdentityBindingConfig extends IG2Config {
|
|
2185
766
|
autoRegister?: boolean;
|
|
2186
767
|
publicKey?: string;
|
|
@@ -2206,20 +787,20 @@ declare module '@authing/react-ui-components/components/IdentityBinding/interfac
|
|
|
2206
787
|
}
|
|
2207
788
|
|
|
2208
789
|
}
|
|
2209
|
-
declare module '@authing/react-ui-components/
|
|
790
|
+
declare module '@authing/react-ui-components/IdentityBindingAsk/IdentityBindingAsk' {
|
|
2210
791
|
import React from 'react';
|
|
2211
792
|
import './styles.less';
|
|
2212
793
|
export const GuardIdentityBindingAskView: React.FC;
|
|
2213
794
|
|
|
2214
795
|
}
|
|
2215
|
-
declare module '@authing/react-ui-components/
|
|
2216
|
-
export * from '@authing/react-ui-components/
|
|
2217
|
-
export * from '@authing/react-ui-components/
|
|
796
|
+
declare module '@authing/react-ui-components/IdentityBindingAsk/index' {
|
|
797
|
+
export * from '@authing/react-ui-components/IdentityBindingAsk/IdentityBindingAsk';
|
|
798
|
+
export * from '@authing/react-ui-components/IdentityBindingAsk/interface';
|
|
2218
799
|
|
|
2219
800
|
}
|
|
2220
|
-
declare module '@authing/react-ui-components/
|
|
2221
|
-
import { AuthenticationClient, User } from '
|
|
2222
|
-
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/
|
|
801
|
+
declare module '@authing/react-ui-components/IdentityBindingAsk/interface' {
|
|
802
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
803
|
+
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/index';
|
|
2223
804
|
export interface IdentityBindingAskConfig extends IG2Config {
|
|
2224
805
|
}
|
|
2225
806
|
export interface IdentityBindingAskEvents extends IG2Events {
|
|
@@ -2241,7 +822,7 @@ declare module '@authing/react-ui-components/components/IdentityBindingAsk/inter
|
|
|
2241
822
|
}
|
|
2242
823
|
|
|
2243
824
|
}
|
|
2244
|
-
declare module '@authing/react-ui-components/
|
|
825
|
+
declare module '@authing/react-ui-components/ImagePro/index' {
|
|
2245
826
|
import React from 'react';
|
|
2246
827
|
import './styles.less';
|
|
2247
828
|
export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
@@ -2258,7 +839,7 @@ declare module '@authing/react-ui-components/components/ImagePro/index' {
|
|
|
2258
839
|
export const ImagePro: (props: ImageProProps) => JSX.Element;
|
|
2259
840
|
|
|
2260
841
|
}
|
|
2261
|
-
declare module '@authing/react-ui-components/
|
|
842
|
+
declare module '@authing/react-ui-components/InputNumber/index' {
|
|
2262
843
|
import { InputProps } from 'antd/lib/input';
|
|
2263
844
|
import React from 'react';
|
|
2264
845
|
export interface InputNumberProps extends InputProps {
|
|
@@ -2266,22 +847,21 @@ declare module '@authing/react-ui-components/components/InputNumber/index' {
|
|
|
2266
847
|
export const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<any>>;
|
|
2267
848
|
|
|
2268
849
|
}
|
|
2269
|
-
declare module '@authing/react-ui-components/
|
|
850
|
+
declare module '@authing/react-ui-components/InputPassword/index' {
|
|
2270
851
|
import { Input } from 'antd';
|
|
2271
852
|
import { PasswordProps } from 'antd/lib/input';
|
|
2272
853
|
import React from 'react';
|
|
2273
854
|
export const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
|
|
2274
855
|
|
|
2275
856
|
}
|
|
2276
|
-
declare module '@authing/react-ui-components/
|
|
2277
|
-
import { GuardModuleAction } from '@authing/react-ui-components/
|
|
857
|
+
declare module '@authing/react-ui-components/Login/codemap' {
|
|
858
|
+
import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
|
|
2278
859
|
export const codeMap: Record<number, GuardModuleAction>;
|
|
2279
860
|
|
|
2280
861
|
}
|
|
2281
|
-
declare module '@authing/react-ui-components/
|
|
862
|
+
declare module '@authing/react-ui-components/Login/core/withAD' {
|
|
2282
863
|
/// <reference types="react" />
|
|
2283
|
-
import { Agreement } from '@authing/react-ui-components/
|
|
2284
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
864
|
+
import { Agreement } from '@authing/react-ui-components/Type/application';
|
|
2285
865
|
interface LoginWithADProps {
|
|
2286
866
|
publicKey: string;
|
|
2287
867
|
autoRegister?: boolean;
|
|
@@ -2289,36 +869,25 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
|
2289
869
|
onLoginFailed: any;
|
|
2290
870
|
onBeforeLogin: any;
|
|
2291
871
|
agreements: Agreement[];
|
|
2292
|
-
/**
|
|
2293
|
-
* 回填的数据
|
|
2294
|
-
*/
|
|
2295
|
-
backfillData?: BackFillMultipleState;
|
|
2296
|
-
/**
|
|
2297
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2298
|
-
*/
|
|
2299
|
-
multipleInstance?: StoreInstance;
|
|
2300
872
|
}
|
|
2301
873
|
export const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
|
|
2302
874
|
export {};
|
|
2303
875
|
|
|
2304
876
|
}
|
|
2305
|
-
declare module '@authing/react-ui-components/
|
|
877
|
+
declare module '@authing/react-ui-components/Login/core/withAppQrcode' {
|
|
2306
878
|
/// <reference types="react" />
|
|
2307
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2308
879
|
interface LoginWithAppQrcodeProps {
|
|
2309
880
|
onLoginSuccess: any;
|
|
2310
881
|
canLoop: boolean;
|
|
2311
882
|
qrCodeScanOptions: any;
|
|
2312
|
-
multipleInstance?: StoreInstance;
|
|
2313
883
|
}
|
|
2314
884
|
export const LoginWithAppQrcode: (props: LoginWithAppQrcodeProps) => JSX.Element;
|
|
2315
885
|
export {};
|
|
2316
886
|
|
|
2317
887
|
}
|
|
2318
|
-
declare module '@authing/react-ui-components/
|
|
888
|
+
declare module '@authing/react-ui-components/Login/core/withLDAP' {
|
|
2319
889
|
/// <reference types="react" />
|
|
2320
|
-
import { Agreement } from '@authing/react-ui-components/
|
|
2321
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
890
|
+
import { Agreement } from '@authing/react-ui-components/Type/application';
|
|
2322
891
|
interface LoginWithLDAPProps {
|
|
2323
892
|
publicKey: string;
|
|
2324
893
|
autoRegister?: boolean;
|
|
@@ -2327,30 +896,22 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
|
2327
896
|
onLoginFailed: any;
|
|
2328
897
|
onBeforeLogin: any;
|
|
2329
898
|
agreements: Agreement[];
|
|
2330
|
-
/**
|
|
2331
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2332
|
-
*/
|
|
2333
|
-
multipleInstance?: StoreInstance;
|
|
2334
|
-
/**
|
|
2335
|
-
* 多账号回填的数据
|
|
2336
|
-
*/
|
|
2337
|
-
backfillData?: BackFillMultipleState;
|
|
2338
899
|
}
|
|
2339
900
|
export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
|
|
2340
901
|
export {};
|
|
2341
902
|
|
|
2342
903
|
}
|
|
2343
|
-
declare module '@authing/react-ui-components/
|
|
904
|
+
declare module '@authing/react-ui-components/Login/core/withPassword/FormItemAccount' {
|
|
2344
905
|
import { FormItemProps } from 'antd/lib/form';
|
|
2345
906
|
import React from 'react';
|
|
2346
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/
|
|
907
|
+
import { PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2347
908
|
export interface FormItemAccountProps extends FormItemProps {
|
|
2348
909
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
2349
910
|
}
|
|
2350
911
|
export const FormItemAccount: React.FC<FormItemAccountProps>;
|
|
2351
912
|
|
|
2352
913
|
}
|
|
2353
|
-
declare module '@authing/react-ui-components/
|
|
914
|
+
declare module '@authing/react-ui-components/Login/core/withPassword/GraphicVerifyCode' {
|
|
2354
915
|
import { InputProps } from 'antd/lib/input';
|
|
2355
916
|
import React from 'react';
|
|
2356
917
|
export interface GraphicVerifyCodeProps extends InputProps {
|
|
@@ -2360,22 +921,20 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2360
921
|
export const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
|
|
2361
922
|
|
|
2362
923
|
}
|
|
2363
|
-
declare module '@authing/react-ui-components/
|
|
924
|
+
declare module '@authing/react-ui-components/Login/core/withPassword/InputAccount' {
|
|
2364
925
|
import { InputProps } from 'antd/lib/input';
|
|
2365
926
|
import React from 'react';
|
|
2366
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/
|
|
927
|
+
import { PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2367
928
|
export interface InputAccountProps extends InputProps {
|
|
2368
929
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
2369
930
|
}
|
|
2370
931
|
export const InputAccount: React.FC<InputAccountProps>;
|
|
2371
932
|
|
|
2372
933
|
}
|
|
2373
|
-
declare module '@authing/react-ui-components/
|
|
934
|
+
declare module '@authing/react-ui-components/Login/core/withPassword/index' {
|
|
2374
935
|
/// <reference types="react" />
|
|
2375
|
-
import {
|
|
2376
|
-
import { LoginMethods } from '@authing/react-ui-components/
|
|
2377
|
-
import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
|
|
2378
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
936
|
+
import { AuthingResponse } from '@authing/react-ui-components/_utils/http';
|
|
937
|
+
import { Agreement, LoginMethods, PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2379
938
|
interface LoginWithPasswordProps {
|
|
2380
939
|
publicKey: string;
|
|
2381
940
|
autoRegister?: boolean;
|
|
@@ -2389,23 +948,15 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2389
948
|
loginWay?: LoginMethods;
|
|
2390
949
|
submitButText?: string;
|
|
2391
950
|
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2392
|
-
/**
|
|
2393
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2394
|
-
*/
|
|
2395
|
-
multipleInstance?: StoreInstance;
|
|
2396
|
-
/**
|
|
2397
|
-
* 多账号回填的数据
|
|
2398
|
-
*/
|
|
2399
|
-
backfillData?: BackFillMultipleState;
|
|
2400
951
|
}
|
|
2401
952
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2402
953
|
export {};
|
|
2403
954
|
|
|
2404
955
|
}
|
|
2405
|
-
declare module '@authing/react-ui-components/
|
|
956
|
+
declare module '@authing/react-ui-components/Login/core/withVerifyCode/FormItemIdentify' {
|
|
2406
957
|
import { FormItemProps } from 'antd/lib/form';
|
|
2407
958
|
import React from 'react';
|
|
2408
|
-
import { VerifyLoginMethods } from '@authing/react-ui-components/
|
|
959
|
+
import { VerifyLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2409
960
|
export interface FormItemIdentifyProps extends FormItemProps {
|
|
2410
961
|
checkRepeat?: boolean;
|
|
2411
962
|
checkExist?: boolean;
|
|
@@ -2416,7 +967,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2416
967
|
export const FormItemIdentify: React.FC<FormItemIdentifyProps>;
|
|
2417
968
|
|
|
2418
969
|
}
|
|
2419
|
-
declare module '@authing/react-ui-components/
|
|
970
|
+
declare module '@authing/react-ui-components/Login/core/withVerifyCode/InputInternationPhone' {
|
|
2420
971
|
import { InputProps } from 'antd/lib/input';
|
|
2421
972
|
import React from 'react';
|
|
2422
973
|
export interface InputInternationPhoneProps extends InputProps {
|
|
@@ -2426,14 +977,10 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2426
977
|
export const InputInternationPhone: React.FC<InputInternationPhoneProps>;
|
|
2427
978
|
|
|
2428
979
|
}
|
|
2429
|
-
declare module '@authing/react-ui-components/
|
|
980
|
+
declare module '@authing/react-ui-components/Login/core/withVerifyCode/VirtualDropdown' {
|
|
2430
981
|
import React, { FC } from 'react';
|
|
2431
982
|
import './styles.less';
|
|
2432
983
|
export interface VirtualDropdownProps {
|
|
2433
|
-
/**
|
|
2434
|
-
* 回填的国际化区号
|
|
2435
|
-
*/
|
|
2436
|
-
regionCode?: string;
|
|
2437
984
|
value?: string;
|
|
2438
985
|
onChange?: (value: string) => void;
|
|
2439
986
|
style?: React.CSSProperties;
|
|
@@ -2441,132 +988,55 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2441
988
|
export const VirtualDropdown: FC<VirtualDropdownProps>;
|
|
2442
989
|
|
|
2443
990
|
}
|
|
2444
|
-
declare module '@authing/react-ui-components/
|
|
991
|
+
declare module '@authing/react-ui-components/Login/core/withVerifyCode/index' {
|
|
2445
992
|
/// <reference types="react" />
|
|
2446
993
|
import './styles.less';
|
|
2447
|
-
const LoginWithVerifyCode: (props: any) => JSX.Element;
|
|
2448
|
-
export { LoginWithVerifyCode };
|
|
994
|
+
export const LoginWithVerifyCode: (props: any) => JSX.Element;
|
|
2449
995
|
|
|
2450
996
|
}
|
|
2451
|
-
declare module '@authing/react-ui-components/
|
|
997
|
+
declare module '@authing/react-ui-components/Login/core/withVerifyCode/inputIdentify' {
|
|
2452
998
|
import { InputProps } from 'antd/lib/input';
|
|
2453
999
|
import React from 'react';
|
|
2454
|
-
import { VerifyLoginMethods } from '@authing/react-ui-components/
|
|
1000
|
+
import { VerifyLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2455
1001
|
export interface InputIdentifyProps extends InputProps {
|
|
2456
1002
|
methods: VerifyLoginMethods[];
|
|
2457
1003
|
}
|
|
2458
1004
|
export const InputIdentify: React.FC<InputIdentifyProps>;
|
|
2459
1005
|
|
|
2460
1006
|
}
|
|
2461
|
-
declare module '@authing/react-ui-components/
|
|
1007
|
+
declare module '@authing/react-ui-components/Login/core/withWechatMiniQrcode' {
|
|
2462
1008
|
/// <reference types="react" />
|
|
2463
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2464
1009
|
interface LoginWithWechatMiniQrcodeProps {
|
|
2465
1010
|
onLoginSuccess: any;
|
|
2466
1011
|
canLoop: boolean;
|
|
2467
1012
|
qrCodeScanOptions: any;
|
|
2468
|
-
id: string;
|
|
2469
|
-
multipleInstance?: StoreInstance;
|
|
2470
1013
|
}
|
|
2471
1014
|
export const LoginWithWechatMiniQrcode: (props: LoginWithWechatMiniQrcodeProps) => JSX.Element;
|
|
2472
1015
|
export {};
|
|
2473
1016
|
|
|
2474
1017
|
}
|
|
2475
|
-
declare module '@authing/react-ui-components/
|
|
1018
|
+
declare module '@authing/react-ui-components/Login/core/withWechatmpQrcode' {
|
|
2476
1019
|
/// <reference types="react" />
|
|
2477
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2478
1020
|
interface LoginWithWechatmpQrcodeProps {
|
|
2479
1021
|
onLoginSuccess: any;
|
|
2480
1022
|
canLoop: boolean;
|
|
2481
1023
|
qrCodeScanOptions: any;
|
|
2482
|
-
id: string;
|
|
2483
|
-
/**
|
|
2484
|
-
* 多账号存储实例
|
|
2485
|
-
*/
|
|
2486
|
-
multipleInstance?: StoreInstance;
|
|
2487
1024
|
}
|
|
2488
1025
|
export const LoginWithWechatmpQrcode: (props: LoginWithWechatmpQrcodeProps) => JSX.Element;
|
|
2489
1026
|
export {};
|
|
2490
1027
|
|
|
2491
1028
|
}
|
|
2492
|
-
declare module '@authing/react-ui-components/
|
|
2493
|
-
/// <reference types="react" />
|
|
2494
|
-
import { FormInstance } from 'antd/lib/form';
|
|
2495
|
-
import { BackFillMultipleState, LoginWay } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2496
|
-
/**
|
|
2497
|
-
* 多账号登录下 账户 & 登录方式自动回填
|
|
2498
|
-
* TODO: HOOK 参数有时间整理成为对象,开始没有想到有这么多
|
|
2499
|
-
* 调用地方 core 中需要回填的两个登录方式
|
|
2500
|
-
*/
|
|
2501
|
-
function useLoginMultipleBackFill(options: {
|
|
2502
|
-
form: FormInstance<any>;
|
|
2503
|
-
way: LoginWay;
|
|
2504
|
-
formKey: string;
|
|
2505
|
-
backfillData?: BackFillMultipleState;
|
|
2506
|
-
isOnlyInternationSms?: boolean;
|
|
2507
|
-
setAreaCode?: React.Dispatch<React.SetStateAction<string>>;
|
|
2508
|
-
cancelBackfill?: boolean;
|
|
2509
|
-
}): void;
|
|
2510
|
-
/**
|
|
2511
|
-
* 多账号统一状态管理
|
|
2512
|
-
* @param setLoginWay
|
|
2513
|
-
* @returns
|
|
2514
|
-
*/
|
|
2515
|
-
function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
2516
|
-
isMultipleAccount: boolean;
|
|
2517
|
-
multipleInstance: {
|
|
2518
|
-
initStore: (appId: string, options: {
|
|
2519
|
-
serverSideLoginMethods: LoginWay[];
|
|
2520
|
-
isInternationSms: boolean;
|
|
2521
|
-
}) => void;
|
|
2522
|
-
setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string | undefined, internation?: {
|
|
2523
|
-
phoneCountryCode: string;
|
|
2524
|
-
areaCode: string;
|
|
2525
|
-
} | undefined) => void;
|
|
2526
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
2527
|
-
id: string;
|
|
2528
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
2529
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
2530
|
-
username?: string | undefined;
|
|
2531
|
-
phone?: string | undefined;
|
|
2532
|
-
email?: string | undefined;
|
|
2533
|
-
}) => void;
|
|
2534
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
2535
|
-
name?: string | undefined;
|
|
2536
|
-
phone?: string | undefined;
|
|
2537
|
-
email?: string | undefined;
|
|
2538
|
-
}) => void;
|
|
2539
|
-
getMemoUser: (excludeWays?: LoginWay[]) => import("@authing/react-ui-components/components/Login/multipleAccounts/panel").SelectOptions[];
|
|
2540
|
-
getMemoSingleUser: (id: string) => {
|
|
2541
|
-
way: LoginWay;
|
|
2542
|
-
account: string;
|
|
2543
|
-
} | undefined;
|
|
2544
|
-
delUserById: (id: string) => string;
|
|
2545
|
-
getMemberState: () => boolean;
|
|
2546
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
2547
|
-
getOriginAccount: () => string;
|
|
2548
|
-
getOriginWay: () => string;
|
|
2549
|
-
} | undefined;
|
|
2550
|
-
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
2551
|
-
backfillData: BackFillMultipleState | undefined;
|
|
2552
|
-
defaultQrWay: string | undefined;
|
|
2553
|
-
};
|
|
2554
|
-
export { useLoginMultipleBackFill, useLoginMultiple };
|
|
2555
|
-
|
|
2556
|
-
}
|
|
2557
|
-
declare module '@authing/react-ui-components/components/Login/index' {
|
|
1029
|
+
declare module '@authing/react-ui-components/Login/index' {
|
|
2558
1030
|
/// <reference types="react" />
|
|
2559
1031
|
import './styles.less';
|
|
2560
1032
|
export const GuardLoginView: () => JSX.Element;
|
|
2561
1033
|
|
|
2562
1034
|
}
|
|
2563
|
-
declare module '@authing/react-ui-components/
|
|
2564
|
-
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/
|
|
2565
|
-
import { SocialConnectionProvider } from 'authing-js-sdk';
|
|
1035
|
+
declare module '@authing/react-ui-components/Login/interface' {
|
|
1036
|
+
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
|
|
1037
|
+
import { AuthenticationClient, SocialConnectionProvider, User } from 'authing-js-sdk';
|
|
2566
1038
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
2567
|
-
import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/
|
|
2568
|
-
import { PasswordLoginParams, LDAPLoginParams, ADLoginParams, PhoneCodeLoginParams, AuthenticationClient, User } from '@authing/react-ui-components/components/index';
|
|
2569
|
-
import { LoginMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
1039
|
+
import { Agreement, LoginMethods, PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
|
|
2570
1040
|
export interface LoginConfig extends IG2Config {
|
|
2571
1041
|
autoRegister?: boolean;
|
|
2572
1042
|
disableResetPwd?: boolean;
|
|
@@ -2586,7 +1056,7 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2586
1056
|
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
2587
1057
|
onLoginError?: (errorMessages: any) => void;
|
|
2588
1058
|
onLoginTabChange?: (activeTab: LoginMethods) => void;
|
|
2589
|
-
onBeforeLogin?: (loginInfo:
|
|
1059
|
+
onBeforeLogin?: (loginInfo: any, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2590
1060
|
}
|
|
2591
1061
|
export interface GuardLoginProps extends IG2FCProps, LoginEvents {
|
|
2592
1062
|
config?: Partial<LoginConfig>;
|
|
@@ -2602,90 +1072,16 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2602
1072
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2603
1073
|
|
|
2604
1074
|
}
|
|
2605
|
-
declare module '@authing/react-ui-components/
|
|
2606
|
-
import React from 'react';
|
|
2607
|
-
import { LoginWay, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2608
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
2609
|
-
interface MultipleAccountsProps {
|
|
2610
|
-
/**
|
|
2611
|
-
* 多账号存储实例
|
|
2612
|
-
*/
|
|
2613
|
-
multipleInstance?: StoreInstance;
|
|
2614
|
-
/**
|
|
2615
|
-
* 切换 Guard 方法
|
|
2616
|
-
*/
|
|
2617
|
-
changeModule?: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
|
|
2618
|
-
/**
|
|
2619
|
-
* 切换多账号状态
|
|
2620
|
-
*/
|
|
2621
|
-
referMultipleState?: (type: 'login' | 'multiple', data?: {
|
|
2622
|
-
account: string;
|
|
2623
|
-
way: LoginWay;
|
|
2624
|
-
}) => void;
|
|
2625
|
-
}
|
|
2626
|
-
const MultipleAccounts: React.NamedExoticComponent<MultipleAccountsProps>;
|
|
2627
|
-
export { MultipleAccounts };
|
|
2628
|
-
|
|
2629
|
-
}
|
|
2630
|
-
declare module '@authing/react-ui-components/components/Login/multipleAccounts/panel' {
|
|
2631
|
-
import React from 'react';
|
|
2632
|
-
import './style.less';
|
|
2633
|
-
interface SelectPanelProps {
|
|
2634
|
-
lists: SelectOptions[];
|
|
2635
|
-
/**
|
|
2636
|
-
* 点击删除
|
|
2637
|
-
*/
|
|
2638
|
-
handleDel: (id: string) => void;
|
|
2639
|
-
/**
|
|
2640
|
-
* 点击 li
|
|
2641
|
-
*/
|
|
2642
|
-
onClick: (id: string) => void;
|
|
2643
|
-
}
|
|
2644
|
-
export interface SelectOptions {
|
|
2645
|
-
/**
|
|
2646
|
-
* 头像
|
|
2647
|
-
*/
|
|
2648
|
-
photo?: string;
|
|
2649
|
-
/**
|
|
2650
|
-
* 标题
|
|
2651
|
-
*/
|
|
2652
|
-
title?: string;
|
|
2653
|
-
/**
|
|
2654
|
-
* 描述
|
|
2655
|
-
*/
|
|
2656
|
-
description?: string;
|
|
2657
|
-
/**
|
|
2658
|
-
* 用户 ID 唯一标识符
|
|
2659
|
-
*/
|
|
2660
|
-
id: string | 'other';
|
|
2661
|
-
/**
|
|
2662
|
-
* 显示操作栏 default: true
|
|
2663
|
-
*/
|
|
2664
|
-
operation?: boolean;
|
|
2665
|
-
/**
|
|
2666
|
-
* 登录时间
|
|
2667
|
-
*/
|
|
2668
|
-
_updateTime: number;
|
|
2669
|
-
/**
|
|
2670
|
-
* 替代图片元素
|
|
2671
|
-
*/
|
|
2672
|
-
element?: React.ReactElement;
|
|
2673
|
-
}
|
|
2674
|
-
const SelectPanel: React.FC<SelectPanelProps>;
|
|
2675
|
-
export { SelectPanel };
|
|
2676
|
-
|
|
2677
|
-
}
|
|
2678
|
-
declare module '@authing/react-ui-components/components/Login/socialLogin/IdpButton/index' {
|
|
1075
|
+
declare module '@authing/react-ui-components/Login/socialLogin/IdpButton/index' {
|
|
2679
1076
|
/// <reference types="react" />
|
|
2680
1077
|
export const IdpButton: (props: any) => JSX.Element | null;
|
|
2681
1078
|
|
|
2682
1079
|
}
|
|
2683
|
-
declare module '@authing/react-ui-components/
|
|
1080
|
+
declare module '@authing/react-ui-components/Login/socialLogin/index' {
|
|
2684
1081
|
import React from 'react';
|
|
2685
|
-
import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2686
1082
|
import './style.less';
|
|
2687
|
-
import { GuardLocalConfig } from '@authing/react-ui-components/
|
|
2688
|
-
import {
|
|
1083
|
+
import { GuardLocalConfig } from '@authing/react-ui-components/Guard/index';
|
|
1084
|
+
import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/Type/application';
|
|
2689
1085
|
export interface SocialLoginProps {
|
|
2690
1086
|
appId: string;
|
|
2691
1087
|
config: GuardLocalConfig;
|
|
@@ -2693,25 +1089,21 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
|
|
|
2693
1089
|
onLoginSuccess: any;
|
|
2694
1090
|
enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
|
|
2695
1091
|
socialConnectionObjs: SocialConnectionItem[];
|
|
2696
|
-
/**
|
|
2697
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2698
|
-
*/
|
|
2699
|
-
multipleInstance?: StoreInstance;
|
|
2700
1092
|
}
|
|
2701
1093
|
export const SocialLogin: React.FC<SocialLoginProps>;
|
|
2702
1094
|
|
|
2703
1095
|
}
|
|
2704
|
-
declare module '@authing/react-ui-components/
|
|
2705
|
-
import { AuthingResponse } from '@authing/react-ui-components/
|
|
2706
|
-
export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/
|
|
1096
|
+
declare module '@authing/react-ui-components/Login/socialLogin/postMessage' {
|
|
1097
|
+
import { AuthingResponse } from '@authing/react-ui-components/_utils/http';
|
|
1098
|
+
export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any> | {
|
|
2707
1099
|
code: any;
|
|
2708
1100
|
data: any;
|
|
2709
1101
|
onGuardHandling: undefined;
|
|
2710
1102
|
} | undefined;
|
|
2711
|
-
export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/
|
|
1103
|
+
export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>;
|
|
2712
1104
|
|
|
2713
1105
|
}
|
|
2714
|
-
declare module '@authing/react-ui-components/
|
|
1106
|
+
declare module '@authing/react-ui-components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
|
|
2715
1107
|
import { FormItemProps } from 'antd/lib/form';
|
|
2716
1108
|
import React from 'react';
|
|
2717
1109
|
import './style.less';
|
|
@@ -2722,7 +1114,7 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/Veri
|
|
|
2722
1114
|
export const VerifyCodeFormItem: React.FC<VerifyCodeFormItemProps>;
|
|
2723
1115
|
|
|
2724
1116
|
}
|
|
2725
|
-
declare module '@authing/react-ui-components/
|
|
1117
|
+
declare module '@authing/react-ui-components/MFA/VerifyCodeInput/index' {
|
|
2726
1118
|
import React, { FC } from 'react';
|
|
2727
1119
|
import './style.less';
|
|
2728
1120
|
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -2739,7 +1131,7 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/inde
|
|
|
2739
1131
|
export {};
|
|
2740
1132
|
|
|
2741
1133
|
}
|
|
2742
|
-
declare module '@authing/react-ui-components/
|
|
1134
|
+
declare module '@authing/react-ui-components/MFA/businessRequest' {
|
|
2743
1135
|
export enum MfaBusinessAction {
|
|
2744
1136
|
VerifyEmail = "verify-email",
|
|
2745
1137
|
VerifySms = "verify-sms",
|
|
@@ -2747,7 +1139,7 @@ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
|
|
|
2747
1139
|
VerifyFace = "verify-face",
|
|
2748
1140
|
AssociateFace = "associate-face"
|
|
2749
1141
|
}
|
|
2750
|
-
export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/
|
|
1142
|
+
export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
2751
1143
|
interface VerifySmsContent {
|
|
2752
1144
|
phone: string;
|
|
2753
1145
|
code: string;
|
|
@@ -2773,29 +1165,29 @@ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
|
|
|
2773
1165
|
isExternalPhoto?: boolean;
|
|
2774
1166
|
mfaToken?: string;
|
|
2775
1167
|
}
|
|
2776
|
-
export const VerifyEmail: (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/
|
|
2777
|
-
export const VerifySms: (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/
|
|
2778
|
-
export const VerifyTotp: (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/
|
|
2779
|
-
export const VerifyFace: (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/
|
|
2780
|
-
export const AssociateFace: (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/
|
|
1168
|
+
export const VerifyEmail: (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1169
|
+
export const VerifySms: (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1170
|
+
export const VerifyTotp: (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1171
|
+
export const VerifyFace: (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1172
|
+
export const AssociateFace: (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
2781
1173
|
export const useMfaBusinessRequest: () => {
|
|
2782
|
-
"verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/
|
|
2783
|
-
"verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/
|
|
2784
|
-
"verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/
|
|
2785
|
-
"verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/
|
|
2786
|
-
"associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/
|
|
1174
|
+
"verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1175
|
+
"verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1176
|
+
"verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1177
|
+
"verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
1178
|
+
"associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
|
|
2787
1179
|
};
|
|
2788
1180
|
export {};
|
|
2789
1181
|
|
|
2790
1182
|
}
|
|
2791
|
-
declare module '@authing/react-ui-components/
|
|
2792
|
-
import { GuardModuleAction } from '@authing/react-ui-components/
|
|
1183
|
+
declare module '@authing/react-ui-components/MFA/codemap' {
|
|
1184
|
+
import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
|
|
2793
1185
|
export const codeMap: Record<number, GuardModuleAction>;
|
|
2794
1186
|
|
|
2795
1187
|
}
|
|
2796
|
-
declare module '@authing/react-ui-components/
|
|
1188
|
+
declare module '@authing/react-ui-components/MFA/core/email' {
|
|
2797
1189
|
import React from 'react';
|
|
2798
|
-
import { MFAConfig } from '@authing/react-ui-components/
|
|
1190
|
+
import { MFAConfig } from '@authing/react-ui-components/MFA/interface';
|
|
2799
1191
|
interface BindMFAEmailProps {
|
|
2800
1192
|
mfaToken: string;
|
|
2801
1193
|
onBind: (email: string) => void;
|
|
@@ -2819,12 +1211,12 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
|
2819
1211
|
export {};
|
|
2820
1212
|
|
|
2821
1213
|
}
|
|
2822
|
-
declare module '@authing/react-ui-components/
|
|
1214
|
+
declare module '@authing/react-ui-components/MFA/core/face' {
|
|
2823
1215
|
/// <reference types="react" />
|
|
2824
1216
|
export const MFAFace: (props: any) => JSX.Element;
|
|
2825
1217
|
|
|
2826
1218
|
}
|
|
2827
|
-
declare module '@authing/react-ui-components/
|
|
1219
|
+
declare module '@authing/react-ui-components/MFA/core/face_deps' {
|
|
2828
1220
|
export const devicesConstraints: {
|
|
2829
1221
|
video: {
|
|
2830
1222
|
width: number;
|
|
@@ -2838,9 +1230,9 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
|
|
|
2838
1230
|
export function dataURItoBlob(base64Data: any): Blob;
|
|
2839
1231
|
|
|
2840
1232
|
}
|
|
2841
|
-
declare module '@authing/react-ui-components/
|
|
1233
|
+
declare module '@authing/react-ui-components/MFA/core/sms' {
|
|
2842
1234
|
import React from 'react';
|
|
2843
|
-
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/
|
|
1235
|
+
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/MFA/interface';
|
|
2844
1236
|
export interface BindMFASmsProps {
|
|
2845
1237
|
mfaToken: string;
|
|
2846
1238
|
onBind: (phone: string) => void;
|
|
@@ -2869,9 +1261,9 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
2869
1261
|
}>;
|
|
2870
1262
|
|
|
2871
1263
|
}
|
|
2872
|
-
declare module '@authing/react-ui-components/
|
|
1264
|
+
declare module '@authing/react-ui-components/MFA/core/totp' {
|
|
2873
1265
|
import React from 'react';
|
|
2874
|
-
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/
|
|
1266
|
+
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/MFA/interface';
|
|
2875
1267
|
export interface BindMFATotpProps {
|
|
2876
1268
|
initData: GuardMFAInitData;
|
|
2877
1269
|
changeModule: any;
|
|
@@ -2892,7 +1284,7 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
|
2892
1284
|
export const MFATotp: React.FC<MFATotpProps>;
|
|
2893
1285
|
|
|
2894
1286
|
}
|
|
2895
|
-
declare module '@authing/react-ui-components/
|
|
1287
|
+
declare module '@authing/react-ui-components/MFA/index' {
|
|
2896
1288
|
import React from 'react';
|
|
2897
1289
|
import './styles.less';
|
|
2898
1290
|
interface MFABackStateContextType {
|
|
@@ -2904,9 +1296,9 @@ declare module '@authing/react-ui-components/components/MFA/index' {
|
|
|
2904
1296
|
export {};
|
|
2905
1297
|
|
|
2906
1298
|
}
|
|
2907
|
-
declare module '@authing/react-ui-components/
|
|
2908
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/
|
|
2909
|
-
import { AuthenticationClient, User } from '
|
|
1299
|
+
declare module '@authing/react-ui-components/MFA/interface' {
|
|
1300
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
1301
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
2910
1302
|
export interface MFAConfig extends IG2Config {
|
|
2911
1303
|
autoRegister: boolean;
|
|
2912
1304
|
}
|
|
@@ -2947,9 +1339,9 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2947
1339
|
}
|
|
2948
1340
|
|
|
2949
1341
|
}
|
|
2950
|
-
declare module '@authing/react-ui-components/
|
|
1342
|
+
declare module '@authing/react-ui-components/MFA/mfaMethods/index' {
|
|
2951
1343
|
import React from 'react';
|
|
2952
|
-
import { MFAType } from '@authing/react-ui-components/
|
|
1344
|
+
import { MFAType } from '@authing/react-ui-components/MFA/interface';
|
|
2953
1345
|
import './style.less';
|
|
2954
1346
|
export interface MFAMethodsProps {
|
|
2955
1347
|
method: MFAType;
|
|
@@ -2958,7 +1350,7 @@ declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
|
|
|
2958
1350
|
export const MFAMethods: React.FC<MFAMethodsProps>;
|
|
2959
1351
|
|
|
2960
1352
|
}
|
|
2961
|
-
declare module '@authing/react-ui-components/
|
|
1353
|
+
declare module '@authing/react-ui-components/NeedHelpView/core/describeQuestions' {
|
|
2962
1354
|
/// <reference types="react" />
|
|
2963
1355
|
interface describeQuestionsProps {
|
|
2964
1356
|
appId: string;
|
|
@@ -2969,20 +1361,20 @@ declare module '@authing/react-ui-components/components/NeedHelpView/core/descri
|
|
|
2969
1361
|
export {};
|
|
2970
1362
|
|
|
2971
1363
|
}
|
|
2972
|
-
declare module '@authing/react-ui-components/
|
|
1364
|
+
declare module '@authing/react-ui-components/NeedHelpView/index' {
|
|
2973
1365
|
/// <reference types="react" />
|
|
2974
1366
|
export const GuardNeedHelpView: (props: any) => JSX.Element;
|
|
2975
1367
|
|
|
2976
1368
|
}
|
|
2977
|
-
declare module '@authing/react-ui-components/
|
|
1369
|
+
declare module '@authing/react-ui-components/RecoveryCode/businessRequest' {
|
|
2978
1370
|
export enum TotpRecoveryCodeBusinessAction {
|
|
2979
1371
|
RecoveryTotp = "recovery-totp",
|
|
2980
1372
|
ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
|
|
2981
1373
|
}
|
|
2982
|
-
export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/
|
|
1374
|
+
export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<T>>;
|
|
2983
1375
|
|
|
2984
1376
|
}
|
|
2985
|
-
declare module '@authing/react-ui-components/
|
|
1377
|
+
declare module '@authing/react-ui-components/RecoveryCode/core/saveCode' {
|
|
2986
1378
|
import React from 'react';
|
|
2987
1379
|
export const SaveCode: React.FC<{
|
|
2988
1380
|
secret: string;
|
|
@@ -2990,9 +1382,9 @@ declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCo
|
|
|
2990
1382
|
}>;
|
|
2991
1383
|
|
|
2992
1384
|
}
|
|
2993
|
-
declare module '@authing/react-ui-components/
|
|
1385
|
+
declare module '@authing/react-ui-components/RecoveryCode/core/useCode' {
|
|
2994
1386
|
import React from 'react';
|
|
2995
|
-
import { User } from '
|
|
1387
|
+
import { User } from 'authing-js-sdk';
|
|
2996
1388
|
export interface UseCodeProps {
|
|
2997
1389
|
mfaToken: string;
|
|
2998
1390
|
onSubmit: (recoveryCode: string, user?: User) => void;
|
|
@@ -3000,7 +1392,7 @@ declare module '@authing/react-ui-components/components/RecoveryCode/core/useCod
|
|
|
3000
1392
|
export const UseCode: React.FC<UseCodeProps>;
|
|
3001
1393
|
|
|
3002
1394
|
}
|
|
3003
|
-
declare module '@authing/react-ui-components/
|
|
1395
|
+
declare module '@authing/react-ui-components/RecoveryCode/index' {
|
|
3004
1396
|
import React from 'react';
|
|
3005
1397
|
import './style.less';
|
|
3006
1398
|
export const RecoveryCode: React.FC;
|
|
@@ -3008,9 +1400,9 @@ declare module '@authing/react-ui-components/components/RecoveryCode/index' {
|
|
|
3008
1400
|
export const GuardRecoveryCodeView: React.FC;
|
|
3009
1401
|
|
|
3010
1402
|
}
|
|
3011
|
-
declare module '@authing/react-ui-components/
|
|
3012
|
-
import { IG2Config, IG2Events } from '@authing/react-ui-components/
|
|
3013
|
-
import { AuthenticationClient, User } from '
|
|
1403
|
+
declare module '@authing/react-ui-components/RecoveryCode/interface' {
|
|
1404
|
+
import { IG2Config, IG2Events } from '@authing/react-ui-components/Type/index';
|
|
1405
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
3014
1406
|
export interface RecoveryCodeConfig extends IG2Config {
|
|
3015
1407
|
}
|
|
3016
1408
|
export const getDefaultRecoveryCodeConfig: () => RecoveryCodeConfig;
|
|
@@ -3019,15 +1411,15 @@ declare module '@authing/react-ui-components/components/RecoveryCode/interface'
|
|
|
3019
1411
|
}
|
|
3020
1412
|
|
|
3021
1413
|
}
|
|
3022
|
-
declare module '@authing/react-ui-components/
|
|
3023
|
-
import { GuardModuleAction } from '@authing/react-ui-components/
|
|
1414
|
+
declare module '@authing/react-ui-components/Register/codemap' {
|
|
1415
|
+
import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
|
|
3024
1416
|
export const codeMap: Record<number, GuardModuleAction>;
|
|
3025
1417
|
|
|
3026
1418
|
}
|
|
3027
|
-
declare module '@authing/react-ui-components/
|
|
1419
|
+
declare module '@authing/react-ui-components/Register/components/Agreements/index' {
|
|
3028
1420
|
import React, { FC } from 'react';
|
|
3029
1421
|
import './style.less';
|
|
3030
|
-
import { Agreement } from '@authing/react-ui-components/
|
|
1422
|
+
import { Agreement } from '@authing/react-ui-components/Type/application';
|
|
3031
1423
|
export interface AgreementsProps {
|
|
3032
1424
|
value?: boolean;
|
|
3033
1425
|
onChange?: (value: boolean) => void;
|
|
@@ -3038,9 +1430,9 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
|
|
|
3038
1430
|
export const Agreements: FC<AgreementsProps>;
|
|
3039
1431
|
|
|
3040
1432
|
}
|
|
3041
|
-
declare module '@authing/react-ui-components/
|
|
1433
|
+
declare module '@authing/react-ui-components/Register/core/WithCode' {
|
|
3042
1434
|
import React from 'react';
|
|
3043
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/
|
|
1435
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
3044
1436
|
export interface RegisterWithCodeProps {
|
|
3045
1437
|
onRegisterSuccess: Function;
|
|
3046
1438
|
onRegisterFailed: Function;
|
|
@@ -3053,9 +1445,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithCode'
|
|
|
3053
1445
|
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
3054
1446
|
|
|
3055
1447
|
}
|
|
3056
|
-
declare module '@authing/react-ui-components/
|
|
1448
|
+
declare module '@authing/react-ui-components/Register/core/WithEmail' {
|
|
3057
1449
|
import React from 'react';
|
|
3058
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/
|
|
1450
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
3059
1451
|
export interface RegisterWithEmailProps {
|
|
3060
1452
|
onRegisterSuccess: Function;
|
|
3061
1453
|
onRegisterFailed: Function;
|
|
@@ -3067,9 +1459,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
3067
1459
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
3068
1460
|
|
|
3069
1461
|
}
|
|
3070
|
-
declare module '@authing/react-ui-components/
|
|
1462
|
+
declare module '@authing/react-ui-components/Register/core/WithEmailCode' {
|
|
3071
1463
|
import React from 'react';
|
|
3072
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/
|
|
1464
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
3073
1465
|
export interface RegisterWithEmailCodeProps {
|
|
3074
1466
|
onRegisterSuccess: Function;
|
|
3075
1467
|
onRegisterFailed: Function;
|
|
@@ -3081,9 +1473,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmailC
|
|
|
3081
1473
|
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
3082
1474
|
|
|
3083
1475
|
}
|
|
3084
|
-
declare module '@authing/react-ui-components/
|
|
1476
|
+
declare module '@authing/react-ui-components/Register/core/WithPhone' {
|
|
3085
1477
|
import React from 'react';
|
|
3086
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/
|
|
1478
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
3087
1479
|
export interface RegisterWithPhoneProps {
|
|
3088
1480
|
onRegisterSuccess: Function;
|
|
3089
1481
|
onRegisterFailed: Function;
|
|
@@ -3094,15 +1486,15 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
|
|
|
3094
1486
|
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
3095
1487
|
|
|
3096
1488
|
}
|
|
3097
|
-
declare module '@authing/react-ui-components/
|
|
1489
|
+
declare module '@authing/react-ui-components/Register/index' {
|
|
3098
1490
|
import React from 'react';
|
|
3099
1491
|
export const GuardRegisterView: React.FC;
|
|
3100
1492
|
|
|
3101
1493
|
}
|
|
3102
|
-
declare module '@authing/react-ui-components/
|
|
3103
|
-
import {
|
|
3104
|
-
import {
|
|
3105
|
-
import { Agreement } from '@authing/react-ui-components/
|
|
1494
|
+
declare module '@authing/react-ui-components/Register/interface' {
|
|
1495
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
1496
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/Type/index';
|
|
1497
|
+
import { Agreement, RegisterMethods } from '@authing/react-ui-components/Type/application';
|
|
3106
1498
|
export interface RegisterConfig extends IG2Config {
|
|
3107
1499
|
disableRegister?: boolean;
|
|
3108
1500
|
registerMethods?: RegisterMethods[];
|
|
@@ -3113,7 +1505,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
3113
1505
|
registerContext?: any;
|
|
3114
1506
|
}
|
|
3115
1507
|
export interface RegisterEvents extends IG2Events {
|
|
3116
|
-
onBeforeRegister?: (registerInfo:
|
|
1508
|
+
onBeforeRegister?: (registerInfo: any, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
3117
1509
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
3118
1510
|
onRegisterError?: (error: any) => void;
|
|
3119
1511
|
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
@@ -3127,11 +1519,11 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
3127
1519
|
export const getDefaultRegisterConfig: () => RegisterConfig;
|
|
3128
1520
|
|
|
3129
1521
|
}
|
|
3130
|
-
declare module '@authing/react-ui-components/
|
|
1522
|
+
declare module '@authing/react-ui-components/Register/utils' {
|
|
3131
1523
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
3132
1524
|
|
|
3133
1525
|
}
|
|
3134
|
-
declare module '@authing/react-ui-components/
|
|
1526
|
+
declare module '@authing/react-ui-components/SelfUnlock/core/selfUnlock' {
|
|
3135
1527
|
import React from 'react';
|
|
3136
1528
|
export enum InputMethodMap {
|
|
3137
1529
|
email = "email-code",
|
|
@@ -3142,14 +1534,14 @@ declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlo
|
|
|
3142
1534
|
}) => JSX.Element;
|
|
3143
1535
|
|
|
3144
1536
|
}
|
|
3145
|
-
declare module '@authing/react-ui-components/
|
|
1537
|
+
declare module '@authing/react-ui-components/SelfUnlock/index' {
|
|
3146
1538
|
import React from 'react';
|
|
3147
1539
|
export const GuardUnlockView: React.FC;
|
|
3148
1540
|
|
|
3149
1541
|
}
|
|
3150
|
-
declare module '@authing/react-ui-components/
|
|
3151
|
-
import { AuthenticationClient, CommonMessage } from '
|
|
3152
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/
|
|
1542
|
+
declare module '@authing/react-ui-components/SelfUnlock/interface' {
|
|
1543
|
+
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
1544
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
|
|
3153
1545
|
export interface ForgetPasswordEvents extends IG2Events {
|
|
3154
1546
|
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
3155
1547
|
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
@@ -3165,7 +1557,7 @@ declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
|
3165
1557
|
}
|
|
3166
1558
|
|
|
3167
1559
|
}
|
|
3168
|
-
declare module '@authing/react-ui-components/
|
|
1560
|
+
declare module '@authing/react-ui-components/SendCode/SendCodeBtn' {
|
|
3169
1561
|
import React, { FC } from 'react';
|
|
3170
1562
|
import './style.less';
|
|
3171
1563
|
import { ButtonProps } from 'antd/lib/button';
|
|
@@ -3178,11 +1570,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
3178
1570
|
export const SendCodeBtn: FC<SendCodeProps>;
|
|
3179
1571
|
|
|
3180
1572
|
}
|
|
3181
|
-
declare module '@authing/react-ui-components/
|
|
1573
|
+
declare module '@authing/react-ui-components/SendCode/SendCodeByEmail' {
|
|
3182
1574
|
import { FC } from 'react';
|
|
3183
1575
|
import './style.less';
|
|
3184
1576
|
import { InputProps } from 'antd/lib/input';
|
|
3185
|
-
import { EmailScene } from '@authing/react-ui-components/
|
|
1577
|
+
import { EmailScene } from '@authing/react-ui-components/Type/index';
|
|
3186
1578
|
export interface SendCodeByEmailProps extends InputProps {
|
|
3187
1579
|
data?: string;
|
|
3188
1580
|
form?: any;
|
|
@@ -3194,7 +1586,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
|
|
|
3194
1586
|
export const SendCodeByEmail: FC<SendCodeByEmailProps>;
|
|
3195
1587
|
|
|
3196
1588
|
}
|
|
3197
|
-
declare module '@authing/react-ui-components/
|
|
1589
|
+
declare module '@authing/react-ui-components/SendCode/SendCodeByPhone' {
|
|
3198
1590
|
import { FC } from 'react';
|
|
3199
1591
|
import { SceneType } from 'authing-js-sdk';
|
|
3200
1592
|
import './style.less';
|
|
@@ -3212,7 +1604,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone
|
|
|
3212
1604
|
export const SendCodeByPhone: FC<SendCodeByPhoneProps>;
|
|
3213
1605
|
|
|
3214
1606
|
}
|
|
3215
|
-
declare module '@authing/react-ui-components/
|
|
1607
|
+
declare module '@authing/react-ui-components/SendCode/index' {
|
|
3216
1608
|
import { FC } from 'react';
|
|
3217
1609
|
import './style.less';
|
|
3218
1610
|
import { InputProps } from 'antd/lib/input';
|
|
@@ -3224,7 +1616,7 @@ declare module '@authing/react-ui-components/components/SendCode/index' {
|
|
|
3224
1616
|
export const SendCode: FC<SendPhoneCodeProps>;
|
|
3225
1617
|
|
|
3226
1618
|
}
|
|
3227
|
-
declare module '@authing/react-ui-components/
|
|
1619
|
+
declare module '@authing/react-ui-components/ShieldSpin/index' {
|
|
3228
1620
|
/// <reference types="react" />
|
|
3229
1621
|
interface IG2SpinProps {
|
|
3230
1622
|
size?: number;
|
|
@@ -3234,19 +1626,19 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
|
|
|
3234
1626
|
export {};
|
|
3235
1627
|
|
|
3236
1628
|
}
|
|
3237
|
-
declare module '@authing/react-ui-components/
|
|
1629
|
+
declare module '@authing/react-ui-components/SingleComponent/SingleComponent' {
|
|
3238
1630
|
/// <reference types="react" />
|
|
3239
|
-
import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/
|
|
1631
|
+
import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/index';
|
|
3240
1632
|
export function SingleComponent<T extends IG2FCProps>(props: T, guardModuleType: GuardModuleType, initData?: any): JSX.Element;
|
|
3241
1633
|
|
|
3242
1634
|
}
|
|
3243
|
-
declare module '@authing/react-ui-components/
|
|
1635
|
+
declare module '@authing/react-ui-components/SingleComponent/index' {
|
|
3244
1636
|
import React from 'react';
|
|
3245
|
-
import { GuardRegisterProps } from '@authing/react-ui-components/
|
|
1637
|
+
import { GuardRegisterProps } from '@authing/react-ui-components/Register/interface';
|
|
3246
1638
|
export const Register: React.FC<GuardRegisterProps>;
|
|
3247
1639
|
|
|
3248
1640
|
}
|
|
3249
|
-
declare module '@authing/react-ui-components/
|
|
1641
|
+
declare module '@authing/react-ui-components/SubmitButton/index' {
|
|
3250
1642
|
import React from 'react';
|
|
3251
1643
|
import { ButtonProps } from 'antd/lib/button';
|
|
3252
1644
|
interface SubmitButtonProps extends ButtonProps {
|
|
@@ -3255,42 +1647,299 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
3255
1647
|
onClick?: any;
|
|
3256
1648
|
disabled?: boolean;
|
|
3257
1649
|
}
|
|
3258
|
-
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
3259
|
-
export default _default;
|
|
3260
|
-
|
|
3261
|
-
}
|
|
3262
|
-
declare module '@authing/react-ui-components/
|
|
3263
|
-
import React from 'react';
|
|
3264
|
-
export const GuardSubmitSuccessView: React.FC;
|
|
3265
|
-
|
|
3266
|
-
}
|
|
3267
|
-
declare module '@authing/react-ui-components/
|
|
3268
|
-
import { GuardModuleType } from '@authing/react-ui-components/
|
|
3269
|
-
import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/
|
|
3270
|
-
export interface SubmitSuccessEvents extends IG2Events {
|
|
1650
|
+
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
1651
|
+
export default _default;
|
|
1652
|
+
|
|
1653
|
+
}
|
|
1654
|
+
declare module '@authing/react-ui-components/SubmitSuccess/index' {
|
|
1655
|
+
import React from 'react';
|
|
1656
|
+
export const GuardSubmitSuccessView: React.FC;
|
|
1657
|
+
|
|
1658
|
+
}
|
|
1659
|
+
declare module '@authing/react-ui-components/SubmitSuccess/interface' {
|
|
1660
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
|
|
1661
|
+
import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
|
|
1662
|
+
export interface SubmitSuccessEvents extends IG2Events {
|
|
1663
|
+
}
|
|
1664
|
+
export interface SubmitSuccessConfig extends IG2Config {
|
|
1665
|
+
}
|
|
1666
|
+
export interface SubmitSuccessInitData {
|
|
1667
|
+
title?: string;
|
|
1668
|
+
message?: string;
|
|
1669
|
+
text?: string;
|
|
1670
|
+
countDesc?: string;
|
|
1671
|
+
changeModule?: GuardModuleType;
|
|
1672
|
+
}
|
|
1673
|
+
export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
1674
|
+
config: SubmitSuccessConfig;
|
|
1675
|
+
initData?: SubmitSuccessInitData;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
}
|
|
1679
|
+
declare module '@authing/react-ui-components/Type/application' {
|
|
1680
|
+
import { Lang } from '@authing/react-ui-components/index';
|
|
1681
|
+
import { PasswordStrength } from '@authing/react-ui-components/_utils/index';
|
|
1682
|
+
export enum LoginMethods {
|
|
1683
|
+
LDAP = "ldap",
|
|
1684
|
+
AppQr = "app-qrcode",
|
|
1685
|
+
Password = "password",
|
|
1686
|
+
PhoneCode = "phone-code",
|
|
1687
|
+
WxMinQr = "wechat-miniprogram-qrcode",
|
|
1688
|
+
AD = "ad",
|
|
1689
|
+
WechatMpQrcode = "wechatmp-qrcode"
|
|
1690
|
+
}
|
|
1691
|
+
export enum OIDCConnectionMode {
|
|
1692
|
+
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
1693
|
+
BACK_CHANNEL = "BACK_CHANNEL"
|
|
1694
|
+
}
|
|
1695
|
+
export enum SocialConnectionProvider {
|
|
1696
|
+
ALIPAY = "alipay",
|
|
1697
|
+
GOOGLE = "google",
|
|
1698
|
+
WECHATPC = "wechat:pc",
|
|
1699
|
+
WECHATMP = "wechat:webpage-authorization",
|
|
1700
|
+
WECHAT_MINIPROGRAM = "wechat:miniprogram:default",
|
|
1701
|
+
WECHAT_MINIPROGRAM_QRCODE = "wechat:miniprogram:qrconnect",
|
|
1702
|
+
WECHAT_MINIPROGRAM_APPLAUNCH = "wechat:miniprogram:app-launch",
|
|
1703
|
+
WECHATMOBILE = "wechat:mobile",
|
|
1704
|
+
GITHUB = "github",
|
|
1705
|
+
QQ = "qq",
|
|
1706
|
+
WECHATWORK_ADDRESS_BOOK = "wechatwork:addressbook",
|
|
1707
|
+
WECHATWORK_CORP_QRCONNECT = "wechatwork:corp:qrconnect",
|
|
1708
|
+
WECHATWORK_SERVICEPROVIDER_QRCONNECT = "wechatwork:service-provider:qrconnect",
|
|
1709
|
+
DINGTALK = "dingtalk",
|
|
1710
|
+
WEIBO = "weibo",
|
|
1711
|
+
APPLE = "apple",
|
|
1712
|
+
APPLE_WEB = "apple:web",
|
|
1713
|
+
LARK_PUBLIC = "lark-public",
|
|
1714
|
+
LARK_INTERNAL = "lark-internal",
|
|
1715
|
+
BAIDU = "baidu",
|
|
1716
|
+
LINKEDIN = "linkedin",
|
|
1717
|
+
SLACK = "slack",
|
|
1718
|
+
YIDUN = "yidun",
|
|
1719
|
+
QINGCLOUD = "qingcloud",
|
|
1720
|
+
FACEBOOK = "facebook"
|
|
1721
|
+
}
|
|
1722
|
+
export enum Protocol {
|
|
1723
|
+
AD = "ad",
|
|
1724
|
+
CAS = "cas",
|
|
1725
|
+
LDAP = "ldap",
|
|
1726
|
+
OIDC = "oidc",
|
|
1727
|
+
SAML = "saml",
|
|
1728
|
+
OAUTH = "oauth",
|
|
1729
|
+
AZURE_AD = "azure-ad"
|
|
1730
|
+
}
|
|
1731
|
+
export interface IOAuthConnectionConfig {
|
|
1732
|
+
authEndPoint: string;
|
|
1733
|
+
tokenEndPoint: string;
|
|
1734
|
+
scope: string;
|
|
1735
|
+
clientId: string;
|
|
1736
|
+
clientSecret: string;
|
|
1737
|
+
authUrlTemplate: string;
|
|
1738
|
+
codeToTokenScript: string;
|
|
1739
|
+
tokenToUserInfoScript: string;
|
|
1740
|
+
tokenToUserInfoScriptFuncId: string;
|
|
1741
|
+
codeToTokenScriptFuncId: string;
|
|
1742
|
+
authUrl?: string;
|
|
1743
|
+
}
|
|
1744
|
+
export interface IAzureAdConnectionConfig {
|
|
1745
|
+
microsoftAzureAdDomain: string;
|
|
1746
|
+
clientId: string;
|
|
1747
|
+
syncUserProfileOnLogin: string;
|
|
1748
|
+
emailVerifiedDefault: boolean;
|
|
1749
|
+
authorizationUrl: string;
|
|
1750
|
+
callbackUrl: string;
|
|
1751
|
+
}
|
|
1752
|
+
export interface ISamlConnectionConfig {
|
|
1753
|
+
signInEndPoint: string;
|
|
1754
|
+
samlRequest?: string;
|
|
1755
|
+
samlIdpCert: string;
|
|
1756
|
+
samlSpCert: string;
|
|
1757
|
+
samlSpKey: string;
|
|
1758
|
+
signOutEndPoint: string;
|
|
1759
|
+
signSamlRequest: boolean;
|
|
1760
|
+
signatureAlgorithm: string;
|
|
1761
|
+
digestAlgorithm: string;
|
|
1762
|
+
protocolBinding: string;
|
|
1763
|
+
}
|
|
1764
|
+
export interface ICasConnectionConfig {
|
|
1765
|
+
casConnectionLoginUrl: string;
|
|
1766
|
+
}
|
|
1767
|
+
export interface SocialConnectionItem {
|
|
1768
|
+
name: string;
|
|
1769
|
+
name_en: string;
|
|
1770
|
+
displayName: string;
|
|
1771
|
+
logo: string;
|
|
1772
|
+
description: string;
|
|
1773
|
+
identifier: string;
|
|
1774
|
+
provider: SocialConnectionProvider;
|
|
1775
|
+
authorizationUrl: string;
|
|
1776
|
+
tooltip: Record<Lang, string>;
|
|
1777
|
+
}
|
|
1778
|
+
export enum RegisterMethods {
|
|
1779
|
+
Email = "email",
|
|
1780
|
+
Phone = "phone",
|
|
1781
|
+
EmailCode = "emailCode"
|
|
1782
|
+
}
|
|
1783
|
+
export type QrcodeTabsSettings = Record<LoginMethods, Array<{
|
|
1784
|
+
id: string;
|
|
1785
|
+
title: string;
|
|
1786
|
+
isDefault?: boolean;
|
|
1787
|
+
}>>;
|
|
1788
|
+
export interface OidcClientMetadata {
|
|
1789
|
+
grant_types: string[];
|
|
1790
|
+
client_id: string;
|
|
1791
|
+
redirect_uris: string[];
|
|
1792
|
+
scope: string;
|
|
1793
|
+
response_types: ResponseType[];
|
|
1794
|
+
}
|
|
1795
|
+
export interface OIDCConnectionConfig {
|
|
1796
|
+
issuerUrl: string;
|
|
1797
|
+
authorizationEdpoint: string;
|
|
1798
|
+
responseType: string;
|
|
1799
|
+
mode: OIDCConnectionMode;
|
|
1800
|
+
clientId: string;
|
|
1801
|
+
clientSecret: string;
|
|
1802
|
+
scopes: string;
|
|
1803
|
+
redirectUri: string;
|
|
1804
|
+
}
|
|
1805
|
+
export interface InternalExtendsField {
|
|
1806
|
+
type: 'internal';
|
|
1807
|
+
name: string;
|
|
1808
|
+
label: string;
|
|
1809
|
+
inputType: string;
|
|
1810
|
+
required: boolean;
|
|
1811
|
+
validateRules: any[];
|
|
1812
|
+
}
|
|
1813
|
+
export interface UserExtendsField {
|
|
1814
|
+
type: 'user';
|
|
1815
|
+
id: string;
|
|
1816
|
+
name: string;
|
|
1817
|
+
label: string;
|
|
1818
|
+
inputType: string;
|
|
1819
|
+
required: boolean;
|
|
1820
|
+
validateRules: any[];
|
|
1821
|
+
}
|
|
1822
|
+
export type ExtendsField = InternalExtendsField | UserExtendsField;
|
|
1823
|
+
export interface ApplicationPasswordTabConfig {
|
|
1824
|
+
enabledLoginMethods?: PasswordLoginMethods[];
|
|
3271
1825
|
}
|
|
3272
|
-
export interface
|
|
1826
|
+
export interface ApplicationVerifyCodeTabConfig {
|
|
1827
|
+
enabledLoginMethods: VerifyLoginMethods[];
|
|
3273
1828
|
}
|
|
3274
|
-
export interface
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
1829
|
+
export interface Agreement {
|
|
1830
|
+
id: number;
|
|
1831
|
+
title: string;
|
|
1832
|
+
required: boolean;
|
|
1833
|
+
lang: Lang;
|
|
1834
|
+
availableAt?: number;
|
|
3280
1835
|
}
|
|
3281
|
-
export
|
|
3282
|
-
|
|
3283
|
-
|
|
1836
|
+
export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
|
|
1837
|
+
export type VerifyLoginMethods = 'email-code' | 'phone-code';
|
|
1838
|
+
export type ComplateFiledsPlace = 'register' | 'login';
|
|
1839
|
+
export interface ApplicationConfig {
|
|
1840
|
+
id: string;
|
|
1841
|
+
allowedOrigins: string[];
|
|
1842
|
+
corsWhitelist: string[];
|
|
1843
|
+
cdnBase: string;
|
|
1844
|
+
userPoolId: string;
|
|
1845
|
+
rootUserPoolId: string;
|
|
1846
|
+
publicKey: string;
|
|
1847
|
+
internationalSmsConfig?: {
|
|
1848
|
+
enabled: boolean;
|
|
1849
|
+
defaultISOType: string;
|
|
1850
|
+
};
|
|
1851
|
+
css: string;
|
|
1852
|
+
customLoading?: string;
|
|
1853
|
+
name: string;
|
|
1854
|
+
logo: string;
|
|
1855
|
+
description?: string;
|
|
1856
|
+
redirectUris: string[];
|
|
1857
|
+
registerDisabled: boolean;
|
|
1858
|
+
mergeAdAndAccountPasswordLogin: boolean;
|
|
1859
|
+
registerTabs: {
|
|
1860
|
+
list: string[];
|
|
1861
|
+
default: string;
|
|
1862
|
+
title: {
|
|
1863
|
+
[x: string]: string;
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
registerTabsConfig: {
|
|
1867
|
+
list: string[];
|
|
1868
|
+
default: string;
|
|
1869
|
+
title: {
|
|
1870
|
+
[x: string]: string;
|
|
1871
|
+
};
|
|
1872
|
+
registerTypeConfig: {
|
|
1873
|
+
emailRegisterType?: RegisterMethods[];
|
|
1874
|
+
phoneRegisterType?: RegisterMethods[];
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
1878
|
+
loginTabs: {
|
|
1879
|
+
list: string[];
|
|
1880
|
+
default: string;
|
|
1881
|
+
defaultV2?: string;
|
|
1882
|
+
title: {
|
|
1883
|
+
[x: string]: string;
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
socialConnections: SocialConnectionItem[];
|
|
1887
|
+
complateFiledsPlace: ComplateFiledsPlace[];
|
|
1888
|
+
extendsFieldsEnabled: boolean;
|
|
1889
|
+
extendsFields: ExtendsField[];
|
|
1890
|
+
identifier: string;
|
|
1891
|
+
requestHostname: string;
|
|
1892
|
+
identityProviders: {
|
|
1893
|
+
identifier: string;
|
|
1894
|
+
protocol: Protocol;
|
|
1895
|
+
displayName: string;
|
|
1896
|
+
logo: string;
|
|
1897
|
+
config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
1898
|
+
}[];
|
|
1899
|
+
ssoPageComponentDisplay: {
|
|
1900
|
+
autoRegisterThenLoginHintInfo: boolean;
|
|
1901
|
+
forgetPasswordBtn: boolean;
|
|
1902
|
+
idpBtns: boolean;
|
|
1903
|
+
loginBtn: boolean;
|
|
1904
|
+
loginByPhoneCodeTab: boolean;
|
|
1905
|
+
loginByUserPasswordTab: boolean;
|
|
1906
|
+
loginMethodNav: boolean;
|
|
1907
|
+
phoneCodeInput: boolean;
|
|
1908
|
+
registerBtn: boolean;
|
|
1909
|
+
registerByEmailTab: boolean;
|
|
1910
|
+
registerByPhoneTab: boolean;
|
|
1911
|
+
registerMethodNav: boolean;
|
|
1912
|
+
socialLoginBtns: boolean;
|
|
1913
|
+
userPasswordInput: boolean;
|
|
1914
|
+
wxMpScanTab: boolean;
|
|
1915
|
+
};
|
|
1916
|
+
protocol: Protocol;
|
|
1917
|
+
oidcConfig: OidcClientMetadata;
|
|
1918
|
+
passwordTabConfig: ApplicationPasswordTabConfig;
|
|
1919
|
+
verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
|
|
1920
|
+
agreementEnabled: boolean;
|
|
1921
|
+
agreements: Agreement[];
|
|
1922
|
+
customPasswordStrength: any;
|
|
1923
|
+
passwordStrength: PasswordStrength;
|
|
1924
|
+
verifyCodeLength: number;
|
|
1925
|
+
websocket: string;
|
|
1926
|
+
welcomeMessage: any;
|
|
1927
|
+
skipComplateFileds: boolean;
|
|
1928
|
+
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
1929
|
+
defaultLanguageConfig: Lang;
|
|
3284
1930
|
}
|
|
3285
1931
|
|
|
3286
1932
|
}
|
|
3287
|
-
declare module '@authing/react-ui-components/
|
|
1933
|
+
declare module '@authing/react-ui-components/Type/index' {
|
|
3288
1934
|
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
3289
|
-
import {
|
|
3290
|
-
import {
|
|
3291
|
-
import {
|
|
3292
|
-
|
|
3293
|
-
|
|
1935
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/module';
|
|
1936
|
+
import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
|
|
1937
|
+
import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
1938
|
+
export type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
|
|
1939
|
+
export enum GuardMode {
|
|
1940
|
+
Modal = "modal",
|
|
1941
|
+
Normal = "normal"
|
|
1942
|
+
}
|
|
3294
1943
|
export interface IG2FCProps extends IG2Events {
|
|
3295
1944
|
appId?: string;
|
|
3296
1945
|
tenantId?: string;
|
|
@@ -3314,8 +1963,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
3314
1963
|
export interface IG2Config {
|
|
3315
1964
|
title?: string;
|
|
3316
1965
|
logo?: string;
|
|
3317
|
-
lang
|
|
3318
|
-
langRange
|
|
1966
|
+
lang?: string;
|
|
1967
|
+
langRange?: string[];
|
|
3319
1968
|
host: string;
|
|
3320
1969
|
isHost?: boolean;
|
|
3321
1970
|
mode: GuardMode;
|
|
@@ -3347,6 +1996,7 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
3347
1996
|
export interface GuardPageConfig {
|
|
3348
1997
|
[GuardPageSene.Global]: {
|
|
3349
1998
|
showChangeLanguage: boolean;
|
|
1999
|
+
defaultLanguage: Lang | 'browser';
|
|
3350
2000
|
};
|
|
3351
2001
|
}
|
|
3352
2002
|
export enum EmailScene {
|
|
@@ -3365,28 +2015,36 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
3365
2015
|
}
|
|
3366
2016
|
|
|
3367
2017
|
}
|
|
3368
|
-
declare module '@authing/react-ui-components/
|
|
2018
|
+
declare module '@authing/react-ui-components/UploadImage/index' {
|
|
2019
|
+
import { FC } from 'react';
|
|
2020
|
+
export const UploadImage: FC<{
|
|
2021
|
+
value?: string;
|
|
2022
|
+
onChange?: (value: string) => void;
|
|
2023
|
+
}>;
|
|
2024
|
+
|
|
2025
|
+
}
|
|
2026
|
+
declare module '@authing/react-ui-components/ValidatorRules/PasswordFormItem' {
|
|
3369
2027
|
import React from 'react';
|
|
3370
|
-
import { PasswordFormItemProps } from '@authing/react-ui-components/
|
|
2028
|
+
import { PasswordFormItemProps } from '@authing/react-ui-components/ValidatorRules/index';
|
|
3371
2029
|
export interface ExPasswordFormItemProps extends PasswordFormItemProps {
|
|
3372
2030
|
fieldRequiredRuleMessage?: string;
|
|
3373
2031
|
}
|
|
3374
2032
|
export const PasswordFormItem: React.FC<ExPasswordFormItemProps>;
|
|
3375
2033
|
|
|
3376
2034
|
}
|
|
3377
|
-
declare module '@authing/react-ui-components/
|
|
2035
|
+
declare module '@authing/react-ui-components/ValidatorRules/ValidatorFormItem' {
|
|
3378
2036
|
import React from 'react';
|
|
3379
|
-
import { ValidatorFormItemProps } from '@authing/react-ui-components/
|
|
2037
|
+
import { ValidatorFormItemProps } from '@authing/react-ui-components/ValidatorRules/index';
|
|
3380
2038
|
export const EmailFormItem: React.FC<ValidatorFormItemProps>;
|
|
3381
2039
|
export const PhoneFormItem: React.FC<ValidatorFormItemProps>;
|
|
3382
2040
|
export const UserNameFormItem: React.FC<ValidatorFormItemProps>;
|
|
3383
2041
|
|
|
3384
2042
|
}
|
|
3385
|
-
declare module '@authing/react-ui-components/
|
|
2043
|
+
declare module '@authing/react-ui-components/ValidatorRules/index' {
|
|
3386
2044
|
import { FormInstance, FormItemProps } from 'antd/lib/form';
|
|
3387
2045
|
import FormItem from 'antd/lib/form/FormItem';
|
|
3388
|
-
import { PasswordFormItem } from '@authing/react-ui-components/
|
|
3389
|
-
import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/
|
|
2046
|
+
import { PasswordFormItem } from '@authing/react-ui-components/ValidatorRules/PasswordFormItem';
|
|
2047
|
+
import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/ValidatorRules/ValidatorFormItem';
|
|
3390
2048
|
export interface ValidatorFormItemProps extends FormItemProps {
|
|
3391
2049
|
form?: FormInstance;
|
|
3392
2050
|
checkRepeat?: boolean;
|
|
@@ -3416,11 +2074,11 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
3416
2074
|
export default CustomFormItem;
|
|
3417
2075
|
|
|
3418
2076
|
}
|
|
3419
|
-
declare module '@authing/react-ui-components/
|
|
2077
|
+
declare module '@authing/react-ui-components/ValidatorRules/useCheckRepeat' {
|
|
3420
2078
|
export const useCheckRepeat: (checkFn: (value: any, resolve: (value: unknown) => void, reject: (reason?: any) => void) => void) => (_: any, value: any) => Promise<unknown>;
|
|
3421
2079
|
|
|
3422
2080
|
}
|
|
3423
|
-
declare module '@authing/react-ui-components/
|
|
2081
|
+
declare module '@authing/react-ui-components/VerifyCodeInput/index' {
|
|
3424
2082
|
import React, { FC } from 'react';
|
|
3425
2083
|
import './style.less';
|
|
3426
2084
|
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -3433,7 +2091,7 @@ declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
|
|
|
3433
2091
|
export {};
|
|
3434
2092
|
|
|
3435
2093
|
}
|
|
3436
|
-
declare module '@authing/react-ui-components/
|
|
2094
|
+
declare module '@authing/react-ui-components/_utils/GuardErrorCode' {
|
|
3437
2095
|
export enum ErrorCode {
|
|
3438
2096
|
OTP_MFA_CODE = 1635,
|
|
3439
2097
|
APP_MFA_CODE = 1636,
|
|
@@ -3447,49 +2105,48 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
|
|
|
3447
2105
|
}
|
|
3448
2106
|
|
|
3449
2107
|
}
|
|
3450
|
-
declare module '@authing/react-ui-components/
|
|
3451
|
-
import { GuardAppendConfig } from '@authing/react-ui-components/
|
|
2108
|
+
declare module '@authing/react-ui-components/_utils/appendConfig' {
|
|
2109
|
+
import { GuardAppendConfig } from '@authing/react-ui-components/index';
|
|
3452
2110
|
export const getAppendConfig: () => GuardAppendConfig;
|
|
3453
2111
|
export const useAppendConfig: () => GuardAppendConfig;
|
|
3454
2112
|
export const initAppendConfig: (appendConfig?: GuardAppendConfig) => void;
|
|
3455
2113
|
|
|
3456
2114
|
}
|
|
3457
|
-
declare module '@authing/react-ui-components/
|
|
2115
|
+
declare module '@authing/react-ui-components/_utils/clipboard' {
|
|
3458
2116
|
export const copyToClipboard: (str: string) => void;
|
|
3459
2117
|
|
|
3460
2118
|
}
|
|
3461
|
-
declare module '@authing/react-ui-components/
|
|
2119
|
+
declare module '@authing/react-ui-components/_utils/config/index' {
|
|
3462
2120
|
/// <reference types="react" />
|
|
3463
|
-
import {
|
|
3464
|
-
import {
|
|
3465
|
-
import {
|
|
3466
|
-
import {
|
|
3467
|
-
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2121
|
+
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
|
|
2122
|
+
import { GuardHttp } from '@authing/react-ui-components/_utils/guardHttp';
|
|
2123
|
+
import { GuardPageConfig } from '@authing/react-ui-components/Type/index';
|
|
2124
|
+
import { ApplicationConfig, RegisterMethods } from '@authing/react-ui-components/Type/application';
|
|
3468
2125
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
3469
2126
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
3470
2127
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
3471
2128
|
export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
3472
2129
|
host: string;
|
|
3473
2130
|
isSSO?: boolean | undefined;
|
|
3474
|
-
defaultScenes?: import("@authing/react-ui-components/
|
|
2131
|
+
defaultScenes?: import("@authing/react-ui-components/index").GuardModuleType | undefined;
|
|
3475
2132
|
defaultInitData?: any;
|
|
3476
2133
|
showLoading?: boolean | undefined;
|
|
3477
2134
|
loadingComponent?: import("react").ReactNode;
|
|
3478
2135
|
openEventsMapping?: boolean | undefined;
|
|
3479
|
-
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/
|
|
2136
|
+
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
3480
2137
|
disableRegister?: boolean | undefined;
|
|
3481
2138
|
registerMethods?: RegisterMethods[] | undefined;
|
|
3482
2139
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
3483
2140
|
publicKey?: string | undefined;
|
|
3484
2141
|
agreementEnabled?: boolean | undefined;
|
|
3485
|
-
agreements?: import("@authing/react-ui-components/
|
|
2142
|
+
agreements?: import("@authing/react-ui-components/Type/application").Agreement[] | undefined;
|
|
3486
2143
|
registerContext?: any;
|
|
3487
2144
|
title?: string | undefined;
|
|
3488
2145
|
logo?: string | undefined;
|
|
3489
|
-
lang
|
|
3490
|
-
langRange
|
|
2146
|
+
lang?: string | undefined;
|
|
2147
|
+
langRange?: string[] | undefined;
|
|
3491
2148
|
isHost?: boolean | undefined;
|
|
3492
|
-
mode: import("@authing/react-ui-components/
|
|
2149
|
+
mode: import("@authing/react-ui-components/Type/index").GuardMode;
|
|
3493
2150
|
clickCloseable: boolean;
|
|
3494
2151
|
escCloseable: boolean;
|
|
3495
2152
|
userpool?: string | undefined;
|
|
@@ -3500,9 +2157,9 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
3500
2157
|
__unAuthFlow__?: boolean | undefined;
|
|
3501
2158
|
autoRegister?: boolean | undefined;
|
|
3502
2159
|
disableResetPwd?: boolean | undefined;
|
|
3503
|
-
defaultLoginMethod?: import("@authing/react-ui-components/
|
|
3504
|
-
loginMethods?: import("@authing/react-ui-components/
|
|
3505
|
-
passwordLoginMethods?: import("@authing/react-ui-components/
|
|
2160
|
+
defaultLoginMethod?: import("@authing/react-ui-components/Type/application").LoginMethods | undefined;
|
|
2161
|
+
loginMethods?: import("@authing/react-ui-components/Type/application").LoginMethods[] | undefined;
|
|
2162
|
+
passwordLoginMethods?: import("@authing/react-ui-components/Type/application").PasswordLoginMethods[] | undefined;
|
|
3506
2163
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
3507
2164
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
3508
2165
|
enterpriseConnections?: string[] | undefined;
|
|
@@ -3539,8 +2196,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
3539
2196
|
expired?: string | undefined;
|
|
3540
2197
|
retry?: string | undefined;
|
|
3541
2198
|
failed?: string | undefined;
|
|
3542
|
-
middleTitle?: string | undefined;
|
|
3543
|
-
referText?: string | undefined;
|
|
3544
2199
|
} | undefined;
|
|
3545
2200
|
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
3546
2201
|
customData?: {
|
|
@@ -3558,13 +2213,12 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
3558
2213
|
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
3559
2214
|
|
|
3560
2215
|
}
|
|
3561
|
-
declare module '@authing/react-ui-components/
|
|
2216
|
+
declare module '@authing/react-ui-components/_utils/context' {
|
|
3562
2217
|
import React from 'react';
|
|
3563
|
-
import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/
|
|
3564
|
-
import {
|
|
3565
|
-
import {
|
|
3566
|
-
import {
|
|
3567
|
-
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2218
|
+
import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/index';
|
|
2219
|
+
import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
|
|
2220
|
+
import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
2221
|
+
import { GuardHttp } from '@authing/react-ui-components/_utils/guardHttp';
|
|
3568
2222
|
export interface IGuardContext {
|
|
3569
2223
|
finallyConfig: GuardLocalConfig;
|
|
3570
2224
|
defaultMergedConfig: GuardLocalConfig;
|
|
@@ -3580,29 +2234,6 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3580
2234
|
isAuthFlow: boolean;
|
|
3581
2235
|
contextLoaded: boolean;
|
|
3582
2236
|
guardPageConfig: Partial<GuardPageConfig>;
|
|
3583
|
-
multipleInstance: {
|
|
3584
|
-
/**
|
|
3585
|
-
* 多账号相关
|
|
3586
|
-
*/
|
|
3587
|
-
isMultipleAccount: boolean;
|
|
3588
|
-
/**
|
|
3589
|
-
* when: 多账号页面跳转进入登录页面
|
|
3590
|
-
* 携带的回填数据信息
|
|
3591
|
-
*/
|
|
3592
|
-
multipleAccountData?: BackFillMultipleState;
|
|
3593
|
-
/**
|
|
3594
|
-
* 多账号 store 实例
|
|
3595
|
-
*/
|
|
3596
|
-
instance?: StoreInstance;
|
|
3597
|
-
/**
|
|
3598
|
-
* 切换多账号 isMultipleAccount 状态
|
|
3599
|
-
*/
|
|
3600
|
-
referMultipleState?: (type: 'login' | 'multiple') => void;
|
|
3601
|
-
/**
|
|
3602
|
-
* 清空回填数据
|
|
3603
|
-
*/
|
|
3604
|
-
clearBackFillData?: () => void;
|
|
3605
|
-
};
|
|
3606
2237
|
}
|
|
3607
2238
|
export const createGuardXContext: () => {
|
|
3608
2239
|
Provider: React.FC<{
|
|
@@ -3640,71 +2271,13 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3640
2271
|
export const useGuardContextLoaded: () => boolean;
|
|
3641
2272
|
export const useGuardIsAuthFlow: () => boolean;
|
|
3642
2273
|
export const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
3643
|
-
/**
|
|
3644
|
-
* 多账号登录 store 实例
|
|
3645
|
-
*/
|
|
3646
|
-
export const useGuardMultipleInstance: () => {
|
|
3647
|
-
/**
|
|
3648
|
-
* 多账号相关
|
|
3649
|
-
*/
|
|
3650
|
-
isMultipleAccount: boolean;
|
|
3651
|
-
/**
|
|
3652
|
-
* when: 多账号页面跳转进入登录页面
|
|
3653
|
-
* 携带的回填数据信息
|
|
3654
|
-
*/
|
|
3655
|
-
multipleAccountData?: BackFillMultipleState | undefined;
|
|
3656
|
-
/**
|
|
3657
|
-
* 多账号 store 实例
|
|
3658
|
-
*/
|
|
3659
|
-
instance?: {
|
|
3660
|
-
initStore: (appId: string, options: {
|
|
3661
|
-
serverSideLoginMethods: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[];
|
|
3662
|
-
isInternationSms: boolean;
|
|
3663
|
-
}) => void;
|
|
3664
|
-
setLoginWay: (tab: "input" | "qrcode", way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
|
|
3665
|
-
phoneCountryCode: string;
|
|
3666
|
-
areaCode: string;
|
|
3667
|
-
} | undefined) => void;
|
|
3668
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
3669
|
-
id: string;
|
|
3670
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
3671
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
3672
|
-
username?: string | undefined;
|
|
3673
|
-
phone?: string | undefined;
|
|
3674
|
-
email?: string | undefined;
|
|
3675
|
-
}) => void;
|
|
3676
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
3677
|
-
name?: string | undefined;
|
|
3678
|
-
phone?: string | undefined;
|
|
3679
|
-
email?: string | undefined;
|
|
3680
|
-
}) => void;
|
|
3681
|
-
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
3682
|
-
getMemoSingleUser: (id: string) => {
|
|
3683
|
-
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
3684
|
-
account: string;
|
|
3685
|
-
} | undefined;
|
|
3686
|
-
delUserById: (id: string) => string;
|
|
3687
|
-
getMemberState: () => boolean;
|
|
3688
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
3689
|
-
getOriginAccount: () => string;
|
|
3690
|
-
getOriginWay: () => string;
|
|
3691
|
-
} | undefined;
|
|
3692
|
-
/**
|
|
3693
|
-
* 切换多账号 isMultipleAccount 状态
|
|
3694
|
-
*/
|
|
3695
|
-
referMultipleState?: ((type: 'login' | 'multiple') => void) | undefined;
|
|
3696
|
-
/**
|
|
3697
|
-
* 清空回填数据
|
|
3698
|
-
*/
|
|
3699
|
-
clearBackFillData?: (() => void) | undefined;
|
|
3700
|
-
};
|
|
3701
2274
|
|
|
3702
2275
|
}
|
|
3703
|
-
declare module '@authing/react-ui-components/
|
|
2276
|
+
declare module '@authing/react-ui-components/_utils/corsVerification' {
|
|
3704
2277
|
export const corsVerification: (allowedOrigins?: string[], corsWhitelist?: string[]) => void;
|
|
3705
2278
|
|
|
3706
2279
|
}
|
|
3707
|
-
declare module '@authing/react-ui-components/
|
|
2280
|
+
declare module '@authing/react-ui-components/_utils/countryList' {
|
|
3708
2281
|
export interface IsoType {
|
|
3709
2282
|
iso: string;
|
|
3710
2283
|
regions: string;
|
|
@@ -3714,7 +2287,7 @@ declare module '@authing/react-ui-components/components/_utils/countryList' {
|
|
|
3714
2287
|
export const isoInfo: IsoType[];
|
|
3715
2288
|
|
|
3716
2289
|
}
|
|
3717
|
-
declare module '@authing/react-ui-components/
|
|
2290
|
+
declare module '@authing/react-ui-components/_utils/errorFace' {
|
|
3718
2291
|
enum FaceErrorName {
|
|
3719
2292
|
NotAllowedError = "NotAllowedError",
|
|
3720
2293
|
AbortError = "AbortError",
|
|
@@ -3729,14 +2302,14 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3729
2302
|
export {};
|
|
3730
2303
|
|
|
3731
2304
|
}
|
|
3732
|
-
declare module '@authing/react-ui-components/
|
|
3733
|
-
import { FacePlugin } from '@authing/react-ui-components/
|
|
2305
|
+
declare module '@authing/react-ui-components/_utils/facePlugin/index' {
|
|
2306
|
+
import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
|
|
3734
2307
|
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3735
2308
|
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3736
2309
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3737
2310
|
|
|
3738
2311
|
}
|
|
3739
|
-
declare module '@authing/react-ui-components/
|
|
2312
|
+
declare module '@authing/react-ui-components/_utils/facePlugin/interface' {
|
|
3740
2313
|
export interface FacePlugin {
|
|
3741
2314
|
detectSingleFace: any;
|
|
3742
2315
|
TinyFaceDetectorOptions: any;
|
|
@@ -3744,22 +2317,22 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
|
|
|
3744
2317
|
}
|
|
3745
2318
|
|
|
3746
2319
|
}
|
|
3747
|
-
declare module '@authing/react-ui-components/
|
|
2320
|
+
declare module '@authing/react-ui-components/_utils/flowHandleStorage' {
|
|
3748
2321
|
export const getFlowHandle: () => string | undefined;
|
|
3749
2322
|
export const useFlowHandle: () => string | undefined;
|
|
3750
2323
|
export const updateFlowHandle: (flowHandle: string) => void;
|
|
3751
2324
|
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
3752
2325
|
|
|
3753
2326
|
}
|
|
3754
|
-
declare module '@authing/react-ui-components/
|
|
2327
|
+
declare module '@authing/react-ui-components/_utils/guardDocument' {
|
|
3755
2328
|
export const getGuardDocument: () => Document;
|
|
3756
2329
|
export const useAppendConfig: () => Document;
|
|
3757
2330
|
export const initGuardDocument: (document: Document) => void;
|
|
3758
2331
|
|
|
3759
2332
|
}
|
|
3760
|
-
declare module '@authing/react-ui-components/
|
|
3761
|
-
import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/
|
|
3762
|
-
import { CodeAction } from '@authing/react-ui-components/
|
|
2333
|
+
declare module '@authing/react-ui-components/_utils/guardHttp' {
|
|
2334
|
+
import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/_utils/http';
|
|
2335
|
+
import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
|
|
3763
2336
|
export class GuardHttp {
|
|
3764
2337
|
private requestClient;
|
|
3765
2338
|
private headers;
|
|
@@ -3787,10 +2360,9 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
|
|
|
3787
2360
|
export const useGuardHttp: () => GuardHttp;
|
|
3788
2361
|
|
|
3789
2362
|
}
|
|
3790
|
-
declare module '@authing/react-ui-components/
|
|
3791
|
-
import {
|
|
3792
|
-
import { ApplicationConfig } from '@authing/react-ui-components/
|
|
3793
|
-
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
|
|
2363
|
+
declare module '@authing/react-ui-components/_utils/hooks/index' {
|
|
2364
|
+
import { GuardLocalConfig } from '@authing/react-ui-components/Guard/index';
|
|
2365
|
+
import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
|
|
3794
2366
|
export interface PhoneValidResult {
|
|
3795
2367
|
isValid: boolean;
|
|
3796
2368
|
phoneNumber: string;
|
|
@@ -3798,7 +2370,8 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3798
2370
|
countryIso3: string;
|
|
3799
2371
|
countryCode: string;
|
|
3800
2372
|
}
|
|
3801
|
-
export const
|
|
2373
|
+
export const HIDE_SOCIALS: string[];
|
|
2374
|
+
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
3802
2375
|
export const useAppId: (appId?: string | undefined) => string;
|
|
3803
2376
|
export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
|
|
3804
2377
|
export const useMediaSize: () => {
|
|
@@ -3833,8 +2406,8 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3833
2406
|
}) => any;
|
|
3834
2407
|
|
|
3835
2408
|
}
|
|
3836
|
-
declare module '@authing/react-ui-components/
|
|
3837
|
-
import { CodeAction } from '@authing/react-ui-components/
|
|
2409
|
+
declare module '@authing/react-ui-components/_utils/http' {
|
|
2410
|
+
import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
|
|
3838
2411
|
import { AxiosRequestConfig } from 'axios';
|
|
3839
2412
|
export const requestClient: {
|
|
3840
2413
|
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
@@ -3869,15 +2442,15 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3869
2442
|
}
|
|
3870
2443
|
|
|
3871
2444
|
}
|
|
3872
|
-
declare module '@authing/react-ui-components/
|
|
2445
|
+
declare module '@authing/react-ui-components/_utils/index' {
|
|
3873
2446
|
import { Rule } from 'antd/lib/form';
|
|
3874
2447
|
import qs from 'qs';
|
|
3875
2448
|
import { User } from 'authing-js-sdk';
|
|
3876
|
-
import {
|
|
3877
|
-
import {
|
|
3878
|
-
import {
|
|
3879
|
-
export * from '@authing/react-ui-components/
|
|
3880
|
-
export * from '@authing/react-ui-components/
|
|
2449
|
+
import { GuardProps } from '@authing/react-ui-components/Guard/index';
|
|
2450
|
+
import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods } from '@authing/react-ui-components/Type/application';
|
|
2451
|
+
import { Lang } from '@authing/react-ui-components/Type/index';
|
|
2452
|
+
export * from '@authing/react-ui-components/_utils/popupCenter';
|
|
2453
|
+
export * from '@authing/react-ui-components/_utils/clipboard';
|
|
3881
2454
|
export const VALIDATE_PATTERN: {
|
|
3882
2455
|
readonly email: RegExp;
|
|
3883
2456
|
readonly phone: RegExp;
|
|
@@ -3890,9 +2463,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3890
2463
|
export const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3891
2464
|
export function getDeviceName(): string | null | undefined;
|
|
3892
2465
|
export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
|
|
3893
|
-
export const insertStyles: (styles: string | any, recordKey?: "
|
|
2466
|
+
export const insertStyles: (styles: string | any, recordKey?: "appConfig" | "userConfig" | undefined) => void;
|
|
3894
2467
|
export const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
|
|
3895
|
-
export const useTitle: (title: string, prefix?: string | undefined) => void;
|
|
3896
2468
|
export const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
|
|
3897
2469
|
/**
|
|
3898
2470
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
@@ -3962,9 +2534,10 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3962
2534
|
lockMethod?: undefined;
|
|
3963
2535
|
} | undefined;
|
|
3964
2536
|
export const getPasswordIdentify: (identity: string) => string;
|
|
2537
|
+
export const getCurrentLng: () => Lang;
|
|
3965
2538
|
|
|
3966
2539
|
}
|
|
3967
|
-
declare module '@authing/react-ui-components/
|
|
2540
|
+
declare module '@authing/react-ui-components/_utils/initAppId' {
|
|
3968
2541
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
3969
2542
|
export interface UseInitAppidProps {
|
|
3970
2543
|
propsAppid?: string;
|
|
@@ -3974,32 +2547,39 @@ declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
|
3974
2547
|
export const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
|
|
3975
2548
|
|
|
3976
2549
|
}
|
|
3977
|
-
declare module '@authing/react-ui-components/
|
|
3978
|
-
import common from '@authing/react-ui-components/
|
|
3979
|
-
import login from '@authing/react-ui-components/
|
|
3980
|
-
import user from '@authing/react-ui-components/
|
|
3981
|
-
|
|
3982
|
-
export { common, login, user, map };
|
|
2550
|
+
declare module '@authing/react-ui-components/_utils/locales/en-us/index' {
|
|
2551
|
+
import common from '@authing/react-ui-components/_utils/locales/en-us/common/index';
|
|
2552
|
+
import login from '@authing/react-ui-components/_utils/locales/en-us/login/index';
|
|
2553
|
+
import user from '@authing/react-ui-components/_utils/locales/en-us/user/index';
|
|
2554
|
+
export { common, login, user };
|
|
3983
2555
|
|
|
3984
2556
|
}
|
|
3985
|
-
declare module '@authing/react-ui-components/
|
|
2557
|
+
declare module '@authing/react-ui-components/_utils/locales/index' {
|
|
3986
2558
|
import i18n from 'i18next';
|
|
3987
|
-
import {
|
|
3988
|
-
export
|
|
3989
|
-
|
|
3990
|
-
|
|
2559
|
+
import { Lang } from '@authing/react-ui-components/Type/index';
|
|
2560
|
+
export interface InitGuardI18nOptions {
|
|
2561
|
+
defaultLanguage?: Lang | 'browser';
|
|
2562
|
+
}
|
|
2563
|
+
export const initGuardI18n: (options: InitGuardI18nOptions) => void;
|
|
2564
|
+
export { i18n };
|
|
2565
|
+
|
|
2566
|
+
}
|
|
2567
|
+
declare module '@authing/react-ui-components/_utils/locales/zh-cn/index' {
|
|
2568
|
+
import common from '@authing/react-ui-components/_utils/locales/zh-cn/common/index';
|
|
2569
|
+
import login from '@authing/react-ui-components/_utils/locales/zh-cn/login/index';
|
|
2570
|
+
import user from '@authing/react-ui-components/_utils/locales/zh-cn/user/index';
|
|
2571
|
+
export { common, login, user };
|
|
3991
2572
|
|
|
3992
2573
|
}
|
|
3993
|
-
declare module '@authing/react-ui-components/
|
|
3994
|
-
import common from '@authing/react-ui-components/
|
|
3995
|
-
import login from '@authing/react-ui-components/
|
|
3996
|
-
import user from '@authing/react-ui-components/
|
|
3997
|
-
|
|
3998
|
-
export { common, login, user, map };
|
|
2574
|
+
declare module '@authing/react-ui-components/_utils/locales/zh-tw/index' {
|
|
2575
|
+
import common from '@authing/react-ui-components/_utils/locales/zh-tw/common/index';
|
|
2576
|
+
import login from '@authing/react-ui-components/_utils/locales/zh-tw/login/index';
|
|
2577
|
+
import user from '@authing/react-ui-components/_utils/locales/zh-tw/user/index';
|
|
2578
|
+
export { common, login, user };
|
|
3999
2579
|
|
|
4000
2580
|
}
|
|
4001
|
-
declare module '@authing/react-ui-components/
|
|
4002
|
-
import { LoggerType } from '@authing/react-ui-components/
|
|
2581
|
+
declare module '@authing/react-ui-components/_utils/logger/index' {
|
|
2582
|
+
import { LoggerType } from '@authing/react-ui-components/_utils/logger/interface';
|
|
4003
2583
|
export class Logger {
|
|
4004
2584
|
static printType: LoggerType[];
|
|
4005
2585
|
/**
|
|
@@ -4016,7 +2596,7 @@ declare module '@authing/react-ui-components/components/_utils/logger/index' {
|
|
|
4016
2596
|
export const useLogger: () => Logger;
|
|
4017
2597
|
|
|
4018
2598
|
}
|
|
4019
|
-
declare module '@authing/react-ui-components/
|
|
2599
|
+
declare module '@authing/react-ui-components/_utils/logger/interface' {
|
|
4020
2600
|
export enum LoggerType {
|
|
4021
2601
|
INFO = "INFO",
|
|
4022
2602
|
WARN = "WARN",
|
|
@@ -4024,7 +2604,7 @@ declare module '@authing/react-ui-components/components/_utils/logger/interface'
|
|
|
4024
2604
|
}
|
|
4025
2605
|
|
|
4026
2606
|
}
|
|
4027
|
-
declare module '@authing/react-ui-components/
|
|
2607
|
+
declare module '@authing/react-ui-components/_utils/popupCenter' {
|
|
4028
2608
|
/**
|
|
4029
2609
|
* 在屏幕中心弹出新窗口加载 url
|
|
4030
2610
|
* @param url
|
|
@@ -4036,14 +2616,14 @@ declare module '@authing/react-ui-components/components/_utils/popupCenter' {
|
|
|
4036
2616
|
}) => void;
|
|
4037
2617
|
|
|
4038
2618
|
}
|
|
4039
|
-
declare module '@authing/react-ui-components/
|
|
4040
|
-
import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/
|
|
4041
|
-
import { CodeAction } from '@authing/react-ui-components/
|
|
2619
|
+
declare module '@authing/react-ui-components/_utils/responseManagement/index' {
|
|
2620
|
+
import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/_utils/http';
|
|
2621
|
+
import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
|
|
4042
2622
|
export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
|
|
4043
2623
|
|
|
4044
2624
|
}
|
|
4045
|
-
declare module '@authing/react-ui-components/
|
|
4046
|
-
import { GuardModuleType } from '@authing/react-ui-components/
|
|
2625
|
+
declare module '@authing/react-ui-components/_utils/responseManagement/interface' {
|
|
2626
|
+
import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
|
|
4047
2627
|
export enum CodeAction {
|
|
4048
2628
|
CHANGE_MODULE = "changeModule",
|
|
4049
2629
|
RENDER_MESSAGE = "renderMessage",
|
|
@@ -4066,544 +2646,30 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
4066
2646
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
4067
2647
|
|
|
4068
2648
|
}
|
|
4069
|
-
declare module '@authing/react-ui-components/
|
|
2649
|
+
declare module '@authing/react-ui-components/_utils/useErrorText' {
|
|
4070
2650
|
import React from 'react';
|
|
4071
2651
|
export const usePasswordErrorText: () => {
|
|
4072
2652
|
setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4073
2653
|
getPassWordUnsafeText: () => JSX.Element;
|
|
4074
2654
|
};
|
|
4075
2655
|
|
|
4076
|
-
}
|
|
4077
|
-
declare module '@authing/react-ui-components/components/context/base' {
|
|
4078
|
-
import React from 'react';
|
|
4079
|
-
export function createBaseContext<C>(): readonly [React.Context<C | undefined>, () => C];
|
|
4080
|
-
export interface IBaseAction<ActionType = string> {
|
|
4081
|
-
type: ActionType & string;
|
|
4082
|
-
payload?: any;
|
|
4083
|
-
[key: string]: string;
|
|
4084
|
-
}
|
|
4085
|
-
export interface IBaseContext<S> {
|
|
4086
|
-
state: S;
|
|
4087
|
-
[k: string]: any;
|
|
4088
|
-
}
|
|
4089
|
-
export type BaseContextComponent<Props> = React.PropsWithChildren<Props>;
|
|
4090
|
-
|
|
4091
|
-
}
|
|
4092
|
-
declare module '@authing/react-ui-components/components/context/global/context' {
|
|
4093
|
-
/// <reference types="react" />
|
|
4094
|
-
import { IBaseContext, BaseContextComponent } from '@authing/react-ui-components/components/context/base';
|
|
4095
|
-
import { IState } from '@authing/react-ui-components/components/context/global/reducer';
|
|
4096
|
-
export interface IGuardContext extends IBaseContext<IState> {
|
|
4097
|
-
dispatch: Function;
|
|
4098
|
-
getValue: (key: keyof IState) => any;
|
|
4099
|
-
setValue: (key: keyof IState, value: any) => void;
|
|
4100
|
-
}
|
|
4101
|
-
export function useGuardContext(): IGuardContext;
|
|
4102
|
-
export function GuardContext({ children, value, }: BaseContextComponent<Record<string, any>>): JSX.Element;
|
|
4103
|
-
|
|
4104
|
-
}
|
|
4105
|
-
declare module '@authing/react-ui-components/components/context/global/reducer' {
|
|
4106
|
-
import { GuardConfig, ActiveTabs, GuardScenes, UserConfig, GuardEventsHandler, LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
4107
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
4108
|
-
import { IBaseAction } from '@authing/react-ui-components/components/context/base';
|
|
4109
|
-
import { ApplicationMfaType } from '@authing/react-ui-components/components/AuthingGuard/api/appConfig';
|
|
4110
|
-
export type IState = {
|
|
4111
|
-
config: GuardConfig;
|
|
4112
|
-
userConfig: UserConfig;
|
|
4113
|
-
authClient: AuthenticationClient;
|
|
4114
|
-
activeTabs: ActiveTabs;
|
|
4115
|
-
guardScenes: GuardScenes;
|
|
4116
|
-
guardTitle: string;
|
|
4117
|
-
mfaData: {
|
|
4118
|
-
mfaToken: string;
|
|
4119
|
-
phone?: string;
|
|
4120
|
-
email?: string;
|
|
4121
|
-
applicationMfa?: {
|
|
4122
|
-
status: 0 | 1;
|
|
4123
|
-
mfaPolicy: ApplicationMfaType;
|
|
4124
|
-
sort: number;
|
|
4125
|
-
}[];
|
|
4126
|
-
};
|
|
4127
|
-
userPoolId: string;
|
|
4128
|
-
appId: string;
|
|
4129
|
-
guardEvents: GuardEventsHandler;
|
|
4130
|
-
localesConfig: LocalesConfig;
|
|
4131
|
-
lang?: Lang;
|
|
4132
|
-
realHost: string;
|
|
4133
|
-
};
|
|
4134
|
-
export const reducer: (state: IState, { type, ...payloads }: IBaseAction) => any;
|
|
4135
|
-
|
|
4136
|
-
}
|
|
4137
|
-
declare module '@authing/react-ui-components/components/context/module/context' {
|
|
4138
|
-
import React, { FC } from 'react';
|
|
4139
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
4140
|
-
export interface IModuleContext {
|
|
4141
|
-
module: string;
|
|
4142
|
-
changeModule: React.Dispatch<GuardModuleType>;
|
|
4143
|
-
setInitData: React.Dispatch<any>;
|
|
4144
|
-
}
|
|
4145
|
-
export const useModule: () => IModuleContext;
|
|
4146
|
-
export const ModuleContext: FC<{
|
|
4147
|
-
value: IModuleContext;
|
|
4148
|
-
}>;
|
|
4149
|
-
|
|
4150
|
-
}
|
|
4151
|
-
declare module '@authing/react-ui-components/components/index' {
|
|
4152
|
-
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
4153
|
-
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
4154
|
-
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
4155
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
4156
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
4157
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
4158
|
-
export * from '@authing/react-ui-components/components/Guard/index';
|
|
4159
|
-
export * from '@authing/react-ui-components/components/Type/index';
|
|
4160
|
-
export * from '@authing/react-ui-components/components/version/index';
|
|
4161
|
-
|
|
4162
|
-
}
|
|
4163
|
-
declare module '@authing/react-ui-components/components/version/index' {
|
|
4164
|
-
import version from '@authing/react-ui-components/components/version/version';
|
|
4165
|
-
export default version;
|
|
4166
|
-
|
|
4167
|
-
}
|
|
4168
|
-
declare module '@authing/react-ui-components/components/version/version' {
|
|
4169
|
-
const _default: "3.1.38";
|
|
4170
|
-
export default _default;
|
|
4171
|
-
|
|
4172
|
-
}
|
|
4173
|
-
declare module '@authing/react-ui-components/config/antdReplacer' {
|
|
4174
|
-
export function antdScopeReplacerFn(node: any): void;
|
|
4175
|
-
|
|
4176
|
-
}
|
|
4177
|
-
declare module '@authing/react-ui-components/config/env' {
|
|
4178
|
-
export = getClientEnvironment;
|
|
4179
|
-
function getClientEnvironment(publicUrl: any): {
|
|
4180
|
-
raw: {
|
|
4181
|
-
NODE_ENV: "development" | "production" | "test";
|
|
4182
|
-
PUBLIC_URL: any;
|
|
4183
|
-
WDS_SOCKET_HOST: string | undefined;
|
|
4184
|
-
WDS_SOCKET_PATH: string | undefined;
|
|
4185
|
-
WDS_SOCKET_PORT: string | undefined;
|
|
4186
|
-
FAST_REFRESH: boolean;
|
|
4187
|
-
};
|
|
4188
|
-
stringified: {
|
|
4189
|
-
'process.env': {};
|
|
4190
|
-
};
|
|
4191
|
-
};
|
|
4192
|
-
|
|
4193
|
-
}
|
|
4194
|
-
declare module '@authing/react-ui-components/config/getHttpsConfig' {
|
|
4195
|
-
export = getHttpsConfig;
|
|
4196
|
-
function getHttpsConfig(): boolean | {
|
|
4197
|
-
cert: Buffer;
|
|
4198
|
-
key: Buffer;
|
|
4199
|
-
};
|
|
4200
|
-
|
|
4201
|
-
}
|
|
4202
|
-
declare module '@authing/react-ui-components/config/jest/cssTransform' {
|
|
4203
|
-
export function process(): string;
|
|
4204
|
-
export function process(): string;
|
|
4205
|
-
export function getCacheKey(): string;
|
|
4206
|
-
export function getCacheKey(): string;
|
|
4207
|
-
|
|
4208
|
-
}
|
|
4209
|
-
declare module '@authing/react-ui-components/config/jest/fileTransform' {
|
|
4210
|
-
export function process(src: any, filename: any): string;
|
|
4211
|
-
export function process(src: any, filename: any): string;
|
|
4212
|
-
|
|
4213
|
-
}
|
|
4214
|
-
declare module '@authing/react-ui-components/config/modules' {
|
|
4215
|
-
export const additionalModulePaths: string[] | "" | null;
|
|
4216
|
-
export const hasTsConfig: boolean;
|
|
4217
|
-
export const webpackAliases: {
|
|
4218
|
-
src?: undefined;
|
|
4219
|
-
} | {
|
|
4220
|
-
src: string;
|
|
4221
|
-
} | undefined;
|
|
4222
|
-
export const jestAliases: {
|
|
4223
|
-
'^src/(.*)$'?: undefined;
|
|
4224
|
-
} | {
|
|
4225
|
-
'^src/(.*)$': string;
|
|
4226
|
-
} | undefined;
|
|
4227
|
-
|
|
4228
|
-
}
|
|
4229
|
-
declare module '@authing/react-ui-components/config/paths' {
|
|
4230
|
-
export const publicUrlOrPath: any;
|
|
4231
|
-
export const moduleFileExtensions: string[];
|
|
4232
|
-
export const dotenv: string;
|
|
4233
|
-
export const appPath: string;
|
|
4234
|
-
export const appBuild: string;
|
|
4235
|
-
export const appPublic: string;
|
|
4236
|
-
export const appHtml: string;
|
|
4237
|
-
export const appIndexJs: any;
|
|
4238
|
-
export const appPackageJson: string;
|
|
4239
|
-
export const appSrc: string;
|
|
4240
|
-
export const appTsConfig: string;
|
|
4241
|
-
export const appJsConfig: string;
|
|
4242
|
-
export const yarnLockFile: string;
|
|
4243
|
-
export const testsSetup: any;
|
|
4244
|
-
export const proxySetup: string;
|
|
4245
|
-
export const appNodeModules: string;
|
|
4246
|
-
export const swSrc: any;
|
|
4247
|
-
export const componentsIndexJs: string;
|
|
4248
|
-
export const libBuild: string;
|
|
4249
|
-
|
|
4250
|
-
}
|
|
4251
|
-
declare module '@authing/react-ui-components/config/pnpTs' {
|
|
4252
|
-
export function resolveModuleName(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
|
|
4253
|
-
export function resolveTypeReferenceDirective(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
|
|
4254
|
-
|
|
4255
|
-
}
|
|
4256
|
-
declare module '@authing/react-ui-components/config/webpack.config' {
|
|
4257
|
-
function _exports(webpackEnv: any): {
|
|
4258
|
-
mode: string | false;
|
|
4259
|
-
bail: boolean;
|
|
4260
|
-
devtool: string | boolean;
|
|
4261
|
-
externals: string[] | undefined;
|
|
4262
|
-
entry: any;
|
|
4263
|
-
output: {
|
|
4264
|
-
library: string | undefined;
|
|
4265
|
-
libraryTarget: string | undefined;
|
|
4266
|
-
path: string | undefined;
|
|
4267
|
-
pathinfo: boolean;
|
|
4268
|
-
filename: (chunkData: any) => false | "index.min.js" | "static/js/[name].[contenthash:8].js" | "static/js/bundle.js";
|
|
4269
|
-
futureEmitAssets: boolean;
|
|
4270
|
-
chunkFilename: string | false | undefined;
|
|
4271
|
-
publicPath: any;
|
|
4272
|
-
devtoolModuleFilenameTemplate: false | ((info: any) => string) | undefined;
|
|
4273
|
-
jsonpFunction: string | undefined;
|
|
4274
|
-
globalObject: string;
|
|
4275
|
-
};
|
|
4276
|
-
optimization: {
|
|
4277
|
-
minimize: boolean;
|
|
4278
|
-
minimizer: any[];
|
|
4279
|
-
splitChunks: {
|
|
4280
|
-
cacheGroups: {
|
|
4281
|
-
default: boolean;
|
|
4282
|
-
};
|
|
4283
|
-
chunks?: undefined;
|
|
4284
|
-
name?: undefined;
|
|
4285
|
-
} | {
|
|
4286
|
-
chunks: string;
|
|
4287
|
-
name: boolean;
|
|
4288
|
-
cacheGroups?: undefined;
|
|
4289
|
-
};
|
|
4290
|
-
runtimeChunk: false | {
|
|
4291
|
-
name: (entrypoint: any) => string;
|
|
4292
|
-
};
|
|
4293
|
-
};
|
|
4294
|
-
resolve: {
|
|
4295
|
-
modules: string[];
|
|
4296
|
-
extensions: string[];
|
|
4297
|
-
alias: {
|
|
4298
|
-
src?: undefined;
|
|
4299
|
-
'react-dom$'?: string;
|
|
4300
|
-
'scheduler/tracing'?: string;
|
|
4301
|
-
'react-native': string;
|
|
4302
|
-
} | {
|
|
4303
|
-
src: string;
|
|
4304
|
-
'react-dom$'?: string;
|
|
4305
|
-
'scheduler/tracing'?: string;
|
|
4306
|
-
'react-native': string;
|
|
4307
|
-
};
|
|
4308
|
-
plugins: any[];
|
|
4309
|
-
};
|
|
4310
|
-
resolveLoader: {
|
|
4311
|
-
plugins: any[];
|
|
4312
|
-
};
|
|
4313
|
-
module: {
|
|
4314
|
-
strictExportPresence: boolean;
|
|
4315
|
-
rules: ({
|
|
4316
|
-
parser: {
|
|
4317
|
-
requireEnsure: boolean;
|
|
4318
|
-
};
|
|
4319
|
-
oneOf?: undefined;
|
|
4320
|
-
} | {
|
|
4321
|
-
oneOf: ({
|
|
4322
|
-
test: RegExp;
|
|
4323
|
-
loader: string;
|
|
4324
|
-
options?: undefined;
|
|
4325
|
-
include?: undefined;
|
|
4326
|
-
exclude?: undefined;
|
|
4327
|
-
use?: undefined;
|
|
4328
|
-
sideEffects?: undefined;
|
|
4329
|
-
} | {
|
|
4330
|
-
test: RegExp[];
|
|
4331
|
-
loader: string;
|
|
4332
|
-
options: {
|
|
4333
|
-
limit: number;
|
|
4334
|
-
mimetype: string;
|
|
4335
|
-
name: string;
|
|
4336
|
-
customize?: undefined;
|
|
4337
|
-
presets?: undefined;
|
|
4338
|
-
plugins?: undefined;
|
|
4339
|
-
cacheDirectory?: undefined;
|
|
4340
|
-
cacheCompression?: undefined;
|
|
4341
|
-
compact?: undefined;
|
|
4342
|
-
babelrc?: undefined;
|
|
4343
|
-
configFile?: undefined;
|
|
4344
|
-
sourceMaps?: undefined;
|
|
4345
|
-
inputSourceMap?: undefined;
|
|
4346
|
-
};
|
|
4347
|
-
include?: undefined;
|
|
4348
|
-
exclude?: undefined;
|
|
4349
|
-
use?: undefined;
|
|
4350
|
-
sideEffects?: undefined;
|
|
4351
|
-
} | {
|
|
4352
|
-
test: RegExp[];
|
|
4353
|
-
loader: string;
|
|
4354
|
-
options: {
|
|
4355
|
-
limit: number;
|
|
4356
|
-
name: string;
|
|
4357
|
-
mimetype?: undefined;
|
|
4358
|
-
customize?: undefined;
|
|
4359
|
-
presets?: undefined;
|
|
4360
|
-
plugins?: undefined;
|
|
4361
|
-
cacheDirectory?: undefined;
|
|
4362
|
-
cacheCompression?: undefined;
|
|
4363
|
-
compact?: undefined;
|
|
4364
|
-
babelrc?: undefined;
|
|
4365
|
-
configFile?: undefined;
|
|
4366
|
-
sourceMaps?: undefined;
|
|
4367
|
-
inputSourceMap?: undefined;
|
|
4368
|
-
};
|
|
4369
|
-
include?: undefined;
|
|
4370
|
-
exclude?: undefined;
|
|
4371
|
-
use?: undefined;
|
|
4372
|
-
sideEffects?: undefined;
|
|
4373
|
-
} | {
|
|
4374
|
-
test: RegExp;
|
|
4375
|
-
include: string;
|
|
4376
|
-
loader: string;
|
|
4377
|
-
options: {
|
|
4378
|
-
customize: string;
|
|
4379
|
-
presets: string[];
|
|
4380
|
-
plugins: (string | false | (string | {
|
|
4381
|
-
loaderMap: {
|
|
4382
|
-
svg: {
|
|
4383
|
-
ReactComponent: string;
|
|
4384
|
-
};
|
|
4385
|
-
};
|
|
4386
|
-
})[] | (string | {
|
|
4387
|
-
libraryName: string;
|
|
4388
|
-
style: boolean;
|
|
4389
|
-
})[])[];
|
|
4390
|
-
cacheDirectory: boolean;
|
|
4391
|
-
cacheCompression: boolean;
|
|
4392
|
-
compact: boolean;
|
|
4393
|
-
limit?: undefined;
|
|
4394
|
-
mimetype?: undefined;
|
|
4395
|
-
name?: undefined;
|
|
4396
|
-
babelrc?: undefined;
|
|
4397
|
-
configFile?: undefined;
|
|
4398
|
-
sourceMaps?: undefined;
|
|
4399
|
-
inputSourceMap?: undefined;
|
|
4400
|
-
};
|
|
4401
|
-
exclude?: undefined;
|
|
4402
|
-
use?: undefined;
|
|
4403
|
-
sideEffects?: undefined;
|
|
4404
|
-
} | {
|
|
4405
|
-
test: RegExp;
|
|
4406
|
-
exclude: RegExp;
|
|
4407
|
-
loader: string;
|
|
4408
|
-
options: {
|
|
4409
|
-
babelrc: boolean;
|
|
4410
|
-
configFile: boolean;
|
|
4411
|
-
compact: boolean;
|
|
4412
|
-
presets: (string | {
|
|
4413
|
-
helpers: boolean;
|
|
4414
|
-
})[][];
|
|
4415
|
-
cacheDirectory: boolean;
|
|
4416
|
-
cacheCompression: boolean;
|
|
4417
|
-
sourceMaps: boolean;
|
|
4418
|
-
inputSourceMap: boolean;
|
|
4419
|
-
limit?: undefined;
|
|
4420
|
-
mimetype?: undefined;
|
|
4421
|
-
name?: undefined;
|
|
4422
|
-
customize?: undefined;
|
|
4423
|
-
plugins?: undefined;
|
|
4424
|
-
};
|
|
4425
|
-
include?: undefined;
|
|
4426
|
-
use?: undefined;
|
|
4427
|
-
sideEffects?: undefined;
|
|
4428
|
-
} | {
|
|
4429
|
-
test: RegExp;
|
|
4430
|
-
exclude: RegExp;
|
|
4431
|
-
use: (string | false | {
|
|
4432
|
-
loader: any;
|
|
4433
|
-
options: {
|
|
4434
|
-
publicPath: string;
|
|
4435
|
-
} | {
|
|
4436
|
-
publicPath?: undefined;
|
|
4437
|
-
};
|
|
4438
|
-
} | {
|
|
4439
|
-
loader: string;
|
|
4440
|
-
options: any;
|
|
4441
|
-
})[];
|
|
4442
|
-
sideEffects: boolean;
|
|
4443
|
-
loader?: undefined;
|
|
4444
|
-
options?: undefined;
|
|
4445
|
-
include?: undefined;
|
|
4446
|
-
} | {
|
|
4447
|
-
test: RegExp;
|
|
4448
|
-
use: (string | false | {
|
|
4449
|
-
loader: any;
|
|
4450
|
-
options: {
|
|
4451
|
-
publicPath: string;
|
|
4452
|
-
} | {
|
|
4453
|
-
publicPath?: undefined;
|
|
4454
|
-
};
|
|
4455
|
-
} | {
|
|
4456
|
-
loader: string;
|
|
4457
|
-
options: any;
|
|
4458
|
-
})[];
|
|
4459
|
-
loader?: undefined;
|
|
4460
|
-
options?: undefined;
|
|
4461
|
-
include?: undefined;
|
|
4462
|
-
exclude?: undefined;
|
|
4463
|
-
sideEffects?: undefined;
|
|
4464
|
-
} | {
|
|
4465
|
-
loader: string;
|
|
4466
|
-
exclude: RegExp[];
|
|
4467
|
-
options: {
|
|
4468
|
-
name: string;
|
|
4469
|
-
limit?: undefined;
|
|
4470
|
-
mimetype?: undefined;
|
|
4471
|
-
customize?: undefined;
|
|
4472
|
-
presets?: undefined;
|
|
4473
|
-
plugins?: undefined;
|
|
4474
|
-
cacheDirectory?: undefined;
|
|
4475
|
-
cacheCompression?: undefined;
|
|
4476
|
-
compact?: undefined;
|
|
4477
|
-
babelrc?: undefined;
|
|
4478
|
-
configFile?: undefined;
|
|
4479
|
-
sourceMaps?: undefined;
|
|
4480
|
-
inputSourceMap?: undefined;
|
|
4481
|
-
};
|
|
4482
|
-
test?: undefined;
|
|
4483
|
-
include?: undefined;
|
|
4484
|
-
use?: undefined;
|
|
4485
|
-
sideEffects?: undefined;
|
|
4486
|
-
})[];
|
|
4487
|
-
parser?: undefined;
|
|
4488
|
-
})[];
|
|
4489
|
-
};
|
|
4490
|
-
plugins: any[];
|
|
4491
|
-
node: {
|
|
4492
|
-
module: string;
|
|
4493
|
-
dgram: string;
|
|
4494
|
-
dns: string;
|
|
4495
|
-
fs: string;
|
|
4496
|
-
http2: string;
|
|
4497
|
-
net: string;
|
|
4498
|
-
tls: string;
|
|
4499
|
-
child_process: string;
|
|
4500
|
-
crypto: string;
|
|
4501
|
-
Buffer: boolean;
|
|
4502
|
-
};
|
|
4503
|
-
performance: boolean;
|
|
4504
|
-
};
|
|
4505
|
-
export = _exports;
|
|
4506
|
-
|
|
4507
|
-
}
|
|
4508
|
-
declare module '@authing/react-ui-components/config/webpackDevServer.config' {
|
|
4509
|
-
function _exports(proxy: any, allowedHost: any): {
|
|
4510
|
-
disableHostCheck: boolean;
|
|
4511
|
-
compress: boolean;
|
|
4512
|
-
clientLogLevel: string;
|
|
4513
|
-
contentBase: string;
|
|
4514
|
-
contentBasePublicPath: any;
|
|
4515
|
-
watchContentBase: boolean;
|
|
4516
|
-
hot: boolean;
|
|
4517
|
-
transportMode: string;
|
|
4518
|
-
injectClient: boolean;
|
|
4519
|
-
sockHost: string | undefined;
|
|
4520
|
-
sockPath: string | undefined;
|
|
4521
|
-
sockPort: string | undefined;
|
|
4522
|
-
publicPath: any;
|
|
4523
|
-
quiet: boolean;
|
|
4524
|
-
watchOptions: {
|
|
4525
|
-
ignored: any;
|
|
4526
|
-
};
|
|
4527
|
-
https: boolean | {
|
|
4528
|
-
cert: Buffer;
|
|
4529
|
-
key: Buffer;
|
|
4530
|
-
};
|
|
4531
|
-
host: string;
|
|
4532
|
-
overlay: boolean;
|
|
4533
|
-
historyApiFallback: {
|
|
4534
|
-
disableDotRule: boolean;
|
|
4535
|
-
index: any;
|
|
4536
|
-
};
|
|
4537
|
-
public: any;
|
|
4538
|
-
proxy: any;
|
|
4539
|
-
before(app: any, server: any): void;
|
|
4540
|
-
after(app: any): void;
|
|
4541
|
-
};
|
|
4542
|
-
export = _exports;
|
|
4543
|
-
|
|
4544
|
-
}
|
|
4545
|
-
declare module '@authing/react-ui-components/examples' {
|
|
4546
|
-
export {};
|
|
4547
|
-
|
|
4548
2656
|
}
|
|
4549
2657
|
declare module '@authing/react-ui-components/index' {
|
|
4550
|
-
|
|
4551
|
-
export
|
|
2658
|
+
export * from '@authing/react-ui-components/_utils/config/index';
|
|
2659
|
+
export * from '@authing/react-ui-components/_utils/responseManagement/interface';
|
|
2660
|
+
export * from '@authing/react-ui-components/AuthClientProvider/index';
|
|
2661
|
+
export * from '@authing/react-ui-components/Guard/index';
|
|
2662
|
+
export * from '@authing/react-ui-components/Type/index';
|
|
2663
|
+
export * from '@authing/react-ui-components/version/index';
|
|
4552
2664
|
|
|
4553
2665
|
}
|
|
4554
|
-
declare module '@authing/react-ui-components/
|
|
4555
|
-
import
|
|
4556
|
-
|
|
4557
|
-
export default reportWebVitals;
|
|
4558
|
-
|
|
4559
|
-
}
|
|
4560
|
-
declare module '@authing/react-ui-components/scripts/build' {
|
|
4561
|
-
export {};
|
|
4562
|
-
|
|
4563
|
-
}
|
|
4564
|
-
declare module '@authing/react-ui-components/scripts/generate-examples' {
|
|
4565
|
-
export {};
|
|
4566
|
-
|
|
4567
|
-
}
|
|
4568
|
-
declare module '@authing/react-ui-components/scripts/generate-version' {
|
|
4569
|
-
export {};
|
|
4570
|
-
|
|
4571
|
-
}
|
|
4572
|
-
declare module '@authing/react-ui-components/scripts/lib' {
|
|
4573
|
-
export {};
|
|
4574
|
-
|
|
4575
|
-
}
|
|
4576
|
-
declare module '@authing/react-ui-components/scripts/pre-publish' {
|
|
4577
|
-
export {};
|
|
4578
|
-
|
|
4579
|
-
}
|
|
4580
|
-
declare module '@authing/react-ui-components/scripts/publish' {
|
|
4581
|
-
export {};
|
|
4582
|
-
|
|
4583
|
-
}
|
|
4584
|
-
declare module '@authing/react-ui-components/scripts/start' {
|
|
4585
|
-
export {};
|
|
4586
|
-
|
|
4587
|
-
}
|
|
4588
|
-
declare module '@authing/react-ui-components/scripts/tag' {
|
|
4589
|
-
export {};
|
|
4590
|
-
|
|
4591
|
-
}
|
|
4592
|
-
declare module '@authing/react-ui-components/scripts/test' {
|
|
4593
|
-
export {};
|
|
4594
|
-
|
|
4595
|
-
}
|
|
4596
|
-
declare module '@authing/react-ui-components/scripts/utils/is-guard-publish' {
|
|
4597
|
-
function _exports(): any;
|
|
4598
|
-
export = _exports;
|
|
4599
|
-
|
|
4600
|
-
}
|
|
4601
|
-
declare module '@authing/react-ui-components/setupTests' {
|
|
4602
|
-
import '@testing-library/jest-dom';
|
|
2666
|
+
declare module '@authing/react-ui-components/version/index' {
|
|
2667
|
+
import version from '@authing/react-ui-components/version/version';
|
|
2668
|
+
export default version;
|
|
4603
2669
|
|
|
4604
2670
|
}
|
|
4605
|
-
declare module '@authing/react-ui-components/
|
|
4606
|
-
const _default:
|
|
2671
|
+
declare module '@authing/react-ui-components/version/version' {
|
|
2672
|
+
const _default: "4.0.0-beta.0";
|
|
4607
2673
|
export default _default;
|
|
4608
2674
|
|
|
4609
2675
|
}
|