Skip to content

feat: Ant Design 6 / React 19 adaptor (community merge; validated in DataLuminary DataView) - #61

Open
zhoulujun wants to merge 2 commits into
formilyjs:masterfrom
LuminaryWorks:feat/antd-v6-adaptor
Open

zhoulujun wants to merge 2 commits into
formilyjs:masterfrom
LuminaryWorks:feat/antd-v6-adaptor

Conversation

@zhoulujun

@zhoulujun zhoulujun commented Sep 20, 2026 •

Copy link
Copy Markdown

Summary

@formily/antd-v5 has not shipped Ant Design 6 / React 19 support yet. Related work: #59, #52, #54, #55, #57.

We merged community adaptations into one maintained package and validated it in LuminaryWorks → DataLuminary → DataView (chart property panels / Formily SchemaField) on antd@6.6.4 + React 19. Unit test chartPropertyForm.antd.test.tsx passed.

Maintained interim package @luminaryworks/formily-antd-v6@1.0.0
Repo https://github.com/LuminaryWorks/formily-antd-v6

Sources we merged / credited

Cross-PRs notifying those forks (docs + small follow-ups):

Key technical changes

  • Portal / imperative dialog-drawer rendering via react-dom/client createRoot
  • @ant-design/cssinjs style hook updates for antd 6 token / theme types
  • Drawer footer/extra DOM selectors: .ant-drawer-content → .ant-drawer-section
  • Modal / Drawer callback typing aligned with antd 6 event unions
  • Card bordered → variant compatibility mapping
  • Peer deps: antd ^6, React 18+

Packaging note

Until this lands upstream, LuminaryWorks publishes @luminaryworks/formily-antd-v6 (OIDC Trusted Publishing). Happy to adjust this PR’s package name to whatever maintainers prefer (@formily/antd-v5 peer bump vs new @formily/antd-v6).

Test plan

  • yarn build for packages/components (tsc lib + esm)
  • DataView unit test: chart property Formily form on antd 6.6.4
  • Upstream CI / docs preview if maintainers want package-name adjustments

Credits

Thanks to the authors of #59 and the community forks listed above — this work stands on their shoulders.

Publish as @luminaryworks/formily-antd-v6 for the LuminaryWorks ecosystem
while official antd 6 support is still open (formilyjs#59).

Merges community adaptations from potop/formily-antd-v6, bobfw/antd-sync,
thienvu18/antd, and PR formilyjs#59: createRoot portal render, cssinjs style hook,
Drawer section selectors, Modal/Drawer event typing, Card bordered→variant.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify

netlify Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for formily-antd5 failed. Why did it fail? →

Name Link
🔨 Latest commit e25650d
🔍 Latest deploy log https://app.netlify.com/projects/formily-antd5/deploys/6aaf484b8ffb9d00073a4b7a

Align with LuminaryWorks/shared Trusted Publishing: push to master runs
publish-packages.yml, auto-bumps on source changes, no NPM_TOKEN.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhoulujun

Copy link
Copy Markdown
Author

交叉说明 / Cross-note(LuminaryWorks)

我们在维护一份合并了社区适配的 Ant Design 6 / React 19 版本,并已在生产同类场景验证:

仓库 https://github.com/LuminaryWorks/formily-antd-v6
npm @luminaryworks/formily-antd-v6 @1.0.0
验证产品 LuminaryWorks → DataLuminary → DataView 图表属性面板(Formily SchemaField:Input / Switch / Checkbox / NumberPicker / Select / Radio / Slider / FormCollapse 等)
运行时 antd@6.6.4 + React 19
官方 PR #61 (合并建议)

基线与致谢(本包站在各位肩膀上):

DataView 侧单测 chartPropertyForm.antd.test.tsx 已通过;在官方正式支持落地前,生态内会继续用 @luminaryworks/formily-antd-v6 作为过渡方案。欢迎官方 / 社区维护者审阅 #61,需要我们配合改包名或拆 commit 都可以。

@zhoulujun

Copy link
Copy Markdown
Author

About the Netlify / formily-antd5 deploy-preview failure

The failing checks (netlify/formily-antd5/deploy-preview, Header/Pages/Redirect rules) come from the docs site (dumi@1 + webpack 4), not from the runtime adaptor used by apps.

Local reproduction shows the same class of errors, e.g.:

  • webpack 4 cannot parse modern syntax in @ant-design/icons@6 (csp?.nonce)
  • missing / unresolved @rc-component/pagination/... under antd@6

Fixing that properly means migrating the doc toolchain (e.g. dumi 2, as some community forks did) — a large docs-only change.

We are not blocking on Netlify for this PR. LuminaryWorks will keep shipping and using the interim package that already passed product validation:

If maintainers prefer a docs-toolchain bump as a separate follow-up, we can help; otherwise consumers should treat this PR as a reference merge of the community antd 6 work, and use the scoped package above until (if ever) official support lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant