@formicoidea/labre-core 0.32.0 → 0.34.1

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 (308) hide show
  1. package/dist/_pkgs/affine-block-attachment/attachment-block.js +3 -3
  2. package/dist/_pkgs/affine-block-attachment/configs/toolbar.d.ts +2 -2
  3. package/dist/_pkgs/affine-block-attachment/configs/toolbar.js +9 -7
  4. package/dist/_pkgs/affine-block-bookmark/configs/toolbar.js +12 -12
  5. package/dist/_pkgs/affine-block-callout/callout-block.js +1 -1
  6. package/dist/_pkgs/affine-block-code/code-block-inline.js +1 -1
  7. package/dist/_pkgs/affine-block-code/code-block.js +2 -2
  8. package/dist/_pkgs/affine-block-code/code-toolbar/config.js +9 -1
  9. package/dist/_pkgs/affine-block-code/code-toolbar/index.js +1 -1
  10. package/dist/_pkgs/affine-block-database/data-source.js +1 -2
  11. package/dist/_pkgs/affine-block-database/database-block.js +2 -2
  12. package/dist/_pkgs/affine-block-database/external-data-source.js +1 -1
  13. package/dist/_pkgs/affine-block-edgeless-text/edgeless-text-block.js +1 -1
  14. package/dist/_pkgs/affine-block-edgeless-text/edgeless-toolbar/config.js +1 -1
  15. package/dist/_pkgs/affine-block-embed/common/render-linked-doc.js +3 -3
  16. package/dist/_pkgs/affine-block-embed/configs/toolbar.js +11 -11
  17. package/dist/_pkgs/affine-block-embed/embed-figma-block/embed-figma-service.js +1 -1
  18. package/dist/_pkgs/affine-block-embed/embed-html-block/configs/toolbar.js +5 -5
  19. package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.d.ts +7 -7
  20. package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.js +14 -14
  21. package/dist/_pkgs/affine-block-embed/embed-iframe-block/embed-iframe-block.js +2 -2
  22. package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/toolbar.js +10 -10
  23. package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-block.js +4 -4
  24. package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/utils.js +1 -1
  25. package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/components/embed-synced-doc-card.js +5 -4
  26. package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/toolbar.js +10 -10
  27. package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-synced-doc-block.js +1 -1
  28. package/dist/_pkgs/affine-block-frame/frame-manager.js +3 -1
  29. package/dist/_pkgs/affine-block-frame/frame-tool.js +1 -1
  30. package/dist/_pkgs/affine-block-frame/frame-toolbar.js +2 -2
  31. package/dist/_pkgs/affine-block-image/components/page-image-block.js +1 -1
  32. package/dist/_pkgs/affine-block-image/configs/toolbar.js +4 -4
  33. package/dist/_pkgs/affine-block-image/image-edgeless-block.js +1 -1
  34. package/dist/_pkgs/affine-block-list/utils/forward-delete.js +1 -1
  35. package/dist/_pkgs/affine-block-note/commands/select-block.js +1 -1
  36. package/dist/_pkgs/affine-block-note/commands/select-blocks-between.js +1 -1
  37. package/dist/_pkgs/affine-block-note/configs/toolbar.js +2 -2
  38. package/dist/_pkgs/affine-block-note/move-block.js +1 -1
  39. package/dist/_pkgs/affine-block-paragraph/utils/forward-delete.js +2 -2
  40. package/dist/_pkgs/affine-block-paragraph/utils/merge-with-prev.js +1 -1
  41. package/dist/_pkgs/affine-block-root/configs/toolbar.d.ts +6 -4
  42. package/dist/_pkgs/affine-block-root/configs/toolbar.js +6 -6
  43. package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.d.ts +10 -10
  44. package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.js +4 -4
  45. package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.d.ts +7 -7
  46. package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.js +9 -9
  47. package/dist/_pkgs/affine-block-root/edgeless/edgeless-keyboard.js +1 -1
  48. package/dist/_pkgs/affine-block-root/edgeless/edgeless-root-block.js +3 -1
  49. package/dist/_pkgs/affine-block-root/edgeless/utils/clipboard-utils.js +1 -1
  50. package/dist/_pkgs/affine-block-surface/adapters/markdown/element-adapter/type.js +1 -1
  51. package/dist/_pkgs/affine-block-surface/adapters/plain-text/element-adapter/type.js +1 -1
  52. package/dist/_pkgs/affine-block-surface/element-model/index.d.ts +18 -3
  53. package/dist/_pkgs/affine-block-surface/element-model/index.js +12 -2
  54. package/dist/_pkgs/affine-block-surface/extensions/audit.js +23 -6
  55. package/dist/_pkgs/affine-block-surface/extensions/crud-extension.js +10 -5
  56. package/dist/_pkgs/affine-block-surface/extensions/editor-anchored-panel.js +2 -1
  57. package/dist/_pkgs/affine-block-surface/extensions/element-renderer.js +1 -1
  58. package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.js +1 -1
  59. package/dist/_pkgs/affine-block-surface/extensions/index.d.ts +4 -0
  60. package/dist/_pkgs/affine-block-surface/extensions/index.js +4 -0
  61. package/dist/_pkgs/affine-block-surface/extensions/interchange-import.d.ts +172 -0
  62. package/dist/_pkgs/affine-block-surface/extensions/interchange-import.js +404 -0
  63. package/dist/_pkgs/affine-block-surface/extensions/interchange.d.ts +323 -0
  64. package/dist/_pkgs/affine-block-surface/extensions/interchange.js +64 -0
  65. package/dist/_pkgs/affine-block-surface/extensions/map-quality-widget.js +61 -61
  66. package/dist/_pkgs/affine-block-surface/extensions/morph-toolbar.d.ts +248 -0
  67. package/dist/_pkgs/affine-block-surface/extensions/morph-toolbar.js +248 -0
  68. package/dist/_pkgs/affine-block-surface/extensions/reading-widget.js +78 -80
  69. package/dist/_pkgs/affine-block-surface/extensions/reading.js +2 -2
  70. package/dist/_pkgs/affine-block-surface/extensions/spotlight.d.ts +21 -0
  71. package/dist/_pkgs/affine-block-surface/extensions/spotlight.js +17 -3
  72. package/dist/_pkgs/affine-block-surface/extensions/svg-sketch.d.ts +107 -0
  73. package/dist/_pkgs/affine-block-surface/extensions/svg-sketch.js +958 -0
  74. package/dist/_pkgs/affine-block-surface/extensions/validation.d.ts +809 -20
  75. package/dist/_pkgs/affine-block-surface/extensions/validation.js +1661 -50
  76. package/dist/_pkgs/affine-block-surface/extensions/violation-detail-widget.d.ts +50 -6
  77. package/dist/_pkgs/affine-block-surface/extensions/violation-detail-widget.js +129 -32
  78. package/dist/_pkgs/affine-block-surface/framework-background/def.d.ts +289 -0
  79. package/dist/_pkgs/affine-block-surface/framework-background/def.js +126 -1
  80. package/dist/_pkgs/affine-block-surface/framework-background/labels.d.ts +42 -2
  81. package/dist/_pkgs/affine-block-surface/framework-background/labels.js +80 -4
  82. package/dist/_pkgs/affine-block-surface/framework-background/renderer.js +172 -11
  83. package/dist/_pkgs/affine-block-surface/index.d.ts +1 -0
  84. package/dist/_pkgs/affine-block-surface/index.js +1 -0
  85. package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.d.ts +17 -0
  86. package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.js +66 -0
  87. package/dist/_pkgs/affine-block-surface/renderer/overlay.js +1 -1
  88. package/dist/_pkgs/affine-block-surface/view.js +5 -0
  89. package/dist/_pkgs/affine-block-surface-ref/configs/toolbar.js +4 -4
  90. package/dist/_pkgs/affine-block-surface-ref/portal/note.js +2 -2
  91. package/dist/_pkgs/affine-block-table/commands.js +1 -1
  92. package/dist/_pkgs/affine-components/edgeless-shape-color-picker/color-picker.js +1 -1
  93. package/dist/_pkgs/affine-components/embed-card-modal/embed-card-edit-modal.js +1 -1
  94. package/dist/_pkgs/affine-components/filterable-list/styles.js +1 -1
  95. package/dist/_pkgs/affine-components/highlight-dropdown-menu/highlight-duotone-icon.js +8 -8
  96. package/dist/_pkgs/affine-components/highlight-dropdown-menu/text-duotone-icon.js +11 -11
  97. package/dist/_pkgs/affine-components/icons/text.js +426 -426
  98. package/dist/_pkgs/affine-components/open-doc-dropdown-menu/dropdown-menu.d.ts +2 -0
  99. package/dist/_pkgs/affine-components/peek/peekable.js +1 -1
  100. package/dist/_pkgs/affine-components/resource/resource.js +2 -0
  101. package/dist/_pkgs/affine-components/toolbar/index.d.ts +1 -0
  102. package/dist/_pkgs/affine-components/toolbar/index.js +1 -0
  103. package/dist/_pkgs/affine-components/toolbar/menu-button.js +1 -1
  104. package/dist/_pkgs/affine-components/toolbar/picker-menu.d.ts +55 -0
  105. package/dist/_pkgs/affine-components/toolbar/picker-menu.js +47 -0
  106. package/dist/_pkgs/affine-components/view-dropdown-menu/dropdown-menu.js +27 -14
  107. package/dist/_pkgs/affine-fragment-frame-panel/body/frame-panel-body.js +2 -2
  108. package/dist/_pkgs/affine-fragment-frame-panel/header/frame-panel-header.js +2 -2
  109. package/dist/_pkgs/affine-fragment-frame-panel/header/frames-setting-menu.js +1 -1
  110. package/dist/_pkgs/affine-fragment-outline/mobile-outline-panel.js +1 -1
  111. package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-tool-button.js +1 -1
  112. package/dist/_pkgs/affine-gfx-connector/connector-manager.js +7 -10
  113. package/dist/_pkgs/affine-gfx-connector/connector-tool.d.ts +19 -1
  114. package/dist/_pkgs/affine-gfx-connector/connector-tool.js +10 -2
  115. package/dist/_pkgs/affine-gfx-connector/connector-watcher.js +1 -4
  116. package/dist/_pkgs/affine-gfx-connector/direction/direction-reveal.js +2 -1
  117. package/dist/_pkgs/affine-gfx-connector/direction/invert-direction.js +1 -3
  118. package/dist/_pkgs/affine-gfx-connector/element-renderer/index.js +1 -1
  119. package/dist/_pkgs/affine-gfx-connector/element-renderer/utils.js +1 -1
  120. package/dist/_pkgs/affine-gfx-connector/toolbar/config.js +1 -1
  121. package/dist/_pkgs/affine-gfx-mindmap/adapter/markdown/index.js +1 -1
  122. package/dist/_pkgs/affine-gfx-mindmap/adapter/utils.js +1 -1
  123. package/dist/_pkgs/affine-gfx-mindmap/templates/index.js +583 -4
  124. package/dist/_pkgs/affine-gfx-mindmap/toolbar/mindmap-menu.js +23 -23
  125. package/dist/_pkgs/affine-gfx-mindmap/toolbar/mindmap-tool-button.js +5 -1
  126. package/dist/_pkgs/affine-gfx-mindmap/view/utils.js +1 -1
  127. package/dist/_pkgs/affine-gfx-note/overlay/overlay.js +1 -1
  128. package/dist/_pkgs/affine-gfx-note/toolbar/note-senior-button.js +1 -1
  129. package/dist/_pkgs/affine-gfx-shape/consts.js +1 -1
  130. package/dist/_pkgs/affine-gfx-shape/draggable/shape-draggable.js +1 -1
  131. package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/polygon.js +17 -9
  132. package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/utils.js +8 -3
  133. package/dist/_pkgs/affine-gfx-shape/element-view.js +19 -12
  134. package/dist/_pkgs/affine-gfx-shape/overlay/polygon-drawing-overlay.js +1 -1
  135. package/dist/_pkgs/affine-gfx-shape/overlay/polygon-vertex-editing-overlay.js +12 -7
  136. package/dist/_pkgs/affine-gfx-shape/overlay/shape-overlay.js +1 -1
  137. package/dist/_pkgs/affine-gfx-shape/polygon-tool.js +4 -2
  138. package/dist/_pkgs/affine-gfx-shape/shape-tool.js +1 -1
  139. package/dist/_pkgs/affine-gfx-shape/text/edgeless-shape-text-editor.js +1 -3
  140. package/dist/_pkgs/affine-gfx-template/builtin/other.js +66 -17
  141. package/dist/_pkgs/affine-gfx-template/toolbar/overlay-scrollbar.js +1 -1
  142. package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.js +1 -1
  143. package/dist/_pkgs/affine-gfx-text/toolbar/actions.js +1 -1
  144. package/dist/_pkgs/affine-inline-link/command.js +1 -1
  145. package/dist/_pkgs/affine-inline-link/link-node/configs/toolbar.d.ts +4 -4
  146. package/dist/_pkgs/affine-inline-link/link-node/configs/toolbar.js +6 -6
  147. package/dist/_pkgs/affine-inline-preset/command/format-block.js +1 -1
  148. package/dist/_pkgs/affine-inline-preset/command/format-native.js +2 -2
  149. package/dist/_pkgs/affine-inline-preset/command/format-text.js +1 -1
  150. package/dist/_pkgs/affine-inline-preset/inline-spec.js +1 -1
  151. package/dist/_pkgs/affine-inline-reference/reference-node/configs/toolbar.d.ts +4 -4
  152. package/dist/_pkgs/affine-inline-reference/reference-node/configs/toolbar.js +6 -6
  153. package/dist/_pkgs/affine-inline-reference/reference-node/reference-node.js +1 -1
  154. package/dist/_pkgs/affine-model/elements/bpmn/node.d.ts +40 -7
  155. package/dist/_pkgs/affine-model/elements/bpmn/node.js +4 -2
  156. package/dist/_pkgs/affine-model/elements/bpmn/pool.d.ts +135 -17
  157. package/dist/_pkgs/affine-model/elements/bpmn/pool.js +148 -26
  158. package/dist/_pkgs/affine-model/elements/c4/board.d.ts +88 -0
  159. package/dist/_pkgs/affine-model/elements/c4/board.js +128 -0
  160. package/dist/_pkgs/affine-model/elements/c4/boundary.d.ts +63 -0
  161. package/dist/_pkgs/affine-model/elements/c4/boundary.js +134 -0
  162. package/dist/_pkgs/affine-model/elements/c4/index.d.ts +3 -0
  163. package/dist/_pkgs/affine-model/elements/c4/index.js +3 -0
  164. package/dist/_pkgs/affine-model/elements/c4/node.d.ts +97 -0
  165. package/dist/_pkgs/affine-model/elements/c4/node.js +130 -0
  166. package/dist/_pkgs/affine-model/elements/connector/connector.js +1 -1
  167. package/dist/_pkgs/affine-model/elements/context-map/context-map.d.ts +27 -0
  168. package/dist/_pkgs/affine-model/elements/context-map/context-map.js +94 -0
  169. package/dist/_pkgs/affine-model/elements/context-map/index.d.ts +1 -0
  170. package/dist/_pkgs/affine-model/elements/context-map/index.js +1 -0
  171. package/dist/_pkgs/affine-model/elements/core-domain/core-domain.d.ts +34 -17
  172. package/dist/_pkgs/affine-model/elements/core-domain/core-domain.js +28 -26
  173. package/dist/_pkgs/affine-model/elements/cynefin/cynefin.d.ts +7 -2
  174. package/dist/_pkgs/affine-model/elements/cynefin/cynefin.js +9 -4
  175. package/dist/_pkgs/affine-model/elements/edgy/board.d.ts +7 -2
  176. package/dist/_pkgs/affine-model/elements/edgy/board.js +9 -4
  177. package/dist/_pkgs/affine-model/elements/edgy/facets.d.ts +20 -3
  178. package/dist/_pkgs/affine-model/elements/edgy/facets.js +13 -4
  179. package/dist/_pkgs/affine-model/elements/estuarine/estuarine.d.ts +7 -2
  180. package/dist/_pkgs/affine-model/elements/estuarine/estuarine.js +9 -4
  181. package/dist/_pkgs/affine-model/elements/event-storming/event-storming.d.ts +36 -0
  182. package/dist/_pkgs/affine-model/elements/event-storming/event-storming.js +103 -0
  183. package/dist/_pkgs/affine-model/elements/event-storming/index.d.ts +1 -0
  184. package/dist/_pkgs/affine-model/elements/event-storming/index.js +1 -0
  185. package/dist/_pkgs/affine-model/elements/framework-background/background.d.ts +7 -2
  186. package/dist/_pkgs/affine-model/elements/framework-background/background.js +9 -4
  187. package/dist/_pkgs/affine-model/elements/framework-background/hit-test.d.ts +48 -0
  188. package/dist/_pkgs/affine-model/elements/framework-background/hit-test.js +55 -0
  189. package/dist/_pkgs/affine-model/elements/framework-background/index.d.ts +1 -0
  190. package/dist/_pkgs/affine-model/elements/framework-background/index.js +1 -0
  191. package/dist/_pkgs/affine-model/elements/index.d.ts +11 -0
  192. package/dist/_pkgs/affine-model/elements/index.js +3 -0
  193. package/dist/_pkgs/affine-model/elements/shape/api/polygon.js +2 -8
  194. package/dist/_pkgs/affine-shared/adapters/html/block-adapter.js +1 -1
  195. package/dist/_pkgs/affine-shared/adapters/markdown/block-adapter.js +1 -1
  196. package/dist/_pkgs/affine-shared/adapters/markdown/delta-converter.js +1 -1
  197. package/dist/_pkgs/affine-shared/adapters/notion-html/block-adapter.js +1 -1
  198. package/dist/_pkgs/affine-shared/adapters/notion-html/delta-converter.js +1 -1
  199. package/dist/_pkgs/affine-shared/adapters/plain-text/block-adapter.js +1 -1
  200. package/dist/_pkgs/affine-shared/adapters/plain-text/delta-converter.js +1 -1
  201. package/dist/_pkgs/affine-shared/adapters/utils/color.js +5 -2
  202. package/dist/_pkgs/affine-shared/commands/model-crud/draft-selected-models.js +1 -1
  203. package/dist/_pkgs/affine-shared/commands/selection/focus-block-end.js +1 -1
  204. package/dist/_pkgs/affine-shared/commands/selection/focus-block-start.js +1 -1
  205. package/dist/_pkgs/affine-shared/consts/index.d.ts +10 -0
  206. package/dist/_pkgs/affine-shared/consts/index.js +10 -0
  207. package/dist/_pkgs/affine-shared/services/artefact-catalogue-service.d.ts +55 -0
  208. package/dist/_pkgs/affine-shared/services/artefact-catalogue-service.js +35 -0
  209. package/dist/_pkgs/affine-shared/services/audit-service.d.ts +11 -0
  210. package/dist/_pkgs/affine-shared/services/command-usage-service.d.ts +31 -0
  211. package/dist/_pkgs/affine-shared/services/command-usage-service.js +109 -0
  212. package/dist/_pkgs/affine-shared/services/comment-service/block-comment-manager.js +1 -1
  213. package/dist/_pkgs/affine-shared/services/doc-display-meta-service.js +1 -1
  214. package/dist/_pkgs/affine-shared/services/edit-props-store.d.ts +11 -0
  215. package/dist/_pkgs/affine-shared/services/edit-props-store.js +15 -0
  216. package/dist/_pkgs/affine-shared/services/embed-iframe/embed-iframe-config.js +1 -1
  217. package/dist/_pkgs/affine-shared/services/index.d.ts +2 -0
  218. package/dist/_pkgs/affine-shared/services/index.js +2 -0
  219. package/dist/_pkgs/affine-shared/services/pivot-materiality-publisher.js +2 -1
  220. package/dist/_pkgs/affine-shared/services/telemetry-service/lifecycle.d.ts +73 -1
  221. package/dist/_pkgs/affine-shared/services/toolbar-service/action.d.ts +32 -0
  222. package/dist/_pkgs/affine-shared/services/toolbar-service/action.js +16 -0
  223. package/dist/_pkgs/affine-shared/services/toolbar-service/flags.d.ts +10 -0
  224. package/dist/_pkgs/affine-shared/services/toolbar-service/flags.js +32 -1
  225. package/dist/_pkgs/affine-shared/services/toolbar-service/registry.d.ts +44 -0
  226. package/dist/_pkgs/affine-shared/services/toolbar-service/registry.js +161 -3
  227. package/dist/_pkgs/affine-shared/services/translation-service/chrome.d.ts +106 -0
  228. package/dist/_pkgs/affine-shared/services/translation-service/chrome.js +201 -0
  229. package/dist/_pkgs/affine-shared/services/translation-service/index.d.ts +1 -0
  230. package/dist/_pkgs/affine-shared/services/translation-service/index.js +1 -0
  231. package/dist/_pkgs/affine-shared/services/universe-tag-defs-service.js +5 -3
  232. package/dist/_pkgs/affine-shared/test-utils/affine-template.js +1 -1
  233. package/dist/_pkgs/affine-shared/utils/edgeless.js +1 -1
  234. package/dist/_pkgs/affine-shared/utils/file/filesys.d.ts +34 -0
  235. package/dist/_pkgs/affine-shared/utils/file/filesys.js +48 -7
  236. package/dist/_pkgs/affine-shared/utils/zod-schema.js +1 -3
  237. package/dist/_pkgs/affine-widget-drag-handle/utils.js +1 -1
  238. package/dist/_pkgs/affine-widget-edgeless-auto-connect/index.js +1 -1
  239. package/dist/_pkgs/affine-widget-edgeless-dragging-area/edgeless-dragging-area-rect.js +1 -1
  240. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-default.d.ts +14 -0
  241. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-default.js +40 -0
  242. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-widget.d.ts +158 -0
  243. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-widget.js +572 -0
  244. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/catalogue-groups.d.ts +41 -0
  245. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/catalogue-groups.js +49 -0
  246. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/chord-format.d.ts +13 -0
  247. package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/chord-format.js +50 -0
  248. package/dist/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.d.ts +6 -0
  249. package/dist/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.js +15 -5
  250. package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.d.ts +2 -0
  251. package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.js +2 -0
  252. package/dist/_pkgs/affine-widget-edgeless-toolbar/extension/index.d.ts +7 -0
  253. package/dist/_pkgs/affine-widget-edgeless-toolbar/index.d.ts +4 -0
  254. package/dist/_pkgs/affine-widget-edgeless-toolbar/index.js +4 -0
  255. package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/command-menu.d.ts +19 -0
  256. package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/command-menu.js +51 -10
  257. package/dist/_pkgs/affine-widget-edgeless-toolbar/view.js +9 -0
  258. package/dist/_pkgs/affine-widget-keyboard-toolbar/config.js +2 -1
  259. package/dist/_pkgs/affine-widget-keyboard-toolbar/icons.js +98 -98
  260. package/dist/_pkgs/affine-widget-keyboard-toolbar/keyboard-tool-panel.js +1 -1
  261. package/dist/_pkgs/affine-widget-linked-doc/import-doc/import-doc.js +1 -1
  262. package/dist/_pkgs/affine-widget-linked-doc/linked-doc-popover.js +1 -1
  263. package/dist/_pkgs/affine-widget-page-dragging-area/index.js +1 -1
  264. package/dist/_pkgs/affine-widget-remote-selection/doc/doc-remote-selection.js +1 -1
  265. package/dist/_pkgs/affine-widget-slash-menu/config.js +2 -1
  266. package/dist/_pkgs/affine-widget-toolbar/toolbar.js +11 -2
  267. package/dist/_pkgs/affine-widget-toolbar/utils.d.ts +19 -2
  268. package/dist/_pkgs/affine-widget-toolbar/utils.js +28 -9
  269. package/dist/_pkgs/data-view/core/group-by/renderer/boolean-group.js +11 -11
  270. package/dist/_pkgs/data-view/core/utils/menu-title.js +17 -17
  271. package/dist/_pkgs/data-view/view-presets/calendar/pc/actions.js +8 -12
  272. package/dist/_pkgs/data-view/view-presets/calendar/pc/view.js +52 -40
  273. package/dist/_pkgs/data-view/view-presets/table/mobile/group.js +3 -1
  274. package/dist/_pkgs/data-view/view-presets/table/pc/group.js +3 -1
  275. package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title.js +18 -18
  276. package/dist/_pkgs/std/clipboard/utils.js +4 -1
  277. package/dist/_pkgs/std/extension/command-registry.d.ts +195 -5
  278. package/dist/_pkgs/std/extension/command-registry.js +218 -4
  279. package/dist/_pkgs/std/extension/shortcut.js +2 -1
  280. package/dist/_pkgs/std/extension/translation-manifest.d.ts +46 -1
  281. package/dist/_pkgs/std/extension/translation-manifest.js +58 -0
  282. package/dist/_pkgs/std/gfx/grid.js +1 -1
  283. package/dist/_pkgs/std/gfx/highlight.d.ts +84 -0
  284. package/dist/_pkgs/std/gfx/highlight.js +112 -0
  285. package/dist/_pkgs/std/gfx/index.d.ts +2 -1
  286. package/dist/_pkgs/std/gfx/index.js +1 -0
  287. package/dist/_pkgs/std/gfx/interactivity/gfx-view-event-handler.js +17 -3
  288. package/dist/_pkgs/std/gfx/model/surface/element-model.d.ts +160 -0
  289. package/dist/_pkgs/std/gfx/model/surface/element-model.js +75 -1
  290. package/dist/_pkgs/std/gfx/model/surface/role.js +5 -3
  291. package/dist/_pkgs/std/gfx/model/surface/surface-model.js +2 -1
  292. package/dist/_pkgs/std/gfx/selection.js +1 -1
  293. package/dist/_pkgs/std/gfx/viewport.js +1 -1
  294. package/dist/_pkgs/std/inline/extensions/inline-manager.js +1 -1
  295. package/dist/_pkgs/std/inline/extensions/markdown-matcher.js +1 -1
  296. package/dist/_pkgs/std/scope/std-scope.d.ts +2 -1
  297. package/dist/_pkgs/std/scope/std-scope.js +2 -0
  298. package/dist/_pkgs/std/utils/gfx.js +2 -0
  299. package/dist/_pkgs/store/model/store/crud.js +4 -1
  300. package/dist/commands.js +1 -1
  301. package/dist/extensions/command-usage.d.ts +23 -0
  302. package/dist/extensions/command-usage.js +37 -0
  303. package/dist/extensions/view.js +12 -0
  304. package/dist/frameworks.js +32 -0
  305. package/dist/shortcuts.d.ts +20 -6
  306. package/dist/shortcuts.js +7 -9
  307. package/dist/translations.js +98 -3
  308. package/package.json +13 -1
