UNPKG

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