Skip to content

Commit f3ba9d4

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/react-intl-8.1.4
2 parents 82654b2 + 9dae16e commit f3ba9d4

183 files changed

Lines changed: 32862 additions & 2563 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codefuse/skills/components/SKILL.md

Lines changed: 0 additions & 572 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: ut compile
1616
- run: ut coverage
1717
- run: ut test:dekko
18-
- uses: codecov/codecov-action@v5
18+
- uses: codecov/codecov-action@v6
1919
with:
2020
directories: packages/x,packages/x-markdown,packages/x-sdk
2121
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/preview-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
steps:
6363
# We need get PR id first
6464
- name: download pr artifact
65-
uses: dawidd6/action-download-artifact@v16
65+
uses: dawidd6/action-download-artifact@v19
6666
with:
6767
workflow: ${{ github.event.workflow_run.workflow_id }}
6868
run_id: ${{ github.event.workflow_run.id }}
@@ -82,7 +82,7 @@ jobs:
8282
# Download site artifact
8383
- name: download site artifact
8484
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }}
85-
uses: dawidd6/action-download-artifact@v16
85+
uses: dawidd6/action-download-artifact@v19
8686
with:
8787
workflow: ${{ github.event.workflow_run.workflow_id }}
8888
run_id: ${{ github.event.workflow_run.id }}

CHANGELOG.en-US.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,41 @@ tag: vVERSION
1616

1717
---
1818

