@vcp-dev/site-edit-bridge 0.10.57 → 0.10.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/auto-bootstrap.js +7 -7
- package/dist/index.js +10 -10
- package/dist/window-message.d.ts +2 -0
- package/dist/window-message.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,6 +34,12 @@
|
|
|
34
34
|
|
|
35
35
|
`bridge-status` 的 `failed`/`reconnecting` 可带可选的 `failureCode`(只含机器可读错误码,不含错误正文),父页据此上报诊断遥测。
|
|
36
36
|
|
|
37
|
+
## 滚动完成事件
|
|
38
|
+
|
|
39
|
+
frame-runtime 的 `scroll` 事件保留原 `metrics`,可选 `phase: "end"` 表示当前观测到的滚动容器均收到浏览器原生 `scrollend`。它与待发的 RAF 合并;新滚动会取消待发的完成标记。没有原生完成事件时不猜测 `end`,旧消费者与旧 runtime 继续使用 quiet-window fallback。
|
|
40
|
+
|
|
41
|
+
`end` 不是文档、保存或几何就绪回执。Designer 提前结束滚动遮蔽前仍需读取当前选区的新鲜几何;新滚动、选区/预览变化或读取失败时不应用旧完成结果,回到既有 quiet-window 路径。不得据此提前解除写锁或历史门禁。
|
|
42
|
+
|
|
37
43
|
## 修改回执与预览重载
|
|
38
44
|
|
|
39
45
|
`execute` 的操作 ID 标识一次源码修改。preview server 在进程内保留原请求指纹与执行结果,最多保留 256 个已完成回执;等待中的操作不提前淘汰。WebSocket 的只读 `get-operation-result` 和 frame channel 的 `bridge-get-operation-result` 接受完整原请求,核对站点、快照、操作 ID 与指纹后返回结果;不存在或身份不匹配时返回 `null`,不会再次执行修改。
|