@authing/react-ui-components 4.0.4-alpha.1 → 4.0.4-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/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -16
- package/package.json +2 -3
- package/types/AccountMerge/UserRadio.d.ts +5 -0
- package/types/AccountMerge/index.d.ts +3 -0
- package/types/AccountMerge/interface.d.ts +27 -0
- package/types/AccountMerge/utils.d.ts +3 -0
- package/types/ChangePassword/businessRequest.d.ts +1 -2
- package/types/ChangePassword/core/completePassword.d.ts +0 -6
- package/types/ChangePassword/index.d.ts +0 -12
- package/types/CompleteInfo/businessRequest.d.ts +3 -9
- package/types/CompleteInfo/core/completeInfo.d.ts +0 -5
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
- package/types/CompleteInfo/index.d.ts +0 -11
- package/types/CompleteInfo/utils.d.ts +7 -1
- package/types/ForgetPassword/index.d.ts +0 -3
- package/types/IdentityBinding/IdentityBinding.d.ts +0 -5
- package/types/IdentityBinding/businessRequest.d.ts +6 -3
- package/types/Login/core/withPassword/FormItemAccount.d.ts +0 -5
- package/types/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -5
- package/types/Login/core/withPassword/InputAccount.d.ts +0 -4
- package/types/Login/core/withPassword/index.d.ts +0 -5
- package/types/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/types/MFA/businessRequest.d.ts +0 -11
- package/types/MFA/core/email.d.ts +0 -15
- package/types/MFA/core/face.d.ts +0 -5
- package/types/MFA/core/face_deps.d.ts +0 -6
- package/types/MFA/core/sms.d.ts +0 -10
- package/types/MFA/core/totp.d.ts +0 -17
- package/types/MFA/index.d.ts +0 -4
- package/types/Qrcode/WorkQrCode.d.ts +1 -1
- package/types/RecoveryCode/businessRequest.d.ts +1 -1
- package/types/RecoveryCode/index.d.ts +0 -3
- package/types/Register/core/WithCode.d.ts +3 -4
- package/types/Register/core/WithEmail.d.ts +1 -7
- package/types/Register/core/WithEmailCode.d.ts +11 -0
- package/types/Register/core/WithPhone.d.ts +10 -0
- package/types/Register/interface.d.ts +1 -17
- package/types/SelfUnlock/index.d.ts +0 -4
- package/types/SendCode/SendCodeByPhone.d.ts +1 -1
- package/types/Type/index.d.ts +0 -14
- package/types/_utils/config/index.d.ts +3 -11
- package/types/_utils/http.d.ts +0 -17
- package/types/_utils/index.d.ts +1 -16
- package/types/_utils/locales/index.d.ts +1 -2
- package/types/_utils/responseManagement/index.d.ts +0 -6
- package/types/version/version.d.ts +1 -1
package/types/_utils/http.d.ts
CHANGED
|
@@ -28,23 +28,6 @@ export interface AuthingResponse<T = any> {
|
|
|
28
28
|
flowHandle?: string;
|
|
29
29
|
}
|
|
30
30
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
31
|
-
/**
|
|
32
|
-
* 根据 Server 返回状态进行的状态流转函数
|
|
33
|
-
* 默认响应拦截器中自动调用
|
|
34
|
-
*/
|
|
35
31
|
onGuardHandling?: () => CodeAction;
|
|
36
|
-
/**
|
|
37
|
-
* Response 返回 actions 是否需要模块内部处理
|
|
38
|
-
* 根据 status === 200 判断
|
|
39
|
-
*/
|
|
40
|
-
isBusiness?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 流程是否结束(兼容老版本字段)
|
|
43
|
-
*/
|
|
44
32
|
isFlowEnd?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* 本次响应 Action 类型
|
|
47
|
-
* see: packages/react-components/components/_utils/responseManagement/interface.ts
|
|
48
|
-
*/
|
|
49
|
-
responseActionType?: CodeAction;
|
|
50
33
|
}
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Rule } from 'antd/lib/form';
|
|
2
2
|
import qs from 'qs';
|
|
3
3
|
import { User } from 'authing-js-sdk';
|
|
4
4
|
import { GuardProps } from '../Guard';
|
|
5
5
|
import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods } from '../Type/application';
|
|
6
6
|
import { Lang } from '../Type';
|
|
7
|
-
import { InputMethod } from 'components';
|
|
8
7
|
export * from './popupCenter';
|
|
9
8
|
export * from './clipboard';
|
|
10
9
|
export declare const VALIDATE_PATTERN: {
|
|
@@ -17,20 +16,6 @@ export declare const VALIDATE_PATTERN: {
|
|
|
17
16
|
export declare const validate: (type: keyof typeof VALIDATE_PATTERN, val: string) => boolean;
|
|
18
17
|
export declare const getRequiredRules: (msg: string) => Rule[];
|
|
19
18
|
export declare const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
20
|
-
/**
|
|
21
|
-
* 验证码是否正确
|
|
22
|
-
* @param form form 实例
|
|
23
|
-
* @param key 当前 FormItem 对应值的 key,比如当前为邮箱验证码就传入邮箱输入框的 formItem name
|
|
24
|
-
* @returns Array
|
|
25
|
-
*/
|
|
26
|
-
export declare const fieldCodeCorrect: (form: FormInstance, key: string | undefined, options: {
|
|
27
|
-
currentMethod: InputMethod;
|
|
28
|
-
areaCode: string;
|
|
29
|
-
isInternationSms?: boolean | undefined;
|
|
30
|
-
}) => {
|
|
31
|
-
validateTrigger: string[];
|
|
32
|
-
validator: (rule: RuleObject, value: string) => Promise<void>;
|
|
33
|
-
}[];
|
|
34
19
|
export declare function getDeviceName(): string | null | undefined;
|
|
35
20
|
export declare type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
|
|
36
21
|
export declare const insertStyles: (styles: string | any, recordKey?: "appConfig" | "userConfig" | undefined) => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
import { Lang } from '../../Type';
|
|
3
|
-
declare let i18nReady: boolean;
|
|
4
3
|
export interface InitGuardI18nOptions {
|
|
5
4
|
defaultLanguage?: Lang | 'browser';
|
|
6
5
|
}
|
|
7
6
|
export declare const initGuardI18n: (options: InitGuardI18nOptions) => void;
|
|
8
|
-
export { i18n
|
|
7
|
+
export { i18n };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { AuthingGuardResponse, AuthingResponse } from '../http';
|
|
2
2
|
import { CodeAction } from './interface';
|
|
3
|
-
/**
|
|
4
|
-
* 全局的错误拦截器
|
|
5
|
-
* @param res
|
|
6
|
-
* @param callBack
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
3
|
export declare const errorCodeInterceptor: (res: AuthingResponse<any>, callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => AuthingResponse<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.4-alpha.
|
|
1
|
+
declare const _default: "4.0.4-alpha.2";
|
|
2
2
|
export default _default;
|