19+
## 2.6.0
20+
21+
`2026-04-17`
22+
23+
### @ant-design/x
24+
25+
- 🐛 Fix duplicate `className` passed to the root element of `ThoughtChain`, and default `contentOpen` to `false` to prevent `undefined` when `expandedKeys` is not provided. [#1851](https://github.com/ant-design/x/pull/1851) by [feoyang](https://github.com/feoyang)
26+
- 🐛 Fix Folder component title display bug. [#1855](https://github.com/ant-design/x/pull/1855) by [kimteayon](https://github.com/kimteayon)
27+
28+
### @ant-design/x-markdown
29+
30+
- 🆕 Support rendering block-level LaTeX formulas inside paragraphs, using `<span>` instead of `<div>` to be compatible with inline contexts. [#1859](https://github.com/ant-design/x/pull/1859) by [Div627](https://github.com/Div627)
31+
32+
### @ant-design/x-skill
33+
34+
- 🆕 Added `x-components` skill, providing full API documentation, usage patterns, and best practices for all `@ant-design/x` components. [#1862](https://github.com/ant-design/x/pull/1862) by [kimteayon](https://github.com/kimteayon)
35+
- 🆕 Added `x-card` skill, providing complete API reference, data binding, Actions, and Commands documentation for `@ant-design/x-card`. [#1865](https://github.com/ant-design/x/pull/1865) by [kimteayon](https://github.com/kimteayon)
36+
- 🛠 Updated `use-x-chat`, `x-chat-provider`, and `x-request` skill content to sync with the latest APIs and examples. [#1862](https://github.com/ant-design/x/pull/1862) by [kimteayon](https://github.com/kimteayon)
37+
38+
### Others
39+
40+
- 📖 Fix broken documentation link in the X SDK usage guide. [#1856](https://github.com/ant-design/x/pull/1856) by [xiaohp](https://github.com/xiaohp)
41+
42+
## 2.5.0
43+
44+
`2026-03-31`
45+
46+
### @ant-design/x-card
47+
48+
- 🔥 New module X Card, a dynamic card rendering component based on A2UI protocol, enabling AI Agents to dynamically build and render interactive interfaces through structured JSON message streams.[#1836](https://github.com/ant-design/x/pull/1836) by [kimteayon](https://github.com/kimteayon)
49+
50+
### Others
51+
52+
- 📖 Optimized official website to improve user experience. [#1830](https://github.com/ant-design/x/pull/1830) by [1uokun](https://github.com/1uokun)
53+
1954
## 2.4.0
2055

2156
`2026-03-13`

CHANGELOG.zh-CN.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,41 @@ tag: vVERSION
1515

1616
---
1717

18+
## 2.6.0
19+
20+
`2026-04-17`
21+
22+
### @ant-design/x
23+
24+
- 🐛 修复 ThoughtChain 组件根元素重复传入 `className` 的问题,并将 `contentOpen` 默认值修正为 `false`,避免未传 `expandedKeys` 时出现 `undefined`[#1851](https://github.com/ant-design/x/pull/1851)[feoyang](https://github.com/feoyang) 提交
25+
- 🐛 修复 Folder 组件标题展示异常的问题。[#1855](https://github.com/ant-design/x/pull/1855)[kimteayon](https://github.com/kimteayon) 提交
26+
27+
### @ant-design/x-markdown
28+
29+
- 🆕 支持在段落(paragraph)中渲染块级 LaTeX 公式,使用 `<span>` 替代 `<div>` 以兼容行内上下文。[#1859](https://github.com/ant-design/x/pull/1859)[Div627](https://github.com/Div627) 提交
30+
31+
### @ant-design/x-skill
32+
33+
- 🆕 新增 `x-components` skill,提供 `@ant-design/x` 全组件 API 文档、使用模式与最佳实践参考。[#1862](https://github.com/ant-design/x/pull/1862)[kimteayon](https://github.com/kimteayon) 提交
34+
- 🆕 新增 `x-card` skill,提供 `@ant-design/x-card` 动态卡片组件的完整 API、数据绑定、Actions 与 Commands 参考文档。[#1865](https://github.com/ant-design/x/pull/1865)[kimteayon](https://github.com/kimteayon) 提交
35+
- 🛠 更新 `use-x-chat``x-chat-provider``x-request` skill 内容,同步最新 API 与示例。[#1862](https://github.com/ant-design/x/pull/1862)[kimteayon](https://github.com/kimteayon) 提交
36+
37+
### 其他
38+
39+
- 📖 修复 X SDK 使用文档中的链接错误。[#1856](https://github.com/ant-design/x/pull/1856)[xiaohp](https://github.com/xiaohp) 提交
40+
41+
## 2.5.0
42+
43+
`2026-03-31`
44+
45+
### @ant-design/x-card
46+
47+
- 🔥 新模块 X Card 基于 A2UI 协议的动态卡片渲染组件,让 AI Agent 能够通过结构化的 JSON 消息流,动态构建和渲染交互式界面。[#1836](https://github.com/ant-design/x/pull/1836)[kimteayon](https://github.com/kimteayon) 提交
48+
49+
### 其他
50+
51+
- 📖 优化官网站点提升用户体验。[#1830](https://github.com/ant-design/x/pull/1830)[1uokun](https://github.com/1uokun) 提交
52+
1853
## 2.4.0
1954

2055
`2026-03-13`

README-zh_CN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191

9292
`@ant-design/x-markdown` 旨在提供流式友好、强拓展性和高性能的 Markdown 渲染器。提供流式渲染公式、代码高亮、mermaid 等能力,详情点击[这里](packages/x-markdown/README-zh_CN.md)
9393

94+
## 🎴 动态卡片渲染器
95+
96+
`@ant-design/x-card` 是一个基于 A2UI 协议的动态卡片渲染组件,让 AI Agent 能够通过结构化的 JSON 消息流,动态构建和渲染交互式界面。支持流式渲染、数据绑定和响应式更新,详情点击[这里](packages/x-card/README.md)
97+
9498
## 🚀 Skill
9599

96100
`@ant-design/x-skill` 是专为 Ant Design X 打造的智能技能库,提供了一系列精心设计的 Agent 技能。这些技能能够显著提升开发效率,帮助您快速构建高质量的 AI 对话应用,并有效解决开发过程中遇到的各种问题,详情点击[这里](packages/x-skill/README-zh_CN.md)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ Build excellent AI interfaces and pioneer intelligent new experiences.
9191

9292
`@ant-design/x-markdown` aims to provide a streaming-friendly, highly extensible, and high-performance Markdown renderer. It supports streaming rendering of formulas, code highlighting, mermaid, and more. See details [here](packages/x-markdown/README.md).
9393

94+
## 🎴 Dynamic Card Renderer
95+
96+
`@ant-design/x-card` is a dynamic card rendering component based on the A2UI protocol, enabling AI Agents to dynamically build and render interactive interfaces through structured JSON message streams. It supports streaming rendering, data binding, and reactive updates. See details [here](packages/x-card/README.md).
97+
9498
## 🚀 Skill
9599

96100
`@ant-design/x-skill` is an intelligent skill library specially designed for Ant Design X, providing a series of carefully designed Agent skills. These skills can significantly improve development efficiency, help you quickly build high-quality AI conversation applications, and effectively solve various problems encountered during development. See details [here](packages/x-skill/README.md).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "x-mono",
3-
"version": "2.4.0",
3+
"version": "2.6.0",
44
"private": true,
55
"scripts": {
66
"presite": "npm run prestart --workspaces",

packages/x-card/.fatherrc.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
targets: {
6+
chrome: 80,
7+
},
8+
esm: {
9+
input: 'src',
10+
ignores: ['**/demo/**', '**/__tests__/**'],
11+
},
12+
cjs: {
13+
input: 'src/',
14+
ignores: ['**/demo/**', '**/__tests__/**'],
15+
},
16+
umd: {
17+
entry: 'src/index.ts',
18+
name: 'XCard',
19+
output: {
20+
path: 'dist/',
21+
filename: 'x-card',
22+
},
23+
sourcemap: true,
24+
generateUnminified: true,
25+
externals: {
26+
react: {
27+
root: 'React',
28+
commonjs: 'react',
29+
commonjs2: 'react',
30+
},
31+
'react-dom': {
32+
root: 'ReactDOM',
33+
commonjs: 'react-dom',
34+
commonjs2: 'react-dom',
35+
},
36+
},
37+
},
38+
});

packages/x-card/.jest.js

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
const compileModules = [
2+
'@rc-component',
3+
'react-sticky-box',
4+
'rc-tween-one',
5+
'@babel',
6+
'@ant-design',
7+
'countup.js',
8+
'.pnpm',
9+
];
10+
11+
const resolve = (p) => require.resolve(`@ant-design/tools/lib/jest/${p}`);
12+
13+
const ignoreList = [];
14+
15+
// cnpm use `_` as prefix
16+
['', '_'].forEach((prefix) => {
17+
compileModules.forEach((module) => {
18+
ignoreList.push(`${prefix}${module}`);
19+
});
20+
});
21+
22+
const transformIgnorePatterns = [
23+
// Ignore modules without es dir.
24+
// Update: @babel/runtime should also be transformed
25+
`[/\\\\]node_modules[/\\\\](?!${ignoreList.join('|')})[^/\\\\]+?[/\\\\](?!(es)[/\\\\])`,
26+
];
27+
28+
function getTestRegex(libDir) {
29+
if (['dist', 'lib', 'es', 'dist-min'].includes(libDir)) {
30+
return 'demo\\.test\\.(j|t)sx?$';
31+
}
32+
return '.*\\.test\\.(j|t)sx?$';
33+
}
34+
35+
module.exports = {
36+
verbose: true,
37+
testEnvironment: '@happy-dom/jest-environment',
38+
setupFiles: ['./tests/setup.ts'],
39+
setupFilesAfterEnv: ['@testing-library/jest-dom'],
40+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'md'],
41+
modulePathIgnorePatterns: [],
42+
moduleNameMapper: {
43+
'\\.(css|less)$': 'identity-obj-proxy',
44+
},
45+
testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js', 'image.test.ts'],
46+
transform: {
47+
'\\.tsx?$': resolve('codePreprocessor'),
48+
'\\.(m?)js$': resolve('codePreprocessor'),
49+
'\\.md$': resolve('demoPreprocessor'),
50+
'\\.(jpg|png|gif|svg)$': resolve('imagePreprocessor'),
51+
},
52+
testRegex: getTestRegex(process.env.LIB_DIR),
53+
collectCoverageFrom: [
54+
'src/**/*.{ts,tsx}',
55+
'!src/**/*.d.ts',
56+
'!src/**/demo/**',
57+
'!src/**/__tests__/**',
58+
'!src/version.ts',
59+
'!src/index.ts', // 纯重导出文件
60+
'!src/A2UI/types/**', // 纯类型文件
61+
],
62+
transformIgnorePatterns,
63+
globals: {
64+
'ts-jest': {
65+
tsConfig: './tsconfig.json',
66+
},
67+
},
68+
testEnvironmentOptions: {
69+
url: 'http://localhost/x-card',
70+
},
71+
bail: true,
72+
maxWorkers: '50%',
73+
};

0 commit comments

Comments
 (0)