Skip to content

merge code from ant-design#1

Open
HamburgerTwo wants to merge 10000 commits into
BY-HealthFED:masterfrom
ant-design:master
Open

merge code from ant-design#1
HamburgerTwo wants to merge 10000 commits into
BY-HealthFED:masterfrom
ant-design:master

Conversation

@HamburgerTwo
Copy link
Copy Markdown

First of all, thank you for your contribution! :-)

Please makes sure that these checkboxes are checked before submitting your PR, thank you!

  • Make sure that you propose PR to right branch: bugfix for master, feature for latest active branch feature-x.x.
  • Make sure that you follow antd's code convention.
  • Run npm run lint and fix those errors before submitting in order to keep consistent code style.
  • Rebase before creating a PR to keep commit history clear.
  • Add some descriptions and refer relative issues for you PR.

Extra checklist:

if isBugFix :

  • Make sure that you add at least one unit test for the bug which you had fixed.

elif isNewFeature :

  • Update API docs for the component.
  • Update/Add demo to demonstrate new feature.
  • Update TypeScript definition for the component.
  • Add unit tests for the feature.

github-actions Bot and others added 20 commits March 17, 2026 02:28
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
* chore: bump the dev-dependencies group with 2 updates

Bumps the dev-dependencies group with 2 updates: [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/packages/plugins/eslint-plugin) and [jsdom](https://github.com/jsdom/jsdom).


Updates `@eslint-react/eslint-plugin` from 2.13.0 to 3.0.0
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v3.0.0/packages/plugins/eslint-plugin)

Updates `jsdom` from 28.1.0 to 29.0.0
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/v29.0.0/Changelog.md)
- [Commits](jsdom/jsdom@v28.1.0...v29.0.0)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 3.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: jsdom
  dependency-version: 29.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix

* fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
Bumps [nearform-actions/github-action-notify-twitter](https://github.com/nearform-actions/github-action-notify-twitter) from 213eb499a34edbf3452c87486e2d461e53e4bd6e to 533af55cff22a4898ff038dc23f8d8535dfc585f.
- [Release notes](https://github.com/nearform-actions/github-action-notify-twitter/releases)
- [Commits](nearform-actions/github-action-notify-twitter@213eb49...533af55)

---
updated-dependencies:
- dependency-name: nearform-actions/github-action-notify-twitter
  dependency-version: 533af55cff22a4898ff038dc23f8d8535dfc585f
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@antfu/eslint-config](https://github.com/antfu/eslint-config) from 7.7.2 to 7.7.3.
- [Release notes](https://github.com/antfu/eslint-config/releases)
- [Commits](antfu/eslint-config@v7.7.2...v7.7.3)

---
updated-dependencies:
- dependency-name: "@antfu/eslint-config"
  dependency-version: 7.7.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* ci(Watermark): guard undefined onRemove callback in hook

Made-with: Cursor

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by:  高艳兵 <66234749+QDyanbing@users.noreply.github.com>

---------

Signed-off-by: 高艳兵 <66234749+QDyanbing@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…5cff22a4898ff038dc23f8d8535dfc585f to d93d7b06de08ebc25c62fc322573002bb527f610 (#57346)

Bumps [nearform-actions/github-action-notify-twitter](https://github.com/nearform-actions/github-action-notify-twitter) from 533af55cff22a4898ff038dc23f8d8535dfc585f to d93d7b06de08ebc25c62fc322573002bb527f610.
- [Release notes](https://github.com/nearform-actions/github-action-notify-twitter/releases)
- [Commits](nearform-actions/github-action-notify-twitter@533af55...d93d7b0)

---
updated-dependencies:
- dependency-name: nearform-actions/github-action-notify-twitter
  dependency-version: d93d7b06de08ebc25c62fc322573002bb527f610
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump @eslint-react/eslint-plugin in the dev-dependencies group

Bumps the dev-dependencies group with 1 update: [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/packages/plugins/eslint-plugin).


Updates `@eslint-react/eslint-plugin` from 2.13.0 to 3.0.0
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v3.0.0/packages/plugins/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 3.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…est to ef2bc7d (#57350)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Bumps [father](https://github.com/umijs/father) from 4.6.15 to 4.6.16.
- [Release notes](https://github.com/umijs/father/releases)
- [Commits](umijs/father@v4.6.15...v4.6.16)

---
updated-dependencies:
- dependency-name: father
  dependency-version: 4.6.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#57360)

* fix(Menu): align vertical collapsed icons for large collapsedIconSize

* Update components/menu/demo/collapsed-icon-debug.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by:  高艳兵 <66234749+QDyanbing@users.noreply.github.com>

* feat: update snap

* fix: image diff

---------

Signed-off-by: 高艳兵 <66234749+QDyanbing@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…eader (#57342)

* fix(Table): avoid duplicated controlled Popover rendering in scroll measure rows

Made-with: Cursor

* fix: update snap

* fix(Tooltip): hide tooltip in table measure row and format legacy props definition

Made-with: Cursor

* test: add debug demo

* fix: restore table measure-row-render demo

---------

Co-authored-by: 遇见同学 <1875694521@qq.com>
Bumps [father](https://github.com/umijs/father) from 4.6.16 to 4.6.17.
- [Release notes](https://github.com/umijs/father/releases)
- [Commits](umijs/father@v4.6.16...v4.6.17)

---
updated-dependencies:
- dependency-name: father
  dependency-version: 4.6.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
* chore: move codex skills symlink to .agents

* chore: move skill files into .agents directory
li-jia-nan and others added 30 commits May 5, 2026 21:35
* fix(wave): ignore transparent hex colors

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/_util/__tests__/wave-util.test.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: lijianan <574980606@qq.com>

* update

* test: add test case

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
Bumps [nearform-actions/github-action-notify-twitter](https://github.com/nearform-actions/github-action-notify-twitter) from 6dc44ca3a9f6d0b546aa61499183984db6661cd4 to 1720bf1002ac22015ad2bb627d2a173d463383e1.
- [Release notes](https://github.com/nearform-actions/github-action-notify-twitter/releases)
- [Commits](nearform-actions/github-action-notify-twitter@6dc44ca...1720bf1)

---
updated-dependencies:
- dependency-name: nearform-actions/github-action-notify-twitter
  dependency-version: 1720bf1002ac22015ad2bb627d2a173d463383e1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…te (#57870)

* chore: bump the dev-dependencies group across 1 directory with 2 updates

Bumps the dev-dependencies group with 2 updates in the / directory: [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/plugins/eslint-plugin) and [lint-staged](https://github.com/lint-staged/lint-staged).


Updates `@eslint-react/eslint-plugin` from 3.0.0 to 5.7.3
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v5.7.3/plugins/eslint-plugin)

Updates `lint-staged` from 16.4.0 to 17.0.2
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v16.4.0...v17.0.2)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 5.7.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: lint-staged
  dependency-version: 17.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Bumps [nearform-actions/github-action-notify-twitter](https://github.com/nearform-actions/github-action-notify-twitter) from 1720bf1002ac22015ad2bb627d2a173d463383e1 to cb930e8156474e8fdaaf816459bba9d684467d26.
- [Release notes](https://github.com/nearform-actions/github-action-notify-twitter/releases)
- [Commits](nearform-actions/github-action-notify-twitter@1720bf1...cb930e8)

---
updated-dependencies:
- dependency-name: nearform-actions/github-action-notify-twitter
  dependency-version: cb930e8156474e8fdaaf816459bba9d684467d26
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix grammar and clarity in issue-helper documentation

Signed-off-by: sri443 <raksdot223@gmail.com>

* Update docs/blog/issue-helper.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: sri443 <raksdot223@gmail.com>

* Update docs/blog/issue-helper.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: sri443 <raksdot223@gmail.com>

---------

Signed-off-by: sri443 <raksdot223@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: Alex Zhu <afc163@gmail.com>
* docs: add ci test marker

* chore: pin jest dependencies to 30.3.0

* docs: remove ci test marker
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Alex Zhu <afc163@gmail.com>
* fix(Button): vertically center icon glyph in icon-only buttons

Closes #57727

* test(Button): remove self-referential icon wrapper CSS assertion
…est to 92085ea (#57907)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(site): fix color preview popover arrow color

* update
* fix: add forwardRef to Dropdown for React 18 compatibility

Fixes #57893

Problem:
When wrapping Dropdown with Tooltip in React 18, the tooltip does not work
and throws a console error:

  Warning: Function components cannot be given refs. Attempts to access
  this ref will fail. Did you mean to use React.forwardRef()?

This happens because Tooltip needs to access the ref of its child component
to position itself correctly, but Dropdown was not forwarding refs.

Root Cause:
Dropdown was defined as a regular function component without React.forwardRef.
In React 18, refs are not automatically forwarded to function components.
React 19 changed this behavior to make refs work by default, which is why
the same code works in React 19.

Solution:
Wrap Dropdown component with React.forwardRef and forward the ref to the
trigger element (child). This allows parent components like Tooltip to
access the DOM node for positioning.

Changes:
- components/dropdown/dropdown.tsx
  - Change CompoundedComponent type from React.FC to React.ForwardRefExoticComponent
  - Wrap component definition with React.forwardRef<HTMLElement, DropdownProps>
  - Forward ref to the cloned child element (popupTrigger)
  - Cast the result back to CompoundedComponent to preserve static properties

Impact:
- ✅ Fixes Tooltip + Dropdown combination in React 18
- ✅ Maintains backward compatibility (refs are optional)
- ✅ No breaking changes for existing code
- ✅ Aligns with React 18 best practices
- ✅ Works in both React 18 and React 19

Example:
Before: <Tooltip title="Tip"><Dropdown>...</Dropdown></Tooltip> → Error
After: <Tooltip title="Tip"><Dropdown>...</Dropdown></Tooltip> → Works ✓

Related: #39098

* fix: compose forwarded ref with child's existing ref

Address review feedback from @gemini-code-assist and @coderabbitai.

Problem:
Directly passing the forwarded ref to cloneElement overwrites any
existing ref on the child element. This breaks existing usage patterns
like `<Dropdown><Button ref={buttonRef} /></Dropdown>` where users
need to access the trigger element's DOM node.

Solution:
Use useComposeRef from @rc-component/util/lib/ref to merge the
forwarded ref with the child's original ref. This ensures both refs
receive the DOM node, maintaining backward compatibility.

Changes:
- Import useComposeRef from @rc-component/util/lib/ref
- Compose forwarded ref with child.ref before passing to cloneElement
- Preserves both Dropdown's forwarded ref and child's existing ref
* chore: bump @eslint-react/eslint-plugin in the dev-dependencies group

Bumps the dev-dependencies group with 1 update: [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/plugins/eslint-plugin).


Updates `@eslint-react/eslint-plugin` from 3.0.0 to 5.7.4
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v5.7.4/plugins/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 5.7.4
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
* docs: fix typos and grammar in contributor guide

Corrected typos and improved clarity in the contributor development maintenance guide.

Signed-off-by: Sri <sriraksha3337@gmail.com>

* Update docs/blog/contributor-development-maintenance-guide.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Sri <sriraksha3337@gmail.com>

* Update docs/blog/contributor-development-maintenance-guide.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Sri <sriraksha3337@gmail.com>

* Update docs/blog/contributor-development-maintenance-guide.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Sri <sriraksha3337@gmail.com>

* Update docs/blog/contributor-development-maintenance-guide.en-US.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Sri <sriraksha3337@gmail.com>

---------

Signed-off-by: Sri <sriraksha3337@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](peaceiris/actions-gh-pages@4f9cc66...84c30a8)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [nearform-actions/github-action-notify-twitter](https://github.com/nearform-actions/github-action-notify-twitter) from 92085ea9d6c79851c0abaa8eb309e2e20643131e to 78d0a35072a8057fd330896ab19975d891018a74.
- [Release notes](https://github.com/nearform-actions/github-action-notify-twitter/releases)
- [Commits](nearform-actions/github-action-notify-twitter@92085ea...78d0a35)

---
updated-dependencies:
- dependency-name: nearform-actions/github-action-notify-twitter
  dependency-version: 78d0a35072a8057fd330896ab19975d891018a74
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: add agent readiness files for isitagentready.com score

Add robots.txt with AI bot rules, Content Signals, and sitemap reference.
Enable dumi sitemap generation.
Add /.well-known/agent-skills/ with index.json and SKILL.md files.
Add /.well-known/api-catalog for API discovery (RFC 9727).
Add /.well-known/mcp/server-card.json for MCP server discovery.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* feat: add A2A Agent Card for agent discovery

Add /.well-known/agent-card.json to improve isitagentready.com score.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: add final newline to SKILL.md files for remark-lint

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: add supportedInterfaces to A2A Agent Card

The A2A spec requires a supportedInterfaces field in agent-card.json.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* feat: add OAuth discovery, Web Bot Auth, and WebMCP support

Add /.well-known/oauth-authorization-server for OAuth discovery.
Add /.well-known/oauth-protected-resource per RFC 9728.
Add /.well-known/http-message-signatures-directory for Web Bot Auth.
Add WebMCP script to register search-antd-docs tool.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: use arrow callback in webmcp.js for eslint prefer-arrow-callback

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: format if-return to multiline block in webmcp.js

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
* fix(Space): adjust compact item hover z-index

* fix(Space): handle focused compact item hover z-index
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.