Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ant-design/pro-provider

Package Overview
Dependencies
Maintainers
10
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/pro-provider - npm Package Compare versions

Comparing version 2.0.0-experimental.4 to 2.0.0-experimental.5

7

es/index.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc