@zoyafng/guard-shim-react18 4.5.51-hb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/guard.min.css +2 -0
- package/dist/guard.min.js +28627 -0
- package/dist/typings/example.d.ts +1 -0
- package/dist/typings/shim-antd4/index.d.ts +9 -0
- package/dist/typings/shim-react16/index.d.ts +8 -0
- package/dist/typings/shim-react18/index.d.ts +8 -0
- package/dist/typings/src/AuthClientProvider/AuthClientProvider.d.ts +6 -0
- package/dist/typings/src/AuthClientProvider/context.d.ts +6 -0
- package/dist/typings/src/AuthClientProvider/index.d.ts +1 -0
- package/dist/typings/src/Back/index.d.ts +12 -0
- package/dist/typings/src/BindTotp/businessRequest.d.ts +5 -0
- package/dist/typings/src/BindTotp/core/bindSuccess.d.ts +6 -0
- package/dist/typings/src/BindTotp/core/securityCode.d.ts +8 -0
- package/dist/typings/src/BindTotp/index.d.ts +3 -0
- package/dist/typings/src/BindTotp/interface.d.ts +20 -0
- package/dist/typings/src/ChangeLanguage/index.d.ts +9 -0
- package/dist/typings/src/ChangePassword/businessRequest.d.ts +10 -0
- package/dist/typings/src/ChangePassword/core/PasswordNotSafeReset.d.ts +6 -0
- package/dist/typings/src/ChangePassword/core/SendPhoneCode.d.ts +5 -0
- package/dist/typings/src/ChangePassword/core/completePassword.d.ts +2 -0
- package/dist/typings/src/ChangePassword/core/firstLoginReset.d.ts +6 -0
- package/dist/typings/src/ChangePassword/core/resetPassword.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/rotateReset.d.ts +6 -0
- package/dist/typings/src/ChangePassword/index.d.ts +12 -0
- package/dist/typings/src/CompleteInfo/businessRequest.d.ts +8 -0
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +12 -0
- package/dist/typings/src/CompleteInfo/index.d.ts +11 -0
- package/dist/typings/src/CompleteInfo/interface.d.ts +103 -0
- package/dist/typings/src/CompleteInfo/utils.d.ts +24 -0
- package/dist/typings/src/CopyAbleText/index.d.ts +5 -0
- package/dist/typings/src/DownloadAuthenticator/index.d.ts +3 -0
- package/dist/typings/src/DownloadAuthenticator/interface.d.ts +12 -0
- package/dist/typings/src/Error/index.d.ts +6 -0
- package/dist/typings/src/Error/interface.d.ts +8 -0
- package/dist/typings/src/ForgetPassword/InputPassword/index.d.ts +3 -0
- package/dist/typings/src/ForgetPassword/core/inputIdentify.d.ts +7 -0
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +16 -0
- package/dist/typings/src/ForgetPassword/index.d.ts +2 -0
- package/dist/typings/src/ForgetPassword/interface.d.ts +19 -0
- package/dist/typings/src/Guard/Guard.d.ts +10 -0
- package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +38 -0
- package/dist/typings/src/Guard/authClient.d.ts +12 -0
- package/dist/typings/src/Guard/config.d.ts +18 -0
- package/dist/typings/src/Guard/core/hooks/useAgreements.d.ts +14 -0
- package/dist/typings/src/Guard/core/hooks/useDeviceId.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useGuardView.d.ts +7 -0
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +332 -0
- package/dist/typings/src/Guard/core/index.d.ts +7 -0
- package/dist/typings/src/Guard/core/renderContext.d.ts +8 -0
- package/dist/typings/src/Guard/core/renderModule.d.ts +12 -0
- package/dist/typings/src/Guard/core/useAppendConfig.d.ts +4 -0
- package/dist/typings/src/Guard/core/usePlugin.d.ts +3 -0
- package/dist/typings/src/Guard/event.d.ts +72 -0
- package/dist/typings/src/Guard/index.d.ts +4 -0
- package/dist/typings/src/Guard/module.d.ts +44 -0
- package/dist/typings/src/Guard/sso.d.ts +19 -0
- package/dist/typings/src/GuardButton/GuardButton.d.ts +6 -0
- package/dist/typings/src/GuardButton/index.d.ts +1 -0
- package/dist/typings/src/GuardFace/index.d.ts +16 -0
- package/dist/typings/src/GuardSelect/index.d.ts +30 -0
- package/dist/typings/src/IconFont/iconfont.d.ts +1 -0
- package/dist/typings/src/IconFont/index.d.ts +8 -0
- package/dist/typings/src/IconFont/useGuardIconfont.d.ts +1 -0
- package/dist/typings/src/IdentityBinding/IdentityBinding.d.ts +5 -0
- package/dist/typings/src/IdentityBinding/businessRequest.d.ts +36 -0
- package/dist/typings/src/IdentityBinding/index.d.ts +2 -0
- package/dist/typings/src/IdentityBinding/interface.d.ts +27 -0
- package/dist/typings/src/IdentityBindingAsk/IdentityBindingAsk.d.ts +3 -0
- package/dist/typings/src/IdentityBindingAsk/index.d.ts +2 -0
- package/dist/typings/src/IdentityBindingAsk/interface.d.ts +21 -0
- package/dist/typings/src/ImagePro/index.d.ts +15 -0
- package/dist/typings/src/InputNumber/index.d.ts +5 -0
- package/dist/typings/src/InputPassword/index.d.ts +1 -0
- package/dist/typings/src/Invitation/Application/index.d.ts +2 -0
- package/dist/typings/src/Invitation/AuthenticationBind/index.d.ts +2 -0
- package/dist/typings/src/Invitation/Complete/index.d.ts +2 -0
- package/dist/typings/src/Invitation/Error/index.d.ts +2 -0
- package/dist/typings/src/Invitation/Success/index.d.ts +1 -0
- package/dist/typings/src/Invitation/interface.d.ts +66 -0
- package/dist/typings/src/LazyloadImage/index.d.ts +12 -0
- package/dist/typings/src/Login/codemap.d.ts +2 -0
- package/dist/typings/src/Login/core/withAD.d.ts +20 -0
- package/dist/typings/src/Login/core/withAppQrcode.d.ts +8 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +17 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowBindClient.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PendingLogin.d.ts +6 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +2 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +8 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/index.d.ts +2 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +29 -0
- package/dist/typings/src/Login/core/withDingTalkQrcode.d.ts +1 -0
- package/dist/typings/src/Login/core/withLDAP.d.ts +22 -0
- package/dist/typings/src/Login/core/withPassword/FormItemAccount.d.ts +6 -0
- package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +7 -0
- package/dist/typings/src/Login/core/withPassword/InputAccount.d.ts +7 -0
- package/dist/typings/src/Login/core/withPassword/index.d.ts +28 -0
- package/dist/typings/src/Login/core/withVerifyCode/FormItemIdentify.d.ts +11 -0
- package/dist/typings/src/Login/core/withVerifyCode/InputInternationPhone.d.ts +7 -0
- package/dist/typings/src/Login/core/withVerifyCode/VirtualDropdown.d.ts +12 -0
- package/dist/typings/src/Login/core/withVerifyCode/index.d.ts +7 -0
- package/dist/typings/src/Login/core/withVerifyCode/inputIdentify.d.ts +7 -0
- package/dist/typings/src/Login/core/withWeComQrcode.d.ts +1 -0
- package/dist/typings/src/Login/core/withWechatMiniQrcode.d.ts +10 -0
- package/dist/typings/src/Login/core/withWechatmpQrcode.d.ts +13 -0
- package/dist/typings/src/Login/core/withZjQrcode.d.ts +11 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +69 -0
- package/dist/typings/src/Login/index.d.ts +5 -0
- package/dist/typings/src/Login/interface.d.ts +45 -0
- package/dist/typings/src/Login/multipleAccounts/index.d.ts +22 -0
- package/dist/typings/src/Login/multipleAccounts/panel.d.ts +46 -0
- package/dist/typings/src/Login/resetAccountName/businessRequest.d.ts +6 -0
- package/dist/typings/src/Login/resetAccountName/index.d.ts +3 -0
- package/dist/typings/src/Login/socialLogin/IdpButton/index.d.ts +5 -0
- package/dist/typings/src/Login/socialLogin/PasskeyButton/index.d.ts +6 -0
- package/dist/typings/src/Login/socialLogin/index.d.ts +18 -0
- package/dist/typings/src/Login/socialLogin/postMessage.d.ts +3 -0
- package/dist/typings/src/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +8 -0
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +14 -0
- package/dist/typings/src/MFA/businessRequest.d.ts +67 -0
- package/dist/typings/src/MFA/codemap.d.ts +2 -0
- package/dist/typings/src/MFA/context.d.ts +7 -0
- package/dist/typings/src/MFA/core/email.d.ts +23 -0
- package/dist/typings/src/MFA/core/face.d.ts +1 -0
- package/dist/typings/src/MFA/core/face_deps.d.ts +11 -0
- package/dist/typings/src/MFA/core/passkey.d.ts +16 -0
- package/dist/typings/src/MFA/core/sms.d.ts +30 -0
- package/dist/typings/src/MFA/core/totp.d.ts +20 -0
- package/dist/typings/src/MFA/index.d.ts +3 -0
- package/dist/typings/src/MFA/interface.d.ts +44 -0
- package/dist/typings/src/MFA/mfaMethods/index.d.ts +8 -0
- package/dist/typings/src/Message/index.d.ts +9 -0
- package/dist/typings/src/NeedHelpView/core/describeQuestions.d.ts +7 -0
- package/dist/typings/src/NeedHelpView/index.d.ts +1 -0
- package/dist/typings/src/NewSubmitSuccess/index.d.ts +2 -0
- package/dist/typings/src/NewSubmitSuccess/interface.d.ts +19 -0
- package/dist/typings/src/Qrcode/UiQrCode.d.ts +52 -0
- package/dist/typings/src/Qrcode/WorkQrCode.d.ts +44 -0
- package/dist/typings/src/Qrcode/hooks/useImage.d.ts +4 -0
- package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +73 -0
- package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +39 -0
- package/dist/typings/src/Qrcode/hooks/useStatus.d.ts +8 -0
- package/dist/typings/src/Qrcode/index.d.ts +11 -0
- package/dist/typings/src/RecoveryCode/businessRequest.d.ts +5 -0
- package/dist/typings/src/RecoveryCode/core/saveCode.d.ts +5 -0
- package/dist/typings/src/RecoveryCode/core/useCode.d.ts +7 -0
- package/dist/typings/src/RecoveryCode/index.d.ts +5 -0
- package/dist/typings/src/RecoveryCode/interface.d.ts +8 -0
- package/dist/typings/src/Register/codemap.d.ts +2 -0
- package/dist/typings/src/Register/components/AccountType/index.d.ts +3 -0
- package/dist/typings/src/Register/components/Agreements/index.d.ts +11 -0
- package/dist/typings/src/Register/core/WithCode.d.ts +17 -0
- package/dist/typings/src/Register/core/WithEmail.d.ts +13 -0
- package/dist/typings/src/Register/core/WithEmailCode.d.ts +14 -0
- package/dist/typings/src/Register/core/WithPhone.d.ts +13 -0
- package/dist/typings/src/Register/index.d.ts +2 -0
- package/dist/typings/src/Register/interface.d.ts +25 -0
- package/dist/typings/src/Register/utils.d.ts +1 -0
- package/dist/typings/src/SelectAccount/index.d.ts +2 -0
- package/dist/typings/src/SelectAccount2Login/index.d.ts +2 -0
- package/dist/typings/src/SelfUnlock/core/selfUnlock.d.ts +8 -0
- package/dist/typings/src/SelfUnlock/index.d.ts +2 -0
- package/dist/typings/src/SelfUnlock/interface.d.ts +15 -0
- package/dist/typings/src/SendCode/SendCodeBtn.d.ts +10 -0
- package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +16 -0
- package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +19 -0
- package/dist/typings/src/SendCode/index.d.ts +9 -0
- package/dist/typings/src/ShieldSpin/index.d.ts +9 -0
- package/dist/typings/src/SingleComponent/SingleComponent.d.ts +2 -0
- package/dist/typings/src/SingleComponent/index.d.ts +3 -0
- package/dist/typings/src/SubmitButton/index.d.ts +10 -0
- package/dist/typings/src/SubmitSuccess/index.d.ts +2 -0
- package/dist/typings/src/SubmitSuccess/interface.d.ts +17 -0
- package/dist/typings/src/TenantPortalSelect/CreateButton/index.d.ts +4 -0
- package/dist/typings/src/TenantPortalSelect/InputEmailCode/index.d.ts +8 -0
- package/dist/typings/src/TenantPortalSelect/JoinButton/index.d.ts +4 -0
- package/dist/typings/src/TenantPortalSelect/businessRequest.d.ts +6 -0
- package/dist/typings/src/TenantPortalSelect/core/CreateTenant.d.ts +4 -0
- package/dist/typings/src/TenantPortalSelect/core/JoinTenant.d.ts +4 -0
- package/dist/typings/src/TenantPortalSelect/index.d.ts +2 -0
- package/dist/typings/src/TenantPortalSelect/interface.d.ts +56 -0
- package/dist/typings/src/Type/application.d.ts +450 -0
- package/dist/typings/src/Type/index.d.ts +92 -0
- package/dist/typings/src/UploadImage/index.d.ts +5 -0
- package/dist/typings/src/ValidatorRules/CheckRules.d.ts +3 -0
- package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +8 -0
- package/dist/typings/src/ValidatorRules/ValidatorFormItem.d.ts +8 -0
- package/dist/typings/src/ValidatorRules/index.d.ts +33 -0
- package/dist/typings/src/ValidatorRules/useCheckRepeat.d.ts +1 -0
- package/dist/typings/src/VerifyCodeInput/index.d.ts +10 -0
- package/dist/typings/src/_utils/GuardErrorCode.d.ts +12 -0
- package/dist/typings/src/_utils/appendConfig.d.ts +4 -0
- package/dist/typings/src/_utils/clipboard.d.ts +1 -0
- package/dist/typings/src/_utils/compute.d.ts +22 -0
- package/dist/typings/src/_utils/config/index.d.ts +112 -0
- package/dist/typings/src/_utils/context.d.ts +170 -0
- package/dist/typings/src/_utils/corsVerification.d.ts +1 -0
- package/dist/typings/src/_utils/countryList.d.ts +7 -0
- package/dist/typings/src/_utils/errorFace.d.ts +12 -0
- package/dist/typings/src/_utils/facePlugin/index.d.ts +4 -0
- package/dist/typings/src/_utils/facePlugin/interface.d.ts +5 -0
- package/dist/typings/src/_utils/flowHandleStorage.d.ts +4 -0
- package/dist/typings/src/_utils/getCaptchaUrl.d.ts +1 -0
- package/dist/typings/src/_utils/getVersion.d.ts +1 -0
- package/dist/typings/src/_utils/guardDocument.d.ts +3 -0
- package/dist/typings/src/_utils/guardHttp.d.ts +28 -0
- package/dist/typings/src/_utils/hooks/index.d.ts +49 -0
- package/dist/typings/src/_utils/http.d.ts +33 -0
- package/dist/typings/src/_utils/index.d.ts +103 -0
- package/dist/typings/src/_utils/initAppId.d.ts +7 -0
- package/dist/typings/src/_utils/locales/en-us/index.d.ts +4 -0
- package/dist/typings/src/_utils/locales/index.d.ts +9 -0
- package/dist/typings/src/_utils/locales/ja-jp/index.d.ts +4 -0
- package/dist/typings/src/_utils/locales/zh-cn/index.d.ts +4 -0
- package/dist/typings/src/_utils/locales/zh-tw/index.d.ts +4 -0
- package/dist/typings/src/_utils/logger/index.d.ts +15 -0
- package/dist/typings/src/_utils/logger/interface.d.ts +5 -0
- package/dist/typings/src/_utils/passkey.d.ts +3 -0
- package/dist/typings/src/_utils/popupCenter.d.ts +9 -0
- package/dist/typings/src/_utils/responseManagement/index.d.ts +4 -0
- package/dist/typings/src/_utils/responseManagement/interface.d.ts +29 -0
- package/dist/typings/src/_utils/tenant.d.ts +19 -0
- package/dist/typings/src/_utils/useErrorText.d.ts +5 -0
- package/dist/typings/src/index.d.ts +6 -0
- package/package.json +21 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
import { Agreement } from '../../../Type/application';
|
|
4
|
+
export interface AgreementsProps {
|
|
5
|
+
value?: boolean;
|
|
6
|
+
onChange?: (value: boolean, acceptList: (string | number)[]) => void;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
agreements: Agreement[];
|
|
9
|
+
showError?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Agreements: React.FC<AgreementsProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithCodeProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
onBeforeRegister?: Function;
|
|
7
|
+
agreements: Agreement[];
|
|
8
|
+
publicConfig?: ApplicationConfig;
|
|
9
|
+
registeContext?: any;
|
|
10
|
+
methods: any[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 手机 Code 注册
|
|
14
|
+
* @param param0
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithEmailProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
onBeforeRegister?: Function;
|
|
7
|
+
publicConfig?: ApplicationConfig;
|
|
8
|
+
agreements: Agreement[];
|
|
9
|
+
registeContext?: any;
|
|
10
|
+
label?: string;
|
|
11
|
+
method?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithEmailCodeProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
onBeforeRegister?: Function;
|
|
7
|
+
agreements: Agreement[];
|
|
8
|
+
publicConfig?: ApplicationConfig;
|
|
9
|
+
registeContext?: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated 废弃 🚒
|
|
13
|
+
*/
|
|
14
|
+
export declare const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithPhoneProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
agreements: Agreement[];
|
|
7
|
+
publicConfig?: ApplicationConfig;
|
|
8
|
+
registeContext?: any;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated 废弃 🚒
|
|
12
|
+
*/
|
|
13
|
+
export declare const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
2
|
+
import { IG2FCProps, IG2Config, IG2Events } from '../Type';
|
|
3
|
+
import { Agreement, RegisterMethods } from '../Type/application';
|
|
4
|
+
export interface RegisterConfig extends IG2Config {
|
|
5
|
+
disableRegister?: boolean;
|
|
6
|
+
registerMethods?: string[];
|
|
7
|
+
defaultRegisterMethod?: string;
|
|
8
|
+
publicKey?: string;
|
|
9
|
+
agreementEnabled?: boolean;
|
|
10
|
+
agreements?: Agreement[];
|
|
11
|
+
registerContext?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface RegisterEvents extends IG2Events {
|
|
14
|
+
onBeforeRegister?: (registerInfo: any, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
15
|
+
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
16
|
+
onRegisterError?: (error: any) => void;
|
|
17
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
20
|
+
config?: Partial<RegisterConfig>;
|
|
21
|
+
}
|
|
22
|
+
export interface GuardRegisterViewProps extends GuardRegisterProps {
|
|
23
|
+
config: RegisterConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare const getDefaultRegisterConfig: () => RegisterConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsChangeComplete: (currentMode: 'phone' | 'email' | string) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
2
|
+
import { IG2Config, IG2Events, IG2FCProps } from '../Type';
|
|
3
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
4
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
5
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
6
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
7
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
8
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
9
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
12
|
+
}
|
|
13
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
14
|
+
config: Partial<IG2Config>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
import { ButtonProps } from 'shim-antd';
|
|
4
|
+
export interface SendCodeProps extends ButtonProps {
|
|
5
|
+
beforeSend: () => Promise<boolean>;
|
|
6
|
+
btnRef?: React.RefObject<HTMLButtonElement>;
|
|
7
|
+
setSent?: (value: boolean) => void;
|
|
8
|
+
sendDesc?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SendCodeBtn: React.FC<SendCodeProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
import { InputProps } from 'shim-antd';
|
|
4
|
+
import { EmailScene } from '../Type';
|
|
5
|
+
export interface SendCodeByEmailProps extends InputProps {
|
|
6
|
+
data?: string;
|
|
7
|
+
form?: any;
|
|
8
|
+
onSendCodeBefore?: any;
|
|
9
|
+
fieldName?: string;
|
|
10
|
+
autoSubmit?: boolean;
|
|
11
|
+
scene: EmailScene;
|
|
12
|
+
captchaCode?: string;
|
|
13
|
+
onSendCodeError?: any;
|
|
14
|
+
codeFieldName?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const SendCodeByEmail: React.FC<SendCodeByEmailProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { SceneType } from 'authing-js-sdk';
|
|
3
|
+
import './style.less';
|
|
4
|
+
import { InputProps } from 'shim-antd';
|
|
5
|
+
export interface SendCodeByPhoneProps extends InputProps {
|
|
6
|
+
data?: string;
|
|
7
|
+
form?: any;
|
|
8
|
+
onSendCodeBefore?: any;
|
|
9
|
+
onSendCodeAfter?: any;
|
|
10
|
+
onSendCodeError?: any;
|
|
11
|
+
fieldName?: string;
|
|
12
|
+
autoSubmit?: boolean;
|
|
13
|
+
scene: SceneType;
|
|
14
|
+
areaCode?: string;
|
|
15
|
+
isInternationSms?: boolean;
|
|
16
|
+
codeFieldName?: string;
|
|
17
|
+
captchaCode?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const SendCodeByPhone: React.FC<SendCodeByPhoneProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
import { InputProps } from 'shim-antd';
|
|
4
|
+
export interface SendPhoneCodeProps extends InputProps {
|
|
5
|
+
form?: any;
|
|
6
|
+
beforeSend?: any;
|
|
7
|
+
autoSubmit?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SendCode: React.FC<SendPhoneCodeProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
export declare const ShieldSpinLoading: (props: JSX.IntrinsicAttributes & React.ClassAttributes<HTMLEmbedElement> & React.EmbedHTMLAttributes<HTMLEmbedElement>) => JSX.Element;
|
|
3
|
+
interface IG2SpinProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ShieldSpin: (props: IG2SpinProps) => JSX.Element;
|
|
8
|
+
export declare const Spin: () => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { ButtonProps } from 'shim-antd';
|
|
3
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
4
|
+
text?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GuardModuleType } from '../Guard';
|
|
2
|
+
import { IG2Config, IG2Events, IG2FCViewProps } from '../Type';
|
|
3
|
+
export interface SubmitSuccessEvents extends IG2Events {
|
|
4
|
+
}
|
|
5
|
+
export interface SubmitSuccessConfig extends IG2Config {
|
|
6
|
+
}
|
|
7
|
+
export interface SubmitSuccessInitData {
|
|
8
|
+
title?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
countDesc?: string;
|
|
12
|
+
changeModule?: GuardModuleType;
|
|
13
|
+
}
|
|
14
|
+
export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
15
|
+
config: SubmitSuccessConfig;
|
|
16
|
+
initData?: SubmitSuccessInitData;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare enum TenantBusinessAction {
|
|
2
|
+
JoinTenant = "join-tenant-portal",
|
|
3
|
+
CreateTenant = "create-tenant-portal"
|
|
4
|
+
}
|
|
5
|
+
export declare const authFlow: (action: TenantBusinessAction, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
6
|
+
export declare const getTenantInfoByCode: (code: string) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AvatarProps } from 'shim-antd';
|
|
2
|
+
import { AuthenticationClient, IG2Events, User } from '../Type';
|
|
3
|
+
export interface TenantPortalListType {
|
|
4
|
+
tenantName: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
tenantLogo: string;
|
|
7
|
+
host: string;
|
|
8
|
+
description: string;
|
|
9
|
+
/** 是否为用户池 */
|
|
10
|
+
isUserPool: boolean;
|
|
11
|
+
userName?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TenantPortalSelectType extends Omit<TenantPortalListType, 'userName'> {
|
|
14
|
+
}
|
|
15
|
+
/** 租户门户选择状态机返回数据类型 */
|
|
16
|
+
export interface TenantPortalDataType {
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
logo: string;
|
|
20
|
+
list: TenantPortalListType[];
|
|
21
|
+
}
|
|
22
|
+
export interface TenantPortalDataItem extends TenantPortalListType {
|
|
23
|
+
avatar?: AvatarProps;
|
|
24
|
+
extra?: React.ReactNode;
|
|
25
|
+
title?: string;
|
|
26
|
+
isJoin?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** 租户门户相关事件 */
|
|
29
|
+
export interface TenantPortalEvents extends IG2Events {
|
|
30
|
+
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
31
|
+
/** 租户门户选择回调 */
|
|
32
|
+
onTenantSelect?: (data?: TenantPortalSelectType) => void;
|
|
33
|
+
}
|
|
34
|
+
export type TenantView = 'default' | 'join' | 'create';
|
|
35
|
+
export interface TenantButtonProps {
|
|
36
|
+
className?: string;
|
|
37
|
+
onClick?: () => void;
|
|
38
|
+
style?: React.CSSProperties;
|
|
39
|
+
icon: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}
|
|
42
|
+
export interface BackProps {
|
|
43
|
+
onBack: () => void;
|
|
44
|
+
}
|
|
45
|
+
export interface CreateTenantProps extends BackProps {
|
|
46
|
+
}
|
|
47
|
+
export interface JoinTenantProps extends BackProps {
|
|
48
|
+
}
|
|
49
|
+
export declare enum JoinTenantStepEnum {
|
|
50
|
+
InputTenantCode = "inputTenantCode",
|
|
51
|
+
InputEnterpriseEmail = "inputEnterpriseEmail",
|
|
52
|
+
VerifyEmailCode = "verifyEmailCode",
|
|
53
|
+
NoEnterpriseDomain = "noEnterpriseDomain",
|
|
54
|
+
JoinSuccess = "joinSuccess",
|
|
55
|
+
JoinFailed = "joinFailed"
|
|
56
|
+
}
|