Browse Source

Merge pull request #16971 from ant-design/upgrade-deps

chore:  🆙 upgrade all deps to latest version
pull/16977/head
偏右 6 years ago
committed by GitHub
parent
commit
994d940d82
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/config-provider/index.tsx
  2. 4
      components/drawer/index.tsx
  3. 4
      components/form/context.ts
  4. 4
      components/layout/layout.tsx
  5. 4
      components/menu/index.tsx
  6. 158
      package.json

4
components/config-provider/index.tsx

@ -1,5 +1,5 @@
import * as React from 'react';
import createReactContext, { Context } from '@ant-design/create-react-context';
import createReactContext from '@ant-design/create-react-context';
import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty';
@ -36,7 +36,7 @@ export interface ConfigProviderProps {
autoInsertSpaceInButton?: boolean;
}
const ConfigContext: Context<ConfigConsumerProps | null> = createReactContext({
const ConfigContext = createReactContext<ConfigConsumerProps>({
// We provide a default function for Context without provider
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => {
if (customizePrefixCls) return customizePrefixCls;

4
components/drawer/index.tsx

@ -1,14 +1,14 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import RcDrawer from 'rc-drawer';
import createReactContext, { Context } from '@ant-design/create-react-context';
import createReactContext from '@ant-design/create-react-context';
import warning from '../_util/warning';
import classNames from 'classnames';
import Icon from '../icon';
import { withConfigConsumer, ConfigConsumerProps } from '../config-provider';
import { tuple } from '../_util/type';
const DrawerContext: Context<Drawer | null> = createReactContext(null);
const DrawerContext = createReactContext<Drawer | null>(null);
type EventType = React.MouseEvent<HTMLDivElement> | React.MouseEvent<HTMLButtonElement>;

4
components/form/context.ts

@ -1,4 +1,4 @@
import createReactContext, { Context } from '@ant-design/create-react-context';
import createReactContext from '@ant-design/create-react-context';
import { ColProps } from '../grid/col';
import { FormLabelAlign } from './FormItem';
@ -10,7 +10,7 @@ export interface FormContextProps {
wrapperCol?: ColProps;
}
export const FormContext: Context<FormContextProps> = createReactContext({
export const FormContext = createReactContext<FormContextProps>({
labelAlign: 'right',
vertical: false,
});

4
components/layout/layout.tsx

@ -1,6 +1,6 @@
import * as React from 'react';
import classNames from 'classnames';
import createContext, { Context } from '@ant-design/create-react-context';
import createContext from '@ant-design/create-react-context';
import { SiderProps } from './Sider';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
@ -19,7 +19,7 @@ export interface LayoutContextProps {
removeSider: (id: string) => void;
};
}
export const LayoutContext: Context<LayoutContextProps> = createContext({
export const LayoutContext = createContext<LayoutContextProps>({
siderHook: {
addSider: () => null,
removeSider: () => null,

4
components/menu/index.tsx

@ -1,6 +1,6 @@
import * as React from 'react';
import RcMenu, { Divider, ItemGroup } from 'rc-menu';
import createContext, { Context } from '@ant-design/create-react-context';
import createContext from '@ant-design/create-react-context';
import classNames from 'classnames';
import omit from 'omit.js';
import SubMenu from './SubMenu';
@ -79,7 +79,7 @@ export interface MenuContextProps {
antdMenuTheme?: MenuTheme;
}
export const MenuContext: Context<MenuContextProps> = createContext({
export const MenuContext = createContext<MenuContextProps>({
inlineCollapsed: false,
});

158
package.json

@ -44,155 +44,155 @@
"dependencies": {
"@ant-design/create-react-context": "^0.2.4",
"@ant-design/icons": "~2.0.0",
"@ant-design/icons-react": "~2.0.0",
"@types/react-slick": "^0.23.3",
"@ant-design/icons-react": "~2.0.1",
"@types/react-slick": "^0.23.4",
"array-tree-filter": "^2.1.0",
"babel-runtime": "6.x",
"classnames": "~2.2.6",
"copy-to-clipboard": "^3.0.8",
"copy-to-clipboard": "^3.2.0",
"css-animation": "^1.5.0",
"dom-closest": "^0.2.0",
"enquire.js": "^2.1.6",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"omit.js": "^1.0.0",
"prop-types": "^15.6.2",
"raf": "^3.4.0",
"rc-animate": "^2.5.4",
"rc-calendar": "~9.14.0",
"rc-cascader": "~0.17.0",
"rc-checkbox": "~2.1.5",
"rc-collapse": "~1.11.1",
"omit.js": "^1.0.2",
"prop-types": "^15.7.2",
"raf": "^3.4.1",
"rc-animate": "^2.8.3",
"rc-calendar": "~9.14.5",
"rc-cascader": "~0.17.4",
"rc-checkbox": "~2.1.6",
"rc-collapse": "~1.11.3",
"rc-dialog": "~7.4.0",
"rc-drawer": "~1.9.3",
"rc-drawer": "~1.9.8",
"rc-dropdown": "~2.4.1",
"rc-editor-mention": "^1.1.7",
"rc-form": "^2.4.0",
"rc-input-number": "~4.4.0",
"rc-editor-mention": "^1.1.13",
"rc-form": "^2.4.5",
"rc-input-number": "~4.4.5",
"rc-mentions": "~0.3.1",
"rc-menu": "~7.4.12",
"rc-notification": "~3.3.0",
"rc-menu": "~7.4.23",
"rc-notification": "~3.3.1",
"rc-pagination": "~1.20.1",
"rc-progress": "~2.3.0",
"rc-rate": "~2.5.0",
"rc-select": "~9.1.0",
"rc-slider": "~8.6.5",
"rc-select": "~9.1.4",
"rc-slider": "~8.6.11",
"rc-steps": "~3.4.1",
"rc-switch": "~1.9.0",
"rc-table": "~6.6.0",
"rc-tabs": "~9.6.0",
"rc-time-picker": "~3.6.1",
"rc-tabs": "~9.6.4",
"rc-time-picker": "~3.6.6",
"rc-tooltip": "~3.7.3",
"rc-tree": "~2.1.0",
"rc-tree-select": "~2.9.1",
"rc-trigger": "^2.6.2",
"rc-upload": "~2.6.0",
"rc-util": "^4.5.1",
"rc-upload": "~2.6.7",
"rc-util": "^4.6.0",
"react-lazy-load": "^3.0.13",
"react-lifecycles-compat": "^3.0.4",
"react-slick": "~0.24.0",
"resize-observer-polyfill": "^1.5.0",
"resize-observer-polyfill": "^1.5.1",
"shallowequal": "^1.1.0",
"warning": "~4.0.2"
"warning": "~4.0.3"
},
"devDependencies": {
"@ant-design/colors": "^3.0.0",
"@ant-design/colors": "^3.1.0",
"@packtracker/webpack-plugin": "^2.0.1",
"@sentry/browser": "^5.0.3",
"@types/classnames": "^2.2.6",
"@types/prop-types": "^15.5.6",
"@types/react": "~16.8.1",
"@types/react-dom": "^16.0.11",
"@types/react-intl": "^2.3.14",
"@sentry/browser": "^5.4.0",
"@types/classnames": "^2.2.8",
"@types/prop-types": "^15.7.1",
"@types/react": "~16.8.19",
"@types/react-dom": "^16.8.4",
"@types/react-intl": "^2.3.17",
"@types/warning": "^3.0.0",
"@yesmeck/offline-plugin": "^5.0.5",
"ansi-styles": "^4.0.0",
"antd-theme-generator": "^1.1.4",
"antd-theme-generator": "^1.1.6",
"antd-tools": "^7.3.5",
"babel-eslint": "^10.0.1",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^1.2.4",
"bisheng-plugin-antd": "^1.0.1",
"bisheng-plugin-antd": "^1.0.2",
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.0.0",
"bisheng-plugin-toc": "^0.4.4",
"chalk": "^2.4.2",
"commander": "^2.18.0",
"commander": "^2.20.0",
"cross-env": "^5.2.0",
"css-split-webpack-plugin": "^0.2.6",
"dekko": "^0.2.1",
"docsearch.js": "^2.5.2",
"docsearch.js": "^2.6.3",
"enquire-js": "^0.2.1",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.6.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.6.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.3.5",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-import": "^2.17.1",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-markdown": "~1.0.0-beta.6",
"eslint-plugin-react": "^7.11.1",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-jest": "^22.6.4",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-markdown": "~1.0.0",
"eslint-plugin-react": "^7.13.0",
"eslint-tinker": "^0.5.0",
"fetch-jsonp": "^1.1.3",
"glob": "^7.1.3",
"glob": "^7.1.4",
"immutability-helper": "^3.0.0",
"intersection-observer": "^0.7.0",
"jest": "^24.0.0",
"jsdom": "^15.0.0",
"jest": "^24.8.0",
"jsdom": "^15.1.1",
"jsonml.js": "^0.1.0",
"lint-staged": "^8.0.2",
"lint-staged": "^8.1.7",
"logrocket": "^1.0.0",
"logrocket-react": "^3.0.0",
"lz-string": "^1.4.4",
"majo": "^0.7.1",
"mockdate": "^2.0.2",
"node-fetch": "^2.3.0",
"node-fetch": "^2.6.0",
"pre-commit": "^1.2.2",
"preact": "^8.3.1",
"preact-compat": "^3.18.4",
"prettier": "^1.17.0",
"preact": "^8.4.2",
"preact-compat": "^3.18.5",
"prettier": "^1.17.1",
"querystring": "^0.2.0",
"rc-queue-anim": "^1.6.6",
"rc-scroll-anim": "^2.5.7",
"rc-tween-one": "^2.4.0",
"rc-queue-anim": "^1.6.12",
"rc-scroll-anim": "^2.5.8",
"rc-tween-one": "^2.4.1",
"react": "^16.5.2",
"react-color": "^2.14.1",
"react-color": "^2.17.3",
"react-copy-to-clipboard": "^5.0.1",
"react-dnd": "^7.0.2",
"react-dnd-html5-backend": "^7.0.2",
"react-dnd": "^7.4.5",
"react-dnd-html5-backend": "^7.4.4",
"react-document-title": "^2.0.3",
"react-dom": "^16.5.2",
"react-github-button": "^0.1.11",
"react-highlight-words": "^0.16.0",
"react-infinite-scroller": "^1.2.1",
"react-intl": "^2.7.0",
"react-infinite-scroller": "^1.2.4",
"react-intl": "^2.9.0",
"react-resizable": "^1.8.0",
"react-router-dom": "^5.0.0",
"react-router-dom": "^5.0.1",
"react-sticky": "^6.0.3",
"react-test-renderer": "^16.6.3",
"react-virtualized": "~9.21.0",
"react-test-renderer": "^16.8.6",
"react-virtualized": "~9.21.1",
"remark-cli": "^6.0.1",
"remark-frontmatter": "^1.3.0",
"remark-frontmatter": "^1.3.1",
"remark-lint": "^6.0.4",
"remark-parse": "^6.0.0",
"remark-parse": "^6.0.3",
"remark-preset-lint-recommended": "^3.0.2",
"remark-stringify": "^6.0.0",
"remark-yaml-config": "^4.0.2",
"remark-stringify": "^6.0.4",
"remark-yaml-config": "^4.0.3",
"reqwest": "^2.0.5",
"rimraf": "^2.6.2",
"rimraf": "^2.6.3",
"scrollama": "^2.0.0",
"simple-git": "^1.110.0",
"stylelint": "^10.0.0",
"stylelint-config-prettier": "^5.0.0",
"stylelint-config-rational-order": "^0.1.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-declaration-block-no-ignored-properties": "^2.0.0",
"simple-git": "^1.113.0",
"stylelint": "^10.0.1",
"stylelint-config-prettier": "^5.2.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^18.3.0",
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
"stylelint-order": "^3.0.0",
"typescript": "~3.4.1",
"unified": "^7.0.0",
"typescript": "~3.5.1",
"unified": "^7.1.0",
"xhr-mock": "^2.4.1",
"xhr2": "^0.2.0"
},

Loading…
Cancel
Save