@xiongtao.xt/tau-plugins 0.58.0 → 0.60.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/docs/editor-interactions.md +55 -0
  3. package/docs/pages.md +71 -2
  4. package/docs/portability.md +2 -0
  5. package/docs/references.md +2 -0
  6. package/docs/settings-and-commands.md +3 -0
  7. package/docs/whiteboard.md +1 -1
  8. package/package.json +1 -1
  9. package/publish-artifacts.js +35 -26
  10. package/tailwind.css +3 -3
  11. package/types/packages/collaboration/src/document-history-edit.d.ts +11 -0
  12. package/types/packages/collaboration/src/document-history.d.ts +91 -0
  13. package/types/packages/collaboration/src/index.d.ts +2 -0
  14. package/types/packages/collaboration/src/node-document.d.ts +1 -1
  15. package/types/packages/collaboration/src/node-tree.d.ts +7 -0
  16. package/types/packages/collaboration/src/whiteboard-model.d.ts +33 -2
  17. package/types/packages/db-schema/content-identities.d.ts +1 -1
  18. package/types/packages/editor/src/core/CoreEditor.d.ts +10 -1
  19. package/types/packages/editor/src/core/api/extension.d.ts +0 -1
  20. package/types/packages/editor/src/core/api/index.d.ts +3 -1
  21. package/types/packages/editor/src/core/utils/nodeOperations.d.ts +1 -0
  22. package/types/packages/editor/src/core/utils/undoStep.d.ts +6 -0
  23. package/types/packages/editor/src/core/utils/wrapInlineText.d.ts +4 -0
  24. package/types/packages/editor/src/extensions/kbd/src/types.d.ts +2 -2
  25. package/types/packages/editor/src/extensions/link/src/types.d.ts +2 -2
  26. package/types/packages/editor/src/extensions/styled-text/src/types.d.ts +2 -2
  27. package/types/packages/editor/src/extensions/underline/src/types.d.ts +2 -2
  28. package/types/packages/markdown/src/codec.d.ts +6 -2
  29. package/types/packages/markdown/src/markdown.d.ts +2 -1
  30. package/types/packages/markdown/src/positionMapper.d.ts +7 -1
  31. package/types/packages/plugins/src/app.d.ts +2 -0
  32. package/types/packages/plugins/src/contract.d.ts +2 -0
  33. package/types/packages/plugins/src/index.d.ts +2 -1
  34. package/types/packages/plugins/src/pages.d.ts +8 -2
  35. package/types/packages/plugins/src/text-decorations.d.ts +68 -0
  36. package/types/packages/shared/src/chat-core/aiRunProtocol.d.ts +1 -1
  37. package/types/packages/shared/src/chat-core/messages.d.ts +13 -4
  38. package/types/packages/themes/src/themes/ink.theme.d.ts +1 -2
  39. package/types/packages/themes/src/themes/mint.theme.d.ts +1 -2
  40. package/types/packages/themes/src/themes/ocean.theme.d.ts +1 -2
  41. package/types/packages/themes/src/themes/paper.theme.d.ts +1 -2
  42. package/types/packages/themes/src/themes/sakura.theme.d.ts +1 -2
  43. package/types/packages/themes/src/themes/wisteria.theme.d.ts +1 -2
  44. package/types/packages/ui/src/cn.d.ts +1 -1
  45. package/types/packages/ui/src/primitives/AnchoredPanel.d.ts +3 -3
  46. package/types/packages/ui/src/primitives/Button.d.ts +4 -4
  47. package/types/packages/ui/src/primitives/Checkbox.d.ts +2 -2
  48. package/types/packages/ui/src/primitives/ConfirmDialog.d.ts +3 -3
  49. package/types/packages/ui/src/primitives/Dialog.d.ts +4 -4
  50. package/types/packages/ui/src/primitives/Loading.d.ts +1 -1
  51. package/types/packages/ui/src/primitives/Menu.d.ts +1 -1
  52. package/types/packages/ui/src/primitives/Notification.d.ts +2 -2
  53. package/types/packages/ui/src/primitives/Popover.d.ts +3 -3
  54. package/types/packages/ui/src/primitives/Radio.d.ts +2 -3
  55. package/types/packages/ui/src/primitives/RadioGroup.d.ts +1 -1
  56. package/types/packages/ui/src/primitives/Segmented.d.ts +3 -3
  57. package/types/packages/ui/src/primitives/Select.d.ts +6 -6
  58. package/types/packages/ui/src/primitives/Switch.d.ts +2 -2
  59. package/types/packages/ui/src/primitives/Tag.d.ts +2 -3
  60. package/types/packages/ui/src/primitives/Toast.d.ts +1 -1
  61. package/types/packages/ui/src/primitives/Tooltip.d.ts +5 -5
  62. package/types/packages/ui/src/primitives/ValueDisplay.d.ts +2 -3
  63. package/types/packages/ui/src/primitives/anchoredPosition.d.ts +1 -2
  64. package/types/packages/ui/src/primitives/datepicker/DatePicker.d.ts +2 -2
  65. package/types/packages/ui/src/primitives/datepicker/DateRangePicker.d.ts +1 -1
  66. package/types/packages/ui/src/primitives/input/Input.d.ts +4 -4
  67. package/types/packages/ui/src/primitives/input/NumberInput.d.ts +2 -2
  68. package/types/packages/ui/src/primitives/input/Textarea.d.ts +1 -1
  69. package/types/packages/whiteboard/src/Board.d.ts +28 -12
  70. package/types/packages/whiteboard/src/{WhiteBoard.d.ts → Whiteboard.d.ts} +6 -6
  71. package/types/packages/whiteboard/src/chrome/index.d.ts +4 -2
  72. package/types/packages/whiteboard/src/components/ArrowConnectPoint/index.d.ts +26 -0
  73. package/types/packages/whiteboard/src/components/ArrowConnectPointGroup/index.d.ts +3 -0
  74. package/types/packages/whiteboard/src/components/DocumentElement/index.d.ts +2 -0
  75. package/types/packages/whiteboard/src/components/ExcerptElement/index.d.ts +13 -0
  76. package/types/packages/whiteboard/src/components/SketchPopover.d.ts +1 -1
  77. package/types/packages/whiteboard/src/constants/arrow.d.ts +0 -2
  78. package/types/packages/whiteboard/src/constants/mind.d.ts +0 -13
  79. package/types/packages/whiteboard/src/constants/text-style.d.ts +1 -1
  80. package/types/packages/whiteboard/src/constants/tools.d.ts +3 -0
  81. package/types/packages/whiteboard/src/context.d.ts +1 -2
  82. package/types/packages/whiteboard/src/extensions/api.d.ts +6 -1
  83. package/types/packages/whiteboard/src/extensions/authorApi.d.ts +0 -1
  84. package/types/packages/whiteboard/src/extensions/events.d.ts +0 -1
  85. package/types/packages/whiteboard/src/hooks/useDropArrow.d.ts +1 -1
  86. package/types/packages/whiteboard/src/hooks/useReadonly.d.ts +1 -0
  87. package/types/packages/whiteboard/src/hooks/useSelectState.d.ts +0 -1
  88. package/types/packages/whiteboard/src/hooks/useZoom.d.ts +6 -0
  89. package/types/packages/whiteboard/src/index.d.ts +11 -6
  90. package/types/packages/whiteboard/src/interactions/InteractionManager.d.ts +1 -0
  91. package/types/packages/whiteboard/src/plugins/ArrowPlugin.d.ts +1 -1
  92. package/types/packages/whiteboard/src/plugins/ColumnPlugin.d.ts +1 -1
  93. package/types/packages/whiteboard/src/plugins/CommonPlugin.d.ts +10 -10
  94. package/types/packages/whiteboard/src/plugins/DocumentPlugin.d.ts +36 -3
  95. package/types/packages/whiteboard/src/plugins/ExcerptPlugin.d.ts +48 -0
  96. package/types/packages/whiteboard/src/plugins/FramePlugin.d.ts +1 -1
  97. package/types/packages/whiteboard/src/plugins/GeometryPlugin.d.ts +5 -2
  98. package/types/packages/whiteboard/src/plugins/MindPlugin.d.ts +2 -2
  99. package/types/packages/whiteboard/src/plugins/WebviewPlugin.d.ts +1 -1
  100. package/types/packages/whiteboard/src/plugins/{WhiteBoardPlugin.d.ts → WhiteboardPlugin.d.ts} +8 -5
  101. package/types/packages/whiteboard/src/plugins/index.d.ts +2 -1
  102. package/types/packages/whiteboard/src/public.d.ts +23 -1
  103. package/types/packages/whiteboard/src/types/board.d.ts +12 -10
  104. package/types/packages/whiteboard/src/types/element.d.ts +6 -1
  105. package/types/packages/whiteboard/src/types/operation.d.ts +1 -1
  106. package/types/packages/whiteboard/src/types/selection.d.ts +1 -1
  107. package/types/packages/whiteboard/src/types/sketch.d.ts +2 -2
  108. package/types/packages/whiteboard/src/types/viewport.d.ts +1 -1
  109. package/types/packages/whiteboard/src/utils/ArrowStyleUtil.d.ts +0 -1
  110. package/types/packages/whiteboard/src/utils/CanvasUtil.d.ts +0 -1
  111. package/types/packages/whiteboard/src/utils/ClipboardUtil.d.ts +0 -5
  112. package/types/packages/whiteboard/src/utils/GeometryUtil.d.ts +1 -1
  113. package/types/packages/whiteboard/src/utils/HandwriteUtil.d.ts +0 -1
  114. package/types/packages/whiteboard/src/utils/MindUtil.d.ts +0 -3
  115. package/types/packages/whiteboard/src/utils/PathUtil.d.ts +1 -1
  116. package/types/packages/whiteboard/src/utils/PointUtil.d.ts +0 -1
  117. package/types/packages/whiteboard/src/utils/PresentationManager.d.ts +1 -1
  118. package/types/packages/whiteboard/src/utils/TextStyleStore.d.ts +2 -1
  119. package/types/packages/whiteboard/src/utils/index.d.ts +0 -1
  120. package/types/packages/whiteboard/src/utils/sketch/handText.d.ts +1 -1
  121. package/types/packages/whiteboard/src/utils/sketch/index.d.ts +4 -5
  122. package/types/packages/whiteboard/src/utils/sketch/shape.d.ts +1 -2
  123. package/types/packages/whiteboard/src/utils/ViewportUtil.d.ts +0 -10
