package.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. {
  2. "name": "antd",
  3. "version": "5.27.4",
  4. "description": "An enterprise-class UI design language and React components implementation",
  5. "license": "MIT",
  6. "funding": {
  7. "type": "opencollective",
  8. "url": "https://opencollective.com/ant-design"
  9. },
  10. "homepage": "https://ant.design",
  11. "repository": {
  12. "type": "git",
  13. "url": "https://github.com/ant-design/ant-design"
  14. },
  15. "bugs": {
  16. "url": "https://github.com/ant-design/ant-design/issues"
  17. },
  18. "keywords": [
  19. "ant",
  20. "component",
  21. "components",
  22. "design",
  23. "framework",
  24. "frontend",
  25. "react",
  26. "react-component",
  27. "ui"
  28. ],
  29. "sideEffects": [
  30. "*.css"
  31. ],
  32. "main": "lib/index.js",
  33. "module": "es/index.js",
  34. "unpkg": "dist/antd.min.js",
  35. "typings": "es/index.d.ts",
  36. "files": [
  37. "BUG_VERSIONS.json",
  38. "dist",
  39. "es",
  40. "lib",
  41. "locale"
  42. ],
  43. "scripts": {
  44. "api-collection": "antd-tools run api-collection",
  45. "authors": "tsx scripts/generate-authors.ts",
  46. "build": "npm run compile && cross-env NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
  47. "changelog": "npm run lint:changelog && tsx scripts/print-changelog.ts",
  48. "check-commit": "tsx scripts/check-commit.ts",
  49. "clean": "antd-tools run clean && rimraf es lib coverage locale dist report.html artifacts.zip oss-artifacts.zip",
  50. "clean:lockfiles": "rimraf package-lock.json yarn.lock",
  51. "precompile": "npm run prestart",
  52. "compile": "npm run clean && antd-tools run compile",
  53. "predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run test:site",
  54. "deploy": "gh-pages -d _site -b gh-pages -f",
  55. "deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages -f",
  56. "predist": "npm run version && npm run token:statistic && npm run token:meta",
  57. "dist": "antd-tools run dist",
  58. "format": "biome format --write .",
  59. "install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 @testing-library/react@12",
  60. "install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17 @testing-library/react@12",
  61. "bun-install-react-16": "bun remove react react-dom @testing-library/react && bun add --no-save react@16 react-dom@16 @testing-library/react@12",
  62. "bun-install-react-17": "bun remove react react-dom @testing-library/react && bun add --no-save react@17 react-dom@17 @testing-library/react@12",
  63. "prelint": "dumi setup",
  64. "lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:biome && npm run lint:md && npm run lint:style && npm run lint:changelog",
  65. "lint:changelog": "tsx scripts/generate-component-changelog.ts",
  66. "lint:deps": "antd-tools run deps-lint",
  67. "lint:md": "remark . -f -q",
  68. "lint:script": "eslint . --cache",
  69. "lint:biome": "biome lint",
  70. "lint:style": "tsx scripts/check-cssinjs.tsx",
  71. "llms": "tsx scripts/generate-llms.ts",
  72. "prepare": "is-ci || husky && dumi setup",
  73. "prepublishOnly": "tsx ./scripts/pre-publish.ts",
  74. "prettier": "prettier -c --write . --cache",
  75. "prettier-import-sort": "npm run prettier -- --plugin=@ianvs/prettier-plugin-sort-imports",
  76. "biome": "biome check --write",
  77. "pub": "echo 'Please use `npm publish` instead.'",
  78. "postpublish": "tsx scripts/post-publish.ts",
  79. "presite": "npm run prestart",
  80. "site": "dumi build && cp .surgeignore _site && npm run llms",
  81. "size-limit": "size-limit",
  82. "sort:api-table": "antd-tools run sort-api-table",
  83. "sort:package-json": "npx sort-package-json",
  84. "prestart": "npm run version && npm run token:statistic && npm run token:meta && npm run lint:changelog",
  85. "start": "tsx ./scripts/set-node-options.ts cross-env PORT=8001 dumi dev",
  86. "pretest": "npm run version",
  87. "test": "jest --config .jest.js --no-cache",
  88. "test:all": "sh -e ./scripts/test-all.sh",
  89. "test:dekko": "tsx ./tests/dekko/index.test.ts",
  90. "test:image": "cross-env MOCK_USE_ID=false jest --config .jest.image.js --no-cache -i -u --forceExit",
  91. "test:node": "npm run version && jest --config .jest.node.js --no-cache",
  92. "test:package-diff": "antd-tools run package-diff",
  93. "test:site": "jest --config .jest.site.js",
  94. "test:site-update": "npm run site && npm run test:site -- -u",
  95. "test:update": "jest --config .jest.js --no-cache -u",
  96. "test:visual-regression": "tsx scripts/visual-regression/build.ts",
  97. "test:visual-regression:local": "tsx scripts/visual-regression/local.ts",
  98. "token:meta": "tsx scripts/generate-token-meta.ts",
  99. "token:statistic": "tsx scripts/collect-token-statistic.ts",
  100. "tsc": "tsc --noEmit",
  101. "tsc:old": "tsc --noEmit -p tsconfig-old-react.json",
  102. "version": "tsx scripts/generate-version.ts"
  103. },
  104. "browserslist": [
  105. "defaults"
  106. ],
  107. "peerDependencies": {
  108. "react": ">=16.9.0",
  109. "react-dom": ">=16.9.0"
  110. },
  111. "dependencies": {
  112. "@ant-design/colors": "^7.2.1",
  113. "@ant-design/cssinjs": "^1.23.0",
  114. "@ant-design/cssinjs-utils": "^1.1.3",
  115. "@ant-design/fast-color": "^2.0.6",
  116. "@ant-design/icons": "^5.6.1",
  117. "@ant-design/react-slick": "~1.1.2",
  118. "@babel/runtime": "^7.26.0",
  119. "@rc-component/color-picker": "~2.0.1",
  120. "@rc-component/mutate-observer": "^1.1.0",
  121. "@rc-component/qrcode": "~1.0.0",
  122. "@rc-component/tour": "~1.15.1",
  123. "@rc-component/trigger": "^2.3.0",
  124. "classnames": "^2.5.1",
  125. "copy-to-clipboard": "^3.3.3",
  126. "dayjs": "^1.11.11",
  127. "rc-cascader": "~3.34.0",
  128. "rc-checkbox": "~3.5.0",
  129. "rc-collapse": "~3.9.0",
  130. "rc-dialog": "~9.6.0",
  131. "rc-drawer": "~7.3.0",
  132. "rc-dropdown": "~4.2.1",
  133. "rc-field-form": "~2.7.0",
  134. "rc-image": "~7.12.0",
  135. "rc-input": "~1.8.0",
  136. "rc-input-number": "~9.5.0",
  137. "rc-mentions": "~2.20.0",
  138. "rc-menu": "~9.16.1",
  139. "rc-motion": "^2.9.5",
  140. "rc-notification": "~5.6.4",
  141. "rc-pagination": "~5.1.0",
  142. "rc-picker": "~4.11.3",
  143. "rc-progress": "~4.0.0",
  144. "rc-rate": "~2.13.1",
  145. "rc-resize-observer": "^1.4.3",
  146. "rc-segmented": "~2.7.0",
  147. "rc-select": "~14.16.8",
  148. "rc-slider": "~11.1.9",
  149. "rc-steps": "~6.0.1",
  150. "rc-switch": "~4.1.0",
  151. "rc-table": "~7.53.0",
  152. "rc-tabs": "~15.7.0",
  153. "rc-textarea": "~1.10.2",
  154. "rc-tooltip": "~6.4.0",
  155. "rc-tree": "~5.13.1",
  156. "rc-tree-select": "~5.27.0",
  157. "rc-upload": "~4.9.2",
  158. "rc-util": "^5.44.4",
  159. "scroll-into-view-if-needed": "^3.1.0",
  160. "throttle-debounce": "^5.0.2"
  161. },
  162. "devDependencies": {
  163. "@ant-design/compatible": "^5.1.3",
  164. "@ant-design/happy-work-theme": "^1.0.0",
  165. "@ant-design/tools": "^18.0.3",
  166. "@ant-design/v5-patch-for-react-19": "^1.0.2",
  167. "@antfu/eslint-config": "^5.0.0",
  168. "@antv/g6": "^4.8.24",
  169. "@biomejs/biome": "^2.2.0",
  170. "@blazediff/core": "^1.0.0",
  171. "@codecov/webpack-plugin": "^1.4.0",
  172. "@codesandbox/sandpack-react": "^2.19.10",
  173. "@dnd-kit/core": "^6.2.0",
  174. "@dnd-kit/modifiers": "^9.0.0",
  175. "@dnd-kit/sortable": "^10.0.0",
  176. "@dnd-kit/utilities": "^3.2.2",
  177. "@emotion/css": "^11.13.5",
  178. "@emotion/react": "^11.13.5",
  179. "@emotion/server": "^11.11.0",
  180. "@eslint-react/eslint-plugin": "^1.17.1",
  181. "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
  182. "@inquirer/prompts": "^7.1.0",
  183. "@madccc/duplicate-package-checker-webpack-plugin": "^1.0.0",
  184. "@microflash/rehype-figure": "^2.1.1",
  185. "@npmcli/run-script": "^10.0.0",
  186. "@octokit/rest": "^22.0.0",
  187. "@prettier/sync": "^0.6.1",
  188. "@qixian.cs/github-contributors-list": "^2.0.2",
  189. "@size-limit/file": "^11.1.6",
  190. "@stackblitz/sdk": "^1.11.0",
  191. "@testing-library/dom": "^10.4.0",
  192. "@testing-library/jest-dom": "^6.6.3",
  193. "@testing-library/react": "^16.0.1",
  194. "@testing-library/user-event": "^14.5.2",
  195. "@types/adm-zip": "^0.5.6",
  196. "@types/ali-oss": "^6.16.11",
  197. "@types/cli-progress": "^3.11.6",
  198. "@types/css-tree": "^2.3.10",
  199. "@types/fs-extra": "^11.0.4",
  200. "@types/gtag.js": "^0.0.20",
  201. "@types/http-server": "^0.12.4",
  202. "@types/isomorphic-fetch": "^0.0.39",
  203. "@types/jest": "^30.0.0",
  204. "@types/jest-axe": "^3.5.9",
  205. "@types/jest-environment-puppeteer": "^5.0.6",
  206. "@types/jest-image-snapshot": "^6.4.0",
  207. "@types/jquery": "^3.5.31",
  208. "@types/jsdom": "^21.1.7",
  209. "@types/lodash": "^4.17.12",
  210. "@types/minimist": "^1.2.5",
  211. "@types/node": "^24.0.0",
  212. "@types/nprogress": "^0.2.3",
  213. "@types/pngjs": "^6.0.5",
  214. "@types/prismjs": "^1.26.4",
  215. "@types/progress": "^2.0.7",
  216. "@types/react": "^19.0.1",
  217. "@types/react-copy-to-clipboard": "^5.0.7",
  218. "@types/react-dom": "^19.0.2",
  219. "@types/react-highlight-words": "^0.20.0",
  220. "@types/react-resizable": "^3.0.8",
  221. "@types/semver": "^7.5.8",
  222. "@types/spinnies": "^0.5.3",
  223. "@types/tar": "^6.1.13",
  224. "@types/throttle-debounce": "^5.0.2",
  225. "@types/warning": "^3.0.3",
  226. "adm-zip": "^0.5.16",
  227. "ali-oss": "^6.21.0",
  228. "antd-img-crop": "^4.23.0",
  229. "antd-style": "^3.7.1",
  230. "antd-token-previewer": "^2.0.8",
  231. "axios": "^1.7.7",
  232. "chalk": "^5.0.0",
  233. "cheerio": "^1.0.0",
  234. "circular-dependency-plugin": "^5.2.2",
  235. "cli-progress": "^3.12.0",
  236. "cross-env": "^10.0.0",
  237. "cross-fetch": "^4.0.0",
  238. "css-tree": "^3.1.0",
  239. "csstree-validator": "^4.0.1",
  240. "cypress-image-diff-html-report": "2.2.0",
  241. "dekko": "^0.2.1",
  242. "dotenv": "^17.0.0",
  243. "dumi": "~2.4.20",
  244. "dumi-plugin-color-chunk": "^2.1.0",
  245. "env-paths": "^3.0.0",
  246. "eslint": "^9.23.0",
  247. "eslint-plugin-compat": "^6.0.1",
  248. "eslint-plugin-jest": "^29.0.1",
  249. "eslint-plugin-jsx-a11y": "^6.10.0",
  250. "eslint-plugin-react-hooks": "^5.2.0",
  251. "eslint-plugin-react-refresh": "^0.4.14",
  252. "fast-glob": "^3.3.2",
  253. "fs-extra": "^11.2.0",
  254. "gh-pages": "^6.2.0",
  255. "github-slugger": "^2.0.0",
  256. "glob": "^11.0.0",
  257. "hast-util-to-string": "^3.0.1",
  258. "html2sketch": "^1.0.2",
  259. "http-server": "^14.1.1",
  260. "husky": "^9.1.6",
  261. "identity-obj-proxy": "^3.0.0",
  262. "immer": "^10.1.1",
  263. "is-ci": "^4.0.0",
  264. "isomorphic-fetch": "^3.0.0",
  265. "jest": "^30.1.0",
  266. "jest-axe": "^10.0.0",
  267. "jest-canvas-mock": "^2.5.2",
  268. "jest-environment-jsdom": "^30.1.0",
  269. "jest-environment-node": "^30.1.0",
  270. "jest-image-snapshot": "^6.4.0",
  271. "jest-puppeteer": "^11.0.0",
  272. "jquery": "^3.7.1",
  273. "jsdom": "^27.0.0",
  274. "jsonml-to-react-element": "^1.1.11",
  275. "jsonml.js": "^0.1.0",
  276. "lint-staged": "^16.0.0",
  277. "lodash": "^4.17.21",
  278. "lunar-typescript": "^1.7.5",
  279. "lz-string": "^1.5.0",
  280. "minimist": "^1.2.8",
  281. "mockdate": "^3.0.5",
  282. "node-fetch": "^3.3.2",
  283. "node-notifier": "^10.0.1",
  284. "open": "^10.1.0",
  285. "ora": "^8.1.0",
  286. "p-all": "^5.0.0",
  287. "package-manager-detector": "^1.0.0",
  288. "pngjs": "^7.0.0",
  289. "portfinder": "^1.0.37",
  290. "prettier": "^3.4.1",
  291. "pretty-format": "^30.0.0",
  292. "prismjs": "^1.29.0",
  293. "puppeteer": "^24.7.1",
  294. "rc-footer": "^0.6.8",
  295. "rc-tween-one": "^3.0.6",
  296. "rc-virtual-list": "^3.19.1",
  297. "react": "^19.1.0",
  298. "react-copy-to-clipboard": "^5.1.0",
  299. "react-countup": "^6.5.3",
  300. "react-dom": "^19.1.0",
  301. "react-draggable": "^4.4.6",
  302. "react-fast-marquee": "^1.6.5",
  303. "react-highlight-words": "^0.21.0",
  304. "react-icons": "^5.4.0",
  305. "react-infinite-scroll-component": "^6.1.0",
  306. "react-intersection-observer": "^9.13.1",
  307. "react-resizable": "^3.0.5",
  308. "react-router-dom": "^7.0.1",
  309. "react-sticky-box": "^2.0.5",
  310. "regenerator-runtime": "^0.14.1",
  311. "rehype-stringify": "^10.0.1",
  312. "remark": "^15.0.1",
  313. "remark-cli": "^12.0.1",
  314. "remark-gfm": "^4.0.0",
  315. "remark-lint": "^10.0.0",
  316. "remark-lint-no-undefined-references": "^5.0.0",
  317. "remark-preset-lint-recommended": "^7.0.0",
  318. "remark-rehype": "^11.1.1",
  319. "rimraf": "^6.0.1",
  320. "runes2": "^1.1.4",
  321. "semver": "^7.6.3",
  322. "sharp": "^0.34.0",
  323. "simple-git": "^3.27.0",
  324. "size-limit": "^11.1.6",
  325. "spinnies": "^0.5.1",
  326. "tar": "^7.4.3",
  327. "tsx": "^4.20.3",
  328. "typedoc": "^0.28.0",
  329. "typescript": "~5.9.2",
  330. "vanilla-jsoneditor": "^3.0.0",
  331. "vanilla-tilt": "^1.8.1",
  332. "webpack": "^5.100.0",
  333. "webpack-bundle-analyzer": "^4.10.2",
  334. "xhr-mock": "^2.5.1"
  335. },
  336. "publishConfig": {
  337. "registry": "https://registry.npmjs.org/"
  338. },
  339. "size-limit": [
  340. {
  341. "path": "./dist/antd.min.js",
  342. "limit": "510 KiB",
  343. "gzip": true
  344. },
  345. {
  346. "path": "./dist/antd-with-locales.min.js",
  347. "limit": "600 KiB",
  348. "gzip": true
  349. }
  350. ],
  351. "title": "Ant Design",
  352. "tnpm": {
  353. "mode": "npm"
  354. }
  355. }