1 | {
|
2 | "name": "antd",
|
3 | "version": "5.20.6",
|
4 | "description": "An enterprise-class UI design language and React components implementation",
|
5 | "keywords": [
|
6 | "ant",
|
7 | "component",
|
8 | "components",
|
9 | "design",
|
10 | "framework",
|
11 | "frontend",
|
12 | "react",
|
13 | "react-component",
|
14 | "ui"
|
15 | ],
|
16 | "homepage": "https://ant.design",
|
17 | "bugs": {
|
18 | "url": "https://github.com/ant-design/ant-design/issues"
|
19 | },
|
20 | "repository": {
|
21 | "type": "git",
|
22 | "url": "https://github.com/ant-design/ant-design"
|
23 | },
|
24 | "funding": {
|
25 | "type": "opencollective",
|
26 | "url": "https://opencollective.com/ant-design"
|
27 | },
|
28 | "license": "MIT",
|
29 | "sideEffects": false,
|
30 | "main": "lib/index.js",
|
31 | "unpkg": "dist/antd.min.js",
|
32 | "module": "es/index.js",
|
33 | "typings": "es/index.d.ts",
|
34 | "files": [
|
35 | "dist",
|
36 | "es",
|
37 | "lib",
|
38 | "locale",
|
39 | "BUG_VERSIONS.json"
|
40 | ],
|
41 | "scripts": {
|
42 | "api-collection": "antd-tools run api-collection",
|
43 | "authors": "tsx scripts/generate-authors.ts",
|
44 | "build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
|
45 | "changelog": "npm run lint:changelog && tsx scripts/print-changelog.ts",
|
46 | "check-commit": "tsx scripts/check-commit.ts",
|
47 | "clean": "antd-tools run clean && rimraf es lib coverage locale dist report.html artifacts.zip oss-artifacts.zip",
|
48 | "clean:lockfiles": "rimraf package-lock.json yarn.lock",
|
49 | "precompile": "npm run prestart",
|
50 | "compile": "npm run clean && antd-tools run compile",
|
51 | "predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run test:site",
|
52 | "deploy": "gh-pages -d _site -b gh-pages -f",
|
53 | "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",
|
54 | "predist": "npm run version && npm run token:statistic && npm run token:meta",
|
55 | "dist": "antd-tools run dist",
|
56 | "format": "biome format --write .",
|
57 | "install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 @testing-library/react@12",
|
58 | "install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17 @testing-library/react@12",
|
59 | "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",
|
60 | "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",
|
61 | "prelint": "dumi setup",
|
62 | "lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:biome && npm run lint:demo && npm run lint:md && npm run lint:style && npm run lint:changelog",
|
63 | "lint-fix": "npm run lint-fix:script && npm run lint-fix:demo",
|
64 | "lint-fix:demo": "npm run lint:demo -- --fix",
|
65 | "lint-fix:script": "npm run lint:script -- --fix",
|
66 | "lint-fix:biome": "npm run lint:biome -- --write",
|
67 | "lint:changelog": "tsx scripts/generate-component-changelog.ts",
|
68 | "lint:demo": "eslint components/*/demo/*.md",
|
69 | "lint:deps": "antd-tools run deps-lint",
|
70 | "lint:md": "remark . -f -q",
|
71 | "lint:script": "eslint . --ext .js,.jsx,.ts,.tsx --cache",
|
72 | "lint:biome": "biome lint",
|
73 | "lint:style": "tsx scripts/check-cssinjs.tsx",
|
74 | "npm-install": "npm install",
|
75 | "prepare": "is-ci || husky && dumi setup",
|
76 | "prepublishOnly": "tsx ./scripts/pre-publish.ts",
|
77 | "prettier": "prettier -c --write . --cache",
|
78 | "biome": "biome check --write",
|
79 | "pub": "echo 'Please use `npm publish` instead.'",
|
80 | "postpublish": "tsx scripts/post-publish.ts",
|
81 | "presite": "npm run prestart",
|
82 | "site": "npm i --no-save --legacy-peer-deps react@18.3.0-canary-c3048aab4-20240326 react-dom@18.3.0-canary-c3048aab4-20240326 && dumi build && cp .surgeignore _site",
|
83 | "size-limit": "size-limit",
|
84 | "sort:api-table": "antd-tools run sort-api-table",
|
85 | "sort:package-json": "npx sort-package-json",
|
86 | "prestart": "npm run version && npm run token:statistic && npm run token:meta && npm run lint:changelog",
|
87 | "start": "tsx ./scripts/set-node-options.ts cross-env PORT=8001 dumi dev",
|
88 | "pretest": "npm run version",
|
89 | "test": "jest --config .jest.js --no-cache",
|
90 | "test:all": "sh -e ./scripts/test-all.sh",
|
91 | "test:dekko": "node ./tests/dekko/index.test.js",
|
92 | "test:image": "jest --config .jest.image.js --no-cache -i -u --forceExit",
|
93 | "test:node": "npm run version && jest --config .jest.node.js --no-cache",
|
94 | "test:package-diff": "antd-tools run package-diff",
|
95 | "test:site": "jest --config .jest.site.js",
|
96 | "test:site-update": "npm run site && npm run test:site -- -u",
|
97 | "test:update": "jest --config .jest.js --no-cache -u",
|
98 | "test:visual-regression": "tsx scripts/visual-regression/build.ts",
|
99 | "token:meta": "tsx scripts/generate-token-meta.ts",
|
100 | "token:statistic": "tsx scripts/collect-token-statistic.ts",
|
101 | "tsc": "tsc --noEmit",
|
102 | "tsc:old": "tsc --noEmit -p tsconfig-old-react.json",
|
103 | "version": "tsx scripts/generate-version.ts"
|
104 | },
|
105 | "browserslist": [
|
106 | "> 0.5%",
|
107 | "last 2 versions",
|
108 | "Firefox ESR",
|
109 | "not dead"
|
110 | ],
|
111 | "dependencies": {
|
112 | "@ant-design/colors": "^7.1.0",
|
113 | "@ant-design/cssinjs": "^1.21.0",
|
114 | "@ant-design/cssinjs-utils": "^1.0.3",
|
115 | "@ant-design/icons": "^5.4.0",
|
116 | "@ant-design/react-slick": "~1.1.2",
|
117 | "@babel/runtime": "^7.24.8",
|
118 | "@ctrl/tinycolor": "^3.6.1",
|
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.2.2",
|
124 | "classnames": "^2.5.1",
|
125 | "copy-to-clipboard": "^3.3.3",
|
126 | "dayjs": "^1.11.11",
|
127 | "rc-cascader": "~3.28.1",
|
128 | "rc-checkbox": "~3.3.0",
|
129 | "rc-collapse": "~3.7.3",
|
130 | "rc-dialog": "~9.5.2",
|
131 | "rc-drawer": "~7.2.0",
|
132 | "rc-dropdown": "~4.2.0",
|
133 | "rc-field-form": "~2.4.0",
|
134 | "rc-image": "~7.9.0",
|
135 | "rc-input": "~1.6.3",
|
136 | "rc-input-number": "~9.2.0",
|
137 | "rc-mentions": "~2.15.0",
|
138 | "rc-menu": "~9.14.1",
|
139 | "rc-motion": "^2.9.2",
|
140 | "rc-notification": "~5.6.0",
|
141 | "rc-pagination": "~4.2.0",
|
142 | "rc-picker": "~4.6.14",
|
143 | "rc-progress": "~4.0.0",
|
144 | "rc-rate": "~2.13.0",
|
145 | "rc-resize-observer": "^1.4.0",
|
146 | "rc-segmented": "~2.3.0",
|
147 | "rc-select": "~14.15.2",
|
148 | "rc-slider": "~11.1.5",
|
149 | "rc-steps": "~6.0.1",
|
150 | "rc-switch": "~4.1.0",
|
151 | "rc-table": "~7.45.7",
|
152 | "rc-tabs": "~15.1.1",
|
153 | "rc-textarea": "~1.8.1",
|
154 | "rc-tooltip": "~6.2.0",
|
155 | "rc-tree": "~5.9.0",
|
156 | "rc-tree-select": "~5.23.0",
|
157 | "rc-upload": "~4.7.0",
|
158 | "rc-util": "^5.43.0",
|
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.2",
|
166 | "@antv/g6": "^4.8.24",
|
167 | "@babel/eslint-plugin": "^7.24.7",
|
168 | "@biomejs/biome": "^1.8.3",
|
169 | "@codecov/webpack-plugin": "^0.0.1-beta.10",
|
170 | "@codesandbox/sandpack-react": "^2.18.0",
|
171 | "@dnd-kit/core": "^6.1.0",
|
172 | "@dnd-kit/modifiers": "^7.0.0",
|
173 | "@dnd-kit/sortable": "^8.0.0",
|
174 | "@dnd-kit/utilities": "^3.2.2",
|
175 | "@emotion/css": "^11.11.2",
|
176 | "@emotion/react": "^11.11.4",
|
177 | "@emotion/server": "^11.11.0",
|
178 | "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
179 | "@inquirer/prompts": "^5.1.2",
|
180 | "@madccc/duplicate-package-checker-webpack-plugin": "^1.0.0",
|
181 | "@microflash/rehype-figure": "^2.1.0",
|
182 | "@npmcli/run-script": "^8.1.0",
|
183 | "@octokit/rest": "^21.0.0",
|
184 | "@qixian.cs/github-contributors-list": "^2.0.2",
|
185 | "@size-limit/file": "^11.1.4",
|
186 | "@stackblitz/sdk": "^1.11.0",
|
187 | "@testing-library/dom": "^10.3.2",
|
188 | "@testing-library/jest-dom": "^6.4.6",
|
189 | "@testing-library/react": "^16.0.0",
|
190 | "@testing-library/user-event": "^14.5.2",
|
191 | "@types/adm-zip": "^0.5.5",
|
192 | "@types/ali-oss": "^6.16.11",
|
193 | "@types/cli-progress": "^3.11.6",
|
194 | "@types/fs-extra": "^11.0.4",
|
195 | "@types/gtag.js": "^0.0.20",
|
196 | "@types/http-server": "^0.12.4",
|
197 | "@types/isomorphic-fetch": "^0.0.39",
|
198 | "@types/jest": "^29.5.12",
|
199 | "@types/jest-axe": "^3.5.9",
|
200 | "@types/jest-environment-puppeteer": "^5.0.6",
|
201 | "@types/jest-image-snapshot": "^6.4.0",
|
202 | "@types/jquery": "^3.5.30",
|
203 | "@types/jsdom": "^21.1.7",
|
204 | "@types/lodash": "^4.17.6",
|
205 | "@types/minimist": "^1.2.5",
|
206 | "@types/node": "^22.0.0",
|
207 | "@types/nprogress": "^0.2.3",
|
208 | "@types/pixelmatch": "^5.2.6",
|
209 | "@types/pngjs": "^6.0.5",
|
210 | "@types/prismjs": "^1.26.4",
|
211 | "@types/progress": "^2.0.7",
|
212 | "@types/qs": "^6.9.15",
|
213 | "@types/react": "^18.3.3",
|
214 | "@types/react-copy-to-clipboard": "^5.0.7",
|
215 | "@types/react-dom": "^18.3.0",
|
216 | "@types/react-highlight-words": "^0.20.0",
|
217 | "@types/react-resizable": "^3.0.8",
|
218 | "@types/semver": "^7.5.8",
|
219 | "@types/spinnies": "^0.5.3",
|
220 | "@types/tar": "^6.1.13",
|
221 | "@types/throttle-debounce": "^5.0.2",
|
222 | "@types/warning": "^3.0.3",
|
223 | "@typescript-eslint/eslint-plugin": "^8.0.0",
|
224 | "@typescript-eslint/parser": "^8.0.0",
|
225 | "adm-zip": "^0.5.14",
|
226 | "ali-oss": "^6.20.0",
|
227 | "antd-img-crop": "^4.22.0",
|
228 | "antd-style": "^3.6.2",
|
229 | "antd-token-previewer": "^2.0.8",
|
230 | "axios": "^1.7.2",
|
231 | "chalk": "^4.1.2",
|
232 | "cheerio": "^1.0.0",
|
233 | "circular-dependency-plugin": "^5.2.2",
|
234 | "cli-progress": "^3.12.0",
|
235 | "cross-env": "^7.0.3",
|
236 | "cross-fetch": "^4.0.0",
|
237 | "dekko": "^0.2.1",
|
238 | "dotenv": "^16.4.5",
|
239 | "dumi": "~2.4.5",
|
240 | "dumi-plugin-color-chunk": "^1.1.1",
|
241 | "eslint": "^8.57.0",
|
242 | "eslint-config-airbnb": "^19.0.4",
|
243 | "eslint-config-prettier": "^9.1.0",
|
244 | "eslint-import-resolver-typescript": "^3.6.1",
|
245 | "eslint-plugin-compat": "^6.0.0",
|
246 | "eslint-plugin-import": "^2.29.1",
|
247 | "eslint-plugin-jest": "^28.6.0",
|
248 | "eslint-plugin-jsx-a11y": "^6.8.0",
|
249 | "eslint-plugin-lodash": "^7.4.0",
|
250 | "eslint-plugin-markdown": "^5.1.0",
|
251 | "eslint-plugin-react": "^7.34.4",
|
252 | "eslint-plugin-react-hooks": "^4.6.2",
|
253 | "eslint-plugin-unicorn": "^55.0.0",
|
254 | "fast-glob": "^3.3.2",
|
255 | "fetch-jsonp": "^1.3.0",
|
256 | "fs-extra": "^11.2.0",
|
257 | "gh-pages": "^6.1.1",
|
258 | "glob": "^11.0.0",
|
259 | "html2sketch": "^1.0.2",
|
260 | "http-server": "^14.1.1",
|
261 | "husky": "^9.1.2",
|
262 | "identity-obj-proxy": "^3.0.0",
|
263 | "immer": "^10.1.1",
|
264 | "is-ci": "^3.0.1",
|
265 | "isomorphic-fetch": "^3.0.0",
|
266 | "jest": "^29.7.0",
|
267 | "jest-axe": "^9.0.0",
|
268 | "jest-canvas-mock": "^2.5.2",
|
269 | "jest-environment-jsdom": "^29.7.0",
|
270 | "jest-environment-node": "^29.7.0",
|
271 | "jest-image-snapshot": "^6.4.0",
|
272 | "jest-puppeteer": "^10.0.1",
|
273 | "jquery": "^3.7.1",
|
274 | "jsdom": "^25.0.0",
|
275 | "jsonml-to-react-element": "^1.1.11",
|
276 | "jsonml.js": "^0.1.0",
|
277 | "lint-staged": "^15.2.7",
|
278 | "lodash": "^4.17.21",
|
279 | "lunar-typescript": "^1.7.5",
|
280 | "lz-string": "^1.5.0",
|
281 | "minimist": "^1.2.8",
|
282 | "mockdate": "^3.0.5",
|
283 | "node-fetch": "^3.3.2",
|
284 | "node-notifier": "^10.0.1",
|
285 | "nprogress": "^0.2.0",
|
286 | "open": "^10.1.0",
|
287 | "ora": "^8.0.1",
|
288 | "p-all": "^5.0.0",
|
289 | "pixelmatch": "^6.0.0",
|
290 | "pngjs": "^7.0.0",
|
291 | "prettier": "^3.3.3",
|
292 | "prettier-plugin-jsdoc": "^1.3.0",
|
293 | "pretty-format": "^29.7.0",
|
294 | "prismjs": "^1.29.0",
|
295 | "puppeteer": "^23.0.0",
|
296 | "qs": "^6.12.3",
|
297 | "rc-footer": "^0.6.8",
|
298 | "rc-tween-one": "^3.0.6",
|
299 | "rc-virtual-list": "^3.14.5",
|
300 | "react": "^18.3.1",
|
301 | "react-copy-to-clipboard": "^5.1.0",
|
302 | "react-countup": "^6.5.3",
|
303 | "react-dom": "^18.3.1",
|
304 | "react-draggable": "^4.4.6",
|
305 | "react-fast-marquee": "^1.6.5",
|
306 | "react-highlight-words": "^0.20.0",
|
307 | "react-infinite-scroll-component": "^6.1.0",
|
308 | "react-intersection-observer": "^9.13.0",
|
309 | "react-resizable": "^3.0.5",
|
310 | "react-router-dom": "^6.24.1",
|
311 | "react-sticky-box": "^2.0.5",
|
312 | "regenerator-runtime": "^0.14.1",
|
313 | "rehype-stringify": "^10.0.0",
|
314 | "remark": "^15.0.1",
|
315 | "remark-cli": "^12.0.1",
|
316 | "remark-gfm": "^4.0.0",
|
317 | "remark-lint": "^10.0.0",
|
318 | "remark-lint-no-undefined-references": "^5.0.0",
|
319 | "remark-preset-lint-recommended": "^7.0.0",
|
320 | "remark-rehype": "^11.1.0",
|
321 | "rimraf": "^6.0.1",
|
322 | "runes2": "^1.1.4",
|
323 | "semver": "^7.6.2",
|
324 | "sharp": "^0.33.4",
|
325 | "simple-git": "^3.25.0",
|
326 | "size-limit": "^11.1.4",
|
327 | "spinnies": "^0.5.1",
|
328 | "sylvanas": "^0.6.1",
|
329 | "tar": "^7.4.0",
|
330 | "tar-fs": "^3.0.6",
|
331 | "terser": "^5.31.2",
|
332 | "tsx": "4.11.2",
|
333 | "typedoc": "^0.26.4",
|
334 | "typescript": "~5.5.3",
|
335 | "vanilla-jsoneditor": "^0.23.7",
|
336 | "vanilla-tilt": "^1.8.1",
|
337 | "webpack": "^5.93.0",
|
338 | "webpack-bundle-analyzer": "^4.10.2",
|
339 | "xhr-mock": "^2.5.1"
|
340 | },
|
341 | "peerDependencies": {
|
342 | "react": ">=16.9.0",
|
343 | "react-dom": ">=16.9.0"
|
344 | },
|
345 | "publishConfig": {
|
346 | "registry": "https://registry.npmjs.org/"
|
347 | },
|
348 | "size-limit": [
|
349 | {
|
350 | "path": "./dist/antd.min.js",
|
351 | "limit": "500 KiB",
|
352 | "gzip": true
|
353 | },
|
354 | {
|
355 | "path": "./dist/antd-with-locales.min.js",
|
356 | "limit": "500 KiB",
|
357 | "gzip": true
|
358 | }
|
359 | ],
|
360 | "title": "Ant Design",
|
361 | "tnpm": {
|
362 | "mode": "npm"
|
363 | }
|
364 | }
|