-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
chore: upgrade tiptap to version 3.7.2 #7811
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
Conversation
@halo-dev/api-client
@halo-dev/components
@halo-dev/richtext-editor
@halo-dev/console-shared
@halo-dev/ui-plugin-bundler-kit
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7811 +/- ##
============================================
+ Coverage 59.55% 60.36% +0.80%
- Complexity 3812 3822 +10
============================================
Files 677 677
Lines 23248 23080 -168
Branches 1500 1496 -4
============================================
+ Hits 13846 13932 +86
+ Misses 8764 8483 -281
- Partials 638 665 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/hold 需要完整测试一遍 |
fc35413 to
262de31
Compare
|
从 2.22 开始,对于此 PR 这种改动,推荐在 docs.halo.run 的插件开发部分添加版本的 API 变更日志:halo-dev/docs#513 所以建议将 PR 描述中的内容添加到这个文档。 |
|
ruibaby
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |



What type of PR is this?
/kind improvement
/area editor
/area ui
What this PR does / why we need it:
升级 Tiptap 版本至 3.7.2。
options代替tippyOptions。getReferencedVirtualElement代替getRenderContainer。defaultAnimation。- defaultAnimation: false,此外,更新后,原有插件中扩展已有 Node 的
BubbleMenu方式将会失效,例如 编辑器超链接卡片 扩展了 Text Node 的BubbleMenu,因为此前并未支持扩展已实现的BubbleMenu。在当前 PR 中,为了解决升级版本后失效的问题,引入了
extendsKey字段,用于扩展已有的BubbleMenu。(需要已有的BubbleMenu设置了 PluginKey。用法如下:
这样当 text 中具有
textItem1的 item 时,将会被覆盖,没有时将会追加合并。How to test it?
Does this PR introduce a user-facing change?