@authing/react-ui-components 3.1.38 → 4.0.0-beta.2
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.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -9
- package/package.json +8 -6
- package/types/AuthClientProvider/AuthClientProvider.d.ts +4 -0
- package/types/AuthClientProvider/context.d.ts +6 -0
- package/types/AuthClientProvider/index.d.ts +1 -0
- package/types/Back/index.d.ts +10 -0
- package/types/BindTotp/businessRequest.d.ts +5 -0
- package/types/BindTotp/core/bindSuccess.d.ts +6 -0
- package/types/BindTotp/core/securityCode.d.ts +8 -0
- package/types/BindTotp/index.d.ts +3 -0
- package/types/BindTotp/interface.d.ts +20 -0
- package/types/ChangeLanguage/index.d.ts +10 -0
- package/types/ChangePassword/businessRequest.d.ts +9 -0
- package/types/ChangePassword/core/PasswordNotSafeReset.d.ts +6 -0
- package/types/ChangePassword/core/completePassword.d.ts +2 -0
- package/types/ChangePassword/core/firstLoginReset.d.ts +6 -0
- package/types/ChangePassword/core/rotateReset.d.ts +7 -0
- package/types/ChangePassword/index.d.ts +10 -0
- package/types/CompleteInfo/businessRequest.d.ts +9 -0
- package/types/CompleteInfo/core/completeInfo.d.ts +11 -0
- package/types/CompleteInfo/index.d.ts +11 -0
- package/types/CompleteInfo/interface.d.ts +99 -0
- package/types/CompleteInfo/utils.d.ts +16 -0
- package/types/CopyAbleText/index.d.ts +5 -0
- package/types/DownloadAuthenticator/index.d.ts +3 -0
- package/types/DownloadAuthenticator/interface.d.ts +12 -0
- package/types/Error/index.d.ts +6 -0
- package/types/Error/interface.d.ts +8 -0
- package/types/ForgetPassword/core/resetPassword.d.ts +13 -0
- package/types/ForgetPassword/index.d.ts +2 -0
- package/types/ForgetPassword/interface.d.ts +18 -0
- package/types/Guard/Guard.d.ts +10 -0
- package/types/Guard/GuardModule/stateMachine.d.ts +38 -0
- package/types/Guard/authClient.d.ts +14 -0
- package/types/Guard/config.d.ts +27 -0
- package/types/Guard/core/index.d.ts +8 -0
- package/types/Guard/core/renderContext.d.ts +7 -0
- package/types/Guard/core/renderModule.d.ts +10 -0
- package/types/Guard/core/useAppendConfig.d.ts +4 -0
- package/types/Guard/core/usePlugin.d.ts +3 -0
- package/types/Guard/event.d.ts +56 -0
- package/types/Guard/index.d.ts +4 -0
- package/types/Guard/module.d.ts +28 -0
- package/types/Guard/sso.d.ts +19 -0
- package/types/GuardButton/GuardButton.d.ts +6 -0
- package/types/GuardButton/index.d.ts +1 -0
- package/types/IconFont/iconfont.d.ts +1 -0
- package/types/IconFont/index.d.ts +8 -0
- package/types/IconFont/useGuardIconfont.d.ts +1 -0
- package/types/IdentityBinding/IdentityBinding.d.ts +3 -0
- package/types/IdentityBinding/businessRequest.d.ts +33 -0
- package/types/IdentityBinding/index.d.ts +2 -0
- package/types/IdentityBinding/interface.d.ts +27 -0
- package/types/IdentityBindingAsk/IdentityBindingAsk.d.ts +3 -0
- package/types/IdentityBindingAsk/index.d.ts +2 -0
- package/types/IdentityBindingAsk/interface.d.ts +21 -0
- package/types/ImagePro/index.d.ts +14 -0
- package/types/InputNumber/index.d.ts +5 -0
- package/types/InputPassword/index.d.ts +4 -0
- package/types/Login/codemap.d.ts +2 -0
- package/types/Login/core/withAD.d.ts +12 -0
- package/types/Login/core/withAppQrcode.d.ts +8 -0
- package/types/Login/core/withLDAP.d.ts +13 -0
- package/types/Login/core/withPassword/FormItemAccount.d.ts +7 -0
- package/types/Login/core/withPassword/GraphicVerifyCode.d.ts +7 -0
- package/types/Login/core/withPassword/InputAccount.d.ts +7 -0
- package/types/Login/core/withPassword/index.d.ts +19 -0
- package/types/Login/core/withVerifyCode/FormItemIdentify.d.ts +11 -0
- package/types/Login/core/withVerifyCode/InputInternationPhone.d.ts +7 -0
- package/types/Login/core/withVerifyCode/VirtualDropdown.d.ts +8 -0
- package/types/Login/core/withVerifyCode/index.d.ts +3 -0
- package/types/Login/core/withVerifyCode/inputIdentify.d.ts +7 -0
- package/types/Login/core/withWechatMiniQrcode.d.ts +8 -0
- package/types/Login/core/withWechatmpQrcode.d.ts +8 -0
- package/types/Login/index.d.ts +3 -0
- package/types/Login/interface.d.ts +37 -0
- package/types/Login/socialLogin/IdpButton/index.d.ts +2 -0
- package/types/Login/socialLogin/index.d.ts +13 -0
- package/types/Login/socialLogin/postMessage.d.ts +7 -0
- package/types/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +8 -0
- package/types/MFA/VerifyCodeInput/index.d.ts +14 -0
- package/types/MFA/businessRequest.d.ts +46 -0
- package/types/MFA/codemap.d.ts +2 -0
- package/types/MFA/core/email.d.ts +23 -0
- package/types/MFA/core/face.d.ts +2 -0
- package/types/MFA/core/face_deps.d.ts +11 -0
- package/types/MFA/core/sms.d.ts +28 -0
- package/types/MFA/core/totp.d.ts +20 -0
- package/types/MFA/index.d.ts +9 -0
- package/types/MFA/interface.d.ts +40 -0
- package/types/MFA/mfaMethods/index.d.ts +8 -0
- package/types/NeedHelpView/core/describeQuestions.d.ts +8 -0
- package/types/NeedHelpView/index.d.ts +2 -0
- package/types/RecoveryCode/businessRequest.d.ts +5 -0
- package/types/RecoveryCode/core/saveCode.d.ts +5 -0
- package/types/RecoveryCode/core/useCode.d.ts +7 -0
- package/types/RecoveryCode/index.d.ts +5 -0
- package/types/RecoveryCode/interface.d.ts +8 -0
- package/types/Register/codemap.d.ts +2 -0
- package/types/Register/components/Agreements/index.d.ts +11 -0
- package/types/Register/core/WithCode.d.ts +12 -0
- package/types/Register/core/WithEmail.d.ts +11 -0
- package/types/Register/core/WithEmailCode.d.ts +11 -0
- package/types/Register/core/WithPhone.d.ts +10 -0
- package/types/Register/index.d.ts +2 -0
- package/types/Register/interface.d.ts +25 -0
- package/types/Register/utils.d.ts +1 -0
- package/types/SelfUnlock/core/selfUnlock.d.ts +8 -0
- package/types/SelfUnlock/index.d.ts +2 -0
- package/types/SelfUnlock/interface.d.ts +15 -0
- package/types/SendCode/SendCodeBtn.d.ts +10 -0
- package/types/SendCode/SendCodeByEmail.d.ts +13 -0
- package/types/SendCode/SendCodeByPhone.d.ts +15 -0
- package/types/SendCode/index.d.ts +9 -0
- package/types/ShieldSpin/index.d.ts +7 -0
- package/types/SingleComponent/SingleComponent.d.ts +3 -0
- package/types/SingleComponent/index.d.ts +3 -0
- package/types/SubmitButton/index.d.ts +10 -0
- package/types/SubmitSuccess/index.d.ts +2 -0
- package/types/SubmitSuccess/interface.d.ts +17 -0
- package/types/Type/application.d.ts +251 -0
- package/types/Type/index.d.ts +83 -0
- package/types/UploadImage/index.d.ts +5 -0
- package/types/ValidatorRules/PasswordFormItem.d.ts +6 -0
- package/types/ValidatorRules/ValidatorFormItem.d.ts +5 -0
- package/types/ValidatorRules/index.d.ts +31 -0
- package/types/ValidatorRules/useCheckRepeat.d.ts +1 -0
- package/types/VerifyCodeInput/index.d.ts +10 -0
- package/types/_utils/GuardErrorCode.d.ts +11 -0
- package/types/_utils/appendConfig.d.ts +4 -0
- package/types/_utils/clipboard.d.ts +1 -0
- package/types/_utils/config/index.d.ts +94 -0
- package/types/_utils/context.d.ts +57 -0
- package/types/_utils/corsVerification.d.ts +1 -0
- package/types/_utils/countryList.d.ts +7 -0
- package/types/_utils/errorFace.d.ts +12 -0
- package/types/_utils/facePlugin/index.d.ts +4 -0
- package/types/_utils/facePlugin/interface.d.ts +5 -0
- package/types/_utils/flowHandleStorage.d.ts +4 -0
- package/types/_utils/guardDocument.d.ts +3 -0
- package/types/_utils/guardHttp.d.ts +27 -0
- package/types/_utils/hooks/index.d.ts +43 -0
- package/types/_utils/http.d.ts +33 -0
- package/types/_utils/index.d.ts +92 -0
- package/types/_utils/initAppId.d.ts +7 -0
- package/types/_utils/locales/en-us/index.d.ts +4 -0
- package/types/_utils/locales/index.d.ts +7 -0
- package/types/_utils/locales/zh-cn/index.d.ts +4 -0
- package/types/_utils/locales/zh-tw/index.d.ts +4 -0
- package/types/_utils/logger/index.d.ts +15 -0
- package/types/_utils/logger/interface.d.ts +5 -0
- package/types/_utils/popupCenter.d.ts +9 -0
- package/types/_utils/responseManagement/index.d.ts +3 -0
- package/types/_utils/responseManagement/interface.d.ts +21 -0
- package/types/_utils/useErrorText.d.ts +5 -0
- package/types/index.d.ts +6 -0
- package/types/version/index.d.ts +2 -0
- package/types/version/version.d.ts +2 -0
- package/lib/index.d.ts +0 -4613
package/lib/index.d.ts
DELETED
|
@@ -1,4613 +0,0 @@
|
|
|
1
|
-
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
4
|
-
export const AuthClientProvider: React.FC<AuthClientContextProps>;
|
|
5
|
-
export const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare module '@authing/react-ui-components/components/AuthClientProvider/context' {
|
|
9
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export interface AuthClientContextProps {
|
|
12
|
-
client: AuthenticationClient;
|
|
13
|
-
}
|
|
14
|
-
export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
declare module '@authing/react-ui-components/components/AuthClientProvider/index' {
|
|
18
|
-
export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider';
|
|
19
|
-
|
|
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' {
|
|
1094
|
-
import React from 'react';
|
|
1095
|
-
import './styles.less';
|
|
1096
|
-
export interface BackProps {
|
|
1097
|
-
isRender?: boolean;
|
|
1098
|
-
}
|
|
1099
|
-
export const BackLogin: React.FC<BackProps>;
|
|
1100
|
-
export interface BackCustomProps extends BackProps {
|
|
1101
|
-
onBack?: () => void;
|
|
1102
|
-
}
|
|
1103
|
-
export const BackCustom: React.FC<BackCustomProps>;
|
|
1104
|
-
|
|
1105
|
-
}
|
|
1106
|
-
declare module '@authing/react-ui-components/components/BindTotp/businessRequest' {
|
|
1107
|
-
export enum BindTotpBusinessAction {
|
|
1108
|
-
VerifyTotpFirstTime = "verify-totp-first-time",
|
|
1109
|
-
ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
|
|
1110
|
-
}
|
|
1111
|
-
export const authFlow: (action: BindTotpBusinessAction, content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
declare module '@authing/react-ui-components/components/BindTotp/core/bindSuccess' {
|
|
1115
|
-
import React from 'react';
|
|
1116
|
-
export interface BindSuccessProps {
|
|
1117
|
-
onBind: any;
|
|
1118
|
-
secret: string;
|
|
1119
|
-
}
|
|
1120
|
-
export const BindSuccess: React.FC<BindSuccessProps>;
|
|
1121
|
-
|
|
1122
|
-
}
|
|
1123
|
-
declare module '@authing/react-ui-components/components/BindTotp/core/securityCode' {
|
|
1124
|
-
import React from 'react';
|
|
1125
|
-
export interface SecurityCodeProps {
|
|
1126
|
-
mfaToken: string;
|
|
1127
|
-
qrcode: string;
|
|
1128
|
-
onNext: any;
|
|
1129
|
-
changeModule: any;
|
|
1130
|
-
}
|
|
1131
|
-
export const SecurityCode: React.FC<SecurityCodeProps>;
|
|
1132
|
-
|
|
1133
|
-
}
|
|
1134
|
-
declare module '@authing/react-ui-components/components/BindTotp/index' {
|
|
1135
|
-
import React from 'react';
|
|
1136
|
-
import './styles.less';
|
|
1137
|
-
export const GuardBindTotpView: React.FC;
|
|
1138
|
-
|
|
1139
|
-
}
|
|
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';
|
|
1144
|
-
export interface BindTotpConfig extends IG2Config {
|
|
1145
|
-
autoRegister: boolean;
|
|
1146
|
-
}
|
|
1147
|
-
export const getDefaultMFAConfig: () => BindTotpConfig;
|
|
1148
|
-
export interface BindTotpEvents extends IG2Events {
|
|
1149
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
1150
|
-
}
|
|
1151
|
-
export interface GuardBindTotpInitData extends GuardMFAInitData {
|
|
1152
|
-
}
|
|
1153
|
-
export interface GuardBindTotpProps extends IG2FCProps, BindTotpEvents {
|
|
1154
|
-
config: Partial<BindTotpConfig>;
|
|
1155
|
-
initData: GuardBindTotpInitData;
|
|
1156
|
-
}
|
|
1157
|
-
export interface GuardBindTotpViewProps extends GuardBindTotpProps {
|
|
1158
|
-
config: BindTotpConfig;
|
|
1159
|
-
initData: GuardBindTotpInitData;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1163
|
-
declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
1164
|
-
/// <reference types="react" />
|
|
1165
|
-
export const ChangeLanguage: (props: any) => JSX.Element | null;
|
|
1166
|
-
|
|
1167
|
-
}
|
|
1168
|
-
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
1169
|
-
export enum ChangePasswordBusinessAction {
|
|
1170
|
-
ResetPassword = "reset-password-first-time",
|
|
1171
|
-
FirstLoginReset = "reset-password-forced",
|
|
1172
|
-
ResetPasswordStrengthDetection = "reset-password-strength-detection"
|
|
1173
|
-
}
|
|
1174
|
-
export const authFlow: (action: ChangePasswordBusinessAction, content: {
|
|
1175
|
-
password: string;
|
|
1176
|
-
oldPassword?: string;
|
|
1177
|
-
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1178
|
-
|
|
1179
|
-
}
|
|
1180
|
-
declare module '@authing/react-ui-components/components/ChangePassword/core/PasswordNotSafeReset' {
|
|
1181
|
-
import React from 'react';
|
|
1182
|
-
interface PasswordNotSafeResetProps {
|
|
1183
|
-
onReset: any;
|
|
1184
|
-
}
|
|
1185
|
-
export const PasswordNotSafeReset: React.FC<PasswordNotSafeResetProps>;
|
|
1186
|
-
export {};
|
|
1187
|
-
|
|
1188
|
-
}
|
|
1189
|
-
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1190
|
-
import React from 'react';
|
|
1191
|
-
export const CompletePassword: React.FC;
|
|
1192
|
-
|
|
1193
|
-
}
|
|
1194
|
-
declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
|
|
1195
|
-
import React from 'react';
|
|
1196
|
-
interface FirstLoginResetProps {
|
|
1197
|
-
onReset: any;
|
|
1198
|
-
}
|
|
1199
|
-
export const FirstLoginReset: React.FC<FirstLoginResetProps>;
|
|
1200
|
-
export {};
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1203
|
-
declare module '@authing/react-ui-components/components/ChangePassword/core/rotateReset' {
|
|
1204
|
-
/// <reference types="react" />
|
|
1205
|
-
interface RotateResetProps {
|
|
1206
|
-
onReset: any;
|
|
1207
|
-
onFinishCallBack?: any;
|
|
1208
|
-
}
|
|
1209
|
-
export const RotateReset: (props: RotateResetProps) => JSX.Element;
|
|
1210
|
-
export {};
|
|
1211
|
-
|
|
1212
|
-
}
|
|
1213
|
-
declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
1214
|
-
import React from 'react';
|
|
1215
|
-
export const GuardChangePassword: React.FC<{
|
|
1216
|
-
title: string;
|
|
1217
|
-
explain: string;
|
|
1218
|
-
}>;
|
|
1219
|
-
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1220
|
-
export const GuardPasswordNotSafeResetView: React.FC;
|
|
1221
|
-
export const GuardForcedPasswordResetView: React.FC;
|
|
1222
|
-
export const GuardNoticePasswordResetView: React.FC;
|
|
1223
|
-
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1226
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1227
|
-
import { User } from 'authing-js-sdk';
|
|
1228
|
-
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1229
|
-
export enum CompleteInfoAuthFlowAction {
|
|
1230
|
-
Complete = "complete-completion",
|
|
1231
|
-
Skip = "skip-completion"
|
|
1232
|
-
}
|
|
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>;
|
|
1236
|
-
|
|
1237
|
-
}
|
|
1238
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
|
|
1239
|
-
import React from 'react';
|
|
1240
|
-
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1241
|
-
export interface CompleteInfoProps {
|
|
1242
|
-
metaData: CompleteInfoMetaData[];
|
|
1243
|
-
businessRequest: (data: CompleteInfoRequest) => Promise<void>;
|
|
1244
|
-
}
|
|
1245
|
-
export interface FieldMetadata {
|
|
1246
|
-
key: string;
|
|
1247
|
-
options: any;
|
|
1248
|
-
}
|
|
1249
|
-
export const CompleteInfo: React.FC<CompleteInfoProps>;
|
|
1250
|
-
|
|
1251
|
-
}
|
|
1252
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
1253
|
-
import React from 'react';
|
|
1254
|
-
import { CompleteInfoMetaData, CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1255
|
-
import './styles.less';
|
|
1256
|
-
import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/components/CompleteInfo/businessRequest';
|
|
1257
|
-
export const GuardCompleteInfo: React.FC<{
|
|
1258
|
-
metaData: CompleteInfoMetaData[];
|
|
1259
|
-
skipComplateFileds: boolean;
|
|
1260
|
-
businessRequest: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<void>;
|
|
1261
|
-
}>;
|
|
1262
|
-
export const GuardLoginCompleteInfoView: React.FC;
|
|
1263
|
-
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1266
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
1267
|
-
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
1268
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1269
|
-
export interface CompleteInfoConfig extends IG2Config {
|
|
1270
|
-
}
|
|
1271
|
-
export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
|
|
1272
|
-
export interface CompleteInfoEvents extends IG2Events {
|
|
1273
|
-
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1274
|
-
definition: any;
|
|
1275
|
-
value: any;
|
|
1276
|
-
}[], authClient: AuthenticationClient) => void;
|
|
1277
|
-
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1278
|
-
definition: any;
|
|
1279
|
-
value: any;
|
|
1280
|
-
}[], authClient: AuthenticationClient) => void;
|
|
1281
|
-
}
|
|
1282
|
-
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1283
|
-
config: Partial<CompleteInfoConfig>;
|
|
1284
|
-
}
|
|
1285
|
-
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1286
|
-
config: CompleteInfoConfig;
|
|
1287
|
-
initData: any;
|
|
1288
|
-
onLogin?: any;
|
|
1289
|
-
}
|
|
1290
|
-
export type ExtendsFieldType = 'user' | 'internal';
|
|
1291
|
-
export interface ExtendsField {
|
|
1292
|
-
type: ExtendsFieldType;
|
|
1293
|
-
name: string;
|
|
1294
|
-
label: string;
|
|
1295
|
-
inputType: string;
|
|
1296
|
-
required: boolean;
|
|
1297
|
-
validateRules: any[];
|
|
1298
|
-
}
|
|
1299
|
-
export enum FormValidateRule {
|
|
1300
|
-
NONE = "none",
|
|
1301
|
-
EMAIL = "email",
|
|
1302
|
-
PHONE = "phone",
|
|
1303
|
-
IS_NUMBER = "isNumber",
|
|
1304
|
-
REG_EXP = "regExp"
|
|
1305
|
-
}
|
|
1306
|
-
export interface CompleteInfoRule {
|
|
1307
|
-
type: FormValidateRule;
|
|
1308
|
-
content: string;
|
|
1309
|
-
errorMessage?: string;
|
|
1310
|
-
}
|
|
1311
|
-
export interface CompleteInfoSelectOption {
|
|
1312
|
-
value: string;
|
|
1313
|
-
label: string;
|
|
1314
|
-
}
|
|
1315
|
-
export interface CompleteInfoMetaData {
|
|
1316
|
-
type: CompleteInfoBaseControls | CompleteInfoExtendsControls;
|
|
1317
|
-
label: string;
|
|
1318
|
-
name: string;
|
|
1319
|
-
required: boolean;
|
|
1320
|
-
validateRules: CompleteInfoRule[];
|
|
1321
|
-
options?: CompleteInfoSelectOption[];
|
|
1322
|
-
}
|
|
1323
|
-
export enum CompleteInfoBaseControls {
|
|
1324
|
-
USERNAME = "username",
|
|
1325
|
-
PHONE = "phone",
|
|
1326
|
-
EMAIL = "email"
|
|
1327
|
-
}
|
|
1328
|
-
export enum CompleteInfoExtendsControls {
|
|
1329
|
-
IMAGE = "image",
|
|
1330
|
-
NUMBER = "number",
|
|
1331
|
-
DATE = "date",
|
|
1332
|
-
DATE_TIME = "dateTime",
|
|
1333
|
-
SELECT = "select",
|
|
1334
|
-
DROPDOWN = "dropdown",
|
|
1335
|
-
BOOLEAN = "boolean",
|
|
1336
|
-
STRING = "string",
|
|
1337
|
-
TEXT = "text",
|
|
1338
|
-
GENDER = "gender",
|
|
1339
|
-
COUNTRY = "country"
|
|
1340
|
-
}
|
|
1341
|
-
export interface CompleteInfoInitData {
|
|
1342
|
-
skip: boolean;
|
|
1343
|
-
metaData: CompleteInfoMetaData[];
|
|
1344
|
-
}
|
|
1345
|
-
export interface RegisterCompleteInfoInitData {
|
|
1346
|
-
content: any;
|
|
1347
|
-
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1348
|
-
onRegisterFailed: Function;
|
|
1349
|
-
onRegisterSuccess: Function;
|
|
1350
|
-
}
|
|
1351
|
-
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1352
|
-
isChangeComplete: boolean;
|
|
1353
|
-
}
|
|
1354
|
-
export interface CompleteInfoRequest {
|
|
1355
|
-
fieldValues: {
|
|
1356
|
-
name: string;
|
|
1357
|
-
value: string;
|
|
1358
|
-
code?: string;
|
|
1359
|
-
}[];
|
|
1360
|
-
}
|
|
1361
|
-
export enum OmitCompleteInfo {
|
|
1362
|
-
'registerByEmail' = "email",
|
|
1363
|
-
'registerByPhoneCode' = "phone",
|
|
1364
|
-
'registerByEmailCode' = "email"
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1368
|
-
declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
|
|
1369
|
-
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';
|
|
1372
|
-
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: {
|
|
1374
|
-
key: string;
|
|
1375
|
-
options: {
|
|
1376
|
-
value: string;
|
|
1377
|
-
label: string;
|
|
1378
|
-
}[];
|
|
1379
|
-
}[]) => CompleteInfoMetaData[];
|
|
1380
|
-
export const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: {
|
|
1381
|
-
name: string;
|
|
1382
|
-
value: string;
|
|
1383
|
-
code?: string | undefined;
|
|
1384
|
-
}[] | undefined) => Record<string, any>;
|
|
1385
|
-
|
|
1386
|
-
}
|
|
1387
|
-
declare module '@authing/react-ui-components/components/CopyAbleText/index' {
|
|
1388
|
-
import React, { FC } from 'react';
|
|
1389
|
-
import './style.less';
|
|
1390
|
-
export interface CopyTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1391
|
-
}
|
|
1392
|
-
export const CopyAbleText: FC<CopyTextProps>;
|
|
1393
|
-
|
|
1394
|
-
}
|
|
1395
|
-
declare module '@authing/react-ui-components/components/DownloadAuthenticator/index' {
|
|
1396
|
-
import React from 'react';
|
|
1397
|
-
import './styles.less';
|
|
1398
|
-
export const GuardDownloadATView: React.FC;
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
declare module '@authing/react-ui-components/components/DownloadAuthenticator/interface' {
|
|
1402
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1403
|
-
export interface DownloadATConfig extends IG2Config {
|
|
1404
|
-
}
|
|
1405
|
-
export const getDefaultDownloadAuthenticatorConfig: () => DownloadATConfig;
|
|
1406
|
-
export interface DownloadATEvents extends IG2Events {
|
|
1407
|
-
}
|
|
1408
|
-
export interface GuardDownloadATProps extends IG2FCProps, DownloadATEvents {
|
|
1409
|
-
config: Partial<DownloadATConfig>;
|
|
1410
|
-
}
|
|
1411
|
-
export interface GuardDownloadATViewProps extends GuardDownloadATProps {
|
|
1412
|
-
config: DownloadATConfig;
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
}
|
|
1416
|
-
declare module '@authing/react-ui-components/components/Error/index' {
|
|
1417
|
-
import React from 'react';
|
|
1418
|
-
import './styles.less';
|
|
1419
|
-
export interface ErrorProps {
|
|
1420
|
-
error?: Error;
|
|
1421
|
-
}
|
|
1422
|
-
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1423
|
-
|
|
1424
|
-
}
|
|
1425
|
-
declare module '@authing/react-ui-components/components/Error/interface' {
|
|
1426
|
-
export interface ErrorInitData {
|
|
1427
|
-
error?: Error;
|
|
1428
|
-
}
|
|
1429
|
-
export interface GuardErrorProps {
|
|
1430
|
-
initData?: ErrorInitData;
|
|
1431
|
-
}
|
|
1432
|
-
export interface GuardErrorViewProps extends GuardErrorProps {
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1436
|
-
declare module '@authing/react-ui-components/components/ForgetPassword/core/resetPassword' {
|
|
1437
|
-
/// <reference types="react" />
|
|
1438
|
-
export enum InputMethodMap {
|
|
1439
|
-
email = "email-code",
|
|
1440
|
-
phone = "phone-code"
|
|
1441
|
-
}
|
|
1442
|
-
interface ResetPasswordProps {
|
|
1443
|
-
onReset: any;
|
|
1444
|
-
publicConfig: any;
|
|
1445
|
-
onSend: (type: 'email' | 'phone') => void;
|
|
1446
|
-
onSendError: (type: 'email' | 'phone', error: any) => void;
|
|
1447
|
-
}
|
|
1448
|
-
export const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
1449
|
-
export {};
|
|
1450
|
-
|
|
1451
|
-
}
|
|
1452
|
-
declare module '@authing/react-ui-components/components/ForgetPassword/index' {
|
|
1453
|
-
import React from 'react';
|
|
1454
|
-
export const GuardForgetPassword: React.FC;
|
|
1455
|
-
|
|
1456
|
-
}
|
|
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';
|
|
1460
|
-
export interface ForgetPasswordEvents extends IG2Events {
|
|
1461
|
-
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
1462
|
-
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
1463
|
-
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
1464
|
-
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
1465
|
-
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
1466
|
-
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
1467
|
-
}
|
|
1468
|
-
export interface ForgetPasswordConfig extends IG2Config {
|
|
1469
|
-
}
|
|
1470
|
-
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
1471
|
-
config: Partial<IG2Config>;
|
|
1472
|
-
}
|
|
1473
|
-
export interface ForgetPasswordViewProps extends ForgetPasswordProps, IG2FCViewProps {
|
|
1474
|
-
config: IG2Config;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
}
|
|
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';
|
|
1482
|
-
import 'moment/locale/zh-cn';
|
|
1483
|
-
import React from 'react';
|
|
1484
|
-
export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
1485
|
-
config?: Partial<GuardLocalConfig>;
|
|
1486
|
-
appendConfig?: GuardAppendConfig;
|
|
1487
|
-
}
|
|
1488
|
-
export const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
|
|
1489
|
-
|
|
1490
|
-
}
|
|
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';
|
|
1494
|
-
export interface ModuleState {
|
|
1495
|
-
moduleName: GuardModuleType;
|
|
1496
|
-
initData?: any;
|
|
1497
|
-
}
|
|
1498
|
-
export enum ActionType {
|
|
1499
|
-
ChangeModule = "ChangeModule",
|
|
1500
|
-
Back = "Back",
|
|
1501
|
-
Init = "Init"
|
|
1502
|
-
}
|
|
1503
|
-
export interface StateMachineLog {
|
|
1504
|
-
action: ActionType;
|
|
1505
|
-
date: number;
|
|
1506
|
-
dataSource: ModuleState;
|
|
1507
|
-
}
|
|
1508
|
-
export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
|
|
1509
|
-
export class GuardStateMachine {
|
|
1510
|
-
private order;
|
|
1511
|
-
private config;
|
|
1512
|
-
private moduleStateHistory;
|
|
1513
|
-
private changeModuleEvent;
|
|
1514
|
-
private stateMachineLog;
|
|
1515
|
-
constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
|
|
1516
|
-
uninstallPopstate: () => void;
|
|
1517
|
-
globalWindow: () => Window | undefined;
|
|
1518
|
-
next: (nextModule: GuardModuleType, initData: any) => void;
|
|
1519
|
-
back: (initData?: any) => void;
|
|
1520
|
-
end: () => void;
|
|
1521
|
-
historyPush: (data: ModuleState, actionType?: ActionType) => void;
|
|
1522
|
-
historyBack: (data: ModuleState) => void;
|
|
1523
|
-
setConfig: (config: GuardLocalConfig) => void;
|
|
1524
|
-
isUseHistoryHijack: () => boolean;
|
|
1525
|
-
onPopstate: () => void;
|
|
1526
|
-
}
|
|
1527
|
-
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1528
|
-
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1529
|
-
export const useGuardStateMachine: () => GuardStateMachine;
|
|
1530
|
-
|
|
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;
|
|
1816
|
-
/**
|
|
1817
|
-
* 外部暴露方法
|
|
1818
|
-
*/
|
|
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
|
-
};
|
|
1852
|
-
}
|
|
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;
|
|
1900
|
-
|
|
1901
|
-
}
|
|
1902
|
-
declare module '@authing/react-ui-components/components/Guard/core/index' {
|
|
1903
|
-
/// <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';
|
|
1906
|
-
export interface GuardCoreProps {
|
|
1907
|
-
guardProps: GuardProps;
|
|
1908
|
-
initState: ModuleState;
|
|
1909
|
-
}
|
|
1910
|
-
export const GuardCore: (props: GuardCoreProps) => JSX.Element;
|
|
1911
|
-
|
|
1912
|
-
}
|
|
1913
|
-
declare module '@authing/react-ui-components/components/Guard/core/renderContext' {
|
|
1914
|
-
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
1915
|
-
import React from 'react';
|
|
1916
|
-
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
1917
|
-
export const RenderContext: React.FC<{
|
|
1918
|
-
guardProps: GuardProps;
|
|
1919
|
-
initState: ModuleState;
|
|
1920
|
-
}>;
|
|
1921
|
-
|
|
1922
|
-
}
|
|
1923
|
-
declare module '@authing/react-ui-components/components/Guard/core/renderModule' {
|
|
1924
|
-
import React from 'react';
|
|
1925
|
-
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
1926
|
-
import '../styles.less';
|
|
1927
|
-
export enum LangMAP {
|
|
1928
|
-
zhCn = "zh-CN",
|
|
1929
|
-
enUs = "en-US"
|
|
1930
|
-
}
|
|
1931
|
-
export const RenderModule: React.FC<{
|
|
1932
|
-
guardProps: GuardProps;
|
|
1933
|
-
}>;
|
|
1934
|
-
|
|
1935
|
-
}
|
|
1936
|
-
declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
|
|
1937
|
-
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
1938
|
-
export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1939
|
-
export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1940
|
-
export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
1941
|
-
|
|
1942
|
-
}
|
|
1943
|
-
declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
|
|
1944
|
-
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
1945
|
-
export const useGuardPlugin: any;
|
|
1946
|
-
export const useGuardFacePlugin: (facePlugin?: FacePlugin | undefined) => boolean;
|
|
1947
|
-
|
|
1948
|
-
}
|
|
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';
|
|
1957
|
-
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
1958
|
-
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
1959
|
-
}
|
|
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;
|
|
1993
|
-
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1994
|
-
export const GuardEventsCamelToKebabMapping: {
|
|
1995
|
-
readonly onLoad: "load";
|
|
1996
|
-
readonly onLoadError: "load-error";
|
|
1997
|
-
readonly onLogin: "login";
|
|
1998
|
-
readonly onBeforeLogin: "before-login";
|
|
1999
|
-
readonly onLoginError: "login-error";
|
|
2000
|
-
readonly onRegister: "register";
|
|
2001
|
-
readonly onBeforeRegister: "before-register";
|
|
2002
|
-
readonly onRegisterError: "register-error";
|
|
2003
|
-
readonly onPwdEmailSend: "pwd-email-send";
|
|
2004
|
-
readonly onPwdEmailSendError: "pwd-email-send-error";
|
|
2005
|
-
readonly onPwdPhoneSend: "pwd-phone-send";
|
|
2006
|
-
readonly onPwdPhoneSendError: "pwd-phone-send-error";
|
|
2007
|
-
readonly onPwdReset: "pwd-reset";
|
|
2008
|
-
readonly onPwdResetError: "pwd-reset-error";
|
|
2009
|
-
readonly onClose: "close";
|
|
2010
|
-
readonly onLoginTabChange: "login-tab-change";
|
|
2011
|
-
readonly onRegisterTabChange: "register-tab-change";
|
|
2012
|
-
readonly onRegisterInfoCompleted: "register-info-completed";
|
|
2013
|
-
readonly onRegisterInfoCompletedError: "register-info-completed-error";
|
|
2014
|
-
readonly onLangChange: "lang-change";
|
|
2015
|
-
};
|
|
2016
|
-
export interface GuardEventsKebabToCamelType {
|
|
2017
|
-
load: GuardEvents['onLoad'];
|
|
2018
|
-
'load-error': GuardEvents['onLoadError'];
|
|
2019
|
-
'before-login': GuardEvents['onBeforeLogin'];
|
|
2020
|
-
login: GuardEvents['onLogin'];
|
|
2021
|
-
'login-error': GuardEvents['onLoginError'];
|
|
2022
|
-
'before-register': GuardEvents['onBeforeRegister'];
|
|
2023
|
-
register: GuardEvents['onRegister'];
|
|
2024
|
-
'register-error': GuardEvents['onRegisterError'];
|
|
2025
|
-
'pwd-email-send': GuardEvents['onPwdEmailSend'];
|
|
2026
|
-
'pwd-email-send-error': GuardEvents['onPwdEmailSendError'];
|
|
2027
|
-
'pwd-phone-send': GuardEvents['onPwdPhoneSend'];
|
|
2028
|
-
'pwd-phone-send-error': GuardEvents['onPwdPhoneSendError'];
|
|
2029
|
-
'pwd-reset': GuardEvents['onPwdReset'];
|
|
2030
|
-
'pwd-reset-error': GuardEvents['onPwdResetError'];
|
|
2031
|
-
close: GuardEvents['onClose'];
|
|
2032
|
-
'login-tab-change': GuardEvents['onLoginTabChange'];
|
|
2033
|
-
'register-tab-change': GuardEvents['onRegisterTabChange'];
|
|
2034
|
-
'register-info-completed': GuardEvents['onRegisterInfoCompleted'];
|
|
2035
|
-
'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
|
|
2036
|
-
'lang-change': GuardEvents['onLangChange'];
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
}
|
|
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';
|
|
2045
|
-
|
|
2046
|
-
}
|
|
2047
|
-
declare module '@authing/react-ui-components/components/Guard/module' {
|
|
2048
|
-
export enum GuardModuleType {
|
|
2049
|
-
ERROR = "error",
|
|
2050
|
-
LOGIN = "login",
|
|
2051
|
-
REGISTER = "register",
|
|
2052
|
-
MFA = "mfa",
|
|
2053
|
-
FORGET_PWD = "forgetPassword",
|
|
2054
|
-
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
2055
|
-
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
2056
|
-
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
2057
|
-
UNSAFE_PASSWORD_RESET = "unsafePasswordReset",
|
|
2058
|
-
DOWNLOAD_AT = "downloadAT",
|
|
2059
|
-
BIND_TOTP = "bindTotp",
|
|
2060
|
-
ANY_QUESTIONS = "anyQuestions",
|
|
2061
|
-
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
2062
|
-
REGISTER_PASSWORD = "registerPassword",
|
|
2063
|
-
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
2064
|
-
RECOVERY_CODE = "recoveryCode",
|
|
2065
|
-
SUBMIT_SUCCESS = "submitSuccess",
|
|
2066
|
-
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
2067
|
-
IDENTITY_BINDING = "identityBinding",
|
|
2068
|
-
SELF_UNLOCK = "selfUnlock"
|
|
2069
|
-
}
|
|
2070
|
-
export interface GuardModuleAction {
|
|
2071
|
-
action: string;
|
|
2072
|
-
module?: GuardModuleType;
|
|
2073
|
-
message?: string;
|
|
2074
|
-
initData?: any;
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
}
|
|
2078
|
-
declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
2079
|
-
import { User } from '@authing/react-ui-components/components/index';
|
|
2080
|
-
export interface SessionData {
|
|
2081
|
-
session: null | {
|
|
2082
|
-
_id: string;
|
|
2083
|
-
cookie: {
|
|
2084
|
-
originalMaxAge: number;
|
|
2085
|
-
expires: Date;
|
|
2086
|
-
secure: boolean;
|
|
2087
|
-
httpOnly: boolean;
|
|
2088
|
-
path: string;
|
|
2089
|
-
sameSite: string;
|
|
2090
|
-
};
|
|
2091
|
-
appId?: string;
|
|
2092
|
-
type: string;
|
|
2093
|
-
userId: string;
|
|
2094
|
-
};
|
|
2095
|
-
userInfo?: User;
|
|
2096
|
-
}
|
|
2097
|
-
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
2101
|
-
import React from 'react';
|
|
2102
|
-
import { ButtonProps } from 'antd/lib/button';
|
|
2103
|
-
import './styles.less';
|
|
2104
|
-
export interface GuardButtonProps extends ButtonProps {
|
|
2105
|
-
}
|
|
2106
|
-
export const GuardButton: React.FC<GuardButtonProps>;
|
|
2107
|
-
|
|
2108
|
-
}
|
|
2109
|
-
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
2110
|
-
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
2111
|
-
|
|
2112
|
-
}
|
|
2113
|
-
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
2114
|
-
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
2115
|
-
|
|
2116
|
-
}
|
|
2117
|
-
declare module '@authing/react-ui-components/components/IconFont/index' {
|
|
2118
|
-
import React, { FC } from 'react';
|
|
2119
|
-
import './iconfont';
|
|
2120
|
-
import './style.less';
|
|
2121
|
-
export const IconFont: FC<{
|
|
2122
|
-
type: string;
|
|
2123
|
-
style?: React.CSSProperties;
|
|
2124
|
-
className?: string;
|
|
2125
|
-
}>;
|
|
2126
|
-
|
|
2127
|
-
}
|
|
2128
|
-
declare module '@authing/react-ui-components/components/IconFont/useGuardIconfont' {
|
|
2129
|
-
export const useGuardIconfont: (cdnBase?: string | undefined, setError?: any) => boolean;
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2132
|
-
declare module '@authing/react-ui-components/components/IdentityBinding/IdentityBinding' {
|
|
2133
|
-
import React from 'react';
|
|
2134
|
-
import './styles.less';
|
|
2135
|
-
export const GuardIdentityBindingView: React.FC;
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2138
|
-
declare module '@authing/react-ui-components/components/IdentityBinding/businessRequest' {
|
|
2139
|
-
export enum IdentityBindingBusinessAction {
|
|
2140
|
-
PhoneCode = "phone-code",
|
|
2141
|
-
EmailCode = "emial-code",
|
|
2142
|
-
Password = "password"
|
|
2143
|
-
}
|
|
2144
|
-
export interface PhoneCodeParams {
|
|
2145
|
-
phone: string;
|
|
2146
|
-
code: string;
|
|
2147
|
-
phoneCountryCode?: string;
|
|
2148
|
-
}
|
|
2149
|
-
export interface EmailCodeParams {
|
|
2150
|
-
email: string;
|
|
2151
|
-
code: string;
|
|
2152
|
-
}
|
|
2153
|
-
export interface PasswordParams {
|
|
2154
|
-
account: string;
|
|
2155
|
-
password: string;
|
|
2156
|
-
captchaCode: string;
|
|
2157
|
-
}
|
|
2158
|
-
export enum IdentityBindingAction {
|
|
2159
|
-
CreateUser = "create-federation-account",
|
|
2160
|
-
BindByPassword = "bind-identity-by-password",
|
|
2161
|
-
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
2162
|
-
BindByEmailCode = "bind-identity-by-email-code"
|
|
2163
|
-
}
|
|
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>>;
|
|
2167
|
-
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>>;
|
|
2171
|
-
};
|
|
2172
|
-
|
|
2173
|
-
}
|
|
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';
|
|
2177
|
-
|
|
2178
|
-
}
|
|
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';
|
|
2184
|
-
export interface IdentityBindingConfig extends IG2Config {
|
|
2185
|
-
autoRegister?: boolean;
|
|
2186
|
-
publicKey?: string;
|
|
2187
|
-
agreementEnabled?: boolean;
|
|
2188
|
-
agreements?: Agreement[];
|
|
2189
|
-
}
|
|
2190
|
-
export interface IdentityBindingEvents extends IG2Events {
|
|
2191
|
-
onBinding?: (user: User, authClient: AuthenticationClient) => void;
|
|
2192
|
-
onBindingError?: (errorMessages: any) => void;
|
|
2193
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
2194
|
-
onLoginError?: (errorMessages: any) => void;
|
|
2195
|
-
}
|
|
2196
|
-
export interface GuardIdentityBindingProps extends IG2FCProps, IdentityBindingEvents {
|
|
2197
|
-
config?: Partial<IdentityBindingConfig>;
|
|
2198
|
-
}
|
|
2199
|
-
export interface GuardIdentityBindingInitData {
|
|
2200
|
-
methods: Array<'email' | 'username' | 'phone' | 'phone-code' | 'email-code'>;
|
|
2201
|
-
source?: GuardModuleType;
|
|
2202
|
-
}
|
|
2203
|
-
export interface GuardIdentityBindingViewProps extends GuardIdentityBindingProps, IG2FCViewProps {
|
|
2204
|
-
config: IdentityBindingConfig;
|
|
2205
|
-
initData: GuardIdentityBindingInitData;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
}
|
|
2209
|
-
declare module '@authing/react-ui-components/components/IdentityBindingAsk/IdentityBindingAsk' {
|
|
2210
|
-
import React from 'react';
|
|
2211
|
-
import './styles.less';
|
|
2212
|
-
export const GuardIdentityBindingAskView: React.FC;
|
|
2213
|
-
|
|
2214
|
-
}
|
|
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';
|
|
2218
|
-
|
|
2219
|
-
}
|
|
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';
|
|
2223
|
-
export interface IdentityBindingAskConfig extends IG2Config {
|
|
2224
|
-
}
|
|
2225
|
-
export interface IdentityBindingAskEvents extends IG2Events {
|
|
2226
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
2227
|
-
onLoginError?: (errorMessages: any) => void;
|
|
2228
|
-
onCreate?: (user: User, authClient: AuthenticationClient) => void;
|
|
2229
|
-
onCreateError?: (errorMessages: any) => void;
|
|
2230
|
-
}
|
|
2231
|
-
export interface GuardIdentityBindingAskProps extends IG2FCProps, IdentityBindingAskEvents {
|
|
2232
|
-
config?: Partial<IdentityBindingAskConfig>;
|
|
2233
|
-
initData?: any;
|
|
2234
|
-
}
|
|
2235
|
-
export interface GuardIdentityBindingAskInitData {
|
|
2236
|
-
methods: 'email' | 'username' | 'phone' | 'phone-code' | 'email-code';
|
|
2237
|
-
}
|
|
2238
|
-
export interface GuardIdentityBindingAskViewProps extends GuardIdentityBindingAskProps, IG2FCViewProps {
|
|
2239
|
-
config: IdentityBindingAskConfig;
|
|
2240
|
-
initData: GuardIdentityBindingAskInitData;
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
}
|
|
2244
|
-
declare module '@authing/react-ui-components/components/ImagePro/index' {
|
|
2245
|
-
import React from 'react';
|
|
2246
|
-
import './styles.less';
|
|
2247
|
-
export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
2248
|
-
src: string;
|
|
2249
|
-
className?: string;
|
|
2250
|
-
alt?: string;
|
|
2251
|
-
imgClassName?: string;
|
|
2252
|
-
size?: number | string;
|
|
2253
|
-
width?: number | string;
|
|
2254
|
-
height?: number | string;
|
|
2255
|
-
borderRadius?: number | string;
|
|
2256
|
-
noSpin?: boolean;
|
|
2257
|
-
}
|
|
2258
|
-
export const ImagePro: (props: ImageProProps) => JSX.Element;
|
|
2259
|
-
|
|
2260
|
-
}
|
|
2261
|
-
declare module '@authing/react-ui-components/components/InputNumber/index' {
|
|
2262
|
-
import { InputProps } from 'antd/lib/input';
|
|
2263
|
-
import React from 'react';
|
|
2264
|
-
export interface InputNumberProps extends InputProps {
|
|
2265
|
-
}
|
|
2266
|
-
export const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<any>>;
|
|
2267
|
-
|
|
2268
|
-
}
|
|
2269
|
-
declare module '@authing/react-ui-components/components/InputPassword/index' {
|
|
2270
|
-
import { Input } from 'antd';
|
|
2271
|
-
import { PasswordProps } from 'antd/lib/input';
|
|
2272
|
-
import React from 'react';
|
|
2273
|
-
export const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
|
|
2274
|
-
|
|
2275
|
-
}
|
|
2276
|
-
declare module '@authing/react-ui-components/components/Login/codemap' {
|
|
2277
|
-
import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
|
|
2278
|
-
export const codeMap: Record<number, GuardModuleAction>;
|
|
2279
|
-
|
|
2280
|
-
}
|
|
2281
|
-
declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
2282
|
-
/// <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';
|
|
2285
|
-
interface LoginWithADProps {
|
|
2286
|
-
publicKey: string;
|
|
2287
|
-
autoRegister?: boolean;
|
|
2288
|
-
onLoginSuccess: any;
|
|
2289
|
-
onLoginFailed: any;
|
|
2290
|
-
onBeforeLogin: any;
|
|
2291
|
-
agreements: Agreement[];
|
|
2292
|
-
/**
|
|
2293
|
-
* 回填的数据
|
|
2294
|
-
*/
|
|
2295
|
-
backfillData?: BackFillMultipleState;
|
|
2296
|
-
/**
|
|
2297
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2298
|
-
*/
|
|
2299
|
-
multipleInstance?: StoreInstance;
|
|
2300
|
-
}
|
|
2301
|
-
export const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
|
|
2302
|
-
export {};
|
|
2303
|
-
|
|
2304
|
-
}
|
|
2305
|
-
declare module '@authing/react-ui-components/components/Login/core/withAppQrcode' {
|
|
2306
|
-
/// <reference types="react" />
|
|
2307
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2308
|
-
interface LoginWithAppQrcodeProps {
|
|
2309
|
-
onLoginSuccess: any;
|
|
2310
|
-
canLoop: boolean;
|
|
2311
|
-
qrCodeScanOptions: any;
|
|
2312
|
-
multipleInstance?: StoreInstance;
|
|
2313
|
-
}
|
|
2314
|
-
export const LoginWithAppQrcode: (props: LoginWithAppQrcodeProps) => JSX.Element;
|
|
2315
|
-
export {};
|
|
2316
|
-
|
|
2317
|
-
}
|
|
2318
|
-
declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
2319
|
-
/// <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';
|
|
2322
|
-
interface LoginWithLDAPProps {
|
|
2323
|
-
publicKey: string;
|
|
2324
|
-
autoRegister?: boolean;
|
|
2325
|
-
host?: string;
|
|
2326
|
-
onLoginSuccess: any;
|
|
2327
|
-
onLoginFailed: any;
|
|
2328
|
-
onBeforeLogin: any;
|
|
2329
|
-
agreements: Agreement[];
|
|
2330
|
-
/**
|
|
2331
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2332
|
-
*/
|
|
2333
|
-
multipleInstance?: StoreInstance;
|
|
2334
|
-
/**
|
|
2335
|
-
* 多账号回填的数据
|
|
2336
|
-
*/
|
|
2337
|
-
backfillData?: BackFillMultipleState;
|
|
2338
|
-
}
|
|
2339
|
-
export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
|
|
2340
|
-
export {};
|
|
2341
|
-
|
|
2342
|
-
}
|
|
2343
|
-
declare module '@authing/react-ui-components/components/Login/core/withPassword/FormItemAccount' {
|
|
2344
|
-
import { FormItemProps } from 'antd/lib/form';
|
|
2345
|
-
import React from 'react';
|
|
2346
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2347
|
-
export interface FormItemAccountProps extends FormItemProps {
|
|
2348
|
-
passwordLoginMethods: PasswordLoginMethods[];
|
|
2349
|
-
}
|
|
2350
|
-
export const FormItemAccount: React.FC<FormItemAccountProps>;
|
|
2351
|
-
|
|
2352
|
-
}
|
|
2353
|
-
declare module '@authing/react-ui-components/components/Login/core/withPassword/GraphicVerifyCode' {
|
|
2354
|
-
import { InputProps } from 'antd/lib/input';
|
|
2355
|
-
import React from 'react';
|
|
2356
|
-
export interface GraphicVerifyCodeProps extends InputProps {
|
|
2357
|
-
verifyCodeUrl: string;
|
|
2358
|
-
changeCode: () => void;
|
|
2359
|
-
}
|
|
2360
|
-
export const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
|
|
2361
|
-
|
|
2362
|
-
}
|
|
2363
|
-
declare module '@authing/react-ui-components/components/Login/core/withPassword/InputAccount' {
|
|
2364
|
-
import { InputProps } from 'antd/lib/input';
|
|
2365
|
-
import React from 'react';
|
|
2366
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2367
|
-
export interface InputAccountProps extends InputProps {
|
|
2368
|
-
passwordLoginMethods: PasswordLoginMethods[];
|
|
2369
|
-
}
|
|
2370
|
-
export const InputAccount: React.FC<InputAccountProps>;
|
|
2371
|
-
|
|
2372
|
-
}
|
|
2373
|
-
declare module '@authing/react-ui-components/components/Login/core/withPassword/index' {
|
|
2374
|
-
/// <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';
|
|
2379
|
-
interface LoginWithPasswordProps {
|
|
2380
|
-
publicKey: string;
|
|
2381
|
-
autoRegister?: boolean;
|
|
2382
|
-
host?: string;
|
|
2383
|
-
onBeforeLogin?: any;
|
|
2384
|
-
onLoginSuccess?: any;
|
|
2385
|
-
onLoginFailed?: any;
|
|
2386
|
-
onLoginRequest?: (loginInfo: any) => Promise<AuthingResponse>;
|
|
2387
|
-
passwordLoginMethods: PasswordLoginMethods[];
|
|
2388
|
-
agreements: Agreement[];
|
|
2389
|
-
loginWay?: LoginMethods;
|
|
2390
|
-
submitButText?: string;
|
|
2391
|
-
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2392
|
-
/**
|
|
2393
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2394
|
-
*/
|
|
2395
|
-
multipleInstance?: StoreInstance;
|
|
2396
|
-
/**
|
|
2397
|
-
* 多账号回填的数据
|
|
2398
|
-
*/
|
|
2399
|
-
backfillData?: BackFillMultipleState;
|
|
2400
|
-
}
|
|
2401
|
-
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2402
|
-
export {};
|
|
2403
|
-
|
|
2404
|
-
}
|
|
2405
|
-
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/FormItemIdentify' {
|
|
2406
|
-
import { FormItemProps } from 'antd/lib/form';
|
|
2407
|
-
import React from 'react';
|
|
2408
|
-
import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2409
|
-
export interface FormItemIdentifyProps extends FormItemProps {
|
|
2410
|
-
checkRepeat?: boolean;
|
|
2411
|
-
checkExist?: boolean;
|
|
2412
|
-
methods: VerifyLoginMethods[];
|
|
2413
|
-
currentMethod: 'phone-code' | 'email-code';
|
|
2414
|
-
areaCode?: string;
|
|
2415
|
-
}
|
|
2416
|
-
export const FormItemIdentify: React.FC<FormItemIdentifyProps>;
|
|
2417
|
-
|
|
2418
|
-
}
|
|
2419
|
-
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/InputInternationPhone' {
|
|
2420
|
-
import { InputProps } from 'antd/lib/input';
|
|
2421
|
-
import React from 'react';
|
|
2422
|
-
export interface InputInternationPhoneProps extends InputProps {
|
|
2423
|
-
areaCode: string;
|
|
2424
|
-
onAreaCodeChange: (areaCode: string) => void;
|
|
2425
|
-
}
|
|
2426
|
-
export const InputInternationPhone: React.FC<InputInternationPhoneProps>;
|
|
2427
|
-
|
|
2428
|
-
}
|
|
2429
|
-
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/VirtualDropdown' {
|
|
2430
|
-
import React, { FC } from 'react';
|
|
2431
|
-
import './styles.less';
|
|
2432
|
-
export interface VirtualDropdownProps {
|
|
2433
|
-
/**
|
|
2434
|
-
* 回填的国际化区号
|
|
2435
|
-
*/
|
|
2436
|
-
regionCode?: string;
|
|
2437
|
-
value?: string;
|
|
2438
|
-
onChange?: (value: string) => void;
|
|
2439
|
-
style?: React.CSSProperties;
|
|
2440
|
-
}
|
|
2441
|
-
export const VirtualDropdown: FC<VirtualDropdownProps>;
|
|
2442
|
-
|
|
2443
|
-
}
|
|
2444
|
-
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/index' {
|
|
2445
|
-
/// <reference types="react" />
|
|
2446
|
-
import './styles.less';
|
|
2447
|
-
const LoginWithVerifyCode: (props: any) => JSX.Element;
|
|
2448
|
-
export { LoginWithVerifyCode };
|
|
2449
|
-
|
|
2450
|
-
}
|
|
2451
|
-
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/inputIdentify' {
|
|
2452
|
-
import { InputProps } from 'antd/lib/input';
|
|
2453
|
-
import React from 'react';
|
|
2454
|
-
import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2455
|
-
export interface InputIdentifyProps extends InputProps {
|
|
2456
|
-
methods: VerifyLoginMethods[];
|
|
2457
|
-
}
|
|
2458
|
-
export const InputIdentify: React.FC<InputIdentifyProps>;
|
|
2459
|
-
|
|
2460
|
-
}
|
|
2461
|
-
declare module '@authing/react-ui-components/components/Login/core/withWechatMiniQrcode' {
|
|
2462
|
-
/// <reference types="react" />
|
|
2463
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2464
|
-
interface LoginWithWechatMiniQrcodeProps {
|
|
2465
|
-
onLoginSuccess: any;
|
|
2466
|
-
canLoop: boolean;
|
|
2467
|
-
qrCodeScanOptions: any;
|
|
2468
|
-
id: string;
|
|
2469
|
-
multipleInstance?: StoreInstance;
|
|
2470
|
-
}
|
|
2471
|
-
export const LoginWithWechatMiniQrcode: (props: LoginWithWechatMiniQrcodeProps) => JSX.Element;
|
|
2472
|
-
export {};
|
|
2473
|
-
|
|
2474
|
-
}
|
|
2475
|
-
declare module '@authing/react-ui-components/components/Login/core/withWechatmpQrcode' {
|
|
2476
|
-
/// <reference types="react" />
|
|
2477
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2478
|
-
interface LoginWithWechatmpQrcodeProps {
|
|
2479
|
-
onLoginSuccess: any;
|
|
2480
|
-
canLoop: boolean;
|
|
2481
|
-
qrCodeScanOptions: any;
|
|
2482
|
-
id: string;
|
|
2483
|
-
/**
|
|
2484
|
-
* 多账号存储实例
|
|
2485
|
-
*/
|
|
2486
|
-
multipleInstance?: StoreInstance;
|
|
2487
|
-
}
|
|
2488
|
-
export const LoginWithWechatmpQrcode: (props: LoginWithWechatmpQrcodeProps) => JSX.Element;
|
|
2489
|
-
export {};
|
|
2490
|
-
|
|
2491
|
-
}
|
|
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' {
|
|
2558
|
-
/// <reference types="react" />
|
|
2559
|
-
import './styles.less';
|
|
2560
|
-
export const GuardLoginView: () => JSX.Element;
|
|
2561
|
-
|
|
2562
|
-
}
|
|
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';
|
|
2566
|
-
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';
|
|
2570
|
-
export interface LoginConfig extends IG2Config {
|
|
2571
|
-
autoRegister?: boolean;
|
|
2572
|
-
disableResetPwd?: boolean;
|
|
2573
|
-
disableRegister?: boolean;
|
|
2574
|
-
defaultLoginMethod?: LoginMethods;
|
|
2575
|
-
loginMethods?: LoginMethods[];
|
|
2576
|
-
passwordLoginMethods?: PasswordLoginMethods[];
|
|
2577
|
-
socialConnections?: SocialConnectionProvider[];
|
|
2578
|
-
socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
|
|
2579
|
-
enterpriseConnections?: string[];
|
|
2580
|
-
qrCodeScanOptions?: Parameters<QrCodeAuthenticationClient['startScanning']>[1];
|
|
2581
|
-
publicKey?: string;
|
|
2582
|
-
agreementEnabled?: boolean;
|
|
2583
|
-
agreements?: Agreement[];
|
|
2584
|
-
}
|
|
2585
|
-
export interface LoginEvents extends IG2Events {
|
|
2586
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
2587
|
-
onLoginError?: (errorMessages: any) => void;
|
|
2588
|
-
onLoginTabChange?: (activeTab: LoginMethods) => void;
|
|
2589
|
-
onBeforeLogin?: (loginInfo: PasswordLoginParams | LDAPLoginParams | ADLoginParams | PhoneCodeLoginParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2590
|
-
}
|
|
2591
|
-
export interface GuardLoginProps extends IG2FCProps, LoginEvents {
|
|
2592
|
-
config?: Partial<LoginConfig>;
|
|
2593
|
-
}
|
|
2594
|
-
export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
|
|
2595
|
-
config: LoginConfig;
|
|
2596
|
-
}
|
|
2597
|
-
export interface GuardLoginInitData {
|
|
2598
|
-
specifyDefaultLoginMethod?: LoginMethods;
|
|
2599
|
-
_firstItemInitialValue?: string;
|
|
2600
|
-
_lockMethod?: string;
|
|
2601
|
-
}
|
|
2602
|
-
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2603
|
-
|
|
2604
|
-
}
|
|
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' {
|
|
2679
|
-
/// <reference types="react" />
|
|
2680
|
-
export const IdpButton: (props: any) => JSX.Element | null;
|
|
2681
|
-
|
|
2682
|
-
}
|
|
2683
|
-
declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
|
|
2684
|
-
import React from 'react';
|
|
2685
|
-
import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2686
|
-
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';
|
|
2689
|
-
export interface SocialLoginProps {
|
|
2690
|
-
appId: string;
|
|
2691
|
-
config: GuardLocalConfig;
|
|
2692
|
-
onLoginFailed: any;
|
|
2693
|
-
onLoginSuccess: any;
|
|
2694
|
-
enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
|
|
2695
|
-
socialConnectionObjs: SocialConnectionItem[];
|
|
2696
|
-
/**
|
|
2697
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2698
|
-
*/
|
|
2699
|
-
multipleInstance?: StoreInstance;
|
|
2700
|
-
}
|
|
2701
|
-
export const SocialLogin: React.FC<SocialLoginProps>;
|
|
2702
|
-
|
|
2703
|
-
}
|
|
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> | {
|
|
2707
|
-
code: any;
|
|
2708
|
-
data: any;
|
|
2709
|
-
onGuardHandling: undefined;
|
|
2710
|
-
} | undefined;
|
|
2711
|
-
export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>;
|
|
2712
|
-
|
|
2713
|
-
}
|
|
2714
|
-
declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
|
|
2715
|
-
import { FormItemProps } from 'antd/lib/form';
|
|
2716
|
-
import React from 'react';
|
|
2717
|
-
import './style.less';
|
|
2718
|
-
export interface VerifyCodeFormItemProps extends FormItemProps {
|
|
2719
|
-
codeLength: number;
|
|
2720
|
-
ruleKeyword?: string;
|
|
2721
|
-
}
|
|
2722
|
-
export const VerifyCodeFormItem: React.FC<VerifyCodeFormItemProps>;
|
|
2723
|
-
|
|
2724
|
-
}
|
|
2725
|
-
declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/index' {
|
|
2726
|
-
import React, { FC } from 'react';
|
|
2727
|
-
import './style.less';
|
|
2728
|
-
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2729
|
-
length?: number;
|
|
2730
|
-
size?: string;
|
|
2731
|
-
gutter?: string;
|
|
2732
|
-
onEenter?: Function;
|
|
2733
|
-
showDivider?: boolean;
|
|
2734
|
-
onChange?: any;
|
|
2735
|
-
value?: Array<number | string>;
|
|
2736
|
-
onFinish?: any;
|
|
2737
|
-
}
|
|
2738
|
-
export const VerifyCodeInput: FC<VerifyCodeInputProps>;
|
|
2739
|
-
export {};
|
|
2740
|
-
|
|
2741
|
-
}
|
|
2742
|
-
declare module '@authing/react-ui-components/components/MFA/businessRequest' {
|
|
2743
|
-
export enum MfaBusinessAction {
|
|
2744
|
-
VerifyEmail = "verify-email",
|
|
2745
|
-
VerifySms = "verify-sms",
|
|
2746
|
-
VerifyTotp = "verify-totp",
|
|
2747
|
-
VerifyFace = "verify-face",
|
|
2748
|
-
AssociateFace = "associate-face"
|
|
2749
|
-
}
|
|
2750
|
-
export const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
2751
|
-
interface VerifySmsContent {
|
|
2752
|
-
phone: string;
|
|
2753
|
-
code: string;
|
|
2754
|
-
mfaToken?: string;
|
|
2755
|
-
phoneCountryCode?: string;
|
|
2756
|
-
}
|
|
2757
|
-
interface VerifyEmailContent {
|
|
2758
|
-
email: string;
|
|
2759
|
-
code: string;
|
|
2760
|
-
mfaToken?: string;
|
|
2761
|
-
}
|
|
2762
|
-
interface VerifyTotpContent {
|
|
2763
|
-
totp: string;
|
|
2764
|
-
mfaToken?: string;
|
|
2765
|
-
}
|
|
2766
|
-
interface VerifyFaceContent {
|
|
2767
|
-
photo: string;
|
|
2768
|
-
mfaToken?: string;
|
|
2769
|
-
}
|
|
2770
|
-
interface AssociateFaceContent {
|
|
2771
|
-
photoA: string;
|
|
2772
|
-
photoB: string;
|
|
2773
|
-
isExternalPhoto?: boolean;
|
|
2774
|
-
mfaToken?: string;
|
|
2775
|
-
}
|
|
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>>;
|
|
2781
|
-
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>>;
|
|
2787
|
-
};
|
|
2788
|
-
export {};
|
|
2789
|
-
|
|
2790
|
-
}
|
|
2791
|
-
declare module '@authing/react-ui-components/components/MFA/codemap' {
|
|
2792
|
-
import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
|
|
2793
|
-
export const codeMap: Record<number, GuardModuleAction>;
|
|
2794
|
-
|
|
2795
|
-
}
|
|
2796
|
-
declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
2797
|
-
import React from 'react';
|
|
2798
|
-
import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
2799
|
-
interface BindMFAEmailProps {
|
|
2800
|
-
mfaToken: string;
|
|
2801
|
-
onBind: (email: string) => void;
|
|
2802
|
-
config: any;
|
|
2803
|
-
}
|
|
2804
|
-
export const BindMFAEmail: React.FC<BindMFAEmailProps>;
|
|
2805
|
-
interface VerifyMFAEmailProps {
|
|
2806
|
-
email: string;
|
|
2807
|
-
mfaToken: string;
|
|
2808
|
-
onVerify: (code: number, data: any) => void;
|
|
2809
|
-
sendCodeRef: React.RefObject<HTMLButtonElement>;
|
|
2810
|
-
codeLength: number;
|
|
2811
|
-
}
|
|
2812
|
-
export const VerifyMFAEmail: React.FC<VerifyMFAEmailProps>;
|
|
2813
|
-
export const MFAEmail: React.FC<{
|
|
2814
|
-
mfaToken: string;
|
|
2815
|
-
email?: string;
|
|
2816
|
-
mfaLogin: any;
|
|
2817
|
-
config: MFAConfig;
|
|
2818
|
-
}>;
|
|
2819
|
-
export {};
|
|
2820
|
-
|
|
2821
|
-
}
|
|
2822
|
-
declare module '@authing/react-ui-components/components/MFA/core/face' {
|
|
2823
|
-
/// <reference types="react" />
|
|
2824
|
-
export const MFAFace: (props: any) => JSX.Element;
|
|
2825
|
-
|
|
2826
|
-
}
|
|
2827
|
-
declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
|
|
2828
|
-
export const devicesConstraints: {
|
|
2829
|
-
video: {
|
|
2830
|
-
width: number;
|
|
2831
|
-
height: number;
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
export const FACE_SCORE = 0.65;
|
|
2835
|
-
export function getFaceDetectorOptions(): any;
|
|
2836
|
-
export function getCurrentFaceDetectionNet(): any;
|
|
2837
|
-
export function isFaceDetectionModelLoaded(): boolean;
|
|
2838
|
-
export function dataURItoBlob(base64Data: any): Blob;
|
|
2839
|
-
|
|
2840
|
-
}
|
|
2841
|
-
declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
2842
|
-
import React from 'react';
|
|
2843
|
-
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
2844
|
-
export interface BindMFASmsProps {
|
|
2845
|
-
mfaToken: string;
|
|
2846
|
-
onBind: (phone: string) => void;
|
|
2847
|
-
config: any;
|
|
2848
|
-
areaCode: string;
|
|
2849
|
-
setAreaCode: (areaCode: string) => void;
|
|
2850
|
-
isInternationSms: boolean;
|
|
2851
|
-
}
|
|
2852
|
-
export const BindMFASms: React.FC<BindMFASmsProps>;
|
|
2853
|
-
export interface VerifyMFASmsProps {
|
|
2854
|
-
mfaToken: string;
|
|
2855
|
-
phone: string;
|
|
2856
|
-
onVerify: (code: number, data: any) => void;
|
|
2857
|
-
sendCodeRef: React.RefObject<HTMLButtonElement>;
|
|
2858
|
-
codeLength: number;
|
|
2859
|
-
areaCode: string;
|
|
2860
|
-
phoneCountryCode?: string;
|
|
2861
|
-
isInternationSms: boolean;
|
|
2862
|
-
userPhone?: string;
|
|
2863
|
-
}
|
|
2864
|
-
export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
|
|
2865
|
-
export const MFASms: React.FC<{
|
|
2866
|
-
mfaLogin: any;
|
|
2867
|
-
config: MFAConfig;
|
|
2868
|
-
initData: GuardMFAInitData;
|
|
2869
|
-
}>;
|
|
2870
|
-
|
|
2871
|
-
}
|
|
2872
|
-
declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
2873
|
-
import React from 'react';
|
|
2874
|
-
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
2875
|
-
export interface BindMFATotpProps {
|
|
2876
|
-
initData: GuardMFAInitData;
|
|
2877
|
-
changeModule: any;
|
|
2878
|
-
}
|
|
2879
|
-
export const BindMFATotp: React.FC<BindMFATotpProps>;
|
|
2880
|
-
export interface VerifyMFATotpProps {
|
|
2881
|
-
mfaToken: string;
|
|
2882
|
-
mfaLogin: any;
|
|
2883
|
-
changeModule: any;
|
|
2884
|
-
}
|
|
2885
|
-
export const VerifyMFATotp: React.FC<VerifyMFATotpProps>;
|
|
2886
|
-
export interface MFATotpProps {
|
|
2887
|
-
changeModule: any;
|
|
2888
|
-
config: MFAConfig;
|
|
2889
|
-
initData: GuardMFAInitData;
|
|
2890
|
-
mfaLogin: any;
|
|
2891
|
-
}
|
|
2892
|
-
export const MFATotp: React.FC<MFATotpProps>;
|
|
2893
|
-
|
|
2894
|
-
}
|
|
2895
|
-
declare module '@authing/react-ui-components/components/MFA/index' {
|
|
2896
|
-
import React from 'react';
|
|
2897
|
-
import './styles.less';
|
|
2898
|
-
interface MFABackStateContextType {
|
|
2899
|
-
setMfaBackState: React.Dispatch<React.SetStateAction<string>>;
|
|
2900
|
-
mfaBackState: string;
|
|
2901
|
-
}
|
|
2902
|
-
export const MFABackStateContext: React.Context<MFABackStateContextType | undefined>;
|
|
2903
|
-
export const GuardMFAView: React.FC;
|
|
2904
|
-
export {};
|
|
2905
|
-
|
|
2906
|
-
}
|
|
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';
|
|
2910
|
-
export interface MFAConfig extends IG2Config {
|
|
2911
|
-
autoRegister: boolean;
|
|
2912
|
-
}
|
|
2913
|
-
export const getDefaultMFAConfig: () => MFAConfig;
|
|
2914
|
-
export interface MFAEvents extends IG2Events {
|
|
2915
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
2916
|
-
}
|
|
2917
|
-
export enum MFAType {
|
|
2918
|
-
SMS = "SMS",
|
|
2919
|
-
EMAIL = "EMAIL",
|
|
2920
|
-
TOTP = "OTP",
|
|
2921
|
-
FACE = "FACE"
|
|
2922
|
-
}
|
|
2923
|
-
export interface GuardMFAInitData {
|
|
2924
|
-
mfaToken: string;
|
|
2925
|
-
applicationMfa: {
|
|
2926
|
-
mfaPolicy: MFAType;
|
|
2927
|
-
sort: number;
|
|
2928
|
-
status: 0 | 1;
|
|
2929
|
-
}[];
|
|
2930
|
-
phoneCountryCode?: string;
|
|
2931
|
-
faceMfaEnabled: boolean;
|
|
2932
|
-
totpMfaEnabled: boolean;
|
|
2933
|
-
email?: string;
|
|
2934
|
-
phone?: string;
|
|
2935
|
-
avatar?: string;
|
|
2936
|
-
nickme?: string;
|
|
2937
|
-
username?: string;
|
|
2938
|
-
current?: MFAType;
|
|
2939
|
-
}
|
|
2940
|
-
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2941
|
-
config: Partial<MFAConfig>;
|
|
2942
|
-
initData: GuardMFAInitData;
|
|
2943
|
-
}
|
|
2944
|
-
export interface GuardMFAViewProps extends GuardMFAProps {
|
|
2945
|
-
config: MFAConfig;
|
|
2946
|
-
initData: GuardMFAInitData;
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
}
|
|
2950
|
-
declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
|
|
2951
|
-
import React from 'react';
|
|
2952
|
-
import { MFAType } from '@authing/react-ui-components/components/MFA/interface';
|
|
2953
|
-
import './style.less';
|
|
2954
|
-
export interface MFAMethodsProps {
|
|
2955
|
-
method: MFAType;
|
|
2956
|
-
onChangeMethod: (type: MFAType) => void;
|
|
2957
|
-
}
|
|
2958
|
-
export const MFAMethods: React.FC<MFAMethodsProps>;
|
|
2959
|
-
|
|
2960
|
-
}
|
|
2961
|
-
declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
|
|
2962
|
-
/// <reference types="react" />
|
|
2963
|
-
interface describeQuestionsProps {
|
|
2964
|
-
appId: string;
|
|
2965
|
-
host: string;
|
|
2966
|
-
onSuccess: any;
|
|
2967
|
-
}
|
|
2968
|
-
export const DescribeQuestions: (props: describeQuestionsProps) => JSX.Element;
|
|
2969
|
-
export {};
|
|
2970
|
-
|
|
2971
|
-
}
|
|
2972
|
-
declare module '@authing/react-ui-components/components/NeedHelpView/index' {
|
|
2973
|
-
/// <reference types="react" />
|
|
2974
|
-
export const GuardNeedHelpView: (props: any) => JSX.Element;
|
|
2975
|
-
|
|
2976
|
-
}
|
|
2977
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/businessRequest' {
|
|
2978
|
-
export enum TotpRecoveryCodeBusinessAction {
|
|
2979
|
-
RecoveryTotp = "recovery-totp",
|
|
2980
|
-
ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
|
|
2981
|
-
}
|
|
2982
|
-
export function authFlow<T>(action: TotpRecoveryCodeBusinessAction, content: any): Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<T>>;
|
|
2983
|
-
|
|
2984
|
-
}
|
|
2985
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/core/saveCode' {
|
|
2986
|
-
import React from 'react';
|
|
2987
|
-
export const SaveCode: React.FC<{
|
|
2988
|
-
secret: string;
|
|
2989
|
-
onBind: any;
|
|
2990
|
-
}>;
|
|
2991
|
-
|
|
2992
|
-
}
|
|
2993
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/core/useCode' {
|
|
2994
|
-
import React from 'react';
|
|
2995
|
-
import { User } from '@authing/react-ui-components/components/index';
|
|
2996
|
-
export interface UseCodeProps {
|
|
2997
|
-
mfaToken: string;
|
|
2998
|
-
onSubmit: (recoveryCode: string, user?: User) => void;
|
|
2999
|
-
}
|
|
3000
|
-
export const UseCode: React.FC<UseCodeProps>;
|
|
3001
|
-
|
|
3002
|
-
}
|
|
3003
|
-
declare module '@authing/react-ui-components/components/RecoveryCode/index' {
|
|
3004
|
-
import React from 'react';
|
|
3005
|
-
import './style.less';
|
|
3006
|
-
export const RecoveryCode: React.FC;
|
|
3007
|
-
export const RecoveryCodeAuthFlow: React.FC;
|
|
3008
|
-
export const GuardRecoveryCodeView: React.FC;
|
|
3009
|
-
|
|
3010
|
-
}
|
|
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';
|
|
3014
|
-
export interface RecoveryCodeConfig extends IG2Config {
|
|
3015
|
-
}
|
|
3016
|
-
export const getDefaultRecoveryCodeConfig: () => RecoveryCodeConfig;
|
|
3017
|
-
export interface RecoveryCodeEvents extends IG2Events {
|
|
3018
|
-
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
3019
|
-
}
|
|
3020
|
-
|
|
3021
|
-
}
|
|
3022
|
-
declare module '@authing/react-ui-components/components/Register/codemap' {
|
|
3023
|
-
import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
|
|
3024
|
-
export const codeMap: Record<number, GuardModuleAction>;
|
|
3025
|
-
|
|
3026
|
-
}
|
|
3027
|
-
declare module '@authing/react-ui-components/components/Register/components/Agreements/index' {
|
|
3028
|
-
import React, { FC } from 'react';
|
|
3029
|
-
import './style.less';
|
|
3030
|
-
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3031
|
-
export interface AgreementsProps {
|
|
3032
|
-
value?: boolean;
|
|
3033
|
-
onChange?: (value: boolean) => void;
|
|
3034
|
-
style?: React.CSSProperties;
|
|
3035
|
-
agreements: Agreement[];
|
|
3036
|
-
showError?: boolean;
|
|
3037
|
-
}
|
|
3038
|
-
export const Agreements: FC<AgreementsProps>;
|
|
3039
|
-
|
|
3040
|
-
}
|
|
3041
|
-
declare module '@authing/react-ui-components/components/Register/core/WithCode' {
|
|
3042
|
-
import React from 'react';
|
|
3043
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3044
|
-
export interface RegisterWithCodeProps {
|
|
3045
|
-
onRegisterSuccess: Function;
|
|
3046
|
-
onRegisterFailed: Function;
|
|
3047
|
-
onBeforeRegister?: Function;
|
|
3048
|
-
agreements: Agreement[];
|
|
3049
|
-
publicConfig?: ApplicationConfig;
|
|
3050
|
-
registeContext?: any;
|
|
3051
|
-
methods: any[];
|
|
3052
|
-
}
|
|
3053
|
-
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
3054
|
-
|
|
3055
|
-
}
|
|
3056
|
-
declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
|
|
3057
|
-
import React from 'react';
|
|
3058
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3059
|
-
export interface RegisterWithEmailProps {
|
|
3060
|
-
onRegisterSuccess: Function;
|
|
3061
|
-
onRegisterFailed: Function;
|
|
3062
|
-
onBeforeRegister?: Function;
|
|
3063
|
-
publicConfig?: ApplicationConfig;
|
|
3064
|
-
agreements: Agreement[];
|
|
3065
|
-
registeContext?: any;
|
|
3066
|
-
}
|
|
3067
|
-
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
3068
|
-
|
|
3069
|
-
}
|
|
3070
|
-
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
3071
|
-
import React from 'react';
|
|
3072
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3073
|
-
export interface RegisterWithEmailCodeProps {
|
|
3074
|
-
onRegisterSuccess: Function;
|
|
3075
|
-
onRegisterFailed: Function;
|
|
3076
|
-
onBeforeRegister?: Function;
|
|
3077
|
-
agreements: Agreement[];
|
|
3078
|
-
publicConfig?: ApplicationConfig;
|
|
3079
|
-
registeContext?: any;
|
|
3080
|
-
}
|
|
3081
|
-
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
3082
|
-
|
|
3083
|
-
}
|
|
3084
|
-
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
3085
|
-
import React from 'react';
|
|
3086
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3087
|
-
export interface RegisterWithPhoneProps {
|
|
3088
|
-
onRegisterSuccess: Function;
|
|
3089
|
-
onRegisterFailed: Function;
|
|
3090
|
-
agreements: Agreement[];
|
|
3091
|
-
publicConfig?: ApplicationConfig;
|
|
3092
|
-
registeContext?: any;
|
|
3093
|
-
}
|
|
3094
|
-
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
3095
|
-
|
|
3096
|
-
}
|
|
3097
|
-
declare module '@authing/react-ui-components/components/Register/index' {
|
|
3098
|
-
import React from 'react';
|
|
3099
|
-
export const GuardRegisterView: React.FC;
|
|
3100
|
-
|
|
3101
|
-
}
|
|
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';
|
|
3106
|
-
export interface RegisterConfig extends IG2Config {
|
|
3107
|
-
disableRegister?: boolean;
|
|
3108
|
-
registerMethods?: RegisterMethods[];
|
|
3109
|
-
defaultRegisterMethod?: RegisterMethods;
|
|
3110
|
-
publicKey?: string;
|
|
3111
|
-
agreementEnabled?: boolean;
|
|
3112
|
-
agreements?: Agreement[];
|
|
3113
|
-
registerContext?: any;
|
|
3114
|
-
}
|
|
3115
|
-
export interface RegisterEvents extends IG2Events {
|
|
3116
|
-
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
3117
|
-
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
3118
|
-
onRegisterError?: (error: any) => void;
|
|
3119
|
-
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
3120
|
-
}
|
|
3121
|
-
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
3122
|
-
config?: Partial<RegisterConfig>;
|
|
3123
|
-
}
|
|
3124
|
-
export interface GuardRegisterViewProps extends GuardRegisterProps {
|
|
3125
|
-
config: RegisterConfig;
|
|
3126
|
-
}
|
|
3127
|
-
export const getDefaultRegisterConfig: () => RegisterConfig;
|
|
3128
|
-
|
|
3129
|
-
}
|
|
3130
|
-
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
3131
|
-
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
3132
|
-
|
|
3133
|
-
}
|
|
3134
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
3135
|
-
import React from 'react';
|
|
3136
|
-
export enum InputMethodMap {
|
|
3137
|
-
email = "email-code",
|
|
3138
|
-
phone = "phone-code"
|
|
3139
|
-
}
|
|
3140
|
-
export const SelfUnlock: ({ identifyRef, }: {
|
|
3141
|
-
identifyRef?: React.MutableRefObject<string> | undefined;
|
|
3142
|
-
}) => JSX.Element;
|
|
3143
|
-
|
|
3144
|
-
}
|
|
3145
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
3146
|
-
import React from 'react';
|
|
3147
|
-
export const GuardUnlockView: React.FC;
|
|
3148
|
-
|
|
3149
|
-
}
|
|
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';
|
|
3153
|
-
export interface ForgetPasswordEvents extends IG2Events {
|
|
3154
|
-
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
3155
|
-
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
3156
|
-
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
3157
|
-
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
3158
|
-
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
3159
|
-
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
3160
|
-
}
|
|
3161
|
-
export interface ForgetPasswordConfig extends IG2Config {
|
|
3162
|
-
}
|
|
3163
|
-
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
3164
|
-
config: Partial<IG2Config>;
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
|
-
}
|
|
3168
|
-
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
3169
|
-
import React, { FC } from 'react';
|
|
3170
|
-
import './style.less';
|
|
3171
|
-
import { ButtonProps } from 'antd/lib/button';
|
|
3172
|
-
export interface SendCodeProps extends ButtonProps {
|
|
3173
|
-
beforeSend: () => Promise<boolean>;
|
|
3174
|
-
btnRef?: React.RefObject<HTMLButtonElement>;
|
|
3175
|
-
setSent?: (value: boolean) => void;
|
|
3176
|
-
sendDesc?: string;
|
|
3177
|
-
}
|
|
3178
|
-
export const SendCodeBtn: FC<SendCodeProps>;
|
|
3179
|
-
|
|
3180
|
-
}
|
|
3181
|
-
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
3182
|
-
import { FC } from 'react';
|
|
3183
|
-
import './style.less';
|
|
3184
|
-
import { InputProps } from 'antd/lib/input';
|
|
3185
|
-
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
3186
|
-
export interface SendCodeByEmailProps extends InputProps {
|
|
3187
|
-
data?: string;
|
|
3188
|
-
form?: any;
|
|
3189
|
-
onSendCodeBefore?: any;
|
|
3190
|
-
fieldName?: string;
|
|
3191
|
-
autoSubmit?: boolean;
|
|
3192
|
-
scene: EmailScene;
|
|
3193
|
-
}
|
|
3194
|
-
export const SendCodeByEmail: FC<SendCodeByEmailProps>;
|
|
3195
|
-
|
|
3196
|
-
}
|
|
3197
|
-
declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone' {
|
|
3198
|
-
import { FC } from 'react';
|
|
3199
|
-
import { SceneType } from 'authing-js-sdk';
|
|
3200
|
-
import './style.less';
|
|
3201
|
-
import { InputProps } from 'antd/lib/input';
|
|
3202
|
-
export interface SendCodeByPhoneProps extends InputProps {
|
|
3203
|
-
data?: string;
|
|
3204
|
-
form?: any;
|
|
3205
|
-
onSendCodeBefore?: any;
|
|
3206
|
-
fieldName?: string;
|
|
3207
|
-
autoSubmit?: boolean;
|
|
3208
|
-
scene: SceneType;
|
|
3209
|
-
areaCode?: string;
|
|
3210
|
-
isInternationSms?: boolean;
|
|
3211
|
-
}
|
|
3212
|
-
export const SendCodeByPhone: FC<SendCodeByPhoneProps>;
|
|
3213
|
-
|
|
3214
|
-
}
|
|
3215
|
-
declare module '@authing/react-ui-components/components/SendCode/index' {
|
|
3216
|
-
import { FC } from 'react';
|
|
3217
|
-
import './style.less';
|
|
3218
|
-
import { InputProps } from 'antd/lib/input';
|
|
3219
|
-
export interface SendPhoneCodeProps extends InputProps {
|
|
3220
|
-
form?: any;
|
|
3221
|
-
beforeSend?: any;
|
|
3222
|
-
autoSubmit?: boolean;
|
|
3223
|
-
}
|
|
3224
|
-
export const SendCode: FC<SendPhoneCodeProps>;
|
|
3225
|
-
|
|
3226
|
-
}
|
|
3227
|
-
declare module '@authing/react-ui-components/components/ShieldSpin/index' {
|
|
3228
|
-
/// <reference types="react" />
|
|
3229
|
-
interface IG2SpinProps {
|
|
3230
|
-
size?: number;
|
|
3231
|
-
}
|
|
3232
|
-
export const ShieldSpin: (props: IG2SpinProps) => JSX.Element;
|
|
3233
|
-
export const Spin: () => JSX.Element;
|
|
3234
|
-
export {};
|
|
3235
|
-
|
|
3236
|
-
}
|
|
3237
|
-
declare module '@authing/react-ui-components/components/SingleComponent/SingleComponent' {
|
|
3238
|
-
/// <reference types="react" />
|
|
3239
|
-
import { GuardModuleType, IG2FCProps } from '@authing/react-ui-components/components/index';
|
|
3240
|
-
export function SingleComponent<T extends IG2FCProps>(props: T, guardModuleType: GuardModuleType, initData?: any): JSX.Element;
|
|
3241
|
-
|
|
3242
|
-
}
|
|
3243
|
-
declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
3244
|
-
import React from 'react';
|
|
3245
|
-
import { GuardRegisterProps } from '@authing/react-ui-components/components/Register/interface';
|
|
3246
|
-
export const Register: React.FC<GuardRegisterProps>;
|
|
3247
|
-
|
|
3248
|
-
}
|
|
3249
|
-
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
3250
|
-
import React from 'react';
|
|
3251
|
-
import { ButtonProps } from 'antd/lib/button';
|
|
3252
|
-
interface SubmitButtonProps extends ButtonProps {
|
|
3253
|
-
text?: string;
|
|
3254
|
-
className?: string;
|
|
3255
|
-
onClick?: any;
|
|
3256
|
-
disabled?: boolean;
|
|
3257
|
-
}
|
|
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 {
|
|
3271
|
-
}
|
|
3272
|
-
export interface SubmitSuccessConfig extends IG2Config {
|
|
3273
|
-
}
|
|
3274
|
-
export interface SubmitSuccessInitData {
|
|
3275
|
-
title?: string;
|
|
3276
|
-
message?: string;
|
|
3277
|
-
text?: string;
|
|
3278
|
-
countDesc?: string;
|
|
3279
|
-
changeModule?: GuardModuleType;
|
|
3280
|
-
}
|
|
3281
|
-
export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
3282
|
-
config: SubmitSuccessConfig;
|
|
3283
|
-
initData?: SubmitSuccessInitData;
|
|
3284
|
-
}
|
|
3285
|
-
|
|
3286
|
-
}
|
|
3287
|
-
declare module '@authing/react-ui-components/components/Type/index' {
|
|
3288
|
-
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';
|
|
3294
|
-
export interface IG2FCProps extends IG2Events {
|
|
3295
|
-
appId?: string;
|
|
3296
|
-
tenantId?: string;
|
|
3297
|
-
config?: Partial<IG2Config>;
|
|
3298
|
-
visible?: boolean;
|
|
3299
|
-
initData?: any;
|
|
3300
|
-
appendConfig?: GuardAppendConfig;
|
|
3301
|
-
facePlugin?: FacePlugin;
|
|
3302
|
-
authClient?: AuthenticationClient;
|
|
3303
|
-
}
|
|
3304
|
-
export interface GuardAppendConfig {
|
|
3305
|
-
internalRequest?: boolean;
|
|
3306
|
-
singleComponent?: boolean;
|
|
3307
|
-
unAuthFlow?: boolean;
|
|
3308
|
-
publicConfig?: ApplicationConfig;
|
|
3309
|
-
pageConfig?: GuardPageConfig;
|
|
3310
|
-
}
|
|
3311
|
-
export interface IG2FCViewProps extends IG2FCProps {
|
|
3312
|
-
config: IG2Config;
|
|
3313
|
-
}
|
|
3314
|
-
export interface IG2Config {
|
|
3315
|
-
title?: string;
|
|
3316
|
-
logo?: string;
|
|
3317
|
-
lang: string;
|
|
3318
|
-
langRange: string[];
|
|
3319
|
-
host: string;
|
|
3320
|
-
isHost?: boolean;
|
|
3321
|
-
mode: GuardMode;
|
|
3322
|
-
clickCloseable: boolean;
|
|
3323
|
-
escCloseable: boolean;
|
|
3324
|
-
userpool?: string;
|
|
3325
|
-
contentCss?: string;
|
|
3326
|
-
target?: HTMLElement | string;
|
|
3327
|
-
__internalRequest__?: boolean;
|
|
3328
|
-
__singleComponent__?: boolean;
|
|
3329
|
-
__unAuthFlow__?: boolean;
|
|
3330
|
-
}
|
|
3331
|
-
export interface IG2Events {
|
|
3332
|
-
onLoad?: (authClient: AuthenticationClient) => void;
|
|
3333
|
-
onLoadError?: (error: CommonMessage) => void;
|
|
3334
|
-
onClose?: () => void;
|
|
3335
|
-
onLangChange?: (lang: Lang) => void;
|
|
3336
|
-
__changeModule?: (moduleName: GuardModuleType, initData?: any) => void;
|
|
3337
|
-
}
|
|
3338
|
-
export const getDefaultG2Config: () => IG2Config;
|
|
3339
|
-
export const LanguageMap: any;
|
|
3340
|
-
export enum InputMethod {
|
|
3341
|
-
EmailCode = "email-code",
|
|
3342
|
-
PhoneCode = "phone-code"
|
|
3343
|
-
}
|
|
3344
|
-
export enum GuardPageSene {
|
|
3345
|
-
Global = "global"
|
|
3346
|
-
}
|
|
3347
|
-
export interface GuardPageConfig {
|
|
3348
|
-
[GuardPageSene.Global]: {
|
|
3349
|
-
showChangeLanguage: boolean;
|
|
3350
|
-
};
|
|
3351
|
-
}
|
|
3352
|
-
export enum EmailScene {
|
|
3353
|
-
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
3354
|
-
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
3355
|
-
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
3356
|
-
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
3357
|
-
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
3358
|
-
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
3359
|
-
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
3360
|
-
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
3361
|
-
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
3362
|
-
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
3363
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
3364
|
-
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
3365
|
-
}
|
|
3366
|
-
|
|
3367
|
-
}
|
|
3368
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
3369
|
-
import React from 'react';
|
|
3370
|
-
import { PasswordFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
|
|
3371
|
-
export interface ExPasswordFormItemProps extends PasswordFormItemProps {
|
|
3372
|
-
fieldRequiredRuleMessage?: string;
|
|
3373
|
-
}
|
|
3374
|
-
export const PasswordFormItem: React.FC<ExPasswordFormItemProps>;
|
|
3375
|
-
|
|
3376
|
-
}
|
|
3377
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
|
|
3378
|
-
import React from 'react';
|
|
3379
|
-
import { ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
|
|
3380
|
-
export const EmailFormItem: React.FC<ValidatorFormItemProps>;
|
|
3381
|
-
export const PhoneFormItem: React.FC<ValidatorFormItemProps>;
|
|
3382
|
-
export const UserNameFormItem: React.FC<ValidatorFormItemProps>;
|
|
3383
|
-
|
|
3384
|
-
}
|
|
3385
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
3386
|
-
import { FormInstance, FormItemProps } from 'antd/lib/form';
|
|
3387
|
-
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';
|
|
3390
|
-
export interface ValidatorFormItemProps extends FormItemProps {
|
|
3391
|
-
form?: FormInstance;
|
|
3392
|
-
checkRepeat?: boolean;
|
|
3393
|
-
checkExist?: boolean;
|
|
3394
|
-
areaCode?: string;
|
|
3395
|
-
/**
|
|
3396
|
-
* 控制内部FormItem组件关于pattern的校验规则
|
|
3397
|
-
*/
|
|
3398
|
-
isCheckPattern?: boolean;
|
|
3399
|
-
}
|
|
3400
|
-
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
3401
|
-
method: 'email' | 'phone' | 'username';
|
|
3402
|
-
}
|
|
3403
|
-
export interface PasswordFormItemProps extends FormItemProps {
|
|
3404
|
-
}
|
|
3405
|
-
export interface ICheckProps {
|
|
3406
|
-
check: (values: any) => void;
|
|
3407
|
-
}
|
|
3408
|
-
type InternalFormItemType = typeof FormItem;
|
|
3409
|
-
interface FormItemInterface extends InternalFormItemType {
|
|
3410
|
-
Password: typeof PasswordFormItem;
|
|
3411
|
-
Email: typeof EmailFormItem;
|
|
3412
|
-
Phone: typeof PhoneFormItem;
|
|
3413
|
-
UserName: typeof UserNameFormItem;
|
|
3414
|
-
}
|
|
3415
|
-
const CustomFormItem: FormItemInterface;
|
|
3416
|
-
export default CustomFormItem;
|
|
3417
|
-
|
|
3418
|
-
}
|
|
3419
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/useCheckRepeat' {
|
|
3420
|
-
export const useCheckRepeat: (checkFn: (value: any, resolve: (value: unknown) => void, reject: (reason?: any) => void) => void) => (_: any, value: any) => Promise<unknown>;
|
|
3421
|
-
|
|
3422
|
-
}
|
|
3423
|
-
declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
|
|
3424
|
-
import React, { FC } from 'react';
|
|
3425
|
-
import './style.less';
|
|
3426
|
-
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3427
|
-
verifyCode: string[];
|
|
3428
|
-
setVerifyCode: (code: string[]) => void;
|
|
3429
|
-
length?: number;
|
|
3430
|
-
onEnter?: Function;
|
|
3431
|
-
}
|
|
3432
|
-
export const VerifyCodeInput: FC<VerifyCodeInputProps>;
|
|
3433
|
-
export {};
|
|
3434
|
-
|
|
3435
|
-
}
|
|
3436
|
-
declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
|
|
3437
|
-
export enum ErrorCode {
|
|
3438
|
-
OTP_MFA_CODE = 1635,
|
|
3439
|
-
APP_MFA_CODE = 1636,
|
|
3440
|
-
INPUT_CAPTCHACODE = 2000,
|
|
3441
|
-
USER_EXISTENCE = 2026,
|
|
3442
|
-
LOGIN_INVALID = 2021,
|
|
3443
|
-
PASSWORD_ERROR = 2333,
|
|
3444
|
-
USER_NOT_EXIST = 2004,
|
|
3445
|
-
MULTIPLE_ERROR_LOCK = 2057,
|
|
3446
|
-
ACCOUNT_LOCK = 2005
|
|
3447
|
-
}
|
|
3448
|
-
|
|
3449
|
-
}
|
|
3450
|
-
declare module '@authing/react-ui-components/components/_utils/appendConfig' {
|
|
3451
|
-
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
3452
|
-
export const getAppendConfig: () => GuardAppendConfig;
|
|
3453
|
-
export const useAppendConfig: () => GuardAppendConfig;
|
|
3454
|
-
export const initAppendConfig: (appendConfig?: GuardAppendConfig) => void;
|
|
3455
|
-
|
|
3456
|
-
}
|
|
3457
|
-
declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
3458
|
-
export const copyToClipboard: (str: string) => void;
|
|
3459
|
-
|
|
3460
|
-
}
|
|
3461
|
-
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
3462
|
-
/// <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';
|
|
3468
|
-
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
3469
|
-
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
3470
|
-
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) => {
|
|
3472
|
-
host: string;
|
|
3473
|
-
isSSO?: boolean | undefined;
|
|
3474
|
-
defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
|
|
3475
|
-
defaultInitData?: any;
|
|
3476
|
-
showLoading?: boolean | undefined;
|
|
3477
|
-
loadingComponent?: import("react").ReactNode;
|
|
3478
|
-
openEventsMapping?: boolean | undefined;
|
|
3479
|
-
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
3480
|
-
disableRegister?: boolean | undefined;
|
|
3481
|
-
registerMethods?: RegisterMethods[] | undefined;
|
|
3482
|
-
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
3483
|
-
publicKey?: string | undefined;
|
|
3484
|
-
agreementEnabled?: boolean | undefined;
|
|
3485
|
-
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
3486
|
-
registerContext?: any;
|
|
3487
|
-
title?: string | undefined;
|
|
3488
|
-
logo?: string | undefined;
|
|
3489
|
-
lang: string;
|
|
3490
|
-
langRange: string[];
|
|
3491
|
-
isHost?: boolean | undefined;
|
|
3492
|
-
mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
|
|
3493
|
-
clickCloseable: boolean;
|
|
3494
|
-
escCloseable: boolean;
|
|
3495
|
-
userpool?: string | undefined;
|
|
3496
|
-
contentCss?: string | undefined;
|
|
3497
|
-
target?: string | HTMLElement | undefined;
|
|
3498
|
-
__internalRequest__?: boolean | undefined;
|
|
3499
|
-
__singleComponent__?: boolean | undefined;
|
|
3500
|
-
__unAuthFlow__?: boolean | undefined;
|
|
3501
|
-
autoRegister?: boolean | undefined;
|
|
3502
|
-
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;
|
|
3506
|
-
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
3507
|
-
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
3508
|
-
enterpriseConnections?: string[] | undefined;
|
|
3509
|
-
qrCodeScanOptions?: {
|
|
3510
|
-
extIdpConnId?: string | undefined;
|
|
3511
|
-
autoExchangeUserInfo?: boolean | undefined;
|
|
3512
|
-
size?: {
|
|
3513
|
-
height: number;
|
|
3514
|
-
width: number;
|
|
3515
|
-
} | undefined;
|
|
3516
|
-
containerSize?: {
|
|
3517
|
-
height: number;
|
|
3518
|
-
width: number;
|
|
3519
|
-
} | undefined;
|
|
3520
|
-
interval?: number | undefined;
|
|
3521
|
-
onStart?: ((timer: any) => any) | undefined;
|
|
3522
|
-
onResult?: ((data: import("authing-js-sdk").QRCodeStatus) => any) | undefined;
|
|
3523
|
-
onScanned?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo) => any) | undefined;
|
|
3524
|
-
onSuccess?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
3525
|
-
onCancel?: (() => any) | undefined;
|
|
3526
|
-
onError?: ((message: string) => any) | undefined;
|
|
3527
|
-
onExpired?: (() => any) | undefined;
|
|
3528
|
-
onCodeShow?: ((random: string, url: string) => any) | undefined;
|
|
3529
|
-
onCodeLoaded?: ((random: string, url: string) => any) | undefined;
|
|
3530
|
-
onCodeLoadFailed?: ((message: string) => any) | undefined;
|
|
3531
|
-
onCodeDestroyed?: ((random: string) => any) | undefined;
|
|
3532
|
-
onRetry?: (() => any) | undefined;
|
|
3533
|
-
onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
|
|
3534
|
-
tips?: {
|
|
3535
|
-
title?: string | undefined;
|
|
3536
|
-
scanned?: string | undefined;
|
|
3537
|
-
succeed?: string | undefined;
|
|
3538
|
-
canceled?: string | undefined;
|
|
3539
|
-
expired?: string | undefined;
|
|
3540
|
-
retry?: string | undefined;
|
|
3541
|
-
failed?: string | undefined;
|
|
3542
|
-
middleTitle?: string | undefined;
|
|
3543
|
-
referText?: string | undefined;
|
|
3544
|
-
} | undefined;
|
|
3545
|
-
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
3546
|
-
customData?: {
|
|
3547
|
-
[x: string]: any;
|
|
3548
|
-
} | undefined;
|
|
3549
|
-
context?: {
|
|
3550
|
-
[x: string]: any;
|
|
3551
|
-
} | undefined;
|
|
3552
|
-
withCustomData?: boolean | undefined;
|
|
3553
|
-
} | undefined;
|
|
3554
|
-
} | undefined;
|
|
3555
|
-
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
3556
|
-
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
3557
|
-
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
3558
|
-
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
3559
|
-
|
|
3560
|
-
}
|
|
3561
|
-
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
3562
|
-
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';
|
|
3568
|
-
export interface IGuardContext {
|
|
3569
|
-
finallyConfig: GuardLocalConfig;
|
|
3570
|
-
defaultMergedConfig: GuardLocalConfig;
|
|
3571
|
-
publicConfig: ApplicationConfig;
|
|
3572
|
-
httpClient: GuardHttp;
|
|
3573
|
-
appId: string;
|
|
3574
|
-
tenantId?: string;
|
|
3575
|
-
initData: any;
|
|
3576
|
-
currentModule: ModuleState;
|
|
3577
|
-
events: Partial<GuardEvents>;
|
|
3578
|
-
changeModule?: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
|
|
3579
|
-
backModule?: () => void;
|
|
3580
|
-
isAuthFlow: boolean;
|
|
3581
|
-
contextLoaded: boolean;
|
|
3582
|
-
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
|
-
}
|
|
3607
|
-
export const createGuardXContext: () => {
|
|
3608
|
-
Provider: React.FC<{
|
|
3609
|
-
value: Partial<IGuardContext>;
|
|
3610
|
-
}>;
|
|
3611
|
-
Consumer: React.Consumer<IGuardContext>;
|
|
3612
|
-
};
|
|
3613
|
-
export const useGuardXContext: () => {
|
|
3614
|
-
Provider: React.FC<{
|
|
3615
|
-
value: Partial<IGuardContext>;
|
|
3616
|
-
}>;
|
|
3617
|
-
Consumer: React.Consumer<IGuardContext>;
|
|
3618
|
-
};
|
|
3619
|
-
export interface IGuardContextProvider {
|
|
3620
|
-
spin: boolean;
|
|
3621
|
-
spinChange: (spin: boolean) => void;
|
|
3622
|
-
}
|
|
3623
|
-
export const useGuardButtonContext: () => {
|
|
3624
|
-
GuardButtonProvider: React.FC<{}>;
|
|
3625
|
-
};
|
|
3626
|
-
export const useGuardButtonState: () => IGuardContextProvider;
|
|
3627
|
-
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
3628
|
-
export const useGuardHttpClient: () => GuardHttp;
|
|
3629
|
-
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
3630
|
-
export const useGuardAppId: () => string;
|
|
3631
|
-
export const useGuardTenantId: () => string | undefined;
|
|
3632
|
-
export function useGuardInitData<T>(): T;
|
|
3633
|
-
export const useGuardCurrentModule: () => ModuleState;
|
|
3634
|
-
export const useGuardEvents: () => Partial<GuardEvents>;
|
|
3635
|
-
export const useGuardModule: () => {
|
|
3636
|
-
changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
|
|
3637
|
-
backModule: (() => void) | undefined;
|
|
3638
|
-
};
|
|
3639
|
-
export const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
3640
|
-
export const useGuardContextLoaded: () => boolean;
|
|
3641
|
-
export const useGuardIsAuthFlow: () => boolean;
|
|
3642
|
-
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
|
-
|
|
3702
|
-
}
|
|
3703
|
-
declare module '@authing/react-ui-components/components/_utils/corsVerification' {
|
|
3704
|
-
export const corsVerification: (allowedOrigins?: string[], corsWhitelist?: string[]) => void;
|
|
3705
|
-
|
|
3706
|
-
}
|
|
3707
|
-
declare module '@authing/react-ui-components/components/_utils/countryList' {
|
|
3708
|
-
export interface IsoType {
|
|
3709
|
-
iso: string;
|
|
3710
|
-
regions: string;
|
|
3711
|
-
regions_en: string;
|
|
3712
|
-
phoneCountryCode: string;
|
|
3713
|
-
}
|
|
3714
|
-
export const isoInfo: IsoType[];
|
|
3715
|
-
|
|
3716
|
-
}
|
|
3717
|
-
declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
3718
|
-
enum FaceErrorName {
|
|
3719
|
-
NotAllowedError = "NotAllowedError",
|
|
3720
|
-
AbortError = "AbortError",
|
|
3721
|
-
NotReadableError = "NotReadableError",
|
|
3722
|
-
OverconstrainedError = "OverconstrainedError",
|
|
3723
|
-
SecurityError = "SecurityError"
|
|
3724
|
-
}
|
|
3725
|
-
export interface FaceErrorMessage extends DOMException {
|
|
3726
|
-
name: FaceErrorName;
|
|
3727
|
-
}
|
|
3728
|
-
export const faceErrorMessage: (error: FaceErrorMessage) => string;
|
|
3729
|
-
export {};
|
|
3730
|
-
|
|
3731
|
-
}
|
|
3732
|
-
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3733
|
-
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3734
|
-
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3735
|
-
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3736
|
-
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3737
|
-
|
|
3738
|
-
}
|
|
3739
|
-
declare module '@authing/react-ui-components/components/_utils/facePlugin/interface' {
|
|
3740
|
-
export interface FacePlugin {
|
|
3741
|
-
detectSingleFace: any;
|
|
3742
|
-
TinyFaceDetectorOptions: any;
|
|
3743
|
-
nets: any;
|
|
3744
|
-
}
|
|
3745
|
-
|
|
3746
|
-
}
|
|
3747
|
-
declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
|
|
3748
|
-
export const getFlowHandle: () => string | undefined;
|
|
3749
|
-
export const useFlowHandle: () => string | undefined;
|
|
3750
|
-
export const updateFlowHandle: (flowHandle: string) => void;
|
|
3751
|
-
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
3752
|
-
|
|
3753
|
-
}
|
|
3754
|
-
declare module '@authing/react-ui-components/components/_utils/guardDocument' {
|
|
3755
|
-
export const getGuardDocument: () => Document;
|
|
3756
|
-
export const useAppendConfig: () => Document;
|
|
3757
|
-
export const initGuardDocument: (document: Document) => void;
|
|
3758
|
-
|
|
3759
|
-
}
|
|
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';
|
|
3763
|
-
export class GuardHttp {
|
|
3764
|
-
private requestClient;
|
|
3765
|
-
private headers;
|
|
3766
|
-
private responseInterceptorMap;
|
|
3767
|
-
constructor(baseUrl?: string);
|
|
3768
|
-
private getRequestClient;
|
|
3769
|
-
setUserpoolId(userpoolId: string): this;
|
|
3770
|
-
setAppId(appId: string): this;
|
|
3771
|
-
setTenantId(tenantId: string): this;
|
|
3772
|
-
setBaseUrl(baseUrl: string): this;
|
|
3773
|
-
getHeaders: () => Record<string, string>;
|
|
3774
|
-
get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
|
|
3775
|
-
post: <T = any>(path: string, data: any, config?: {
|
|
3776
|
-
headers: any;
|
|
3777
|
-
} | undefined) => Promise<AuthingGuardResponse<T>>;
|
|
3778
|
-
postForm: <T = any>(path: string, formData: any, config?: {
|
|
3779
|
-
headers: any;
|
|
3780
|
-
} | undefined) => Promise<AuthingGuardResponse<T>>;
|
|
3781
|
-
authFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
|
|
3782
|
-
initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => this | undefined;
|
|
3783
|
-
responseIntercept: (res: AuthingResponse) => AuthingGuardResponse;
|
|
3784
|
-
}
|
|
3785
|
-
export const initGuardHttp: (baseUrl: string) => GuardHttp;
|
|
3786
|
-
export const getGuardHttp: () => GuardHttp;
|
|
3787
|
-
export const useGuardHttp: () => GuardHttp;
|
|
3788
|
-
|
|
3789
|
-
}
|
|
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';
|
|
3794
|
-
export interface PhoneValidResult {
|
|
3795
|
-
isValid: boolean;
|
|
3796
|
-
phoneNumber: string;
|
|
3797
|
-
countryIso2: string;
|
|
3798
|
-
countryIso3: string;
|
|
3799
|
-
countryCode: string;
|
|
3800
|
-
}
|
|
3801
|
-
export const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
|
|
3802
|
-
export const useAppId: (appId?: string | undefined) => string;
|
|
3803
|
-
export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
|
|
3804
|
-
export const useMediaSize: () => {
|
|
3805
|
-
isPhoneMedia: boolean;
|
|
3806
|
-
};
|
|
3807
|
-
export const useShaking: () => {
|
|
3808
|
-
MountShaking: () => void;
|
|
3809
|
-
UnMountShaking: () => void;
|
|
3810
|
-
};
|
|
3811
|
-
/**
|
|
3812
|
-
* 解析手机号
|
|
3813
|
-
* @param fieldValue 字段值
|
|
3814
|
-
* @param areaCode 区号
|
|
3815
|
-
* @returns
|
|
3816
|
-
*/
|
|
3817
|
-
export const parsePhone: (isInternationSms: boolean, fieldValue: string, areaCode?: string) => {
|
|
3818
|
-
countryCode: string | undefined;
|
|
3819
|
-
phoneNumber: string;
|
|
3820
|
-
};
|
|
3821
|
-
export enum SocialConnectionEvent {
|
|
3822
|
-
Message = "message",
|
|
3823
|
-
Auth = "auth"
|
|
3824
|
-
}
|
|
3825
|
-
/**
|
|
3826
|
-
*
|
|
3827
|
-
* @param config
|
|
3828
|
-
* @returns[socialConnectionObjs 社交身份源连接对象 enterpriseConnectionObjs 企业身份源连接对象 isNoMethod 是否没有身份源 ]
|
|
3829
|
-
*/
|
|
3830
|
-
export const useMethod: (params: {
|
|
3831
|
-
config: GuardLocalConfig;
|
|
3832
|
-
publicConfig: ApplicationConfig;
|
|
3833
|
-
}) => any;
|
|
3834
|
-
|
|
3835
|
-
}
|
|
3836
|
-
declare module '@authing/react-ui-components/components/_utils/http' {
|
|
3837
|
-
import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3838
|
-
import { AxiosRequestConfig } from 'axios';
|
|
3839
|
-
export const requestClient: {
|
|
3840
|
-
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
3841
|
-
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig<any> | undefined): Promise<AuthingResponse<T>>;
|
|
3842
|
-
post<T_1>(path: string, data: any, config?: {
|
|
3843
|
-
headers: any;
|
|
3844
|
-
} | undefined): Promise<AuthingResponse<T_1>>;
|
|
3845
|
-
postForm<T_2>(path: string, formData: any, config?: {
|
|
3846
|
-
headers: any;
|
|
3847
|
-
} | undefined): Promise<AuthingResponse<T_2>>;
|
|
3848
|
-
baseUrl: string;
|
|
3849
|
-
setBaseUrl(base: string): void;
|
|
3850
|
-
langHeader: string;
|
|
3851
|
-
tenantHeader: string;
|
|
3852
|
-
tenantId: string;
|
|
3853
|
-
setLangHeader(key: string | undefined): void;
|
|
3854
|
-
setTenantHeader(key: string | undefined): void;
|
|
3855
|
-
setTenantId(tenantId: string): void;
|
|
3856
|
-
};
|
|
3857
|
-
export interface AuthingResponse<T = any> {
|
|
3858
|
-
code?: number;
|
|
3859
|
-
statusCode?: number;
|
|
3860
|
-
apiCode?: number;
|
|
3861
|
-
data?: T;
|
|
3862
|
-
messages?: string;
|
|
3863
|
-
message?: string;
|
|
3864
|
-
flowHandle?: string;
|
|
3865
|
-
}
|
|
3866
|
-
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
3867
|
-
onGuardHandling?: () => CodeAction;
|
|
3868
|
-
isFlowEnd?: boolean;
|
|
3869
|
-
}
|
|
3870
|
-
|
|
3871
|
-
}
|
|
3872
|
-
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3873
|
-
import { Rule } from 'antd/lib/form';
|
|
3874
|
-
import qs from 'qs';
|
|
3875
|
-
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';
|
|
3881
|
-
export const VALIDATE_PATTERN: {
|
|
3882
|
-
readonly email: RegExp;
|
|
3883
|
-
readonly phone: RegExp;
|
|
3884
|
-
readonly ip: RegExp;
|
|
3885
|
-
readonly host: RegExp;
|
|
3886
|
-
readonly username: RegExp;
|
|
3887
|
-
};
|
|
3888
|
-
export const validate: (type: keyof typeof VALIDATE_PATTERN, val: string) => boolean;
|
|
3889
|
-
export const getRequiredRules: (msg: string) => Rule[];
|
|
3890
|
-
export const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3891
|
-
export function getDeviceName(): string | null | undefined;
|
|
3892
|
-
export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
|
|
3893
|
-
export const insertStyles: (styles: string | any, recordKey?: "userConfig" | "appConfig" | undefined) => void;
|
|
3894
|
-
export const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
|
|
3895
|
-
export const useTitle: (title: string, prefix?: string | undefined) => void;
|
|
3896
|
-
export const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
|
|
3897
|
-
/**
|
|
3898
|
-
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
3899
|
-
* Simple object check.
|
|
3900
|
-
* @param item
|
|
3901
|
-
* @returns {boolean}
|
|
3902
|
-
*/
|
|
3903
|
-
export function isObject(item: any): any;
|
|
3904
|
-
/**
|
|
3905
|
-
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
3906
|
-
* Deep merge two objects.
|
|
3907
|
-
* @param target
|
|
3908
|
-
* @param ...sources
|
|
3909
|
-
*/
|
|
3910
|
-
export function deepMerge<T extends any = any>(target: T, ...sources: any[]): T;
|
|
3911
|
-
/**
|
|
3912
|
-
* 在托管页下上传query中指定的用户自定义字段进行补全
|
|
3913
|
-
* @param params 指定上传的用户自定义字段
|
|
3914
|
-
*/
|
|
3915
|
-
export const getUserRegisterParams: (params?: string[] | undefined) => {
|
|
3916
|
-
key: string;
|
|
3917
|
-
value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
|
|
3918
|
-
}[];
|
|
3919
|
-
export const isWeChatBrowser: () => boolean | null;
|
|
3920
|
-
export const isLarkBrowser: () => boolean | null;
|
|
3921
|
-
export const isQtWebEngine: () => boolean | null;
|
|
3922
|
-
export const isXiaomiBrowser: () => boolean | null;
|
|
3923
|
-
export const isDingtalkBrowser: () => boolean | null;
|
|
3924
|
-
export const isQQBrowser: () => boolean | null;
|
|
3925
|
-
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3926
|
-
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3927
|
-
export const isEdgeBrowser: () => boolean;
|
|
3928
|
-
export const isWeiboBrowser: () => boolean | null;
|
|
3929
|
-
export const isAlipayBrowser: () => boolean | null;
|
|
3930
|
-
export const isBaiduBrowser: () => boolean | null;
|
|
3931
|
-
export const isWeComeBrowser: () => boolean;
|
|
3932
|
-
export const isMobile: () => RegExpMatchArray | null;
|
|
3933
|
-
export const isSpecialBrowser: () => boolean;
|
|
3934
|
-
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3935
|
-
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
3936
|
-
export enum PasswordStrength {
|
|
3937
|
-
NoCheck = 0,
|
|
3938
|
-
Low = 1,
|
|
3939
|
-
Middle = 2,
|
|
3940
|
-
High = 3,
|
|
3941
|
-
AUTO = 4
|
|
3942
|
-
}
|
|
3943
|
-
export const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
|
|
3944
|
-
placeholder: () => string;
|
|
3945
|
-
validateMessage: () => string;
|
|
3946
|
-
}>;
|
|
3947
|
-
export const getSymbolTypeLength: (pwd: string) => number;
|
|
3948
|
-
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3949
|
-
export const sleep: (delay: number) => Promise<unknown>;
|
|
3950
|
-
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3951
|
-
export const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3952
|
-
export const mailDesensitization: (mail: string) => string;
|
|
3953
|
-
export const phoneDesensitization: (phone: string) => string;
|
|
3954
|
-
export const getHundreds: (num: number) => number;
|
|
3955
|
-
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3956
|
-
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3957
|
-
export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
3958
|
-
specifyDefaultLoginMethod: LoginMethods;
|
|
3959
|
-
lockMethod: string;
|
|
3960
|
-
} | {
|
|
3961
|
-
specifyDefaultLoginMethod: LoginMethods;
|
|
3962
|
-
lockMethod?: undefined;
|
|
3963
|
-
} | undefined;
|
|
3964
|
-
export const getPasswordIdentify: (identity: string) => string;
|
|
3965
|
-
|
|
3966
|
-
}
|
|
3967
|
-
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
3968
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
3969
|
-
export interface UseInitAppidProps {
|
|
3970
|
-
propsAppid?: string;
|
|
3971
|
-
propsAuthClient?: AuthenticationClient;
|
|
3972
|
-
setError?: any;
|
|
3973
|
-
}
|
|
3974
|
-
export const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
|
|
3975
|
-
|
|
3976
|
-
}
|
|
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 };
|
|
3983
|
-
|
|
3984
|
-
}
|
|
3985
|
-
declare module '@authing/react-ui-components/components/_utils/locales/index' {
|
|
3986
|
-
import i18n from 'i18next';
|
|
3987
|
-
import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3988
|
-
export const changeLang: (lang: Lang) => void;
|
|
3989
|
-
const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
|
|
3990
|
-
export { i18n, initI18n };
|
|
3991
|
-
|
|
3992
|
-
}
|
|
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 };
|
|
3999
|
-
|
|
4000
|
-
}
|
|
4001
|
-
declare module '@authing/react-ui-components/components/_utils/logger/index' {
|
|
4002
|
-
import { LoggerType } from '@authing/react-ui-components/components/_utils/logger/interface';
|
|
4003
|
-
export class Logger {
|
|
4004
|
-
static printType: LoggerType[];
|
|
4005
|
-
/**
|
|
4006
|
-
* 打印日志
|
|
4007
|
-
* @param message 日志信息
|
|
4008
|
-
* @param type 日志类型
|
|
4009
|
-
*/
|
|
4010
|
-
static log(message: string, type?: LoggerType): void;
|
|
4011
|
-
static info(message: string): void;
|
|
4012
|
-
static warn(message: string): void;
|
|
4013
|
-
static error(message: string): void;
|
|
4014
|
-
}
|
|
4015
|
-
export const getLogger: () => Logger;
|
|
4016
|
-
export const useLogger: () => Logger;
|
|
4017
|
-
|
|
4018
|
-
}
|
|
4019
|
-
declare module '@authing/react-ui-components/components/_utils/logger/interface' {
|
|
4020
|
-
export enum LoggerType {
|
|
4021
|
-
INFO = "INFO",
|
|
4022
|
-
WARN = "WARN",
|
|
4023
|
-
ERROR = "ERROR"
|
|
4024
|
-
}
|
|
4025
|
-
|
|
4026
|
-
}
|
|
4027
|
-
declare module '@authing/react-ui-components/components/_utils/popupCenter' {
|
|
4028
|
-
/**
|
|
4029
|
-
* 在屏幕中心弹出新窗口加载 url
|
|
4030
|
-
* @param url
|
|
4031
|
-
* @param param1
|
|
4032
|
-
*/
|
|
4033
|
-
export const popupCenter: (url: string, { w, h }?: {
|
|
4034
|
-
w: number;
|
|
4035
|
-
h: number;
|
|
4036
|
-
}) => void;
|
|
4037
|
-
|
|
4038
|
-
}
|
|
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';
|
|
4042
|
-
export const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
|
|
4043
|
-
|
|
4044
|
-
}
|
|
4045
|
-
declare module '@authing/react-ui-components/components/_utils/responseManagement/interface' {
|
|
4046
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
4047
|
-
export enum CodeAction {
|
|
4048
|
-
CHANGE_MODULE = "changeModule",
|
|
4049
|
-
RENDER_MESSAGE = "renderMessage",
|
|
4050
|
-
FLOW_END = "flowEnd"
|
|
4051
|
-
}
|
|
4052
|
-
export enum ApiCode {
|
|
4053
|
-
IDENTITY_BINDING_ASK = 1641,
|
|
4054
|
-
IDENTITY_BINDING = 1640,
|
|
4055
|
-
APP_MFA = 1636,
|
|
4056
|
-
MFA = 1635,
|
|
4057
|
-
ABORT_FLOW = 1699,
|
|
4058
|
-
COMPLETE_INFO = 1642,
|
|
4059
|
-
UNLOCK = 1643,
|
|
4060
|
-
FLOW_END = 1600,
|
|
4061
|
-
FIRST_LOGIN_PASSWORD = 1639,
|
|
4062
|
-
FORCED_PASSWORD_RESET = 2058,
|
|
4063
|
-
UNSAFE_PASSWORD_TIP = 2061,
|
|
4064
|
-
UNSAFE_PASSWORD_RESET = 2071
|
|
4065
|
-
}
|
|
4066
|
-
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
4067
|
-
|
|
4068
|
-
}
|
|
4069
|
-
declare module '@authing/react-ui-components/components/_utils/useErrorText' {
|
|
4070
|
-
import React from 'react';
|
|
4071
|
-
export const usePasswordErrorText: () => {
|
|
4072
|
-
setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4073
|
-
getPassWordUnsafeText: () => JSX.Element;
|
|
4074
|
-
};
|
|
4075
|
-
|
|
4076
|
-
}
|
|
4077
|
-
declare module '@authing/react-ui-components/components/context/base' {
|
|
4078
|
-
import React from 'react';
|
|
4079
|
-
export function createBaseContext<C>(): readonly [React.Context<C | undefined>, () => C];
|
|
4080
|
-
export interface IBaseAction<ActionType = string> {
|
|
4081
|
-
type: ActionType & string;
|
|
4082
|
-
payload?: any;
|
|
4083
|
-
[key: string]: string;
|
|
4084
|
-
}
|
|
4085
|
-
export interface IBaseContext<S> {
|
|
4086
|
-
state: S;
|
|
4087
|
-
[k: string]: any;
|
|
4088
|
-
}
|
|
4089
|
-
export type BaseContextComponent<Props> = React.PropsWithChildren<Props>;
|
|
4090
|
-
|
|
4091
|
-
}
|
|
4092
|
-
declare module '@authing/react-ui-components/components/context/global/context' {
|
|
4093
|
-
/// <reference types="react" />
|
|
4094
|
-
import { IBaseContext, BaseContextComponent } from '@authing/react-ui-components/components/context/base';
|
|
4095
|
-
import { IState } from '@authing/react-ui-components/components/context/global/reducer';
|
|
4096
|
-
export interface IGuardContext extends IBaseContext<IState> {
|
|
4097
|
-
dispatch: Function;
|
|
4098
|
-
getValue: (key: keyof IState) => any;
|
|
4099
|
-
setValue: (key: keyof IState, value: any) => void;
|
|
4100
|
-
}
|
|
4101
|
-
export function useGuardContext(): IGuardContext;
|
|
4102
|
-
export function GuardContext({ children, value, }: BaseContextComponent<Record<string, any>>): JSX.Element;
|
|
4103
|
-
|
|
4104
|
-
}
|
|
4105
|
-
declare module '@authing/react-ui-components/components/context/global/reducer' {
|
|
4106
|
-
import { GuardConfig, ActiveTabs, GuardScenes, UserConfig, GuardEventsHandler, LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
4107
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
4108
|
-
import { IBaseAction } from '@authing/react-ui-components/components/context/base';
|
|
4109
|
-
import { ApplicationMfaType } from '@authing/react-ui-components/components/AuthingGuard/api/appConfig';
|
|
4110
|
-
export type IState = {
|
|
4111
|
-
config: GuardConfig;
|
|
4112
|
-
userConfig: UserConfig;
|
|
4113
|
-
authClient: AuthenticationClient;
|
|
4114
|
-
activeTabs: ActiveTabs;
|
|
4115
|
-
guardScenes: GuardScenes;
|
|
4116
|
-
guardTitle: string;
|
|
4117
|
-
mfaData: {
|
|
4118
|
-
mfaToken: string;
|
|
4119
|
-
phone?: string;
|
|
4120
|
-
email?: string;
|
|
4121
|
-
applicationMfa?: {
|
|
4122
|
-
status: 0 | 1;
|
|
4123
|
-
mfaPolicy: ApplicationMfaType;
|
|
4124
|
-
sort: number;
|
|
4125
|
-
}[];
|
|
4126
|
-
};
|
|
4127
|
-
userPoolId: string;
|
|
4128
|
-
appId: string;
|
|
4129
|
-
guardEvents: GuardEventsHandler;
|
|
4130
|
-
localesConfig: LocalesConfig;
|
|
4131
|
-
lang?: Lang;
|
|
4132
|
-
realHost: string;
|
|
4133
|
-
};
|
|
4134
|
-
export const reducer: (state: IState, { type, ...payloads }: IBaseAction) => any;
|
|
4135
|
-
|
|
4136
|
-
}
|
|
4137
|
-
declare module '@authing/react-ui-components/components/context/module/context' {
|
|
4138
|
-
import React, { FC } from 'react';
|
|
4139
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
4140
|
-
export interface IModuleContext {
|
|
4141
|
-
module: string;
|
|
4142
|
-
changeModule: React.Dispatch<GuardModuleType>;
|
|
4143
|
-
setInitData: React.Dispatch<any>;
|
|
4144
|
-
}
|
|
4145
|
-
export const useModule: () => IModuleContext;
|
|
4146
|
-
export const ModuleContext: FC<{
|
|
4147
|
-
value: IModuleContext;
|
|
4148
|
-
}>;
|
|
4149
|
-
|
|
4150
|
-
}
|
|
4151
|
-
declare module '@authing/react-ui-components/components/index' {
|
|
4152
|
-
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
4153
|
-
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
4154
|
-
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
4155
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
4156
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
4157
|
-
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
4158
|
-
export * from '@authing/react-ui-components/components/Guard/index';
|
|
4159
|
-
export * from '@authing/react-ui-components/components/Type/index';
|
|
4160
|
-
export * from '@authing/react-ui-components/components/version/index';
|
|
4161
|
-
|
|
4162
|
-
}
|
|
4163
|
-
declare module '@authing/react-ui-components/components/version/index' {
|
|
4164
|
-
import version from '@authing/react-ui-components/components/version/version';
|
|
4165
|
-
export default version;
|
|
4166
|
-
|
|
4167
|
-
}
|
|
4168
|
-
declare module '@authing/react-ui-components/components/version/version' {
|
|
4169
|
-
const _default: "3.1.38";
|
|
4170
|
-
export default _default;
|
|
4171
|
-
|
|
4172
|
-
}
|
|
4173
|
-
declare module '@authing/react-ui-components/config/antdReplacer' {
|
|
4174
|
-
export function antdScopeReplacerFn(node: any): void;
|
|
4175
|
-
|
|
4176
|
-
}
|
|
4177
|
-
declare module '@authing/react-ui-components/config/env' {
|
|
4178
|
-
export = getClientEnvironment;
|
|
4179
|
-
function getClientEnvironment(publicUrl: any): {
|
|
4180
|
-
raw: {
|
|
4181
|
-
NODE_ENV: "development" | "production" | "test";
|
|
4182
|
-
PUBLIC_URL: any;
|
|
4183
|
-
WDS_SOCKET_HOST: string | undefined;
|
|
4184
|
-
WDS_SOCKET_PATH: string | undefined;
|
|
4185
|
-
WDS_SOCKET_PORT: string | undefined;
|
|
4186
|
-
FAST_REFRESH: boolean;
|
|
4187
|
-
};
|
|
4188
|
-
stringified: {
|
|
4189
|
-
'process.env': {};
|
|
4190
|
-
};
|
|
4191
|
-
};
|
|
4192
|
-
|
|
4193
|
-
}
|
|
4194
|
-
declare module '@authing/react-ui-components/config/getHttpsConfig' {
|
|
4195
|
-
export = getHttpsConfig;
|
|
4196
|
-
function getHttpsConfig(): boolean | {
|
|
4197
|
-
cert: Buffer;
|
|
4198
|
-
key: Buffer;
|
|
4199
|
-
};
|
|
4200
|
-
|
|
4201
|
-
}
|
|
4202
|
-
declare module '@authing/react-ui-components/config/jest/cssTransform' {
|
|
4203
|
-
export function process(): string;
|
|
4204
|
-
export function process(): string;
|
|
4205
|
-
export function getCacheKey(): string;
|
|
4206
|
-
export function getCacheKey(): string;
|
|
4207
|
-
|
|
4208
|
-
}
|
|
4209
|
-
declare module '@authing/react-ui-components/config/jest/fileTransform' {
|
|
4210
|
-
export function process(src: any, filename: any): string;
|
|
4211
|
-
export function process(src: any, filename: any): string;
|
|
4212
|
-
|
|
4213
|
-
}
|
|
4214
|
-
declare module '@authing/react-ui-components/config/modules' {
|
|
4215
|
-
export const additionalModulePaths: string[] | "" | null;
|
|
4216
|
-
export const hasTsConfig: boolean;
|
|
4217
|
-
export const webpackAliases: {
|
|
4218
|
-
src?: undefined;
|
|
4219
|
-
} | {
|
|
4220
|
-
src: string;
|
|
4221
|
-
} | undefined;
|
|
4222
|
-
export const jestAliases: {
|
|
4223
|
-
'^src/(.*)$'?: undefined;
|
|
4224
|
-
} | {
|
|
4225
|
-
'^src/(.*)$': string;
|
|
4226
|
-
} | undefined;
|
|
4227
|
-
|
|
4228
|
-
}
|
|
4229
|
-
declare module '@authing/react-ui-components/config/paths' {
|
|
4230
|
-
export const publicUrlOrPath: any;
|
|
4231
|
-
export const moduleFileExtensions: string[];
|
|
4232
|
-
export const dotenv: string;
|
|
4233
|
-
export const appPath: string;
|
|
4234
|
-
export const appBuild: string;
|
|
4235
|
-
export const appPublic: string;
|
|
4236
|
-
export const appHtml: string;
|
|
4237
|
-
export const appIndexJs: any;
|
|
4238
|
-
export const appPackageJson: string;
|
|
4239
|
-
export const appSrc: string;
|
|
4240
|
-
export const appTsConfig: string;
|
|
4241
|
-
export const appJsConfig: string;
|
|
4242
|
-
export const yarnLockFile: string;
|
|
4243
|
-
export const testsSetup: any;
|
|
4244
|
-
export const proxySetup: string;
|
|
4245
|
-
export const appNodeModules: string;
|
|
4246
|
-
export const swSrc: any;
|
|
4247
|
-
export const componentsIndexJs: string;
|
|
4248
|
-
export const libBuild: string;
|
|
4249
|
-
|
|
4250
|
-
}
|
|
4251
|
-
declare module '@authing/react-ui-components/config/pnpTs' {
|
|
4252
|
-
export function resolveModuleName(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
|
|
4253
|
-
export function resolveTypeReferenceDirective(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
|
|
4254
|
-
|
|
4255
|
-
}
|
|
4256
|
-
declare module '@authing/react-ui-components/config/webpack.config' {
|
|
4257
|
-
function _exports(webpackEnv: any): {
|
|
4258
|
-
mode: string | false;
|
|
4259
|
-
bail: boolean;
|
|
4260
|
-
devtool: string | boolean;
|
|
4261
|
-
externals: string[] | undefined;
|
|
4262
|
-
entry: any;
|
|
4263
|
-
output: {
|
|
4264
|
-
library: string | undefined;
|
|
4265
|
-
libraryTarget: string | undefined;
|
|
4266
|
-
path: string | undefined;
|
|
4267
|
-
pathinfo: boolean;
|
|
4268
|
-
filename: (chunkData: any) => false | "index.min.js" | "static/js/[name].[contenthash:8].js" | "static/js/bundle.js";
|
|
4269
|
-
futureEmitAssets: boolean;
|
|
4270
|
-
chunkFilename: string | false | undefined;
|
|
4271
|
-
publicPath: any;
|
|
4272
|
-
devtoolModuleFilenameTemplate: false | ((info: any) => string) | undefined;
|
|
4273
|
-
jsonpFunction: string | undefined;
|
|
4274
|
-
globalObject: string;
|
|
4275
|
-
};
|
|
4276
|
-
optimization: {
|
|
4277
|
-
minimize: boolean;
|
|
4278
|
-
minimizer: any[];
|
|
4279
|
-
splitChunks: {
|
|
4280
|
-
cacheGroups: {
|
|
4281
|
-
default: boolean;
|
|
4282
|
-
};
|
|
4283
|
-
chunks?: undefined;
|
|
4284
|
-
name?: undefined;
|
|
4285
|
-
} | {
|
|
4286
|
-
chunks: string;
|
|
4287
|
-
name: boolean;
|
|
4288
|
-
cacheGroups?: undefined;
|
|
4289
|
-
};
|
|
4290
|
-
runtimeChunk: false | {
|
|
4291
|
-
name: (entrypoint: any) => string;
|
|
4292
|
-
};
|
|
4293
|
-
};
|
|
4294
|
-
resolve: {
|
|
4295
|
-
modules: string[];
|
|
4296
|
-
extensions: string[];
|
|
4297
|
-
alias: {
|
|
4298
|
-
src?: undefined;
|
|
4299
|
-
'react-dom$'?: string;
|
|
4300
|
-
'scheduler/tracing'?: string;
|
|
4301
|
-
'react-native': string;
|
|
4302
|
-
} | {
|
|
4303
|
-
src: string;
|
|
4304
|
-
'react-dom$'?: string;
|
|
4305
|
-
'scheduler/tracing'?: string;
|
|
4306
|
-
'react-native': string;
|
|
4307
|
-
};
|
|
4308
|
-
plugins: any[];
|
|
4309
|
-
};
|
|
4310
|
-
resolveLoader: {
|
|
4311
|
-
plugins: any[];
|
|
4312
|
-
};
|
|
4313
|
-
module: {
|
|
4314
|
-
strictExportPresence: boolean;
|
|
4315
|
-
rules: ({
|
|
4316
|
-
parser: {
|
|
4317
|
-
requireEnsure: boolean;
|
|
4318
|
-
};
|
|
4319
|
-
oneOf?: undefined;
|
|
4320
|
-
} | {
|
|
4321
|
-
oneOf: ({
|
|
4322
|
-
test: RegExp;
|
|
4323
|
-
loader: string;
|
|
4324
|
-
options?: undefined;
|
|
4325
|
-
include?: undefined;
|
|
4326
|
-
exclude?: undefined;
|
|
4327
|
-
use?: undefined;
|
|
4328
|
-
sideEffects?: undefined;
|
|
4329
|
-
} | {
|
|
4330
|
-
test: RegExp[];
|
|
4331
|
-
loader: string;
|
|
4332
|
-
options: {
|
|
4333
|
-
limit: number;
|
|
4334
|
-
mimetype: string;
|
|
4335
|
-
name: string;
|
|
4336
|
-
customize?: undefined;
|
|
4337
|
-
presets?: undefined;
|
|
4338
|
-
plugins?: undefined;
|
|
4339
|
-
cacheDirectory?: undefined;
|
|
4340
|
-
cacheCompression?: undefined;
|
|
4341
|
-
compact?: undefined;
|
|
4342
|
-
babelrc?: undefined;
|
|
4343
|
-
configFile?: undefined;
|
|
4344
|
-
sourceMaps?: undefined;
|
|
4345
|
-
inputSourceMap?: undefined;
|
|
4346
|
-
};
|
|
4347
|
-
include?: undefined;
|
|
4348
|
-
exclude?: undefined;
|
|
4349
|
-
use?: undefined;
|
|
4350
|
-
sideEffects?: undefined;
|
|
4351
|
-
} | {
|
|
4352
|
-
test: RegExp[];
|
|
4353
|
-
loader: string;
|
|
4354
|
-
options: {
|
|
4355
|
-
limit: number;
|
|
4356
|
-
name: string;
|
|
4357
|
-
mimetype?: undefined;
|
|
4358
|
-
customize?: undefined;
|
|
4359
|
-
presets?: undefined;
|
|
4360
|
-
plugins?: undefined;
|
|
4361
|
-
cacheDirectory?: undefined;
|
|
4362
|
-
cacheCompression?: undefined;
|
|
4363
|
-
compact?: undefined;
|
|
4364
|
-
babelrc?: undefined;
|
|
4365
|
-
configFile?: undefined;
|
|
4366
|
-
sourceMaps?: undefined;
|
|
4367
|
-
inputSourceMap?: undefined;
|
|
4368
|
-
};
|
|
4369
|
-
include?: undefined;
|
|
4370
|
-
exclude?: undefined;
|
|
4371
|
-
use?: undefined;
|
|
4372
|
-
sideEffects?: undefined;
|
|
4373
|
-
} | {
|
|
4374
|
-
test: RegExp;
|
|
4375
|
-
include: string;
|
|
4376
|
-
loader: string;
|
|
4377
|
-
options: {
|
|
4378
|
-
customize: string;
|
|
4379
|
-
presets: string[];
|
|
4380
|
-
plugins: (string | false | (string | {
|
|
4381
|
-
loaderMap: {
|
|
4382
|
-
svg: {
|
|
4383
|
-
ReactComponent: string;
|
|
4384
|
-
};
|
|
4385
|
-
};
|
|
4386
|
-
})[] | (string | {
|
|
4387
|
-
libraryName: string;
|
|
4388
|
-
style: boolean;
|
|
4389
|
-
})[])[];
|
|
4390
|
-
cacheDirectory: boolean;
|
|
4391
|
-
cacheCompression: boolean;
|
|
4392
|
-
compact: boolean;
|
|
4393
|
-
limit?: undefined;
|
|
4394
|
-
mimetype?: undefined;
|
|
4395
|
-
name?: undefined;
|
|
4396
|
-
babelrc?: undefined;
|
|
4397
|
-
configFile?: undefined;
|
|
4398
|
-
sourceMaps?: undefined;
|
|
4399
|
-
inputSourceMap?: undefined;
|
|
4400
|
-
};
|
|
4401
|
-
exclude?: undefined;
|
|
4402
|
-
use?: undefined;
|
|
4403
|
-
sideEffects?: undefined;
|
|
4404
|
-
} | {
|
|
4405
|
-
test: RegExp;
|
|
4406
|
-
exclude: RegExp;
|
|
4407
|
-
loader: string;
|
|
4408
|
-
options: {
|
|
4409
|
-
babelrc: boolean;
|
|
4410
|
-
configFile: boolean;
|
|
4411
|
-
compact: boolean;
|
|
4412
|
-
presets: (string | {
|
|
4413
|
-
helpers: boolean;
|
|
4414
|
-
})[][];
|
|
4415
|
-
cacheDirectory: boolean;
|
|
4416
|
-
cacheCompression: boolean;
|
|
4417
|
-
sourceMaps: boolean;
|
|
4418
|
-
inputSourceMap: boolean;
|
|
4419
|
-
limit?: undefined;
|
|
4420
|
-
mimetype?: undefined;
|
|
4421
|
-
name?: undefined;
|
|
4422
|
-
customize?: undefined;
|
|
4423
|
-
plugins?: undefined;
|
|
4424
|
-
};
|
|
4425
|
-
include?: undefined;
|
|
4426
|
-
use?: undefined;
|
|
4427
|
-
sideEffects?: undefined;
|
|
4428
|
-
} | {
|
|
4429
|
-
test: RegExp;
|
|
4430
|
-
exclude: RegExp;
|
|
4431
|
-
use: (string | false | {
|
|
4432
|
-
loader: any;
|
|
4433
|
-
options: {
|
|
4434
|
-
publicPath: string;
|
|
4435
|
-
} | {
|
|
4436
|
-
publicPath?: undefined;
|
|
4437
|
-
};
|
|
4438
|
-
} | {
|
|
4439
|
-
loader: string;
|
|
4440
|
-
options: any;
|
|
4441
|
-
})[];
|
|
4442
|
-
sideEffects: boolean;
|
|
4443
|
-
loader?: undefined;
|
|
4444
|
-
options?: undefined;
|
|
4445
|
-
include?: undefined;
|
|
4446
|
-
} | {
|
|
4447
|
-
test: RegExp;
|
|
4448
|
-
use: (string | false | {
|
|
4449
|
-
loader: any;
|
|
4450
|
-
options: {
|
|
4451
|
-
publicPath: string;
|
|
4452
|
-
} | {
|
|
4453
|
-
publicPath?: undefined;
|
|
4454
|
-
};
|
|
4455
|
-
} | {
|
|
4456
|
-
loader: string;
|
|
4457
|
-
options: any;
|
|
4458
|
-
})[];
|
|
4459
|
-
loader?: undefined;
|
|
4460
|
-
options?: undefined;
|
|
4461
|
-
include?: undefined;
|
|
4462
|
-
exclude?: undefined;
|
|
4463
|
-
sideEffects?: undefined;
|
|
4464
|
-
} | {
|
|
4465
|
-
loader: string;
|
|
4466
|
-
exclude: RegExp[];
|
|
4467
|
-
options: {
|
|
4468
|
-
name: string;
|
|
4469
|
-
limit?: undefined;
|
|
4470
|
-
mimetype?: undefined;
|
|
4471
|
-
customize?: undefined;
|
|
4472
|
-
presets?: undefined;
|
|
4473
|
-
plugins?: undefined;
|
|
4474
|
-
cacheDirectory?: undefined;
|
|
4475
|
-
cacheCompression?: undefined;
|
|
4476
|
-
compact?: undefined;
|
|
4477
|
-
babelrc?: undefined;
|
|
4478
|
-
configFile?: undefined;
|
|
4479
|
-
sourceMaps?: undefined;
|
|
4480
|
-
inputSourceMap?: undefined;
|
|
4481
|
-
};
|
|
4482
|
-
test?: undefined;
|
|
4483
|
-
include?: undefined;
|
|
4484
|
-
use?: undefined;
|
|
4485
|
-
sideEffects?: undefined;
|
|
4486
|
-
})[];
|
|
4487
|
-
parser?: undefined;
|
|
4488
|
-
})[];
|
|
4489
|
-
};
|
|
4490
|
-
plugins: any[];
|
|
4491
|
-
node: {
|
|
4492
|
-
module: string;
|
|
4493
|
-
dgram: string;
|
|
4494
|
-
dns: string;
|
|
4495
|
-
fs: string;
|
|
4496
|
-
http2: string;
|
|
4497
|
-
net: string;
|
|
4498
|
-
tls: string;
|
|
4499
|
-
child_process: string;
|
|
4500
|
-
crypto: string;
|
|
4501
|
-
Buffer: boolean;
|
|
4502
|
-
};
|
|
4503
|
-
performance: boolean;
|
|
4504
|
-
};
|
|
4505
|
-
export = _exports;
|
|
4506
|
-
|
|
4507
|
-
}
|
|
4508
|
-
declare module '@authing/react-ui-components/config/webpackDevServer.config' {
|
|
4509
|
-
function _exports(proxy: any, allowedHost: any): {
|
|
4510
|
-
disableHostCheck: boolean;
|
|
4511
|
-
compress: boolean;
|
|
4512
|
-
clientLogLevel: string;
|
|
4513
|
-
contentBase: string;
|
|
4514
|
-
contentBasePublicPath: any;
|
|
4515
|
-
watchContentBase: boolean;
|
|
4516
|
-
hot: boolean;
|
|
4517
|
-
transportMode: string;
|
|
4518
|
-
injectClient: boolean;
|
|
4519
|
-
sockHost: string | undefined;
|
|
4520
|
-
sockPath: string | undefined;
|
|
4521
|
-
sockPort: string | undefined;
|
|
4522
|
-
publicPath: any;
|
|
4523
|
-
quiet: boolean;
|
|
4524
|
-
watchOptions: {
|
|
4525
|
-
ignored: any;
|
|
4526
|
-
};
|
|
4527
|
-
https: boolean | {
|
|
4528
|
-
cert: Buffer;
|
|
4529
|
-
key: Buffer;
|
|
4530
|
-
};
|
|
4531
|
-
host: string;
|
|
4532
|
-
overlay: boolean;
|
|
4533
|
-
historyApiFallback: {
|
|
4534
|
-
disableDotRule: boolean;
|
|
4535
|
-
index: any;
|
|
4536
|
-
};
|
|
4537
|
-
public: any;
|
|
4538
|
-
proxy: any;
|
|
4539
|
-
before(app: any, server: any): void;
|
|
4540
|
-
after(app: any): void;
|
|
4541
|
-
};
|
|
4542
|
-
export = _exports;
|
|
4543
|
-
|
|
4544
|
-
}
|
|
4545
|
-
declare module '@authing/react-ui-components/examples' {
|
|
4546
|
-
export {};
|
|
4547
|
-
|
|
4548
|
-
}
|
|
4549
|
-
declare module '@authing/react-ui-components/index' {
|
|
4550
|
-
const _exports: typeof import("@authing/react-ui-components/components/index");
|
|
4551
|
-
export = _exports;
|
|
4552
|
-
|
|
4553
|
-
}
|
|
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';
|
|
4603
|
-
|
|
4604
|
-
}
|
|
4605
|
-
declare module '@authing/react-ui-components/vite.config' {
|
|
4606
|
-
const _default: import("vite").UserConfigExport;
|
|
4607
|
-
export default _default;
|
|
4608
|
-
|
|
4609
|
-
}
|
|
4610
|
-
declare module '@authing/react-ui-components' {
|
|
4611
|
-
import main = require('@authing/react-ui-components/components/index');
|
|
4612
|
-
export = main;
|
|
4613
|
-
}
|