@authing/guard-shim-react 4.4.0-alpha.2 → 4.4.0-alpha.20
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/guard.min.js +9943 -9960
- package/dist/typings/src/AuthClientProvider/AuthClientProvider.d.ts +1 -0
- package/dist/typings/src/AuthClientProvider/context.d.ts +1 -0
- package/dist/typings/src/Back/index.d.ts +1 -0
- package/dist/typings/src/BindTotp/core/bindSuccess.d.ts +1 -0
- package/dist/typings/src/BindTotp/core/securityCode.d.ts +1 -0
- package/dist/typings/src/BindTotp/index.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/PasswordNotSafeReset.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/completePassword.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/firstLoginReset.d.ts +1 -0
- package/dist/typings/src/ChangePassword/index.d.ts +1 -0
- package/dist/typings/src/CompleteInfo/businessRequest.d.ts +1 -1
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +1 -0
- package/dist/typings/src/CompleteInfo/index.d.ts +1 -0
- package/dist/typings/src/CompleteInfo/interface.d.ts +1 -1
- package/dist/typings/src/CopyAbleText/index.d.ts +1 -0
- package/dist/typings/src/DownloadAuthenticator/index.d.ts +1 -0
- package/dist/typings/src/Error/index.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/InputPassword/index.d.ts +2 -1
- package/dist/typings/src/ForgetPassword/core/inputIdentify.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/index.d.ts +1 -0
- package/dist/typings/src/Guard/Guard.d.ts +2 -2
- package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +1 -1
- package/dist/typings/src/Guard/config.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useGuardView.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +4 -4
- package/dist/typings/src/Guard/core/index.d.ts +1 -0
- package/dist/typings/src/Guard/core/renderContext.d.ts +1 -0
- package/dist/typings/src/Guard/core/renderModule.d.ts +1 -0
- package/dist/typings/src/GuardButton/GuardButton.d.ts +1 -0
- package/dist/typings/src/GuardFace/index.d.ts +1 -0
- package/dist/typings/src/GuardSelect/index.d.ts +1 -0
- package/dist/typings/src/IconFont/index.d.ts +1 -0
- package/dist/typings/src/IdentityBinding/IdentityBinding.d.ts +1 -0
- package/dist/typings/src/IdentityBindingAsk/IdentityBindingAsk.d.ts +1 -0
- package/dist/typings/src/ImagePro/index.d.ts +1 -0
- package/dist/typings/src/InputNumber/index.d.ts +2 -1
- package/dist/typings/src/LazyloadImage/index.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +1 -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 +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/index.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +3 -3
- package/dist/typings/src/Login/core/withPassword/FormItemAccount.d.ts +1 -0
- package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +1 -0
- package/dist/typings/src/Login/core/withPassword/InputAccount.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/FormItemIdentify.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/InputInternationPhone.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/VirtualDropdown.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/inputIdentify.d.ts +1 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -1
- package/dist/typings/src/Login/index.d.ts +1 -0
- package/dist/typings/src/Login/multipleAccounts/index.d.ts +1 -0
- package/dist/typings/src/Login/multipleAccounts/panel.d.ts +1 -0
- package/dist/typings/src/Login/resetAccountName/index.d.ts +1 -0
- package/dist/typings/src/Login/socialLogin/index.d.ts +1 -0
- package/dist/typings/src/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +1 -0
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -0
- package/dist/typings/src/MFA/context.d.ts +1 -0
- package/dist/typings/src/MFA/core/email.d.ts +1 -0
- package/dist/typings/src/MFA/core/sms.d.ts +1 -0
- package/dist/typings/src/MFA/core/totp.d.ts +1 -0
- package/dist/typings/src/MFA/index.d.ts +1 -0
- package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
- package/dist/typings/src/NewSubmitSuccess/index.d.ts +1 -0
- package/dist/typings/src/Qrcode/UiQrCode.d.ts +2 -1
- package/dist/typings/src/Qrcode/WorkQrCode.d.ts +2 -1
- package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +1 -0
- package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +2 -2
- package/dist/typings/src/Qrcode/index.d.ts +1 -1
- package/dist/typings/src/RecoveryCode/core/saveCode.d.ts +1 -0
- package/dist/typings/src/RecoveryCode/core/useCode.d.ts +1 -0
- package/dist/typings/src/RecoveryCode/index.d.ts +1 -0
- package/dist/typings/src/Register/components/Agreements/index.d.ts +1 -0
- package/dist/typings/src/Register/core/WithCode.d.ts +1 -0
- package/dist/typings/src/Register/core/WithEmail.d.ts +1 -0
- package/dist/typings/src/Register/core/WithEmailCode.d.ts +1 -0
- package/dist/typings/src/Register/core/WithPhone.d.ts +1 -0
- package/dist/typings/src/Register/index.d.ts +1 -0
- package/dist/typings/src/SelfUnlock/index.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeBtn.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +1 -0
- package/dist/typings/src/SendCode/index.d.ts +1 -0
- package/dist/typings/src/SingleComponent/SingleComponent.d.ts +1 -0
- package/dist/typings/src/SingleComponent/index.d.ts +1 -0
- package/dist/typings/src/SubmitButton/index.d.ts +2 -1
- package/dist/typings/src/SubmitSuccess/index.d.ts +1 -0
- package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -0
- package/dist/typings/src/Type/application.d.ts +6 -6
- package/dist/typings/src/Type/index.d.ts +1 -0
- package/dist/typings/src/UploadImage/index.d.ts +1 -0
- package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +1 -0
- package/dist/typings/src/ValidatorRules/ValidatorFormItem.d.ts +1 -0
- package/dist/typings/src/ValidatorRules/index.d.ts +1 -1
- package/dist/typings/src/VerifyCodeInput/index.d.ts +1 -0
- package/dist/typings/src/_utils/config/index.d.ts +1 -0
- package/dist/typings/src/_utils/context.d.ts +2 -1
- package/dist/typings/src/_utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/typings/shim-react18/index.d.ts +0 -8
|
@@ -6,4 +6,4 @@ export declare enum CompleteInfoAuthFlowAction {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
8
8
|
export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
9
|
-
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> |
|
|
9
|
+
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
@@ -21,7 +21,7 @@ export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
|
21
21
|
initData: any;
|
|
22
22
|
onLogin?: any;
|
|
23
23
|
}
|
|
24
|
-
export type ExtendsFieldType = 'user' | 'internal';
|
|
24
|
+
export declare type ExtendsFieldType = 'user' | 'internal';
|
|
25
25
|
export interface ExtendsField {
|
|
26
26
|
type: ExtendsFieldType;
|
|
27
27
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { React } from 'shim-react';
|
|
2
3
|
import { PasswordProps, InputProps } from 'shim-antd/lib/input';
|
|
3
|
-
export declare const InputPasswordForget: React.ForwardRefExoticComponent<
|
|
4
|
+
export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<InputProps>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GuardEvents } from './event';
|
|
3
3
|
import { GuardAppendConfig, IG2FCProps } from '../Type';
|
|
4
4
|
import { GuardLocalConfig } from './config';
|
|
@@ -7,4 +7,4 @@ export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
|
7
7
|
config?: Partial<GuardLocalConfig>;
|
|
8
8
|
appendConfig?: GuardAppendConfig;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare function Guard(props: GuardProps): JSX.Element;
|
|
@@ -14,7 +14,7 @@ export interface StateMachineLog {
|
|
|
14
14
|
date: number;
|
|
15
15
|
dataSource: ModuleState;
|
|
16
16
|
}
|
|
17
|
-
export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
|
|
17
|
+
export declare type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
|
|
18
18
|
export declare class GuardStateMachine {
|
|
19
19
|
private order;
|
|
20
20
|
private config;
|
|
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
|
|
|
13
13
|
* 登录时所有支持的登录列表(前端定义列表)
|
|
14
14
|
* 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
|
|
15
15
|
*/
|
|
16
|
-
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' | 'authing-otp-push';
|
|
16
|
+
export declare 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' | 'authing-otp-push';
|
|
17
17
|
/**
|
|
18
18
|
* when: 多账号页面跳转进入登录页面
|
|
19
19
|
* 携带的回填数据信息
|
|
@@ -27,7 +27,7 @@ export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickn
|
|
|
27
27
|
/**
|
|
28
28
|
* Store instance
|
|
29
29
|
*/
|
|
30
|
-
export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
|
|
30
|
+
export declare type StoreInstance = ReturnType<MultipleAccount['getStore']>;
|
|
31
31
|
/**
|
|
32
32
|
* 当前 userId 对应的类型
|
|
33
33
|
*/
|
|
@@ -249,7 +249,7 @@ declare class MultipleAccount {
|
|
|
249
249
|
setUserInfo: (user: Omit<User & {
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
|
-
}, "
|
|
252
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
253
253
|
setLoginWayByHttpData: (account: string, data: {
|
|
254
254
|
username?: string | undefined;
|
|
255
255
|
phone?: string | undefined;
|
|
@@ -292,7 +292,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
|
|
|
292
292
|
setUserInfo: (user: Omit<User & {
|
|
293
293
|
id: string;
|
|
294
294
|
loginAccount?: string | undefined;
|
|
295
|
-
}, "
|
|
295
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
296
296
|
setLoginWayByHttpData: (account: string, data: {
|
|
297
297
|
username?: string | undefined;
|
|
298
298
|
phone?: string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { InputProps } from 'shim-antd';
|
|
2
3
|
import { React } from 'shim-react';
|
|
3
4
|
export interface InputNumberProps extends InputProps {
|
|
4
5
|
}
|
|
5
|
-
export declare const InputNumber: React.ForwardRefExoticComponent<
|
|
6
|
+
export declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<any>>;
|
|
@@ -9,7 +9,7 @@ export interface CheckPushCodeStatusProps {
|
|
|
9
9
|
export interface OnLoginProps {
|
|
10
10
|
account: string;
|
|
11
11
|
}
|
|
12
|
-
export type LoginStatus = 'before' | 'pending';
|
|
12
|
+
export declare type LoginStatus = 'before' | 'pending';
|
|
13
13
|
export interface LoginWithAuthingOtpPushProps {
|
|
14
14
|
onLoginSuccess?: any;
|
|
15
15
|
multipleInstance?: StoreInstance;
|
|
@@ -20,9 +20,9 @@ export interface PushLoginGudeModalProps {
|
|
|
20
20
|
visible: boolean;
|
|
21
21
|
onClose: () => void;
|
|
22
22
|
}
|
|
23
|
-
export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
|
|
23
|
+
export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
|
|
24
24
|
export interface SelectorOption {
|
|
25
25
|
value: Selector;
|
|
26
26
|
label: string;
|
|
27
27
|
}
|
|
28
|
-
export type SelectorOptions = SelectorOption[];
|
|
28
|
+
export declare type SelectorOptions = SelectorOption[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormInstance } from 'shim-antd/lib/form';
|
|
2
3
|
import { React } from 'shim-react';
|
|
3
4
|
import { BackFillMultipleState, LoginWay } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
@@ -35,7 +36,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
35
36
|
setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
|
|
36
37
|
id: string;
|
|
37
38
|
loginAccount?: string | undefined;
|
|
38
|
-
}, "
|
|
39
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
39
40
|
setLoginWayByHttpData: (account: string, data: {
|
|
40
41
|
username?: string | undefined;
|
|
41
42
|
phone?: string | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { React } from 'shim-react';
|
|
2
3
|
import './index.less';
|
|
3
4
|
import { CodeStatusDescriptions } from './WorkQrCode';
|
|
4
|
-
export type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
|
|
5
|
+
export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
|
|
5
6
|
export declare const prefix = "refactor";
|
|
6
7
|
export interface UiQrProps {
|
|
7
8
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { React } from 'shim-react';
|
|
2
3
|
import { QrCodeResponse } from './hooks/usePostQrCode';
|
|
3
4
|
import { CodeStatus, UiQrProps } from './UiQrCode';
|
|
4
5
|
/**
|
|
5
6
|
* 二维码不同状态下的底部描述文字
|
|
6
7
|
*/
|
|
7
|
-
export type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
|
|
8
|
+
export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
|
|
8
9
|
export interface WorkQrCodeRef {
|
|
9
10
|
referQrCode: () => Promise<{
|
|
10
11
|
random: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
2
|
import { CodeStatus } from '../UiQrCode';
|
|
3
|
-
export type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
|
|
4
|
-
export type RootState = {
|
|
3
|
+
export declare type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
|
|
4
|
+
export declare type RootState = {
|
|
5
5
|
/**
|
|
6
6
|
* 状态
|
|
7
7
|
*/
|