@authing/react-ui-components 4.1.0-rc.6 → 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,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;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -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
|
|
95
|
-
export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem
|
|
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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.1.0-rc.
|
|
1
|
+
declare const _default: "4.1.0-rc.7";
|
|
2
2
|
export default _default;
|