@likec4/diagram 1.44.0 → 1.46.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 (270) hide show
  1. package/bundle/index.js +18847 -17876
  2. package/dist/LikeC4Diagram.d.ts +1 -1
  3. package/dist/LikeC4Diagram.js +15 -12
  4. package/dist/LikeC4Diagram.props.d.ts +13 -20
  5. package/dist/LikeC4ProjectsProvider.js +8 -4
  6. package/dist/LikeC4Styles.js +0 -3
  7. package/dist/LikeC4View.d.ts +3 -3
  8. package/dist/LikeC4View.js +8 -8
  9. package/dist/ReactLikeC4.d.ts +3 -6
  10. package/dist/StaticLikeC4Diagram.js +0 -2
  11. package/dist/base/Base.d.ts +1 -1
  12. package/dist/base/updateEdges.js +25 -15
  13. package/dist/base/updateNodes.d.ts +14 -0
  14. package/dist/base/updateNodes.js +51 -18
  15. package/dist/base-primitives/Markdown.d.ts +30 -4
  16. package/dist/base-primitives/Markdown.js +3 -2
  17. package/dist/base-primitives/NodeHandles.d.ts +2 -1
  18. package/dist/base-primitives/NodeHandles.js +22 -18
  19. package/dist/base-primitives/compound/CompoundActionButton.d.ts +3 -2
  20. package/dist/base-primitives/compound/CompoundActionButton.js +1 -1
  21. package/dist/base-primitives/compound/CompoundDetailsButton.d.ts +3 -2
  22. package/dist/base-primitives/compound/CompoundDetailsButton.js +1 -1
  23. package/dist/base-primitives/edge/EdgeActionButton.d.ts +3 -2
  24. package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
  25. package/dist/base-primitives/edge/EdgeContainer.d.ts +1 -1
  26. package/dist/base-primitives/edge/EdgeContainer.js +6 -4
  27. package/dist/base-primitives/edge/EdgeLabel.d.ts +2 -2
  28. package/dist/base-primitives/edge/EdgeLabel.js +16 -16
  29. package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +1 -1
  30. package/dist/base-primitives/edge/EdgeLabelContainer.js +5 -4
  31. package/dist/base-primitives/edge/EdgePath.js +27 -12
  32. package/dist/base-primitives/element/ElementActionButtons.d.ts +3 -2
  33. package/dist/base-primitives/element/ElementActionButtons.js +3 -3
  34. package/dist/base-primitives/element/ElementData.d.ts +3 -3
  35. package/dist/base-primitives/element/ElementData.js +13 -7
  36. package/dist/base-primitives/element/ElementDetailsButton.d.ts +3 -2
  37. package/dist/base-primitives/element/ElementDetailsButton.js +4 -1
  38. package/dist/base-primitives/element/ElementShape.js +5 -5
  39. package/dist/base-primitives/element/ElementTags.d.ts +6 -4
  40. package/dist/components/ErrorFallback.js +1 -1
  41. package/dist/components/Link.js +2 -2
  42. package/dist/context/DiagramEventHandlers.js +0 -1
  43. package/dist/context/DiagramFeatures.d.ts +2 -1
  44. package/dist/context/DiagramFeatures.js +1 -0
  45. package/dist/context/EnsureMantine.js +2 -1
  46. package/dist/context/IconRenderer.js +6 -6
  47. package/dist/context/TagStylesContext.js +1 -1
  48. package/dist/custom/hooks.d.ts +2 -2
  49. package/dist/custom/index.js +1 -1
  50. package/dist/editor/LikeC4EditorProvider.d.ts +22 -0
  51. package/dist/editor/LikeC4EditorProvider.js +12 -0
  52. package/dist/editor/__tests__/fixture.d.ts +205 -0
  53. package/dist/editor/applyChangesToManualLayout.d.ts +8 -0
  54. package/dist/editor/applyChangesToManualLayout.js +182 -0
  55. package/dist/editor/editorActor.actions.d.ts +201 -0
  56. package/dist/editor/editorActor.actions.js +149 -0
  57. package/dist/editor/editorActor.d.ts +653 -0
  58. package/dist/editor/editorActor.js +324 -0
  59. package/dist/editor/hotkeyActor.d.ts +7 -0
  60. package/dist/editor/hotkeyActor.js +19 -0
  61. package/dist/editor/index.d.ts +3 -2
  62. package/dist/editor/useEditorActorLogic.d.ts +565 -0
  63. package/dist/editor/useEditorActorLogic.js +54 -0
  64. package/dist/hooks/index.d.ts +2 -1
  65. package/dist/hooks/safeContext.d.ts +3 -2
  66. package/dist/hooks/safeContext.js +7 -4
  67. package/dist/hooks/useDiagram.d.ts +4 -2
  68. package/dist/hooks/useDiagram.js +19 -8
  69. package/dist/hooks/useDiagramCompareLayout.d.ts +8 -0
  70. package/dist/hooks/useDiagramCompareLayout.js +29 -4
  71. package/dist/hooks/useLikeC4Project.d.ts +6 -1
  72. package/dist/hooks/useLikeC4Project.js +14 -2
  73. package/dist/hooks/useMediaPrint.d.ts +6 -0
  74. package/dist/index.d.ts +1 -0
  75. package/dist/index.js +1 -0
  76. package/dist/likec4diagram/DiagramXYFlow.js +11 -7
  77. package/dist/likec4diagram/custom/edges/EdgeDrifts.d.ts +6 -0
  78. package/dist/likec4diagram/custom/edges/EdgeDrifts.js +34 -0
  79. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +90 -54
  80. package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +3 -1
  81. package/dist/likec4diagram/custom/edges/edges.css.d.ts +0 -1
  82. package/dist/likec4diagram/custom/edges/edges.css.js +30 -24
  83. package/dist/likec4diagram/custom/edges/useControlPoints.js +5 -5
  84. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +5 -5
  85. package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
  86. package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +6 -0
  87. package/dist/likec4diagram/custom/nodes/{ElementNodeDrifts.js → NodeDrifts.js} +12 -13
  88. package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +4 -2
  89. package/dist/likec4diagram/custom/nodes/index.d.ts +1 -0
  90. package/dist/likec4diagram/custom/nodes/nodes.js +61 -23
  91. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +2 -2
  92. package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
  93. package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +128 -15
  94. package/dist/likec4diagram/relationship-popover/actor.d.ts +1 -1
  95. package/dist/likec4diagram/state/DiagramActorProvider.d.ts +2 -2
  96. package/dist/likec4diagram/state/DiagramActorProvider.js +63 -72
  97. package/dist/likec4diagram/state/assign.d.ts +14 -7
  98. package/dist/likec4diagram/state/assign.js +28 -200
  99. package/dist/likec4diagram/state/createViewChange.js +23 -30
  100. package/dist/likec4diagram/state/diagram-api.d.ts +20 -6
  101. package/dist/likec4diagram/state/diagram-api.js +58 -52
  102. package/dist/likec4diagram/state/hotkeyActor.d.ts +1 -8
  103. package/dist/likec4diagram/state/hotkeyActor.js +13 -17
  104. package/dist/likec4diagram/state/machine.actions.d.ts +1127 -864
  105. package/dist/likec4diagram/state/machine.actions.js +316 -296
  106. package/dist/likec4diagram/state/machine.actions.layout.d.ts +641 -0
  107. package/dist/likec4diagram/state/machine.actions.layout.js +141 -0
  108. package/dist/likec4diagram/state/machine.d.ts +18 -3712
  109. package/dist/likec4diagram/state/machine.js +64 -73
  110. package/dist/likec4diagram/state/machine.setup.d.ts +80 -26
  111. package/dist/likec4diagram/state/machine.setup.js +44 -7
  112. package/dist/likec4diagram/state/machine.state.initializing.d.ts +58 -17
  113. package/dist/likec4diagram/state/machine.state.initializing.js +14 -14
  114. package/dist/likec4diagram/state/machine.state.navigating.d.ts +5 -108
  115. package/dist/likec4diagram/state/machine.state.navigating.js +187 -35
  116. package/dist/likec4diagram/state/machine.state.ready.d.ts +2997 -2598
  117. package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +710 -0
  118. package/dist/likec4diagram/state/machine.state.ready.focused.js +98 -0
  119. package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +540 -0
  120. package/dist/likec4diagram/state/machine.state.ready.idle.js +105 -0
  121. package/dist/likec4diagram/state/machine.state.ready.js +95 -347
  122. package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +140 -0
  123. package/dist/likec4diagram/state/machine.state.ready.printing.js +40 -0
  124. package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +684 -0
  125. package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +190 -0
  126. package/dist/likec4diagram/state/mediaPrintActor.d.ts +12 -0
  127. package/dist/likec4diagram/state/mediaPrintActor.js +18 -0
  128. package/dist/likec4diagram/state/types.d.ts +11 -9
  129. package/dist/likec4diagram/state/utils.d.ts +44 -5
  130. package/dist/likec4diagram/state/utils.js +62 -6
  131. package/dist/likec4diagram/types.d.ts +8 -13
  132. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +5 -2
  133. package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
  134. package/dist/likec4diagram/useLayoutConstraints.js +104 -103
  135. package/dist/likec4diagram/xyflow-diagram/diagram-view.js +12 -15
  136. package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +11 -8
  137. package/dist/navigationpanel/NavigationPanel.js +11 -10
  138. package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
  139. package/dist/navigationpanel/_common.js +1 -1
  140. package/dist/navigationpanel/actor.d.ts +4 -204
  141. package/dist/navigationpanel/actor.js +1 -1
  142. package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +3 -1
  143. package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +40 -14
  144. package/dist/navigationpanel/comparepanel/ComparePanelControls.js +6 -4
  145. package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +2 -2
  146. package/dist/navigationpanel/controls/DetailsControls.js +2 -2
  147. package/dist/navigationpanel/controls/LayoutWarning.js +2 -1
  148. package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
  149. package/dist/navigationpanel/controls/OpenSource.js +1 -1
  150. package/dist/navigationpanel/controls/SearchControl.js +2 -2
  151. package/dist/navigationpanel/controls/ToggleReadonly.js +32 -19
  152. package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
  153. package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
  154. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
  155. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
  156. package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
  157. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -3
  158. package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +9 -9
  159. package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
  160. package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +4 -3
  161. package/dist/overlays/Overlays.js +24 -12
  162. package/dist/overlays/element-details/ElementDetailsCard.css.js +3 -3
  163. package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
  164. package/dist/overlays/element-details/MetadataValue.d.ts +2 -1
  165. package/dist/overlays/element-details/MetadataValue.js +4 -6
  166. package/dist/overlays/element-details/TabPanelDeployments.js +3 -3
  167. package/dist/overlays/element-details/TabPanelRelationships.js +12 -7
  168. package/dist/overlays/element-details/TabPanelStructure.js +1 -1
  169. package/dist/overlays/element-details/actor.d.ts +8 -83
  170. package/dist/overlays/element-details/actor.js +0 -8
  171. package/dist/overlays/overlay/Overlay.js +10 -10
  172. package/dist/overlays/overlaysActor.d.ts +7 -392
  173. package/dist/overlays/overlaysActor.js +73 -49
  174. package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
  175. package/dist/overlays/relationship-details/SelectEdge.js +2 -2
  176. package/dist/overlays/relationship-details/_types.d.ts +3 -4
  177. package/dist/overlays/relationship-details/actor.d.ts +6 -562
  178. package/dist/overlays/relationship-details/actor.js +1 -0
  179. package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
  180. package/dist/overlays/relationship-details/layout-to-xyflow.js +3 -5
  181. package/dist/overlays/relationship-details/layout.d.ts +3 -3
  182. package/dist/overlays/relationship-details/layout.js +4 -4
  183. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +3 -3
  184. package/dist/overlays/relationships-browser/SelectElement.js +2 -2
  185. package/dist/overlays/relationships-browser/_types.d.ts +2 -3
  186. package/dist/overlays/relationships-browser/actor.d.ts +7 -739
  187. package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
  188. package/dist/overlays/relationships-browser/layout.d.ts +2 -2
  189. package/dist/overlays/relationships-browser/layout.js +3 -3
  190. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +0 -3
  191. package/dist/overlays/types.d.ts +12 -13
  192. package/dist/search/components/ElementsColumn.js +7 -3
  193. package/dist/search/components/PickView.js +3 -1
  194. package/dist/search/components/SearchByTags.js +1 -1
  195. package/dist/search/components/SearchInput.js +1 -1
  196. package/dist/search/components/ViewsColum.d.ts +3 -1
  197. package/dist/search/components/ViewsColum.js +13 -7
  198. package/dist/search/components/_shared.css.d.ts +1 -1
  199. package/dist/search/searchActor.d.ts +3 -66
  200. package/dist/shadowroot/ShadowRoot.d.ts +5 -7
  201. package/dist/shadowroot/ShadowRoot.js +7 -5
  202. package/dist/shadowroot/styles.css.js +6 -1
  203. package/dist/styles.css2.js +1 -1
  204. package/dist/utils/index.d.ts +2 -2
  205. package/dist/utils/view-bounds.js +7 -6
  206. package/dist/utils/xyflow.d.ts +6 -5
  207. package/dist/utils/xyflow.js +26 -57
  208. package/package.json +24 -23
  209. package/panda.buildinfo.json +65 -71
  210. package/styles-min.css +1 -1
  211. package/styles.css +1 -1
  212. package/dist/base-primitives/edge/edge.css.d.ts +0 -4
  213. package/dist/base-primitives/edge/edge.css.js +0 -71
  214. package/dist/editor/LikeC4EditorContext.d.ts +0 -21
  215. package/dist/likec4diagram/custom/nodes/ElementNodeDrifts.d.ts +0 -4
  216. package/dist/likec4diagram/state/syncManualLayoutActor.d.ts +0 -280
  217. package/dist/likec4diagram/state/syncManualLayoutActor.js +0 -248
  218. package/dist/utils/vector.d.ts +0 -81
  219. package/dist/utils/vector.js +0 -120
  220. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
  221. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
  222. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
  223. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
  224. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
  225. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
  226. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
  227. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
  228. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
  229. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
  230. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
  231. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
  232. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
  233. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
  234. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
  235. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
  236. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
  237. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
  238. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
  239. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
  240. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
  241. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
  242. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
  243. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
  244. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
  245. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
  246. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
  247. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
  248. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
  249. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
  250. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
  251. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
  252. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
  253. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
  254. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
  255. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
  256. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
  257. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
  258. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
  259. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
  260. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
  261. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
  262. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
  263. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
  264. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
  265. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
  266. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
  267. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
  268. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
  269. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
  270. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import { BBox, EdgeId, ExclusiveUnion, Fqn, ViewId } from '@likec4/core';
