@authing/react-ui-components 4.4.0-alpha.0 → 4.4.0-alpha.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/dist/esm/guard.min.css +2 -0
- package/dist/esm/guard.min.js +2 -0
- package/dist/esm/guard.min.js.LICENSE.txt +193 -0
- package/dist/typings/index.d.ts +2 -0
- package/package.json +15 -231
- package/README.md +0 -33
- package/dist/asset-manifest.json +0 -26
- package/dist/index.html +0 -1
- package/dist/static/css/2.31681d53.chunk.css +0 -3
- package/dist/static/css/2.31681d53.chunk.css.map +0 -1
- package/dist/static/css/main.5aec6972.chunk.css +0 -2
- package/dist/static/css/main.5aec6972.chunk.css.map +0 -1
- package/dist/static/js/2.d2a1168e.chunk.js +0 -3
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +0 -86
- package/dist/static/js/2.d2a1168e.chunk.js.map +0 -1
- package/dist/static/js/3.b3dd7130.chunk.js +0 -2
- package/dist/static/js/3.b3dd7130.chunk.js.map +0 -1
- package/dist/static/js/main.b635a15a.chunk.js +0 -2
- package/dist/static/js/main.b635a15a.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.6f6a6483.js +0 -2
- package/dist/static/js/runtime-main.6f6a6483.js.map +0 -1
- package/dist/static/media/loading.3cf0104f.svg +0 -32
- package/lib/index.min.css +0 -2
- package/lib/index.min.js +0 -2
- package/lib/index.min.js.LICENSE.txt +0 -53
- package/lib/static/media/loading.3cf0104f.svg +0 -32
- package/types/AuthClientProvider/AuthClientProvider.d.ts +0 -6
- package/types/AuthClientProvider/context.d.ts +0 -6
- package/types/AuthClientProvider/index.d.ts +0 -1
- package/types/Back/index.d.ts +0 -12
- package/types/BindTotp/businessRequest.d.ts +0 -5
- package/types/BindTotp/core/bindSuccess.d.ts +0 -6
- package/types/BindTotp/core/securityCode.d.ts +0 -8
- package/types/BindTotp/index.d.ts +0 -3
- package/types/BindTotp/interface.d.ts +0 -20
- package/types/ChangeLanguage/index.d.ts +0 -10
- package/types/ChangePassword/businessRequest.d.ts +0 -9
- package/types/ChangePassword/core/PasswordNotSafeReset.d.ts +0 -6
- package/types/ChangePassword/core/completePassword.d.ts +0 -2
- package/types/ChangePassword/core/firstLoginReset.d.ts +0 -6
- package/types/ChangePassword/core/rotateReset.d.ts +0 -7
- package/types/ChangePassword/index.d.ts +0 -11
- package/types/CompleteInfo/businessRequest.d.ts +0 -9
- package/types/CompleteInfo/core/completeInfo.d.ts +0 -11
- package/types/CompleteInfo/index.d.ts +0 -11
- package/types/CompleteInfo/interface.d.ts +0 -100
- package/types/CompleteInfo/utils.d.ts +0 -22
- package/types/CopyAbleText/index.d.ts +0 -5
- package/types/DownloadAuthenticator/index.d.ts +0 -3
- package/types/DownloadAuthenticator/interface.d.ts +0 -12
- package/types/Error/index.d.ts +0 -6
- package/types/Error/interface.d.ts +0 -8
- package/types/ForgetPassword/InputPassword/index.d.ts +0 -4
- package/types/ForgetPassword/core/inputIdentify.d.ts +0 -7
- package/types/ForgetPassword/core/resetPassword.d.ts +0 -15
- package/types/ForgetPassword/index.d.ts +0 -2
- package/types/ForgetPassword/interface.d.ts +0 -19
- package/types/Guard/Guard.d.ts +0 -10
- package/types/Guard/GuardModule/stateMachine.d.ts +0 -38
- package/types/Guard/authClient.d.ts +0 -14
- package/types/Guard/config.d.ts +0 -17
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +0 -322
- package/types/Guard/core/index.d.ts +0 -8
- package/types/Guard/core/renderContext.d.ts +0 -8
- package/types/Guard/core/renderModule.d.ts +0 -11
- package/types/Guard/core/useAppendConfig.d.ts +0 -4
- package/types/Guard/core/usePlugin.d.ts +0 -3
- package/types/Guard/event.d.ts +0 -92
- package/types/Guard/index.d.ts +0 -4
- package/types/Guard/module.d.ts +0 -34
- package/types/Guard/sso.d.ts +0 -19
- package/types/GuardButton/GuardButton.d.ts +0 -6
- package/types/GuardButton/index.d.ts +0 -1
- package/types/GuardFace/index.d.ts +0 -16
- package/types/GuardSelect/index.d.ts +0 -29
- package/types/IconFont/iconfont.d.ts +0 -1
- package/types/IconFont/index.d.ts +0 -8
- package/types/IconFont/useGuardIconfont.d.ts +0 -1
- package/types/IdentityBinding/IdentityBinding.d.ts +0 -5
- package/types/IdentityBinding/businessRequest.d.ts +0 -36
- package/types/IdentityBinding/index.d.ts +0 -2
- package/types/IdentityBinding/interface.d.ts +0 -27
- package/types/IdentityBindingAsk/IdentityBindingAsk.d.ts +0 -3
- package/types/IdentityBindingAsk/index.d.ts +0 -2
- package/types/IdentityBindingAsk/interface.d.ts +0 -21
- package/types/ImagePro/index.d.ts +0 -15
- package/types/InputNumber/index.d.ts +0 -5
- package/types/InputPassword/index.d.ts +0 -2
- package/types/Login/codemap.d.ts +0 -2
- package/types/Login/core/withAD.d.ts +0 -21
- package/types/Login/core/withAppQrcode.d.ts +0 -9
- package/types/Login/core/withLDAP.d.ts +0 -22
- package/types/Login/core/withPassword/FormItemAccount.d.ts +0 -6
- package/types/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
- package/types/Login/core/withPassword/InputAccount.d.ts +0 -7
- package/types/Login/core/withPassword/index.d.ts +0 -28
- package/types/Login/core/withVerifyCode/FormItemIdentify.d.ts +0 -11
- package/types/Login/core/withVerifyCode/InputInternationPhone.d.ts +0 -7
- package/types/Login/core/withVerifyCode/VirtualDropdown.d.ts +0 -12
- package/types/Login/core/withVerifyCode/index.d.ts +0 -4
- package/types/Login/core/withVerifyCode/inputIdentify.d.ts +0 -7
- package/types/Login/core/withWechatMiniQrcode.d.ts +0 -11
- package/types/Login/core/withWechatmpQrcode.d.ts +0 -14
- package/types/Login/hooks/useLoginMultiple.d.ts +0 -64
- package/types/Login/index.d.ts +0 -5
- package/types/Login/interface.d.ts +0 -41
- package/types/Login/multipleAccounts/index.d.ts +0 -22
- package/types/Login/multipleAccounts/panel.d.ts +0 -45
- package/types/Login/resetAccountName/businessRequest.d.ts +0 -6
- package/types/Login/resetAccountName/index.d.ts +0 -3
- package/types/Login/socialLogin/IdpButton/index.d.ts +0 -2
- package/types/Login/socialLogin/index.d.ts +0 -18
- package/types/Login/socialLogin/postMessage.d.ts +0 -7
- package/types/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -8
- package/types/MFA/VerifyCodeInput/index.d.ts +0 -14
- package/types/MFA/businessRequest.d.ts +0 -46
- package/types/MFA/codemap.d.ts +0 -2
- package/types/MFA/core/email.d.ts +0 -23
- package/types/MFA/core/face.d.ts +0 -2
- package/types/MFA/core/face_deps.d.ts +0 -11
- package/types/MFA/core/sms.d.ts +0 -28
- package/types/MFA/core/totp.d.ts +0 -20
- package/types/MFA/index.d.ts +0 -9
- package/types/MFA/interface.d.ts +0 -43
- package/types/MFA/mfaMethods/index.d.ts +0 -8
- package/types/NeedHelpView/core/describeQuestions.d.ts +0 -8
- package/types/NeedHelpView/index.d.ts +0 -2
- package/types/NewSubmitSuccess/index.d.ts +0 -2
- package/types/NewSubmitSuccess/interface.d.ts +0 -19
- package/types/Qrcode/UiQrCode.d.ts +0 -51
- package/types/Qrcode/WorkQrCode.d.ts +0 -41
- package/types/Qrcode/hooks/useImage.d.ts +0 -4
- package/types/Qrcode/hooks/usePostQrCode.d.ts +0 -72
- package/types/Qrcode/hooks/usePreQrCode.d.ts +0 -31
- package/types/Qrcode/hooks/useStatus.d.ts +0 -7
- package/types/Qrcode/index.d.ts +0 -7
- package/types/RecoveryCode/businessRequest.d.ts +0 -5
- package/types/RecoveryCode/core/saveCode.d.ts +0 -5
- package/types/RecoveryCode/core/useCode.d.ts +0 -7
- package/types/RecoveryCode/index.d.ts +0 -5
- package/types/RecoveryCode/interface.d.ts +0 -8
- package/types/Register/codemap.d.ts +0 -2
- package/types/Register/components/Agreements/index.d.ts +0 -11
- package/types/Register/core/WithCode.d.ts +0 -17
- package/types/Register/core/WithEmail.d.ts +0 -13
- package/types/Register/core/WithEmailCode.d.ts +0 -11
- package/types/Register/core/WithPhone.d.ts +0 -10
- package/types/Register/index.d.ts +0 -2
- package/types/Register/interface.d.ts +0 -25
- package/types/Register/utils.d.ts +0 -1
- package/types/SelectAccount/index.d.ts +0 -3
- package/types/SelfUnlock/core/selfUnlock.d.ts +0 -8
- package/types/SelfUnlock/index.d.ts +0 -2
- package/types/SelfUnlock/interface.d.ts +0 -15
- package/types/SendCode/SendCodeBtn.d.ts +0 -10
- package/types/SendCode/SendCodeByEmail.d.ts +0 -13
- package/types/SendCode/SendCodeByPhone.d.ts +0 -15
- package/types/SendCode/index.d.ts +0 -9
- package/types/ShieldSpin/index.d.ts +0 -7
- package/types/SingleComponent/SingleComponent.d.ts +0 -3
- package/types/SingleComponent/index.d.ts +0 -3
- package/types/SubmitButton/index.d.ts +0 -10
- package/types/SubmitSuccess/index.d.ts +0 -2
- package/types/SubmitSuccess/interface.d.ts +0 -17
- package/types/TenantPortalSelect/index.d.ts +0 -3
- package/types/TenantPortalSelect/interface.d.ts +0 -33
- package/types/Type/application.d.ts +0 -316
- package/types/Type/index.d.ts +0 -84
- package/types/UploadImage/index.d.ts +0 -5
- package/types/ValidatorRules/PasswordFormItem.d.ts +0 -6
- package/types/ValidatorRules/ValidatorFormItem.d.ts +0 -8
- package/types/ValidatorRules/index.d.ts +0 -32
- package/types/ValidatorRules/useCheckRepeat.d.ts +0 -1
- package/types/VerifyCodeInput/index.d.ts +0 -10
- package/types/_utils/GuardErrorCode.d.ts +0 -11
- package/types/_utils/appendConfig.d.ts +0 -4
- package/types/_utils/clipboard.d.ts +0 -1
- package/types/_utils/config/index.d.ts +0 -109
- package/types/_utils/context.d.ts +0 -158
- package/types/_utils/corsVerification.d.ts +0 -1
- package/types/_utils/countryList.d.ts +0 -7
- package/types/_utils/errorFace.d.ts +0 -12
- package/types/_utils/facePlugin/index.d.ts +0 -4
- package/types/_utils/facePlugin/interface.d.ts +0 -5
- package/types/_utils/flowHandleStorage.d.ts +0 -4
- package/types/_utils/getCaptchaUrl.d.ts +0 -1
- package/types/_utils/guardDocument.d.ts +0 -3
- package/types/_utils/guardHttp.d.ts +0 -27
- package/types/_utils/hooks/index.d.ts +0 -43
- package/types/_utils/http.d.ts +0 -33
- package/types/_utils/index.d.ts +0 -98
- package/types/_utils/initAppId.d.ts +0 -7
- package/types/_utils/locales/en-us/index.d.ts +0 -4
- package/types/_utils/locales/index.d.ts +0 -8
- package/types/_utils/locales/ja-jp/index.d.ts +0 -4
- package/types/_utils/locales/zh-cn/index.d.ts +0 -4
- package/types/_utils/locales/zh-tw/index.d.ts +0 -4
- package/types/_utils/logger/index.d.ts +0 -15
- package/types/_utils/logger/interface.d.ts +0 -5
- package/types/_utils/popupCenter.d.ts +0 -9
- package/types/_utils/responseManagement/index.d.ts +0 -3
- package/types/_utils/responseManagement/interface.d.ts +0 -25
- package/types/_utils/tenant.d.ts +0 -19
- package/types/_utils/useErrorText.d.ts +0 -5
- package/types/index.d.ts +0 -6
- package/types/version/index.d.ts +0 -2
- package/types/version/version.d.ts +0 -2
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { Lang } from '..';
|
|
2
|
-
import { PasswordStrength } from '../_utils';
|
|
3
|
-
export * from 'authing-js-sdk';
|
|
4
|
-
export declare enum LoginMethods {
|
|
5
|
-
LDAP = "ldap",
|
|
6
|
-
AppQr = "app-qrcode",
|
|
7
|
-
Password = "password",
|
|
8
|
-
PhoneCode = "phone-code",
|
|
9
|
-
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
|
-
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
12
|
-
}
|
|
13
|
-
export declare enum OIDCConnectionMode {
|
|
14
|
-
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
15
|
-
BACK_CHANNEL = "BACK_CHANNEL"
|
|
16
|
-
}
|
|
17
|
-
export declare enum SocialConnectionProvider {
|
|
18
|
-
ALIPAY = "alipay",
|
|
19
|
-
GOOGLE = "google",
|
|
20
|
-
WECHATPC = "wechat:pc",
|
|
21
|
-
WECHATMP = "wechat:webpage-authorization",
|
|
22
|
-
WECHAT_MINIPROGRAM = "wechat:miniprogram:default",
|
|
23
|
-
WECHAT_MINIPROGRAM_QRCODE = "wechat:miniprogram:qrconnect",
|
|
24
|
-
WECHAT_MINIPROGRAM_APPLAUNCH = "wechat:miniprogram:app-launch",
|
|
25
|
-
WECHATMOBILE = "wechat:mobile",
|
|
26
|
-
GITHUB = "github",
|
|
27
|
-
QQ = "qq",
|
|
28
|
-
WECHATWORK_ADDRESS_BOOK = "wechatwork:addressbook",
|
|
29
|
-
WECHATWORK_CORP_QRCONNECT = "wechatwork:corp:qrconnect",
|
|
30
|
-
WECHATWORK_SERVICEPROVIDER_QRCONNECT = "wechatwork:service-provider:qrconnect",
|
|
31
|
-
DINGTALK = "dingtalk",
|
|
32
|
-
WEIBO = "weibo",
|
|
33
|
-
APPLE = "apple",
|
|
34
|
-
APPLE_WEB = "apple:web",
|
|
35
|
-
LARK_PUBLIC = "lark-public",
|
|
36
|
-
LARK_INTERNAL = "lark-internal",
|
|
37
|
-
BAIDU = "baidu",
|
|
38
|
-
LINKEDIN = "linkedin",
|
|
39
|
-
SLACK = "slack",
|
|
40
|
-
YIDUN = "yidun",
|
|
41
|
-
QINGCLOUD = "qingcloud",
|
|
42
|
-
FACEBOOK = "facebook"
|
|
43
|
-
}
|
|
44
|
-
export declare enum Protocol {
|
|
45
|
-
AD = "ad",
|
|
46
|
-
CAS = "cas",
|
|
47
|
-
LDAP = "ldap",
|
|
48
|
-
OIDC = "oidc",
|
|
49
|
-
SAML = "saml",
|
|
50
|
-
OAUTH = "oauth",
|
|
51
|
-
AZURE_AD = "azure-ad",
|
|
52
|
-
AD_KERBEROS = "ad-kerberos"
|
|
53
|
-
}
|
|
54
|
-
export interface IOAuthConnectionConfig {
|
|
55
|
-
authEndPoint: string;
|
|
56
|
-
tokenEndPoint: string;
|
|
57
|
-
scope: string;
|
|
58
|
-
clientId: string;
|
|
59
|
-
clientSecret: string;
|
|
60
|
-
authUrlTemplate: string;
|
|
61
|
-
codeToTokenScript: string;
|
|
62
|
-
tokenToUserInfoScript: string;
|
|
63
|
-
tokenToUserInfoScriptFuncId: string;
|
|
64
|
-
codeToTokenScriptFuncId: string;
|
|
65
|
-
authUrl?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface IAzureAdConnectionConfig {
|
|
68
|
-
microsoftAzureAdDomain: string;
|
|
69
|
-
clientId: string;
|
|
70
|
-
syncUserProfileOnLogin: string;
|
|
71
|
-
emailVerifiedDefault: boolean;
|
|
72
|
-
authorizationUrl: string;
|
|
73
|
-
callbackUrl: string;
|
|
74
|
-
}
|
|
75
|
-
export interface ISamlConnectionConfig {
|
|
76
|
-
signInEndPoint: string;
|
|
77
|
-
samlRequest?: string;
|
|
78
|
-
samlIdpCert: string;
|
|
79
|
-
samlSpCert: string;
|
|
80
|
-
samlSpKey: string;
|
|
81
|
-
signOutEndPoint: string;
|
|
82
|
-
signSamlRequest: boolean;
|
|
83
|
-
signatureAlgorithm: string;
|
|
84
|
-
digestAlgorithm: string;
|
|
85
|
-
protocolBinding: string;
|
|
86
|
-
}
|
|
87
|
-
export interface ICasConnectionConfig {
|
|
88
|
-
casConnectionLoginUrl: string;
|
|
89
|
-
}
|
|
90
|
-
export interface SocialConnectionItem {
|
|
91
|
-
name: string;
|
|
92
|
-
name_en: string;
|
|
93
|
-
displayName: string;
|
|
94
|
-
logo: string;
|
|
95
|
-
description: string;
|
|
96
|
-
identifier: string;
|
|
97
|
-
provider: SocialConnectionProvider;
|
|
98
|
-
authorizationUrl: string;
|
|
99
|
-
tooltip: Record<Lang, string>;
|
|
100
|
-
}
|
|
101
|
-
export declare enum RegisterMethods {
|
|
102
|
-
Email = "email",
|
|
103
|
-
Phone = "phone",
|
|
104
|
-
EmailCode = "emailCode"
|
|
105
|
-
}
|
|
106
|
-
export declare enum RegisterSortMethods {
|
|
107
|
-
Email = "email-password",
|
|
108
|
-
Phone = "phone-code",
|
|
109
|
-
EmailCode = "email-code"
|
|
110
|
-
}
|
|
111
|
-
export interface QrCodeItem {
|
|
112
|
-
id: string;
|
|
113
|
-
title: string;
|
|
114
|
-
isDefault?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
117
|
-
export interface OidcClientMetadata {
|
|
118
|
-
grant_types: string[];
|
|
119
|
-
client_id: string;
|
|
120
|
-
redirect_uris: string[];
|
|
121
|
-
scope: string;
|
|
122
|
-
response_types: ResponseType[];
|
|
123
|
-
}
|
|
124
|
-
export interface OIDCConnectionConfig {
|
|
125
|
-
issuerUrl: string;
|
|
126
|
-
authorizationEdpoint: string;
|
|
127
|
-
responseType: string;
|
|
128
|
-
mode: OIDCConnectionMode;
|
|
129
|
-
clientId: string;
|
|
130
|
-
clientSecret: string;
|
|
131
|
-
scopes: string;
|
|
132
|
-
redirectUri: string;
|
|
133
|
-
}
|
|
134
|
-
export interface InternalExtendsField {
|
|
135
|
-
type: 'internal';
|
|
136
|
-
name: string;
|
|
137
|
-
label: string;
|
|
138
|
-
inputType: string;
|
|
139
|
-
required: boolean;
|
|
140
|
-
validateRules: any[];
|
|
141
|
-
}
|
|
142
|
-
export interface UserExtendsField {
|
|
143
|
-
type: 'user';
|
|
144
|
-
id: string;
|
|
145
|
-
name: string;
|
|
146
|
-
label: string;
|
|
147
|
-
inputType: string;
|
|
148
|
-
required: boolean;
|
|
149
|
-
validateRules: any[];
|
|
150
|
-
}
|
|
151
|
-
export declare type ExtendsField = InternalExtendsField | UserExtendsField;
|
|
152
|
-
export interface ApplicationPasswordTabConfig {
|
|
153
|
-
enabledLoginMethods?: PasswordLoginMethods[];
|
|
154
|
-
validRegisterMethods?: string[];
|
|
155
|
-
validLoginMethods?: string[];
|
|
156
|
-
}
|
|
157
|
-
export interface ApplicationVerifyCodeTabConfig {
|
|
158
|
-
enabledLoginMethods: VerifyLoginMethods[];
|
|
159
|
-
validRegisterMethods?: string[];
|
|
160
|
-
validLoginMethods?: string[];
|
|
161
|
-
}
|
|
162
|
-
export interface Agreement {
|
|
163
|
-
id: number;
|
|
164
|
-
title: string;
|
|
165
|
-
required: boolean;
|
|
166
|
-
lang: Lang;
|
|
167
|
-
availableAt?: number;
|
|
168
|
-
}
|
|
169
|
-
export declare type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
|
|
170
|
-
export declare type VerifyLoginMethods = 'email-code' | 'phone-code';
|
|
171
|
-
export declare type ComplateFiledsPlace = 'register' | 'login';
|
|
172
|
-
export interface TabFieldsI18nItem {
|
|
173
|
-
key: string;
|
|
174
|
-
label: string;
|
|
175
|
-
labelEn: string;
|
|
176
|
-
i18n: {
|
|
177
|
-
[propName in Lang]?: string;
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
export interface ApplicationConfig {
|
|
181
|
-
id: string;
|
|
182
|
-
allowedOrigins: string[];
|
|
183
|
-
corsWhitelist: string[];
|
|
184
|
-
cdnBase: string;
|
|
185
|
-
userPoolId: string;
|
|
186
|
-
rootUserPoolId: string;
|
|
187
|
-
publicKey: string;
|
|
188
|
-
internationalSmsConfig?: {
|
|
189
|
-
enabled: boolean;
|
|
190
|
-
defaultISOType: string;
|
|
191
|
-
};
|
|
192
|
-
css: string;
|
|
193
|
-
customLoading?: string;
|
|
194
|
-
name: string;
|
|
195
|
-
logo: string;
|
|
196
|
-
description?: string;
|
|
197
|
-
redirectUris: string[];
|
|
198
|
-
registerDisabled: boolean;
|
|
199
|
-
mergeAdAndAccountPasswordLogin: boolean;
|
|
200
|
-
registerTabs: {
|
|
201
|
-
list: string[];
|
|
202
|
-
default: string;
|
|
203
|
-
title: {
|
|
204
|
-
[x: string]: string;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
registerTabsConfig: {
|
|
208
|
-
list: string[];
|
|
209
|
-
default: string;
|
|
210
|
-
title: {
|
|
211
|
-
[x: string]: string;
|
|
212
|
-
};
|
|
213
|
-
registerTypeConfig: {
|
|
214
|
-
emailRegisterType?: RegisterMethods[];
|
|
215
|
-
phoneRegisterType?: RegisterMethods[];
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
219
|
-
qrCodeSortConfig: {
|
|
220
|
-
loginMethodsSort?: string[];
|
|
221
|
-
};
|
|
222
|
-
loginTabs: {
|
|
223
|
-
list: string[];
|
|
224
|
-
default: string;
|
|
225
|
-
defaultV2?: string;
|
|
226
|
-
title: {
|
|
227
|
-
[x: string]: string;
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
socialConnections: SocialConnectionItem[];
|
|
231
|
-
complateFiledsPlace: ComplateFiledsPlace[];
|
|
232
|
-
extendsFieldsEnabled: boolean;
|
|
233
|
-
extendsFields: ExtendsField[];
|
|
234
|
-
extendsFieldsI18n?: {
|
|
235
|
-
[key: string]: Record<Lang, {
|
|
236
|
-
enabled: boolean;
|
|
237
|
-
value: string;
|
|
238
|
-
}>;
|
|
239
|
-
};
|
|
240
|
-
identifier: string;
|
|
241
|
-
requestHostname: string;
|
|
242
|
-
identityProviders: {
|
|
243
|
-
identifier: string;
|
|
244
|
-
protocol: Protocol;
|
|
245
|
-
displayName: string;
|
|
246
|
-
logo: string;
|
|
247
|
-
config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
248
|
-
}[];
|
|
249
|
-
ssoPageComponentDisplay: {
|
|
250
|
-
autoRegisterThenLoginHintInfo: boolean;
|
|
251
|
-
forgetPasswordBtn: boolean;
|
|
252
|
-
idpBtns: boolean;
|
|
253
|
-
loginBtn: boolean;
|
|
254
|
-
loginByPhoneCodeTab: boolean;
|
|
255
|
-
loginByUserPasswordTab: boolean;
|
|
256
|
-
loginMethodNav: boolean;
|
|
257
|
-
phoneCodeInput: boolean;
|
|
258
|
-
registerBtn: boolean;
|
|
259
|
-
registerByEmailTab: boolean;
|
|
260
|
-
registerByPhoneTab: boolean;
|
|
261
|
-
registerMethodNav: boolean;
|
|
262
|
-
socialLoginBtns: boolean;
|
|
263
|
-
userPasswordInput: boolean;
|
|
264
|
-
wxMpScanTab: boolean;
|
|
265
|
-
};
|
|
266
|
-
protocol: Protocol;
|
|
267
|
-
oidcConfig: OidcClientMetadata;
|
|
268
|
-
passwordTabConfig: ApplicationPasswordTabConfig;
|
|
269
|
-
verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
|
|
270
|
-
agreementEnabled: boolean;
|
|
271
|
-
agreements: Agreement[];
|
|
272
|
-
customPasswordStrength: any;
|
|
273
|
-
passwordStrength: PasswordStrength;
|
|
274
|
-
verifyCodeLength: number;
|
|
275
|
-
websocket: string;
|
|
276
|
-
welcomeMessage: any;
|
|
277
|
-
skipComplateFileds: boolean;
|
|
278
|
-
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
279
|
-
defaultLanguageConfig: Lang;
|
|
280
|
-
/**
|
|
281
|
-
* 是否开启账号切换
|
|
282
|
-
*/
|
|
283
|
-
enableLoginAccountSwitch: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* 是否开启注册密码补全
|
|
286
|
-
*/
|
|
287
|
-
enableCompletePassword: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* 登录注册排序
|
|
290
|
-
*/
|
|
291
|
-
tabMethodsSortConfig: {
|
|
292
|
-
loginMethodsSort: string[];
|
|
293
|
-
};
|
|
294
|
-
tabMethodsFields: TabFieldsI18nItem[];
|
|
295
|
-
regexRules?: {
|
|
296
|
-
key: string;
|
|
297
|
-
appLevel: string;
|
|
298
|
-
userpoolLevel: string;
|
|
299
|
-
}[];
|
|
300
|
-
/** 是否为租户控制台应用 */
|
|
301
|
-
isTenantConsole?: boolean;
|
|
302
|
-
/** 是否默认为租户应用面板应用 */
|
|
303
|
-
isTenantDefault?: boolean;
|
|
304
|
-
/** 租户详情 */
|
|
305
|
-
tenantInfo?: Record<string, any>;
|
|
306
|
-
/** mfa 相关 */
|
|
307
|
-
mfa: {
|
|
308
|
-
faceScore: number;
|
|
309
|
-
};
|
|
310
|
-
/** 是否开启自定义安全规则 */
|
|
311
|
-
customSecurityEnabled: boolean;
|
|
312
|
-
/** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
313
|
-
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
314
|
-
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
315
|
-
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
316
|
-
}
|
package/types/Type/index.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
2
|
-
import { GuardModuleType } from '../Guard/module';
|
|
3
|
-
import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
4
|
-
import { ApplicationConfig } from './application';
|
|
5
|
-
export * from './application';
|
|
6
|
-
export type { CommonMessage, User };
|
|
7
|
-
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
8
|
-
export declare enum GuardMode {
|
|
9
|
-
Modal = "modal",
|
|
10
|
-
Normal = "normal"
|
|
11
|
-
}
|
|
12
|
-
export interface IG2FCProps extends IG2Events {
|
|
13
|
-
appId?: string;
|
|
14
|
-
tenantId?: string;
|
|
15
|
-
config?: Partial<IG2Config>;
|
|
16
|
-
visible?: boolean;
|
|
17
|
-
initData?: any;
|
|
18
|
-
appendConfig?: GuardAppendConfig;
|
|
19
|
-
facePlugin?: FacePlugin;
|
|
20
|
-
authClient?: AuthenticationClient;
|
|
21
|
-
}
|
|
22
|
-
export interface GuardAppendConfig {
|
|
23
|
-
internalRequest?: boolean;
|
|
24
|
-
singleComponent?: boolean;
|
|
25
|
-
unAuthFlow?: boolean;
|
|
26
|
-
publicConfig?: ApplicationConfig;
|
|
27
|
-
pageConfig?: GuardPageConfig;
|
|
28
|
-
}
|
|
29
|
-
export interface IG2FCViewProps extends IG2FCProps {
|
|
30
|
-
config: IG2Config;
|
|
31
|
-
}
|
|
32
|
-
export interface IG2Config {
|
|
33
|
-
title?: string;
|
|
34
|
-
logo?: string;
|
|
35
|
-
lang?: string;
|
|
36
|
-
langRange?: Lang[];
|
|
37
|
-
host: string;
|
|
38
|
-
isHost?: boolean;
|
|
39
|
-
mode: GuardMode;
|
|
40
|
-
clickCloseable: boolean;
|
|
41
|
-
escCloseable: boolean;
|
|
42
|
-
userpool?: string;
|
|
43
|
-
contentCss?: string;
|
|
44
|
-
target?: HTMLElement | string;
|
|
45
|
-
__internalRequest__?: boolean;
|
|
46
|
-
__singleComponent__?: boolean;
|
|
47
|
-
__unAuthFlow__?: boolean;
|
|
48
|
-
}
|
|
49
|
-
export interface IG2Events {
|
|
50
|
-
onLoad?: (authClient: AuthenticationClient) => void;
|
|
51
|
-
onLoadError?: (error: any) => void;
|
|
52
|
-
onClose?: () => void;
|
|
53
|
-
onLangChange?: (lang: Lang) => void;
|
|
54
|
-
__changeModule?: (moduleName: GuardModuleType, initData?: any) => void;
|
|
55
|
-
}
|
|
56
|
-
export declare const getDefaultG2Config: () => IG2Config;
|
|
57
|
-
export declare const LanguageMap: any;
|
|
58
|
-
export declare enum InputMethod {
|
|
59
|
-
EmailCode = "email-code",
|
|
60
|
-
PhoneCode = "phone-code"
|
|
61
|
-
}
|
|
62
|
-
export declare enum GuardPageSene {
|
|
63
|
-
Global = "global"
|
|
64
|
-
}
|
|
65
|
-
export interface GuardPageConfig {
|
|
66
|
-
[GuardPageSene.Global]: {
|
|
67
|
-
showChangeLanguage: boolean;
|
|
68
|
-
defaultLanguage: Lang | 'browser';
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export declare enum EmailScene {
|
|
72
|
-
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
73
|
-
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
74
|
-
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
75
|
-
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
76
|
-
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
77
|
-
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
78
|
-
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
79
|
-
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
80
|
-
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
81
|
-
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
82
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
83
|
-
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
84
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ValidatorFormItemProps } from '.';
|
|
3
|
-
export declare const EmailFormItem: React.FC<ValidatorFormItemProps>;
|
|
4
|
-
export declare const PhoneFormItem: React.FC<ValidatorFormItemProps>;
|
|
5
|
-
export declare const UserNameFormItem: React.FC<ValidatorFormItemProps>;
|
|
6
|
-
export declare const CustomNameFormItem: React.FC<ValidatorFormItemProps & {
|
|
7
|
-
method: string;
|
|
8
|
-
}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FormInstance, FormItemProps } from 'antd/lib/form';
|
|
2
|
-
import FormItem from 'antd/lib/form/FormItem';
|
|
3
|
-
import { PasswordFormItem } from './PasswordFormItem';
|
|
4
|
-
import { EmailFormItem, PhoneFormItem, UserNameFormItem, CustomNameFormItem } from './ValidatorFormItem';
|
|
5
|
-
export interface ValidatorFormItemProps extends FormItemProps {
|
|
6
|
-
form?: FormInstance;
|
|
7
|
-
checkRepeat?: boolean;
|
|
8
|
-
checkExist?: boolean;
|
|
9
|
-
areaCode?: string;
|
|
10
|
-
/**
|
|
11
|
-
* 控制内部FormItem组件关于pattern的校验规则
|
|
12
|
-
*/
|
|
13
|
-
isCheckPattern?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
16
|
-
method: 'email' | 'phone' | 'username' | string;
|
|
17
|
-
}
|
|
18
|
-
export interface PasswordFormItemProps extends FormItemProps {
|
|
19
|
-
}
|
|
20
|
-
export interface ICheckProps {
|
|
21
|
-
check: (values: any) => void;
|
|
22
|
-
}
|
|
23
|
-
declare type InternalFormItemType = typeof FormItem;
|
|
24
|
-
interface FormItemInterface extends InternalFormItemType {
|
|
25
|
-
Password: typeof PasswordFormItem;
|
|
26
|
-
Email: typeof EmailFormItem;
|
|
27
|
-
Phone: typeof PhoneFormItem;
|
|
28
|
-
UserName: typeof UserNameFormItem;
|
|
29
|
-
CustomName: typeof CustomNameFormItem;
|
|
30
|
-
}
|
|
31
|
-
declare const CustomFormItem: FormItemInterface;
|
|
32
|
-
export default CustomFormItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCheckRepeat: (checkFn: (value: any, resolve: (value: unknown) => void, reject: (reason?: any) => void) => void) => (_: any, value: any) => Promise<unknown>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import './style.less';
|
|
3
|
-
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
verifyCode: string[];
|
|
5
|
-
setVerifyCode: (code: string[]) => void;
|
|
6
|
-
length?: number;
|
|
7
|
-
onEnter?: Function;
|
|
8
|
-
}
|
|
9
|
-
export declare const VerifyCodeInput: FC<VerifyCodeInputProps>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum ErrorCode {
|
|
2
|
-
OTP_MFA_CODE = 1635,
|
|
3
|
-
APP_MFA_CODE = 1636,
|
|
4
|
-
INPUT_CAPTCHACODE = 2000,
|
|
5
|
-
USER_EXISTENCE = 2026,
|
|
6
|
-
LOGIN_INVALID = 2021,
|
|
7
|
-
PASSWORD_ERROR = 2333,
|
|
8
|
-
USER_NOT_EXIST = 2004,
|
|
9
|
-
MULTIPLE_ERROR_LOCK = 2057,
|
|
10
|
-
ACCOUNT_LOCK = 2005
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const copyToClipboard: (str: string) => void;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GuardLocalConfig } from '../../Guard/config';
|
|
3
|
-
import { GuardHttp } from '../guardHttp';
|
|
4
|
-
import { GuardPageConfig } from '../../Type';
|
|
5
|
-
import { ApplicationConfig, LoginMethods } from '../../Type/application';
|
|
6
|
-
export declare const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
7
|
-
export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
8
|
-
export declare const getPageConfig: (appId: string) => GuardPageConfig;
|
|
9
|
-
export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
10
|
-
export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig> | undefined) => GuardLocalConfig | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* 请求服务console关于guard的配置
|
|
13
|
-
* @param forceUpdate
|
|
14
|
-
* @param appId
|
|
15
|
-
* @param config
|
|
16
|
-
* @param httpClient
|
|
17
|
-
* @param setError
|
|
18
|
-
*/
|
|
19
|
-
export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
20
|
-
finallyConfig: {
|
|
21
|
-
host: string;
|
|
22
|
-
isSSO?: boolean | undefined;
|
|
23
|
-
defaultScenes?: import("../..").GuardModuleType | undefined;
|
|
24
|
-
defaultInitData?: any;
|
|
25
|
-
showLoading?: boolean | undefined;
|
|
26
|
-
loadingComponent?: import("react").ReactNode;
|
|
27
|
-
openEventsMapping?: boolean | undefined;
|
|
28
|
-
disableRegister?: boolean | undefined;
|
|
29
|
-
registerMethods?: string[] | undefined;
|
|
30
|
-
defaultRegisterMethod?: string | undefined;
|
|
31
|
-
publicKey?: string | undefined;
|
|
32
|
-
agreementEnabled?: boolean | undefined;
|
|
33
|
-
agreements?: import("../../Type").Agreement[] | undefined;
|
|
34
|
-
registerContext?: any;
|
|
35
|
-
title?: string | undefined;
|
|
36
|
-
logo?: string | undefined;
|
|
37
|
-
lang?: string | undefined;
|
|
38
|
-
langRange?: import("../../Type").Lang[] | undefined;
|
|
39
|
-
isHost?: boolean | undefined;
|
|
40
|
-
mode: import("../../Type").GuardMode;
|
|
41
|
-
clickCloseable: boolean;
|
|
42
|
-
escCloseable: boolean;
|
|
43
|
-
userpool?: string | undefined;
|
|
44
|
-
contentCss?: string | undefined;
|
|
45
|
-
target?: string | HTMLElement | undefined;
|
|
46
|
-
__internalRequest__?: boolean | undefined;
|
|
47
|
-
__singleComponent__?: boolean | undefined;
|
|
48
|
-
__unAuthFlow__?: boolean | undefined;
|
|
49
|
-
autoRegister?: boolean | undefined;
|
|
50
|
-
disableResetPwd?: boolean | undefined;
|
|
51
|
-
defaultLoginMethod?: LoginMethods | undefined;
|
|
52
|
-
loginMethods?: LoginMethods[] | undefined;
|
|
53
|
-
passwordLoginMethods?: string[] | undefined;
|
|
54
|
-
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
55
|
-
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
56
|
-
enterpriseConnections?: string[] | undefined;
|
|
57
|
-
qrCodeScanOptions?: {
|
|
58
|
-
extIdpConnId?: string | undefined;
|
|
59
|
-
autoExchangeUserInfo?: boolean | undefined;
|
|
60
|
-
size?: {
|
|
61
|
-
height: number;
|
|
62
|
-
width: number;
|
|
63
|
-
} | undefined;
|
|
64
|
-
containerSize?: {
|
|
65
|
-
height: number;
|
|
66
|
-
width: number;
|
|
67
|
-
} | undefined;
|
|
68
|
-
interval?: number | undefined;
|
|
69
|
-
onStart?: ((timer: any) => any) | undefined;
|
|
70
|
-
onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
|
|
71
|
-
onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
|
|
72
|
-
onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
73
|
-
onCancel?: (() => any) | undefined;
|
|
74
|
-
onError?: ((message: string) => any) | undefined;
|
|
75
|
-
onExpired?: (() => any) | undefined;
|
|
76
|
-
onCodeShow?: ((random: string, url: string) => any) | undefined;
|
|
77
|
-
onCodeLoaded?: ((random: string, url: string) => any) | undefined;
|
|
78
|
-
onCodeLoadFailed?: ((message: string) => any) | undefined;
|
|
79
|
-
onCodeDestroyed?: ((random: string) => any) | undefined;
|
|
80
|
-
onRetry?: (() => any) | undefined;
|
|
81
|
-
onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
|
|
82
|
-
tips?: {
|
|
83
|
-
title?: string | undefined;
|
|
84
|
-
scanned?: string | undefined;
|
|
85
|
-
succeed?: string | undefined;
|
|
86
|
-
canceled?: string | undefined;
|
|
87
|
-
expired?: string | undefined;
|
|
88
|
-
retry?: string | undefined;
|
|
89
|
-
failed?: string | undefined;
|
|
90
|
-
middleTitle?: string | undefined;
|
|
91
|
-
referText?: string | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
94
|
-
customData?: {
|
|
95
|
-
[x: string]: any;
|
|
96
|
-
} | undefined;
|
|
97
|
-
context?: {
|
|
98
|
-
[x: string]: any;
|
|
99
|
-
} | undefined;
|
|
100
|
-
withCustomData?: boolean | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
_closeLoopCheckQrcode?: boolean | undefined;
|
|
103
|
-
goBack?: (() => void) | null | undefined;
|
|
104
|
-
};
|
|
105
|
-
guardPageConfig: GuardPageConfig;
|
|
106
|
-
} | {
|
|
107
|
-
finallyConfig: undefined;
|
|
108
|
-
guardPageConfig: undefined;
|
|
109
|
-
};
|