@@ -1,16 +1,16 @@
1
1
  /**
2
- * Dialog 基础件 —— 模态决策容器 + ConfirmDialog 语义预设(形制与行为裁决见 D-011)。
2
+ * Dialog 基础件 —— 模态决策容器 + ConfirmDialog 语义预设。
3
3
  *
4
4
  * 形制:体内大标题 + 上下文徽标(context)+ hairline 应答区(主按钮最右,按钮序列
5
5
  * 由 footer 提供)+ blur 遮罩;长内容滚动区接 edge fade(对齐壳层 useEdgeFade
6
- * 协议)。阻断通知不带 icon,文字头部与其它对话同构(D-011)。
6
+ * 协议)。阻断通知不带 icon,文字头部与其它对话同构。
7
7
  *
8
8
  * 行为内建(不做成 props):
9
9
  * - 开合动效:遮罩淡入 + 卡片 scale(0.97)+translateY(8px),退场等长后卸载;根上带
10
10
  * data-morph(视图转场进行中)时一步到位到终态——转场更新期间 rAF 不触发,入场
11
11
  * 动效跑不起来,浏览器要截的是终态。卡片 data-state=open|closed 供形变定位就绪
12
12
  * - Esc:仅 open 态在卡片 DOM 消费(stopPropagation)——焦点圈闭保证 Esc 必落
13
- * 卡片,焦点链即 LIFO,不进 D-003 注册表(同 D-007/D-010 口径,ui 不反向依赖
13
+ * 卡片,焦点链即 LIFO,不进全局注册表(ui 不反向依赖
14
14
  * page/);critical 抖动拒绝
15
15
  * - 关闭矩阵:dismissible = × + Esc + 遮罩点击;critical = 无 ×、遮罩点击抖动;
16
16
  * locked(异步 loading)= 全失效
@@ -28,7 +28,7 @@
28
28
  * 自定义头部:`header` 整体替换内建标题行与 ×(工作台型弹窗自带导航头时用),
29
29
  * 关闭入口由 header 自行提供;`title` 仍是对话框的无障碍名称。
30
30
  *
31
- * 尺寸档是预设不是牢笼(D-011):sm 380 / md 440(默认)/ lg 560,width 任意值覆盖;
31
+ * 尺寸档是预设不是牢笼:sm 380 / md 440(默认)/ lg 560,width 任意值覆盖;
32
32
  * 高度默认随内容(上限 78vh),height 定高(仍不超 82vh)。
33
33
  * 层级:遮罩容器 z-[340](Select/Menu 250 < Tooltip 300 之上,Toast 360 之下——弹窗里的操作反馈须可见)。
34
34
  */
@@ -2,7 +2,7 @@
2
2
  * 加载态 —— Spinner 圆环 + 页面级居中版式(02 §5.1 词表的 Spinner 归位)。
3
3
  * Spinner 可单独行内使用;Loading 铺满父容器居中。
