Skip to content

Conversation

@Div627
Copy link
Contributor

@Div627 Div627 commented Sep 29, 2025

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ⌨️ Accessibility improvement
  • ❓ Other (about what?)

💡 Background and Solution

Background: 在流式渲染时,遇到未完成的图片/链接 ![img](,缓存等待时间久,用户体验差。
Solution:匹配未完成的 Markdown 语法,支持传入 components 传入加载状态。

📝 Change Log

  1. 支持通过组件匹配未完成的Markdown语法。
  2. 默认缓存 Setext headings,避免格式突变。
Language Changelog
🇺🇸 English
🇨🇳 Chinese

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 29, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature_markdown_format

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2025

Preview is ready

@codecov
Copy link

codecov bot commented Sep 29, 2025

Bundle Report

Changes will increase total bundle size by 10.04kB (0.24%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
x-markdown-array-push 3.94MB 10.04kB (0.26%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: x-markdown-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
mermaid.min.js 10.04kB 3.94MB 0.26%

@dosubot dosubot bot added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 29, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Div627, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求显著增强了 XMarkdown 组件的流式渲染能力,使其能够智能地处理不完整的Markdown语法。通过引入可自定义的占位符组件,它解决了在实时内容传输过程中因语法片段导致的视觉中断和用户体验不佳的问题。此外,还对核心流式处理逻辑进行了重构,并提供了全面的新文档和示例,以支持这些改进。

Highlights

  • 支持通过组件匹配未完成的Markdown语法: 在流式渲染过程中,当遇到未完成的Markdown语法(如链接或图片)时,XMarkdown现在能够识别并允许通过自定义组件进行匹配和渲染,从而提供更好的用户体验,避免显示破碎的语法。
  • 新增 incompleteMarkdownComponentMap 配置项: 为 streaming 属性新增了 incompleteMarkdownComponentMap 配置项,用户可以指定自定义组件来替代流式渲染中未闭合的链接和图片,例如显示加载骨架屏。
  • 优化 useStreaming Hook 逻辑: 重构了 useStreaming Hook,引入了 StreamBuffer 接口和 handleTokenProcessing 函数,以更精细地管理流式状态和处理不完整的Markdown语法。同时,增加了当输入内容完全改变时重置流式状态的逻辑。
  • 默认缓存 Setext headings: 为避免在流式渲染过程中Setext标题(如Title ---)出现格式突变,现在默认会缓存此类标题,以确保渲染的稳定性。
  • 更新和新增文档: 新增了关于流式语法处理和动画效果的详细文档页面(streaming-syntaxstreaming-animation),并更新了相关示例,以清晰地展示新功能的使用方法和最佳实践。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 29, 2025

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4dcc2fa
Status: ✅  Deploy successful!
Preview URL: https://cb904c74.ant-design-x.pages.dev
Branch Preview URL: https://feature-markdown-format.ant-design-x.pages.dev

View logs

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

本次 PR 旨在通过组件匹配未完成的 Markdown 语法,以改善流式渲染的用户体验。整体实现思路清晰,通过状态机和 token 缓冲来处理流式数据,并增加了替换不完整语法的能力。代码重构和测试用例的补充都非常出色,特别是新增了大量针对边缘场景的测试,大大提高了代码的健壮性。

我发现了一些可以改进的地方,主要集中在 useStreaming.ts hook 中,包括一个正则表达式的潜在 bug 和一处为了可读性可以优化的逻辑。此外,文档的更新和重构做得很好,使得新功能更容易理解和使用。

@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 97.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.93%. Comparing base (485b4a4) to head (4dcc2fa).
⚠️ Report is 2 commits behind head on next.

Files with missing lines Patch % Lines
...ges/x-markdown/src/XMarkdown/hooks/useStreaming.ts 97.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1223      +/-   ##
==========================================
+ Coverage   94.89%   94.93%   +0.04%     
==========================================
  Files         138      138              
  Lines        3586     3655      +69     
  Branches     1011     1014       +3     
==========================================
+ Hits         3403     3470      +67     
- Misses        182      184       +2     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2025

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 66.75 KB
packages/x-sdk/dist/x-sdk.min.js 7.31 KB
packages/x-markdown/dist/x-markdown.min.js 43.51 KB (+6 B 🔺)
packages/x-markdown/dist/plugins/code-high-light.min.js 278.82 KB
packages/x-markdown/dist/plugins/latex.min.js 61.94 KB
packages/x-markdown/dist/plugins/mermaid.min.js 850.92 KB

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 29, 2025
@kimteayon kimteayon added this to the Ant Design X v2 milestone Oct 20, 2025
@kimteayon kimteayon added the 2.x Ant Design X 2.x label Oct 20, 2025
@kimteayon
Copy link
Collaborator

kimteayon commented Oct 21, 2025

文档的菜单太乱了,需要整理下
image

@kimteayon kimteayon merged commit 52ddf45 into next Oct 22, 2025
13 checks passed
@kimteayon kimteayon deleted the feature_markdown_format branch October 22, 2025 04:11
kimteayon added a commit that referenced this pull request Nov 24, 2025
* feat: theme

* docs: add custom components

* feat: theme

* feat: theme

* feat: add theme

* feat: antd

* fix: fix test case

* feat(XMarkdown): Support openLinksInNewTab (#1164)

* feat: add openLinksInNewTab & docs change & xss

* fix: fix CR

* fix: fix CR

* fix: fix CR

* feat: xmarkdown default less

* feat: default less

* feat: theme

* docs: add custom components

* feat: theme

* feat: theme

* feat: add theme

* feat: antd

* fix: fix test case

* test: less

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* feat(use-x-chat): add updating status (#833)

* feat(use-x-chat): add updating status

* test(use-x-chat): fix test error about on-update callback

* docs(use-x-chat): add loading for stream demo

* fix(use-x-chat): always set loadingMsg when init

* fix(use-x-chat): set placeholderMsg default value to empty string

* test(use-x-chat): fix check filed for case about loading placeholder msg

---------

Co-authored-by: Mickey <[email protected]>

* fix(ThoughtChain): fix the issue where title block-level elements cannot be displayed when collapsible is enabled (#1172)

* fix(thought-chain): 修改title的结构

* fix(thought-chain): 修改title部分结构,满足传递ReactNode

* chore: update snapShot

* update docs case

* update docs case

* update checkTextOverflow

* chore: update snapShot

* fix: replace span with div and update snapShot

* chore: changelog of 1.6.1 (#1173)

* chore: changelog of 1.6.1

* chore: changelog of 1.6.1

* chore: changelog of 1.6.1

* chore: net merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* chore: next merge main

* fix: fix Mermaid render

* feat: remove console

* fix: fix build error

* docs: remove performance docs

* fix: fix test error

* chore: changelog of 2.0.0-alpha.7 & fixed Semantic of Xmardown (#1178)

* chore: changelog of 2.0.0-alpha.7

* chore: update

* docs: 更新antdx文档

* docs: 更新changelog文档位置

* docs: 更新changelog文档位置

* feat: site

* feat: markdown Semantic

* chore: version

* chore: changelog of alpha7

* fix: markdown

* fix: lint

* fix: lint

* fix:dekkp

* fix:dekkp

* fix: update snapshot

* docs: remove numbers in footnote

* fix: markdown  theme & Unified Type Naming (#1182)

* feat: css

* feat: ts

* feat: ts

* docs: repair the type error in the useXChat document (#1183)

* feat: container

* docs: 移除非必要的 return

* chore: update playground (#1184)

* feat: css

* feat: ts

* feat: ts

* chore: toolIdList

* chore: playground

* feat: plugins type modify

* docs: 依赖 antd & docs

* fix: fix lint error

* chore: update site config (#1186)

* feat: css

* feat: ts

* feat: ts

* chore: toolIdList

* chore: playground

* chore: update site config

* chore: markdown

* chore: markdown

* feat: update antd version

* feat: 依赖调整

* chore: bump ora from 8.2.0 to 9.0.0 (#1189)

Bumps [ora](https://github.com/sindresorhus/ora) from 8.2.0 to 9.0.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](sindresorhus/ora@v8.2.0...v9.0.0)

---
updated-dependencies:
- dependency-name: ora
  dependency-version: 9.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump jsdom from 26.1.0 to 27.0.0 (#1180)

Bumps [jsdom](https://github.com/jsdom/jsdom) from 26.1.0 to 27.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](jsdom/jsdom@26.1.0...27.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-version: 27.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add comprehensive FAQ questions with Chinese and English versions covering markdown, Vue, think tags, and mobile adaptation (#1117)

* Initial plan

* Add FAQ questions about markdown, Vue, think tags, and mobile adaptation

Co-authored-by: afc163 <[email protected]>

* Update FAQ with 2.0 info and add English translations

Co-authored-by: afc163 <[email protected]>

* Add PR link to Think component announcement in FAQ

Co-authored-by: afc163 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: afc163 <[email protected]>
Co-authored-by: afc163 <[email protected]>

* docs & type: fix lint error

* chore: update tbox website (#1191)

* chore: update tbox website

* chore: update tbox website

* chore: update tbox website next (#1192)

* chore: update tbox website next

* chore: update tbox website next

* chore: update tbox website

* feat: revert version

* chore: update og:image (#1193)

* feat: css

* feat: ts

* feat: ts

* chore: toolIdList

* chore: playground

* chore: update site config

* chore: markdown

* chore: markdown

* chore: 删除title

* chore: 删除title

* chore: 删除title

* chore: 删除title

* chore: 删除title

* chore: 删除title

* feat: scroll

* feat: modify dompurify config and user config

* feat: update antd version

* feat: all update antd alpha3

* fix: update playground & fix Actions Semantic &  update OpenAI model (#1194)

* feat: bubble info

* feat: scroll

* feat: scroll

* feat: ahooks

* feat: ahooks

* feat: ahooks

* chore: 更新open ai模型

* chore: update

* chore: update

* chore: update

* Feat(XMarkdown): 类型调整 & 文档补充 & 依赖 antd (#1187)

* feat: plugins type modify

* docs: 依赖 antd & docs

* fix: fix lint error

* feat: update antd version

* feat: 依赖调整

* docs & type: fix lint error

* feat: revert version

* feat: modify dompurify config and user config

* feat: update antd version

* feat: all update antd alpha3

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* feat: animation 调整 & 类型修改

* fix: fix ts lint

* feat: remove html tags

* fix: fix lint error

* type: modify type

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix CR

* docs: change

* Feature(XMarkdown):动画调整 & 导出类型修改 (#1198)

* feat: plugins type modify

* docs: 依赖 antd & docs

* fix: fix lint error

* feat: update antd version

* feat: 依赖调整

* docs & type: fix lint error

* feat: revert version

* feat: modify dompurify config and user config

* feat: update antd version

* feat: all update antd alpha3

* feat: animation 调整 & 类型修改

* fix: fix ts lint

* feat: remove html tags

* fix: fix lint error

* type: modify type

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix CR

* docs: change

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* docs: component docs

* Docs(XMarkdown): Component Docs (#1199)

* feat: plugins type modify

* docs: 依赖 antd & docs

* fix: fix lint error

* feat: update antd version

* feat: 依赖调整

* docs & type: fix lint error

* feat: revert version

* feat: modify dompurify config and user config

* feat: update antd version

* feat: all update antd alpha3

* feat: animation 调整 & 类型修改

* fix: fix ts lint

* feat: remove html tags

* fix: fix lint error

* type: modify type

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix CR

* docs: change

* docs: component docs

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* chore(ci): use setup-utoo (#1197)

* chore: setup utoo

* chore: remove @ant-design/x-markdown dev deps

* chore: default value

* fix: antd deps

---------

Co-authored-by: Mickey <[email protected]>

* chore: bump tbox-nodejs-sdk from 0.0.14 to 0.0.17 (#1190)

Bumps [tbox-nodejs-sdk](https://github.com/tbox/tbox-nodejs-sdk) from 0.0.14 to 0.0.17.
- [Commits](https://github.com/tbox/tbox-nodejs-sdk/commits)

---
updated-dependencies:
- dependency-name: tbox-nodejs-sdk
  dependency-version: 0.0.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add Bubble extra & update playground & useXChat setMessage can use fun (#1195)

* feat: appid

* feat: bubble extra data

* feat: bubble extra data

* feat: bubble extra data

* fix: css

* feat: bubble

* feat: bubble

* feat: x-sdk

* feat: x-sdk useXChat

* feat: x-sdk useXChat

* feat: test

* feat: test

* feat: test

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: playground

* feat: modify animation

* docs: format

* feat: change startWith to indexOf

* fix: fix test case

* docs: 更换图标 (#1205)

* fix: fix lint error

* docs: change docs

* feat: change style

* Feature(XMarkdown):Animation (#1204)

* feat: plugins type modify

* docs: 依赖 antd & docs

* fix: fix lint error

* feat: update antd version

* feat: 依赖调整

* docs & type: fix lint error

* feat: revert version

* feat: modify dompurify config and user config

* feat: update antd version

* feat: all update antd alpha3

* feat: animation 调整 & 类型修改

* fix: fix ts lint

* feat: remove html tags

* fix: fix lint error

* type: modify type

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix lint error

* fix: fix CR

* docs: change

* docs: component docs

* feat: modify animation

* docs: format

* feat: change startWith to indexOf

* fix: fix test case

* fix: fix lint error

* docs: change docs

* feat: change style

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* chore: bump tbox-nodejs-sdk from 0.0.17 to 0.0.18 (#1206)

Bumps [tbox-nodejs-sdk](https://github.com/tbox/tbox-nodejs-sdk) from 0.0.17 to 0.0.18.
- [Commits](https://github.com/tbox/tbox-nodejs-sdk/commits)

---
updated-dependencies:
- dependency-name: tbox-nodejs-sdk
  dependency-version: 0.0.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/github-script from 7 to 8 (#1159)

Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: Update README (#1208)

* docs: Update README

Signed-off-by: afc163 <[email protected]>

* Update README-zh_CN.md

Signed-off-by: afc163 <[email protected]>

---------

Signed-off-by: afc163 <[email protected]>

* docs: add packages badges (#1209)

* docs: add packages badges

Signed-off-by: afc163 <[email protected]>

* Fix formatting in README.md

Signed-off-by: afc163 <[email protected]>

* Update README-zh_CN.md

Signed-off-by: afc163 <[email protected]>

* Update README-zh_CN.md

Signed-off-by: afc163 <[email protected]>

* Update README-zh_CN.md

Signed-off-by: afc163 <[email protected]>

* Update README-zh_CN.md

Signed-off-by: afc163 <[email protected]>

* Update npm version badge to alpha version

Signed-off-by: afc163 <[email protected]>

* Update README to include GitHub contributors badge

Signed-off-by: afc163 <[email protected]>

---------

Signed-off-by: afc163 <[email protected]>

* feat: 支持遍历children

* fix: fix cr

* feat: animation support div and remove table style

* feat: changelog

* docs: revert changelog

* chore: changelog of 2.0.0-alpha.9 (#1214)

* docs: alpha9 changelog

* chore: update version

* chore: changelog

* chore: merge next-alpha to next  (#1210)

* docs: 更换图标

* docs: 更换图标

* docs: 删除多余句号

* 透传CascaderProps其他参数 (#1110)

* feat: 透传CascaderProps其他参数

* feat: onOpenChange和onDropdownVisibleChange也排除

* fix: 重复的全部排除

* fix: 调整顺序

---------

Co-authored-by: 彭星 <[email protected]>
Co-authored-by: Mickey <[email protected]>

* docs: 中英文空格

* chore: x-markdown path modify

* chore: editbutton url

* fix(docs): fixed the incorrect Semantic DOM component names in the think component (#1218)

* docs: update the XProvider theme demo (#1216)

* docs: 更新主题demo

* fix: think

* fix: think

* chore: change x-sdk path

* docs: fix docs cr

* feat: Sender focus add slot (#1221)

* feat: Sender focus add slot

* feat: Sender focus add slot

* feat: Sender focus add slot

* feat: Sender focus add slot

* test: snapshots

* test: snapshots

* test: sender

* feat: Semantic type of Attachments and FileCard  (#1220)

* feat: update components semantic

* feat: update components semantic

* test: sender

* test: sender

* docs: seeConf

* docs: seeConf

* docs: SeeConf link (#1224)

* docs: seeConf

* docs: seeConf

* chore: bump peter-evans/commit-comment from 3 to 4 (#1230)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump @types/jsdom from 21.1.7 to 27.0.0 (#1229)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump father from 4.6.3 to 4.6.5 (#1181)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <[email protected]>

* chore: bump @happy-dom/jest-environment from 18.0.1 to 19.0.2 (#1228)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump happy-dom from 18.0.1 to 19.0.2 (#1227)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: update site home page (#1233)

* feat: site home lottie

* feat: site home lottie

* test: snap

* test: snap

* chore: lazy site compontents

* fix: site home

* feat: image and json

* feat: image and json

* docs: fix the component names in semanticDom (#1232)

* chore: bump @happy-dom/jest-environment from 19.0.2 to 20.0.0 (#1236)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump happy-dom from 19.0.2 to 20.0.0 (#1237)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Optimize sender input parameters: onPasteFile (#1242)

* fix: update onPasteFile

* feat: update

* fix: Fix document references to internationalization &  Add internationalization to SVG (#1243)

* fix: fix the local config

* fix: fix the local config

* chore: ignore scripts (#1247)

* fix: antd-token-previewer updated (#1246)

* feat(FileCaed): support jfif format (#1248)

* fix: x-sdk requestFallback error (#1244)

* fix: x-sdk requestFallback error

* fix: x-sdk requestFallback error

* test: 新增测试用例

* test: 新增测试用例

* test: 新增测试用例

* test: 新增测试用例

* feat: update isStreaming

* feat: Bubble.System & Bubble.Divider (#1239)

* feat: Bubble.System & Bubble.Divider

* docs: Bubble

* feat: Bubble.List support Bubble.System and Bubble.Divider

* fix: lint

* fix: test

* test: snapshot

* fix(Bubble): semantic of Bubble

* fix: lint

* feat: bubble

* feat: agent

* test: 新增测试用例

* test: 新增测试用例

* test: 新增测试用例

---------

Co-authored-by: Mickey <[email protected]>

* feat: add sources component (#1250)

* feat: add sources component

* fix: lint fix

* fix: lint fix

* fix: add display

* fix: update test

* fix: test fix

* fix: test fix

* fix: add test

* fix: update doc cover

* fix: update test

---------

Co-authored-by: jiyang.hy <[email protected]>
Co-authored-by: Mickey <[email protected]>

* feat: add  and update SDK demos & add  useXConversations activeConversationKey (#1252)

* docs: x-sdk

* docs: x-sdk

* docs: x-sdk

* fix: md eror

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* docs: 更新文档

* fix(XMarkdown): openLinksInNewTab 属性配置失效 (#1253)

* fxi: fix openLinksInNewTab is filtered by dompurify

* fix: fix ci

---------

Co-authored-by: Mickey <[email protected]>

* fix: onRequest messages& isResqesting & requestPlaceholder & requestFallback  (#1254)

* docs: x-sdk

* docs: x-sdk

* docs: x-sdk

* fix: md eror

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* feat: activeConversationKey

* docs: 更新文档

* fix: 修复onrequest 数据处理

* test: 修改测试用例

* feat: add

* feat(XMarkdown): 支持通过组件匹配未完成的Markdown语法 (#1223)

* feat: support map incomplete image and link to components

* chore: change x-markdown docs

* feat: 移除对 emphasis 语法的缓存,避免误识别导致的异常

* fix: fix lint error

* feat: modify useStreaming cache

* feat: modify useStreaming cache

* feat: modify streamging way

* feat: 基础功能完成

* fix: test cases and demo

* feat: beatify code

* docs: modify docs

---------

Co-authored-by: Mickey <[email protected]>

* fix(XMarkdown): 动画重复渲染 (#1255)

* docs: docs change

* fix: 移除支持动画标签,避免闪动

* fix: fix animation flash and remove useanimation

* feat: support config animation

* feat: beatify code and modify test case

* feat(XMarkdown): latex support (#1256)

* feat: inline katex support 19761\n..\n19761 formart

* feat: support inline \[ \] math

* chore: docs and test case

* fix(XMarkdown):格式缓存 (#1257)

* fix: fix list inner empahsis

* fix: fix regex

* feat: Sender supports SlotConfig changes & Sender supports the function of inserting and replacing characters (#1259)

* docs: 更换图标

* docs: 更换图标

* docs: 删除多余句号

* chore: chengelog of 2.0.0-alpha.10

* feat: date

* feat: dumi

* feat: dumi

* feat: sender

* feat: sender

* feat: sender

* test: lint

* test: lint

* fix: tbox

* test: snapshots

* test: snapshots

* test:slot  test

* test:slot  test

* test:slot  test

* test: snapshots

* test:slot

* test:slot

* test:slot

* test:slot

* test:slot

* test:slot

* fix: skip render animation text when parent is custom component (#1260)

* feat: The source reference component implements the current data functionality (#1261)

* feat: 来源引用组件

* feat: 来源引用组件

* feat: 来源引用组件

* feat: CustomParagraph

* feat: CustomParagraph

* feat: CustomParagraph

* feat: CustomParagraph

* docs: 新增 markdown 文档示例 (#1262)

* docs: 新增docs

* docs: 新增docs

* feat: Bubble list scroll (#1263)

* feat: lit scroll

* docs: update text

* bubble.list

* feat: bubble.lost

* feat: bubble.list

* feat: bubble.list

* feat: bubble.lost

* feat: bubble.lost

* feat: bubble.lost

* feat(XMarkdown): default KaTeX to silent error mode (#1265)

* feat: set latex default throwOnError is false and aviod redos

* feat: set default inline displayMode true and overrride css

* fix: fix cr

* fix: fix cr

* chore: chengelog of 2.0.0-alpha.11 (#1264)

* feat: bubble.lost

* feat: css

* docs:更新change log

* feat: Attachments add ref fun: select to select files & fix maxcount error (#1266)

* feat: attachments

* feat: attachments

* chore: lint

* feat: attachments

* chore: test

* docs: fix used Bubble.List demo error (#1269)

* docs: site update

* docs: site update

* chore: lint

* chore: lint

* chore: test

* docs: Chinese Link Processing (#1270)

* docs: Chinese Link Processing

* docs: Chinese Link Processing

* fix: fix key repeat (#1273)

Co-authored-by: jinyang <[email protected]>

* feat(XMarkdown): add block and streamstatus to code component (#1272)

* feat: code token support block and streamStatus

* fix: fix lint

* fix: fix cr

* docs: api desc

---------

Co-authored-by: jinyang <[email protected]>
Co-authored-by: Mickey <[email protected]>

* docs: Organize and optimize documents of chat provider (#1274)

* docs: site update

* docs: site update

* chore: lint

* chore: lint

* chore: test

* docs: Chinese Link Processing

* docs: Chinese Link Processing

* docs: Chinese Link Processing

* chore: changelog of 2.0.0-alpha.12 (#1275)

* feat: bubble.lost

* feat: css

* docs:更新change log

* chore: changelog of 2.0.0-alpha.12

* chore: changelog of 2.0.0-alpha.12

* fix: fix user code paragraph link renderer not work (#1276)

Co-authored-by: jinyang <[email protected]>

* feat: ThoughtChain & Think add blink  (#1278)

* feat: add

* fix: css

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: add blink to ThoughtChain (#1286)

* feat: add

* fix: css

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: blink

* feat: thoughtchain 闪动

* feat: thoughtchain 闪动

* feat: 更新文档

* feat: Actions fade in (#1288)

* feat: Actions fade in

* feat: Actions fade in

* feat: Actions fade in

* feat: 更新文档

* feat:  delete Bubble.List suffix (#1285)

* feat: blink

* feat: test

* feat: 更新文档

* feat: 更新文档

* feat: update

* feat: 更新测试用例

* docs: the style with ComponentChangelog in the site (#1290)

* feat: 修复更新日志样式问题

* fix: code reivew comment

---------

Co-authored-by: Mickey <[email protected]>

* feat: Actions motions &  prompts motions (#1289)

* feat: Actions fade in

* feat: Actions fade in

* feat: Actions fade in

* feat: 更新文档

* feat: action motion

* feat: 更新测试用例

* feat: 更新测试用例

* feat: 更新测试用例

* feat: 更新测试用例

* chore: changelog of 2.0.0-alpha.13 (#1292)

* feat: bubble.lost

* feat: css

* docs:更新change log

* chore: changelog of 2.0.0-alpha.12

* chore: changelog of 2.0.0-alpha.12

* chore: changelog of 2.0.0-alpha.13

* chore: changelog of 2.0.0-alpha.13

* chore: changelog of 2.0.0-alpha.13

* chore: changelog of 2.0.0-alpha.13

* fix: fix dompurifyConfig ALLOWED_TAGS wrong merge to ADD_TAGS

* fix: fix fenced code streamStatus set wrong

* fix: fix ci

* feat: peer dependece antd

* chore: overrides antd

* chore: overrides

* chore: antd

* fix: fix ci

* chore: antd version

* chore: antd

* chore: update antd 6.00-alpha.4 (#1300)

* feat: link docs

* feat: link docs

* feat: link docs

* feat: link docs

* chore: update antdv6

* chore: update antdv6

* chore: update antdv6

* chore: update antdv6

* chore: update antdv6

* chore: update antdv6

* chore: update antdv6

* feat: link docs

* chore: update antdv6

* chore: revert antd 6.0.0alpha.4 type change

* refactor(types): rename SteamingOption to StreamingOption and modify docs

* docs: api description

* docs: document update error (#1303)

* feat: markdown theme (#1305)

* chore: 整理文件

* chore: 整理文件

* chore: css

* feat: link docs

* feat: link

* feat: link

* fix: fix set code streamStastus wrong when code after \n\n (#1307)

Co-authored-by: jinyang <[email protected]>

* style(XMarkdown): migrate component styles from Less to CSS (#1306)

* style: covert .less to .css

* fix: fix style

* fix: fix css build error

---------

Co-authored-by: jinyang <[email protected]>

* feat: token of blinkMotion (#1318)

* feat: token of blinkMotion

* test: lint

* feat: lint

* chore: changelog of 2.0.0-alpha.15 (#1310)

* chore: version

* feat: update markdown

* feat: update

* feat: push

* chore:changelog of 2.0.0-alpha.15

* chore:changelog of 2.0.0-alpha.15

* feat: FileCard image load  (#1311)

* feat: card file image loading

* feat: card file image loading

* feat: card file image loading

* feat: token of blinkMotion

* feat: card file image loading

* test: file-card

* feat: lint

* feat(XMarkdown): cache incomplete table & HTML tokens in useStreaming (#1322)

* feat: useStreaming support cache table and support incomplete-html

* docs: format docs config

* docs: streaming syntax docs

* fix: fix code review

* feat: stream incomplete regex avoid redos attack

* feat: change function type

---------

Co-authored-by: Mickey <[email protected]>

* fix(XMarkdown): deafult table style (#1324)

* fix: table can scroll when content width over width

* fix: fix cr

* feat(XMarkdown): 全类型缓存映射 & 透传缓存原文本 & 文档优化 (#1325)

* feat: pass cache raw data to incomplete-token and map all cache token to incomplete-token

* feat: modify testcase

---------

Co-authored-by: Mickey <[email protected]>

* chore(XMarkdown): modify theme style and format docs (#1326)

* docs: modify docs style

* chore: modify demo and css

* feat(XMarkdown): pass true when disabled and checked props exist (#1328)

* feat: pass true when checkbox disabled and checked exist

* fix: fix test

* chore: Added notification capability and configured WearFox notifications (#1329)

* feat: wearfox

* feat: wearfox

* feat: wearfox

* feat: wearfox

* feat: wearfox

* feat: test

* feat: test

* feat: remove unnessary heading cache and modify demo

* docs: format docs

* chore: test case

* docs: modify custom plugin docs

* docs: format html skeleton width

* docs: update Doc model from siliconcloud to bigmodel (#1335)

* docs: update docs

* feat: updatemodel

* feat: updatemodel

* perf(XMarkdown): use useMemo to optimize docs render & reduce useless calc (#1337)

* feat: performance and docs

* docs: basic demo

* fix: fix ci

* refactoring: bubble delete components props & internal props enhancement  (#1338)

* refactor: delete components props & internal props enhancement

* feat: updatemodel

* test: snapshots update

* feat: 1

* feat: docs

* docs: Change demo image URL in README (#1340)

* chore: next merge  next-alpha (#1339)

* chore: version

* feat: update markdown

* feat: update

* feat: push

* chore:changelog of 2.0.0-alpha.15

* chore:changelog of 2.0.0-alpha.15

* docs: xmarkdown theme

* chore: changelog of 2.0.0-alpha.16

* chore: changelog of 2.0.0-alpha.16

* feat: updatemodel

* feat: updatemodel

* feat: updatemodel

* feat: updatemodel

* docs: update docs

* docs: update docs

* docs: update docs

* fix: pathname

* feat: updatemodel

* feat: docs

* feat: docs

* fix: fix lint

* docs: update

* docs: update demo (#1341)

* feat: 1

* feat: docs

* docs: update

* docs: update demo

* docs: update demo

* feat: Replace the operation icons of HighlightCode and Mermaid in XMarkdown (#1344)

* chore: remove unused devDependencies (#1350)

* chore: Update workflow to use test-utoo.yml (#1351)

Signed-off-by: afc163 <[email protected]>

* docs: update demo

* chore: bump actions/checkout from 5 to 6 (#1353)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump webpack-bundle-analyzer from 4.10.2 to 5.0.0 (#1333)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump happy-dom (#1354)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: changelog of 2.0.0 (#1355)

* chore: changelog 2.0.0

* chore: changelog 2.0.0

* chore: fix wrong of merge (#1359)

* feat: site

* feat: site

* feat: site

* chore: fix site home (#1361)

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* docs: update badges in README.md (#1360)

* chore: fix main site (#1362)

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* chore: update site-deploy (#1363)

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

* feat: site

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: afc163 <[email protected]>
Co-authored-by: jinyang <[email protected]>
Co-authored-by: Div627 <[email protected]>
Co-authored-by: wzc520pyfm <[email protected]>
Co-authored-by: doki- <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Div627 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: afc163 <[email protected]>
Co-authored-by: afc163 <[email protected]>
Co-authored-by: iamkun-2 <[email protected]>
Co-authored-by: elrrrrrrr <[email protected]>
Co-authored-by: anxLiang <[email protected]>
Co-authored-by: guxingke201 <[email protected]>
Co-authored-by: 彭星 <[email protected]>
Co-authored-by: HongYang <[email protected]>
Co-authored-by: jiyang.hy <[email protected]>
Co-authored-by: Rain120 <[email protected]>
Co-authored-by: BuHao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.x Ant Design X 2.x documentation Improvements or additions to documentation enhancement New feature or request lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants