@authing/react-ui-components 4.4.4-ey.3 → 4.4.4-ey.30
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 +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +7 -3
- package/types/CompleteInfo/businessRequest.d.ts +1 -1
- package/types/CompleteInfo/interface.d.ts +1 -1
- package/types/CompleteInfo/utils.d.ts +3 -13
- package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +2 -0
- package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +2 -0
- package/types/EY/interface.d.ts +1 -0
- package/types/Guard/GuardModule/stateMachine.d.ts +1 -1
- package/types/Guard/authClient.d.ts +1 -1
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +11 -11
- package/types/Guard/core/useAppendConfig.d.ts +1 -1
- package/types/Guard/core/usePlugin.d.ts +1 -1
- package/types/Guard/event.d.ts +3 -36
- package/types/Guard/module.d.ts +24 -24
- package/types/IconFont/useGuardIconfont.d.ts +1 -1
- package/types/Login/core/withAuthingOtpPush/types.d.ts +3 -3
- package/types/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/types/MFA/BindPreCheck/index.d.ts +3 -0
- package/types/MFA/VerifyCodeInput/ey.d.ts +3 -2
- package/types/MFA/VerifyCodeInput/index.d.ts +5 -1
- package/types/MFA/businessRequest.d.ts +1 -0
- package/types/MFA/core/email.d.ts +1 -0
- package/types/MFA/core/sms.d.ts +1 -0
- package/types/MFA/core/totp.d.ts +1 -0
- package/types/MFA/mfaMethods/index.d.ts +1 -0
- package/types/Qrcode/UiQrCode.d.ts +1 -1
- package/types/Qrcode/WorkQrCode.d.ts +1 -1
- package/types/Qrcode/hooks/usePreQrCode.d.ts +2 -2
- package/types/Qrcode/hooks/useStatus.d.ts +2 -1
- package/types/Qrcode/index.d.ts +1 -1
- package/types/SendCode/SendCodeBtn.d.ts +1 -0
- package/types/SendCode/index.d.ts +1 -0
- package/types/Type/application.d.ts +12 -11
- package/types/Type/index.d.ts +1 -1
- package/types/ValidatorRules/index.d.ts +1 -1
- package/types/_utils/config/index.d.ts +2 -2
- package/types/_utils/context.d.ts +2 -2
- package/types/_utils/guardHttp.d.ts +2 -2
- package/types/_utils/hooks/index.d.ts +1 -1
- package/types/_utils/http.d.ts +3 -3
- package/types/_utils/index.d.ts +8 -8
- package/types/_utils/initAppId.d.ts +1 -1
- package/types/_utils/responseManagement/interface.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
|
@@ -15,10 +15,10 @@ export declare class GuardHttp {
|
|
|
15
15
|
get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
|
|
16
16
|
post: <T = any>(path: string, data: any, config?: {
|
|
17
17
|
headers: any;
|
|
18
|
-
}
|
|
18
|
+
}) => Promise<AuthingGuardResponse<T>>;
|
|
19
19
|
postForm: <T = any>(path: string, formData: any, config?: {
|
|
20
20
|
headers: any;
|
|
21
|
-
}
|
|
21
|
+
}) => Promise<AuthingGuardResponse<T>>;
|
|
22
22
|
authFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
|
|
23
23
|
initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => this | undefined;
|
|
24
24
|
responseIntercept: (res: AuthingResponse) => AuthingGuardResponse;
|
|
@@ -9,7 +9,7 @@ export interface PhoneValidResult {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const HIDE_SOCIALS: string[];
|
|
11
11
|
export declare const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
12
|
-
export declare const useAppId: (appId?: string
|
|
12
|
+
export declare const useAppId: (appId?: string) => string;
|
|
13
13
|
export declare const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
|
|
14
14
|
export declare const useMediaSize: () => {
|
|
15
15
|
isPhoneMedia: boolean;
|
package/types/_utils/http.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { CodeAction } from './responseManagement/interface';
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
export declare const requestClient: {
|
|
4
|
-
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
5
|
-
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig
|
|
4
|
+
(input: URL | RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
5
|
+
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig): Promise<AuthingResponse<T>>;
|
|
6
6
|
post<T_1>(path: string, data: any, config?: {
|
|
7
7
|
headers: any;
|
|
8
8
|
} | undefined): Promise<AuthingResponse<T_1>>;
|
|
9
9
|
postForm<T_2>(path: string, formData: any, config?: {
|
|
10
10
|
headers: any;
|
|
11
|
-
}
|
|
11
|
+
}): Promise<AuthingResponse<T_2>>;
|
|
12
12
|
baseUrl: string;
|
|
13
13
|
setBaseUrl(base: string): void;
|
|
14
14
|
langHeader: string;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export declare const VALIDATE_PATTERN: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const validate: (type: keyof typeof VALIDATE_PATTERN, val: string) => boolean;
|
|
17
17
|
export declare const getRequiredRules: (msg: string) => Rule[];
|
|
18
|
-
export declare const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string
|
|
18
|
+
export declare const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string) => Rule[];
|
|
19
19
|
export declare function getDeviceName(): string | null | undefined;
|
|
20
|
-
export
|
|
21
|
-
export declare const insertStyles: (styles: string | any, recordKey?:
|
|
20
|
+
export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
|
|
21
|
+
export declare const insertStyles: (styles: string | any, recordKey?: STYLE_RECORD_KEY) => void;
|
|
22
22
|
export declare const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
|
|
23
23
|
export declare const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
|
|
24
24
|
/**
|
|
@@ -39,7 +39,7 @@ export declare function deepMerge<T extends object = any>(target: T, ...sources:
|
|
|
39
39
|
* 在托管页下上传query中指定的用户自定义字段进行补全
|
|
40
40
|
* @param params 指定上传的用户自定义字段
|
|
41
41
|
*/
|
|
42
|
-
export declare const getUserRegisterParams: (params?: string[]
|
|
42
|
+
export declare const getUserRegisterParams: (params?: string[]) => {
|
|
43
43
|
key: string;
|
|
44
44
|
value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
|
|
45
45
|
}[];
|
|
@@ -73,10 +73,10 @@ export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
|
|
|
73
73
|
validateMessage: () => string;
|
|
74
74
|
}>;
|
|
75
75
|
export declare const getSymbolTypeLength: (pwd: string) => number;
|
|
76
|
-
export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string
|
|
77
|
-
export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string
|
|
76
|
+
export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
|
|
77
|
+
export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
|
|
78
78
|
export declare const sleep: (delay: number) => Promise<unknown>;
|
|
79
|
-
export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean
|
|
79
|
+
export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
|
|
80
80
|
export declare const transformMethod: (method: RegisterMethods | string) => string;
|
|
81
81
|
export declare const transformSortMethod: (method: RegisterSortMethods | string) => string;
|
|
82
82
|
export declare const mailDesensitization: (mail: string) => string;
|
|
@@ -96,5 +96,5 @@ export declare const getCurrentLng: () => Lang;
|
|
|
96
96
|
export declare const regexFromString: (string: string) => RegExp | null;
|
|
97
97
|
export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
98
98
|
export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
99
|
-
export declare const getSortTabs: (tabs: string[], tab?: string
|
|
99
|
+
export declare const getSortTabs: (tabs: string[], tab?: string) => string[];
|
|
100
100
|
export declare const isWeComOrigin: (event: MessageEvent) => boolean;
|
|
@@ -4,4 +4,4 @@ export interface UseInitAppidProps {
|
|
|
4
4
|
propsAuthClient?: AuthenticationClient;
|
|
5
5
|
setError?: any;
|
|
6
6
|
}
|
|
7
|
-
export declare const useInitAppId: (propsAppid?: string
|
|
7
|
+
export declare const useInitAppId: (propsAppid?: string, propsAuthClient?: AuthenticationClient, setError?: any) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.4-ey.
|
|
1
|
+
declare const _default: "4.4.4-ey.30";
|
|
2
2
|
export default _default;
|