@likec4/diagram 1.60.0 → 1.61.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 (486) hide show
  1. package/README.md +63 -11
  2. package/dist/LikeC4Diagram.d.mts +4 -6
  3. package/dist/LikeC4Diagram.mjs +13 -12
  4. package/dist/LikeC4Diagram.props.d.mts +5 -7
  5. package/dist/LikeC4MantineProvider.d.mts +1 -2
  6. package/dist/LikeC4MantineProvider.mjs +26 -11
  7. package/dist/LikeC4ModelProvider.d.mts +1 -3
  8. package/dist/LikeC4ModelProvider.mjs +1 -2
  9. package/dist/LikeC4ProjectsOverview.d.mts +1 -3
  10. package/dist/LikeC4ProjectsOverview.mjs +1 -2
  11. package/dist/LikeC4ProjectsProvider.d.mts +1 -2
  12. package/dist/LikeC4ProjectsProvider.mjs +2 -3
  13. package/dist/LikeC4Styles.d.mts +1 -2
  14. package/dist/LikeC4Styles.mjs +11 -6
  15. package/dist/LikeC4View.d.mts +3 -5
  16. package/dist/LikeC4View.mjs +12 -11
  17. package/dist/ReactLikeC4.d.mts +3 -5
  18. package/dist/ReactLikeC4.mjs +8 -7
  19. package/dist/StaticLikeC4Diagram.d.mts +1 -3
  20. package/dist/StaticLikeC4Diagram.mjs +1 -2
  21. package/dist/_virtual/_rolldown/runtime.mjs +1 -2
  22. package/dist/base/Background.mjs +1 -2
  23. package/dist/base/Base.d.mts +1 -2
  24. package/dist/base/Base.mjs +1 -2
  25. package/dist/base/BaseXYFlow.mjs +12 -10
  26. package/dist/base/const.d.mts +1 -3
  27. package/dist/base/const.mjs +1 -2
  28. package/dist/base/keyboardZoom.mjs +1 -2
  29. package/dist/base/types.d.mts +2 -4
  30. package/dist/base/updateEdges.mjs +1 -2
  31. package/dist/base/updateNodes.mjs +1 -2
  32. package/dist/base-primitives/Markdown.d.mts +5 -5
  33. package/dist/base-primitives/Markdown.mjs +22 -11
  34. package/dist/base-primitives/NodeHandles.d.mts +1 -3
  35. package/dist/base-primitives/NodeHandles.mjs +1 -2
  36. package/dist/base-primitives/compound/CompoundActionButton.d.mts +1 -2
  37. package/dist/base-primitives/compound/CompoundActionButton.mjs +3 -4
  38. package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +1 -2
  39. package/dist/base-primitives/compound/CompoundDetailsButton.mjs +3 -4
  40. package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +1 -2
  41. package/dist/base-primitives/compound/CompoundNodeContainer.mjs +1 -2
  42. package/dist/base-primitives/compound/CompoundTitle.d.mts +1 -2
  43. package/dist/base-primitives/compound/CompoundTitle.mjs +1 -2
  44. package/dist/base-primitives/compound/actionbtns.css.mjs +1 -2
  45. package/dist/base-primitives/edge/EdgeActionButton.mjs +2 -3
  46. package/dist/base-primitives/edge/EdgeContainer.mjs +2 -3
  47. package/dist/base-primitives/edge/EdgeLabel.mjs +3 -3
  48. package/dist/base-primitives/edge/EdgeLabelContainer.mjs +2 -3
  49. package/dist/base-primitives/edge/EdgeMarkers.mjs +1 -2
  50. package/dist/base-primitives/edge/EdgePath.mjs +1 -2
  51. package/dist/base-primitives/element/ElementActionButtons.d.mts +1 -2
  52. package/dist/base-primitives/element/ElementActionButtons.mjs +2 -3
  53. package/dist/base-primitives/element/ElementData.d.mts +1 -2
  54. package/dist/base-primitives/element/ElementData.mjs +1 -2
  55. package/dist/base-primitives/element/ElementDetailsButton.d.mts +1 -2
  56. package/dist/base-primitives/element/ElementDetailsButton.mjs +2 -3
  57. package/dist/base-primitives/element/ElementNodeContainer.d.mts +1 -2
  58. package/dist/base-primitives/element/ElementNodeContainer.mjs +2 -3
  59. package/dist/base-primitives/element/ElementShape.d.mts +11 -6
  60. package/dist/base-primitives/element/ElementShape.mjs +10 -5
  61. package/dist/base-primitives/element/ElementTags.d.mts +6 -3
  62. package/dist/base-primitives/element/ElementTags.mjs +2 -4
  63. package/dist/base-primitives/index.d.mts +5 -5
  64. package/dist/base-primitives/memoEdge.d.mts +2 -6
  65. package/dist/base-primitives/memoEdge.mjs +1 -2
  66. package/dist/base-primitives/memoNode.d.mts +2 -6
  67. package/dist/components/EmptyBox.mjs +1 -2
  68. package/dist/components/ErrorFallback.d.mts +4 -3
  69. package/dist/components/ErrorFallback.mjs +61 -56
  70. package/dist/components/FloatingWindow.mjs +3 -4
  71. package/dist/components/GithubIcon.mjs +1 -2
  72. package/dist/components/Link.mjs +3 -4
  73. package/dist/components/Logo.d.mts +3 -5
  74. package/dist/components/Logo.mjs +28 -35
  75. package/dist/components/NavigationLink.mjs +1 -2
  76. package/dist/components/NavigationPanel.mjs +11 -11
  77. package/dist/components/PortalToContainer.d.mts +1 -3
  78. package/dist/components/PortalToContainer.mjs +1 -2
  79. package/dist/components/RootContainer.mjs +1 -2
  80. package/dist/components/SearchControl.css.mjs +1 -2
  81. package/dist/components/SearchControl.d.mts +1 -2
  82. package/dist/components/SearchControl.mjs +2 -3
  83. package/dist/components/ViewIcon.mjs +5 -6
  84. package/dist/components/ViewNotFound.mjs +1 -2
  85. package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
  86. package/dist/components/markdown/markdown-refs.mjs +145 -0
  87. package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
  88. package/dist/context/ComparingLayoutsContext.mjs +24 -0
  89. package/dist/context/CurrentViewModelProvider.mjs +1 -2
  90. package/dist/context/DiagramEventHandlers.mjs +3 -4
  91. package/dist/context/DiagramFeatures.d.mts +2 -3
  92. package/dist/context/DiagramFeatures.mjs +15 -9
  93. package/dist/context/EnsureMantine.mjs +1 -2
  94. package/dist/context/FramerMotionConfig.d.mts +1 -3
  95. package/dist/context/FramerMotionConfig.mjs +1 -2
  96. package/dist/context/IconRenderer.d.mts +1 -3
  97. package/dist/context/IconRenderer.mjs +14 -14
  98. package/dist/context/LikeC4ModelContext.d.mts +1 -2
  99. package/dist/context/LikeC4ModelContext.mjs +1 -2
  100. package/dist/context/LikeC4ProjectsContext.d.mts +1 -3
  101. package/dist/context/LikeC4ProjectsContext.mjs +1 -2
  102. package/dist/context/RootContainerContext.mjs +1 -2
  103. package/dist/context/TagStylesContext.d.mts +1 -2
  104. package/dist/context/TagStylesContext.mjs +7 -19
  105. package/dist/custom/builtins.d.mts +4 -1
  106. package/dist/custom/customNodes.d.mts +164 -7
  107. package/dist/custom/customNodes.mjs +387 -8
  108. package/dist/custom/index.d.mts +18 -30
  109. package/dist/custom/index.mjs +11 -19
  110. package/dist/custom/primitives.d.mts +3 -5
  111. package/dist/customization/CustomizationContext.d.mts +50 -0
  112. package/dist/customization/CustomizationContext.mjs +64 -0
  113. package/dist/customization/customizable.d.mts +32 -0
  114. package/dist/customization/customizable.mjs +75 -0
  115. package/dist/customization/customization-types.d.mts +40 -0
  116. package/dist/customization/customization-types.mjs +8 -0
  117. package/dist/customization/stableComponents.mjs +35 -0
  118. package/dist/editor/LikeC4EditorCallbacks.d.mts +1 -3
  119. package/dist/editor/LikeC4EditorCallbacks.mjs +1 -2
  120. package/dist/editor/LikeC4EditorProvider.d.mts +1 -3
  121. package/dist/editor/LikeC4EditorProvider.mjs +1 -2
  122. package/dist/editor/actor/actions.mjs +2 -3
  123. package/dist/editor/actor/hotkey.d.mts +1 -3
  124. package/dist/editor/actor/hotkey.mjs +1 -2
  125. package/dist/editor/actor/machine.d.mts +2 -4
  126. package/dist/editor/actor/machine.mjs +1 -2
  127. package/dist/editor/actor/setup.d.mts +1 -2
  128. package/dist/editor/actor/setup.mjs +1 -2
  129. package/dist/editor/actor/state.editor.mjs +2 -3
  130. package/dist/editor/actor/state.sync-queue.mjs +2 -3
  131. package/dist/editor/actor/types.d.mts +1 -3
  132. package/dist/editor/actor/types.mjs +1 -2
  133. package/dist/editor/applyChangesToManualLayout.mjs +1 -2
  134. package/dist/editor/index.d.mts +1 -1
  135. package/dist/editor/useEditorActorLogic.mjs +3 -4
  136. package/dist/hooks/safeContext.d.mts +16 -35
  137. package/dist/hooks/safeContext.mjs +1 -2
  138. package/dist/hooks/useCallbackRef.mjs +1 -2
  139. package/dist/hooks/useCurrentView.d.mts +1 -3
  140. package/dist/hooks/useCurrentView.mjs +1 -2
  141. package/dist/hooks/useCurrentViewModel.d.mts +0 -2
  142. package/dist/hooks/useCurrentViewModel.mjs +1 -2
  143. package/dist/hooks/useDiagram.d.mts +3 -12
  144. package/dist/hooks/useDiagram.mjs +11 -10
  145. package/dist/hooks/useDiagramCompareLayout.d.mts +2 -4
  146. package/dist/hooks/useDiagramCompareLayout.mjs +12 -21
  147. package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
  148. package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
  149. package/dist/hooks/useEdgeTracks.mjs +2 -3
  150. package/dist/hooks/useEditorActor.mjs +1 -2
  151. package/dist/hooks/useId.mjs +1 -2
  152. package/dist/hooks/useLikeC4ElementsTree.mjs +1 -2
  153. package/dist/hooks/useLikeC4Model.d.mts +0 -2
  154. package/dist/hooks/useLikeC4Model.mjs +1 -2
  155. package/dist/hooks/useLikeC4Project.d.mts +2 -4
  156. package/dist/hooks/useLikeC4Project.mjs +1 -2
  157. package/dist/hooks/useLikeC4Styles.d.mts +1 -3
  158. package/dist/hooks/useLikeC4Styles.mjs +1 -2
  159. package/dist/hooks/useMantinePortalProps.mjs +1 -2
  160. package/dist/hooks/useSetState.mjs +1 -2
  161. package/dist/hooks/useUpdateEffect.d.mts +0 -2
  162. package/dist/hooks/useUpdateEffect.mjs +1 -2
  163. package/dist/hooks/useXYFlow.d.mts +1 -3
  164. package/dist/hooks/useXYFlow.mjs +1 -2
  165. package/dist/index.d.mts +20 -18
  166. package/dist/index.mjs +20 -18
  167. package/dist/likec4diagram/DiagramUI.mjs +14 -11
  168. package/dist/likec4diagram/DiagramXYFlow.mjs +34 -34
  169. package/dist/likec4diagram/convert-to-xyflow.mjs +7 -3
  170. package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +4 -3
  171. package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +18 -14
  172. package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +3 -4
  173. package/dist/likec4diagram/custom/edges/useControlPoints.mjs +2 -3
  174. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +2 -3
  175. package/dist/likec4diagram/custom/index.mjs +4 -5
  176. package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +1 -2
  177. package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +2 -3
  178. package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +3 -4
  179. package/dist/likec4diagram/custom/nodes/ElementActions.mjs +4 -5
  180. package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -1
  181. package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +3 -4
  182. package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -1
  183. package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +4 -3
  184. package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +3 -5
  185. package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +1 -3
  186. package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +3 -4
  187. package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -1
  188. package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +1 -2
  189. package/dist/likec4diagram/custom/nodes/index.d.mts +4 -4
  190. package/dist/likec4diagram/custom/nodes/nodes.d.mts +3 -4
  191. package/dist/likec4diagram/custom/nodes/nodes.mjs +19 -21
  192. package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +1 -2
  193. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +1 -3
  194. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +1 -2
  195. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +1 -3
  196. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +4 -5
  197. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +1 -3
  198. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +4 -6
  199. package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +3 -4
  200. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +1 -2
  201. package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +1 -2
  202. package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +1 -2
  203. package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +29 -12
  204. package/dist/likec4diagram/relationship-popover/actor.mjs +1 -2
  205. package/dist/likec4diagram/relationship-popover/components.mjs +1 -2
  206. package/dist/likec4diagram/state/DiagramActorProvider.mjs +22 -34
  207. package/dist/likec4diagram/state/aligners.d.mts +1 -3
  208. package/dist/likec4diagram/state/aligners.mjs +1 -2
  209. package/dist/likec4diagram/state/assign.mjs +3 -4
  210. package/dist/likec4diagram/state/createViewChange.mjs +1 -2
  211. package/dist/likec4diagram/state/diagram-api.d.mts +33 -16
  212. package/dist/likec4diagram/state/diagram-api.mjs +55 -31
  213. package/dist/likec4diagram/state/hotkeyActor.d.mts +1 -3
  214. package/dist/likec4diagram/state/hotkeyActor.mjs +12 -6
  215. package/dist/likec4diagram/state/machine.actions.layout.mjs +2 -3
  216. package/dist/likec4diagram/state/machine.actions.mjs +81 -44
  217. package/dist/likec4diagram/state/machine.d.mts +107 -15
  218. package/dist/likec4diagram/state/machine.mjs +3 -4
  219. package/dist/likec4diagram/state/machine.setup.d.mts +14 -10
  220. package/dist/likec4diagram/state/machine.setup.mjs +55 -28
  221. package/dist/likec4diagram/state/machine.state.initializing.mjs +3 -4
  222. package/dist/likec4diagram/state/machine.state.navigating.mjs +3 -6
  223. package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
  224. package/dist/likec4diagram/state/machine.state.ready.focused.mjs +10 -7
  225. package/dist/likec4diagram/state/machine.state.ready.idle.mjs +10 -7
  226. package/dist/likec4diagram/state/machine.state.ready.mjs +8 -8
  227. package/dist/likec4diagram/state/machine.state.ready.printing.mjs +3 -4
  228. package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +5 -6
  229. package/dist/likec4diagram/state/mediaPrintActor.d.mts +1 -3
  230. package/dist/likec4diagram/state/mediaPrintActor.mjs +1 -2
  231. package/dist/likec4diagram/state/persistence.mjs +12 -5
  232. package/dist/likec4diagram/state/types.d.mts +1 -3
  233. package/dist/likec4diagram/state/utils.mjs +2 -3
  234. package/dist/likec4diagram/types.d.mts +1 -3
  235. package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +5 -7
  236. package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +1 -2
  237. package/dist/likec4diagram/ui/notation/NotationPanel.mjs +6 -7
  238. package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +2 -3
  239. package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +3 -4
  240. package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +4 -7
  241. package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +4 -5
  242. package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +4 -6
  243. package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +2 -3
  244. package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +1 -2
  245. package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +7 -8
  246. package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +3 -9
  247. package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +1 -2
  248. package/dist/likec4diagram/ui/sequence-outline/motion.mjs +1 -2
  249. package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +7 -8
  250. package/dist/likec4diagram/ui/sequence-outline/tree.mjs +1 -2
  251. package/dist/likec4diagram/ui/sequence-outline/types.mjs +1 -2
  252. package/dist/likec4diagram/useLayoutConstraints.mjs +5 -10
  253. package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
  254. package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +9 -2
  255. package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +1 -2
  256. package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +3 -6
  257. package/dist/likec4diagram/xyflow-props.mjs +25 -0
  258. package/dist/likec4diagram/xyflow-sequence/const.mjs +1 -2
  259. package/dist/likec4diagram/xyflow-sequence/layouter.mjs +2 -3
  260. package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +2 -3
  261. package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +2 -3
  262. package/dist/likec4diagram/xyflow-sequence/utils.mjs +1 -2
  263. package/dist/navigationpanel/ElementViewControls.mjs +6 -7
  264. package/dist/navigationpanel/NavigationPanel.mjs +38 -67
  265. package/dist/navigationpanel/NavigationPanelControls.mjs +35 -114
  266. package/dist/navigationpanel/NavigationPanelDropdown.mjs +37 -34
  267. package/dist/navigationpanel/_common.mjs +3 -4
  268. package/dist/navigationpanel/actor.actions.mjs +1 -2
  269. package/dist/navigationpanel/actor.d.mts +0 -2
  270. package/dist/navigationpanel/actor.mjs +2 -3
  271. package/dist/navigationpanel/actor.setup.d.mts +1 -3
  272. package/dist/navigationpanel/actor.setup.mjs +1 -2
  273. package/dist/navigationpanel/comparepanel/ComparePanel.mjs +160 -90
  274. package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +173 -142
  275. package/dist/{likec4diagram/ui → navigationpanel/comparepanel}/LayoutDriftFrame.mjs +6 -12
  276. package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +14 -19
  277. package/dist/navigationpanel/controls/LayoutWarning.mjs +3 -4
  278. package/dist/navigationpanel/controls/LogoButton.mjs +5 -23
  279. package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
  280. package/dist/navigationpanel/controls/NavigationButtons.mjs +3 -4
  281. package/dist/navigationpanel/controls/OpenSource.mjs +2 -3
  282. package/dist/navigationpanel/controls/SearchControl.mjs +2 -3
  283. package/dist/navigationpanel/controls/ToggleReadonly.mjs +36 -21
  284. package/dist/navigationpanel/controls/ViewDetailsButton.mjs +12 -15
  285. package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +46 -13
  286. package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +3 -4
  287. package/dist/navigationpanel/editorpanel/CenterCamera.mjs +2 -3
  288. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +3 -4
  289. package/dist/navigationpanel/editorpanel/EditorPanel.mjs +4 -4
  290. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +11 -13
  291. package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +2 -3
  292. package/dist/navigationpanel/editorpanel/_common.mjs +1 -2
  293. package/dist/navigationpanel/editorpanel/styles.mjs +1 -2
  294. package/dist/navigationpanel/hooks.mjs +1 -2
  295. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +5 -6
  296. package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +7 -9
  297. package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +1 -2
  298. package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +3 -4
  299. package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +44 -38
  300. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -2
  301. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -2
  302. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +1 -2
  303. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +1 -2
  304. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +1 -2
  305. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +1 -2
  306. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +1 -2
  307. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +1 -2
  308. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +1 -2
  309. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +1 -2
  310. package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
  311. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -2
  312. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -2
  313. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +1 -2
  314. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +1 -2
  315. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +1 -2
  316. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +1 -2
  317. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +1 -2
  318. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +1 -2
  319. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +1 -2
  320. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +1 -2
  321. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +1 -2
  322. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +1 -2
  323. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +1 -2
  324. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +1 -2
  325. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +1 -2
  326. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +1 -2
  327. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +1 -2
  328. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +1 -2
  329. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +1 -2
  330. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +1 -2
  331. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +1 -2
  332. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +1 -2
  333. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +1 -2
  334. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +1 -2
  335. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +1 -2
  336. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +1 -2
  337. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +1 -2
  338. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +1 -2
  339. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +1 -2
  340. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +1 -2
  341. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +1 -2
  342. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +1 -2
  343. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +1 -2
  344. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +1 -2
  345. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +1 -2
  346. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +1 -2
  347. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +1 -2
  348. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +1 -2
  349. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +1 -2
  350. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -2
  351. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +1 -2
  352. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +1 -2
  353. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +1 -2
  354. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +1 -2
  355. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +1 -2
  356. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +1 -2
  357. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +1 -2
  358. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -2
  359. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +1 -2
  360. package/dist/overlays/Overlays.mjs +4 -5
  361. package/dist/overlays/element-details/ElementDetails.mjs +2 -3
  362. package/dist/overlays/element-details/ElementDetailsCard.css.mjs +148 -102
  363. package/dist/overlays/element-details/ElementDetailsCard.mjs +503 -256
  364. package/dist/overlays/element-details/MetadataValue.mjs +115 -222
  365. package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
  366. package/dist/overlays/element-details/TabPanelDeployments.css.mjs +1 -2
  367. package/dist/overlays/element-details/TabPanelDeployments.mjs +5 -6
  368. package/dist/overlays/element-details/TabPanelRelationships.css.mjs +1 -2
  369. package/dist/overlays/element-details/TabPanelRelationships.mjs +6 -7
  370. package/dist/overlays/element-details/TabPanelStructure.css.mjs +1 -2
  371. package/dist/overlays/element-details/TabPanelStructure.mjs +3 -4
  372. package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
  373. package/dist/overlays/element-details/actor.d.mts +6 -7
  374. package/dist/overlays/element-details/actor.mjs +31 -15
  375. package/dist/overlays/element-details/actorContext.mjs +1 -2
  376. package/dist/overlays/element-details/subject.d.mts +12 -0
  377. package/dist/overlays/element-details/subject.mjs +15 -0
  378. package/dist/overlays/hooks.mjs +1 -2
  379. package/dist/overlays/overlay/Overlay.d.mts +1 -3
  380. package/dist/overlays/overlay/Overlay.mjs +4 -5
  381. package/dist/overlays/overlaysActor.d.mts +12 -5
  382. package/dist/overlays/overlaysActor.mjs +24 -6
  383. package/dist/overlays/relationship-details/RelationshipDetails.mjs +16 -8
  384. package/dist/overlays/relationship-details/SelectEdge.css.mjs +1 -2
  385. package/dist/overlays/relationship-details/SelectEdge.mjs +3 -4
  386. package/dist/overlays/relationship-details/_types.d.mts +6 -4
  387. package/dist/overlays/relationship-details/actor.d.mts +0 -2
  388. package/dist/overlays/relationship-details/actor.mjs +2 -3
  389. package/dist/overlays/relationship-details/compute.mjs +1 -2
  390. package/dist/overlays/relationship-details/custom/ElementActions.mjs +6 -7
  391. package/dist/overlays/relationship-details/custom/edgeTypes.mjs +8 -13
  392. package/dist/overlays/relationship-details/custom/nodeTypes.mjs +8 -6
  393. package/dist/overlays/relationship-details/hooks.mjs +1 -2
  394. package/dist/overlays/relationship-details/layout-to-xyflow.mjs +3 -3
  395. package/dist/overlays/relationship-details/layout.d.mts +1 -3
  396. package/dist/overlays/relationship-details/layout.mjs +39 -13
  397. package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +12 -13
  398. package/dist/overlays/relationships-browser/SelectElement.css.mjs +1 -2
  399. package/dist/overlays/relationships-browser/SelectElement.mjs +4 -5
  400. package/dist/overlays/relationships-browser/_types.d.mts +6 -4
  401. package/dist/overlays/relationships-browser/actor.d.mts +0 -2
  402. package/dist/overlays/relationships-browser/actor.mjs +4 -5
  403. package/dist/overlays/relationships-browser/const.mjs +1 -2
  404. package/dist/overlays/relationships-browser/custom/ElementActions.mjs +6 -7
  405. package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +1 -2
  406. package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +14 -17
  407. package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +12 -7
  408. package/dist/overlays/relationships-browser/hooks.mjs +1 -2
  409. package/dist/overlays/relationships-browser/layout.d.mts +1 -3
  410. package/dist/overlays/relationships-browser/layout.mjs +73 -24
  411. package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +2 -2
  412. package/dist/overlays/types.d.mts +5 -7
  413. package/dist/projects-overview/ProjectsOverview.d.mts +1 -3
  414. package/dist/projects-overview/ProjectsOverview.mjs +1 -2
  415. package/dist/projects-overview/ProjectsOverviewXY.d.mts +1 -3
  416. package/dist/projects-overview/ProjectsOverviewXY.mjs +3 -4
  417. package/dist/projects-overview/actor.mjs +1 -2
  418. package/dist/projects-overview/context.mjs +1 -2
  419. package/dist/projects-overview/custom/edgeTypes.mjs +2 -3
  420. package/dist/projects-overview/custom/nodeTypes.mjs +3 -4
  421. package/dist/projects-overview/hooks.mjs +1 -2
  422. package/dist/projects-overview/layouted-to-xyflow.mjs +1 -2
  423. package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +1 -2
  424. package/dist/projects-overview/persistence.mjs +1 -2
  425. package/dist/search/Search.d.mts +1 -3
  426. package/dist/search/Search.mjs +13 -12
  427. package/dist/search/SearchContext.d.mts +1 -3
  428. package/dist/search/SearchContext.mjs +1 -2
  429. package/dist/search/XStateSearchAdapter.mjs +1 -2
  430. package/dist/search/components/ElementsColumn.css.mjs +1 -2
  431. package/dist/search/components/ElementsColumn.mjs +31 -9
  432. package/dist/search/components/PickView.mjs +3 -4
  433. package/dist/search/components/SearchByTags.mjs +3 -4
  434. package/dist/search/components/SearchInput.mjs +3 -4
  435. package/dist/search/components/ViewsColum.mjs +20 -20
  436. package/dist/search/components/ViewsColumn.css.mjs +1 -2
  437. package/dist/search/components/_shared.css.mjs +1 -2
  438. package/dist/search/components/styles.css.mjs +1 -2
  439. package/dist/search/components/utils.mjs +32 -3
  440. package/dist/search/fuzzy.mjs +27 -0
  441. package/dist/search/hooks.mjs +1 -2
  442. package/dist/search/metadata-search.mjs +32 -0
  443. package/dist/search/searchActor.d.mts +1 -3
  444. package/dist/search/searchActor.mjs +1 -2
  445. package/dist/shadowroot/ShadowRoot.mjs +8 -7
  446. package/dist/styles-font2.mjs +1 -2
  447. package/dist/styles-min.css +1 -1
  448. package/dist/styles.css +1 -1
  449. package/dist/styles2.mjs +2 -3
  450. package/dist/utils/defineActors.d.mts +1 -3
  451. package/dist/utils/defineActors.mjs +1 -2
  452. package/dist/utils/edge-corners.mjs +2 -3
  453. package/dist/utils/edge-endpoints.mjs +1 -2
  454. package/dist/utils/edge-label.mjs +1 -2
  455. package/dist/utils/edge-path-through-label.mjs +51 -0
  456. package/dist/utils/edge-path.mjs +1 -2
  457. package/dist/utils/edge-tracks.mjs +1 -2
  458. package/dist/utils/filterProjects.d.mts +10 -0
  459. package/dist/utils/filterProjects.mjs +36 -0
  460. package/dist/utils/index.mjs +1 -0
  461. package/dist/utils/measure-edge-label.mjs +129 -0
  462. package/dist/utils/readableText.mjs +1 -2
  463. package/dist/utils/roundDpr.mjs +1 -2
  464. package/dist/utils/search-event.mjs +17 -0
  465. package/dist/utils/view-bounds.d.mts +1 -3
  466. package/dist/utils/view-bounds.mjs +1 -2
  467. package/dist/utils/view-routing.mjs +1 -2
  468. package/dist/utils/xyflow.mjs +2 -3
  469. package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
  470. package/dist/webcomponent/defineWebcomponent.mjs +93 -0
  471. package/package.json +29 -26
  472. package/panda.buildinfo.json +211 -208
  473. package/styles-min.css +1 -1
  474. package/styles.css +1 -1
  475. package/dist/base-primitives/memoNode.mjs +0 -23
  476. package/dist/context/DiagramEventHandlers.d.mts +0 -11
  477. package/dist/custom/hooks.d.mts +0 -17
  478. package/dist/hooks/useSetState.d.mts +0 -10
  479. package/dist/likec4diagram/custom/edges/edges.css.mjs +0 -50
  480. package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +0 -69
  481. package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +0 -56
  482. package/dist/navigationpanel/styles.css.mjs +0 -23
  483. package/src/styles-font.css +0 -114
  484. package/src/styles-min.css +0 -2
  485. package/src/styles-xyflow.css +0 -1
  486. package/src/styles.css +0 -3
