ant-design/package.json

360 lines
12 KiB
JSON
Raw Normal View History

2015-05-07 18:50:36 +08:00
{
2015-06-02 15:41:43 +08:00
"name": "antd",
"version": "4.24.2",
2019-05-08 16:27:37 +08:00
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
2015-07-15 12:07:11 +08:00
"keywords": [
2015-07-17 13:58:35 +08:00
"ant",
"component",
"components",
"design",
2015-07-17 13:58:35 +08:00
"framework",
"frontend",
"react",
"react-component",
"ui"
2015-07-17 16:24:00 +08:00
],
2020-09-07 17:25:45 +08:00
"homepage": "https://ant.design",
"bugs": {
"url": "https://github.com/ant-design/ant-design/issues"
},
2015-05-07 18:50:36 +08:00
"repository": {
"type": "git",
2015-06-05 15:02:39 +08:00
"url": "https://github.com/ant-design/ant-design"
2015-05-07 18:50:36 +08:00
},
"license": "MIT",
"contributors": [
"ant"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/ant-design"
},
2015-07-17 16:24:00 +08:00
"files": [
2016-04-06 18:07:54 +08:00
"dist",
"lib",
"es"
2015-07-17 16:24:00 +08:00
],
"sideEffects": [
"dist/*",
"es/**/style/*",
"lib/**/style/*",
"*.less"
],
"main": "lib/index.js",
"module": "es/index.js",
"unpkg": "dist/antd.min.js",
2016-06-22 13:18:43 +08:00
"typings": "lib/index.d.ts",
"scripts": {
"prepare": "husky install",
"api-collection": "antd-tools run api-collection",
"authors": "node ./scripts/generate-authors",
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
"bundlesize": "bundlesize",
"size-limit": "size-limit",
"check-commit": "node ./scripts/check-commit",
"check-ts-demo": "node ./scripts/check-ts-demo",
2021-01-26 19:28:06 +08:00
"clean": "antd-tools run clean && rm -rf es lib coverage dist report.html",
"clean-lockfiles": "rm -rf package-lock.json yarn.lock",
"prestart": "npm run version",
"precompile": "npm run version",
"pretest": "npm run version",
"predist": "npm run version",
"presite": "npm run version",
2021-02-28 15:10:00 +08:00
"compile": "npm run clean && antd-tools run compile",
2020-11-16 22:00:00 +08:00
"changelog": "node ./scripts/print-changelog",
2020-12-01 10:42:45 +08:00
"predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run site:test",
2022-11-15 10:54:19 +08:00
"deploy": "gh-pages -d _site -r git@github.com:ant-design/4x.ant.design.git -b gh-pages",
"deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages",
"dist": "antd-tools run dist",
"dist:esbuild": "ESBUILD=true npm run dist",
"dist:esbuild-no-dup-check": "ESBUILD=true NO_DUP_CHECK=true npm run dist",
"lint": "npm run tsc && npm run lint:script && npm run lint:demo && npm run lint:style && npm run lint:deps && npm run lint:md",
"lint-fix": "npm run lint-fix:script && npm run lint-fix:demo && npm run lint-fix:style",
"lint-fix:demo": "npm run lint:demo -- --fix",
"lint-fix:script": "npm run lint:script -- --fix",
"lint-fix:style": "npm run lint:style -- --fix",
"lint:demo": "eslint components/*/demo/*.md",
"lint:deps": "antd-tools run deps-lint",
"lint:md": "remark . -f -q",
"lint:script": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:style": "stylelint '{site,components}/**/*.less'",
"pre-publish": "npm run test-all -- --skip-build",
"prettier": "prettier -c --write **/*",
2022-11-11 18:15:33 +08:00
"rome:format": "rome format --write .",
2020-05-11 23:38:54 +08:00
"pub": "npm run version && antd-tools run pub",
"prepublishOnly": "antd-tools run guard",
2022-01-19 15:27:05 +08:00
"postpublish": "node ./scripts/post-script.js",
"site:theme": "npm run site:theme-dark && npm run site:theme-compact",
2021-11-26 14:13:47 +08:00
"site:theme-dark": "cross-env ESBUILD=1 ANT_THEME=dark bisheng build -c ./site/bisheng.config.js",
"site:theme-compact": "cross-env ESBUILD=1 ANT_THEME=compact bisheng build -c ./site/bisheng.config.js",
2021-11-26 14:42:27 +08:00
"site": "npm run site:theme && cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 bisheng build --ssr -c ./site/bisheng.config.js",
"sort": "npx sort-package-json",
"sort-api": "antd-tools run sort-api-table",
"start": "antd-tools run clean && cross-env NODE_ENV=development concurrently \"bisheng start -c ./site/bisheng.config.js\"",
2020-09-07 17:34:10 +08:00
"test": "jest --config .jest.js --cache=false",
2020-09-07 17:39:07 +08:00
"test:update": "jest --config .jest.js --cache=false -u",
"test-all": "sh -e ./scripts/test-all.sh",
2020-09-07 17:34:10 +08:00
"test-node": "jest --config .jest.node.js --cache=false",
"tsc": "tsc --noEmit",
"site:test": "jest --config .jest.site.js --cache=false --force-exit",
"test-image": "jest --config .jest.image.js --no-cache -i -u",
"argos": "node ./scripts/argos-upload.js",
"version": "node ./scripts/generate-version",
"install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16",
"install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17",
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@13",
"fix-memory-limit": "cross-env LIMIT=10240 increase-memory-limit"
},
"browserslist": [
"> 0.5%",
2020-01-19 13:50:32 +08:00
"last 2 versions",
"Firefox ESR",
"not dead",
"IE 11",
"not IE 10"
],
2015-05-07 18:50:36 +08:00
"dependencies": {
"@ant-design/colors": "^6.0.0",
"@ant-design/icons": "^4.7.0",
"@ant-design/react-slick": "~0.29.1",
"@babel/runtime": "^7.18.3",
2021-09-01 10:56:50 +08:00
"@ctrl/tinycolor": "^3.4.0",
"classnames": "^2.2.6",
"copy-to-clipboard": "^3.2.0",
"lodash": "^4.17.21",
"moment": "^2.29.2",
"rc-cascader": "~3.7.0",
"rc-checkbox": "~2.3.0",
"rc-collapse": "~3.4.2",
"rc-dialog": "~9.0.2",
"rc-drawer": "~6.0.0",
"rc-dropdown": "~4.0.0",
"rc-field-form": "~1.27.0",
"rc-image": "~5.12.0",
"rc-input": "~0.1.4",
"rc-input-number": "~7.3.9",
"rc-mentions": "~1.11.0",
"rc-menu": "~9.7.2",
"rc-motion": "^2.6.1",
"rc-notification": "~4.6.0",
"rc-pagination": "~3.2.0",
"rc-picker": "~2.7.0",
"rc-progress": "~3.4.1",
2020-11-02 14:19:43 +08:00
"rc-rate": "~2.9.0",
"rc-resize-observer": "^1.2.0",
"rc-segmented": "~2.1.0",
"rc-select": "~14.1.13",
"rc-slider": "~10.0.0",
"rc-steps": "~5.0.0-alpha.2",
"rc-switch": "~3.2.0",
"rc-table": "~7.26.0",
"rc-tabs": "~12.3.0",
2022-10-17 16:17:22 +08:00
"rc-textarea": "~0.4.5",
2022-07-13 17:14:24 +08:00
"rc-tooltip": "~5.2.0",
"rc-tree": "~5.7.0",
"rc-tree-select": "~5.5.0",
"rc-trigger": "^5.2.10",
2021-05-17 16:23:30 +08:00
"rc-upload": "~4.3.0",
2022-06-24 01:13:16 +08:00
"rc-util": "^5.22.5",
"scroll-into-view-if-needed": "^2.2.25"
2015-05-21 20:36:13 +08:00
},
"devDependencies": {
"@ant-design/bisheng-plugin": "^3.3.0-alpha.4",
2019-12-26 15:27:52 +08:00
"@ant-design/hitu": "^0.0.0-alpha.13",
"@ant-design/tools": "^15.1.2",
"@docsearch/css": "^3.0.0",
"@qixian.cs/github-contributors-list": "^1.0.3",
"@size-limit/file": "^8.0.0",
"@stackblitz/sdk": "^1.3.0",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^14.4.2",
"@types/gtag.js": "^0.0.12",
"@types/jest": "^29.0.0",
"@types/jest-axe": "^3.5.3",
"@types/jest-environment-puppeteer": "^5.0.0",
"@types/jest-image-snapshot": "^5.1.0",
"@types/jquery": "^3.5.14",
"@types/lodash": "^4.14.139",
"@types/puppeteer": "^7.0.4",
"@types/qs": "^6.9.7",
"@types/react": "^18.0.0",
"@types/react-color": "^3.0.1",
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^18.0.0",
"@types/react-highlight-words": "^0.16.4",
"@types/react-resizable": "^3.0.0",
"@types/react-sticky": "^6.0.4",
"@types/react-window": "^1.8.2",
2019-01-12 19:22:06 +08:00
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"antd-img-crop": "^4.2.8",
"array-move": "^4.0.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^3.7.0-alpha.4",
2018-10-06 20:30:27 +08:00
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.2.0",
2018-10-06 20:30:27 +08:00
"bisheng-plugin-toc": "^0.4.4",
2019-08-28 14:14:00 +08:00
"bundlesize": "^0.18.0",
"chalk": "^4.0.0",
"cheerio": "1.0.0-rc.12",
"concurrently": "^7.0.0",
"cross-env": "^7.0.0",
"css-minimizer-webpack-plugin": "^1.3.0",
2018-10-06 20:30:27 +08:00
"dekko": "^0.2.1",
"docsearch-react-fork": "^0.0.0-alpha.0",
"docsearch.js": "^2.6.3",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"enquire-js": "^0.2.1",
"esbuild-loader": "^2.13.1",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-compat": "^4.0.0",
"eslint-plugin-import": "^2.21.1",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-plugin-unicorn": "^44.0.0",
"fast-glob": "^3.2.11",
2018-10-06 20:30:27 +08:00
"fetch-jsonp": "^1.1.3",
"fs-extra": "^10.0.0",
2019-08-16 13:34:35 +08:00
"full-icu": "^1.3.0",
"glob": "^8.0.1",
"http-server": "^14.0.0",
"husky": "^8.0.1",
"identity-obj-proxy": "^3.0.0",
"immer": "^9.0.1",
2019-01-29 00:05:16 +08:00
"immutability-helper": "^3.0.0",
"increase-memory-limit": "^1.0.7",
"inquirer": "^9.1.2",
"intersection-observer": "^0.12.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.0.0",
"jest-axe": "^7.0.0",
"jest-environment-jsdom": "^29.0.1",
"jest-environment-node": "^29.0.0",
"jest-image-snapshot": "^6.0.0",
"jest-puppeteer": "^6.0.0",
"jquery": "^3.4.1",
"jsdom": "^20.0.0",
2016-04-06 16:11:30 +08:00
"jsonml.js": "^0.1.0",
"less-vars-to-js": "^1.3.0",
2022-11-11 18:15:33 +08:00
"lint-staged": "^13.0.3",
2017-12-29 17:02:45 +08:00
"lz-string": "^1.4.4",
"mini-css-extract-plugin": "^1.6.2",
"mockdate": "^3.0.0",
"open": "^8.0.1",
"prettier": "^2.3.2",
"prettier-plugin-jsdoc": "^0.4.2",
"pretty-format": "^29.0.0",
2021-12-03 23:54:08 +08:00
"qs": "^6.10.1",
"rc-footer": "^0.6.6",
"rc-tween-one": "^3.0.3",
"rc-virtual-list": "^3.4.11",
"react": "^17.0.0",
"react-color": "^2.17.3",
2018-10-06 20:30:27 +08:00
"react-copy-to-clipboard": "^5.0.1",
"react-dnd": "^16.0.0",
"react-dnd-html5-backend": "^16.0.0",
"react-dom": "^17.0.0",
"react-draggable": "^4.4.3",
"react-fast-marquee": "^1.2.1",
2018-10-06 20:30:27 +08:00
"react-github-button": "^0.1.11",
"react-helmet-async": "~1.3.0",
"react-highlight-words": "^0.18.0",
"react-infinite-scroll-component": "^6.1.0",
"react-intl": "^6.0.1",
"react-resizable": "^3.0.1",
"react-router-dom": "^6.0.2",
"react-sortable-hoc": "^2.0.0",
"react-sticky": "^6.0.3",
"react-window": "^1.8.5",
"remark": "^14.0.1",
"remark-cli": "^11.0.0",
"remark-lint": "^9.0.0",
"remark-preset-lint-recommended": "^6.0.0",
"remove-files-webpack-plugin": "1.5.0",
2019-08-17 22:42:14 +08:00
"rimraf": "^3.0.0",
2022-11-11 18:15:33 +08:00
"rome": "^10.0.1",
"scrollama": "^3.0.0",
2022-01-19 15:27:05 +08:00
"semver": "^7.3.5",
"simple-git": "^3.0.0",
"size-limit": "^8.0.0",
2022-06-11 15:16:06 +08:00
"stylelint": "^14.9.0",
"stylelint-config-prettier": "^9.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^29.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
"stylelint-order": "^5.0.0",
2020-01-02 18:24:34 +08:00
"theme-switcher": "^1.0.2",
"typescript": "~4.8.4",
2020-11-10 13:03:03 +08:00
"webpack-bundle-analyzer": "^4.1.0",
2018-10-06 20:30:27 +08:00
"xhr-mock": "^2.4.1",
"yaml-front-matter": "^4.0.0"
2015-05-07 19:54:54 +08:00
},
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
2015-06-11 16:35:36 +08:00
},
"size-limit": [
{
"path": "./dist/antd.min.js",
"limit": "282 kB"
},
{
"path": "./dist/antd.min.css",
"limit": "66 kB"
},
{
"path": "./dist/antd.dark.min.css",
"limit": "67.5 kB"
},
{
"path": "./dist/antd.compact.min.css",
"limit": "66 kB"
},
{
"path": "./dist/antd.variable.min.css",
"limit": "67 kB"
}
],
"bundlesize": [
{
"path": "./dist/antd.min.js",
"maxSize": "283 kB"
},
{
"path": "./dist/antd.min.css",
feat: add Space.Compact (#37652) * feat: add Space.Compact * feat: update input style * feat: add CompactItem for context memoize * feat: add demo * feat: update button style * feat: update input style * feat: 提取 getCompactClassNames 公用方法 * feat: update button style * feat: update picker * feat: add block prop for Space.Compact * feat: use Space.Compact for Input#addonBefore/After * feat: update addon * refactor: compact * feat: update * feat: update * feat: migrate styles to compact for new Input/Input.Search * feat: organize input demo * feat: add more button compact demo * feat: resolve select border collapse * feat: fix input addon select style * feat: add input addon demo in Space * feat: add useCompactItemContext hook * feat: update compact-item style * feat: rollback input#addon implements * feat: rollback input#addon and input.search style * feat: select border collapse * feat: add Space.Compact demo * feat: Space.Compact vertical for Button * refactor: useCompactItemContext * feat: update Button vertical demo * feat: rtl for compact mixin * feat: rtl for compact button * feat: input rtl * feat: add docs for Space.Compact * test: add some tests for Space.Compact * test: add tests * feat: select style * feat: handle select focus style * feat: add useCompactItemContext for Picker and Cascader * style: add compact-item style for cascader * feat: support nested Space.Compact * style: Input.Search in Space.Compact * chore: clean * feat: add useCompactItemContext for TreeSelect * fix: lint issues * fix: style lint * docs: update demos for Space.Compact * docs: update demo * fix: add deps-lint-skip for space * fix: add deps-lint-skip for space * fix: handle edge case for useCompactItemContext * test: add search test case * chore: + bundlesize * style: merge button compact style into one file * style: improve style for nested compact * fix: stylelint * docs: update Space.Compact docs * test: update demo snapshot * test: update input debug test snapshot * docs: update doccs for Space.Compact * test: improve test cases for Compact * docs: clean demos for Compact * refactor: improve Space.Compact * fix: add useCompactItemContext for Input.Search * style: improve compact border-radius implementation * refactor: use context to make nested compact works * fix: input-number focused style * refactor: remove useless style * refactor: improve style for vertical compact * test: update snapshot * test: update snapshot for input * refactor: improve compact-item-border-radius * fix: search group in RTL * style: improve style for button compact * style: use after * fix: stylelint * chore: update snapshot * style: improve button compact * refactor: improve btn-icon-only style in compact
2022-10-18 16:23:10 +08:00
"maxSize": "66.5 kB"
2019-12-26 15:48:28 +08:00
},
{
"path": "./dist/antd.dark.min.css",
feat: add Space.Compact (#37652) * feat: add Space.Compact * feat: update input style * feat: add CompactItem for context memoize * feat: add demo * feat: update button style * feat: update input style * feat: 提取 getCompactClassNames 公用方法 * feat: update button style * feat: update picker * feat: add block prop for Space.Compact * feat: use Space.Compact for Input#addonBefore/After * feat: update addon * refactor: compact * feat: update * feat: update * feat: migrate styles to compact for new Input/Input.Search * feat: organize input demo * feat: add more button compact demo * feat: resolve select border collapse * feat: fix input addon select style * feat: add input addon demo in Space * feat: add useCompactItemContext hook * feat: update compact-item style * feat: rollback input#addon implements * feat: rollback input#addon and input.search style * feat: select border collapse * feat: add Space.Compact demo * feat: Space.Compact vertical for Button * refactor: useCompactItemContext * feat: update Button vertical demo * feat: rtl for compact mixin * feat: rtl for compact button * feat: input rtl * feat: add docs for Space.Compact * test: add some tests for Space.Compact * test: add tests * feat: select style * feat: handle select focus style * feat: add useCompactItemContext for Picker and Cascader * style: add compact-item style for cascader * feat: support nested Space.Compact * style: Input.Search in Space.Compact * chore: clean * feat: add useCompactItemContext for TreeSelect * fix: lint issues * fix: style lint * docs: update demos for Space.Compact * docs: update demo * fix: add deps-lint-skip for space * fix: add deps-lint-skip for space * fix: handle edge case for useCompactItemContext * test: add search test case * chore: + bundlesize * style: merge button compact style into one file * style: improve style for nested compact * fix: stylelint * docs: update Space.Compact docs * test: update demo snapshot * test: update input debug test snapshot * docs: update doccs for Space.Compact * test: improve test cases for Compact * docs: clean demos for Compact * refactor: improve Space.Compact * fix: add useCompactItemContext for Input.Search * style: improve compact border-radius implementation * refactor: use context to make nested compact works * fix: input-number focused style * refactor: remove useless style * refactor: improve style for vertical compact * test: update snapshot * test: update snapshot for input * refactor: improve compact-item-border-radius * fix: search group in RTL * style: improve style for button compact * style: use after * fix: stylelint * chore: update snapshot * style: improve button compact * refactor: improve btn-icon-only style in compact
2022-10-18 16:23:10 +08:00
"maxSize": "68 kB"
},
{
"path": "./dist/antd.compact.min.css",
feat: add Space.Compact (#37652) * feat: add Space.Compact * feat: update input style * feat: add CompactItem for context memoize * feat: add demo * feat: update button style * feat: update input style * feat: 提取 getCompactClassNames 公用方法 * feat: update button style * feat: update picker * feat: add block prop for Space.Compact * feat: use Space.Compact for Input#addonBefore/After * feat: update addon * refactor: compact * feat: update * feat: update * feat: migrate styles to compact for new Input/Input.Search * feat: organize input demo * feat: add more button compact demo * feat: resolve select border collapse * feat: fix input addon select style * feat: add input addon demo in Space * feat: add useCompactItemContext hook * feat: update compact-item style * feat: rollback input#addon implements * feat: rollback input#addon and input.search style * feat: select border collapse * feat: add Space.Compact demo * feat: Space.Compact vertical for Button * refactor: useCompactItemContext * feat: update Button vertical demo * feat: rtl for compact mixin * feat: rtl for compact button * feat: input rtl * feat: add docs for Space.Compact * test: add some tests for Space.Compact * test: add tests * feat: select style * feat: handle select focus style * feat: add useCompactItemContext for Picker and Cascader * style: add compact-item style for cascader * feat: support nested Space.Compact * style: Input.Search in Space.Compact * chore: clean * feat: add useCompactItemContext for TreeSelect * fix: lint issues * fix: style lint * docs: update demos for Space.Compact * docs: update demo * fix: add deps-lint-skip for space * fix: add deps-lint-skip for space * fix: handle edge case for useCompactItemContext * test: add search test case * chore: + bundlesize * style: merge button compact style into one file * style: improve style for nested compact * fix: stylelint * docs: update Space.Compact docs * test: update demo snapshot * test: update input debug test snapshot * docs: update doccs for Space.Compact * test: improve test cases for Compact * docs: clean demos for Compact * refactor: improve Space.Compact * fix: add useCompactItemContext for Input.Search * style: improve compact border-radius implementation * refactor: use context to make nested compact works * fix: input-number focused style * refactor: remove useless style * refactor: improve style for vertical compact * test: update snapshot * test: update snapshot for input * refactor: improve compact-item-border-radius * fix: search group in RTL * style: improve style for button compact * style: use after * fix: stylelint * chore: update snapshot * style: improve button compact * refactor: improve btn-icon-only style in compact
2022-10-18 16:23:10 +08:00
"maxSize": "66.5 kB"
2021-09-01 10:56:50 +08:00
},
{
"path": "./dist/antd.variable.min.css",
"maxSize": "67 kB"
}
2019-08-28 14:14:00 +08:00
],
2020-04-26 10:55:06 +08:00
"tnpm": {
"mode": "npm"
2022-11-11 18:15:33 +08:00
},
"lint-staged": {
"*.{ts,tsx,js,json}": "rome format --write",
"*.{less,md}": "prettier --ignore-unknown --write"
}
}