@ant-design/pro-provider
Advanced tools
Comparing version 2.0.0-experimental.4 to 2.0.0-experimental.5
@@ -60,3 +60,3 @@ import React from 'react'; | ||
*/ | ||
declare const createIntl: (locale: string, localeMap: Record<string, any>) => IntlType; | ||
export declare const createIntl: (locale: string, localeMap: Record<string, any>) => IntlType; | ||
declare const mnMNIntl: IntlType; | ||
@@ -113,3 +113,2 @@ declare const arEGIntl: IntlType; | ||
export { mnMNIntl, arEGIntl, enUSIntl, enGBIntl, zhCNIntl, viVNIntl, itITIntl, jaJPIntl, esESIntl, caESIntl, ruRUIntl, srRSIntl, msMYIntl, zhTWIntl, frFRIntl, ptBRIntl, koKRIntl, idIDIntl, deDEIntl, faIRIntl, trTRIntl, plPLIntl, hrHRIntl, intlMap, intlMapKeys, }; | ||
export { ConfigConsumer, ConfigProvider, ConfigProviderWrap, createIntl }; | ||
export declare type ConfigContextPropsType = { | ||
@@ -120,3 +119,3 @@ intl: IntlType; | ||
declare const ConfigContext: React.Context<ConfigContextPropsType>; | ||
declare const ConfigConsumer: React.Consumer<ConfigContextPropsType>, ConfigProvider: React.Provider<ConfigContextPropsType>; | ||
export declare const ConfigConsumer: React.Consumer<ConfigContextPropsType>, ConfigProvider: React.Provider<ConfigContextPropsType>; | ||
/** | ||
@@ -127,5 +126,5 @@ * 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择 | ||
*/ | ||
declare const ConfigProviderWrap: React.FC<Record<string, unknown>>; | ||
export declare const ConfigProviderWrap: React.FC<Record<string, unknown>>; | ||
export declare function useIntl(): IntlType; | ||
export declare const ProProvider: React.Context<ConfigContextPropsType>; | ||
export default ConfigContext; |
@@ -67,3 +67,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
var createIntl = function createIntl(locale, localeMap) { | ||
export var createIntl = function createIntl(locale, localeMap) { | ||
return { | ||
@@ -76,3 +76,2 @@ getMessage: function getMessage(id, defaultMessage) { | ||
}; | ||
var mnMNIntl = createIntl('mn_MN', mnMN); | ||
@@ -128,3 +127,2 @@ var arEGIntl = createIntl('ar_EG', arEG); | ||
export { mnMNIntl, arEGIntl, enUSIntl, enGBIntl, zhCNIntl, viVNIntl, itITIntl, jaJPIntl, esESIntl, caESIntl, ruRUIntl, srRSIntl, msMYIntl, zhTWIntl, frFRIntl, ptBRIntl, koKRIntl, idIDIntl, deDEIntl, faIRIntl, trTRIntl, plPLIntl, hrHRIntl, intlMap, intlMapKeys }; | ||
export { ConfigConsumer, ConfigProvider, ConfigProviderWrap, createIntl }; | ||
var ConfigContext = /*#__PURE__*/React.createContext({ | ||
@@ -144,2 +142,4 @@ intl: _objectSpread(_objectSpread({}, zhCNIntl), {}, { | ||
export { ConfigConsumer, ConfigProvider }; | ||
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) { | ||
@@ -183,3 +183,3 @@ if (!localeKey) { | ||
var ConfigProviderWrap = function ConfigProviderWrap(_ref) { | ||
export var ConfigProviderWrap = function ConfigProviderWrap(_ref) { | ||
var _children = _ref.children, | ||
@@ -233,3 +233,2 @@ _ref$autoClearCache = _ref.autoClearCache, | ||
}; | ||
export function useIntl() { | ||
@@ -236,0 +235,0 @@ var _useContext2 = useContext(AntdConfigProvider.ConfigContext), |
{ | ||
"name": "@ant-design/pro-provider", | ||
"version": "2.0.0-experimental.4", | ||
"version": "2.0.0-experimental.5", | ||
"description": "@ant-design/pro-provider", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
85174
3610