@@ -1,7 +1,7 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconLayoutDashboard from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs";
3
- import { selectDiagramContext, useDiagram, useDiagramSelector } from "../../hooks/safeContext.mjs";
2
+ import IconLayoutDashboard from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs";
4
3
  import { useCurrentViewRouting } from "../../hooks/useCurrentView.mjs";
4
+ import { selectDiagramContext, useDiagram, useDiagramSelector } from "../../hooks/safeContext.mjs";
5
5
  import { useMantinePortalProps } from "../../hooks/useMantinePortalProps.mjs";
6
6
  import { PanelActionIcon } from "../_common.mjs";
7
7
  import { Tooltip as Tooltip$1 } from "./_common.mjs";
@@ -13,7 +13,7 @@ import { deepEqual } from "fast-equals";
13
13
  import { Box, Flex, FloatingIndicator, Popover, PopoverDropdown, PopoverTarget, Text, UnstyledButton } from "@mantine/core";
14
14
  import { clampUseMovePosition, useHover, useMergedRef, useMove, useUncontrolled } from "@mantine/hooks";
15
15
 
16
- //#region src/navigationpanel/editorpanel/ChangeAutoLayoutButton.tsx
16
+ // src/navigationpanel/editorpanel/ChangeAutoLayoutButton.tsx
17
17
  const selector = selectDiagramContext((state) => ({
18
18
  viewId: state.view.id,
19
19
  isManualLayout: state.view._layout === "manual",
@@ -245,5 +245,4 @@ const SpacingSliders = forwardRef(({ isVertical, nodeSep, rankSep, onChange }, _
245
245
  });
246
246
  });
247
247
 
248
- //#endregion
249
248
  export { ChangeAutoLayoutButton };
@@ -1,5 +1,6 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { useEnabledFeatures } from "../../context/DiagramFeatures.mjs";
3
+ import { useIsComparingLayouts } from "../../context/ComparingLayoutsContext.mjs";
3
4
  import { ApplySemanticLayout } from "./ApplySemanticLayout.mjs";
4
5
  import { CenterCamera } from "./CenterCamera.mjs";
5
6
  import { ChangeAutoLayoutButton } from "./ChangeAutoLayoutButton.mjs";
@@ -11,7 +12,7 @@ import { AnimatePresence } from "motion/react";
11
12
  import { vstack } from "@likec4/styles/patterns";
12
13
  import * as m$1 from "motion/react-m";
13
14
 
14
- //#region src/navigationpanel/editorpanel/EditorPanel.tsx
15
+ // src/navigationpanel/editorpanel/EditorPanel.tsx
15
16
  const variants = {
16
17
  hidden: {
17
18
  opacity: 0,
@@ -27,8 +28,8 @@ const variants = {
27
28
  }
28
29
  };
29
30
  function EditorPanel() {
30
- const { enableReadOnly, enableCompareWithLatest, enableAISemanticLayout } = useEnabledFeatures();
31
- const showAiSemanticLayoutButton = !enableCompareWithLatest && !enableReadOnly && enableAISemanticLayout;
31
+ const { enableReadOnly, enableAISemanticLayout } = useEnabledFeatures();
32
+ const showAiSemanticLayoutButton = !useIsComparingLayouts() && !enableReadOnly && enableAISemanticLayout;
32
33
  return /* @__PURE__ */ jsx(AnimatePresence, {
33
34
  propagate: true,
34
35
  children: !enableReadOnly && /* @__PURE__ */ jsx(m$1.div, {
@@ -60,5 +61,4 @@ function EditorPanel() {
60
61
  });
61
62
  }
62
63
 
63
- //#endregion
64
64
  export { EditorPanel };
@@ -1,13 +1,13 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconLayoutAlignBottom from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs";
3
- import IconLayoutAlignCenter from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs";
4
- import IconLayoutAlignLeft from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs";
5
- import IconLayoutAlignMiddle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs";
6
- import IconLayoutAlignRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs";
7
- import IconLayoutAlignTop from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs";
8
- import IconLayoutBoardSplit from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs";
9
- import IconLayoutCollage from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs";
10
- import IconRouteOff from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs";
2
+ import IconLayoutAlignBottom from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs";
3
+ import IconLayoutAlignCenter from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs";
4
+ import IconLayoutAlignLeft from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs";
5
+ import IconLayoutAlignMiddle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs";
6
+ import IconLayoutAlignRight from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs";
7
+ import IconLayoutAlignTop from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs";
8
+ import IconLayoutBoardSplit from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs";
9
+ import IconLayoutCollage from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs";
10
+ import IconRouteOff from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs";
11
11
  import { useDiagram } from "../../hooks/safeContext.mjs";
12
12
  import { useMantinePortalProps } from "../../hooks/useMantinePortalProps.mjs";
13
13
  import { PanelActionIcon } from "../_common.mjs";
@@ -15,12 +15,11 @@ import { Tooltip as Tooltip$1 } from "./_common.mjs";
15
15
  import { css } from "@likec4/styles/css";
16
16
  import { memo, useState } from "react";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
- import { Popover, PopoverDropdown, PopoverTarget, TooltipGroup } from "@mantine/core";
19
- import { useDisclosure } from "@mantine/hooks";
18
+ import { Popover, PopoverDropdown, PopoverTarget } from "@mantine/core";
20
19
  import { Box as Box$1 } from "@likec4/styles/jsx";
21
20
  import { hstack } from "@likec4/styles/patterns";
22
21
 
23
- //#region src/navigationpanel/editorpanel/ManualLayoutToolsButton.tsx
22
+ // src/navigationpanel/editorpanel/ManualLayoutToolsButton.tsx
24
23
  const Action = ({ label, icon, onClick }) => /* @__PURE__ */ jsx(Tooltip$1, {
25
24
  label,
26
25
  withinPortal: false,
@@ -140,5 +139,4 @@ const ManualLayoutToolsButton = memo(() => {
140
139
  });
141
140
  ManualLayoutToolsButton.displayName = "ManualLayoutToolsButton";
142
141
 
143
- //#endregion
144
142
  export { ManualLayoutToolsButton, manualLayoutTooltipProps };
@@ -1,11 +1,11 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconLockOpen2 from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs";
2
+ import IconLockOpen2 from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs";
3
3
  import { useDiagram } from "../../hooks/safeContext.mjs";
4
4
  import { PanelActionIcon } from "../_common.mjs";
5
5
  import { Tooltip } from "./_common.mjs";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
 
8
- //#region src/navigationpanel/editorpanel/ToggleReadonly.tsx
8
+ // src/navigationpanel/editorpanel/ToggleReadonly.tsx
9
9
  const ToggleReadonly = () => {
10
10
  const diagram = useDiagram();
11
11
  return /* @__PURE__ */ jsx(Tooltip, {
@@ -20,5 +20,4 @@ const ToggleReadonly = () => {
20
20
  });
21
21
  };
22
22
 
23
- //#endregion
24
23
  export { ToggleReadonly };
@@ -1,6 +1,6 @@
1
1
  import { Tooltip } from "@mantine/core";
2
2
 
3
- //#region src/navigationpanel/editorpanel/_common.tsx
3
+ // src/navigationpanel/editorpanel/_common.tsx
4
4
  const Tooltip$1 = Tooltip.withProps({
5
5
  color: "dark",
6
6
  fz: "xs",
@@ -12,5 +12,4 @@ const Tooltip$1 = Tooltip.withProps({
12
12
  position: "right"
13
13
  });
14
14
 
15
- //#endregion
16
15
  export { Tooltip$1 as Tooltip };
@@ -1,6 +1,6 @@
1
1
  import { css } from "@likec4/styles/css";
2
2
 
3
- //#region src/navigationpanel/editorpanel/styles.ts
3
+ // src/navigationpanel/editorpanel/styles.ts
4
4
  const navigationButtons = css({
5
5
  gap: "xxs",
6
6
  _empty: { display: "none" }
@@ -54,5 +54,4 @@ const spacingSliderThumb = css({
54
54
  transform: "translate(-50%, -50%)"
55
55
  });
56
56
 
57
- //#endregion
58
57
  export { autolayoutButton, autolayoutIndicator, spacingSliderBody, spacingSliderThumb };
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { createSafeContextForActor } from "../hooks/safeContext.mjs";
3
3
  import { useMemo } from "react";
4
4
 
5
- //#region src/navigationpanel/hooks.tsx
5
+ // src/navigationpanel/hooks.tsx
6
6
  const { ContextProvider: NavigationPanelActorContextProvider, selectContext: selectNavigationContext, selectSnapshot: selectNavigationSnapshot, useActorRef: useNavigationActorRef, useActorSelector: useNavigationActorSelector } = createSafeContextForActor("NavigationPanel");
7
7
  function useNavigationActor() {
8
8
  const actorRef = useNavigationActorRef();
@@ -28,5 +28,4 @@ function useNavigationActor() {
28
28
  }), [actorRef]);
29
29
  }
30
30
 
31
- //#endregion
32
31
  export { NavigationPanelActorContextProvider, selectNavigationContext, useNavigationActor, useNavigationActorRef, useNavigationActorSelector };
@@ -1,10 +1,10 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconPlayerSkipBackFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs";
3
- import IconPlayerSkipForwardFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs";
4
- import IconPlayerStopFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs";
2
+ import IconPlayerSkipBackFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs";
3
+ import IconPlayerSkipForwardFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs";
4
+ import IconPlayerStopFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs";
5
5
  import { useDiagram } from "../../hooks/safeContext.mjs";
6
- import { useDiagramContext } from "../../hooks/useDiagram.mjs";
7
6
  import { useMantinePortalProps } from "../../hooks/useMantinePortalProps.mjs";
7
+ import { useDiagramContext } from "../../hooks/useDiagram.mjs";
8
8
  import { TriggerWalkthroughButton } from "./DynamicViewControls.mjs";
9
9
  import { css } from "@likec4/styles/css";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -14,7 +14,7 @@ import { AnimatePresence } from "motion/react";
14
14
  import { Box as Box$1 } from "@likec4/styles/jsx";
15
15
  import * as m$1 from "motion/react-m";
16
16
 
17
- //#region src/navigationpanel/walkthrough/ActiveWalkthroughControls.tsx
17
+ // src/navigationpanel/walkthrough/ActiveWalkthroughControls.tsx
18
18
  const PrevNextButton = Button.withProps({
19
19
  component: m$1.button,
20
20
  layout: "position",
@@ -113,5 +113,4 @@ function ActiveWalkthroughControls() {
113
113
  });
114
114
  }
115
115
 
116
- //#endregion
117
116
  export { ActiveWalkthroughControls };
@@ -1,6 +1,6 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconPlayerPlayFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs";
3
- import { useEnabledFeatures } from "../../context/DiagramFeatures.mjs";
2
+ import IconPlayerPlayFilled from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs";
3
+ import { useIsComparingLayouts } from "../../context/ComparingLayoutsContext.mjs";
4
4
  import { useDiagram } from "../../hooks/safeContext.mjs";
5
5
  import { Tooltip as Tooltip$1 } from "../_common.mjs";
6
6
  import { useNavigationActor } from "../hooks.mjs";
@@ -8,12 +8,11 @@ import { DynamicViewModeSwitcher } from "./DynamicViewModeSwitcher.mjs";
8
8
  import { css } from "@likec4/styles/css";
9
9
  import { forwardRef } from "react";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
- import { invariant } from "@likec4/core";
12
11
  import { Button } from "@mantine/core";
13
- import { AnimatePresence } from "motion/react";
12
+ import "motion/react";
14
13
  import * as m$1 from "motion/react-m";
15
14
 
16
- //#region src/navigationpanel/walkthrough/DynamicViewControls.tsx
15
+ // src/navigationpanel/walkthrough/DynamicViewControls.tsx
17
16
  const TriggerWalkthroughButton = forwardRef((props, ref) => /* @__PURE__ */ jsx(Button, {
18
17
  variant: "filled",
19
18
  size: "xs",
@@ -27,12 +26,12 @@ const TriggerWalkthroughButton = forwardRef((props, ref) => /* @__PURE__ */ jsx(
27
26
  className: css({ flexShrink: 0 })
28
27
  }));
29
28
  function StartWalkthroughButton() {
30
- const { enableCompareWithLatest } = useEnabledFeatures();
29
+ const isComparing = useIsComparingLayouts();
31
30
  const diagram = useDiagram();
32
31
  const actor = useNavigationActor();
33
32
  let tooltipLabel = "Start Dynamic View Walkthrough";
34
33
  switch (true) {
35
- case enableCompareWithLatest: tooltipLabel = "Walkthrough not available when Compare is active";
34
+ case isComparing: tooltipLabel = "Walkthrough not available when Compare is active";
36
35
  }
37
36
  return /* @__PURE__ */ jsx(Tooltip$1, {
38
37
  label: tooltipLabel,
@@ -58,7 +57,7 @@ function StartWalkthroughButton() {
58
57
  },
59
58
  size: "compact-xs",
60
59
  h: 26,
61
- disabled: enableCompareWithLatest,
60
+ disabled: isComparing,
62
61
  classNames: {
63
62
  label: css({ display: {
64
63
  base: "none",
@@ -78,5 +77,4 @@ function DynamicViewControls() {
78
77
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DynamicViewModeSwitcher, {}), /* @__PURE__ */ jsx(StartWalkthroughButton, {})] });
79
78
  }
80
79
 
81
- //#endregion
82
80
  export { DynamicViewControls, StartWalkthroughButton, TriggerWalkthroughButton };
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
6
6
  import { SegmentedControl } from "@mantine/core";
7
7
  import { m } from "motion/react";
8
8
 
9
- //#region src/navigationpanel/walkthrough/DynamicViewModeSwitcher.tsx
9
+ // src/navigationpanel/walkthrough/DynamicViewModeSwitcher.tsx
10
10
  const dynamicViewModes = [{
11
11
  value: "diagram",
12
12
  label: "Diagram"
@@ -47,5 +47,4 @@ function DynamicViewModeSwitcher() {
47
47
  });
48
48
  }
49
49
 
50
- //#endregion
51
50
  export { DynamicViewModeSwitcher };
@@ -1,6 +1,6 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
+ import { MarkdownWithRefs } from "../../components/markdown/MarkdownWithRefs.mjs";
2
3
  import { selectDiagramContext, useDiagramSelector } from "../../hooks/safeContext.mjs";
3
- import { Markdown } from "../../base-primitives/Markdown.mjs";
4
4
  import { memo } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { isNonNull, isTruthy } from "remeda";
@@ -10,7 +10,7 @@ import { AnimatePresence, m } from "motion/react";
10
10
  import { styled } from "@likec4/styles/jsx";
11
11
  import { vstack } from "@likec4/styles/patterns";
12
12
 
13
- //#region src/navigationpanel/walkthrough/WalkthroughPanel.tsx
13
+ // src/navigationpanel/walkthrough/WalkthroughPanel.tsx
14
14
  const SectionHeader = styled("div", { base: {
15
15
  fontSize: "xs",
16
16
  color: "text.dimmed",
@@ -68,7 +68,7 @@ const WalkthroughPanel = memo(() => {
68
68
  children: /* @__PURE__ */ jsxs(ScrollAreaAutosize, {
69
69
  type: "scroll",
70
70
  overscrollBehavior: "contain",
71
- children: [/* @__PURE__ */ jsx(SectionHeader, { children: "Notes" }), /* @__PURE__ */ jsx(Markdown, {
71
+ children: [/* @__PURE__ */ jsx(SectionHeader, { children: "Notes" }), /* @__PURE__ */ jsx(MarkdownWithRefs, {
72
72
  value: notes,
73
73
  fontSize: "sm",
74
74
  emptyText: "No description"
@@ -77,5 +77,4 @@ const WalkthroughPanel = memo(() => {
77
77
  }) });
78
78
  });
79
79
 
80
- //#endregion
81
80
  export { WalkthroughPanel };
@@ -1,19 +1,18 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconChevronDown from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs";
3
- import IconFileSymlink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs";
4
- import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
5
- import { useCallbackRef as useCallbackRef$1 } from "../../hooks/useCallbackRef.mjs";
6
- import { useUpdateEffect as useUpdateEffect$1 } from "../../hooks/useUpdateEffect.mjs";
7
- import { stopPropagation } from "../../utils/xyflow.mjs";
2
+ import IconChevronDown from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs";
3
+ import IconFileSymlink from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs";
4
+ import IconInfoCircle from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
5
+ import { Link } from "../../components/Link.mjs";
6
+ import { MarkdownWithRefs } from "../../components/markdown/MarkdownWithRefs.mjs";
7
+ import { ViewIcon } from "../../components/ViewIcon.mjs";
8
8
  import { IfEnabled, useEnabledFeatures } from "../../context/DiagramFeatures.mjs";
9
- import { useDiagram } from "../../hooks/safeContext.mjs";
10
9
  import { useCurrentViewModel } from "../../hooks/useCurrentViewModel.mjs";
10
+ import { useUpdateEffect as useUpdateEffect$1 } from "../../hooks/useUpdateEffect.mjs";
11
+ import { useCallbackRef as useCallbackRef$1 } from "../../hooks/useCallbackRef.mjs";
12
+ import { useDiagram } from "../../hooks/safeContext.mjs";
11
13
  import { useDiagramCompareLayout } from "../../hooks/useDiagramCompareLayout.mjs";
14
+ import { stopPropagation } from "../../utils/xyflow.mjs";
12
15
  import { PanelActionIcon } from "../_common.mjs";
13
- import { Markdown } from "../../base-primitives/Markdown.mjs";
14
- import { EmptyBox } from "../../components/EmptyBox.mjs";
15
- import { Link } from "../../components/Link.mjs";
16
- import { ViewIcon } from "../../components/ViewIcon.mjs";
17
16
  import { css, cx } from "@likec4/styles/css";
18
17
  import { useEffect, useEffectEvent, useRef } from "react";
19
18
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -23,14 +22,18 @@ import { useToggle, useUncontrolled } from "@mantine/hooks";
23
22
  import "@likec4/core/types";
24
23
  import { Box as Box$1, HStack, Txt, VStack, styled } from "@likec4/styles/jsx";
25
24
 
26
- //#region src/navigationpanel/windows/ViewDetailsWindow.tsx
25
+ // src/navigationpanel/windows/ViewDetailsWindow.tsx
27
26
  const SectionHeader = styled("div", { base: {
28
- fontSize: "xs",
29
- color: "text.non-essential",
30
- fontWeight: "medium",
31
- userSelect: "none",
32
- lineHeight: "snug"
27
+ textStyle: "fieldLabel",
28
+ userSelect: "none"
33
29
  } });
30
+ const dataListClassNames = {
31
+ item: css({ alignItems: "center" }),
32
+ itemLabel: css({
33
+ textStyle: "fieldLabel",
34
+ userSelect: "none"
35
+ })
36
+ };
34
37
  function ViewDetailsWindow() {
35
38
  const viewModel = useCurrentViewModel();
36
39
  const diagram = useDiagram();
@@ -115,29 +118,22 @@ function ViewDetailsWindow() {
115
118
  size: "xs",
116
119
  gap: "sm",
117
120
  orientation: "horizontal",
118
- labelWidth: 50,
121
+ labelWidth: 56,
122
+ classNames: dataListClassNames,
119
123
  children: [
120
124
  viewModel.hasManualLayout && /* @__PURE__ */ jsxs(DataList.Item, { children: [/* @__PURE__ */ jsx(DataList.ItemLabel, { children: "Layout" }), /* @__PURE__ */ jsx(DataList.ItemValue, { children: /* @__PURE__ */ jsx(ManualLayoutState, {}) })] }),
121
- alltags.length > 0 && /* @__PURE__ */ jsxs(DataList.Item, { children: [/* @__PURE__ */ jsx(DataList.ItemLabel, { children: "Tags" }), /* @__PURE__ */ jsxs(DataList.ItemValue, { children: [(tags.length > 0 || !enableReadOnly) && /* @__PURE__ */ jsx(EditableTags, {
125
+ alltags.length > 0 && (tags.length > 0 || !enableReadOnly) && /* @__PURE__ */ jsxs(DataList.Item, { children: [/* @__PURE__ */ jsx(DataList.ItemLabel, { children: "Tags" }), /* @__PURE__ */ jsx(DataList.ItemValue, { children: /* @__PURE__ */ jsx(EditableTags, {
122
126
  alltags,
123
127
  tags,
124
128
  readOnly: enableReadOnly,
125
129
  onChange: changeTags
126
- }), tags.length === 0 && enableReadOnly && /* @__PURE__ */ jsx(Txt, {
127
- size: "xs",
128
- color: "text.non-essential",
129
- children: "No tags"
130
- })] })] }),
131
- /* @__PURE__ */ jsxs(DataList.Item, { children: [/* @__PURE__ */ jsx(DataList.ItemLabel, { children: "Links" }), /* @__PURE__ */ jsx(DataList.ItemValue, {
130
+ }) })] }),
131
+ links.length > 0 && /* @__PURE__ */ jsxs(DataList.Item, { children: [/* @__PURE__ */ jsx(DataList.ItemLabel, { children: "Links" }), /* @__PURE__ */ jsx(DataList.ItemValue, {
132
132
  className: "nodrag",
133
- children: /* @__PURE__ */ jsxs(HStack, {
133
+ children: /* @__PURE__ */ jsx(HStack, {
134
134
  gap: "xxs",
135
135
  flexWrap: "wrap",
136
- children: [links.map((link, i) => /* @__PURE__ */ jsx(Link, { value: link }, `${i}-${link.url}`)), links.length === 0 && /* @__PURE__ */ jsx(Txt, {
137
- size: "xs",
138
- color: "text.non-essential",
139
- children: "No links"
140
- })]
136
+ children: links.map((link, i) => /* @__PURE__ */ jsx(Link, { value: link }, `${i}-${link.url}`))
141
137
  })
142
138
  })] })
143
139
  ]
@@ -150,9 +146,10 @@ function ViewDetailsWindow() {
150
146
  })
151
147
  ]
152
148
  }),
153
- description.isEmpty && /* @__PURE__ */ jsx(EmptyBox, {
154
- flex: "1",
155
- m: "1",
149
+ description.isEmpty && /* @__PURE__ */ jsx(Txt, {
150
+ px: "1",
151
+ size: "sm",
152
+ color: "text.non-essential",
156
153
  children: "No description"
157
154
  }),
158
155
  description.nonEmpty && /* @__PURE__ */ jsx(ScrollArea, {
@@ -161,7 +158,7 @@ function ViewDetailsWindow() {
161
158
  overscrollBehavior: "contain",
162
159
  children: /* @__PURE__ */ jsx(Box$1, {
163
160
  px: "1",
164
- children: /* @__PURE__ */ jsx(Markdown, { value: description })
161
+ children: /* @__PURE__ */ jsx(MarkdownWithRefs, { value: description })
165
162
  })
166
163
  })
167
164
  ] });
@@ -330,7 +327,7 @@ function ManualLayoutState() {
330
327
  resetProcessing();
331
328
  }, 100);
332
329
  });
333
- return /* @__PURE__ */ jsxs(Menu, {
330
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Menu, {
334
331
  withinPortal: false,
335
332
  floatingStrategy: "absolute",
336
333
  position: "bottom-start",
@@ -376,8 +373,17 @@ function ManualLayoutState() {
376
373
  }),
377
374
  children: "Reset layout"
378
375
  }) })]
379
- });
376
+ }), ctx.isEnabled && ctx.state !== "comparing" && /* @__PURE__ */ jsx(Button, {
377
+ size: "compact-xs",
378
+ variant: "default",
379
+ ml: "sm",
380
+ fz: "xxs",
381
+ onClick: (e) => {
382
+ e.stopPropagation();
383
+ ops.toggleCompare("on");
384
+ },
385
+ children: "Compare"
386
+ })] });
380
387
  }
381
388
 
382
- //#endregion
383
389
  export { ViewDetailsWindow };
@@ -2,7 +2,7 @@ import { __name } from "../../../../../../../../_virtual/_rolldown/runtime.mjs";
2
2
  import defaultAttributes from "./defaultAttributes.mjs";
3
3
  import { createElement, forwardRef } from "react";
4
4
 
5
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs
5
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs
6
6
  /**
7
7
  * @license @tabler/icons-react v3.49.0 - MIT
8
8
  *
@@ -34,5 +34,4 @@ const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
34
34
  return Component;
35
35
  };
36
36
 
37
- //#endregion
38
37
  export { createReactComponent as default };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs
1
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs
2
2
  /**
3
3
  * @license @tabler/icons-react v3.49.0 - MIT
4
4
  *
@@ -27,5 +27,4 @@ var defaultAttributes = {
27
27
  }
28
28
  };
29
29
 
30
- //#endregion
31
30
  export { defaultAttributes as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -23,5 +23,4 @@ const __iconNode = [
23
23
  ];
24
24
  const IconAlertTriangle = createReactComponent("outline", "alert-triangle", "AlertTriangle", __iconNode);
25
25
 
26
- //#endregion
27
26
  export { __iconNode, IconAlertTriangle as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -16,5 +16,4 @@ const __iconNode = [["path", {
16
16
  }]];
17
17
  const IconArrowDownRight = createReactComponent("outline", "arrow-down-right", "ArrowDownRight", __iconNode);
18
18
 
19
- //#endregion
20
19
  export { __iconNode, IconArrowDownRight as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -27,5 +27,4 @@ const __iconNode = [
27
27
  ];
28
28
  const IconArrowFork = createReactComponent("outline", "arrow-fork", "ArrowFork", __iconNode);
29
29
 
30
- //#endregion
31
30
  export { __iconNode, IconArrowFork as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -23,5 +23,4 @@ const __iconNode = [
23
23
  ];
24
24
  const IconArrowGuide = createReactComponent("outline", "arrow-guide", "ArrowGuide", __iconNode);
25
25
 
26
- //#endregion
27
26
  export { __iconNode, IconArrowGuide as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -23,5 +23,4 @@ const __iconNode = [
23
23
  ];
24
24
  const IconArrowLeft = createReactComponent("outline", "arrow-left", "ArrowLeft", __iconNode);
25
25
 
26
- //#endregion
27
26
  export { __iconNode, IconArrowLeft as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -23,5 +23,4 @@ const __iconNode = [
23
23
  ];
24
24
  const IconArrowRight = createReactComponent("outline", "arrow-right", "ArrowRight", __iconNode);
25
25
 
26
- //#endregion
27
26
  export { __iconNode, IconArrowRight as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -13,5 +13,4 @@ const __iconNode = [["path", {
13
13
  }]];
14
14
  const IconBolt = createReactComponent("outline", "bolt", "Bolt", __iconNode);
15
15
 
16
- //#endregion
17
16
  export { __iconNode, IconBolt as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -23,5 +23,4 @@ const __iconNode = [
23
23
  ];
24
24
  const IconBrowser = createReactComponent("outline", "browser", "Browser", __iconNode);
25
25
 
26
- //#endregion
27
26
  export { __iconNode, IconBrowser as default };
@@ -0,0 +1,16 @@
1
+ import createReactComponent from "../createReactComponent.mjs";
2
+
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs
4
+ /**
5
+ * @license @tabler/icons-react v3.49.0 - MIT
6
+ *
7
+ * This source code is licensed under the MIT license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const __iconNode = [["path", {
11
+ "d": "M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z",
12
+ "key": "svg-0"
13
+ }]];
14
+ const IconCaretRightFilled = createReactComponent("filled", "caret-right-filled", "CaretRightFilled", __iconNode);
15
+
16
+ export { __iconNode, IconCaretRightFilled as default };
@@ -1,6 +1,6 @@
1
1
  import createReactComponent from "../createReactComponent.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs
3
+ // ../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs
4
4
  /**
5
5
  * @license @tabler/icons-react v3.49.0 - MIT
6
6
  *
@@ -13,5 +13,4 @@ const __iconNode = [["path", {
13
13
  }]];
14
14
  const IconCheck = createReactComponent("outline", "check", "Check", __iconNode);
15
15
 
16
- //#endregion
17
16
  export { __iconNode, IconCheck as default };