@authing/react-ui-components 3.1.37-beta.7 → 4.0.0-rc.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 CHANGED
@@ -1,11 +1,11 @@
1
- declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
1
+ declare module '@authing/react-ui-components/AuthClientProvider/AuthClientProvider' {
2
2
  import React from 'react';
3
- import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
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/components/AuthClientProvider/context' {
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/components/AuthClientProvider/index' {
18
- export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider';
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/components/AuthingDropdown/index' {
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/components/BindTotp/businessRequest' {
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/components/_utils/http").AuthingGuardResponse<any>>;
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/components/BindTotp/core/bindSuccess' {
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/components/BindTotp/core/securityCode' {
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/components/BindTotp/index' {
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/components/BindTotp/interface' {
1141
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1142
- import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1143
- import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/interface';
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,12 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
1160
88
  }
1161
89
 
1162
90
  }
1163
- declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
91
+ declare module '@authing/react-ui-components/ChangeLanguage/index' {
1164
92
  /// <reference types="react" />
1165
93
  export const ChangeLanguage: (props: any) => JSX.Element | null;
1166
94
 
1167
95
  }
1168
- declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
96
+ declare module '@authing/react-ui-components/ChangePassword/businessRequest' {
1169
97
  export enum ChangePasswordBusinessAction {
1170
98
  ResetPassword = "reset-password-first-time",
1171
99
  FirstLoginReset = "reset-password-forced",
@@ -1174,10 +102,10 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
1174
102
  export const authFlow: (action: ChangePasswordBusinessAction, content: {
1175
103
  password: string;
1176
104
  oldPassword?: string;
1177
- }) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
105
+ }) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1178
106
 
1179
107
  }
