Repository navigation
refactor(annotation): 复用官方选区文本与弹窗基础能力 - #275
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
批注详情此前自行监听滚动和尺寸变化、计算弹窗位置,并维护外部点击关闭逻辑。这些通用交互改用 DSH 已公开的
useAnchoredPosition、useDismissOnOutsidePointer;rc.1 下的摘录文本使用官方readText()可见文本投影。逐段评论、编号、编辑和草稿保护继续保留。输入框、撤销恢复、发送及侧聊联动沿用现有原生接口;旧宿主保留选区适配。UI primitives 由宿主提供,作为外部模块声明,不复制打包官方实现。
本次不新增 Runtime 补丁,也不改消息协议。原回复编号仍在回复底部:rc.1 的公开选区接口尚未提供源文本偏移与正文标记入口。已有气泡装饰扩展及其原生文本卡片回退保持原样。
验证: