Skip to content

Commit 0ed1f90

Browse files
kimteayonjinyangDiv627wzc520pyfmIsDyh01
authored
chore: merge feature to main (#1688)
* feat: streaming markdown benchmark * feat: modify benchmark * feat: react-markdown * feat: finsih streaming markdown performance markdown via playwright * feat: benchmark * fix: fix type * docs: animation docs * docs: animation docs * fix: fix ci * chore: modify benchmark dependece * fix: fix cr * chore: feature merge main (#1369) * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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](https://github.com/sindresorhus/ora/compare/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] <support@github.com> 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](https://github.com/jsdom/jsdom/compare/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] <support@github.com> 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 <507615+afc163@users.noreply.github.com> * Update FAQ with 2.0 info and add English translations Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> * Add PR link to Think component announcement in FAQ Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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] <support@github.com> 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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] <support@github.com> 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](https://github.com/actions/github-script/compare/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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: Update README (#1208) * docs: Update README Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> * docs: add packages badges (#1209) * docs: add packages badges Signed-off-by: afc163 <afc163@gmail.com> * Fix formatting in README.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update npm version badge to alpha version Signed-off-by: afc163 <afc163@gmail.com> * Update README to include GitHub contributors badge Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> * 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: 彭星 <xing_peng@fzzixun.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <afc163@gmail.com> * 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 <951203214@qq.com> * 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 <jiyang.hy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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 <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <jinyang.cy@antgroup.com> * 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 <951203214@qq.com> * 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 <951203214@qq.com> * 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 <afc163@gmail.com> * 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] <support@github.com> Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: jinyang <jinyang.cy@antgroup.com> Co-authored-by: Div627 <54497462+Div627@users.noreply.github.com> Co-authored-by: wzc520pyfm <1528857653@qq.com> Co-authored-by: doki- <95574719+IsDyh01@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Div627 <chenyang_nn@163.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> Co-authored-by: iamkun-2 <zhukun.zk@antgroup.com> Co-authored-by: elrrrrrrr <elrrrrrrr@gmail.com> Co-authored-by: anxLiang <29624088+anxLiang@users.noreply.github.com> Co-authored-by: guxingke201 <523411605@qq.com> Co-authored-by: 彭星 <xing_peng@fzzixun.com> Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: jiyang.hy <jiyang.hy@antgroup.com> Co-authored-by: Rain120 <1085131904@qq.com> Co-authored-by: BuHao <buwenhao.bwh@digital-engine.com> * feat: Sender word slot mode adds content editing and skill selection capabilities (#1377) * 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](https://github.com/sindresorhus/ora/compare/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] <support@github.com> 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](https://github.com/jsdom/jsdom/compare/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] <support@github.com> 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 <507615+afc163@users.noreply.github.com> * Update FAQ with 2.0 info and add English translations Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> * Add PR link to Think component announcement in FAQ Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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] <support@github.com> 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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] <support@github.com> 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](https://github.com/actions/github-script/compare/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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: Update README (#1208) * docs: Update README Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> * docs: add packages badges (#1209) * docs: add packages badges Signed-off-by: afc163 <afc163@gmail.com> * Fix formatting in README.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update README-zh_CN.md Signed-off-by: afc163 <afc163@gmail.com> * Update npm version badge to alpha version Signed-off-by: afc163 <afc163@gmail.com> * Update README to include GitHub contributors badge Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> * 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: 彭星 <xing_peng@fzzixun.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <afc163@gmail.com> * 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 <951203214@qq.com> * 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 <jiyang.hy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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 <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <951203214@qq.com> * 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 <jinyang.cy@antgroup.com> * 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 <jinyang.cy@antgroup.com> * feat: commit * 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 <951203214@qq.com> * feat: lint * feat: lint * 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 <951203214@qq.com> * chore(XMarkdown): modify theme style and format docs (#1326) * docs: modify docs style * chore: modify demo and css * feat: edit * feat: sop * feat: sop * chore: changelog of 2.0.0-alpha.16 * feat: agent * 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: sender * feat: sender * 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) * feat: sender * feat: sender * feat: sender * feat: sender * feat: sender * feat: sender * feat: skill * feat: skill * feat: sender * feat: sender * feat: sender * fix: sender * fix: sender lint * fix: sender lint * feat: update tsconfig * feat: cnavas * feat: cnavas * feat: cnavas * feat: cnavas * feat: cnavas * test: slote test * feat: cnavas * test: speech 覆盖率 * test: speech 覆盖率 * test: sender * test: sender * test: sender * test: sender * feat: test * feat: test * test: sende * test: sende * test: sende * test: sende * test: sendee --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: jinyang <jinyang.cy@antgroup.com> Co-authored-by: doki- <95574719+IsDyh01@users.noreply.github.com> Co-authored-by: Div627 <54497462+Div627@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <507615+afc163@users.noreply.github.com> Co-authored-by: iamkun-2 <zhukun.zk@antgroup.com> Co-authored-by: elrrrrrrr <elrrrrrrr@gmail.com> Co-authored-by: anxLiang <29624088+anxLiang@users.noreply.github.com> Co-authored-by: div627 <chenyang_nn@163.com> Co-authored-by: guxingke201 <523411605@qq.com> Co-authored-by: 彭星 <xing_peng@fzzixun.com> Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: jiyang.hy <jiyang.hy@antgroup.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rain120 <1085131904@qq.com> Co-authored-by: BuHao <buwenhao.bwh@digital-engine.com> * fix(XMarkdown): fix truncated-emoji encoding error & strip incomplete HTML * fix: test case * feat: test * feat: css * feat: css * feat: css * feat: css * feat: css * feat: css * feat: test * test: use-speech * feat: add semantic for suggestion & remove redundant 'Enter' to trigger the submit logic & onSelect add selectedOptions params (#1406) * fix: attachments show extension * feat: test * feat: semantic * test: snap * feat: test * feat: test * feat: test * feat: test * feat: suggestion * test: suggestion * test: suggestion * test: use-active * feat: test * test: use-active * test: use-active * test: use-active * test: use-active * test: suggestion * test: suggestion * feat: change benmark config * feat: semantic of actions (#1433) * feat: semantic * feat: actions * feat: actions * test: snapshots updated * fix: class * feat: deepseek * feat: deepseek * fest: Actions.Item * fest: Actions.Item * refactor(XMarkdown): move mermaid & highlight to standalone components, drop x-markdown dependency (#1402) * feat: move code highlighter to x components * feat: move x-markdown mermaid and highlight to components and remove x-markdown's dependence * fix: remove console * chore: remove x-markdown css and token script * fix: fix cr * fix: use Actions.copy instead of navigator.clipboard to prevent compatibility issues * chore: modify codeHighlighter and mermaid locale config * fix: fix build preview * chore: modify x-markdown father build config * fix: fix ci * fix: fix ci * fix: fix ci * fix: fix ci * fix: fix ci * fix: fix ci * fix: fix ci * fix: modify build config * docs: description * fix: fix test case * fix: fix ci * fix: fix ci * fix: fix ci * docs: modify mermaid code highlighter sources docs * style: use componentCls instead of & avoid css loss * docs: mermaid and code highlighter cover * feat: mermaid add onRenderTypeChange props and mofidy semantic * feat: change mermaid to peerDependece and lazy log * fix: fix ci * fix: fix ci * fix: fix ci * fix: fix ci * chore: remove declare module * fix: fix ci * fix: mermaid size * fix: change package size limit --------- Co-authored-by: Div627 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * docs: version identification of component documents (#1444) * docs: add tag * feat: doc * docs: tag for components * docs(XMarkdown): remove redundant docs, lock demo height, and add Components FAQ for block-level HTML truncation (#1451) * docs: add FAQ explain block html tag not properyly closed * docs: set docs height * docs: sources docs * docs: change source demo height * fix: fix cr * chore: merge * fix: fix ci * chore: merge * chore: merge * chore: merge main to feature * chore: merge main to feature * chore: merge main to feature * chore: merge main to feature * feat: push * chore: feature merge main (#1597) * ci(pr): add pr-contributor-welcome workflow * chore: merge * fix: setMessages did not refresh component (#1450) * fix: setMessages did not refresh component * fix: setMessages did not refresh component * fix: revert test code * fix: lint error * fix: set error * refactor: use symbol --------- Co-authored-by: Mickey <951203214@qq.com> * chore: merge * fix(XMarkdown): replace useStreaming regex to avoid compatibility issues (#1457) * fix: fix ios 16.3 compatibility * fix: fix cr * chore: merge feature to main (#1458) * chore: feature merge main (#1369) * 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 <jinyang.cy@antgroup.com> Co-authored-by: Mickey <951203214@qq.com> * 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 <951203214@qq.com> * 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](https://github.com/sindresorhus/ora/compare/v8.2.0...v9.0.0) --- updated-dependencies: - de…
1 parent b8058ac commit 0ed1f90

Some content is hidden

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

53 files changed

+7873
-2153
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Markdown Performance
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'packages/x-markdown/**'
7+
push:
8+
paths:
9+
- 'packages/x-markdown/**'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
checks: write
16+
17+
jobs:
18+
benchmark:
19+
name: Performance BenchMark
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '18'
31+
32+
- name: Install dependencies
33+
run: npm install
34+
35+
- name: Setup Playwright
36+
run: |
37+
cd packages/x-markdown
38+
npx playwright install --with-deps chromium
39+
40+
- name: Run x-markdown benchmark
41+
id: benchmark
42+
run: |
43+
cd packages/x-markdown
44+
npm run benchmark
45+
46+
- name: Check performance against thresholds
47+
id: check
48+
run: |
49+
cd packages/x-markdown
50+
node src/XMarkdown/__benchmark__/scripts/check-performance.js \
51+
test-results/benchmark-results.json \
52+
benchmark-check-report.txt
53+
54+
- name: Comment PR with results
55+
if: |
56+
github.event_name == 'pull_request' &&
57+
github.event.pull_request.head.repo.full_name == github.repository
58+
uses: actions/github-script@v7
59+
with:
60+
script: |
61+
const fs = require('fs');
62+
const path = 'packages/x-markdown/src/XMarkdown/__benchmark__/benchmark-check-report.txt';
63+
64+
let report = '⚠️ Performance benchmark report not found.';
65+
if (fs.existsSync(path)) {
66+
report = fs.readFileSync(path, 'utf8');
67+
}
68+
69+
const { data: comments } = await github.rest.issues.listComments({
70+
owner: context.repo.owner,
71+
repo: context.repo.repo,
72+
issue_number: context.issue.number,
73+
});
74+
75+
const botComment = comments.find(comment =>
76+
comment.user.type === 'Bot' &&
77+
comment.body.includes('📊 x-markdown Performance Report')
78+
);
79+
80+
const commentBody = report + '\n\n---\n*This comment is automatically generated by the x-markdown performance CI.*';
81+
82+
if (botComment) {
83+
await github.rest.issues.updateComment({
84+
owner: context.repo.owner,
85+
repo: context.repo.repo,
86+
comment_id: botComment.id,
87+
body: commentBody
88+
});
89+
} else {
90+
await github.rest.issues.createComment({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: context.issue.number,
94+
body: commentBody
95+
});
96+
}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,11 @@ packages/x-markdown/src/plugins/version/token.json
9696
packages/x-markdown/src/version/version.ts
9797

9898
packages/x-sdk/src/version/version.ts
99+
100+
# Playwright (from benchmark)
101+
packages/x-markdown/test-results/
102+
packages/x-markdown/src/XMarkdown/__benchmark__/playwright-report/
103+
packages/x-markdown/src/XMarkdown/__benchmark__/blob-report/
104+
packages/x-markdown/src/XMarkdown/__benchmark__/playwright/.cache/
105+
packages/x-markdown/src/XMarkdown/__benchmark__/playwright/.auth/
106+
packages/x-markdown/src/XMarkdown/__benchmark__/test-results

packages/x-markdown/.jest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ module.exports = {
6363
testRegex: getTestRegex(process.env.LIB_DIR),
6464
collectCoverageFrom: [
6565
'src/**/*.{ts,tsx}',
66+
'!src/**/__benchmark__/**',
6667
'!src/*/style/index.tsx',
6768
'!src/style/index.tsx',
6869
'!src/*/locale/index.tsx',

packages/x-markdown/package.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
"version": "tsx scripts/generate-version.ts",
1919
"test:dekko": "tsx ./tests/dekko/index.test.ts",
2020
"clean": "rm -rf es lib coverage plugins dist themes",
21-
"test:package-diff": "antd-tools run package-diff"
21+
"test:package-diff": "antd-tools run package-diff",
22+
"token:meta": "tsx scripts/generate-token-meta.ts",
23+
"token:statistic": "tsx scripts/collect-token-statistic.ts",
24+
"benchmark": "cd src/XMarkdown/__benchmark__ && node scripts/run-benchmark.js",
25+
"benchmark:check": "cd src/XMarkdown/__benchmark__ && node scripts/check-performance.js ./test-results/benchmark-results.json ./benchmark-check-report.txt"
2226
},
2327
"sideEffects": [
2428
"**/*.css"
@@ -56,16 +60,28 @@
5660
"marked": "^15.0.12"
5761
},
5862
"devDependencies": {
63+
"@playwright/experimental-ct-react": "^1.56.1",
64+
"@playwright/test": "^1.56.1",
5965
"@types/dompurify": "^3.0.5",
6066
"@types/lodash.throttle": "^4.1.9",
67+
"@types/markdown-it": "^14.1.2",
6168
"@types/react": "^19.0.2",
6269
"@types/react-dom": "^19.0.2",
6370
"@types/react-syntax-highlighter": "^15.5.13",
6471
"@umijs/mako": "^0.11.10",
6572
"antd": "^6.1.1",
6673
"glob": "^11.0.0",
74+
"markdown-it": "^14.0.0",
75+
"markdown-it-katex": "^2.0.3",
6776
"react": "^19.0.0",
68-
"react-dom": "^19.0.0"
77+
"react-dom": "^19.0.0",
78+
"react-markdown": "^10.1.0",
79+
"rehype-katex": "^7.0.1",
80+
"rehype-raw": "^7.0.0",
81+
"remark-gfm": "^4.0.1",
82+
"remark-math": "^6.0.0",
83+
"streamdown": "^1.4.0",
84+
"vite": "^5.0.6"
6985
},
7086
"peerDependencies": {
7187
"react": ">=18.0.0",

0 commit comments

Comments
 (0)