1180
- declare module '@authing/react-ui-components/components/ChangePassword/core/PasswordNotSafeReset' {
108
+ declare module '@authing/react-ui-components/ChangePassword/core/PasswordNotSafeReset' {
1181
109
  import React from 'react';
1182
110
  interface PasswordNotSafeResetProps {
1183
111
  onReset: any;
@@ -1186,12 +114,12 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/Pass
1186
114
  export {};
1187
115
 
1188
116
  }
1189
- declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
117
+ declare module '@authing/react-ui-components/ChangePassword/core/completePassword' {
1190
118
  import React from 'react';
1191
119
  export const CompletePassword: React.FC;
1192
120
 
1193
121
  }
1194
- declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
122
+ declare module '@authing/react-ui-components/ChangePassword/core/firstLoginReset' {
1195
123
  import React from 'react';
1196
124
  interface FirstLoginResetProps {
1197
125
  onReset: any;
@@ -1200,7 +128,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/firs
1200
128
  export {};
1201
129
 
1202
130
  }
1203
- declare module '@authing/react-ui-components/components/ChangePassword/core/rotateReset' {
131
+ declare module '@authing/react-ui-components/ChangePassword/core/rotateReset' {
1204
132
  /// <reference types="react" />
1205
133
  interface RotateResetProps {
1206
134
  onReset: any;
@@ -1210,7 +138,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
1210
138
  export {};
1211
139
 
1212
140
  }
1213
- declare module '@authing/react-ui-components/components/ChangePassword/index' {
141
+ declare module '@authing/react-ui-components/ChangePassword/index' {
1214
142
  import React from 'react';
1215
143
  export const GuardChangePassword: React.FC<{
1216
144
  title: string;
@@ -1223,21 +151,21 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1223
151
  export const GuardRegisterCompletePasswordView: React.FC;
1224
152
 
1225
153
  }
1226
- declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
154
+ declare module '@authing/react-ui-components/CompleteInfo/businessRequest' {
1227
155
  import { User } from 'authing-js-sdk';
1228
- import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
156
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/CompleteInfo/interface';
1229
157
  export enum CompleteInfoAuthFlowAction {
1230
158
  Complete = "complete-completion",
1231
159
  Skip = "skip-completion"
1232
160
  }
1233
- export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1234
- export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
1235
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined>;
161
+ export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
162
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
163
+ 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
164
 
1237
165
  }
1238
- declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
166
+ declare module '@authing/react-ui-components/CompleteInfo/core/completeInfo' {
1239
167
  import React from 'react';
1240
- import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
168
+ import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/CompleteInfo/interface';
1241
169
  export interface CompleteInfoProps {
1242
170
  metaData: CompleteInfoMetaData[];
1243
171
  businessRequest: (data: CompleteInfoRequest) => Promise<void>;
@@ -1249,11 +177,11 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
1249
177
  export const CompleteInfo: React.FC<CompleteInfoProps>;
1250
178
 
1251
179
  }
1252
- declare module '@authing/react-ui-components/components/CompleteInfo/index' {
180
+ declare module '@authing/react-ui-components/CompleteInfo/index' {
1253
181
  import React from 'react';
1254
- import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
182
+ import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/CompleteInfo/interface';
1255
183
  import './styles.less';
1256
- import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/components/CompleteInfo/businessRequest';
184
+ import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/CompleteInfo/businessRequest';
1257
185
  export const GuardCompleteInfo: React.FC<{
1258
186
  metaData: CompleteInfoMetaData[];
1259
187
  skipComplateFileds: boolean;
@@ -1263,9 +191,9 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
1263
191
  export const GuardRegisterCompleteInfoView: React.FC;
1264
192
 
1265
193
  }
1266
- declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
194
+ declare module '@authing/react-ui-components/CompleteInfo/interface' {
1267
195
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
1268
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
196
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
1269
197
  export interface CompleteInfoConfig extends IG2Config {
1270
198
  }
1271
199
  export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
@@ -1365,12 +293,12 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1365
293
  }
1366
294
 
1367
295
  }
1368
- declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
296
+ declare module '@authing/react-ui-components/CompleteInfo/utils' {
1369
297
  import { User } from 'authing-js-sdk';
1370
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1371
- import { CompleteInfoMetaData, ExtendsField } from '@authing/react-ui-components/components/CompleteInfo/interface';
298
+ import { CompleteInfoMetaData, ExtendsField } from '@authing/react-ui-components/CompleteInfo/interface';
299
+ import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
1372
300
  export const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
1373
- export const extendsFieldsToMetaData: (extendsFields: import("@authing/react-ui-components/components/AuthingGuard/api/index").ExtendsField[] | undefined, selectOptions: {
301
+ export const extendsFieldsToMetaData: (extendsFields: import("@authing/react-ui-components/Type/application").ExtendsField[] | undefined, selectOptions: {
1374
302
  key: string;
1375
303
  options: {
1376
304
  value: string;
@@ -1384,7 +312,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
1384
312
  }[] | undefined) => Record<string, any>;
1385
313
 
1386
314
  }
1387
- declare module '@authing/react-ui-components/components/CopyAbleText/index' {
315
+ declare module '@authing/react-ui-components/CopyAbleText/index' {
1388
316
  import React, { FC } from 'react';
1389
317
  import './style.less';
1390
318
  export interface CopyTextProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1392,14 +320,14 @@ declare module '@authing/react-ui-components/components/CopyAbleText/index' {
1392
320
  export const CopyAbleText: FC<CopyTextProps>;
1393
321
 
1394
322
  }
1395
- declare module '@authing/react-ui-components/components/DownloadAuthenticator/index' {
323
+ declare module '@authing/react-ui-components/DownloadAuthenticator/index' {
1396
324
  import React from 'react';
1397
325
  import './styles.less';
1398
326
  export const GuardDownloadATView: React.FC;
1399
327
 
1400
328
  }
1401
- declare module '@authing/react-ui-components/components/DownloadAuthenticator/interface' {
1402
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
329
+ declare module '@authing/react-ui-components/DownloadAuthenticator/interface' {
330
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
1403
331
  export interface DownloadATConfig extends IG2Config {
1404
332
  }
1405
333
  export const getDefaultDownloadAuthenticatorConfig: () => DownloadATConfig;
@@ -1413,7 +341,7 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
1413
341
  }
1414
342
 
1415
343
  }
1416
- declare module '@authing/react-ui-components/components/Error/index' {
344
+ declare module '@authing/react-ui-components/Error/index' {
1417
345
  import React from 'react';
1418
346
  import './styles.less';
1419
347
  export interface ErrorProps {
@@ -1422,7 +350,7 @@ declare module '@authing/react-ui-components/components/Error/index' {
1422
350
  export const GuardErrorView: React.FC<ErrorProps>;
1423
351
 
1424
352
  }
1425
- declare module '@authing/react-ui-components/components/Error/interface' {
353
+ declare module '@authing/react-ui-components/Error/interface' {
1426
354
  export interface ErrorInitData {
1427
355
  error?: Error;
1428
356
  }
@@ -1433,7 +361,7 @@ declare module '@authing/react-ui-components/components/Error/interface' {
1433
361
  }
1434
362
 
1435
363
  }
1436
- declare module '@authing/react-ui-components/components/ForgetPassword/core/resetPassword' {
364
+ declare module '@authing/react-ui-components/ForgetPassword/core/resetPassword' {
1437
365
  /// <reference types="react" />
1438
366
  export enum InputMethodMap {
1439
367
  email = "email-code",
@@ -1449,14 +377,14 @@ declare module '@authing/react-ui-components/components/ForgetPassword/core/rese
1449
377
  export {};
1450
378
 
1451
379
  }
1452
- declare module '@authing/react-ui-components/components/ForgetPassword/index' {
380
+ declare module '@authing/react-ui-components/ForgetPassword/index' {
1453
381
  import React from 'react';
1454
382
  export const GuardForgetPassword: React.FC;
1455
383
 
1456
384
  }
1457
- declare module '@authing/react-ui-components/components/ForgetPassword/interface' {
1458
- import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
1459
- import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
385
+ declare module '@authing/react-ui-components/ForgetPassword/interface' {
386
+ import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
387
+ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
1460
388
  export interface ForgetPasswordEvents extends IG2Events {
1461
389
  onPwdEmailSend?: (authClient: AuthenticationClient) => void;
1462
390
  onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
@@ -1475,10 +403,10 @@ declare module '@authing/react-ui-components/components/ForgetPassword/interface
1475
403
  }
1476
404
 
1477
405
  }
1478
- declare module '@authing/react-ui-components/components/Guard/Guard' {
1479
- import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
1480
- import { GuardAppendConfig, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1481
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
406
+ declare module '@authing/react-ui-components/Guard/Guard' {
407
+ import { GuardEvents } from '@authing/react-ui-components/Guard/event';
408
+ import { GuardAppendConfig, IG2FCProps } from '@authing/react-ui-components/Type/index';
409
+ import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
1482
410
  import 'moment/locale/zh-cn';
1483
411
  import React from 'react';
1484
412
  export interface GuardProps extends GuardEvents, IG2FCProps {
@@ -1488,9 +416,9 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
1488
416
  export const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
1489
417
 
1490
418
  }
1491
- declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
1492
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1493
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
419
+ declare module '@authing/react-ui-components/Guard/GuardModule/stateMachine' {
420
+ import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
421
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/module';
1494
422
  export interface ModuleState {
1495
423
  moduleName: GuardModuleType;
1496
424
  initData?: any;
@@ -1528,381 +456,58 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1528
456
  export const getGuardStateMachine: () => GuardStateMachine;
1529
457
  export const useGuardStateMachine: () => GuardStateMachine;
1530
458
 
1531
- }
1532
- declare module '@authing/react-ui-components/components/Guard/authClient' {
1533
- import { AuthenticationClient } from 'authing-js-sdk';
1534
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
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/components/Guard/config' {
1550
- import { ReactNode } from 'react';
1551
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1552
- import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1553
- import { RegisterConfig } from '@authing/react-ui-components/components/Register/interface';
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;
459
+ }
460
+ declare module '@authing/react-ui-components/Guard/authClient' {
461
+ import { AuthenticationClient } from 'authing-js-sdk';
462
+ import { GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
463
+ let authClient: AuthenticationClient;
464
+ export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
465
+ export const useInitGuardAuthClient: (props: {
466
+ config?: GuardLocalConfig | undefined;
467
+ appId?: string | undefined;
468
+ authClient?: AuthenticationClient | undefined;
469
+ setError?: any;
470
+ tenantId?: string | undefined;
471
+ }) => AuthenticationClient | undefined;
472
+ export const getGuardAuthClient: () => AuthenticationClient;
473
+ export const useGuardAuthClient: () => AuthenticationClient;
474
+ export {};
475
+
476
+ }
477
+ declare module '@authing/react-ui-components/Guard/config' {
478
+ import { ReactNode } from 'react';
479
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
480
+ import { LoginConfig } from '@authing/react-ui-components/Login/interface';
481
+ import { RegisterConfig } from '@authing/react-ui-components/Register/interface';
482
+ export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
483
+ }
484
+ export enum QrCodeScanType {
485
+ appQrcode = "appQrcode",
486
+ wechatMiniQrcode = "wechatMiniQrcode",
487
+ wechatmpQrcode = "wechatmpQrcode"
488
+ }
489
+ export interface QrCodeScanOptions {
490
+ qrcode: string;
491
+ }
492
+ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
493
+ isSSO?: boolean;
494
+ defaultScenes?: GuardModuleType;
495
+ defaultInitData?: any;
496
+ showLoading?: boolean;
497
+ loadingComponent?: ReactNode;
1816
498
  /**
1817
- * 外部暴露方法
499
+ * @description 是否调用 eventsMapping 中的事件
1818
500
  */
1819
- getStore: () => {
1820
- initStore: (appId: string, options: {
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
- };
501
+ openEventsMapping?: boolean;
502
+ _qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
1852
503
  }
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;
504
+ export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1900
505
 
1901
506
  }
1902
- declare module '@authing/react-ui-components/components/Guard/core/index' {
507
+ declare module '@authing/react-ui-components/Guard/core/index' {
1903
508
  /// <reference types="react" />
1904
- import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
1905
- import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
509
+ import { GuardProps } from '@authing/react-ui-components/Guard/index';
510
+ import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
1906
511
  export interface GuardCoreProps {
1907
512
  guardProps: GuardProps;
1908
513
  initState: ModuleState;
@@ -1910,19 +515,19 @@ declare module '@authing/react-ui-components/components/Guard/core/index' {
1910
515
  export const GuardCore: (props: GuardCoreProps) => JSX.Element;
1911
516
 
1912
517
  }
1913
- declare module '@authing/react-ui-components/components/Guard/core/renderContext' {
1914
- import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
518
+ declare module '@authing/react-ui-components/Guard/core/renderContext' {
519
+ import { GuardProps } from '@authing/react-ui-components/Guard/index';
1915
520
  import React from 'react';
1916
- import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
521
+ import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
1917
522
  export const RenderContext: React.FC<{
1918
523
  guardProps: GuardProps;
1919
524
  initState: ModuleState;
1920
525
  }>;
1921
526
 
1922
527
  }
1923
- declare module '@authing/react-ui-components/components/Guard/core/renderModule' {
528
+ declare module '@authing/react-ui-components/Guard/core/renderModule' {
1924
529
  import React from 'react';
1925
- import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
530
+ import { GuardProps } from '@authing/react-ui-components/Guard/index';
1926
531
  import '../styles.less';
1927
532
  export enum LangMAP {
1928
533
  zhCn = "zh-CN",
@@ -1933,63 +538,31 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
1933
538
  }>;
1934
539
 
1935
540
  }
1936
- declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
1937
- import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
541
+ declare module '@authing/react-ui-components/Guard/core/useAppendConfig' {
542
+ import { GuardAppendConfig } from '@authing/react-ui-components/index';
1938
543
  export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
1939
544
  export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
1940
- export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
545
+ export const useInitGuardAppendConfig: (setForceUpdate: any, appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
1941
546
 
1942
547
  }
1943
- declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
1944
- import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
548
+ declare module '@authing/react-ui-components/Guard/core/usePlugin' {
549
+ import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
1945
550
  export const useGuardPlugin: any;
1946
551
  export const useGuardFacePlugin: (facePlugin?: FacePlugin | undefined) => boolean;
1947
552
 
1948
553
  }
1949
- declare module '@authing/react-ui-components/components/Guard/event' {
1950
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1951
- import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
1952
- import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
1953
- import { IdentityBindingEvents } from '@authing/react-ui-components/components/IdentityBinding/interface';
1954
- import { IdentityBindingAskEvents } from '@authing/react-ui-components/components/IdentityBindingAsk/index';
1955
- import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
1956
- import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
554
+ declare module '@authing/react-ui-components/Guard/event' {
555
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
556
+ import { CompleteInfoEvents } from '@authing/react-ui-components/CompleteInfo/interface';
557
+ import { ForgetPasswordEvents } from '@authing/react-ui-components/ForgetPassword/interface';
558
+ import { IdentityBindingEvents } from '@authing/react-ui-components/IdentityBinding/interface';
559
+ import { IdentityBindingAskEvents } from '@authing/react-ui-components/IdentityBindingAsk/index';
560
+ import { LoginEvents } from '@authing/react-ui-components/Login/interface';
561
+ import { RegisterEvents } from '@authing/react-ui-components/Register/interface';
1957
562
  export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
1958
563
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
1959
564
  }
1960
- export const guardEventsFilter: (props: any, multipleInstance?: {
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;
565
+ export const guardEventsFilter: (props: any, openEventsMapping?: boolean | undefined) => GuardEvents;
1993
566
  export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
1994
567
  export const GuardEventsCamelToKebabMapping: {
1995
568
  readonly onLoad: "load";
@@ -2037,14 +610,14 @@ declare module '@authing/react-ui-components/components/Guard/event' {
2037
610
  }
2038
611
 
2039
612
  }
2040
- declare module '@authing/react-ui-components/components/Guard/index' {
2041
- export * from '@authing/react-ui-components/components/Guard/Guard';
2042
- export * from '@authing/react-ui-components/components/Guard/module';
2043
- export * from '@authing/react-ui-components/components/Guard/event';
2044
- export * from '@authing/react-ui-components/components/Guard/config';
613
+ declare module '@authing/react-ui-components/Guard/index' {
614
+ export * from '@authing/react-ui-components/Guard/Guard';
615
+ export * from '@authing/react-ui-components/Guard/module';
616
+ export * from '@authing/react-ui-components/Guard/event';
617
+ export * from '@authing/react-ui-components/Guard/config';
2045
618
 
2046
619
  }
2047
- declare module '@authing/react-ui-components/components/Guard/module' {
620
+ declare module '@authing/react-ui-components/Guard/module' {
2048
621
  export enum GuardModuleType {
2049
622
  ERROR = "error",
2050
623
  LOGIN = "login",
@@ -2075,8 +648,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
2075
648
  }
2076
649
 
2077
650
  }
2078
- declare module '@authing/react-ui-components/components/Guard/sso' {
2079
- import { User } from '@authing/react-ui-components/components/index';
651
+ declare module '@authing/react-ui-components/Guard/sso' {
652
+ import { User } from 'authing-js-sdk';
2080
653
  export interface SessionData {
2081
654
  session: null | {
2082
655
  _id: string;
@@ -2094,10 +667,10 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
2094
667
  };
2095
668
  userInfo?: User;
2096
669
  }
2097
- export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
670
+ export const trackSession: () => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<SessionData>>;
2098
671
 
2099
672
  }
2100
- declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
673
+ declare module '@authing/react-ui-components/GuardButton/GuardButton' {
2101
674
  import React from 'react';
2102
675
  import { ButtonProps } from 'antd/lib/button';
2103
676
  import './styles.less';
@@ -2106,15 +679,15 @@ declare module '@authing/react-ui-components/components/GuardButton/GuardButton'
2106
679
  export const GuardButton: React.FC<GuardButtonProps>;
2107
680
 
2108
681
  }
2109
- declare module '@authing/react-ui-components/components/GuardButton/index' {
2110
- export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
682
+ declare module '@authing/react-ui-components/GuardButton/index' {
683
+ export * from '@authing/react-ui-components/GuardButton/GuardButton';
2111
684
 
2112
685
  }
2113
- declare module '@authing/react-ui-components/components/IconFont/iconfont' {
686
+ declare module '@authing/react-ui-components/IconFont/iconfont' {
2114
687
  export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
2115
688
 
2116
689
  }
2117
- declare module '@authing/react-ui-components/components/IconFont/index' {
690
+ declare module '@authing/react-ui-components/IconFont/index' {
2118
691
  import React, { FC } from 'react';
2119
692
  import './iconfont';
2120
693
  import './style.less';
@@ -2125,17 +698,17 @@ declare module '@authing/react-ui-components/components/IconFont/index' {
2125
698
  }>;
2126
699
 
2127
700
  }
2128
- declare module '@authing/react-ui-components/components/IconFont/useGuardIconfont' {
701
+ declare module '@authing/react-ui-components/IconFont/useGuardIconfont' {
2129
702
  export const useGuardIconfont: (cdnBase?: string | undefined, setError?: any) => boolean;
2130
703
 
2131
704
  }
2132
- declare module '@authing/react-ui-components/components/IdentityBinding/IdentityBinding' {
705
+ declare module '@authing/react-ui-components/IdentityBinding/IdentityBinding' {
2133
706
  import React from 'react';
2134
707
  import './styles.less';
2135
708
  export const GuardIdentityBindingView: React.FC;
2136
709
 
2137
710
  }
2138
- declare module '@authing/react-ui-components/components/IdentityBinding/businessRequest' {
711
+ declare module '@authing/react-ui-components/IdentityBinding/businessRequest' {
2139
712
  export enum IdentityBindingBusinessAction {
2140
713
  PhoneCode = "phone-code",
2141
714
  EmailCode = "emial-code",
@@ -2161,26 +734,26 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
2161
734
  BindByPhoneCode = "bind-identity-by-phone-code",
2162
735
  BindByEmailCode = "bind-identity-by-email-code"
2163
736
  }
2164
- export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2165
- export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2166
- export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
737
+ export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
738
+ export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
739
+ export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
2167
740
  export const useIdentityBindingBusinessRequest: () => {
2168
- "phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2169
- "emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2170
- password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
741
+ "phone-code": (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
742
+ "emial-code": (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
743
+ password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
2171
744
  };
2172
745
 
2173
746
  }
2174
- declare module '@authing/react-ui-components/components/IdentityBinding/index' {
2175
- export * from '@authing/react-ui-components/components/IdentityBinding/IdentityBinding';
2176
- export * from '@authing/react-ui-components/components/IdentityBinding/interface';
747
+ declare module '@authing/react-ui-components/IdentityBinding/index' {
748
+ export * from '@authing/react-ui-components/IdentityBinding/IdentityBinding';
749
+ export * from '@authing/react-ui-components/IdentityBinding/interface';
2177
750
 
2178
751
  }
2179
- declare module '@authing/react-ui-components/components/IdentityBinding/interface' {
2180
- import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/index';
2181
- import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2182
- import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
2183
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
752
+ declare module '@authing/react-ui-components/IdentityBinding/interface' {
753
+ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/index';
754
+ import { AuthenticationClient, User } from 'authing-js-sdk';
755
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
756
+ import { Agreement } from '@authing/react-ui-components/Type/application';
2184
757
  export interface IdentityBindingConfig extends IG2Config {
2185
758
  autoRegister?: boolean;
2186
759
  publicKey?: string;
@@ -2206,20 +779,20 @@ declare module '@authing/react-ui-components/components/IdentityBinding/interfac
2206
779
  }
2207
780
 
2208
781
  }
2209
- declare module '@authing/react-ui-components/components/IdentityBindingAsk/IdentityBindingAsk' {
782
+ declare module '@authing/react-ui-components/IdentityBindingAsk/IdentityBindingAsk' {
2210
783
  import React from 'react';
2211
784
  import './styles.less';
2212
785
  export const GuardIdentityBindingAskView: React.FC;
2213
786
 
2214
787
  }
2215
- declare module '@authing/react-ui-components/components/IdentityBindingAsk/index' {
2216
- export * from '@authing/react-ui-components/components/IdentityBindingAsk/IdentityBindingAsk';
2217
- export * from '@authing/react-ui-components/components/IdentityBindingAsk/interface';
788
+ declare module '@authing/react-ui-components/IdentityBindingAsk/index' {
789
+ export * from '@authing/react-ui-components/IdentityBindingAsk/IdentityBindingAsk';
790
+ export * from '@authing/react-ui-components/IdentityBindingAsk/interface';
2218
791
 
2219
792
  }
2220
- declare module '@authing/react-ui-components/components/IdentityBindingAsk/interface' {
2221
- import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
2222
- import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/index';
793
+ declare module '@authing/react-ui-components/IdentityBindingAsk/interface' {
794
+ import { AuthenticationClient, User } from 'authing-js-sdk';
795
+ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/index';
2223
796
  export interface IdentityBindingAskConfig extends IG2Config {
2224
797
  }
2225
798
  export interface IdentityBindingAskEvents extends IG2Events {
@@ -2241,7 +814,7 @@ declare module '@authing/react-ui-components/components/IdentityBindingAsk/inter
2241
814
  }
2242
815
 
2243
816
  }
2244
- declare module '@authing/react-ui-components/components/ImagePro/index' {
817
+ declare module '@authing/react-ui-components/ImagePro/index' {
2245
818
  import React from 'react';
2246
819
  import './styles.less';
2247
820
  export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
@@ -2258,7 +831,7 @@ declare module '@authing/react-ui-components/components/ImagePro/index' {
2258
831
  export const ImagePro: (props: ImageProProps) => JSX.Element;
2259
832
 
2260
833
  }
2261
- declare module '@authing/react-ui-components/components/InputNumber/index' {
834
+ declare module '@authing/react-ui-components/InputNumber/index' {
2262
835
  import { InputProps } from 'antd/lib/input';
2263
836
  import React from 'react';
2264
837
  export interface InputNumberProps extends InputProps {
@@ -2266,22 +839,21 @@ declare module '@authing/react-ui-components/components/InputNumber/index' {
2266
839
  export const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<any>>;
2267
840
 
2268
841
  }
2269
- declare module '@authing/react-ui-components/components/InputPassword/index' {
842
+ declare module '@authing/react-ui-components/InputPassword/index' {
2270
843
  import { Input } from 'antd';
2271
844
  import { PasswordProps } from 'antd/lib/input';
2272
845
  import React from 'react';
2273
846
  export const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
2274
847
 
2275
848
  }
2276
- declare module '@authing/react-ui-components/components/Login/codemap' {
2277
- import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
849
+ declare module '@authing/react-ui-components/Login/codemap' {
850
+ import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
2278
851
  export const codeMap: Record<number, GuardModuleAction>;
2279
852
 
2280
853
  }
2281
- declare module '@authing/react-ui-components/components/Login/core/withAD' {
854
+ declare module '@authing/react-ui-components/Login/core/withAD' {
2282
855
  /// <reference types="react" />
2283
- import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2284
- import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
856
+ import { Agreement } from '@authing/react-ui-components/Type/application';
2285
857
  interface LoginWithADProps {
2286
858
  publicKey: string;
2287
859
  autoRegister?: boolean;
@@ -2289,36 +861,25 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
2289
861
  onLoginFailed: any;
2290
862
  onBeforeLogin: any;
2291
863
  agreements: Agreement[];
2292
- /**
2293
- * 回填的数据
2294
- */
2295
- backfillData?: BackFillMultipleState;
2296
- /**
2297
- * 根据输入的账号 & 返回获得对应的登录方法
2298
- */
2299
- multipleInstance?: StoreInstance;
2300
864
  }
2301
865
  export const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
2302
866
  export {};
2303
867
 
2304
868
  }
2305
- declare module '@authing/react-ui-components/components/Login/core/withAppQrcode' {
869
+ declare module '@authing/react-ui-components/Login/core/withAppQrcode' {
2306
870
  /// <reference types="react" />
2307
- import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
2308
871
  interface LoginWithAppQrcodeProps {
2309
872
  onLoginSuccess: any;
2310
873
  canLoop: boolean;
2311
874
  qrCodeScanOptions: any;
2312
- multipleInstance?: StoreInstance;
2313
875
  }
2314
876
  export const LoginWithAppQrcode: (props: LoginWithAppQrcodeProps) => JSX.Element;
2315
877
  export {};
2316
878
 
2317
879
  }
2318
- declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
880
+ declare module '@authing/react-ui-components/Login/core/withLDAP' {
2319
881
  /// <reference types="react" />
2320
- import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2321
- import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
882
+ import { Agreement } from '@authing/react-ui-components/Type/application';
2322
883
  interface LoginWithLDAPProps {
2323
884
  publicKey: string;
2324
885
  autoRegister?: boolean;
@@ -2327,30 +888,22 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
2327
888
  onLoginFailed: any;
2328
889
  onBeforeLogin: any;
2329
890
  agreements: Agreement[];
2330
- /**
2331
- * 根据输入的账号 & 返回获得对应的登录方法
2332
- */
2333
- multipleInstance?: StoreInstance;
2334
- /**
2335
- * 多账号回填的数据
2336
- */
2337
- backfillData?: BackFillMultipleState;
2338
891
  }
2339
892
  export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
2340
893
  export {};
2341
894
 
2342
895
  }
2343
- declare module '@authing/react-ui-components/components/Login/core/withPassword/FormItemAccount' {
896
+ declare module '@authing/react-ui-components/Login/core/withPassword/FormItemAccount' {
2344
897
  import { FormItemProps } from 'antd/lib/form';
2345
898
  import React from 'react';
2346
- import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
899
+ import { PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
2347
900
  export interface FormItemAccountProps extends FormItemProps {
2348
901
  passwordLoginMethods: PasswordLoginMethods[];
2349
902
  }
2350
903
  export const FormItemAccount: React.FC<FormItemAccountProps>;
2351
904
 
2352
905
  }
2353
- declare module '@authing/react-ui-components/components/Login/core/withPassword/GraphicVerifyCode' {
906
+ declare module '@authing/react-ui-components/Login/core/withPassword/GraphicVerifyCode' {
2354
907
  import { InputProps } from 'antd/lib/input';
2355
908
  import React from 'react';
2356
909
  export interface GraphicVerifyCodeProps extends InputProps {
@@ -2360,22 +913,20 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
2360
913
  export const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
2361
914
 
2362
915
  }
2363
- declare module '@authing/react-ui-components/components/Login/core/withPassword/InputAccount' {
916
+ declare module '@authing/react-ui-components/Login/core/withPassword/InputAccount' {
2364
917
  import { InputProps } from 'antd/lib/input';
2365
918
  import React from 'react';
2366
- import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
919
+ import { PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
2367
920
  export interface InputAccountProps extends InputProps {
2368
921
  passwordLoginMethods: PasswordLoginMethods[];
2369
922
  }
2370
923
  export const InputAccount: React.FC<InputAccountProps>;
2371
924
 
2372
925
  }
2373
- declare module '@authing/react-ui-components/components/Login/core/withPassword/index' {
926
+ declare module '@authing/react-ui-components/Login/core/withPassword/index' {
2374
927
  /// <reference types="react" />
2375
- import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2376
- import { LoginMethods } from '@authing/react-ui-components/components/index';
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';
928
+ import { AuthingResponse } from '@authing/react-ui-components/_utils/http';
929
+ import { Agreement, LoginMethods, PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
2379
930
  interface LoginWithPasswordProps {
2380
931
  publicKey: string;
2381
932
  autoRegister?: boolean;
@@ -2389,23 +940,15 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
2389
940
  loginWay?: LoginMethods;
2390
941
  submitButText?: string;
2391
942
  saveIdentify?: (type: LoginMethods, identity: string) => void;
2392
- /**
2393
- * 根据输入的账号 & 返回获得对应的登录方法
2394
- */
2395
- multipleInstance?: StoreInstance;
2396
- /**
2397
- * 多账号回填的数据
2398
- */
2399
- backfillData?: BackFillMultipleState;
2400
943
  }
2401
944
  export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
2402
945
  export {};
2403
946
 
2404
947
  }
2405
- declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/FormItemIdentify' {
948
+ declare module '@authing/react-ui-components/Login/core/withVerifyCode/FormItemIdentify' {
2406
949
  import { FormItemProps } from 'antd/lib/form';
2407
950
  import React from 'react';
2408
- import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
951
+ import { VerifyLoginMethods } from '@authing/react-ui-components/Type/application';
2409
952
  export interface FormItemIdentifyProps extends FormItemProps {
2410
953
  checkRepeat?: boolean;
2411
954
  checkExist?: boolean;
@@ -2416,7 +959,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
2416
959
  export const FormItemIdentify: React.FC<FormItemIdentifyProps>;
2417
960
 
2418
961
  }
2419
- declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/InputInternationPhone' {
962
+ declare module '@authing/react-ui-components/Login/core/withVerifyCode/InputInternationPhone' {
2420
963
  import { InputProps } from 'antd/lib/input';
2421
964
  import React from 'react';
2422
965
  export interface InputInternationPhoneProps extends InputProps {
@@ -2426,14 +969,10 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
2426
969
  export const InputInternationPhone: React.FC<InputInternationPhoneProps>;
2427
970
 
2428
971
  }
2429
- declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/VirtualDropdown' {
972
+ declare module '@authing/react-ui-components/Login/core/withVerifyCode/VirtualDropdown' {
2430
973
  import React, { FC } from 'react';
2431
974
  import './styles.less';
2432
975
  export interface VirtualDropdownProps {
2433
- /**
2434
- * 回填的国际化区号
2435
- */
2436
- regionCode?: string;
2437
976
  value?: string;
2438
977
  onChange?: (value: string) => void;
2439
978
  style?: React.CSSProperties;
@@ -2441,132 +980,55 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
2441
980
  export const VirtualDropdown: FC<VirtualDropdownProps>;
2442
981
 
2443
982
  }
2444
- declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/index' {
983
+ declare module '@authing/react-ui-components/Login/core/withVerifyCode/index' {
2445
984
  /// <reference types="react" />
2446
985
  import './styles.less';
2447
- const LoginWithVerifyCode: (props: any) => JSX.Element;
2448
- export { LoginWithVerifyCode };
986
+ export const LoginWithVerifyCode: (props: any) => JSX.Element;
2449
987
 
2450
988
  }
2451
- declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/inputIdentify' {
989
+ declare module '@authing/react-ui-components/Login/core/withVerifyCode/inputIdentify' {
2452
990
  import { InputProps } from 'antd/lib/input';
2453
991
  import React from 'react';
2454
- import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
992
+ import { VerifyLoginMethods } from '@authing/react-ui-components/Type/application';
2455
993
  export interface InputIdentifyProps extends InputProps {
2456
994
  methods: VerifyLoginMethods[];
2457
995
  }
2458
996
  export const InputIdentify: React.FC<InputIdentifyProps>;
2459
997
 
2460
998
  }
2461
- declare module '@authing/react-ui-components/components/Login/core/withWechatMiniQrcode' {
999
+ declare module '@authing/react-ui-components/Login/core/withWechatMiniQrcode' {
2462
1000
  /// <reference types="react" />
2463
- import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
2464
1001
  interface LoginWithWechatMiniQrcodeProps {
2465
1002
  onLoginSuccess: any;
2466
1003
  canLoop: boolean;
2467
1004
  qrCodeScanOptions: any;
2468
- id: string;
2469
- multipleInstance?: StoreInstance;
2470
1005
  }
2471
1006
  export const LoginWithWechatMiniQrcode: (props: LoginWithWechatMiniQrcodeProps) => JSX.Element;
2472
1007
  export {};
2473
1008
 
2474
1009
  }
2475
- declare module '@authing/react-ui-components/components/Login/core/withWechatmpQrcode' {
1010
+ declare module '@authing/react-ui-components/Login/core/withWechatmpQrcode' {
2476
1011
  /// <reference types="react" />
2477
- import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
2478
1012
  interface LoginWithWechatmpQrcodeProps {
2479
1013
  onLoginSuccess: any;
2480
1014
  canLoop: boolean;
2481
1015
  qrCodeScanOptions: any;
2482
- id: string;
2483
- /**
2484
- * 多账号存储实例
2485
- */
2486
- multipleInstance?: StoreInstance;
2487
1016
  }
2488
1017
  export const LoginWithWechatmpQrcode: (props: LoginWithWechatmpQrcodeProps) => JSX.Element;
2489
1018
  export {};
2490
1019
 
2491
1020
  }
2492
- declare module '@authing/react-ui-components/components/Login/hooks/useLoginMultiple' {
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' {
1021
+ declare module '@authing/react-ui-components/Login/index' {
2558
1022
  /// <reference types="react" />
2559
1023
  import './styles.less';
2560
1024
  export const GuardLoginView: () => JSX.Element;
2561
1025
 
2562
1026
  }
2563
- declare module '@authing/react-ui-components/components/Login/interface' {
2564
- import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
2565
- import { SocialConnectionProvider } from 'authing-js-sdk';
1027
+ declare module '@authing/react-ui-components/Login/interface' {
1028
+ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
1029
+ import { AuthenticationClient, SocialConnectionProvider, User } from 'authing-js-sdk';
2566
1030
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
2567
- import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
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';
1031
+ import { Agreement, LoginMethods, PasswordLoginMethods } from '@authing/react-ui-components/Type/application';
2570
1032
  export interface LoginConfig extends IG2Config {
2571
1033
  autoRegister?: boolean;
2572
1034
  disableResetPwd?: boolean;
@@ -2586,7 +1048,7 @@ declare module '@authing/react-ui-components/components/Login/interface' {
2586
1048
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
2587
1049
  onLoginError?: (errorMessages: any) => void;
2588
1050
  onLoginTabChange?: (activeTab: LoginMethods) => void;
2589
- onBeforeLogin?: (loginInfo: PasswordLoginParams | LDAPLoginParams | ADLoginParams | PhoneCodeLoginParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
1051
+ onBeforeLogin?: (loginInfo: any, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2590
1052
  }
2591
1053
  export interface GuardLoginProps extends IG2FCProps, LoginEvents {
2592
1054
  config?: Partial<LoginConfig>;
@@ -2602,90 +1064,16 @@ declare module '@authing/react-ui-components/components/Login/interface' {
2602
1064
  export const getDefaultLoginConfig: () => LoginConfig;
2603
1065
 
2604
1066
  }
2605
- declare module '@authing/react-ui-components/components/Login/multipleAccounts/index' {
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' {
1067
+ declare module '@authing/react-ui-components/Login/socialLogin/IdpButton/index' {
2679
1068
  /// <reference types="react" />
2680
1069
  export const IdpButton: (props: any) => JSX.Element | null;
2681
1070
 
2682
1071
  }
2683
- declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1072
+ declare module '@authing/react-ui-components/Login/socialLogin/index' {
2684
1073
  import React from 'react';
2685
- import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2686
1074
  import './style.less';
2687
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
2688
- import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
1075
+ import { GuardLocalConfig } from '@authing/react-ui-components/Guard/index';
1076
+ import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/Type/application';
2689
1077
  export interface SocialLoginProps {
2690
1078
  appId: string;
2691
1079
  config: GuardLocalConfig;
@@ -2693,25 +1081,21 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
2693
1081
  onLoginSuccess: any;
2694
1082
  enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
2695
1083
  socialConnectionObjs: SocialConnectionItem[];
2696
- /**
2697
- * 根据输入的账号 & 返回获得对应的登录方法
2698
- */
2699
- multipleInstance?: StoreInstance;
2700
1084
  }
2701
1085
  export const SocialLogin: React.FC<SocialLoginProps>;
2702
1086
 
2703
1087
  }
2704
- declare module '@authing/react-ui-components/components/Login/socialLogin/postMessage' {
2705
- import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2706
- export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | {
1088
+ declare module '@authing/react-ui-components/Login/socialLogin/postMessage' {
1089
+ import { AuthingResponse } from '@authing/react-ui-components/_utils/http';
1090
+ export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any> | {
2707
1091
  code: any;
2708
1092
  data: any;
2709
1093
  onGuardHandling: undefined;
2710
1094
  } | undefined;
2711
- export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>;
1095
+ export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>;
2712
1096
 
2713
1097
  }
2714
- declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
1098
+ declare module '@authing/react-ui-components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
2715
1099
  import { FormItemProps } from 'antd/lib/form';
2716
1100
  import React from 'react';
2717
1101
  import './style.less';
@@ -2722,7 +1106,7 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/Veri
2722
1106
  export const VerifyCodeFormItem: React.FC<VerifyCodeFormItemProps>;
2723
1107
 
2724
1108
  }
2725
- declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/index' {
1109
+ declare module '@authing/react-ui-components/MFA/VerifyCodeInput/index' {
2726
1110
  import React, { FC } from 'react';
2727
1111
  import './style.less';
2728
1112
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -2739,7 +1123,7 @@ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/inde
2739
1123
  export {};
2740
1124
 
2741
1125
  }
2742
- declare module '@authing/react-ui-components/components/MFA/businessRequest' {
1126
+ declare module '@authing/react-ui-components/MFA/businessRequest' {
2743
1127
  export enum MfaBusinessAction {
2744
1128
  VerifyEmail = "verify-email",
2745
1129
  VerifySms = "verify-sms",
@@ -2747,7 +1131,7 @@ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
2747
1131
  VerifyFace = "verify-face",
2748
1132
  AssociateFace = "associate-face"
2749
1133
  }
2750
- export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1134
+ export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
2751
1135
  interface VerifySmsContent {
2752
1136
  phone: string;
2753
1137
  code: string;
@@ -2773,29 +1157,29 @@ declare module '@authing/react-ui-components/components/MFA/businessRequest' {
2773
1157
  isExternalPhoto?: boolean;
2774
1158
  mfaToken?: string;
2775
1159
  }
2776
- export const VerifyEmail: (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2777
- export const VerifySms: (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2778
- export const VerifyTotp: (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2779
- export const VerifyFace: (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2780
- export const AssociateFace: (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1160
+ export const VerifyEmail: (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1161
+ export const VerifySms: (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1162
+ export const VerifyTotp: (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1163
+ export const VerifyFace: (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1164
+ export const AssociateFace: (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
2781
1165
  export const useMfaBusinessRequest: () => {
2782
- "verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2783
- "verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2784
- "verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2785
- "verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
2786
- "associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1166
+ "verify-email": (content: VerifyEmailContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1167
+ "verify-sms": (content: VerifySmsContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1168
+ "verify-totp": (content: VerifyTotpContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1169
+ "verify-face": (content: VerifyFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
1170
+ "associate-face": (content: AssociateFaceContent) => Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<any>>;
2787
1171
  };
2788
1172
  export {};
2789
1173
 
2790
1174
  }
2791
- declare module '@authing/react-ui-components/components/MFA/codemap' {
2792
- import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
1175
+ declare module '@authing/react-ui-components/MFA/codemap' {
1176
+ import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
2793
1177
  export const codeMap: Record<number, GuardModuleAction>;
2794
1178
 
2795
1179
  }
2796
- declare module '@authing/react-ui-components/components/MFA/core/email' {
1180
+ declare module '@authing/react-ui-components/MFA/core/email' {
2797
1181
  import React from 'react';
2798
- import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1182
+ import { MFAConfig } from '@authing/react-ui-components/MFA/interface';
2799
1183
  interface BindMFAEmailProps {
2800
1184
  mfaToken: string;
2801
1185
  onBind: (email: string) => void;
@@ -2819,12 +1203,12 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
2819
1203
  export {};
2820
1204
 
2821
1205
  }
2822
- declare module '@authing/react-ui-components/components/MFA/core/face' {
1206
+ declare module '@authing/react-ui-components/MFA/core/face' {
2823
1207
  /// <reference types="react" />
2824
1208
  export const MFAFace: (props: any) => JSX.Element;
2825
1209
 
2826
1210
  }
2827
- declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
1211
+ declare module '@authing/react-ui-components/MFA/core/face_deps' {
2828
1212
  export const devicesConstraints: {
2829
1213
  video: {
2830
1214
  width: number;
@@ -2838,9 +1222,9 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
2838
1222
  export function dataURItoBlob(base64Data: any): Blob;
2839
1223
 
2840
1224
  }
2841
- declare module '@authing/react-ui-components/components/MFA/core/sms' {
1225
+ declare module '@authing/react-ui-components/MFA/core/sms' {
2842
1226
  import React from 'react';
2843
- import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1227
+ import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/MFA/interface';
2844
1228
  export interface BindMFASmsProps {
2845
1229
  mfaToken: string;
2846
1230
  onBind: (phone: string) => void;
@@ -2869,9 +1253,9 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
2869
1253
  }>;
2870
1254
 
2871
1255
  }
2872
- declare module '@authing/react-ui-components/components/MFA/core/totp' {
1256
+ declare module '@authing/react-ui-components/MFA/core/totp' {
2873
1257
  import React from 'react';
2874
- import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1258
+ import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/MFA/interface';
2875
1259
  export interface BindMFATotpProps {
2876
1260
  initData: GuardMFAInitData;
2877
1261
  changeModule: any;
@@ -2892,7 +1276,7 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
2892
1276
  export const MFATotp: React.FC<MFATotpProps>;
2893
1277
 
2894
1278
  }
2895
- declare module '@authing/react-ui-components/components/MFA/index' {
1279
+ declare module '@authing/react-ui-components/MFA/index' {
2896
1280
  import React from 'react';
2897
1281
  import './styles.less';
2898
1282
  interface MFABackStateContextType {
@@ -2904,9 +1288,9 @@ declare module '@authing/react-ui-components/components/MFA/index' {
2904
1288
  export {};
2905
1289
 
2906
1290
  }
2907
- declare module '@authing/react-ui-components/components/MFA/interface' {
2908
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2909
- import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1291
+ declare module '@authing/react-ui-components/MFA/interface' {
1292
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
1293
+ import { AuthenticationClient, User } from 'authing-js-sdk';
2910
1294
  export interface MFAConfig extends IG2Config {
2911
1295
  autoRegister: boolean;
2912
1296
  }
@@ -2947,9 +1331,9 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
2947
1331
  }
2948
1332
 
2949
1333
  }
2950
- declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
1334
+ declare module '@authing/react-ui-components/MFA/mfaMethods/index' {
2951
1335
  import React from 'react';
2952
- import { MFAType } from '@authing/react-ui-components/components/MFA/interface';
1336
+ import { MFAType } from '@authing/react-ui-components/MFA/interface';
2953
1337
  import './style.less';
2954
1338
  export interface MFAMethodsProps {
2955
1339
  method: MFAType;
@@ -2958,7 +1342,7 @@ declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
2958
1342
  export const MFAMethods: React.FC<MFAMethodsProps>;
2959
1343
 
2960
1344
  }
2961
- declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
1345
+ declare module '@authing/react-ui-components/NeedHelpView/core/describeQuestions' {
2962
1346
  /// <reference types="react" />
2963
1347
  interface describeQuestionsProps {
2964
1348
  appId: string;
@@ -2969,20 +1353,20 @@ declare module '@authing/react-ui-components/components/NeedHelpView/core/descri
2969
1353
  export {};
2970
1354
 
2971
1355
  }
2972
- declare module '@authing/react-ui-components/components/NeedHelpView/index' {
1356
+ declare module '@authing/react-ui-components/NeedHelpView/index' {
2973
1357
  /// <reference types="react" />
2974
1358
  export const GuardNeedHelpView: (props: any) => JSX.Element;
2975
1359
 
2976
1360
  }
2977
- declare module '@authing/react-ui-components/components/RecoveryCode/businessRequest' {
1361
+ declare module '@authing/react-ui-components/RecoveryCode/businessRequest' {
2978
1362
  export enum TotpRecoveryCodeBusinessAction {
2979
1363
  RecoveryTotp = "recovery-totp",
2980
1364
  ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
2981
1365
  }
2982
- export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
1366
+ export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/_utils/http").AuthingGuardResponse<T>>;
2983
1367
 
2984
1368
  }
2985
- declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCode' {
1369
+ declare module '@authing/react-ui-components/RecoveryCode/core/saveCode' {
2986
1370
  import React from 'react';
2987
1371
  export const SaveCode: React.FC<{
2988
1372
  secret: string;
@@ -2990,9 +1374,9 @@ declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCo
2990
1374
  }>;
2991
1375
 
2992
1376
  }
2993
- declare module '@authing/react-ui-components/components/RecoveryCode/core/useCode' {
1377
+ declare module '@authing/react-ui-components/RecoveryCode/core/useCode' {
2994
1378
  import React from 'react';
2995
- import { User } from '@authing/react-ui-components/components/index';
1379
+ import { User } from 'authing-js-sdk';
2996
1380
  export interface UseCodeProps {
2997
1381
  mfaToken: string;
2998
1382
  onSubmit: (recoveryCode: string, user?: User) => void;
@@ -3000,7 +1384,7 @@ declare module '@authing/react-ui-components/components/RecoveryCode/core/useCod
3000
1384
  export const UseCode: React.FC<UseCodeProps>;
3001
1385
 
3002
1386
  }
3003
- declare module '@authing/react-ui-components/components/RecoveryCode/index' {
1387
+ declare module '@authing/react-ui-components/RecoveryCode/index' {
3004
1388
  import React from 'react';
3005
1389
  import './style.less';
3006
1390
  export const RecoveryCode: React.FC;
@@ -3008,9 +1392,9 @@ declare module '@authing/react-ui-components/components/RecoveryCode/index' {
3008
1392
  export const GuardRecoveryCodeView: React.FC;
3009
1393
 
3010
1394
  }
3011
- declare module '@authing/react-ui-components/components/RecoveryCode/interface' {
3012
- import { IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
3013
- import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1395
+ declare module '@authing/react-ui-components/RecoveryCode/interface' {
1396
+ import { IG2Config, IG2Events } from '@authing/react-ui-components/Type/index';
1397
+ import { AuthenticationClient, User } from 'authing-js-sdk';
3014
1398
  export interface RecoveryCodeConfig extends IG2Config {
3015
1399
  }
3016
1400
  export const getDefaultRecoveryCodeConfig: () => RecoveryCodeConfig;
@@ -3019,15 +1403,15 @@ declare module '@authing/react-ui-components/components/RecoveryCode/interface'
3019
1403
  }
3020
1404
 
3021
1405
  }
3022
- declare module '@authing/react-ui-components/components/Register/codemap' {
3023
- import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
1406
+ declare module '@authing/react-ui-components/Register/codemap' {
1407
+ import { GuardModuleAction } from '@authing/react-ui-components/Guard/module';
3024
1408
  export const codeMap: Record<number, GuardModuleAction>;
3025
1409
 
3026
1410
  }
3027
- declare module '@authing/react-ui-components/components/Register/components/Agreements/index' {
1411
+ declare module '@authing/react-ui-components/Register/components/Agreements/index' {
3028
1412
  import React, { FC } from 'react';
3029
1413
  import './style.less';
3030
- import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1414
+ import { Agreement } from '@authing/react-ui-components/Type/application';
3031
1415
  export interface AgreementsProps {
3032
1416
  value?: boolean;
3033
1417
  onChange?: (value: boolean) => void;
@@ -3038,9 +1422,9 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
3038
1422
  export const Agreements: FC<AgreementsProps>;
3039
1423
 
3040
1424
  }
3041
- declare module '@authing/react-ui-components/components/Register/core/WithCode' {
1425
+ declare module '@authing/react-ui-components/Register/core/WithCode' {
3042
1426
  import React from 'react';
3043
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1427
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
3044
1428
  export interface RegisterWithCodeProps {
3045
1429
  onRegisterSuccess: Function;
3046
1430
  onRegisterFailed: Function;
@@ -3053,9 +1437,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithCode'
3053
1437
  export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
3054
1438
 
3055
1439
  }
3056
- declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
1440
+ declare module '@authing/react-ui-components/Register/core/WithEmail' {
3057
1441
  import React from 'react';
3058
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1442
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
3059
1443
  export interface RegisterWithEmailProps {
3060
1444
  onRegisterSuccess: Function;
3061
1445
  onRegisterFailed: Function;
@@ -3067,9 +1451,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
3067
1451
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
3068
1452
 
3069
1453
  }
3070
- declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
1454
+ declare module '@authing/react-ui-components/Register/core/WithEmailCode' {
3071
1455
  import React from 'react';
3072
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1456
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
3073
1457
  export interface RegisterWithEmailCodeProps {
3074
1458
  onRegisterSuccess: Function;
3075
1459
  onRegisterFailed: Function;
@@ -3081,9 +1465,9 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmailC
3081
1465
  export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
3082
1466
 
3083
1467
  }
3084
- declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
1468
+ declare module '@authing/react-ui-components/Register/core/WithPhone' {
3085
1469
  import React from 'react';
3086
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1470
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/Type/application';
3087
1471
  export interface RegisterWithPhoneProps {
3088
1472
  onRegisterSuccess: Function;
3089
1473
  onRegisterFailed: Function;
@@ -3094,15 +1478,15 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
3094
1478
  export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
3095
1479
 
3096
1480
  }
3097
- declare module '@authing/react-ui-components/components/Register/index' {
1481
+ declare module '@authing/react-ui-components/Register/index' {
3098
1482
  import React from 'react';
3099
1483
  export const GuardRegisterView: React.FC;
3100
1484
 
3101
1485
  }
3102
- declare module '@authing/react-ui-components/components/Register/interface' {
3103
- import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
3104
- import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams, RegisterMethods } from '@authing/react-ui-components/components/index';
3105
- import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1486
+ declare module '@authing/react-ui-components/Register/interface' {
1487
+ import { AuthenticationClient, User } from 'authing-js-sdk';
1488
+ import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/Type/index';
1489
+ import { Agreement, RegisterMethods } from '@authing/react-ui-components/Type/application';
3106
1490
  export interface RegisterConfig extends IG2Config {
3107
1491
  disableRegister?: boolean;
3108
1492
  registerMethods?: RegisterMethods[];
@@ -3113,7 +1497,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
3113
1497
  registerContext?: any;
3114
1498
  }
3115
1499
  export interface RegisterEvents extends IG2Events {
3116
- onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
1500
+ onBeforeRegister?: (registerInfo: any, authClient: AuthenticationClient) => boolean | Promise<boolean>;
3117
1501
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
3118
1502
  onRegisterError?: (error: any) => void;
3119
1503
  onRegisterTabChange?: (activeTab: RegisterMethods) => void;
@@ -3127,11 +1511,11 @@ declare module '@authing/react-ui-components/components/Register/interface' {
3127
1511
  export const getDefaultRegisterConfig: () => RegisterConfig;
3128
1512
 
3129
1513
  }
3130
- declare module '@authing/react-ui-components/components/Register/utils' {
1514
+ declare module '@authing/react-ui-components/Register/utils' {
3131
1515
  export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
3132
1516
 
3133
1517
  }
3134
- declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
1518
+ declare module '@authing/react-ui-components/SelfUnlock/core/selfUnlock' {
3135
1519
  import React from 'react';
3136
1520
  export enum InputMethodMap {
3137
1521
  email = "email-code",
@@ -3142,14 +1526,14 @@ declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlo
3142
1526
  }) => JSX.Element;
3143
1527
 
3144
1528
  }
3145
- declare module '@authing/react-ui-components/components/SelfUnlock/index' {
1529
+ declare module '@authing/react-ui-components/SelfUnlock/index' {
3146
1530
  import React from 'react';
3147
1531
  export const GuardUnlockView: React.FC;
3148
1532
 
3149
1533
  }
3150
- declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
3151
- import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
3152
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1534
+ declare module '@authing/react-ui-components/SelfUnlock/interface' {
1535
+ import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
1536
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/Type/index';
3153
1537
  export interface ForgetPasswordEvents extends IG2Events {
3154
1538
  onPwdEmailSend?: (authClient: AuthenticationClient) => void;
3155
1539
  onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
@@ -3165,7 +1549,7 @@ declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
3165
1549
  }
3166
1550
 
3167
1551
  }
3168
- declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
1552
+ declare module '@authing/react-ui-components/SendCode/SendCodeBtn' {
3169
1553
  import React, { FC } from 'react';
3170
1554
  import './style.less';
3171
1555
  import { ButtonProps } from 'antd/lib/button';
@@ -3178,11 +1562,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
3178
1562
  export const SendCodeBtn: FC<SendCodeProps>;
3179
1563
 
3180
1564
  }
3181
- declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
1565
+ declare module '@authing/react-ui-components/SendCode/SendCodeByEmail' {
3182
1566
  import { FC } from 'react';
3183
1567
  import './style.less';
3184
1568
  import { InputProps } from 'antd/lib/input';
3185
- import { EmailScene } from '@authing/react-ui-components/components/Type/index';
1569
+ import { EmailScene } from '@authing/react-ui-components/Type/index';
3186
1570
  export interface SendCodeByEmailProps extends InputProps {
3187
1571
  data?: string;
3188
1572
  form?: any;
@@ -3194,7 +1578,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
3194
1578
  export const SendCodeByEmail: FC<SendCodeByEmailProps>;
3195
1579
 
3196
1580
  }
3197
- declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone' {
1581
+ declare module '@authing/react-ui-components/SendCode/SendCodeByPhone' {
3198
1582
  import { FC } from 'react';
3199
1583
  import { SceneType } from 'authing-js-sdk';
3200
1584
  import './style.less';
@@ -3212,7 +1596,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone
3212
1596
  export const SendCodeByPhone: FC<SendCodeByPhoneProps>;
3213
1597
 
3214
1598
  }
3215
- declare module '@authing/react-ui-components/components/SendCode/index' {
1599
+ declare module '@authing/react-ui-components/SendCode/index' {
3216
1600
  import { FC } from 'react';
3217
1601
  import './style.less';
3218
1602
  import { InputProps } from 'antd/lib/input';
@@ -3224,7 +1608,7 @@ declare module '@authing/react-ui-components/components/SendCode/index' {
3224
1608
  export const SendCode: FC<SendPhoneCodeProps>;
3225
1609
 
3226
1610
  }
3227
- declare module '@authing/react-ui-components/components/ShieldSpin/index' {
1611
+ declare module '@authing/react-ui-components/ShieldSpin/index' {
3228
1612
  /// <reference types="react" />
3229
1613
  interface IG2SpinProps {
3230
1614
  size?: number;
@@ -3234,19 +1618,19 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
3234
1618
  export {};
3235
1619
 
3236
1620
  }
3237
- declare module '@authing/react-ui-components/components/SingleComponent/SingleComponent' {
1621
+ declare module '@authing/react-ui-components/SingleComponent/SingleComponent' {
3238
1622
  /// <reference types="react" />
3239
- import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/components/index';
1623
+ import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/index';
3240
1624
  export function SingleComponent<T extends IG2FCProps>(props: T, guardModuleType: GuardModuleType, initData?: any): JSX.Element;
3241
1625
 
3242
1626
  }
3243
- declare module '@authing/react-ui-components/components/SingleComponent/index' {
1627
+ declare module '@authing/react-ui-components/SingleComponent/index' {
3244
1628
  import React from 'react';
3245
- import { GuardRegisterProps } from '@authing/react-ui-components/components/Register/interface';
1629
+ import { GuardRegisterProps } from '@authing/react-ui-components/Register/interface';
3246
1630
  export const Register: React.FC<GuardRegisterProps>;
3247
1631
 
3248
1632
  }
3249
- declare module '@authing/react-ui-components/components/SubmitButton/index' {
1633
+ declare module '@authing/react-ui-components/SubmitButton/index' {
3250
1634
  import React from 'react';
3251
1635
  import { ButtonProps } from 'antd/lib/button';
3252
1636
  interface SubmitButtonProps extends ButtonProps {
@@ -3255,42 +1639,298 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
3255
1639
  onClick?: any;
3256
1640
  disabled?: boolean;
3257
1641
  }
3258
- const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
3259
- export default _default;
3260
-
3261
- }
3262
- declare module '@authing/react-ui-components/components/SubmitSuccess/index' {
3263
- import React from 'react';
3264
- export const GuardSubmitSuccessView: React.FC;
3265
-
3266
- }
3267
- declare module '@authing/react-ui-components/components/SubmitSuccess/interface' {
3268
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
3269
- import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
3270
- export interface SubmitSuccessEvents extends IG2Events {
1642
+ const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
1643
+ export default _default;
1644
+
1645
+ }
1646
+ declare module '@authing/react-ui-components/SubmitSuccess/index' {
1647
+ import React from 'react';
1648
+ export const GuardSubmitSuccessView: React.FC;
1649
+
1650
+ }
1651
+ declare module '@authing/react-ui-components/SubmitSuccess/interface' {
1652
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
1653
+ import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/Type/index';
1654
+ export interface SubmitSuccessEvents extends IG2Events {
1655
+ }
1656
+ export interface SubmitSuccessConfig extends IG2Config {
1657
+ }
1658
+ export interface SubmitSuccessInitData {
1659
+ title?: string;
1660
+ message?: string;
1661
+ text?: string;
1662
+ countDesc?: string;
1663
+ changeModule?: GuardModuleType;
1664
+ }
1665
+ export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
1666
+ config: SubmitSuccessConfig;
1667
+ initData?: SubmitSuccessInitData;
1668
+ }
1669
+
1670
+ }
1671
+ declare module '@authing/react-ui-components/Type/application' {
1672
+ import { Lang } from '@authing/react-ui-components/index';
1673
+ import { PasswordStrength } from '@authing/react-ui-components/_utils/index';
1674
+ export enum LoginMethods {
1675
+ LDAP = "ldap",
1676
+ AppQr = "app-qrcode",
1677
+ Password = "password",
1678
+ PhoneCode = "phone-code",
1679
+ WxMinQr = "wechat-miniprogram-qrcode",
1680
+ AD = "ad",
1681
+ WechatMpQrcode = "wechatmp-qrcode"
1682
+ }
1683
+ export enum OIDCConnectionMode {
1684
+ FRONT_CHANNEL = "FRONT_CHANNEL",
1685
+ BACK_CHANNEL = "BACK_CHANNEL"
1686
+ }
1687
+ export enum SocialConnectionProvider {
1688
+ ALIPAY = "alipay",
1689
+ GOOGLE = "google",
1690
+ WECHATPC = "wechat:pc",
1691
+ WECHATMP = "wechat:webpage-authorization",
1692
+ WECHAT_MINIPROGRAM = "wechat:miniprogram:default",
1693
+ WECHAT_MINIPROGRAM_QRCODE = "wechat:miniprogram:qrconnect",
1694
+ WECHAT_MINIPROGRAM_APPLAUNCH = "wechat:miniprogram:app-launch",
1695
+ WECHATMOBILE = "wechat:mobile",
1696
+ GITHUB = "github",
1697
+ QQ = "qq",
1698
+ WECHATWORK_ADDRESS_BOOK = "wechatwork:addressbook",
1699
+ WECHATWORK_CORP_QRCONNECT = "wechatwork:corp:qrconnect",
1700
+ WECHATWORK_SERVICEPROVIDER_QRCONNECT = "wechatwork:service-provider:qrconnect",
1701
+ DINGTALK = "dingtalk",
1702
+ WEIBO = "weibo",
1703
+ APPLE = "apple",
1704
+ APPLE_WEB = "apple:web",
1705
+ LARK_PUBLIC = "lark-public",
1706
+ LARK_INTERNAL = "lark-internal",
1707
+ BAIDU = "baidu",
1708
+ LINKEDIN = "linkedin",
1709
+ SLACK = "slack",
1710
+ YIDUN = "yidun",
1711
+ QINGCLOUD = "qingcloud",
1712
+ FACEBOOK = "facebook"
1713
+ }
1714
+ export enum Protocol {
1715
+ AD = "ad",
1716
+ CAS = "cas",
1717
+ LDAP = "ldap",
1718
+ OIDC = "oidc",
1719
+ SAML = "saml",
1720
+ OAUTH = "oauth",
1721
+ AZURE_AD = "azure-ad"
1722
+ }
1723
+ export interface IOAuthConnectionConfig {
1724
+ authEndPoint: string;
1725
+ tokenEndPoint: string;
1726
+ scope: string;
1727
+ clientId: string;
1728
+ clientSecret: string;
1729
+ authUrlTemplate: string;
1730
+ codeToTokenScript: string;
1731
+ tokenToUserInfoScript: string;
1732
+ tokenToUserInfoScriptFuncId: string;
1733
+ codeToTokenScriptFuncId: string;
1734
+ authUrl?: string;
1735
+ }
1736
+ export interface IAzureAdConnectionConfig {
1737
+ microsoftAzureAdDomain: string;
1738
+ clientId: string;
1739
+ syncUserProfileOnLogin: string;
1740
+ emailVerifiedDefault: boolean;
1741
+ authorizationUrl: string;
1742
+ callbackUrl: string;
1743
+ }
1744
+ export interface ISamlConnectionConfig {
1745
+ signInEndPoint: string;
1746
+ samlRequest?: string;
1747
+ samlIdpCert: string;
1748
+ samlSpCert: string;
1749
+ samlSpKey: string;
1750
+ signOutEndPoint: string;
1751
+ signSamlRequest: boolean;
1752
+ signatureAlgorithm: string;
1753
+ digestAlgorithm: string;
1754
+ protocolBinding: string;
1755
+ }
1756
+ export interface ICasConnectionConfig {
1757
+ casConnectionLoginUrl: string;
1758
+ }
1759
+ export interface SocialConnectionItem {
1760
+ name: string;
1761
+ name_en: string;
1762
+ displayName: string;
1763
+ logo: string;
1764
+ description: string;
1765
+ identifier: string;
1766
+ provider: SocialConnectionProvider;
1767
+ authorizationUrl: string;
1768
+ tooltip: Record<Lang, string>;
1769
+ }
1770
+ export enum RegisterMethods {
1771
+ Email = "email",
1772
+ Phone = "phone",
1773
+ EmailCode = "emailCode"
1774
+ }
1775
+ export type QrcodeTabsSettings = Record<LoginMethods, Array<{
1776
+ id: string;
1777
+ title: string;
1778
+ isDefault?: boolean;
1779
+ }>>;
1780
+ export interface OidcClientMetadata {
1781
+ grant_types: string[];
1782
+ client_id: string;
1783
+ redirect_uris: string[];
1784
+ scope: string;
1785
+ response_types: ResponseType[];
1786
+ }
1787
+ export interface OIDCConnectionConfig {
1788
+ issuerUrl: string;
1789
+ authorizationEdpoint: string;
1790
+ responseType: string;
1791
+ mode: OIDCConnectionMode;
1792
+ clientId: string;
1793
+ clientSecret: string;
1794
+ scopes: string;
1795
+ redirectUri: string;
1796
+ }
1797
+ export interface InternalExtendsField {
1798
+ type: 'internal';
1799
+ name: string;
1800
+ label: string;
1801
+ inputType: string;
1802
+ required: boolean;
1803
+ validateRules: any[];
1804
+ }
1805
+ export interface UserExtendsField {
1806
+ type: 'user';
1807
+ id: string;
1808
+ name: string;
1809
+ label: string;
1810
+ inputType: string;
1811
+ required: boolean;
1812
+ validateRules: any[];
1813
+ }
1814
+ export type ExtendsField = InternalExtendsField | UserExtendsField;
1815
+ export interface ApplicationPasswordTabConfig {
1816
+ enabledLoginMethods?: PasswordLoginMethods[];
3271
1817
  }
3272
- export interface SubmitSuccessConfig extends IG2Config {
1818
+ export interface ApplicationVerifyCodeTabConfig {
1819
+ enabledLoginMethods: VerifyLoginMethods[];
3273
1820
  }
3274
- export interface SubmitSuccessInitData {
3275
- title?: string;
3276
- message?: string;
3277
- text?: string;
3278
- countDesc?: string;
3279
- changeModule?: GuardModuleType;
1821
+ export interface Agreement {
1822
+ id: number;
1823
+ title: string;
1824
+ required: boolean;
1825
+ lang: Lang;
1826
+ availableAt?: number;
3280
1827
  }
3281
- export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
3282
- config: SubmitSuccessConfig;
3283
- initData?: SubmitSuccessInitData;
1828
+ export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
1829
+ export type VerifyLoginMethods = 'email-code' | 'phone-code';
1830
+ export type ComplateFiledsPlace = 'register' | 'login';
1831
+ export interface ApplicationConfig {
1832
+ id: string;
1833
+ allowedOrigins: string[];
1834
+ corsWhitelist: string[];
1835
+ cdnBase: string;
1836
+ userPoolId: string;
1837
+ rootUserPoolId: string;
1838
+ publicKey: string;
1839
+ internationalSmsConfig?: {
1840
+ enabled: boolean;
1841
+ defaultISOType: string;
1842
+ };
1843
+ css: string;
1844
+ customLoading?: string;
1845
+ name: string;
1846
+ logo: string;
1847
+ description?: string;
1848
+ redirectUris: string[];
1849
+ registerDisabled: boolean;
1850
+ mergeAdAndAccountPasswordLogin: boolean;
1851
+ registerTabs: {
1852
+ list: string[];
1853
+ default: string;
1854
+ title: {
1855
+ [x: string]: string;
1856
+ };
1857
+ };
1858
+ registerTabsConfig: {
1859
+ list: string[];
1860
+ default: string;
1861
+ title: {
1862
+ [x: string]: string;
1863
+ };
1864
+ registerTypeConfig: {
1865
+ emailRegisterType?: RegisterMethods[];
1866
+ phoneRegisterType?: RegisterMethods[];
1867
+ };
1868
+ };
1869
+ qrcodeTabsSettings: QrcodeTabsSettings;
1870
+ loginTabs: {
1871
+ list: string[];
1872
+ default: string;
1873
+ defaultV2?: string;
1874
+ title: {
1875
+ [x: string]: string;
1876
+ };
1877
+ };
1878
+ socialConnections: SocialConnectionItem[];
1879
+ complateFiledsPlace: ComplateFiledsPlace[];
1880
+ extendsFieldsEnabled: boolean;
1881
+ extendsFields: ExtendsField[];
1882
+ identifier: string;
1883
+ requestHostname: string;
1884
+ identityProviders: {
1885
+ identifier: string;
1886
+ protocol: Protocol;
1887
+ displayName: string;
1888
+ logo: string;
1889
+ config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
1890
+ }[];
1891
+ ssoPageComponentDisplay: {
1892
+ autoRegisterThenLoginHintInfo: boolean;
1893
+ forgetPasswordBtn: boolean;
1894
+ idpBtns: boolean;
1895
+ loginBtn: boolean;
1896
+ loginByPhoneCodeTab: boolean;
1897
+ loginByUserPasswordTab: boolean;
1898
+ loginMethodNav: boolean;
1899
+ phoneCodeInput: boolean;
1900
+ registerBtn: boolean;
1901
+ registerByEmailTab: boolean;
1902
+ registerByPhoneTab: boolean;
1903
+ registerMethodNav: boolean;
1904
+ socialLoginBtns: boolean;
1905
+ userPasswordInput: boolean;
1906
+ wxMpScanTab: boolean;
1907
+ };
1908
+ protocol: Protocol;
1909
+ oidcConfig: OidcClientMetadata;
1910
+ passwordTabConfig: ApplicationPasswordTabConfig;
1911
+ verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
1912
+ agreementEnabled: boolean;
1913
+ agreements: Agreement[];
1914
+ customPasswordStrength: any;
1915
+ passwordStrength: PasswordStrength;
1916
+ verifyCodeLength: number;
1917
+ websocket: string;
1918
+ welcomeMessage: any;
1919
+ skipComplateFileds: boolean;
1920
+ selfUnlockStrategy: 'captcha' | 'password-captcha';
3284
1921
  }
3285
1922
 
3286
1923
  }
3287
- declare module '@authing/react-ui-components/components/Type/index' {
1924
+ declare module '@authing/react-ui-components/Type/index' {
3288
1925
  import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
3289
- import { Lang } from 'authing-js-sdk/build/main/types';
3290
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3291
- import { GuardMode } from '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig';
3292
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
3293
- import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
1926
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/module';
1927
+ import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
1928
+ import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
1929
+ export type Lang = 'zh-CN' | 'en-US';
1930
+ export enum GuardMode {
1931
+ Modal = "modal",
1932
+ Normal = "normal"
1933
+ }
3294
1934
  export interface IG2FCProps extends IG2Events {
3295
1935
  appId?: string;
3296
1936
  tenantId?: string;
@@ -3365,28 +2005,36 @@ declare module '@authing/react-ui-components/components/Type/index' {
3365
2005
  }
3366
2006
 
3367
2007
  }
3368
- declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
2008
+ declare module '@authing/react-ui-components/UploadImage/index' {
2009
+ import { FC } from 'react';
2010
+ export const UploadImage: FC<{
2011
+ value?: string;
2012
+ onChange?: (value: string) => void;
2013
+ }>;
2014
+
2015
+ }
2016
+ declare module '@authing/react-ui-components/ValidatorRules/PasswordFormItem' {
3369
2017
  import React from 'react';
3370
- import { PasswordFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2018
+ import { PasswordFormItemProps } from '@authing/react-ui-components/ValidatorRules/index';
3371
2019
  export interface ExPasswordFormItemProps extends PasswordFormItemProps {
3372
2020
  fieldRequiredRuleMessage?: string;
3373
2021
  }
3374
2022
  export const PasswordFormItem: React.FC<ExPasswordFormItemProps>;
3375
2023
 
3376
2024
  }
3377
- declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
2025
+ declare module '@authing/react-ui-components/ValidatorRules/ValidatorFormItem' {
3378
2026
  import React from 'react';
3379
- import { ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2027
+ import { ValidatorFormItemProps } from '@authing/react-ui-components/ValidatorRules/index';
3380
2028
  export const EmailFormItem: React.FC<ValidatorFormItemProps>;
3381
2029
  export const PhoneFormItem: React.FC<ValidatorFormItemProps>;
3382
2030
  export const UserNameFormItem: React.FC<ValidatorFormItemProps>;
3383
2031
 
3384
2032
  }
3385
- declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2033
+ declare module '@authing/react-ui-components/ValidatorRules/index' {
3386
2034
  import { FormInstance, FormItemProps } from 'antd/lib/form';
3387
2035
  import FormItem from 'antd/lib/form/FormItem';
3388
- import { PasswordFormItem } from '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem';
3389
- import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
2036
+ import { PasswordFormItem } from '@authing/react-ui-components/ValidatorRules/PasswordFormItem';
2037
+ import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/ValidatorRules/ValidatorFormItem';
3390
2038
  export interface ValidatorFormItemProps extends FormItemProps {
3391
2039
  form?: FormInstance;
3392
2040
  checkRepeat?: boolean;
@@ -3416,11 +2064,11 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
3416
2064
  export default CustomFormItem;
3417
2065
 
3418
2066
  }
3419
- declare module '@authing/react-ui-components/components/ValidatorRules/useCheckRepeat' {
2067
+ declare module '@authing/react-ui-components/ValidatorRules/useCheckRepeat' {
3420
2068
  export const useCheckRepeat: (checkFn: (value: any, resolve: (value: unknown) => void, reject: (reason?: any) => void) => void) => (_: any, value: any) => Promise<unknown>;
3421
2069
 
3422
2070
  }
3423
- declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
2071
+ declare module '@authing/react-ui-components/VerifyCodeInput/index' {
3424
2072
  import React, { FC } from 'react';
3425
2073
  import './style.less';
3426
2074
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -3433,7 +2081,7 @@ declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
3433
2081
  export {};
3434
2082
 
3435
2083
  }
3436
- declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
2084
+ declare module '@authing/react-ui-components/_utils/GuardErrorCode' {
3437
2085
  export enum ErrorCode {
3438
2086
  OTP_MFA_CODE = 1635,
3439
2087
  APP_MFA_CODE = 1636,
@@ -3447,49 +2095,48 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
3447
2095
  }
3448
2096
 
3449
2097
  }
3450
- declare module '@authing/react-ui-components/components/_utils/appendConfig' {
3451
- import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
2098
+ declare module '@authing/react-ui-components/_utils/appendConfig' {
2099
+ import { GuardAppendConfig } from '@authing/react-ui-components/index';
3452
2100
  export const getAppendConfig: () => GuardAppendConfig;
3453
2101
  export const useAppendConfig: () => GuardAppendConfig;
3454
2102
  export const initAppendConfig: (appendConfig?: GuardAppendConfig) => void;
3455
2103
 
3456
2104
  }
3457
- declare module '@authing/react-ui-components/components/_utils/clipboard' {
2105
+ declare module '@authing/react-ui-components/_utils/clipboard' {
3458
2106
  export const copyToClipboard: (str: string) => void;
3459
2107
 
3460
2108
  }
3461
- declare module '@authing/react-ui-components/components/_utils/config/index' {
2109
+ declare module '@authing/react-ui-components/_utils/config/index' {
3462
2110
  /// <reference types="react" />
3463
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3464
- import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
3465
- import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
3466
- import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
3467
- import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
2111
+ import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/Guard/config';
2112
+ import { GuardHttp } from '@authing/react-ui-components/_utils/guardHttp';
2113
+ import { GuardPageConfig } from '@authing/react-ui-components/Type/index';
2114
+ import { ApplicationConfig, RegisterMethods } from '@authing/react-ui-components/Type/application';
3468
2115
  export const getPublicConfig: (appId: string) => ApplicationConfig;
3469
2116
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
3470
2117
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
3471
- export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
2118
+ export const useMergePublicConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
3472
2119
  host: string;
3473
2120
  isSSO?: boolean | undefined;
3474
- defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
2121
+ defaultScenes?: import("@authing/react-ui-components/index").GuardModuleType | undefined;
3475
2122
  defaultInitData?: any;
3476
2123
  showLoading?: boolean | undefined;
3477
2124
  loadingComponent?: import("react").ReactNode;
3478
2125
  openEventsMapping?: boolean | undefined;
3479
- _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2126
+ _qrCodeScanOptions?: Record<import("@authing/react-ui-components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
3480
2127
  disableRegister?: boolean | undefined;
3481
2128
  registerMethods?: RegisterMethods[] | undefined;
3482
2129
  defaultRegisterMethod?: RegisterMethods | undefined;
3483
2130
  publicKey?: string | undefined;
3484
2131
  agreementEnabled?: boolean | undefined;
3485
- agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
2132
+ agreements?: import("@authing/react-ui-components/Type/application").Agreement[] | undefined;
3486
2133
  registerContext?: any;
3487
2134
  title?: string | undefined;
3488
2135
  logo?: string | undefined;
3489
2136
  lang: string;
3490
2137
  langRange: string[];
3491
2138
  isHost?: boolean | undefined;
3492
- mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
2139
+ mode: import("@authing/react-ui-components/Type/index").GuardMode;
3493
2140
  clickCloseable: boolean;
3494
2141
  escCloseable: boolean;
3495
2142
  userpool?: string | undefined;
@@ -3500,9 +2147,9 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
3500
2147
  __unAuthFlow__?: boolean | undefined;
3501
2148
  autoRegister?: boolean | undefined;
3502
2149
  disableResetPwd?: boolean | undefined;
3503
- defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
3504
- loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
3505
- passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
2150
+ defaultLoginMethod?: import("@authing/react-ui-components/Type/application").LoginMethods | undefined;
2151
+ loginMethods?: import("@authing/react-ui-components/Type/application").LoginMethods[] | undefined;
2152
+ passwordLoginMethods?: import("@authing/react-ui-components/Type/application").PasswordLoginMethods[] | undefined;
3506
2153
  socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
3507
2154
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
3508
2155
  enterpriseConnections?: string[] | undefined;
@@ -3555,16 +2202,15 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
3555
2202
  export const getPageConfig: (appId: string) => GuardPageConfig;
3556
2203
  export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
3557
2204
  export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
3558
- export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
2205
+ export const useGuardPageConfig: (forceUpdate: number, appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
3559
2206
 
3560
2207
  }
3561
- declare module '@authing/react-ui-components/components/_utils/context' {
2208
+ declare module '@authing/react-ui-components/_utils/context' {
3562
2209
  import React from 'react';
3563
- import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
3564
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3565
- import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
3566
- import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
3567
- import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2210
+ import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/index';
2211
+ import { ModuleState } from '@authing/react-ui-components/Guard/GuardModule/stateMachine';
2212
+ import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
2213
+ import { GuardHttp } from '@authing/react-ui-components/_utils/guardHttp';
3568
2214
  export interface IGuardContext {
3569
2215
  finallyConfig: GuardLocalConfig;
3570
2216
  defaultMergedConfig: GuardLocalConfig;
@@ -3580,29 +2226,6 @@ declare module '@authing/react-ui-components/components/_utils/context' {
3580
2226
  isAuthFlow: boolean;
3581
2227
  contextLoaded: boolean;
3582
2228
  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
2229
  }
3607
2230
  export const createGuardXContext: () => {
3608
2231
  Provider: React.FC<{
@@ -3640,71 +2263,13 @@ declare module '@authing/react-ui-components/components/_utils/context' {
3640
2263
  export const useGuardContextLoaded: () => boolean;
3641
2264
  export const useGuardIsAuthFlow: () => boolean;
3642
2265
  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
2266
 
3702
2267
  }
3703
- declare module '@authing/react-ui-components/components/_utils/corsVerification' {
2268
+ declare module '@authing/react-ui-components/_utils/corsVerification' {
3704
2269
  export const corsVerification: (allowedOrigins?: string[], corsWhitelist?: string[]) => void;
3705
2270
 
3706
2271
  }
3707
- declare module '@authing/react-ui-components/components/_utils/countryList' {
2272
+ declare module '@authing/react-ui-components/_utils/countryList' {
3708
2273
  export interface IsoType {
3709
2274
  iso: string;
3710
2275
  regions: string;
@@ -3714,7 +2279,7 @@ declare module '@authing/react-ui-components/components/_utils/countryList' {
3714
2279
  export const isoInfo: IsoType[];
3715
2280
 
3716
2281
  }
3717
- declare module '@authing/react-ui-components/components/_utils/errorFace' {
2282
+ declare module '@authing/react-ui-components/_utils/errorFace' {
3718
2283
  enum FaceErrorName {
3719
2284
  NotAllowedError = "NotAllowedError",
3720
2285
  AbortError = "AbortError",
@@ -3729,14 +2294,14 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
3729
2294
  export {};
3730
2295
 
3731
2296
  }
3732
- declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
3733
- import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
2297
+ declare module '@authing/react-ui-components/_utils/facePlugin/index' {
2298
+ import { FacePlugin } from '@authing/react-ui-components/_utils/facePlugin/interface';
3734
2299
  export const getFacePlugin: () => FacePlugin | undefined;
3735
2300
  export const useFacePlugin: () => FacePlugin | undefined;
3736
2301
  export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
3737
2302
 
3738
2303
  }
3739
- declare module '@authing/react-ui-components/components/_utils/facePlugin/interface' {
2304
+ declare module '@authing/react-ui-components/_utils/facePlugin/interface' {
3740
2305
  export interface FacePlugin {
3741
2306
  detectSingleFace: any;
3742
2307
  TinyFaceDetectorOptions: any;
@@ -3744,22 +2309,22 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
3744
2309
  }
3745
2310
 
3746
2311
  }
3747
- declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
2312
+ declare module '@authing/react-ui-components/_utils/flowHandleStorage' {
3748
2313
  export const getFlowHandle: () => string | undefined;
3749
2314
  export const useFlowHandle: () => string | undefined;
3750
2315
  export const updateFlowHandle: (flowHandle: string) => void;
3751
2316
  export const useUpdateFlowHandle: (flowHandle: string) => void;
3752
2317
 
3753
2318
  }
3754
- declare module '@authing/react-ui-components/components/_utils/guardDocument' {
2319
+ declare module '@authing/react-ui-components/_utils/guardDocument' {
3755
2320
  export const getGuardDocument: () => Document;
3756
2321
  export const useAppendConfig: () => Document;
3757
2322
  export const initGuardDocument: (document: Document) => void;
3758
2323
 
3759
2324
  }
3760
- declare module '@authing/react-ui-components/components/_utils/guardHttp' {
3761
- import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
3762
- import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2325
+ declare module '@authing/react-ui-components/_utils/guardHttp' {
2326
+ import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/_utils/http';
2327
+ import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
3763
2328
  export class GuardHttp {
3764
2329
  private requestClient;
3765
2330
  private headers;
@@ -3787,10 +2352,9 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
3787
2352
  export const useGuardHttp: () => GuardHttp;
3788
2353
 
3789
2354
  }
3790
- declare module '@authing/react-ui-components/components/_utils/hooks/index' {
3791
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
3792
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3793
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
2355
+ declare module '@authing/react-ui-components/_utils/hooks/index' {
2356
+ import { GuardLocalConfig } from '@authing/react-ui-components/Guard/index';
2357
+ import { ApplicationConfig } from '@authing/react-ui-components/Type/application';
3794
2358
  export interface PhoneValidResult {
3795
2359
  isValid: boolean;
3796
2360
  phoneNumber: string;
@@ -3798,7 +2362,8 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
3798
2362
  countryIso3: string;
3799
2363
  countryCode: string;
3800
2364
  }
3801
- export const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
2365
+ export const HIDE_SOCIALS: string[];
2366
+ export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
3802
2367
  export const useAppId: (appId?: string | undefined) => string;
3803
2368
  export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
3804
2369
  export const useMediaSize: () => {
@@ -3833,8 +2398,8 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
3833
2398
  }) => any;
3834
2399
 
3835
2400
  }
3836
- declare module '@authing/react-ui-components/components/_utils/http' {
3837
- import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2401
+ declare module '@authing/react-ui-components/_utils/http' {
2402
+ import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
3838
2403
  import { AxiosRequestConfig } from 'axios';
3839
2404
  export const requestClient: {
3840
2405
  (input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
@@ -3869,15 +2434,14 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3869
2434
  }
3870
2435
 
3871
2436
  }
3872
- declare module '@authing/react-ui-components/components/_utils/index' {
2437
+ declare module '@authing/react-ui-components/_utils/index' {
3873
2438
  import { Rule } from 'antd/lib/form';
3874
2439
  import qs from 'qs';
3875
2440
  import { User } from 'authing-js-sdk';
3876
- import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3877
- import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3878
- import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
3879
- export * from '@authing/react-ui-components/components/_utils/popupCenter';
3880
- export * from '@authing/react-ui-components/components/_utils/clipboard';
2441
+ import { GuardProps } from '@authing/react-ui-components/Guard/index';
2442
+ import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods } from '@authing/react-ui-components/Type/application';
2443
+ export * from '@authing/react-ui-components/_utils/popupCenter';
2444
+ export * from '@authing/react-ui-components/_utils/clipboard';
3881
2445
  export const VALIDATE_PATTERN: {
3882
2446
  readonly email: RegExp;
3883
2447
  readonly phone: RegExp;
@@ -3890,9 +2454,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3890
2454
  export const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3891
2455
  export function getDeviceName(): string | null | undefined;
3892
2456
  export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
3893
- export const insertStyles: (styles: string | any, recordKey?: "userConfig" | "appConfig" | undefined) => void;
2457
+ export const insertStyles: (styles: string | any, recordKey?: "appConfig" | "userConfig" | undefined) => void;
3894
2458
  export const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
3895
- export const useTitle: (title: string, prefix?: string | undefined) => void;
3896
2459
  export const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
3897
2460
  /**
3898
2461
  * https://www.itranslater.com/qa/details/2115518846294557696
@@ -3964,7 +2527,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3964
2527
  export const getPasswordIdentify: (identity: string) => string;
3965
2528
 
3966
2529
  }
3967
- declare module '@authing/react-ui-components/components/_utils/initAppId' {
2530
+ declare module '@authing/react-ui-components/_utils/initAppId' {
3968
2531
  import { AuthenticationClient } from 'authing-js-sdk';
3969
2532
  export interface UseInitAppidProps {
3970
2533
  propsAppid?: string;
@@ -3974,32 +2537,37 @@ declare module '@authing/react-ui-components/components/_utils/initAppId' {
3974
2537
  export const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
3975
2538
 
3976
2539
  }
3977
- declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
3978
- import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
3979
- import login from '@authing/react-ui-components/components/_utils/locales/en/login/index';
3980
- import user from '@authing/react-ui-components/components/_utils/locales/en/user/index';
3981
- import map from '@authing/react-ui-components/components/_utils/locales/en/map/index';
3982
- export { common, login, user, map };
2540
+ declare module '@authing/react-ui-components/_utils/locales/en-us/index' {
2541
+ import common from '@authing/react-ui-components/_utils/locales/en-us/common/index';
2542
+ import login from '@authing/react-ui-components/_utils/locales/en-us/login/index';
2543
+ import user from '@authing/react-ui-components/_utils/locales/en-us/user/index';
2544
+ export { common, login, user };
3983
2545
 
3984
2546
  }
3985
- declare module '@authing/react-ui-components/components/_utils/locales/index' {
2547
+ declare module '@authing/react-ui-components/_utils/locales/index' {
3986
2548
  import i18n from 'i18next';
3987
- import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
2549
+ import { Lang } from '@authing/react-ui-components/Type/index';
3988
2550
  export const changeLang: (lang: Lang) => void;
3989
- const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
2551
+ const initI18n: (localesConfig?: {}, lang?: string | undefined) => void;
3990
2552
  export { i18n, initI18n };
3991
2553
 
3992
2554
  }
3993
- declare module '@authing/react-ui-components/components/_utils/locales/zh/index' {
3994
- import common from '@authing/react-ui-components/components/_utils/locales/zh/common/index';
3995
- import login from '@authing/react-ui-components/components/_utils/locales/zh/login/index';
3996
- import user from '@authing/react-ui-components/components/_utils/locales/zh/user/index';
3997
- import map from '@authing/react-ui-components/components/_utils/locales/zh/map/index';
3998
- export { common, login, user, map };
2555
+ declare module '@authing/react-ui-components/_utils/locales/zh-cn/index' {
2556
+ import common from '@authing/react-ui-components/_utils/locales/zh-cn/common/index';
2557
+ import login from '@authing/react-ui-components/_utils/locales/zh-cn/login/index';
2558
+ import user from '@authing/react-ui-components/_utils/locales/zh-cn/user/index';
2559
+ export { common, login, user };
2560
+
2561
+ }
2562
+ declare module '@authing/react-ui-components/_utils/locales/zh-tw/index' {
2563
+ import common from '@authing/react-ui-components/_utils/locales/zh-tw/common/index';
2564
+ import login from '@authing/react-ui-components/_utils/locales/zh-tw/login/index';
2565
+ import user from '@authing/react-ui-components/_utils/locales/zh-tw/user/index';
2566
+ export { common, login, user };
3999
2567
 
4000
2568
  }
4001
- declare module '@authing/react-ui-components/components/_utils/logger/index' {
4002
- import { LoggerType } from '@authing/react-ui-components/components/_utils/logger/interface';
2569
+ declare module '@authing/react-ui-components/_utils/logger/index' {
2570
+ import { LoggerType } from '@authing/react-ui-components/_utils/logger/interface';
4003
2571
  export class Logger {
4004
2572
  static printType: LoggerType[];
4005
2573
  /**
@@ -4016,7 +2584,7 @@ declare module '@authing/react-ui-components/components/_utils/logger/index' {
4016
2584
  export const useLogger: () => Logger;
4017
2585
 
4018
2586
  }
4019
- declare module '@authing/react-ui-components/components/_utils/logger/interface' {
2587
+ declare module '@authing/react-ui-components/_utils/logger/interface' {
4020
2588
  export enum LoggerType {
4021
2589
  INFO = "INFO",
4022
2590
  WARN = "WARN",
@@ -4024,7 +2592,7 @@ declare module '@authing/react-ui-components/components/_utils/logger/interface'
4024
2592
  }
4025
2593
 
4026
2594
  }
4027
- declare module '@authing/react-ui-components/components/_utils/popupCenter' {
2595
+ declare module '@authing/react-ui-components/_utils/popupCenter' {
4028
2596
  /**
4029
2597
  * 在屏幕中心弹出新窗口加载 url
4030
2598
  * @param url
@@ -4036,14 +2604,14 @@ declare module '@authing/react-ui-components/components/_utils/popupCenter' {
4036
2604
  }) => void;
4037
2605
 
4038
2606
  }
4039
- declare module '@authing/react-ui-components/components/_utils/responseManagement/index' {
4040
- import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
4041
- import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
2607
+ declare module '@authing/react-ui-components/_utils/responseManagement/index' {
2608
+ import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/_utils/http';
2609
+ import { CodeAction } from '@authing/react-ui-components/_utils/responseManagement/interface';
4042
2610
  export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
4043
2611
 
4044
2612
  }
4045
- declare module '@authing/react-ui-components/components/_utils/responseManagement/interface' {
4046
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
2613
+ declare module '@authing/react-ui-components/_utils/responseManagement/interface' {
2614
+ import { GuardModuleType } from '@authing/react-ui-components/Guard/index';
4047
2615
  export enum CodeAction {
4048
2616
  CHANGE_MODULE = "changeModule",
4049
2617
  RENDER_MESSAGE = "renderMessage",
@@ -4066,544 +2634,30 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
4066
2634
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
4067
2635
 
4068
2636
  }
4069
- declare module '@authing/react-ui-components/components/_utils/useErrorText' {
2637
+ declare module '@authing/react-ui-components/_utils/useErrorText' {
4070
2638
  import React from 'react';
4071
2639
  export const usePasswordErrorText: () => {
4072
2640
  setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
4073
2641
  getPassWordUnsafeText: () => JSX.Element;
4074
2642
  };
4075
2643
 
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.37-beta.7";
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
2644
  }
4549
2645
  declare module '@authing/react-ui-components/index' {
4550
- const _exports: typeof import("@authing/react-ui-components/components/index");
4551
- export = _exports;
2646
+ export * from '@authing/react-ui-components/_utils/config/index';
2647
+ export * from '@authing/react-ui-components/_utils/responseManagement/interface';
2648
+ export * from '@authing/react-ui-components/AuthClientProvider/index';
2649
+ export * from '@authing/react-ui-components/Guard/index';
2650
+ export * from '@authing/react-ui-components/Type/index';
2651
+ export * from '@authing/react-ui-components/version/index';
4552
2652
 
4553
2653
  }
4554
- declare module '@authing/react-ui-components/reportWebVitals' {
4555
- import { ReportHandler } from 'web-vitals';
4556
- const reportWebVitals: (onPerfEntry?: ReportHandler | undefined) => void;
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';
2654
+ declare module '@authing/react-ui-components/version/index' {
2655
+ import version from '@authing/react-ui-components/version/version';
2656
+ export default version;
4603
2657
 
4604
2658
  }
4605
- declare module '@authing/react-ui-components/vite.config' {
4606
- const _default: import("vite").UserConfigExport;
2659
+ declare module '@authing/react-ui-components/version/version' {
2660
+ const _default: "4.0.0-rc.0";
4607
2661
  export default _default;
4608
2662
 
4609
2663
  }