2
2
  import { EdgeChange, NodeChange, ReactFlowInstance, ReactFlowState } from '@xyflow/react';
3
- import { ActorRefFromLogic, SnapshotFrom, StateMachine, Values, NonReducibleUnknown, EventObject, MetaObject, AnyActorLogic, ConditionalRequired, InputFrom, RequiredLogicInput, IsNotNever, ActorRef, MachineSnapshot, AnyActorRef, StateValue, AnyEventObject, ActionFunction, CancelAction } from 'xstate';
3
+ import { ActorRef, SnapshotFrom, StateMachine } from 'xstate';
4
4
  import { RelationshipDetailsTypes } from './_types';
5
5
  import { LayoutResult } from './layout';
6
6
  type XYFLowInstance = ReactFlowInstance<RelationshipDetailsTypes.AnyNode, RelationshipDetailsTypes.Edge>;
@@ -99,567 +99,11 @@ export type Events = {
99
99
  } | {
100
100
  type: 'close';
101
101
  };
102
- declare const _relationshipDetailsLogic: StateMachine<Readonly<{
103
- subject: Subject;
104
- viewId: ViewId;
105
- xyflow: XYFLowInstance | null;
106
- xystore: XYStoreApi | null;
107
- initialized: {
108
- xydata: boolean;
109
- xyflow: boolean;
110
- };
111
- xynodes: RelationshipDetailsTypes.Node[];
112
- xyedges: RelationshipDetailsTypes.Edge[];
113
- bounds: BBox;
114
- }>, Events, {}, never, Values<{
115
- "xyflow:fitDiagram": {
116
- type: "xyflow:fitDiagram";
117
- params: {
118
- duration?: number;
119
- bounds?: BBox;
120
- } | undefined;
121
- };
122
- "xyflow:updateNodeInternals": {
123
- type: "xyflow:updateNodeInternals";
124
- params: unknown;
125
- };
126
- updateXYFlow: {
127
- type: "updateXYFlow";
128
- params: NonReducibleUnknown;
129
- };
130
- updateLayoutData: {
131
- type: "updateLayoutData";
132
- params: NonReducibleUnknown;
133
- };
134
- "open relationship source": {
135
- type: "open relationship source";
136
- params: NonReducibleUnknown;
137
- };
138
- }>, Values<{
139
- isReady: {
140
- type: "isReady";
141
- params: unknown;
142
- };
143
- "enable: navigate.to": {
144
- type: "enable: navigate.to";
145
- params: unknown;
146
- };
147
- }>, never, "ready" | "closed" | "isReady" | "initializing", string, {
148
- target?: never;
149
- source?: never;
150
- edgeId: EdgeId;
151
- viewId: ViewId;
152
- } | {
153
- edgeId?: never;
154
- source: Fqn;
155
- target: Fqn;
156
- viewId: ViewId;
157
- }, NonReducibleUnknown, EventObject, MetaObject, {
158
- readonly initial: "initializing";
159
- readonly context: ({ input }: {
160
- spawn: {
161
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
162
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
163
- id?: never;
164
- systemId?: string;
165
- input?: InputFrom<TLogic>;
166
- syncSnapshot?: boolean;
167
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
168
- };
169
- input: {
170
- target?: never;
171
- source?: never;
172
- edgeId: EdgeId;
173
- viewId: ViewId;
174
- } | {
175
- edgeId?: never;
176
- source: Fqn;
177
- target: Fqn;
178
- viewId: ViewId;
179
- };
180
- self: ActorRef<MachineSnapshot<Readonly<{
181
- subject: Subject;
182
- viewId: ViewId;
183
- xyflow: XYFLowInstance | null;
184
- xystore: XYStoreApi | null;
185
- initialized: {
186
- xydata: boolean;
187
- xyflow: boolean;
188
- };
189
- xynodes: RelationshipDetailsTypes.Node[];
190
- xyedges: RelationshipDetailsTypes.Edge[];
191
- bounds: BBox;
192
- }>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
193
- }) => {
194
- subject: Subject;
195
- viewId: ViewId;
196
- bounds: {
197
- x: number;
198
- y: number;
199
- width: number;
200
- height: number;
201
- };
202
- initialized: {
203
- xydata: false;
204
- xyflow: false;
205
- };
206
- xyflow: null;
207
- xystore: null;
208
- xynodes: never[];
209
- xyedges: never[];
210
- };
211
- readonly states: {
212
- readonly initializing: {
213
- readonly on: {
214
- readonly 'xyflow.init': {
215
- readonly actions: "updateXYFlow";
216
- readonly target: "isReady";
217
- };
218
- readonly 'update.layoutData': {
219
- readonly actions: "updateLayoutData";
220
- readonly target: "isReady";
221
- };
222
- readonly close: {
223
- readonly target: "closed";
224
- };
225
- };
226
- };
227
- readonly isReady: {
228
- readonly always: readonly [{
229
- readonly guard: "isReady";
230
- readonly actions: readonly [{
231
- readonly type: "xyflow:fitDiagram";
232
- readonly params: {
233
- readonly duration: 0;
234
- };
235
- }, ActionFunction<Readonly<{
236
- subject: Subject;
237
- viewId: ViewId;
238
- xyflow: XYFLowInstance | null;
239
- xystore: XYStoreApi | null;
240
- initialized: {
241
- xydata: boolean;
242
- xyflow: boolean;
243
- };
244
- xynodes: RelationshipDetailsTypes.Node[];
245
- xyedges: RelationshipDetailsTypes.Edge[];
246
- bounds: BBox;
247
- }>, Events, Events, undefined, never, never, never, never, never>];
248
- readonly target: "ready";
249
- }, {
250
- readonly target: "initializing";
251
- }];
252
- };
253
- readonly ready: {
254
- readonly on: {
255
- readonly 'xyflow.edgeMouseEnter': {
256
- readonly actions: readonly [ ActionFunction<Readonly<{
257
- subject: Subject;
258
- viewId: ViewId;
259
- xyflow: XYFLowInstance | null;
260
- xystore: XYStoreApi | null;
261
- initialized: {
262
- xydata: boolean;
263
- xyflow: boolean;
264
- };
265
- xynodes: RelationshipDetailsTypes.Node[];
266
- xyedges: RelationshipDetailsTypes.Edge[];
267
- bounds: BBox;
268
- }>, {
269
- type: "xyflow.edgeMouseEnter";
270
- edge: RelationshipDetailsTypes.Edge;
271
- }, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<{
272
- subject: Subject;
273
- viewId: ViewId;
274
- xyflow: XYFLowInstance | null;
275
- xystore: XYStoreApi | null;
276
- initialized: {
277
- xydata: boolean;
278
- xyflow: boolean;
279
- };
280
- xynodes: RelationshipDetailsTypes.Node[];
281
- xyedges: RelationshipDetailsTypes.Edge[];
282
- bounds: BBox;
283
- }>, {
284
- type: "xyflow.edgeMouseEnter";
285
- edge: RelationshipDetailsTypes.Edge;
286
- }, undefined, Events>, CancelAction<Readonly<{
287
- subject: Subject;
288
- viewId: ViewId;
289
- xyflow: XYFLowInstance | null;
290
- xystore: XYStoreApi | null;
291
- initialized: {
292
- xydata: boolean;
293
- xyflow: boolean;
294
- };
295
- xynodes: RelationshipDetailsTypes.Node[];
296
- xyedges: RelationshipDetailsTypes.Edge[];
297
- bounds: BBox;
298
- }>, {
299
- type: "xyflow.edgeMouseEnter";
300
- edge: RelationshipDetailsTypes.Edge;
301
- }, undefined, Events>, ActionFunction<Readonly<{
302
- subject: Subject;
303
- viewId: ViewId;
304
- xyflow: XYFLowInstance | null;
305
- xystore: XYStoreApi | null;
306
- initialized: {
307
- xydata: boolean;
308
- xyflow: boolean;
309
- };
310
- xynodes: RelationshipDetailsTypes.Node[];
311
- xyedges: RelationshipDetailsTypes.Edge[];
312
- bounds: BBox;
313
- }>, {
314
- type: "xyflow.edgeMouseEnter";
315
- edge: RelationshipDetailsTypes.Edge;
316
- }, Events, undefined, never, never, never, never, never>];
317
- };
318
- readonly 'xyflow.edgeMouseLeave': {
319
- readonly actions: readonly [ ActionFunction<Readonly<{
320
- subject: Subject;
321
- viewId: ViewId;
322
- xyflow: XYFLowInstance | null;
323
- xystore: XYStoreApi | null;
324
- initialized: {
325
- xydata: boolean;
326
- xyflow: boolean;
327
- };
328
- xynodes: RelationshipDetailsTypes.Node[];
329
- xyedges: RelationshipDetailsTypes.Edge[];
330
- bounds: BBox;
331
- }>, {
332
- type: "xyflow.edgeMouseLeave";
333
- edge: RelationshipDetailsTypes.Edge;
334
- }, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<{
335
- subject: Subject;
336
- viewId: ViewId;
337
- xyflow: XYFLowInstance | null;
338
- xystore: XYStoreApi | null;
339
- initialized: {
340
- xydata: boolean;
341
- xyflow: boolean;
342
- };
343
- xynodes: RelationshipDetailsTypes.Node[];
344
- xyedges: RelationshipDetailsTypes.Edge[];
345
- bounds: BBox;
346
- }>, {
347
- type: "xyflow.edgeMouseLeave";
348
- edge: RelationshipDetailsTypes.Edge;
349
- }, undefined, Events>, ActionFunction<Readonly<{
350
- subject: Subject;
351
- viewId: ViewId;
352
- xyflow: XYFLowInstance | null;
353
- xystore: XYStoreApi | null;
354
- initialized: {
355
- xydata: boolean;
356
- xyflow: boolean;
357
- };
358
- xynodes: RelationshipDetailsTypes.Node[];
359
- xyedges: RelationshipDetailsTypes.Edge[];
360
- bounds: BBox;
361
- }>, {
362
- type: "xyflow.edgeMouseLeave";
363
- edge: RelationshipDetailsTypes.Edge;
364
- }, Events, undefined, never, never, never, never, never>];
365
- };
366
- readonly 'dim.nonhovered.edges': {
367
- readonly actions: ActionFunction<Readonly<{
368
- subject: Subject;
369
- viewId: ViewId;
370
- xyflow: XYFLowInstance | null;
371
- xystore: XYStoreApi | null;
372
- initialized: {
373
- xydata: boolean;
374
- xyflow: boolean;
375
- };
376
- xynodes: RelationshipDetailsTypes.Node[];
377
- xyedges: RelationshipDetailsTypes.Edge[];
378
- bounds: BBox;
379
- }>, {
380
- type: "dim.nonhovered.edges";
381
- }, Events, undefined, never, never, never, never, never>;
382
- };
383
- readonly 'undim.edges': {
384
- readonly actions: ActionFunction<Readonly<{
385
- subject: Subject;
386
- viewId: ViewId;
387
- xyflow: XYFLowInstance | null;
388
- xystore: XYStoreApi | null;
389
- initialized: {
390
- xydata: boolean;
391
- xyflow: boolean;
392
- };
393
- xynodes: RelationshipDetailsTypes.Node[];
394
- xyedges: RelationshipDetailsTypes.Edge[];
395
- bounds: BBox;
396
- }>, {
397
- type: "undim.edges";
398
- }, Events, undefined, never, never, never, never, never>;
399
- };
400
- readonly 'xyflow.selectionChange': {
401
- readonly actions: ActionFunction<Readonly<{
402
- subject: Subject;
403
- viewId: ViewId;
404
- xyflow: XYFLowInstance | null;
405
- xystore: XYStoreApi | null;
406
- initialized: {
407
- xydata: boolean;
408
- xyflow: boolean;
409
- };
410
- xynodes: RelationshipDetailsTypes.Node[];
411
- xyedges: RelationshipDetailsTypes.Edge[];
412
- bounds: BBox;
413
- }>, {
414
- type: "xyflow.selectionChange";
415
- nodes: RelationshipDetailsTypes.Node[];
416
- edges: RelationshipDetailsTypes.Edge[];
417
- }, Events, undefined, never, Values<{
418
- "xyflow:fitDiagram": {
419
- type: "xyflow:fitDiagram";
420
- params: {
421
- duration?: number;
422
- bounds?: BBox;
423
- } | undefined;
424
- };
425
- "xyflow:updateNodeInternals": {
426
- type: "xyflow:updateNodeInternals";
427
- params: unknown;
428
- };
429
- updateXYFlow: {
430
- type: "updateXYFlow";
431
- params: NonReducibleUnknown;
432
- };
433
- updateLayoutData: {
434
- type: "updateLayoutData";
435
- params: NonReducibleUnknown;
436
- };
437
- "open relationship source": {
438
- type: "open relationship source";
439
- params: NonReducibleUnknown;
440
- };
441
- }>, Values<{
442
- isReady: {
443
- type: "isReady";
444
- params: unknown;
445
- };
446
- "enable: navigate.to": {
447
- type: "enable: navigate.to";
448
- params: unknown;
449
- };
450
- }>, never, EventObject>;
451
- };
452
- readonly 'update.layoutData': {
453
- readonly actions: readonly ["updateLayoutData", CancelAction<Readonly<{
454
- subject: Subject;
455
- viewId: ViewId;
456
- xyflow: XYFLowInstance | null;
457
- xystore: XYStoreApi | null;
458
- initialized: {
459
- xydata: boolean;
460
- xyflow: boolean;
461
- };
462
- xynodes: RelationshipDetailsTypes.Node[];
463
- xyedges: RelationshipDetailsTypes.Edge[];
464
- bounds: BBox;
465
- }>, {
466
- type: "update.layoutData";
467
- data: LayoutResult;
468
- }, undefined, Events>, ActionFunction<Readonly<{
469
- subject: Subject;
470
- viewId: ViewId;
471
- xyflow: XYFLowInstance | null;
472
- xystore: XYStoreApi | null;
473
- initialized: {
474
- xydata: boolean;
475
- xyflow: boolean;
476
- };
477
- xynodes: RelationshipDetailsTypes.Node[];
478
- xyedges: RelationshipDetailsTypes.Edge[];
479
- bounds: BBox;
480
- }>, {
481
- type: "update.layoutData";
482
- data: LayoutResult;
483
- }, Events, undefined, never, never, never, never, never>, ActionFunction<Readonly<{
484
- subject: Subject;
485
- viewId: ViewId;
486
- xyflow: XYFLowInstance | null;
487
- xystore: XYStoreApi | null;
488
- initialized: {
489
- xydata: boolean;
490
- xyflow: boolean;
491
- };
492
- xynodes: RelationshipDetailsTypes.Node[];
493
- xyedges: RelationshipDetailsTypes.Edge[];
494
- bounds: BBox;
495
- }>, {
496
- type: "update.layoutData";
497
- data: LayoutResult;
498
- }, Events, undefined, never, never, never, never, never>];
499
- };
500
- readonly 'xyflow.init': {
501
- readonly actions: "updateXYFlow";
502
- };
503
- readonly 'xyflow.applyNodeChanges': {
504
- readonly actions: ActionFunction<Readonly<{
505
- subject: Subject;
506
- viewId: ViewId;
507
- xyflow: XYFLowInstance | null;
508
- xystore: XYStoreApi | null;
509
- initialized: {
510
- xydata: boolean;
511
- xyflow: boolean;
512
- };
513
- xynodes: RelationshipDetailsTypes.Node[];
514
- xyedges: RelationshipDetailsTypes.Edge[];
515
- bounds: BBox;
516
- }>, {
517
- type: "xyflow.applyNodeChanges";
518
- changes: NodeChange<RelationshipDetailsTypes.Node>[];
519
- }, Events, undefined, never, never, never, never, never>;
520
- };
521
- readonly 'xyflow.applyEdgeChanges': {
522
- readonly actions: ActionFunction<Readonly<{
523
- subject: Subject;
524
- viewId: ViewId;
525
- xyflow: XYFLowInstance | null;
526
- xystore: XYStoreApi | null;
527
- initialized: {
528
- xydata: boolean;
529
- xyflow: boolean;
530
- };
531
- xynodes: RelationshipDetailsTypes.Node[];
532
- xyedges: RelationshipDetailsTypes.Edge[];
533
- bounds: BBox;
534
- }>, {
535
- type: "xyflow.applyEdgeChanges";
536
- changes: EdgeChange<RelationshipDetailsTypes.Edge>[];
537
- }, Events, undefined, never, never, never, never, never>;
538
- };
539
- readonly 'xyflow.paneDblClick': {
540
- readonly actions: "xyflow:fitDiagram";
541
- };
542
- readonly 'xyflow.edgeClick': {
543
- readonly actions: "open relationship source";
544
- };
545
- readonly 'navigate.to': {
546
- readonly actions: ActionFunction<Readonly<{
547
- subject: Subject;
548
- viewId: ViewId;
549
- xyflow: XYFLowInstance | null;
550
- xystore: XYStoreApi | null;
551
- initialized: {
552
- xydata: boolean;
553
- xyflow: boolean;
554
- };
555
- xynodes: RelationshipDetailsTypes.Node[];
556
- xyedges: RelationshipDetailsTypes.Edge[];
557
- bounds: BBox;
558
- }>, {
559
- type: "navigate.to";
560
- params: {
561
- edgeId: EdgeId;
562
- viewId?: ViewId;
563
- } | {
564
- source: Fqn;
565
- target: Fqn;
566
- viewId?: ViewId;
567
- };
568
- }, Events, undefined, never, never, never, never, never>;
569
- };
570
- readonly close: {
571
- readonly target: "closed";
572
- };
573
- };
574
- readonly exit: ActionFunction<Readonly<{
575
- subject: Subject;
576
- viewId: ViewId;
577
- xyflow: XYFLowInstance | null;
578
- xystore: XYStoreApi | null;
579
- initialized: {
580
- xydata: boolean;
581
- xyflow: boolean;
582
- };
583
- xynodes: RelationshipDetailsTypes.Node[];
584
- xyedges: RelationshipDetailsTypes.Edge[];
585
- bounds: BBox;
586
- }>, Events, Events, undefined, never, never, never, never, never>;
587
- };
588
- readonly closed: {
589
- readonly type: "final";
590
- };
591
- };
592
- readonly on: {
593
- readonly fitDiagram: {
594
- readonly actions: {
595
- readonly type: "xyflow:fitDiagram";
596
- readonly params: (data: {
597
- context: Readonly<{
598
- subject: Subject;
599
- viewId: ViewId;
600
- xyflow: XYFLowInstance | null;
601
- xystore: XYStoreApi | null;
602
- initialized: {
603
- xydata: boolean;
604
- xyflow: boolean;
605
- };
606
- xynodes: RelationshipDetailsTypes.Node[];
607
- xyedges: RelationshipDetailsTypes.Edge[];
608
- bounds: BBox;
609
- }>;
610
- event: {
611
- type: "fitDiagram";
612
- duration?: number;
613
- bounds?: BBox;
614
- };
615
- }) => {
616
- type: "fitDiagram";
617
- duration?: number;
618
- bounds?: BBox;
619
- };
620
- };
621
- };
622
- readonly 'xyflow.resized': {
623
- readonly actions: readonly [ CancelAction<Readonly<{
624
- subject: Subject;
625
- viewId: ViewId;
626
- xyflow: XYFLowInstance | null;
627
- xystore: XYStoreApi | null;
628
- initialized: {
629
- xydata: boolean;
630
- xyflow: boolean;
631
- };
632
- xynodes: RelationshipDetailsTypes.Node[];
633
- xyedges: RelationshipDetailsTypes.Edge[];
634
- bounds: BBox;
635
- }>, {
636
- type: "xyflow.resized";
637
- }, undefined, Events>, ActionFunction<Readonly<{
638
- subject: Subject;
639
- viewId: ViewId;
640
- xyflow: XYFLowInstance | null;
641
- xystore: XYStoreApi | null;
642
- initialized: {
643
- xydata: boolean;
644
- xyflow: boolean;
645
- };
646
- xynodes: RelationshipDetailsTypes.Node[];
647
- xyedges: RelationshipDetailsTypes.Edge[];
648
- bounds: BBox;
649
- }>, {
650
- type: "xyflow.resized";
651
- }, Events, undefined, never, never, never, never, never>];
652
- };
653
- readonly 'xyflow.updateNodeInternals': {
654
- readonly actions: "xyflow:updateNodeInternals";
655
- };
656
- };
657
- }>;
658
- type InferredMachine = typeof _relationshipDetailsLogic;
659
- export interface RelationshipDetailsLogic extends InferredMachine {
102
+ export type Tags = never;
103
+ export interface RelationshipDetailsLogic extends StateMachine<Context, Events, {}, any, any, any, any, any, Tags, Input, any, any, any, any> {
660
104
  }
661
105
  export declare const relationshipDetailsLogic: RelationshipDetailsLogic;
662
- export interface RelationshipDetailsActorRef extends ActorRefFromLogic<RelationshipDetailsLogic> {
663
- }
664
106
  export type RelationshipDetailsSnapshot = SnapshotFrom<RelationshipDetailsLogic>;
665
- export {};
107
+ export interface RelationshipDetailsActorRef extends ActorRef<RelationshipDetailsSnapshot, Events> {
108
+ }
109
+ export type { Input as RelationshipDetailsInput, };
@@ -30,6 +30,7 @@ const _relationshipDetailsLogic = setup({
30
30
  types: {
31
31
  context: {},
32
32
  input: {},
33
+ tags: {},
33
34
  events: {}
34
35
  },
35
36
  actions: {
@@ -6,9 +6,9 @@ import 'fast-equals';
6
6
  import 'react';
7
7
  import { useDiagram } from '../../../hooks/safeContext.js';
8
8
  import { ElementActionButtons } from '../../../base-primitives/element/ElementActionButtons.js';
9
- import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
10
- import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js';
11
- import IconFileSymlink from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
9
+ import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.1/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
10
+ import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js';
11
+ import IconFileSymlink from '../../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
12
12
 
13
13
  const ElementActions = (props) => {
14
14
  const { enableNavigateTo, enableVscode } = useEnabledFeatures();
@@ -1,4 +1,4 @@
1
- import { Queue, nonNullable, RichText } from '@likec4/core';
1
+ import { Queue, nonNullable } from '@likec4/core';
2
2
  import { hasAtLeast } from 'remeda';
3
3
  import { ZIndexes } from '../../base/const.js';
4
4
 
@@ -36,8 +36,6 @@ function layoutResultToXYFlow(layout) {
36
36
  const base = {
37
37
  id,
38
38
  draggable: false,
39
- selectable: true,
40
- focusable: true,
41
39
  deletable: false,
42
40
  position,
43
41
  zIndex: isCompound ? ZIndexes.Compound : ZIndexes.Element,
@@ -86,7 +84,7 @@ function layoutResultToXYFlow(layout) {
86
84
  fqn,
87
85
  title: node.title,
88
86
  technology: node.technology,
89
- description: RichText.from(node.description),
87
+ description: node.description ?? null,
90
88
  height: node.height,
91
89
  width: node.width,
92
90
  color: node.color,
@@ -131,7 +129,7 @@ function layoutResultToXYFlow(layout) {
131
129
  color,
132
130
  navigateTo,
133
131
  line,
134
- description: RichText.from(description),
132
+ description: description ?? null,
135
133
  ...technology && { technology }
136
134
  }
137
135
  });
@@ -1,4 +1,4 @@
1
- import { AnyAux, DiagramEdge, DiagramNode, DiagramView, Fqn, RelationId, RichTextOrEmpty } from '@likec4/core/types';
1
+ import { AnyAux, DiagramEdge, DiagramNode, DiagramView, Fqn, MarkdownOrString, RelationId } from '@likec4/core/types';
2
2
  import { LikeC4ViewModel } from '@likec4/core/model';
3
3
  import { Except } from 'type-fest';
4
4
  import { RelationshipDetailsTypes } from './_types';
@@ -10,7 +10,7 @@ export type LayoutResult = {
10
10
  };
11
11
  export declare namespace LayoutResult {
12
12
  type Node = Except<DiagramNode, 'modelRef' | 'description' | 'deploymentRef' | 'inEdges' | 'outEdges'> & {
13
- description: RichTextOrEmpty;
13
+ description: MarkdownOrString | null;
14
14
  modelRef: Fqn;
15
15
  column: RelationshipDetailsTypes.Column;
16
16
  ports: RelationshipDetailsTypes.Ports;
@@ -19,7 +19,7 @@ export declare namespace LayoutResult {
19
19
  relationId: RelationId;
20
20
  sourceHandle: string;
21
21
  targetHandle: string;
22
- description: RichTextOrEmpty;
22
+ description: MarkdownOrString | null;
23
23
  };
24
24
  }
25
25
  export declare function layoutRelationshipDetails(data: RelationshipDetailsViewData, scope: LikeC4ViewModel<AnyAux> | null): LayoutResult;