@@ -33,7 +33,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
33
33
  return useValue ? value : void 0;
34
34
  };
35
35
  import { Bound, curveIntersects, getBezierNearestPoint, getBezierNearestTime, getBezierParameters, getBezierPoint, linePolylineIntersects, PointLocation, Polyline, polyLineNearestPoint, Vec, } from '../../../global/gfx/index.js';
36
- import { derive, field, GfxPrimitiveElementModel, local, } from '../../../std/gfx/index.js';
36
+ import { derive, field, GfxPrimitiveElementModel, local } from '../../../std/gfx/index.js';
37
37
  import * as Y from 'yjs';
38
38
  import { CONNECTOR_LABEL_MAX_WIDTH, ConnectorLabelOffsetAnchor, ConnectorMode, DEFAULT_CONNECTOR_MODE, DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, StrokeStyle, TextAlign, } from '../../consts/index.js';
39
39
  import { DefaultTheme } from '../../themes/index.js';
@@ -0,0 +1,27 @@
1
+ import type { SerializedXYWH } from '../../../global/gfx/index.js';
2
+ import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
3
+ import type { FrameworkBackgroundProps } from '../framework-background/index.js';
4
+ export type ContextMapBoardProps = FrameworkBackgroundProps;
5
+ /**
6
+ * The Context Map board: the white card a Context Map is drawn ON.
7
+ *
8
+ * Deliberately the emptiest background in the library — no axis, no zone, no
9
+ * label. A Context Map has no frame of reference: nothing about where a bounded
10
+ * context sits on the sheet means anything, and drawing graduations would invent
11
+ * a semantic the framework does not have. What the board IS for is the FRAME:
12
+ * it carries the `context-map:board` role, which is what lets a rule say "this
13
+ * context is off the map" and what gives a per-map validation profile something
14
+ * to be written on.
15
+ *
16
+ * Adds no field of its own beyond the primitive's `resizeEnabled`, so a board is
17
+ * byte-identical to what {@link FrameworkBackgroundElementModel} already
18
+ * persists. It is created 1400 × 900 and freely resizable in both directions —
19
+ * a context map grows sideways as contexts are found, and locking its
20
+ * proportion would fight the hand.
21
+ */
22
+ export declare class ContextMapBoardElementModel extends FrameworkBackgroundElementModel<ContextMapBoardProps> {
23
+ get type(): string;
24
+ accessor resizeEnabled: boolean;
25
+ accessor rotate: number;
26
+ accessor xywh: SerializedXYWH;
27
+ }
@@ -0,0 +1,94 @@
1
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
2
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
6
+ var _, done = false;
7
+ for (var i = decorators.length - 1; i >= 0; i--) {
8
+ var context = {};
9
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
10
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
11
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
12
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
13
+ if (kind === "accessor") {
14
+ if (result === void 0) continue;
15
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
16
+ if (_ = accept(result.get)) descriptor.get = _;
17
+ if (_ = accept(result.set)) descriptor.set = _;
18
+ if (_ = accept(result.init)) initializers.unshift(_);
19
+ }
20
+ else if (_ = accept(result)) {
21
+ if (kind === "field") initializers.unshift(_);
22
+ else descriptor[key] = _;
23
+ }
24
+ }
25
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
26
+ done = true;
27
+ };
28
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
29
+ var useValue = arguments.length > 2;
30
+ for (var i = 0; i < initializers.length; i++) {
31
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
32
+ }
33
+ return useValue ? value : void 0;
34
+ };
35
+ import { field } from '../../../std/gfx/index.js';
36
+ import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
37
+ /**
38
+ * The Context Map board: the white card a Context Map is drawn ON.
39
+ *
40
+ * Deliberately the emptiest background in the library — no axis, no zone, no
41
+ * label. A Context Map has no frame of reference: nothing about where a bounded
42
+ * context sits on the sheet means anything, and drawing graduations would invent
43
+ * a semantic the framework does not have. What the board IS for is the FRAME:
44
+ * it carries the `context-map:board` role, which is what lets a rule say "this
45
+ * context is off the map" and what gives a per-map validation profile something
46
+ * to be written on.
47
+ *
48
+ * Adds no field of its own beyond the primitive's `resizeEnabled`, so a board is
49
+ * byte-identical to what {@link FrameworkBackgroundElementModel} already
50
+ * persists. It is created 1400 × 900 and freely resizable in both directions —
51
+ * a context map grows sideways as contexts are found, and locking its
52
+ * proportion would fight the hand.
53
+ */
54
+ let ContextMapBoardElementModel = (() => {
55
+ let _classSuper = FrameworkBackgroundElementModel;
56
+ let _resizeEnabled_decorators;
57
+ let _resizeEnabled_initializers = [];
58
+ let _resizeEnabled_extraInitializers = [];
59
+ let _rotate_decorators;
60
+ let _rotate_initializers = [];
61
+ let _rotate_extraInitializers = [];
62
+ let _xywh_decorators;
63
+ let _xywh_initializers = [];
64
+ let _xywh_extraInitializers = [];
65
+ return class ContextMapBoardElementModel extends _classSuper {
66
+ static {
67
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
68
+ _resizeEnabled_decorators = [field(true)];
69
+ _rotate_decorators = [field(0)];
70
+ _xywh_decorators = [field()];
71
+ __esDecorate(this, null, _resizeEnabled_decorators, { kind: "accessor", name: "resizeEnabled", static: false, private: false, access: { has: obj => "resizeEnabled" in obj, get: obj => obj.resizeEnabled, set: (obj, value) => { obj.resizeEnabled = value; } }, metadata: _metadata }, _resizeEnabled_initializers, _resizeEnabled_extraInitializers);
72
+ __esDecorate(this, null, _rotate_decorators, { kind: "accessor", name: "rotate", static: false, private: false, access: { has: obj => "rotate" in obj, get: obj => obj.rotate, set: (obj, value) => { obj.rotate = value; } }, metadata: _metadata }, _rotate_initializers, _rotate_extraInitializers);
73
+ __esDecorate(this, null, _xywh_decorators, { kind: "accessor", name: "xywh", static: false, private: false, access: { has: obj => "xywh" in obj, get: obj => obj.xywh, set: (obj, value) => { obj.xywh = value; } }, metadata: _metadata }, _xywh_initializers, _xywh_extraInitializers);
74
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
75
+ }
76
+ get type() {
77
+ return 'contextMap';
78
+ }
79
+ #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
80
+ get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
81
+ set resizeEnabled(value) { this.#resizeEnabled_accessor_storage = value; }
82
+ #rotate_accessor_storage = (__runInitializers(this, _resizeEnabled_extraInitializers), __runInitializers(this, _rotate_initializers, 0));
83
+ get rotate() { return this.#rotate_accessor_storage; }
84
+ set rotate(value) { this.#rotate_accessor_storage = value; }
85
+ #xywh_accessor_storage = (__runInitializers(this, _rotate_extraInitializers), __runInitializers(this, _xywh_initializers, '[0,0,1400,900]'));
86
+ get xywh() { return this.#xywh_accessor_storage; }
87
+ set xywh(value) { this.#xywh_accessor_storage = value; }
88
+ constructor() {
89
+ super(...arguments);
90
+ __runInitializers(this, _xywh_extraInitializers);
91
+ }
92
+ };
93
+ })();
94
+ export { ContextMapBoardElementModel };
@@ -0,0 +1 @@
1
+ export * from './context-map.js';
@@ -0,0 +1 @@
1
+ export * from './context-map.js';
@@ -1,14 +1,23 @@
1
- import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
2
- import { Bound } from '../../../global/gfx/index.js';
3
- import type { BaseElementProps } from '../../../std/gfx/index.js';
4
- import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
5
- export type CoreDomainChartProps = BaseElementProps & {
6
- /** When false the resize handles are hidden — toggled from the toolbar. */
7
- resizeEnabled?: boolean;
1
+ import type { SerializedXYWH } from '../../../global/gfx/index.js';
2
+ import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
3
+ import type { FrameworkBackgroundProps } from '../framework-background/index.js';
4
+ /**
5
+ * Which READING of the chart this instance is turned to.
6
+ *
7
+ * `classic` is the DDD Crew chart everybody knows — Generic / Supporting / Core
8
+ * over Complexity × Business differentiation. `migration` keeps the very same
9
+ * frame and names its four quadrants after the migration conversation instead
10
+ * (low-hanging fruit, risk-seeking, risk-averse, last toothpaste), which is why
11
+ * it is a variant of one background and not a second element type.
12
+ */
13
+ export type CoreDomainVariant = 'classic' | 'migration';
14
+ export type CoreDomainChartProps = FrameworkBackgroundProps & {
8
15
  /** When false the translucent Core / Supporting / Generic zone bands are hidden. */
9
16
  showZones?: boolean;
10
17
  /** When false the axis titles, Low/High ticks and zone names are hidden. */
11
18
  showLabels?: boolean;
19
+ /** Which reading of the chart is drawn. */
20
+ variant?: CoreDomainVariant;
12
21
  };
13
22
  /**
14
23
  * The Core Domain Chart background (DDD Crew): the two axes (Complexity ×
@@ -16,21 +25,29 @@ export type CoreDomainChartProps = BaseElementProps & {
16
25
  * Generic / Supporting / Core zone bands. The user places sub-domain dots,
17
26
  * movement arrows and the Notation legend on top of it.
18
27
  *
19
- * Mirrors the Wardley / EDGY / Cynefin backgrounds: extends
20
- * {@link GfxPrimitiveElementModel} so it inherits selection, move, copy/paste,
21
- * duplicate, align and undo/redo. Authored in a fixed reference space and scaled
22
- * uniformly to the element bounds by the renderer.
28
+ * An INSTANCE of the framework-background primitive
29
+ * ({@link FrameworkBackgroundElementModel}): the geometry and the passive-canvas
30
+ * behaviour come from the primitive — which declares the very same
31
+ * `connectable` getter and the very same four geometry overrides this class
32
+ * used to spell out — and what the chart LOOKS like comes from the
33
+ * `CORE_DOMAIN_BACKGROUND` declaration in `@labre/affine-gfx-ddd-core-domain`.
34
+ *
35
+ * The fields below are the persisted document and are NOT the primitive's
36
+ * business: the base swap adds no field, renames none and changes no default,
37
+ * so a chart authored before it is byte-identical to one authored after.
23
38
  */
24
- export declare class CoreDomainChartElementModel extends GfxPrimitiveElementModel<CoreDomainChartProps> {
39
+ export declare class CoreDomainChartElementModel extends FrameworkBackgroundElementModel<CoreDomainChartProps> {
25
40
  get type(): string;
26
- get connectable(): boolean;
27
- containsBound(bounds: Bound): boolean;
28
- getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
29
- getNearestPoint(point: IVec): IVec;
30
- includesPoint(x: number, y: number): boolean;
31
41
  accessor resizeEnabled: boolean;
32
42
  accessor showZones: boolean;
33
43
  accessor showLabels: boolean;
44
+ /**
45
+ * A HARD default, on the Wardley `variant` pattern: `classic` is written into
46
+ * the Y.Map at creation and is also what an older chart — which carries no
47
+ * such key at all — reads back as. Both roads lead to the chart the user has
48
+ * always seen, so the field ships with no migration and no backfill.
49
+ */
50
+ accessor variant: CoreDomainVariant;
34
51
  accessor rotate: number;
35
52
  accessor xywh: SerializedXYWH;
36
53
  }
@@ -32,21 +32,27 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
32
32
  }
33
33
  return useValue ? value : void 0;
34
34
  };
35
- import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
36
- import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
35
+ import { field } from '../../../std/gfx/index.js';
36
+ import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
37
37
  /**
38
38
  * The Core Domain Chart background (DDD Crew): the two axes (Complexity ×
39
39
  * Business differentiation) with their Low/High ticks and the translucent
40
40
  * Generic / Supporting / Core zone bands. The user places sub-domain dots,
41
41
  * movement arrows and the Notation legend on top of it.
42
42
  *
43
- * Mirrors the Wardley / EDGY / Cynefin backgrounds: extends
44
- * {@link GfxPrimitiveElementModel} so it inherits selection, move, copy/paste,
45
- * duplicate, align and undo/redo. Authored in a fixed reference space and scaled
46
- * uniformly to the element bounds by the renderer.
43
+ * An INSTANCE of the framework-background primitive
44
+ * ({@link FrameworkBackgroundElementModel}): the geometry and the passive-canvas
45
+ * behaviour come from the primitive — which declares the very same
46
+ * `connectable` getter and the very same four geometry overrides this class
47
+ * used to spell out — and what the chart LOOKS like comes from the
48
+ * `CORE_DOMAIN_BACKGROUND` declaration in `@labre/affine-gfx-ddd-core-domain`.
49
+ *
50
+ * The fields below are the persisted document and are NOT the primitive's
51
+ * business: the base swap adds no field, renames none and changes no default,
52
+ * so a chart authored before it is byte-identical to one authored after.
47
53
  */
48
54
  let CoreDomainChartElementModel = (() => {
49
- let _classSuper = GfxPrimitiveElementModel;
55
+ let _classSuper = FrameworkBackgroundElementModel;
50
56
  let _resizeEnabled_decorators;
51
57
  let _resizeEnabled_initializers = [];
52
58
  let _resizeEnabled_extraInitializers = [];
@@ -56,6 +62,9 @@ let CoreDomainChartElementModel = (() => {
56
62
  let _showLabels_decorators;
57
63
  let _showLabels_initializers = [];
58
64
  let _showLabels_extraInitializers = [];
65
+ let _variant_decorators;
66
+ let _variant_initializers = [];
67
+ let _variant_extraInitializers = [];
59
68
  let _rotate_decorators;
60
69
  let _rotate_initializers = [];
61
70
  let _rotate_extraInitializers = [];
@@ -68,11 +77,13 @@ let CoreDomainChartElementModel = (() => {
68
77
  _resizeEnabled_decorators = [field(true)];
69
78
  _showZones_decorators = [field(true)];
70
79
  _showLabels_decorators = [field(true)];
80
+ _variant_decorators = [field('classic')];
71
81
  _rotate_decorators = [field(0)];
72
82
  _xywh_decorators = [field()];
73
83
  __esDecorate(this, null, _resizeEnabled_decorators, { kind: "accessor", name: "resizeEnabled", static: false, private: false, access: { has: obj => "resizeEnabled" in obj, get: obj => obj.resizeEnabled, set: (obj, value) => { obj.resizeEnabled = value; } }, metadata: _metadata }, _resizeEnabled_initializers, _resizeEnabled_extraInitializers);
74
84
  __esDecorate(this, null, _showZones_decorators, { kind: "accessor", name: "showZones", static: false, private: false, access: { has: obj => "showZones" in obj, get: obj => obj.showZones, set: (obj, value) => { obj.showZones = value; } }, metadata: _metadata }, _showZones_initializers, _showZones_extraInitializers);
75
85
  __esDecorate(this, null, _showLabels_decorators, { kind: "accessor", name: "showLabels", static: false, private: false, access: { has: obj => "showLabels" in obj, get: obj => obj.showLabels, set: (obj, value) => { obj.showLabels = value; } }, metadata: _metadata }, _showLabels_initializers, _showLabels_extraInitializers);
86
+ __esDecorate(this, null, _variant_decorators, { kind: "accessor", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
76
87
  __esDecorate(this, null, _rotate_decorators, { kind: "accessor", name: "rotate", static: false, private: false, access: { has: obj => "rotate" in obj, get: obj => obj.rotate, set: (obj, value) => { obj.rotate = value; } }, metadata: _metadata }, _rotate_initializers, _rotate_extraInitializers);
77
88
  __esDecorate(this, null, _xywh_decorators, { kind: "accessor", name: "xywh", static: false, private: false, access: { has: obj => "xywh" in obj, get: obj => obj.xywh, set: (obj, value) => { obj.xywh = value; } }, metadata: _metadata }, _xywh_initializers, _xywh_extraInitializers);
78
89
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
@@ -80,24 +91,6 @@ let CoreDomainChartElementModel = (() => {
80
91
  get type() {
81
92
  return 'coreDomain';
82
93
  }
83
- get connectable() {
84
- return false;
85
- }
86
- containsBound(bounds) {
87
- const points = getPointsFromBoundWithRotation(this);
88
- return points.some(point => bounds.containsPoint(point));
89
- }
90
- getLineIntersections(start, end) {
91
- const points = getPointsFromBoundWithRotation(this);
92
- return linePolygonIntersects(start, end, points);
93
- }
94
- getNearestPoint(point) {
95
- return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
96
- }
97
- includesPoint(x, y) {
98
- const points = getPointsFromBoundWithRotation(this);
99
- return pointInPolygon([x, y], points);
100
- }
101
94
  #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
102
95
  get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
103
96
  set resizeEnabled(value) { this.#resizeEnabled_accessor_storage = value; }
@@ -107,7 +100,16 @@ let CoreDomainChartElementModel = (() => {
107
100
  #showLabels_accessor_storage = (__runInitializers(this, _showZones_extraInitializers), __runInitializers(this, _showLabels_initializers, true));
108
101
  get showLabels() { return this.#showLabels_accessor_storage; }
109
102
  set showLabels(value) { this.#showLabels_accessor_storage = value; }
110
- #rotate_accessor_storage = (__runInitializers(this, _showLabels_extraInitializers), __runInitializers(this, _rotate_initializers, 0));
103
+ #variant_accessor_storage = (__runInitializers(this, _showLabels_extraInitializers), __runInitializers(this, _variant_initializers, 'classic'));
104
+ /**
105
+ * A HARD default, on the Wardley `variant` pattern: `classic` is written into
106
+ * the Y.Map at creation and is also what an older chart — which carries no
107
+ * such key at all — reads back as. Both roads lead to the chart the user has
108
+ * always seen, so the field ships with no migration and no backfill.
109
+ */
110
+ get variant() { return this.#variant_accessor_storage; }
111
+ set variant(value) { this.#variant_accessor_storage = value; }
112
+ #rotate_accessor_storage = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _rotate_initializers, 0));
111
113
  get rotate() { return this.#rotate_accessor_storage; }
112
114
  set rotate(value) { this.#rotate_accessor_storage = value; }
113
115
  #xywh_accessor_storage = (__runInitializers(this, _rotate_extraInitializers), __runInitializers(this, _xywh_initializers, '[0,0,900,820]'));
@@ -1,6 +1,6 @@
1
1
  import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
2
2
  import { Bound } from '../../../global/gfx/index.js';
3
- import type { BaseElementProps } from '../../../std/gfx/index.js';
3
+ import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
4
4
  import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
5
5
  export type CynefinProps = BaseElementProps & {
6
6
  /** When false the resize handles are hidden — toggled from the toolbar. */
@@ -28,7 +28,12 @@ export declare class CynefinElementModel extends GfxPrimitiveElementModel<Cynefi
28
28
  containsBound(bounds: Bound): boolean;
29
29
  getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
30
30
  getNearestPoint(point: IVec): IVec;
31
- includesPoint(x: number, y: number): boolean;
31
+ /**
32
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}. The five
33
+ * domains are a picture the user drops elements onto, so the clicks inside
34
+ * the frame belong to those elements.
35
+ */
36
+ includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
32
37
  accessor resizeEnabled: boolean;
33
38
  accessor showTitles: boolean;
34
39
  accessor showDescriptions: boolean;
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
32
32
  }
33
33
  return useValue ? value : void 0;
34
34
  };
35
- import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
35
+ import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
36
36
  import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
37
+ import { backgroundIncludesPoint } from '../framework-background/index.js';
37
38
  /**
38
39
  * A static "Liminal Cynefin" framework diagram: the hand-drawn five-domain
39
40
  * boundary (Complex / Complicated / Chaotic / Clear + central Confusion), the
@@ -98,9 +99,13 @@ let CynefinElementModel = (() => {
98
99
  getNearestPoint(point) {
99
100
  return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
100
101
  }
101
- includesPoint(x, y) {
102
- const points = getPointsFromBoundWithRotation(this);
103
- return pointInPolygon([x, y], points);
102
+ /**
103
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}. The five
104
+ * domains are a picture the user drops elements onto, so the clicks inside
105
+ * the frame belong to those elements.
106
+ */
107
+ includesPoint(x, y, options) {
108
+ return backgroundIncludesPoint(this, x, y, options);
104
109
  }
105
110
  #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
106
111
  get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
@@ -1,7 +1,7 @@
1
1
  import type { IVec } from '../../../global/gfx/index.js';
2
2
  import { Bound } from '../../../global/gfx/index.js';
3
3
  import type { SerializedXYWH } from '../../../global/gfx/index.js';
4
- import type { BaseElementProps } from '../../../std/gfx/index.js';
4
+ import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
5
5
  import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
6
6
  export type EdgyBoardProps = BaseElementProps & {
7
7
  /** When false the resize handles are hidden — toggled from the toolbar. */
@@ -24,7 +24,12 @@ export declare class EdgyBoardElementModel extends GfxPrimitiveElementModel<Edgy
24
24
  containsBound(bounds: Bound): boolean;
25
25
  getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
26
26
  getNearestPoint(point: IVec): IVec;
27
- includesPoint(x: number, y: number): boolean;
27
+ /**
28
+ * Picked by its BORDER band: a board is a passive canvas and the clicks over
29
+ * its area belong to what the user laid on it. Same test every framework
30
+ * background runs — see {@link backgroundIncludesPoint}.
31
+ */
32
+ includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
28
33
  accessor resizeEnabled: boolean;
29
34
  accessor spotlightEnabled: boolean;
30
35
  accessor rotate: number;
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
32
32
  }
33
33
  return useValue ? value : void 0;
34
34
  };
35
- import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
35
+ import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
36
36
  import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
37
+ import { backgroundIncludesPoint } from '../framework-background/index.js';
37
38
  /**
38
39
  * A blank white board for free-form EDGY modelling: the user places EDGY base
39
40
  * shapes and connectors on top of it and the board grants them the dependency
@@ -87,9 +88,13 @@ let EdgyBoardElementModel = (() => {
87
88
  getNearestPoint(point) {
88
89
  return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
89
90
  }
90
- includesPoint(x, y) {
91
- const points = getPointsFromBoundWithRotation(this);
92
- return pointInPolygon([x, y], points);
91
+ /**
92
+ * Picked by its BORDER band: a board is a passive canvas and the clicks over
93
+ * its area belong to what the user laid on it. Same test every framework
94
+ * background runs — see {@link backgroundIncludesPoint}.
95
+ */
96
+ includesPoint(x, y, options) {
97
+ return backgroundIncludesPoint(this, x, y, options);
93
98
  }
94
99
  #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
95
100
  get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
@@ -1,6 +1,6 @@
1
1
  import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
2
2
  import { Bound } from '../../../global/gfx/index.js';
3
- import type { BaseElementProps } from '../../../std/gfx/index.js';
3
+ import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
4
4
  import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
5
5
  export type EdgyFacetsProps = BaseElementProps & {
6
6
  /** When false the resize handles are hidden — toggled from the toolbar. */
@@ -14,7 +14,15 @@ export type EdgyFacetsProps = BaseElementProps & {
14
14
  * margins only exist for the facet name labels — pointless when hidden).
15
15
  */
16
16
  cropToCircles?: boolean;
17
- /** When false the diagram stops granting the hover spotlight. */
17
+ /**
18
+ * INERT since #195 — kept for backward compatibility only.
19
+ *
20
+ * The hover spotlight is board logic: it is granted by the EDGY board
21
+ * (`edgyBoard`), never by this drawing, so nothing reads this field on a
22
+ * facets Venn any more. It stays declared because documents written before
23
+ * the change carry it, and an undeclared property would not survive a load
24
+ * (see the schema red zone in `CLAUDE.md`). Do not read it, do not remove it.
25
+ */
18
26
  spotlightEnabled?: boolean;
19
27
  identityLabel?: string;
20
28
  architectureLabel?: string;
@@ -41,11 +49,20 @@ export declare class EdgyFacetsElementModel extends GfxPrimitiveElementModel<Edg
41
49
  containsBound(bounds: Bound): boolean;
42
50
  getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
43
51
  getNearestPoint(point: IVec): IVec;
44
- includesPoint(x: number, y: number): boolean;
52
+ /**
53
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}.
54
+ *
55
+ * The facet LABELS stay double-clickable all the same: their zones are added
56
+ * by `EdgyView.includesPoint`, which is what the pointer router consults, so
57
+ * the rename target lives with the code that draws it and the model layer
58
+ * stays free of it.
59
+ */
60
+ includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
45
61
  accessor resizeEnabled: boolean;
46
62
  accessor showLabels: boolean;
47
63
  accessor showPictos: boolean;
48
64
  accessor cropToCircles: boolean;
65
+ /** Inert — see {@link EdgyFacetsProps.spotlightEnabled} (#195). */
49
66
  accessor spotlightEnabled: boolean;
50
67
  accessor identityLabel: string;
51
68
  accessor architectureLabel: string;
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
32
32
  }
33
33
  return useValue ? value : void 0;
34
34
  };
35
- import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
35
+ import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
36
36
  import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
37
+ import { backgroundIncludesPoint } from '../framework-background/index.js';
37
38
  /**
38
39
  * A static "EDGY Enterprise Design Facets" diagram: three overlapping circles
39
40
  * (Identity / Architecture / Experience) with their three pairwise
@@ -123,9 +124,16 @@ let EdgyFacetsElementModel = (() => {
123
124
  getNearestPoint(point) {
124
125
  return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
125
126
  }
126
- includesPoint(x, y) {
127
- const points = getPointsFromBoundWithRotation(this);
128
- return pointInPolygon([x, y], points);
127
+ /**
128
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}.
129
+ *
130
+ * The facet LABELS stay double-clickable all the same: their zones are added
131
+ * by `EdgyView.includesPoint`, which is what the pointer router consults, so
132
+ * the rename target lives with the code that draws it and the model layer
133
+ * stays free of it.
134
+ */
135
+ includesPoint(x, y, options) {
136
+ return backgroundIncludesPoint(this, x, y, options);
129
137
  }
130
138
  #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
131
139
  get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
@@ -140,6 +148,7 @@ let EdgyFacetsElementModel = (() => {
140
148
  get cropToCircles() { return this.#cropToCircles_accessor_storage; }
141
149
  set cropToCircles(value) { this.#cropToCircles_accessor_storage = value; }
142
150
  #spotlightEnabled_accessor_storage = (__runInitializers(this, _cropToCircles_extraInitializers), __runInitializers(this, _spotlightEnabled_initializers, true));
151
+ /** Inert — see {@link EdgyFacetsProps.spotlightEnabled} (#195). */
143
152
  get spotlightEnabled() { return this.#spotlightEnabled_accessor_storage; }
144
153
  set spotlightEnabled(value) { this.#spotlightEnabled_accessor_storage = value; }
145
154
  #identityLabel_accessor_storage = (__runInitializers(this, _spotlightEnabled_extraInitializers), __runInitializers(this, _identityLabel_initializers, 'Identity'));
@@ -1,6 +1,6 @@
1
1
  import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
2
2
  import { Bound } from '../../../global/gfx/index.js';
3
- import type { BaseElementProps } from '../../../std/gfx/index.js';
3
+ import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
4
4
  import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
5
5
  export type EstuarineProps = BaseElementProps & {
6
6
  /** When false the resize handles are hidden — toggled from the toolbar. */
@@ -26,7 +26,12 @@ export declare class EstuarineElementModel extends GfxPrimitiveElementModel<Estu
26
26
  containsBound(bounds: Bound): boolean;
27
27
  getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
28
28
  getNearestPoint(point: IVec): IVec;
29
- includesPoint(x: number, y: number): boolean;
29
+ /**
30
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}. The map is
31
+ * a space constraint nodes are dropped into, so the clicks inside it are
32
+ * theirs.
33
+ */
34
+ includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
30
35
  accessor resizeEnabled: boolean;
31
36
  accessor showLiminal: boolean;
32
37
  accessor showVolatile: boolean;
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
32
32
  }
33
33
  return useValue ? value : void 0;
34
34
  };
35
- import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
35
+ import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
36
36
  import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
37
+ import { backgroundIncludesPoint } from '../framework-background/index.js';
37
38
  /**
38
39
  * A static "Estuarine framework" map: the 2D energy (e, vertical, double-headed)
39
40
  * / time (t, horizontal) space with the three reference curves — Liminal (green),
@@ -101,9 +102,13 @@ let EstuarineElementModel = (() => {
101
102
  getNearestPoint(point) {
102
103
  return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
103
104
  }
104
- includesPoint(x, y) {
105
- const points = getPointsFromBoundWithRotation(this);
106
- return pointInPolygon([x, y], points);
105
+ /**
106
+ * Picked by its BORDER band — see {@link backgroundIncludesPoint}. The map is
107
+ * a space constraint nodes are dropped into, so the clicks inside it are
108
+ * theirs.
109
+ */
110
+ includesPoint(x, y, options) {
111
+ return backgroundIncludesPoint(this, x, y, options);
107
112
  }
108
113
  #resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
109
114
  get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
@@ -0,0 +1,36 @@
1
+ import type { SerializedXYWH } from '../../../global/gfx/index.js';
2
+ import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
3
+ import type { FrameworkBackgroundProps } from '../framework-background/index.js';
4
+ export type EventStormingBoardProps = FrameworkBackgroundProps;
5
+ /**
6
+ * The Event Storming board: the paper roll a Big Picture is stormed on.
7
+ *
8
+ * One axis and nothing else — TIME, running left to right along the bottom.
9
+ * That is the whole frame of reference Event Storming has: an event drawn to
10
+ * the left of another happened before it, and how HIGH a sticky sits means
11
+ * nothing at all (the vertical is where a workshop parks its unknowns, not a
12
+ * scale). Declaring the one axis and no zones is therefore the honest
13
+ * declaration, and it is what lets `es.against-timeline` say "this flow runs
14
+ * backwards" without inventing a second dimension nobody drew against.
15
+ *
16
+ * **Swimlanes are cut from v1** (plan § Coupes v1). A lane is a horizontal
17
+ * BAND with a name, which on this element would be a variant declaration
18
+ * (`variantProp: 'lanes'`) and a rule family that measures membership per lane.
19
+ * Neither exists yet, and shipping half of it — bands that paint but that no
20
+ * rule can read — would put a semantic on the vertical the framework does not
21
+ * have. The v2 note lives here so the day lanes land, the reason they were not
22
+ * here is on the record.
23
+ *
24
+ * Adds no field of its own beyond the primitive's `resizeEnabled`, so a board
25
+ * is byte-identical to what {@link FrameworkBackgroundElementModel} already
26
+ * persists. It is created 3200 × 1400 — a Big Picture is WIDE, because the
27
+ * timeline is the point — and freely resizable in both directions: the roll
28
+ * grows sideways all morning as events are remembered, and locking its
29
+ * proportion would fight the hand.
30
+ */
31
+ export declare class EventStormingBoardElementModel extends FrameworkBackgroundElementModel<EventStormingBoardProps> {
32
+ get type(): string;
33
+ accessor resizeEnabled: boolean;
34
+ accessor rotate: number;
35
+ accessor xywh: SerializedXYWH;
36
+ }