@authing/react-ui-components 4.0.10-rc.0 → 4.0.10-rc.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.
Files changed (39) hide show
  1. package/lib/index.min.css +2 -2
  2. package/lib/index.min.js +1 -1
  3. package/lib/index.min.js.LICENSE.txt +129 -12
  4. package/package.json +1 -1
  5. package/types/AuthClientProvider/AuthClientProvider.d.ts +4 -2
  6. package/types/Back/index.d.ts +3 -1
  7. package/types/ChangePassword/index.d.ts +2 -1
  8. package/types/CompleteInfo/businessRequest.d.ts +1 -1
  9. package/types/CompleteInfo/utils.d.ts +2 -6
  10. package/types/ForgetPassword/interface.d.ts +1 -1
  11. package/types/Guard/authClient.d.ts +1 -1
  12. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +9 -11
  13. package/types/Guard/core/renderContext.d.ts +2 -1
  14. package/types/Guard/core/useAppendConfig.d.ts +1 -1
  15. package/types/Guard/core/usePlugin.d.ts +1 -1
  16. package/types/Guard/event.d.ts +3 -35
  17. package/types/Guard/module.d.ts +2 -1
  18. package/types/IconFont/useGuardIconfont.d.ts +1 -1
  19. package/types/InputPassword/index.d.ts +2 -4
  20. package/types/Login/core/withPassword/FormItemAccount.d.ts +2 -1
  21. package/types/Login/core/withPassword/InputAccount.d.ts +0 -1
  22. package/types/Login/hooks/useLoginMultiple.d.ts +2 -3
  23. package/types/Qrcode/UiQrCode.d.ts +1 -1
  24. package/types/Qrcode/hooks/useStatus.d.ts +2 -1
  25. package/types/Register/core/WithEmail.d.ts +0 -2
  26. package/types/Register/interface.d.ts +2 -2
  27. package/types/SelectAccount/index.d.ts +3 -0
  28. package/types/Type/application.d.ts +0 -24
  29. package/types/ValidatorRules/ValidatorFormItem.d.ts +0 -1
  30. package/types/ValidatorRules/index.d.ts +2 -4
  31. package/types/_utils/config/index.d.ts +5 -5
  32. package/types/_utils/context.d.ts +8 -5
  33. package/types/_utils/guardHttp.d.ts +2 -2
  34. package/types/_utils/hooks/index.d.ts +1 -1
  35. package/types/_utils/http.d.ts +3 -3
  36. package/types/_utils/index.d.ts +8 -11
  37. package/types/_utils/initAppId.d.ts +1 -1
  38. package/types/_utils/responseManagement/interface.d.ts +2 -1
  39. package/types/version/version.d.ts +1 -1
@@ -14,10 +14,10 @@ export declare class GuardHttp {
14
14
  get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
15
15
  post: <T = any>(path: string, data: any, config?: {
16
16
  headers: any;
17
- } | undefined) => Promise<AuthingGuardResponse<T>>;
17
+ }) => Promise<AuthingGuardResponse<T>>;
18
18
  postForm: <T = any>(path: string, formData: any, config?: {
19
19
  headers: any;
20
- } | undefined) => Promise<AuthingGuardResponse<T>>;
20
+ }) => Promise<AuthingGuardResponse<T>>;
21
21
  authFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
22
22
  initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => this | undefined;
23
23
  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 | undefined) => 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;
@@ -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<any> | undefined): Promise<AuthingResponse<T>>;
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
- } | undefined): Promise<AuthingResponse<T_2>>;
11
+ }): Promise<AuthingResponse<T_2>>;
12
12
  baseUrl: string;
13
13
  setBaseUrl(base: string): void;
14
14
  langHeader: string;
@@ -2,7 +2,7 @@ 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
- import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods, RegisterSortMethods, TabFieldsI18nItem } from '../Type/application';
5
+ import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods } from '../Type/application';
6
6
  import { Lang } from '../Type';
7
7
  export * from './popupCenter';
8
8
  export * from './clipboard';
@@ -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 | undefined) => Rule[];
18
+ export declare const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string) => Rule[];
19
19
  export declare function getDeviceName(): string | null | undefined;
20
20
  export declare type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
21
- export declare const insertStyles: (styles: string | any, recordKey?: "appConfig" | "userConfig" | undefined) => void;
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
  /**
@@ -34,12 +34,12 @@ export declare function isObject(item: any): any;
34
34
  * @param target
35
35
  * @param ...sources
36
36
  */
37
- export declare function deepMerge<T extends any = any>(target: T, ...sources: any[]): T;
37
+ export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
38
38
  /**
39
39
  * 在托管页下上传query中指定的用户自定义字段进行补全
40
40
  * @param params 指定上传的用户自定义字段
41
41
  */
42
- export declare const getUserRegisterParams: (params?: string[] | undefined) => {
42
+ export declare const getUserRegisterParams: (params?: string[]) => {
43
43
  key: string;
44
44
  value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
45
45
  }[];
@@ -72,11 +72,10 @@ export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
72
72
  validateMessage: () => string;
73
73
  }>;
74
74
  export declare const getSymbolTypeLength: (pwd: string) => number;
75
- export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
75
+ export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string) => Rule[];
76
76
  export declare const sleep: (delay: number) => Promise<unknown>;
77
- export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
78
- export declare const tabSort: (tabList: string[], defaultMethod?: string | undefined) => string[];
79
- export declare const transformMethod: (method: RegisterMethods | string) => string;
77
+ export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
78
+ export declare const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
80
79
  export declare const mailDesensitization: (mail: string) => string;
81
80
  export declare const phoneDesensitization: (phone: string) => string;
82
81
  export declare const getHundreds: (num: number) => number;
@@ -91,5 +90,3 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
91
90
  } | undefined;
92
91
  export declare const getPasswordIdentify: (identity: string) => string;
93
92
  export declare const getCurrentLng: () => Lang;
94
- export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>) => string;
95
- export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>) => string;
@@ -4,4 +4,4 @@ export interface UseInitAppidProps {
4
4
  propsAuthClient?: AuthenticationClient;
5
5
  setError?: any;
6
6
  }
7
- export declare const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
7
+ export declare const useInitAppId: (propsAppid?: string, propsAuthClient?: AuthenticationClient, setError?: any) => string | undefined;
@@ -16,6 +16,7 @@ export declare const enum ApiCode {
16
16
  FIRST_LOGIN_PASSWORD = 1639,
17
17
  FORCED_PASSWORD_RESET = 2058,
18
18
  UNSAFE_PASSWORD_TIP = 2061,
19
- UNSAFE_PASSWORD_RESET = 2071
19
+ UNSAFE_PASSWORD_RESET = 2071,
20
+ FLOW_SELECT_ACCOUNT = 2921
20
21
  }
21
22
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.10-rc.0";
1
+ declare const _default: "4.0.10-rc.2";
2
2
  export default _default;