@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,6 +1,6 @@
1
1
  import { TextStyle } from "../constants/index";
2
2
  /** 记住上一次选的外观,新建同类元素时沿用;只存语义,旧版色值键不再读取 */
3
- export declare class TextStyleStore {
3
+ declare class TextStyleStore {
4
4
  private readonly prefix;
5
5
  private readonly fallback;
6
6
  constructor(prefix: string, fallback: TextStyle);
@@ -8,3 +8,4 @@ export declare class TextStyleStore {
8
8
  load(): TextStyle;
9
9
  }
10
10
  export declare const RichTextUtil: TextStyleStore;
11
+ export {};
@@ -24,4 +24,3 @@ export * from "./HandwriteUtil";
24
24
  export * from "./HandwriteGroupUtil";
25
25
  export * from "./ExportImageUtil";
26
26
  export * from "./LayerOrderUtil";
27
- export { default as ViewportUtil } from "./ViewportUtil";
@@ -1,3 +1,3 @@
1
1
  import type { ResolvedSketch } from "../../types/sketch";
2
- /** 手绘文字容器的类名(D-107);未启用手绘时为空串 */
2
+ /** 手绘文字容器的类名;未启用手绘时为空串 */
3
3
  export declare const handTextClass: (sketch: ResolvedSketch) => string;
@@ -1,9 +1,8 @@
1
1
  export * from "./types";
2
- export { sketchShape, hatchGap, type SketchOutline, type SketchShapeInput } from "./shape";
3
- export { sketchArrow, markerLength, type SketchArrowInput, type SketchArrowOutput } from "./arrow";
4
- export { resolveSketch, isSketchableType } from "./resolve";
2
+ export { sketchShape, type SketchOutline, type SketchShapeInput } from "./shape";
3
+ export { sketchArrow, type SketchArrowInput, type SketchArrowOutput } from "./arrow";
4
+ export { resolveSketch } from "./resolve";
5
5
  export { inkSize } from "./levels";
6
- export { createRandom, hashSeed } from "./random";
7
- export { flattenPath } from "./geometry";
6
+ export { hashSeed } from "./random";
8
7
  export { patchSketch, getSketchTargets, buildSketchOps } from "./batch";
9
8
  export { handTextClass } from "./handText";
@@ -1,5 +1,5 @@
1
1
  import type { SketchFillStyle, SketchLevel } from "../../types/sketch";
2
- import { type Polyline, type Vec } from "./geometry";
2
+ import { type Vec } from "./geometry";
3
3
  import type { SketchPath } from "./types";
4
4
  export type SketchOutline = {
5
5
  kind: "rect";
@@ -29,7 +29,6 @@ export interface SketchShapeInput {
29
29
  level: SketchLevel;
30
30
  seed: number;
31
31
  }
32
- export declare function outlinePolylines(outline: SketchOutline, width: number, height: number): Polyline[];
33
32
  /** 闭合轮廓一笔绕一圈:随机起点,末尾一小段向外搭接,形成手绘的收口 */
34
33
  export declare function loopStroke(loop: Vec[], amplitude: number, random: () => number, overlapRatio?: number): Vec[];
35
34
  /** 排线间距随线宽变粗、随形状尺寸微调:大形状不稀、小形状不糊 */
@@ -1,10 +0,0 @@
1
- import type { ViewPort } from "../types/index";
2
- declare class ViewportUtil {
3
- static isRectInViewport(rect: {
4
- x: number;
5
- y: number;
6
- width: number;
7
- height: number;
8
- }, viewPort: ViewPort, expandPixels?: number): boolean;
9
- }
10
- export default ViewportUtil;