chore: upgrade antd to v6 and @ant-design/x to v2#341
Conversation
|
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Replace messageRender with contentRender and update avatar
props to be compatible with @ant-design/x v2.
Changes:
- Replace BubbleProps['messageRender'] with
BubbleProps['contentRender']
- Replace messageRender={...} with contentRender={...}
- Replace avatar={{ src: '...' }} with
avatar={<img src="..." />}
Updated 39 demo .tsx files and 4 markdown docs.
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
|
🎊 PR Preview 4fe0a5a has been successfully built and deployed to https://antvis-GPT-Vis-preview-pr-341.surge.sh 🕐 Build time: 22.229s 🤖 By surge-preview |
|
@copilot 是不是 antd 不应该在 peerDependence 中? |
If we move antd to regular dependencies, it would:
The current approach is standard for React libraries that wrap or extend another UI library's components. |

Resolves peer dependency conflict between
@antv/gpt-vis(requiringantd@^5.24.6) and@ant-design/x@2.x(requiringantd@^6.1.1).Dependency Updates
^5.24.6→^6.1.1(peerDependencies)^5.27.5→^6.2.3(devDependencies)^1.6.1→^2.2.1(devDependencies, required for antd v6 support)Breaking API Changes in @ant-design/x v2
Updated 39 demo files for @ant-design/x v2 Bubble component API:
Compatibility Notes
Core library components (
VisText,useAntdDarkAlgorithm) use only backward-compatible antd APIs (Tooltip,Typography,ConfigProvider,theme). No breaking changes to@antv/gpt-vispublic API.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ant.design/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
@antv/gpt-vis与@ant-design/x@2.x存在依赖冲突,导致 Vite 无法解析 antd #340✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.