4
4
  *
5
- * 兜底高度走 prop(inline style)而非 Tailwind 类(2026-09-17 修正):原实现把
5
+ * 兜底高度走 prop(inline style)而非 Tailwind 类:原实现把
6
6
  * `min-h-[45vh]` 写死在基础类里,调用方传 `className="min-h-0"` 会被它压掉——
7
7
  * 同名 utility 的胜负由 Tailwind 生成顺序决定,**不由 class 书写顺序决定**,所以
8
8
  * 那个覆盖一直是静默失效的(样板间把 Loading 放进 168px 演示框时内容被裁空,
@@ -3,7 +3,7 @@
3
3
  * 键盘导航、焦点回收、外点关闭和菜单树互斥由组件内建。
4
4
  */
5
5
  import { type ReactElement, type ReactNode } from "react";
6
- /** 根级:命令项触发后的整树关闭(外点/互斥由 dismiss 层逐层登记承担,D-014) */
6
+ /** 根级:命令项触发后的整树关闭(外点/互斥由 dismiss 层逐层登记承担) */
7
7
  export interface MenuRootContextValue {
8
8
  closeMenu: () => void;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Notification 基础件 —— 右上角通知卡栈(mockups/notification/,承载方案 A + 卡片 V4)。
2
+ * Notification 基础件 —— 右上角通知卡栈。
3
3
  *
4
4
  * 与 Toast 分工:Toast 是「你刚做了什么」的一句话回执;Notification 承载不是当下操作
5
5
  * 引发的事件(协作者、应用更新、后台任务),有来源 / 标题 / 说明,常需作答。
@@ -106,7 +106,7 @@ export interface NotificationHostProps {
106
106
  * 原位更新等内容变化不会触发。
107
107
  */
108
108
  onItemsChange?: (ids: string[]) => void;
109
- /** 非叠层卡主体被点击(卡内 button/a 上的点击不触发);叠层卡不响应点击 */
109
+ /** 卡片没有 reveal 动作时,点击主体的宿主行为 */
110
110
  onCardClick?: (id: string) => void;
111
111
  }
112
112
  export declare function NotificationHost({ placement, autoDismiss, className, onItemsChange, onCardClick, }: NotificationHostProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,16 +1,16 @@
1
1
  /**
2
- * Popover 基础件 —— 锚定式可交互内容浮层(D-014)。
2
+ * Popover 基础件 —— 锚定式可交互内容浮层。
3
3
  *
4
4
  * 家族分工:Tooltip 瞬态说明(hover/focus、不可交互)、Menu 命令面板、Select 表单值
5
5
  * 选择、Dialog 模态决策、Toast 回执;Popover 收「点击触发、内容可继续操作」的
6
6
  * 非模态浮层——说明卡 / 过滤器组 / 色板 / 成员卡 / 卡片预览。antd 存量 Popover 的
7
- * trigger="hover" 用法迁 Tooltip、placement 12 向同名直映(D-014 迁移口径)。
7
+ * trigger="hover" 用法迁 Tooltip、placement 12 向同名直映。
8
8
  *
9
9
  * 定位与卡片视觉组合自 AnchoredPanel(基座只有一份);本件叠加交互层:
10
10
  * - click toggle(hover 说明归 Tooltip,不设 trigger props;右键归 ContextMenu)
11
11
  * - 外点关闭 + 嵌套链共存 + 顶层互斥(useLayerDismiss:浮层内开的 Menu/Select/
12
12
  * 二级 Popover 不算外点)
13
- * - Esc 仅 open 态消费(焦点链 LIFO,同 Select/Menu/Dialog 口径,不进 D-003
13
+ * - Esc 仅 open 态消费(焦点链 LIFO,同 Select/Menu/Dialog 口径,不进全局
14
14
  * 注册表——ui 不反向依赖 page/);Esc/Tab 关闭还焦触发器
15
15
  * - 打开落初始焦点:卡片内 [data-autofocus] 优先(表单放首输入框),否则卡片自身
16
16
  * - Tab 移出即关(非模态不圈闭)
@@ -1,13 +1,12 @@
1
1
  /**
2
- * Radio —— 单选基础件(Input 方案 A「经典描边」语言,mockups/radio/,2026-09-19 定稿)。
2
+ * Radio —— 单选基础件(Input 的「经典描边」语言)。
3
3
  *
4
4
  * 原生 input[type=radio] 承载语义(appearance-none 自绘皮):组内互斥、
5
5
  * 方向键移动即选择、读屏语义白送。形制是 Checkbox 的圆形同构:16×16 视觉圆
6
6
  * surface + line-1,选中 = 描边转 accent + 中心 accent 实点(110ms 缩放进场)。
7
7
  *
8
8
  * 结构铁律(同 Checkbox):input / 圆环 / 中心点在同一层互为兄弟——peer-*
9
- * 变体只匹配 peer 的后续兄弟,深层后代会静默失效。状态语义(与 Input 裁决
10
- * 同源):
9
+ * 变体只匹配 peer 的后续兄弟,深层后代会静默失效。状态语义(与 Input 同源):
11
10
  * - 命中 24×24;focus-visible 才显 ring;hover 描边加深半档,聚焦时让位
12
11
  * - 错误态正源 aria-invalid(未选中 danger),选中压过错误(选中优先)
13
12
  * - 禁用:label 整项降透明 55%(fieldSet 组禁用时经 :disabled 传播同样生效)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * RadioGroup —— 单选组(Input 方案 A 语言,mockups/radio/,2026-09-19 定稿)。
2
+ * RadioGroup —— 单选组。
3
3
  *
4
4
  * fieldset/legend 承载组语义,原生 radio 组行为白送:Tab 一次进组(选中项/
5
5
  * 首个可用项)、方向键移动即选择、组内互斥。组合式 children(描述行只有
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Segmented —— 分段单选器(Input 家族「连体描边」语言,mockups/segmented/,2026-09-23 定稿)。
2
+ * Segmented —— 分段单选器(「连体描边」语言)。
3
3
  *
4
- * 02 规范 §5.2 裁决的 Tabs 官定替代:内容形态切换(字段不同构)用分段,值切换
4
+ * 02 规范 §5.2 的 Tabs 官定替代:内容形态切换(字段不同构)用分段,值切换
5
5
  * (字段同构)用 Select。容器是一枚 hairline 控件(surface + line-1,与 Input /
6
6
  * Select 触发器同皮),段间 hairline 分割;激活段 accent-soft 轻染 + accent-text
7
- * ——零轨道、零滑块、零投影(凹槽深底形态已否决,见 mockups/segmented/ 头注)。
7
+ * ——零轨道、零滑块、零投影(凹槽深底形态已否决)。
8
8
  *
9
9
  * 原生 input[type=radio] 承载语义(隐藏自绘皮):组内互斥、方向键移动即选择、
10
10
  * Tab 一次进组白送。状态纪律同 Input 家族:hover 淡墨只落未选段(不冲淡激活染)、
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Select 基础件 —— 数据驱动单选(API 形态与排除记录见 D-007)。
2
+ * Select 基础件 —— 数据驱动单选。
3
3
  *
4
4
  * 单组件无复合子组件:选项集合就是 options 数据——搜索是一行 filter、分组是 group
5
- * 字段、异步是换数组;M1 的多选(value: V[])与虚拟化(列表区换 VirtualList)都
5
+ * 字段、异步是换数组;多选(value: V[])与虚拟化(列表区换 VirtualList)都
6
6
  * 不需要动 API 形状。字段名与 antd 对齐(value/label/disabled),存量用法直映。
7
7
  *
8
8
  * 行为内建(不做成 props):
@@ -10,19 +10,19 @@
10
10
  * Home·End 首末 / type-ahead 400ms 窗口(非 searchable)/ Tab 关闭并自然移出
11
11
  * - aria:触发器 combobox + 弹层 listbox + aria-activedescendant 指向高亮项;
12
12
  * 选中(bg-selected + Check,当前值)与高亮(bg-hover,键盘停留行)两态并存
13
- * - 定位复用 D-004 引擎(computeAnchoredPosition("bottom") + gap 4):下方放不下
13
+ * - 定位复用锚定引擎(computeAnchoredPosition("bottom") + gap 4):下方放不下
14
14
  * 翻上方(动画方向跟随);弹层 min-width = 触发器宽(matchTriggerWidth,默认开)
15
15
  * - 外点关闭(pointerdown capture)· 选中即关 · 焦点归还触发器 ·
16
16
  * scroll(capture)/resize/内容尺寸 → rAF 合并重定位(照 Tooltip 的跟随模式)
17
17
  * - Esc:仅 open 态在组件 DOM 上消费(preventDefault + stopPropagation)——焦点链
18
18
  * 即 LIFO(Esc 归焦点所在的浮层,嵌套浮层逐层退场),closed 态零参与;不进
19
- * D-003 全局注册表(那是命令面板等壳层浮层的仲裁,ui 基础件不反向依赖 page/)
19
+ * 全局注册表(那是命令面板等壳层浮层的仲裁,ui 基础件不反向依赖 page/)
20
20
  *
21
21
  * 表单控件家族口径:触发器与弹层内搜索框 = surface 亮底 + line-1 描边 + radius-sm——「浮起物」语感,白卡上同底靠描边显形。
22
22
  * 层级 z-[250](命令面板 101 < Select/Menu 250 < Tooltip 300 < Dialog 340 < Toast 360)。
23
23
  *
24
- * 明确不做(M0):多选/标签模式(M1 value: V[])· 异步 loading prop(换数组即异步,
25
- * 过渡态用 emptyText)· 虚拟化(M1)· renderOption 逃生舱(label: ReactNode 已覆盖
24
+ * 明确不做:多选/标签模式(value: V[])· 异步 loading prop(换数组即异步,
25
+ * 过渡态用 emptyText)· 虚拟化 · renderOption 逃生舱(label: ReactNode 已覆盖
26
26
  * 富行;触发器回填 label 本体,富 label 请保持单行紧凑)。
27
27
  */
28
28
  import { type ReactNode, type Ref } from "react";
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Switch —— 开关基础件(Input 方案 A 语言,mockups/switch/,2026-09-19 定稿)。
2
+ * Switch —— 开关基础件(Input 的「经典描边」语言)。
3
3
  *
4
4
  * 语义载体 button[role=switch][aria-checked]:值语义是开/关(对读屏比 checkbox
5
5
  * 准确),Space/Enter 原生切换,focus-visible 才显 ring。
6
6
  *
7
- * 形制(「轨道是槽、thumb 是浮起物」,mockups 定稿):
7
+ * 形制(「轨道是槽、thumb 是浮起物」):
8
8
  * - 未选中轨道消费 bg-track(控件轨道语义 token,非表面阶梯——深色主题取
9
9
  * 中调暖棕,亮于 surface 使 thumb 可辨且不显黑;新增主题零组件改动)
10
10
  * - thumb 恒为 surface 亮底 + ink-3 描边环(在其上清晰分辨),选中后描边
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Tag —— 值展示标签(A+B 结合 II「点 + 软底」,mockups/tag/plan-ab-dot-soft.html,
3
- * 2026-09-19 定稿)。
2
+ * Tag —— 值展示标签(「点 + 软底」形制)。
4
3
  *
5
- * soft 底 + 同系 solid 文字(B 的色块扫读)+ 可选 solid 色点(A 的色相焦点):
4
+ * soft 底 + 同系 solid 文字(色块扫读)+ 可选 solid 色点(色相焦点):
6
5
  * 三层同色阶,Notion select 选项标签语感。无色 = 无分类——默认 gray 走
7
6
  * group 底 + ink-2 文字且恒无点。纯展示 span:非交互、无命中要求;
8
7
  * onRemove 数据驱动显 ×(button + aria-label,伪元素把热区扩到 24、
@@ -7,7 +7,7 @@
7
7
  * 位置四选一:top-center(默认)/ top-right / bottom-right / bottom-center,
8
8
  * 全局默认可经 toast.config 调整、单条可覆写;层级 z-[360],高于命令面板
9
9
  * (z-[101])与 Dialog / Drawer(z-[340]),面板或弹窗打开时操作反馈仍可见。不接 Esc(浮层退场注册表
10
- * 只登记阻断后退的浮层,见 D-003)。
10
+ * 只登记阻断后退的浮层)。
11
11
  *
12
12
  * 用法:app 壳层挂载 <ToastHost /> 一次;任意处调用 toast.success("已保存")、
13
13
  * toast.error("失败")、toast.loading → toast.resolve(id) 或 toast.promise(p, {...})。
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Tooltip 基础件 —— Portal + 自研 JS mini 定位引擎(选型与排除记录见 D-004)。
2
+ * Tooltip 基础件 —— Portal + 自研 JS mini 定位引擎。
3
3
  *
4
- * Portal(body 追加 fixed 元素)+ 自研 mini 定位引擎(D-004;定位生命周期收口
5
- * useAnchoredPosition,箭头复用 FloatingArrow——D-014 四家共用底盘),中间件链:
4
+ * Portal(body 追加 fixed 元素)+ 自研 mini 定位引擎(定位生命周期收口
5
+ * useAnchoredPosition,箭头复用 FloatingArrow 四家共用底盘),中间件链:
6
6
  * offset(间距 8)→ flip(主轴放不下翻对侧)→ shift(交叉轴夹回视口,边距 8)→
7
7
  * arrow(锚点中心在边缘上的投影,两端各留 10px)。
8
8
  *
@@ -11,12 +11,12 @@
11
11
  * disabled 子元素自动包 wrapper(pointer 事件被吞);锚点位置变化时 rAF 跟随(动态锚,
12
12
  * 如趋势图 hover 热区随鼠标移动);scroll(capture)/resize 重算。
13
13
  * 反相配色复用 bg-ink-1 / text-ink-inverse(深浅主题各自反相,对比度由 token 保障)。
14
- * 不接 Esc、不进浮层退场注册表(瞬态非阻断,同 Toast 的 D-003 口径);
14
+ * 不接 Esc、不进浮层退场注册表(瞬态非阻断,同 Toast 的口径);
15
15
  * 不承载可交互内容——可点的说明浮层是 Popover/Menu 的职责。
16
16
  */
17
17
  import { type ReactElement, type ReactNode } from "react";
18
18
  import { type AnchoredAlign, type AnchoredPlacement, type AnchoredSide } from "./anchoredPosition";
19
- /** 引擎类型的历史名(D-004 起对外暴露;D-014 引擎更名后保留别名,存量引用不动) */
19
+ /** 引擎类型的历史名(引擎更名后保留别名,存量引用不动) */
20
20
  export type TooltipPlacement = AnchoredPlacement;
21
21
  export type TooltipSide = AnchoredSide;
22
22
  export type TooltipAlign = AnchoredAlign;
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * ValueDisplay —— 值展示件(占位迁移合集):ColorSwatch / ProgressBar / Rating。
3
- * Tag 已按设计稿定稿拆出 primitives/Tag.tsx(2026-09-19);本文件剩余三件
4
- * 仍是未经设计稿评审的占位实现(ValueDisplay 族逐件定稿时迁出),勿在
5
- * 此基础上加能力。
3
+ * Tag 已拆出 primitives/Tag.tsx;本文件剩余三件仍是未经设计稿评审的占位
4
+ * 实现(后续逐件迁出),勿在此基础上加能力。
6
5
  */
7
6
  import { type TagColor } from "./Tag";
8
7
  export declare function ColorSwatch({ value, onChange, disabled, }: {
@@ -1,6 +1,5 @@
1
1
  /**
2
- * 浮层定位引擎(Tooltip / Select / Menu / Popover 共用,D-004;D-014 起更名
3
- * anchoredPosition——四家消费后不再顶着 tooltip 专名)——不依赖 React,可单独单测。
2
+ * 浮层定位引擎(Tooltip / Select / Menu / Popover 共用)——不依赖 React,可单独单测。
4
3
  * 中间件链:offset(间距默认 8)→ flip(主轴放不下翻对侧)→ shift(夹回视口,边距 8)→
5
4
  * arrow(锚点中心在边缘上的投影,两端各留 10px)。
6
5
  * 独立成文件:组件文件只导出组件(react-refresh 约束)。
@@ -1,5 +1,5 @@
1
1
  /**
2
- * DatePicker 基础件 —— 经典月历单日期(A+ 形态,mockups/datepicker/)。
2
+ * DatePicker 基础件 —— 经典月历单日期。
3
3
  *
4
4
  * 值形状拆分的单日期侧:value: string | null("YYYY-MM-DD",precision="minute"
5
5
  * 时 "YYYY-MM-DD HH:mm");范围归 DateRangePicker(同一引擎,别在此加 range)。
@@ -15,7 +15,7 @@
15
15
  * - 钻取导航:点标题 days → months → 年代(12 格),‹ › 步长随视图换
16
16
  * - 键盘全表:触发器 ↑↓·Enter 开面板;面板内方向键 / PgUp·PgDn 翻月 / T 今天 /
17
17
  * Enter 提交;Esc 逐层退场(时刻网格先收,再关面板),焦点归还触发器
18
- * - 定位复用 D-004 引擎(bottom + gap 4,flip 跟随);外点关闭(useLayerDismiss);
18
+ * - 定位复用锚定引擎(bottom + gap 4,flip 跟随);外点关闭(useLayerDismiss);
19
19
  * 层级 z-[250] 与 Select/Menu 同层
20
20
  * - 预设行显示在日历下方:presets 数据驱动(label + 取值函数),内容与措辞
21
21
  * 归使用方,组件不内置业务词表;当前值命中时该 chip 高亮回显
@@ -1,5 +1,5 @@
1
1
  /**
2
- * DateRangePicker 基础件 —— 范围形态(B 形态并入,mockups/datepicker/ 方案 B)。
2
+ * DateRangePicker 基础件 —— 范围形态。
3
3
  *
4
4
  * 值形状拆分的范围侧:value: readonly [string, string] | null(两端均
5
5
  * "YYYY-MM-DD",precision="minute" 时为 "YYYY-MM-DD HH:mm";升序,逆序输入按升序读取)。与 DatePicker 同一引擎(CalendarPanel/弹层契约/触发器皮),
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Input —— 文本输入基础件(方案 A「经典描边」,mockups/input/,2026-09-19 定稿)。
2
+ * Input —— 文本输入基础件(「经典描边」形制)。
3
3
  *
4
- * 形制:surface 亮底 + line-1 描边 + radius-sm——「浮起物」语感(2026-09-17 表单
5
- * 控件口径),与 Select / DatePicker 触发器同族同皮;focus = accent 描边 + 3px ring。
4
+ * 形制:surface 亮底 + line-1 描边 + radius-sm——「浮起物」语感(表单控件
5
+ * 口径),与 Select / DatePicker 触发器同族同皮;focus = accent 描边 + 3px ring。
6
6
  * 原生 input 零样式透传(IME / autofill / 无障碍白送),形制挂容器上。
7
7
  *
8
8
  * 状态语义:
@@ -15,7 +15,7 @@
15
15
  * 槽位:lead 前缀 icon(16px lucide,focus 转 accent-text)+ clearable 清空 ×
16
16
  * (容器 hover/focus 且有值时显现——visibility:hidden 不响应自身 hover,挂容器;
17
17
  * tabIndex=-1 不抢 Tab 流,清空后焦点留在输入框)。
18
- * 文本后缀 / addon 组合等装备位归后续裁决(mockups 方案 D),不预置。
18
+ * 文本后缀 / addon 组合等装备位不预置。
19
19
  */
20
20
  import { type ComponentProps } from "react";
21
21
  import type { LucideIcon } from "lucide-react";
@@ -1,9 +1,9 @@
1
1
  /**
2
- * NumberInput —— 数值输入(Input 同形 + beforeinput 事前拦截,mockups/input/ 方案 A)。
2
+ * NumberInput —— 数值输入(Input 同形 + beforeinput 事前拦截)。
3
3
  *
4
4
  * 值契约:value: number | null(string 草稿只在内部,blur/Enter 归一化提交)。
5
5
  *
6
- * 事前拦截(2026-09-19 用户裁决,取代「事后标红」):
6
+ * 事前拦截(取代「事后标红」):
7
7
  * - 原生 beforeinput 监听用「当前值 + 选区 + 待插入文本」预判结果,不合数字格式直接
8
8
  * preventDefault——键盘输入 / 粘贴 / 拖放的非数字内容根本进不来
9
9
  * - 粘贴含杂质不生硬拒绝:先清洗("¥1,200" → "1200")再以 setRangeText 插入,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Textarea —— 多行文本输入(与 Input 同形,mockups/input/ 方案 A)。
2
+ * Textarea —— 多行文本输入(与 Input 同形)。
3
3
  *
4
4
  * 与 Input 共用形制语言(surface + line-1 + focus ring);差异只有三点:
5
5
  * 多行布局、纵向起始对齐、maxLength 传值时右下角自动出计数器
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import SnapManager from "./utils/snap/SnapManager";
3
3
  import { PresentationManager } from "./utils/PresentationManager";
4
- import { Operation, Selection, IBoardPlugin, BoardElement, ViewPort, PresentationSequence, ElementBounds, BoardContextMenuPayload, PluginContextMenuItem, CustomOffset, PageSketch } from "./types/index";
4
+ import { Operation, Selection, IBoardPlugin, BoardElement, ViewPort, PresentationSequence, ElementBounds, BoardContextMenuPayload, PluginContextMenuItem, CustomOffset, Point, PageSketch } from "./types/index";
5
5
  import { CapabilityService } from "./services/CapabilityService";
6
6
  import { InteractionManager } from "./interactions/InteractionManager";
7
7
  import { ExtensionRuntime } from "./extensions/runtime";
@@ -19,8 +19,13 @@ declare class Board {
19
19
  private disconnectDocument?;
20
20
  private projectingDocument;
21
21
  attachDocument(document: WhiteboardDocumentBinding): void;
22
- publishDocument(children: BoardElement[], sketch?: PageSketch, sequences?: PresentationSequence[]): void;
22
+ publishDocument(children: BoardElement[], sketch?: PageSketch, sequences?: PresentationSequence[], body?: {
23
+ previous: BoardElement;
24
+ next: BoardElement;
25
+ }): void;
23
26
  private plugins;
27
+ /** 指针在画布上的最近位置(画布坐标);指针离开画布为 null。`/` 放入等需要光标处的入口读取 */
28
+ pointer: Point | null;
24
29
  private eventEmitter;
25
30
  snap: SnapManager;
26
31
  capabilityService: CapabilityService;
@@ -45,7 +50,7 @@ declare class Board {
45
50
  children: BoardElement[];
46
51
  viewPort: ViewPort;
47
52
  selection: Selection;
48
- /** 页级画风(D-107);变化时 emit("sketch:change") */
53
+ /** 页级画风;变化时 emit("sketch:change") */
49
54
  sketch: PageSketch;
50
55
  undos: Array<Operation[]>;
51
56
  redos: Array<Operation[]>;
@@ -57,15 +62,13 @@ declare class Board {
57
62
  * 容器视口矩形(缓存):指针热路径(每次 pointermove 的坐标转换)高频读取,
58
63
  * getBoundingClientRect 在上一帧 DOM 写入后会把整文档强制重排(大页面百 ms 级)。
59
64
  * 平移/手势期间容器几何不变,缓存恒命中;布局变化经 invalidateContainerRect 失效
60
- * (容器 ResizeObserver 与窗口滚动捕获,见 WhiteBoard 接线)。
65
+ * (容器 ResizeObserver 与窗口滚动捕获,见 Whiteboard 接线)。
61
66
  */
62
67
  getContainerRect(): {
63
68
  x: number;
64
69
  y: number;
65
70
  } | null;
66
71
  invalidateContainerRect(): void;
67
- /** 剔除滞回的上一轮保留集合(见 filterElementsInViewport 的宽退出盒说明) */
68
- private cullRetainedIds;
69
72
  private snapshot;
70
73
  /** 当前工具("tau.select" 表示非创建模式) */
71
74
  private _activeTool;
@@ -93,13 +96,13 @@ declare class Board {
93
96
  markCreationPreviewLeaving(): void;
94
97
  constructor(children: BoardElement[], viewPort: ViewPort, selection: Selection, plugins?: IBoardPlugin[], presentationSequences?: PresentationSequence[], readonly?: boolean, sketch?: PageSketch);
95
98
  private _readonly;
96
- /** 文档版本过高导致的强制只读原因;普通只读为 null。宿主(WhiteBoard 组件)负责设置。 */
99
+ /** 文档版本过高导致的强制只读原因;普通只读为 null。宿主(Whiteboard 组件)负责设置。 */
97
100
  readonlyReason: "document-too-new" | null;
98
101
  get readonly(): boolean;
99
102
  set readonly(value: boolean);
100
103
  on(event: string, listener: (...args: any[]) => void): void;
101
104
  off(event: string, listener: (...args: any[]) => void): void;
102
- emit(event: string, ...args: any[]): void;
105
+ emit(event: string, ...args: unknown[]): void;
103
106
  once(event: string, listener: (...args: any[]) => void): void;
104
107
  destroy(): void;
105
108
  initPlugins(plugins: IBoardPlugin[]): void;
@@ -128,6 +131,7 @@ declare class Board {
128
131
  */
129
132
  private exitCreateToolOnEscape;
130
133
  onKeyUp(event: KeyboardEvent): void;
134
+ canClaimPointer(button: number): boolean;
131
135
  onPointerDown(event: PointerEvent): void;
132
136
  onPointerUp(event: PointerEvent): void;
133
137
  onPointerMove(event: PointerEvent): void;
@@ -149,12 +153,21 @@ declare class Board {
149
153
  renderElement(element: BoardElement): React.ReactElement | null | undefined;
150
154
  renderPluginElement(plugin: IBoardPlugin, element: BoardElement, children: React.ReactElement[]): import("react/jsx-runtime").JSX.Element;
151
155
  renderElements(value?: BoardElement[]): (React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null | undefined)[];
152
- getArrowBindPoint(element: BoardElement, connectId: string, customOffset?: CustomOffset): import("./types/index").Point | null;
156
+ getArrowBindPoint(element: BoardElement, connectId: string, customOffset?: CustomOffset): Point | null;
153
157
  canUndo(): boolean;
154
158
  canRedo(): boolean;
155
159
  undo(): void;
156
160
  redo(): void;
157
161
  subscribe(callback: () => void): () => void;
162
+ private bodyLayout?;
163
+ getCanvasSnapshot(): {
164
+ children: BoardElement[];
165
+ viewPort: ViewPort;
166
+ selection: Selection;
167
+ presentationSequences: PresentationSequence[];
168
+ sketch: PageSketch;
169
+ version: number;
170
+ };
158
171
  getSnapshot(): {
159
172
  children: BoardElement[];
160
173
  viewPort: ViewPort;
@@ -166,7 +179,7 @@ declare class Board {
166
179
  getElementVersion(): number;
167
180
  get activeTool(): string;
168
181
  get activeToolOptions(): Readonly<Record<string, unknown>> | null;
169
- /** 是否处于创建模式(非"选择"工具激活) */
182
+ /** 当前工具是否用于创建元素。 */
170
183
  isCreating(): boolean;
171
184
  /**
172
185
  * 设置当前工具;id 必须是已注册工具 id 或 "tau.select",否则抛错。
@@ -176,7 +189,10 @@ declare class Board {
176
189
  /** 写齐字段后统一发事件 */
177
190
  private applyToolChange;
178
191
  getPlugin<T extends IBoardPlugin>(name: string): T | undefined;
179
- filterElementsInViewport(elements: BoardElement[], expandPixels?: number): VisibleElementTree[];
180
- renderVisibleElements(elements?: VisibleElementTree[]): Array<React.ReactElement | null | undefined>;
192
+ filterElementsInViewport(elements: BoardElement[], expandPixels?: number, vp?: ViewPort, retention?: {
193
+ previous: ReadonlySet<string>;
194
+ current: Set<string>;
195
+ }): VisibleElementTree[];
196
+ renderVisibleElements(elements?: VisibleElementTree[], liveText?: boolean): Array<React.ReactElement | null | undefined>;
181
197
  }
182
198
  export default Board;
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import { type ServiceRegistry } from "../../shared/service-registry";
5
5
  import { BoardElement, ViewPort, Selection, PresentationSequence, PageSketch } from "./types/index";
6
6
  import type { WhiteboardExtension, WhiteboardExtensionError, WhiteboardOutline, WhiteboardSnapshot } from "./extensions/api";
7
- export interface WhiteBoardProps {
7
+ export interface WhiteboardProps {
8
8
  presence?: WhiteboardPresenceOptions;
9
9
  document?: WhiteboardDocumentBinding;
10
10
  extensions: readonly WhiteboardExtension[];
@@ -17,7 +17,7 @@ export interface WhiteBoardProps {
17
17
  initViewPort?: ViewPort;
18
18
  initSelection?: Selection;
19
19
  initPresentationSequences?: PresentationSequence[];
20
- /** 页级画风(D-107),缺省为普通 */
20
+ /** 页级画风,缺省为普通 */
21
21
  initSketch?: PageSketch;
22
22
  /** 加载的文档版本(getDocumentVersion(data)),缺省视为 1;高于支持范围时强制只读且不写回 */
23
23
  version?: number;
@@ -38,7 +38,7 @@ export interface WhiteBoardProps {
38
38
  /** 宿主为特定扩展派生服务作用域;未提供时使用公共注册表。 */
39
39
  extensionServices?: (id: string, api: import("./extensions/api").WhiteboardAPI) => ServiceRegistry;
40
40
  }
41
- export interface WhiteBoardRef {
41
+ export interface WhiteboardRef {
42
42
  fitAllElements: (padding?: number, animate?: boolean) => void;
43
43
  getElements: () => BoardElement[];
44
44
  zoomIn: () => void;
@@ -50,8 +50,8 @@ export interface WhiteBoardRef {
50
50
  /**
51
51
  * 画板生命周期:渲染期只构造无副作用的 Board,文档连接与扩展装配放在提交期,完成后才挂载画布。
52
52
  * 被丢弃的渲染(挂起、出错重试、StrictMode 双渲染)因此不会残留扩展实例或占用文档绑定;
53
- * 销毁由画布在容器真正脱离文档时执行(见 WhiteBoardCanvas 的容器 effect)。
53
+ * 销毁由画布在容器真正脱离文档时执行(见 WhiteboardCanvas 的容器 effect)。
54
54
  */
55
- declare const WhiteBoard: React.NamedExoticComponent<WhiteBoardProps & React.RefAttributes<WhiteBoardRef>>;
56
- export default WhiteBoard;
55
+ declare const Whiteboard: React.NamedExoticComponent<WhiteboardProps & React.RefAttributes<WhiteboardRef>>;
56
+ export default Whiteboard;
57
57
  export * from "./types/index";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 画布 chrome 公共件(D-049):
2
+ * 画布 chrome 公共件:
3
3
  * 工具条 / 属性浮动条 / 状态栏 / 元素树等浮动件共用一套主题语言——
4
4
  * 实底 surface + shadow-lift + 1px 细描边,不用毛玻璃与蓝调;激活 = accent-soft,悬停 = bg-hover;
5
5
  * 组内分隔靠留白(ChromeGap),不画竖线。
@@ -45,12 +45,14 @@ export interface ChromeButtonProps extends ComponentProps<"button"> {
45
45
  sub?: boolean;
46
46
  kbd?: string;
47
47
  tooltipPlacement?: TooltipPlacement;
48
+ /** 不显示悬停提示(按钮下方紧贴着自己的浮动件时,提示会把它挡住) */
49
+ hideTooltip?: boolean;
48
50
  }
49
51
  /**
50
52
  * 浮动件图标按钮:30px,Tooltip 包在 button 外、ref 与注入的 props 透传到 button——
51
53
  * 所以可以直接作为 Menu / Popover 的 trigger。展开时(aria-expanded)按下态、并暂停提示。
52
54
  */
53
- export declare function ChromeButton({ label, active, sub, kbd, tooltipPlacement, className, children, ref, ...rest }: ChromeButtonProps): import("react/jsx-runtime").JSX.Element;
55
+ export declare function ChromeButton({ label, active, sub, kbd, tooltipPlacement, hideTooltip, className, children, ref, ...rest }: ChromeButtonProps): import("react/jsx-runtime").JSX.Element;
54
56
  /** 属性条的弹层方向:条在元素上方 → 向上展开;翻到元素下方 → 向下展开 */
55
57
  export declare const AttrBarContext: import("react").Context<{
56
58
  side: "top" | "bottom";
@@ -0,0 +1,26 @@
1
+ import type { PointerEventHandler } from "react";
2
+ import type { Point, BoardElement } from "../../types/index";
3
+ interface ArrowConnectPointProps {
4
+ element: BoardElement;
5
+ connectId: string;
6
+ x: number;
7
+ y: number;
8
+ r: number;
9
+ fill: string;
10
+ fillOpacity?: number;
11
+ onConnectStart?: () => void;
12
+ /**
13
+ * 拖出的箭头松手时没有连到任何元素:返回 true 表示由调用方接手(不提交这条箭头),
14
+ * release 用于在接手结束后撤掉还画着的临时箭头。
15
+ */
16
+ onReleaseInSpace?: (event: {
17
+ point: Point;
18
+ clientX: number;
19
+ clientY: number;
20
+ release(): void;
21
+ }) => boolean;
22
+ onPointerEnter?: PointerEventHandler<SVGCircleElement>;
23
+ onPointerLeave?: PointerEventHandler<SVGCircleElement>;
24
+ }
25
+ declare const ArrowConnectPoint: import("react").MemoExoticComponent<(props: ArrowConnectPointProps) => import("react/jsx-runtime").JSX.Element>;
26
+ export default ArrowConnectPoint;
@@ -1,4 +1,6 @@
1
+ import { type ComponentProps } from "react";
1
2
  import type { BoardElement, Point } from "../../types/index";
3
+ import ArrowConnectPoint from "../ArrowConnectPoint/index";
2
4
  type ArrowConnectPointData = {
3
5
  connectId: string;
4
6
  point: Point;
@@ -8,6 +10,7 @@ interface ArrowConnectPointGroupProps {
8
10
  points: ArrowConnectPointData[];
9
11
  isSelected: boolean;
10
12
  disabled?: boolean;
13
+ onReleaseInSpace?: ComponentProps<typeof ArrowConnectPoint>["onReleaseInSpace"];
11
14
  }
12
15
  declare const ArrowConnectPointGroup: import("react").MemoExoticComponent<(props: ArrowConnectPointGroupProps) => import("react/jsx-runtime").JSX.Element>;
13
16
  export default ArrowConnectPointGroup;
@@ -4,6 +4,8 @@ import { type DocumentElement } from "../../plugins/DocumentPlugin";
4
4
  export declare const DOCUMENT_CARD_RADIUS = 16;
5
5
  interface DocumentElementProps {
6
6
  element: DocumentElement;
7
+ /** 从连接点拖到空白处松手时打开放入面板(宿主装配了放入入口才开) */
8
+ insertable?: boolean;
7
9
  onResizeStart?: (element: DocumentElement, startPoint: Point) => void;
8
10
  onResize: (board: Board, element: DocumentElement, position: EHandlerPosition, startPoint: Point, endPoint: Point, isPreserveRatio?: boolean, isAdsorb?: boolean) => void;
9
11
  onResizeEnd?: (board: Board, element: DocumentElement, position: EHandlerPosition, startPoint: Point, endPoint: Point) => void;
@@ -0,0 +1,13 @@
1
+ import { Board, EHandlerPosition, Point } from "../../types/index";
2
+ import type { ExcerptElement } from "../../plugins/ExcerptPlugin";
3
+ /** 摘录卡的圆角,宿主卡面与选中框共用 */
4
+ export declare const EXCERPT_CARD_RADIUS = 10;
5
+ interface ExcerptElementProps {
6
+ element: ExcerptElement;
7
+ onResizeStart?: (element: ExcerptElement, startPoint: Point) => void;
8
+ onResize: (board: Board, element: ExcerptElement, position: EHandlerPosition, startPoint: Point, endPoint: Point, isPreserveRatio?: boolean, isAdsorb?: boolean) => void;
9
+ onResizeEnd?: (board: Board, element: ExcerptElement, position: EHandlerPosition, startPoint: Point, endPoint: Point) => void;
10
+ }
11
+ /** 摘录外壳负责选中、缩放和连线,卡面(原文、笔记、来源条)由摘录扩展的宿主 Body 提供。 */
12
+ declare const ExcerptElementComponent: import("react").MemoExoticComponent<(props: ExcerptElementProps) => import("react/jsx-runtime").JSX.Element>;
13
+ export default ExcerptElementComponent;
@@ -36,7 +36,7 @@ interface SketchPopoverProps<T extends BoardElement> {
36
36
  };
37
37
  }
38
38
  /**
39
- * 元素级「笔触」(D-107):画风(跟随页面 / 手绘 / 普通)· 笔触档位 · 填充 · 换一笔。
39
+ * 元素级「笔触」:画风(跟随页面 / 手绘 / 普通)· 笔触档位 · 填充 · 换一笔。
40
40
  * 未单独设置的字段跟随页面,选「跟随页面」即删除覆盖。
41
41
  */
42
42
  declare function SketchPopover<T extends BoardElement>({ target, onChange, fill }: SketchPopoverProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -4,8 +4,6 @@ export declare const ARROW_CONNECT_POINT_RADIUS = 4;
4
4
  export declare const ARROW_CONNECT_PROXIMITY_RADIUS = 28;
5
5
  export declare const ARROW_CONNECT_PROXIMITY_HIDE_DELAY = 80;
6
6
  export declare const ARROW_DROP_PROXIMITY_RADIUS = 10;
7
- export declare const DEFAULT_ARROW_LINE_COLOR = "currentColor";
8
- export declare const DEFAULT_ARROW_LINE_WIDTH = 2;
9
7
  export declare const ARROW_CONNECT_ID: {
10
8
  readonly TOP: "top";
11
9
  readonly BOTTOM: "bottom";
@@ -1,14 +1 @@
1
- export declare const MIND_COLORS: readonly [{
2
- readonly background: "rgb(62, 136, 245)";
3
- readonly textColor: "#fff";
4
- readonly theme: "dark";
5
- }, {
6
- readonly background: "rgb(238, 238, 238)";
7
- readonly textColor: "#000";
8
- readonly theme: "light";
9
- }, {
10
- readonly background: "transparent";
11
- readonly textColor: "currentColor";
12
- }];
13
- export declare const MIND_LINE_COLORS: string[];
14
1
  export declare const getMindDragSourceId: (nodeId: string) => string;
@@ -43,7 +43,7 @@ export declare function getTextBoxPadding(style: TextStyle): TextBoxPadding;
43
43
  export declare const toCssPadding: (p: TextBoxPadding) => string;
44
44
  /**
45
45
  * 底板的底色与发丝线色;none 返回 null。卡片不用阴影,只靠发丝线分层。
46
- * sketchEdge:手绘模式下的墨迹框色——发丝线太淡,墨迹需要可辨的颜色(D-107)
46
+ * sketchEdge:手绘模式下的墨迹框色——发丝线太淡,墨迹需要可辨的颜色
47
47
  */
48
48
  export declare function getTextSurface(style: TextStyle): {
49
49
  background: string;