-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: changelog of 1.0.4 #392
Conversation
📝 Walkthrough总览演练这个拉取请求更新了 变更
可能相关的 PRs
诗歌
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
WalkthroughThis pull request updates the changelog for version 1.0.4, detailing new features, bug fixes, and improvements. It also updates the package version in Changes
|
Bundle ReportBundle size has no change ✅ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #392 +/- ##
=======================================
Coverage 91.45% 91.45%
=======================================
Files 67 67
Lines 1462 1462
Branches 384 385 +1
=======================================
Hits 1337 1337
Misses 125 125 ☔ View full report in Codecov by Sentry. |
size-limit report 📦
|
Deploying ant-design-x with Cloudflare Pages
|
* feat: Sender support focus. * refactor: demo dom * chore: update test snap * fix: ts error * refactor: remove export SenderRef and use GetRef instead * refactor: SenderRef * docs: update SenderRef * docs: add blur demo * chore: update test snap * refactor: useProxyImperativeHandle instead of React.useImperativeHandle * test: add test for useProxyImperativeHandle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
CHANGELOG.en-US.md
(1 hunks)CHANGELOG.zh-CN.md
(1 hunks)package.json
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- package.json
🔇 Additional comments (2)
CHANGELOG.zh-CN.md (1)
18-21
: 版本号和发布日期格式正确!
版本号和日期格式符合项目规范。
CHANGELOG.en-US.md (1)
19-30
: 中英文变更日志内容一致!
两个语言版本的变更日志在结构和内容上保持一致。
- 🆕 扩展 `XStream` 对取消功能的支持。 [#319](https://github.com/ant-design/x/pull/319) by [@ppbl](https://github.com/ppbl) | ||
- 🆕 扩展 `Bubble` 对 `typing.suffix`打字后缀的支持。 [#316](https://github.com/ant-design/x/pull/316) by [@BQXBQX](https://github.com/BQXBQX) | ||
- 🆕 扩展 `Sender` 组件 `onChange` 对 `event` 事件参数的支持。 [#362](https://github.com/ant-design/x/pull/362) by [@defaultjacky](https://github.com/defaultjacky) | ||
- 🆕 扩展 `Sender` 组件 `ref` 对 `focus`、`blur` 等焦点控制能力的支持。 [#397](https://github.com/ant-design/x/pull/397) by [@YumoImer](https://github.com/YumoImer) | ||
- 🐛 修复 `ThoughtChain` 在非 cssVar 下的样式问题。 [#373](https://github.com/ant-design/x/pull/373) by [@YumoImer](https://github.com/YumoImer) | ||
- 📖 添加 `Petercat` 助理功能。 [#375](https://github.com/ant-design/x/pull/375) by [@xingwanying](https://github.com/xingwanying) | ||
- 📖 优化官网站点提升用户体验。 [#389](https://github.com/ant-design/x/pull/389)、[#377](https://github.com/ant-design/x/pull/377)、[#364](https://github.com/ant-design/x/pull/364)、[#368](https://github.com/ant-design/x/pull/368) by [@afc163](https://github.com/afc163)、[@YumoImer](https://github.com/YumoImer) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
变更日志与代码实现存在部分不一致
基于代码验证结果,我们发现以下问题:
Bubble
组件已实现typing
功能,包括step
、interval
和suffix
的支持,与变更日志描述一致。Sender
组件的onChange
事件参数和ref
的 focus/blur 功能已完整实现,与变更日志一致。XStream
的取消功能在代码库中未找到具体实现,仅在变更日志中提及。ThoughtChain
的 cssVar 样式修复在变更日志中提及,但未能找到相关的具体实现代码。Petercat
助理功能在代码库中未找到具体实现。
建议:
- 确保 PR feat: XStream 返回流同时支持异步迭代 #319 中的
XStream
取消功能已合并到代码库中 - 验证 PR fix: ThoughtChain style #373 中的
ThoughtChain
cssVar 样式修复是否已正确合并 - 检查 PR feat: add petercat assistant #375 中的
Petercat
助理功能是否已完整实现
🔗 Analysis chain
请确保变更日志中的功能更新与代码实现一致
建议运行以下脚本验证变更日志中提到的功能更新是否都已实现:
Let me try a different approach to verify these changes.
需要进一步验证部分功能实现
根据搜索结果,我们发现:
Sender
组件的onChange
事件参数支持和ref
的 focus/blur 功能已经在代码中实现,这与变更日志一致。Bubble
组件文件存在,但需要进一步验证typing.suffix
的具体实现。XStream
的取消功能未能在代码中找到明确实现。ThoughtChain
的样式相关代码存在,但需要进一步确认具体的 cssVar 修复。Petercat
助理功能的文件未找到。
让我们进一步验证这些功能:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# 描述:验证变更日志中提到的功能更新
# 验证 XStream 的取消功能
ast-grep --pattern 'XStream.*cancel'
# 验证 Bubble 的 typing.suffix 功能
ast-grep --pattern 'Bubble.*typing.suffix'
# 验证 Sender 组件的 onChange 事件参数
ast-grep --pattern 'Sender.*onChange.*event'
# 验证 Sender 组件的 ref focus/blur 方法
ast-grep --pattern 'Sender.*ref.*(focus|blur)'
# 验证 ThoughtChain 的样式修复
ast-grep --pattern 'ThoughtChain.*style'
Length of output: 222
Script:
#!/bin/bash
# Search for relevant files and their content
echo "=== Searching for XStream files and cancel functionality ==="
fd XStream --type f
rg "XStream.*cancel" -A 3
echo -e "\n=== Searching for Bubble files and typing suffix ==="
fd Bubble --type f
rg "typing\.suffix" -A 3
echo -e "\n=== Searching for Sender component files ==="
fd Sender --type f
rg "onChange.*event" -A 3
rg "ref.*focus|blur" -A 3
echo -e "\n=== Searching for ThoughtChain style fixes ==="
fd ThoughtChain --type f
rg "ThoughtChain.*style" -A 3
echo -e "\n=== Searching for Petercat assistant ==="
fd Petercat --type f
Length of output: 12320
Script:
#!/bin/bash
# 检查 Bubble 组件的 typing.suffix 实现
echo "=== 检查 Bubble 组件的 typing.suffix 实现 ==="
rg -t typescript "typing" components/bubble/ -A 3
echo -e "\n=== 检查 XStream 的取消功能实现 ==="
rg -t typescript "cancel" -A 3
echo -e "\n=== 检查 ThoughtChain 的 cssVar 样式修复 ==="
rg -t typescript "cssVar" components/thought-chain/ -A 3
echo -e "\n=== 检查 Petercat 相关实现 ==="
rg -t typescript "Petercat" -A 3
Length of output: 622
Script:
#!/bin/bash
# 检查 Bubble 组件的 typing.suffix 实现
echo "=== 检查 Bubble 组件的 typing.suffix 实现 ==="
rg "typing" components/bubble/
echo -e "\n=== 检查 XStream 的取消功能实现 ==="
# 搜索所有可能的 XStream 相关文件
fd -e tsx -e ts XStream
rg "XStream.*cancel"
echo -e "\n=== 检查 ThoughtChain 的 cssVar 样式修复 ==="
# 检查 ThoughtChain 的样式文件
fd -e ts -e tsx ThoughtChain
rg "cssVar.*ThoughtChain|ThoughtChain.*cssVar"
echo -e "\n=== 检查 Petercat 相关实现 ==="
# 搜索所有可能包含 Petercat 的文件
rg "Petercat" -g "!CHANGELOG*"
Length of output: 6602
取消功能怎么调用啊,我的代码没有用到xstream ,直接在useXChat 中onRequest, messages, setMessages 如何在监听messages时候打断发送呢,因为此过程中存在会话切换,但messages 还在接收上一个会话中的消息内容 |
OK,那这是一个需求,我在你的 issues 里回复吧,这样上下文能够串起来。 |
Summary by CodeRabbit
新特性
XStream
组件现在支持取消功能。Bubble
组件新增对typing.suffix
的支持。Sender
组件的onChange
参数更新为包含事件对象。Sender
组件的ref
增强以支持焦点控制方法,具体为focus
和blur
。错误修复
ThoughtChain
组件在未应用cssVar
时的样式问题。文档与用户体验
Petercat
助手功能。