@authing/react-ui-components 4.1.0-rc.5 → 4.1.0-rc.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.1.0-rc.5",
3
+ "version": "4.1.0-rc.7",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -18,7 +18,8 @@ export declare const enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
- SELF_UNLOCK = "selfUnlock"
21
+ SELF_UNLOCK = "selfUnlock",
22
+ FLOW_SELECT_ACCOUNT = "flowSelectAccount"
22
23
  }
23
24
  export interface GuardModuleAction {
24
25
  action: string;
@@ -14,6 +14,7 @@ declare function useLoginMultipleBackFill(options: {
14
14
  isOnlyInternationSms?: boolean;
15
15
  setAreaCode?: React.Dispatch<React.SetStateAction<string>>;
16
16
  cancelBackfill?: boolean;
17
+ changeCurrentMethod?: (account: string) => void;
17
18
  }): void;
18
19
  /**
19
20
  * 多账号统一状态管理
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
3
+ export declare const GuardSelectAccountView: () => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '..';
2
+ import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig, Lang } from '..';
3
3
  import { BackFillMultipleState, StoreInstance } from '../Guard/core/hooks/useMultipleAccounts';
4
4
  import { ModuleState } from '../Guard/GuardModule/stateMachine';
5
5
  import { ApplicationConfig } from '../Type/application';
@@ -42,6 +42,7 @@ export interface IGuardContext {
42
42
  */
43
43
  clearBackFillData?: () => void;
44
44
  };
45
+ defaultLanguageConfig: Lang;
45
46
  }
46
47
  export declare const createGuardXContext: () => {
47
48
  Provider: React.FC<{
@@ -138,3 +139,7 @@ export declare const useGuardMultipleInstance: () => {
138
139
  */
139
140
  clearBackFillData?: (() => void) | undefined;
140
141
  };
142
+ /**
143
+ * 默认语言
144
+ */
145
+ export declare const useGuardDefaultLanguage: () => Lang;
@@ -91,5 +91,5 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
91
91
  } | undefined;
92
92
  export declare const getPasswordIdentify: (identity: string) => string;
93
93
  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;
94
+ export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
95
+ export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
@@ -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.1.0-rc.5";
1
+ declare const _default: "4.1.0-rc.7";
2
2
  export default _default;