@likec4/diagram 1.26.2 → 1.27.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 (482) hide show
  1. package/README.md +1 -1
  2. package/bundle/index.js +48891 -0
  3. package/dist/LikeC4CustomColors.js +27 -23
  4. package/dist/LikeC4Diagram.d.ts +1 -1
  5. package/dist/LikeC4Diagram.js +37 -36
  6. package/dist/LikeC4Diagram.props.d.ts +6 -0
  7. package/dist/LikeC4ModelProvider.js +6 -6
  8. package/dist/StaticLikeC4Diagram.js +5 -5
  9. package/dist/_virtual/_commonjsHelpers.js +5 -0
  10. package/dist/_virtual/default-map.js +7 -0
  11. package/dist/base/Background.js +6 -6
  12. package/dist/base/BaseXYFlow.d.ts +1 -1
  13. package/dist/base/BaseXYFlow.js +75 -46
  14. package/dist/base/const.js +2 -5
  15. package/dist/base/primitives/NodeHandles.js +5 -5
  16. package/dist/base/primitives/compound/CompoundActionButton.js +60 -33
  17. package/dist/base/primitives/compound/CompoundDetailsButton.js +66 -35
  18. package/dist/base/primitives/compound/CompoundNodeContainer.css.d.ts +35 -7
  19. package/dist/base/primitives/compound/CompoundNodeContainer.css.js +131 -12
  20. package/dist/base/primitives/compound/CompoundNodeContainer.d.ts +4 -20
  21. package/dist/base/primitives/compound/CompoundNodeContainer.js +99 -97
  22. package/dist/base/primitives/compound/CompoundTitle.d.ts +1 -1
  23. package/dist/base/primitives/compound/CompoundTitle.js +74 -12
  24. package/dist/base/primitives/compound/actionbtns.css.d.ts +11 -0
  25. package/dist/base/primitives/compound/actionbtns.css.js +32 -0
  26. package/dist/base/primitives/customEdge.d.ts +5 -5
  27. package/dist/base/primitives/customEdge.js +6 -7
  28. package/dist/base/primitives/customNode.js +5 -6
  29. package/dist/base/primitives/edge/EdgeActionButton.js +10 -12
  30. package/dist/base/primitives/edge/EdgeContainer.d.ts +1 -1
  31. package/dist/base/primitives/edge/EdgeContainer.js +21 -15
  32. package/dist/base/primitives/edge/EdgeLabel.css.d.ts +24 -10
  33. package/dist/base/primitives/edge/EdgeLabel.css.js +133 -20
  34. package/dist/base/primitives/edge/EdgeLabel.d.ts +4 -44
  35. package/dist/base/primitives/edge/EdgeLabel.js +35 -88
  36. package/dist/base/primitives/edge/EdgeLabelContainer.d.ts +18 -0
  37. package/dist/base/primitives/edge/EdgeLabelContainer.js +91 -0
  38. package/dist/base/primitives/edge/EdgeMarkers.js +5 -6
  39. package/dist/base/primitives/edge/EdgePath.d.ts +7 -7
  40. package/dist/base/primitives/edge/EdgePath.js +17 -29
  41. package/dist/base/primitives/edge/edge.css.d.ts +2 -2
  42. package/dist/base/primitives/edge/edge.css.js +123 -12
  43. package/dist/base/primitives/edge/xyvars.d.ts +24 -0
  44. package/dist/base/primitives/element/ElementActionButtons.js +35 -17
  45. package/dist/base/primitives/element/ElementDetailsButton.js +34 -16
  46. package/dist/base/primitives/element/ElementNodeContainer.css.d.ts +0 -1
  47. package/dist/base/primitives/element/ElementNodeContainer.css.js +50 -5
  48. package/dist/base/primitives/element/ElementNodeContainer.d.ts +1 -1
  49. package/dist/base/primitives/element/ElementNodeContainer.js +28 -19
  50. package/dist/base/primitives/element/ElementShape.css.js +118 -16
  51. package/dist/base/primitives/element/ElementShape.js +8 -10
  52. package/dist/base/primitives/element/ElementTitle.css.d.ts +33 -8
  53. package/dist/base/primitives/element/ElementTitle.css.js +195 -19
  54. package/dist/base/primitives/element/ElementTitle.js +25 -24
  55. package/dist/base/primitives/index.d.ts +1 -0
  56. package/dist/base/types.js +4 -4
  57. package/dist/base/updateEdges.js +5 -5
  58. package/dist/base/updateNodes.js +6 -6
  59. package/dist/bundle/LikeC4ModelProvider.d.ts +9 -0
  60. package/dist/bundle/LikeC4ModelProvider.js +5 -0
  61. package/dist/bundle/LikeC4View.d.ts +2 -0
  62. package/dist/bundle/LikeC4View.js +176 -0
  63. package/dist/bundle/LikeC4View.props.d.ts +207 -0
  64. package/dist/bundle/ReactLikeC4.d.ts +36 -0
  65. package/dist/bundle/ReactLikeC4.js +90 -0
  66. package/dist/bundle/ShadowRoot.d.ts +12 -0
  67. package/dist/bundle/ShadowRoot.js +52 -0
  68. package/dist/bundle/ViewNotFound.d.ts +5 -0
  69. package/dist/bundle/ViewNotFound.js +30 -0
  70. package/dist/bundle/font.css.js +3 -0
  71. package/dist/bundle/index.d.ts +5 -0
  72. package/dist/bundle/index.js +4 -0
  73. package/dist/bundle/styles.css.d.ts +10 -0
  74. package/dist/bundle/styles.css.js +145 -0
  75. package/dist/components/Link.js +61 -12
  76. package/dist/components/SearchControl.css.js +72 -9
  77. package/dist/components/SearchControl.js +11 -11
  78. package/dist/context/ControlsCustomLayout.js +5 -6
  79. package/dist/context/DiagramEventHandlers.js +8 -13
  80. package/dist/context/DiagramFeatures.js +7 -12
  81. package/dist/context/EnsureMantine.js +6 -6
  82. package/dist/context/FramerMotionConfig.js +8 -9
  83. package/dist/context/IconRenderer.js +7 -9
  84. package/dist/context/ReduceGraphics.d.ts +4 -5
  85. package/dist/context/ReduceGraphics.js +11 -43
  86. package/dist/context/RootContainer.js +23 -10
  87. package/dist/hooks/safeContext.js +5 -7
  88. package/dist/hooks/useCurrentViewId.js +6 -6
  89. package/dist/hooks/useDiagram.d.ts +5020 -4373
  90. package/dist/hooks/useDiagram.js +13 -17
  91. package/dist/hooks/useMantinePortalProps.js +5 -5
  92. package/dist/hooks/useOverlaysActor.d.ts +2 -0
  93. package/dist/hooks/useOverlaysActor.js +10 -0
  94. package/dist/hooks/useReducedGraphics.d.ts +1 -1
  95. package/dist/hooks/useSetState.js +5 -5
  96. package/dist/hooks/useUpdateEffect.js +6 -7
  97. package/dist/hooks/useXYFlow.d.ts +28 -28
  98. package/dist/hooks/useXYFlow.js +7 -11
  99. package/dist/index.d.ts +0 -1
  100. package/dist/index.js +10 -26
  101. package/dist/likec4diagram/DiagramUI.js +13 -13
  102. package/dist/likec4diagram/DiagramXYFlow.d.ts +1 -4
  103. package/dist/likec4diagram/DiagramXYFlow.js +81 -36
  104. package/dist/likec4diagram/custom/edges/NotePopover.css.js +21 -7
  105. package/dist/likec4diagram/custom/edges/NotePopover.js +18 -27
  106. package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +9 -9
  107. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +99 -83
  108. package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.css.d.ts +1 -0
  109. package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.css.js +38 -11
  110. package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.d.ts +3 -3
  111. package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.js +28 -30
  112. package/dist/likec4diagram/custom/edges/edges.css.js +44 -9
  113. package/dist/likec4diagram/custom/edges/utils.js +6 -7
  114. package/dist/likec4diagram/custom/index.d.ts +9 -9
  115. package/dist/likec4diagram/custom/index.js +5 -6
  116. package/dist/likec4diagram/custom/nodes/CompoundActions.js +7 -7
  117. package/dist/likec4diagram/custom/nodes/ElementActions.js +8 -9
  118. package/dist/likec4diagram/custom/nodes/nodeTypes.js +22 -26
  119. package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +10 -13
  120. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +15 -16
  121. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +12 -13
  122. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.ts +1 -1
  123. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +17 -14
  124. package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +15 -20
  125. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +10 -5
  126. package/dist/likec4diagram/ui/controls/ChangeAutoLayoutButton.js +15 -15
  127. package/dist/likec4diagram/ui/controls/Controls.js +24 -24
  128. package/dist/likec4diagram/ui/controls/LayoutDriftNotification.js +8 -9
  129. package/dist/likec4diagram/ui/controls/ManualLayoutToolsButton.js +8 -8
  130. package/dist/likec4diagram/ui/controls/NavigationButtons.js +8 -8
  131. package/dist/likec4diagram/ui/controls/ToggleReadonly.js +7 -7
  132. package/dist/likec4diagram/ui/controls/_shared.js +4 -5
  133. package/dist/likec4diagram/ui/controls/styles.css.js +79 -17
  134. package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.css.js +49 -9
  135. package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.js +12 -12
  136. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +85 -15
  137. package/dist/likec4diagram/ui/notation/NotationPanel.js +32 -32
  138. package/dist/likec4diagram/ui/search/ElementsColumn.css.d.ts +0 -5
  139. package/dist/likec4diagram/ui/search/ElementsColumn.css.js +70 -30
  140. package/dist/likec4diagram/ui/search/ElementsColumn.js +40 -33
  141. package/dist/likec4diagram/ui/search/LikeC4Search.css.js +87 -20
  142. package/dist/likec4diagram/ui/search/LikeC4Search.js +18 -17
  143. package/dist/likec4diagram/ui/search/SearchInput.js +22 -24
  144. package/dist/likec4diagram/ui/search/ViewsColum.js +22 -22
  145. package/dist/likec4diagram/ui/search/ViewsColumn.css.d.ts +0 -2
  146. package/dist/likec4diagram/ui/search/ViewsColumn.css.js +29 -14
  147. package/dist/likec4diagram/ui/search/_shared.css.d.ts +3 -17
  148. package/dist/likec4diagram/ui/search/_shared.css.js +171 -0
  149. package/dist/likec4diagram/ui/search/state.js +12 -22
  150. package/dist/likec4diagram/ui/search/utils.js +2 -5
  151. package/dist/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.css.js +66 -10
  152. package/dist/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.js +18 -27
  153. package/dist/likec4diagram/useLayoutConstraints.js +39 -46
  154. package/dist/likec4diagram/useViewToNodesEdges.js +12 -13
  155. package/dist/likec4model/LikeC4ModelContext.js +4 -4
  156. package/dist/likec4model/useLikeC4ElementsTree.js +6 -7
  157. package/dist/likec4model/useLikeC4Model.js +6 -6
  158. package/dist/node_modules/.pnpm/mnemonist@0.40.3_patch_hash_5c12abb43fcff6fd81e53021b89075d53249640d165a2556cc1e58d71201a13a/node_modules/mnemonist/default-map.js +172 -0
  159. package/dist/overlays/Overlays.js +21 -21
  160. package/dist/overlays/element-details/ElementDetails.js +9 -9
  161. package/dist/overlays/element-details/ElementDetailsCard.css.d.ts +2 -3
  162. package/dist/overlays/element-details/ElementDetailsCard.css.js +237 -35
  163. package/dist/overlays/element-details/ElementDetailsCard.js +44 -46
  164. package/dist/overlays/element-details/TabPanelDeployments.css.js +62 -11
  165. package/dist/overlays/element-details/TabPanelDeployments.js +11 -11
  166. package/dist/overlays/element-details/TabPanelRelationships.css.js +99 -9
  167. package/dist/overlays/element-details/TabPanelRelationships.js +41 -14
  168. package/dist/overlays/element-details/TabPanelStructure.css.js +36 -7
  169. package/dist/overlays/element-details/TabPanelStructure.js +8 -9
  170. package/dist/overlays/element-details/actor.d.ts +21892 -22686
  171. package/dist/overlays/element-details/actor.js +18 -19
  172. package/dist/overlays/element-details/actorContext.js +4 -5
  173. package/dist/overlays/overlay/Overlay.css.d.ts +2 -2
  174. package/dist/overlays/overlay/Overlay.css.js +57 -98
  175. package/dist/overlays/overlay/Overlay.d.ts +2 -2
  176. package/dist/overlays/overlay/Overlay.js +96 -94
  177. package/dist/overlays/overlaysActor.d.ts +6 -6
  178. package/dist/overlays/overlaysActor.js +17 -18
  179. package/dist/overlays/relationship-details/RelationshipDetails.d.ts +49 -0
  180. package/dist/overlays/relationship-details/RelationshipDetails.js +24 -17
  181. package/dist/overlays/relationship-details/SelectEdge.css.js +82 -17
  182. package/dist/overlays/relationship-details/SelectEdge.js +15 -17
  183. package/dist/overlays/relationship-details/actor.js +9 -9
  184. package/dist/overlays/relationship-details/custom/ElementActions.js +8 -8
  185. package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +44 -46
  186. package/dist/overlays/relationship-details/custom/edgeTypes.js +49 -50
  187. package/dist/overlays/relationship-details/custom/index.d.ts +2 -2
  188. package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +28 -30
  189. package/dist/overlays/relationship-details/custom/nodeTypes.js +31 -35
  190. package/dist/overlays/relationship-details/hooks.js +9 -13
  191. package/dist/overlays/relationship-details/useLayoutedDetails.js +16 -18
  192. package/dist/overlays/relationships-browser/-useRelationshipsView.d.ts +8 -24
  193. package/dist/overlays/relationships-browser/-useRelationshipsView.js +50 -85
  194. package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +48 -0
  195. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +101 -101
  196. package/dist/overlays/relationships-browser/SelectElement.css.js +22 -9
  197. package/dist/overlays/relationships-browser/SelectElement.d.ts +2 -7
  198. package/dist/overlays/relationships-browser/SelectElement.js +196 -112
  199. package/dist/overlays/relationships-browser/_types.d.ts +4 -1
  200. package/dist/overlays/relationships-browser/actor.d.ts +478 -351
  201. package/dist/overlays/relationships-browser/actor.js +108 -94
  202. package/dist/overlays/relationships-browser/const.d.ts +1 -1
  203. package/dist/overlays/relationships-browser/const.js +3 -4
  204. package/dist/overlays/relationships-browser/custom/ElementActions.js +9 -9
  205. package/dist/overlays/relationships-browser/custom/EmptyNode.js +6 -6
  206. package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +43 -44
  207. package/dist/overlays/relationships-browser/custom/edgeTypes.js +97 -65
  208. package/dist/overlays/relationships-browser/custom/index.d.ts +2 -2
  209. package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +37 -37
  210. package/dist/overlays/relationships-browser/custom/nodeTypes.js +36 -40
  211. package/dist/overlays/relationships-browser/custom/styles.css.js +14 -5
  212. package/dist/overlays/relationships-browser/hooks.d.ts +14 -6
  213. package/dist/overlays/relationships-browser/hooks.js +25 -16
  214. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +13 -18
  215. package/dist/packages/core/src/compute-view/relationships-view/compute.js +123 -0
  216. package/dist/packages/core/src/compute-view/relationships-view/utils.js +68 -0
  217. package/dist/packages/core/src/errors/index.js +15 -0
  218. package/dist/packages/core/src/utils/fqn.js +43 -0
  219. package/dist/packages/core/src/utils/guards.js +7 -0
  220. package/dist/packages/core/src/utils/iterable/filter.js +21 -0
  221. package/dist/packages/core/src/utils/iterable/map.js +18 -0
  222. package/dist/packages/core/src/utils/iterable/to.js +14 -0
  223. package/dist/src/index.ts.d.ts +2 -0
  224. package/dist/state/DiagramActorProvider.js +26 -27
  225. package/dist/state/aligners.js +22 -31
  226. package/dist/state/assign.js +11 -21
  227. package/dist/state/diagram-machine.d.ts +5155 -4470
  228. package/dist/state/diagram-machine.js +407 -337
  229. package/dist/state/hotkeyActor.js +5 -5
  230. package/dist/state/inspector.d.ts +1 -1
  231. package/dist/state/persistence.js +4 -4
  232. package/dist/state/syncManualLayoutActor.d.ts +1 -1
  233. package/dist/state/syncManualLayoutActor.js +10 -10
  234. package/dist/state/utils.js +4 -9
  235. package/dist/styles.css.js +3 -0
  236. package/dist/utils/vector.js +2 -4
  237. package/dist/utils/xyflow.js +7 -12
  238. package/package.json +43 -42
  239. package/src/LikeC4CustomColors.tsx +44 -20
  240. package/src/LikeC4Diagram.props.ts +32 -0
  241. package/src/LikeC4Diagram.tsx +16 -14
  242. package/src/base/BaseXYFlow.tsx +67 -43
  243. package/src/base/primitives/compound/CompoundActionButton.tsx +41 -20
  244. package/src/base/primitives/compound/CompoundDetailsButton.tsx +48 -25
  245. package/src/base/primitives/compound/CompoundNodeContainer.css.ts +111 -111
  246. package/src/base/primitives/compound/CompoundNodeContainer.tsx +92 -92
  247. package/src/base/primitives/compound/CompoundTitle.tsx +73 -7
  248. package/src/base/primitives/compound/actionbtns.css.ts +30 -0
  249. package/src/base/primitives/customEdge.ts +2 -3
  250. package/src/base/primitives/edge/EdgeActionButton.tsx +3 -5
  251. package/src/base/primitives/edge/EdgeContainer.tsx +17 -9
  252. package/src/base/primitives/edge/EdgeLabel.css.ts +113 -177
  253. package/src/base/primitives/edge/EdgeLabel.tsx +43 -114
  254. package/src/base/primitives/edge/EdgeLabelContainer.tsx +118 -0
  255. package/src/base/primitives/edge/EdgePath.tsx +31 -37
  256. package/src/base/primitives/edge/edge.css.ts +105 -132
  257. package/src/base/primitives/edge/xyvars.ts +31 -0
  258. package/src/base/primitives/element/ElementActionButtons.tsx +30 -10
  259. package/src/base/primitives/element/ElementDetailsButton.tsx +27 -8
  260. package/src/base/primitives/element/ElementNodeContainer.css.ts +43 -70
  261. package/src/base/primitives/element/ElementNodeContainer.tsx +18 -8
  262. package/src/base/primitives/element/ElementShape.css.ts +80 -113
  263. package/src/base/primitives/element/ElementShape.tsx +0 -1
  264. package/src/base/primitives/element/ElementTitle.css.ts +168 -124
  265. package/src/base/primitives/element/ElementTitle.tsx +16 -16
  266. package/src/base/primitives/index.ts +1 -0
  267. package/src/base/types.ts +5 -0
  268. package/src/bundle/LikeC4ModelProvider.tsx +12 -0
  269. package/src/bundle/LikeC4View.props.ts +249 -0
  270. package/src/bundle/LikeC4View.tsx +196 -0
  271. package/src/bundle/ReactLikeC4.tsx +148 -0
  272. package/src/bundle/ShadowRoot.tsx +60 -0
  273. package/src/bundle/ViewNotFound.tsx +25 -0
  274. package/src/bundle/font.css +251 -0
  275. package/src/bundle/index.ts +7 -0
  276. package/src/bundle/react-dom-server-mock.ts +3 -0
  277. package/src/bundle/styles.css.ts +168 -0
  278. package/src/components/Link.tsx +56 -5
  279. package/src/components/SearchControl.css.ts +52 -59
  280. package/src/components/SearchControl.tsx +2 -5
  281. package/src/context/ReduceGraphics.tsx +9 -47
  282. package/src/context/RootContainer.tsx +21 -5
  283. package/src/hooks/safeContext.tsx +2 -3
  284. package/src/hooks/useCurrentViewId.ts +4 -4
  285. package/src/hooks/useDiagram.ts +4 -3
  286. package/src/hooks/useOverlaysActor.ts +11 -0
  287. package/src/hooks/useReducedGraphics.ts +8 -1
  288. package/src/hooks/useXYFlow.ts +2 -2
  289. package/src/index.ts +1 -3
  290. package/src/likec4diagram/DiagramUI.tsx +2 -2
  291. package/src/likec4diagram/DiagramXYFlow.tsx +80 -26
  292. package/src/likec4diagram/custom/edges/NotePopover.css.ts +7 -13
  293. package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +69 -42
  294. package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.css.ts +23 -44
  295. package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.tsx +26 -24
  296. package/src/likec4diagram/custom/edges/edges.css.ts +25 -32
  297. package/src/likec4diagram/custom/nodes/nodeTypes.tsx +2 -2
  298. package/src/likec4diagram/custom/nodes/toolbar/Toolbar.tsx +9 -5
  299. package/src/likec4diagram/custom/nodes/toolbar/styles.css.ts +3 -4
  300. package/src/likec4diagram/ui/controls/LayoutDriftNotification.tsx +2 -2
  301. package/src/likec4diagram/ui/controls/styles.css.ts +46 -57
  302. package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.css.ts +38 -34
  303. package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.tsx +4 -4
  304. package/src/likec4diagram/ui/notation/NotationPanel.css.ts +44 -56
  305. package/src/likec4diagram/ui/notation/NotationPanel.tsx +17 -14
  306. package/src/likec4diagram/ui/search/ElementsColumn.css.ts +80 -85
  307. package/src/likec4diagram/ui/search/ElementsColumn.tsx +21 -14
  308. package/src/likec4diagram/ui/search/LikeC4Search.css.ts +50 -67
  309. package/src/likec4diagram/ui/search/LikeC4Search.tsx +1 -2
  310. package/src/likec4diagram/ui/search/SearchInput.tsx +2 -2
  311. package/src/likec4diagram/ui/search/ViewsColum.tsx +10 -7
  312. package/src/likec4diagram/ui/search/ViewsColumn.css.ts +29 -28
  313. package/src/likec4diagram/ui/search/_shared.css.ts +158 -74
  314. package/src/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.css.ts +31 -34
  315. package/src/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.tsx +6 -6
  316. package/src/likec4diagram/useViewToNodesEdges.ts +2 -1
  317. package/src/overlays/Overlays.tsx +6 -4
  318. package/src/overlays/element-details/ElementDetailsCard.css.ts +143 -177
  319. package/src/overlays/element-details/ElementDetailsCard.tsx +29 -29
  320. package/src/overlays/element-details/TabPanelDeployments.css.ts +49 -54
  321. package/src/overlays/element-details/TabPanelRelationships.css.ts +62 -66
  322. package/src/overlays/element-details/TabPanelRelationships.tsx +32 -3
  323. package/src/overlays/element-details/TabPanelStructure.css.ts +26 -26
  324. package/src/overlays/element-details/actor.ts +4 -2
  325. package/src/overlays/overlay/Overlay.css.ts +34 -46
  326. package/src/overlays/overlay/Overlay.tsx +95 -97
  327. package/src/overlays/overlaysActor.ts +1 -0
  328. package/src/overlays/relationship-details/RelationshipDetails.tsx +15 -3
  329. package/src/overlays/relationship-details/SelectEdge.css.ts +52 -71
  330. package/src/overlays/relationship-details/SelectEdge.tsx +1 -2
  331. package/src/overlays/relationship-details/custom/edgeTypes.tsx +35 -30
  332. package/src/overlays/relationship-details/custom/index.ts +2 -0
  333. package/src/overlays/relationship-details/custom/nodeTypes.tsx +20 -24
  334. package/src/overlays/relationship-details/custom/styles.css.ts +8 -8
  335. package/src/overlays/relationships-browser/-useRelationshipsView.ts +55 -82
  336. package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +39 -36
  337. package/src/overlays/relationships-browser/SelectElement.css.ts +9 -12
  338. package/src/overlays/relationships-browser/SelectElement.tsx +192 -105
  339. package/src/overlays/relationships-browser/_types.ts +4 -9
  340. package/src/overlays/relationships-browser/actor.ts +144 -123
  341. package/src/overlays/relationships-browser/const.ts +1 -1
  342. package/src/overlays/relationships-browser/custom/EmptyNode.tsx +2 -2
  343. package/src/overlays/relationships-browser/custom/edgeTypes.tsx +95 -59
  344. package/src/overlays/relationships-browser/custom/index.ts +2 -0
  345. package/src/overlays/relationships-browser/custom/nodeTypes.tsx +25 -26
  346. package/src/overlays/relationships-browser/custom/styles.css.ts +5 -6
  347. package/src/overlays/relationships-browser/hooks.ts +17 -3
  348. package/src/overlays/relationships-browser/useViewToNodesEdges.ts +4 -10
  349. package/src/state/DiagramActorProvider.tsx +17 -16
  350. package/src/state/diagram-machine.ts +395 -315
  351. package/src/state/inspector.ts +1 -1
  352. package/src/styles.css +3 -0
  353. package/dist/LikeC4Diagram.css.d.ts +0 -8
  354. package/dist/LikeC4Diagram.css.js +0 -11
  355. package/dist/base/example/RelationshipsBrowser.d.ts +0 -6
  356. package/dist/base/example/_types.d.ts +0 -20
  357. package/dist/base/example/custom.d.ts +0 -72
  358. package/dist/base/example/useViewToNodesEdges.d.ts +0 -6
  359. package/dist/base/primitives/compound/CompoundActionButton.css.d.ts +0 -2
  360. package/dist/base/primitives/compound/CompoundActionButton.css.js +0 -8
  361. package/dist/base/primitives/compound/CompoundDetailsButton.css.d.ts +0 -3
  362. package/dist/base/primitives/compound/CompoundDetailsButton.css.js +0 -8
  363. package/dist/base/primitives/compound/CompoundTitle.css.d.ts +0 -3
  364. package/dist/base/primitives/compound/CompoundTitle.css.js +0 -10
  365. package/dist/base/primitives/element/ElementActionButtons.css.d.ts +0 -3
  366. package/dist/base/primitives/element/ElementActionButtons.css.js +0 -10
  367. package/dist/base/primitives/element/ElementDetailsButton.css.d.ts +0 -3
  368. package/dist/base/primitives/element/ElementDetailsButton.css.js +0 -8
  369. package/dist/base/primitives/element/vars.css.d.ts +0 -3
  370. package/dist/base/primitives/element/vars.css.ts.vanilla.css.js +0 -1
  371. package/dist/components/Link.css.d.ts +0 -3
  372. package/dist/components/Link.css.js +0 -9
  373. package/dist/diagram.css +0 -1
  374. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Accordion/Accordion.module.css.mjs.vanilla.css.js +0 -1
  375. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.module.css.mjs.vanilla.css.js +0 -1
  376. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Affix/Affix.module.css.mjs.vanilla.css.js +0 -1
  377. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Alert/Alert.module.css.mjs.vanilla.css.js +0 -1
  378. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Anchor/Anchor.module.css.mjs.vanilla.css.js +0 -1
  379. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/AngleSlider/AngleSlider.module.css.mjs.vanilla.css.js +0 -1
  380. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/AppShell/AppShell.module.css.mjs.vanilla.css.js +0 -1
  381. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/AspectRatio/AspectRatio.module.css.mjs.vanilla.css.js +0 -1
  382. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Avatar/Avatar.module.css.mjs.vanilla.css.js +0 -1
  383. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/BackgroundImage/BackgroundImage.module.css.mjs.vanilla.css.js +0 -1
  384. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Badge/Badge.module.css.mjs.vanilla.css.js +0 -1
  385. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Blockquote/Blockquote.module.css.mjs.vanilla.css.js +0 -1
  386. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Breadcrumbs/Breadcrumbs.module.css.mjs.vanilla.css.js +0 -1
  387. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Burger/Burger.module.css.mjs.vanilla.css.js +0 -1
  388. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Button/Button.module.css.mjs.vanilla.css.js +0 -1
  389. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Card/Card.module.css.mjs.vanilla.css.js +0 -1
  390. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Center/Center.module.css.mjs.vanilla.css.js +0 -1
  391. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Checkbox/Checkbox.module.css.mjs.vanilla.css.js +0 -1
  392. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Checkbox/CheckboxCard/CheckboxCard.module.css.mjs.vanilla.css.js +0 -1
  393. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.css.mjs.vanilla.css.js +0 -1
  394. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Chip/Chip.module.css.mjs.vanilla.css.js +0 -1
  395. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/CloseButton/CloseButton.module.css.mjs.vanilla.css.js +0 -1
  396. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Code/Code.module.css.mjs.vanilla.css.js +0 -1
  397. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ColorInput/ColorInput.module.css.mjs.vanilla.css.js +0 -1
  398. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ColorPicker/ColorPicker.module.css.mjs.vanilla.css.js +0 -1
  399. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ColorSwatch/ColorSwatch.module.css.mjs.vanilla.css.js +0 -1
  400. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Combobox/Combobox.module.css.mjs.vanilla.css.js +0 -1
  401. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Container/Container.module.css.mjs.vanilla.css.js +0 -1
  402. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Dialog/Dialog.module.css.mjs.vanilla.css.js +0 -1
  403. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Divider/Divider.module.css.mjs.vanilla.css.js +0 -1
  404. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Drawer/Drawer.module.css.mjs.vanilla.css.js +0 -1
  405. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Fieldset/Fieldset.module.css.mjs.vanilla.css.js +0 -1
  406. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Flex/Flex.module.css.mjs.vanilla.css.js +0 -1
  407. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/FloatingIndicator/FloatingIndicator.module.css.mjs.vanilla.css.js +0 -1
  408. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Grid/Grid.module.css.mjs.vanilla.css.js +0 -1
  409. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Group/Group.module.css.mjs.vanilla.css.js +0 -1
  410. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Image/Image.module.css.mjs.vanilla.css.js +0 -1
  411. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Indicator/Indicator.module.css.mjs.vanilla.css.js +0 -1
  412. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/InlineInput/InlineInput.module.css.mjs.vanilla.css.js +0 -1
  413. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Input/Input.module.css.mjs.vanilla.css.js +0 -1
  414. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Kbd/Kbd.module.css.mjs.vanilla.css.js +0 -1
  415. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/List/List.module.css.mjs.vanilla.css.js +0 -1
  416. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Loader/Loader.module.css.mjs.vanilla.css.js +0 -1
  417. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/LoadingOverlay/LoadingOverlay.module.css.mjs.vanilla.css.js +0 -1
  418. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Mark/Mark.module.css.mjs.vanilla.css.js +0 -1
  419. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Menu/Menu.module.css.mjs.vanilla.css.js +0 -1
  420. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Modal/Modal.module.css.mjs.vanilla.css.js +0 -1
  421. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ModalBase/ModalBase.module.css.mjs.vanilla.css.js +0 -1
  422. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/NavLink/NavLink.module.css.mjs.vanilla.css.js +0 -1
  423. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Notification/Notification.module.css.mjs.vanilla.css.js +0 -1
  424. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/NumberInput/NumberInput.module.css.mjs.vanilla.css.js +0 -1
  425. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Overlay/Overlay.module.css.mjs.vanilla.css.js +0 -1
  426. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Pagination/Pagination.module.css.mjs.vanilla.css.js +0 -1
  427. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Paper/Paper.module.css.mjs.vanilla.css.js +0 -1
  428. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/PasswordInput/PasswordInput.module.css.mjs.vanilla.css.js +0 -1
  429. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Pill/Pill.module.css.mjs.vanilla.css.js +0 -1
  430. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/PillsInput/PillsInput.module.css.mjs.vanilla.css.js +0 -1
  431. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/PinInput/PinInput.module.css.mjs.vanilla.css.js +0 -1
  432. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Popover/Popover.module.css.mjs.vanilla.css.js +0 -1
  433. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Progress/Progress.module.css.mjs.vanilla.css.js +0 -1
  434. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Radio/Radio.module.css.mjs.vanilla.css.js +0 -1
  435. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Radio/RadioCard/RadioCard.module.css.mjs.vanilla.css.js +0 -1
  436. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Radio/RadioIndicator/RadioIndicator.module.css.mjs.vanilla.css.js +0 -1
  437. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Rating/Rating.module.css.mjs.vanilla.css.js +0 -1
  438. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/RingProgress/RingProgress.module.css.mjs.vanilla.css.js +0 -1
  439. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.module.css.mjs.vanilla.css.js +0 -1
  440. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/SegmentedControl/SegmentedControl.module.css.mjs.vanilla.css.js +0 -1
  441. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/SemiCircleProgress/SemiCircleProgress.module.css.mjs.vanilla.css.js +0 -1
  442. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/SimpleGrid/SimpleGrid.module.css.mjs.vanilla.css.js +0 -1
  443. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Skeleton/Skeleton.module.css.mjs.vanilla.css.js +0 -1
  444. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Slider/Slider.module.css.mjs.vanilla.css.js +0 -1
  445. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Spoiler/Spoiler.module.css.mjs.vanilla.css.js +0 -1
  446. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Stack/Stack.module.css.mjs.vanilla.css.js +0 -1
  447. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Stepper/Stepper.module.css.mjs.vanilla.css.js +0 -1
  448. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Switch/Switch.module.css.mjs.vanilla.css.js +0 -1
  449. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Table/Table.module.css.mjs.vanilla.css.js +0 -1
  450. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/TableOfContents/TableOfContents.module.css.mjs.vanilla.css.js +0 -1
  451. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Tabs/Tabs.module.css.mjs.vanilla.css.js +0 -1
  452. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Text/Text.module.css.mjs.vanilla.css.js +0 -1
  453. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/ThemeIcon/ThemeIcon.module.css.mjs.vanilla.css.js +0 -1
  454. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Timeline/Timeline.module.css.mjs.vanilla.css.js +0 -1
  455. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Title/Title.module.css.mjs.vanilla.css.js +0 -1
  456. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.module.css.mjs.vanilla.css.js +0 -1
  457. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/Tree/Tree.module.css.mjs.vanilla.css.js +0 -1
  458. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/TypographyStylesProvider/TypographyStylesProvider.module.css.mjs.vanilla.css.js +0 -1
  459. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.module.css.mjs.vanilla.css.js +0 -1
  460. package/dist/node_modules/.pnpm/@mantine_core@7.17.1_@mantine_hooks@7.17.1_react@19.0.0__@types_react@19.0.10_react-dom_fbfa2b80048a2180882527b4a447e1ea/node_modules/@mantine/core/esm/components/VisuallyHidden/VisuallyHidden.module.css.mjs.vanilla.css.js +0 -1
  461. package/dist/theme-vars.css.d.ts +0 -63
  462. package/dist/theme-vars.css.js +0 -7
  463. package/dist/theme-vars.css.ts.vanilla.css.js +0 -1
  464. package/dist/theme-vars.d.ts +0 -16
  465. package/dist/theme-vars.js +0 -7
  466. package/dist/utils/css.js +0 -10
  467. package/src/LikeC4Diagram.css.ts +0 -198
  468. package/src/base/example/RelationshipsBrowser.tsx +0 -62
  469. package/src/base/example/_types.ts +0 -72
  470. package/src/base/example/custom.tsx +0 -58
  471. package/src/base/example/useViewToNodesEdges.ts +0 -194
  472. package/src/base/primitives/compound/CompoundActionButton.css.ts +0 -52
  473. package/src/base/primitives/compound/CompoundDetailsButton.css.ts +0 -58
  474. package/src/base/primitives/compound/CompoundTitle.css.ts +0 -65
  475. package/src/base/primitives/element/ElementActionButtons.css.ts +0 -52
  476. package/src/base/primitives/element/ElementDetailsButton.css.ts +0 -50
  477. package/src/base/primitives/element/vars.css.ts +0 -5
  478. package/src/components/Link.css.ts +0 -49
  479. package/src/overlays/relationship-details/custom/index.tsx +0 -2
  480. package/src/overlays/relationships-browser/custom/index.tsx +0 -2
  481. package/src/theme-vars.css.ts +0 -69
  482. package/src/theme-vars.ts +0 -25
@@ -2,7 +2,7 @@ import { Types } from '../types';
2
2
  import { NamedExoticComponent, CSSProperties, ReactNode } from 'react';
3
3
  import { NodeProps } from '../../base';
4
4
  import { Position, XYPosition } from '@xyflow/system';
5
- import { EdgeId, NonEmptyArray, Point, Color, ViewId, RelationshipArrowType, RelationshipLineType, BBox } from '@likec4/core';
5
+ import { EdgeId, NonEmptyArray, Point, Color, BBox, RelationshipLineType, RelationshipArrowType, ViewId } from '@likec4/core';
6
6
  export declare const nodeTypes: {
7
7
  element: NamedExoticComponent<NodeProps<Types.ElementNodeData>>;
8
8
  deployment: NamedExoticComponent<NodeProps<Types.DeploymentElementNodeData>>;
@@ -12,14 +12,14 @@ export declare const nodeTypes: {
12
12
  };
13
13
  export declare const edgeTypes: {
14
14
  relationship: NamedExoticComponent<{
15
- source: string;
16
- target: string;
17
- style?: CSSProperties;
18
15
  id: string;
19
16
  selected?: boolean;
20
- animated?: boolean;
21
- deletable?: boolean;
22
17
  selectable?: boolean;
18
+ deletable?: boolean;
19
+ style?: CSSProperties;
20
+ source: string;
21
+ target: string;
22
+ animated?: boolean;
23
23
  sourceX: number;
24
24
  sourceY: number;
25
25
  targetX: number;
@@ -48,13 +48,13 @@ export declare const edgeTypes: {
48
48
  points: NonEmptyArray<Point>;
49
49
  technology: string | undefined;
50
50
  color: Color | undefined;
51
- navigateTo: ViewId<string> | undefined;
51
+ labelBBox: BBox | null | undefined;
52
52
  dir: "forward" | "back" | "both" | undefined;
53
+ line: RelationshipLineType | undefined;
53
54
  head: RelationshipArrowType | undefined;
54
55
  tail: RelationshipArrowType | undefined;
55
- line: RelationshipLineType | undefined;
56
+ navigateTo: ViewId<string> | undefined;
56
57
  notes: string | undefined;
57
- labelBBox: BBox | null | undefined;
58
58
  labelXY: XYPosition | null;
59
59
  controlPoints: XYPosition[] | undefined | null;
60
60
  hovered?: boolean;
@@ -1,5 +1,6 @@
1
- import { RelationshipEdge } from "./edges/RelationshipEdge.js";
2
- import { ViewGroupNode, CompoundDeploymentNode, CompoundElementNode, DeploymentNode, ElementNode } from "./nodes/nodeTypes.js";
1
+ import { RelationshipEdge } from './edges/RelationshipEdge.js';
2
+ import { ViewGroupNode, CompoundDeploymentNode, CompoundElementNode, DeploymentNode, ElementNode } from './nodes/nodeTypes.js';
3
+
3
4
  const nodeTypes = {
4
5
  element: ElementNode,
5
6
  deployment: DeploymentNode,
@@ -10,7 +11,5 @@ const nodeTypes = {
10
11
  const edgeTypes = {
11
12
  relationship: RelationshipEdge
12
13
  };
13
- export {
14
- edgeTypes,
15
- nodeTypes
16
- };
14
+
15
+ export { edgeTypes, nodeTypes };
@@ -1,7 +1,8 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useDiagram } from "../../../hooks/useDiagram.js";
3
- import { useEnabledFeature } from "../../../context/DiagramFeatures.js";
4
- import { CompoundActionButton } from "../../../base/primitives/compound/CompoundActionButton.js";
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useDiagram } from '../../../hooks/useDiagram.js';
3
+ import { useEnabledFeature } from '../../../context/DiagramFeatures.js';
4
+ import { CompoundActionButton } from '../../../base/primitives/compound/CompoundActionButton.js';
5
+
5
6
  const CompoundActions = (props) => {
6
7
  const { enableNavigateTo } = useEnabledFeature("NavigateTo");
7
8
  const diagram = useDiagram();
@@ -20,6 +21,5 @@ const CompoundActions = (props) => {
20
21
  }
21
22
  return null;
22
23
  };
23
- export {
24
- CompoundActions
25
- };
24
+
25
+ export { CompoundActions };
@@ -1,8 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { IconZoomScan, IconTransform } from "@tabler/icons-react";
3
- import { useDiagram } from "../../../hooks/useDiagram.js";
4
- import { useEnabledFeature } from "../../../context/DiagramFeatures.js";
5
- import { ElementActionButtons } from "../../../base/primitives/element/ElementActionButtons.js";
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { IconZoomScan, IconTransform } from '@tabler/icons-react';
3
+ import { useDiagram } from '../../../hooks/useDiagram.js';
4
+ import { useEnabledFeature } from '../../../context/DiagramFeatures.js';
5
+ import { ElementActionButtons } from '../../../base/primitives/element/ElementActionButtons.js';
6
+
6
7
  const ElementActions = (props) => {
7
8
  const { enableNavigateTo, enableRelationshipBrowser } = useEnabledFeature("RelationshipBrowser", "NavigateTo");
8
9
  const diagram = useDiagram();
@@ -63,7 +64,5 @@ const DeploymentElementActions = (props) => {
63
64
  }
64
65
  return /* @__PURE__ */ jsx(ElementActionButtons, { buttons, ...props });
65
66
  };
66
- export {
67
- DeploymentElementActions,
68
- ElementActions
69
- };
67
+
68
+ export { DeploymentElementActions, ElementActions };
@@ -1,20 +1,21 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "@likec4/core";
3
- import { useDiagram } from "../../../hooks/useDiagram.js";
4
- import { CompoundActions } from "./CompoundActions.js";
5
- import { DeploymentElementActions, ElementActions } from "./ElementActions.js";
6
- import { CompoundDeploymentToolbar, CompoundElementToolbar } from "./toolbar/CompoundToolbar.js";
7
- import { DeploymentElementToolbar, ElementToolbar } from "./toolbar/ElementToolbar.js";
8
- import { customNode } from "../../../base/primitives/customNode.js";
9
- import { CompoundNodeContainer } from "../../../base/primitives/compound/CompoundNodeContainer.js";
10
- import { CompoundTitle } from "../../../base/primitives/compound/CompoundTitle.js";
11
- import { IfNotEnabled, IfEnabled, useEnabledFeature } from "../../../context/DiagramFeatures.js";
12
- import { DefaultHandles } from "../../../base/primitives/NodeHandles.js";
13
- import { CompoundDetailsButton } from "../../../base/primitives/compound/CompoundDetailsButton.js";
14
- import { ElementNodeContainer } from "../../../base/primitives/element/ElementNodeContainer.js";
15
- import { ElementShape } from "../../../base/primitives/element/ElementShape.js";
16
- import { ElementTitle } from "../../../base/primitives/element/ElementTitle.js";
17
- import { ElementDetailsButton } from "../../../base/primitives/element/ElementDetailsButton.js";
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import '@likec4/core';
3
+ import { useDiagram } from '../../../hooks/useDiagram.js';
4
+ import { CompoundActions } from './CompoundActions.js';
5
+ import { DeploymentElementActions, ElementActions } from './ElementActions.js';
6
+ import { CompoundDeploymentToolbar, CompoundElementToolbar } from './toolbar/CompoundToolbar.js';
7
+ import { DeploymentElementToolbar, ElementToolbar } from './toolbar/ElementToolbar.js';
8
+ import { customNode } from '../../../base/primitives/customNode.js';
9
+ import { CompoundNodeContainer } from '../../../base/primitives/compound/CompoundNodeContainer.js';
10
+ import { CompoundTitle } from '../../../base/primitives/compound/CompoundTitle.js';
11
+ import { IfNotEnabled, IfEnabled, useEnabledFeature } from '../../../context/DiagramFeatures.js';
12
+ import { DefaultHandles } from '../../../base/primitives/NodeHandles.js';
13
+ import { CompoundDetailsButton } from '../../../base/primitives/compound/CompoundDetailsButton.js';
14
+ import { ElementNodeContainer } from '../../../base/primitives/element/ElementNodeContainer.js';
15
+ import { ElementShape } from '../../../base/primitives/element/ElementShape.js';
16
+ import { ElementTitle } from '../../../base/primitives/element/ElementTitle.js';
17
+ import { ElementDetailsButton } from '../../../base/primitives/element/ElementDetailsButton.js';
18
+
18
19
  const ElementDetailsButtonWithHandler = ({ fqn, ...props }) => {
19
20
  const { enableElementDetails } = useEnabledFeature("ElementDetails");
20
21
  const diagram = useDiagram();
@@ -31,7 +32,7 @@ const ElementDetailsButtonWithHandler = ({ fqn, ...props }) => {
31
32
  );
32
33
  };
33
34
  const ElementNode = customNode((props) => /* @__PURE__ */ jsxs(ElementNodeContainer, { nodeProps: props, children: [
34
- /* @__PURE__ */ jsx(ElementShape, { ...props, isMultiple: props.data.isMultiple, withSelectedIndicator: props.selected }),
35
+ /* @__PURE__ */ jsx(ElementShape, { ...props, isMultiple: props.data.isMultiple }),
35
36
  /* @__PURE__ */ jsx(ElementTitle, { ...props }),
36
37
  /* @__PURE__ */ jsx(ElementActions, { ...props }),
37
38
  /* @__PURE__ */ jsx(
@@ -45,7 +46,7 @@ const ElementNode = customNode((props) => /* @__PURE__ */ jsxs(ElementNodeContai
45
46
  /* @__PURE__ */ jsx(DefaultHandles, {})
46
47
  ] }));
47
48
  const DeploymentNode = customNode((props) => /* @__PURE__ */ jsxs(ElementNodeContainer, { nodeProps: props, children: [
48
- /* @__PURE__ */ jsx(ElementShape, { ...props, isMultiple: props.data.isMultiple, withSelectedIndicator: props.selected }),
49
+ /* @__PURE__ */ jsx(ElementShape, { ...props, isMultiple: props.data.isMultiple }),
49
50
  /* @__PURE__ */ jsx(ElementTitle, { ...props }),
50
51
  /* @__PURE__ */ jsx(DeploymentElementActions, { ...props }),
51
52
  !!props.data.modelFqn && /* @__PURE__ */ jsx(
@@ -87,10 +88,5 @@ const ViewGroupNode = customNode((props) => /* @__PURE__ */ jsxs(CompoundNodeCon
87
88
  /* @__PURE__ */ jsx(CompoundTitle, { ...props }),
88
89
  /* @__PURE__ */ jsx(DefaultHandles, {})
89
90
  ] }));
90
- export {
91
- CompoundDeploymentNode,
92
- CompoundElementNode,
93
- DeploymentNode,
94
- ElementNode,
95
- ViewGroupNode
96
- };
91
+
92
+ export { CompoundDeploymentNode, CompoundElementNode, DeploymentNode, ElementNode, ViewGroupNode };
@@ -1,9 +1,10 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { defaultTheme } from "@likec4/core";
3
- import { Popover, PopoverTarget, Button, ColorSwatch, PopoverDropdown, Space, Divider, Stack, TooltipGroup, Flex, Tooltip, CheckIcon, rem, Slider } from "@mantine/core";
4
- import { useUpdateEffect } from "@react-hookz/web";
5
- import { useState } from "react";
6
- import { themedColors, colors } from "./_shared.js";
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { defaultTheme } from '@likec4/core';
3
+ import { Popover, PopoverTarget, Button, ColorSwatch, PopoverDropdown, Space, Divider, Stack, TooltipGroup, Flex, Tooltip, CheckIcon, rem, Slider } from '@mantine/core';
4
+ import { useUpdateEffect } from '@react-hookz/web';
5
+ import { useState } from 'react';
6
+ import { themedColors, colors } from './_shared.js';
7
+
7
8
  function ColorButton({
8
9
  elementColor,
9
10
  elementOpacity,
@@ -12,7 +13,6 @@ function ColorButton({
12
13
  onChange,
13
14
  ...props
14
15
  }) {
15
- var _a;
16
16
  return /* @__PURE__ */ jsxs(
17
17
  Popover,
18
18
  {
@@ -25,7 +25,7 @@ function ColorButton({
25
25
  /* @__PURE__ */ jsx(PopoverTarget, { children: /* @__PURE__ */ jsx(Button, { variant: "subtle", color: "gray", size: "compact-xs", px: 3, children: /* @__PURE__ */ jsx(
26
26
  ColorSwatch,
27
27
  {
28
- color: (_a = defaultTheme.elements[elementColor]) == null ? void 0 : _a.fill,
28
+ color: defaultTheme.elements[elementColor]?.fill,
29
29
  size: 14,
30
30
  withShadow: true,
31
31
  style: { color: "#fff", cursor: "pointer" }
@@ -152,8 +152,5 @@ function OpacityOption({
152
152
  }
153
153
  );
154
154
  }
155
- export {
156
- ColorButton,
157
- ColorSwatches,
158
- OpacityOption
159
- };
155
+
156
+ export { ColorButton, ColorSwatches, OpacityOption };
@@ -1,11 +1,12 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "@likec4/core";
3
- import { Box, SegmentedControl } from "@mantine/core";
4
- import { useState, useEffect } from "react";
5
- import { useHandlers, GoToSourceButton, BrowseRelationshipsButton } from "./_shared.js";
6
- import { ColorButton } from "./ColorButton.js";
7
- import { Toolbar } from "./Toolbar.js";
8
- import { useEnabledFeature } from "../../../../context/DiagramFeatures.js";
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import '@likec4/core';
3
+ import { Box, SegmentedControl } from '@mantine/core';
4
+ import { useState, useEffect } from 'react';
5
+ import { useHandlers, GoToSourceButton, BrowseRelationshipsButton } from './_shared.js';
6
+ import { ColorButton } from './ColorButton.js';
7
+ import { Toolbar } from './Toolbar.js';
8
+ import { useEnabledFeature } from '../../../../context/DiagramFeatures.js';
9
+
9
10
  function CompoundElementToolbar(props) {
10
11
  const { enableVscode, enableRelationshipBrowser } = useEnabledFeature("RelationshipBrowser", "Vscode");
11
12
  const {
@@ -28,7 +29,7 @@ function CompoundElementToolbar(props) {
28
29
  elementColor,
29
30
  onColorPreview,
30
31
  isOpacityEditable: true,
31
- elementOpacity: style == null ? void 0 : style.opacity,
32
+ elementOpacity: style?.opacity,
32
33
  onChange,
33
34
  position: "left-start"
34
35
  }
@@ -36,7 +37,7 @@ function CompoundElementToolbar(props) {
36
37
  /* @__PURE__ */ jsx(
37
38
  BorderStyleOption,
38
39
  {
39
- elementBorderStyle: style == null ? void 0 : style.border,
40
+ elementBorderStyle: style?.border,
40
41
  onChange
41
42
  }
42
43
  ),
@@ -69,7 +70,7 @@ function CompoundDeploymentToolbar(props) {
69
70
  elementColor,
70
71
  onColorPreview,
71
72
  isOpacityEditable: true,
72
- elementOpacity: style == null ? void 0 : style.opacity,
73
+ elementOpacity: style?.opacity,
73
74
  onChange,
74
75
  position: "left-start"
75
76
  }
@@ -77,7 +78,7 @@ function CompoundDeploymentToolbar(props) {
77
78
  /* @__PURE__ */ jsx(
78
79
  BorderStyleOption,
79
80
  {
80
- elementBorderStyle: style == null ? void 0 : style.border,
81
+ elementBorderStyle: style?.border,
81
82
  onChange
82
83
  }
83
84
  ),
@@ -122,7 +123,5 @@ function BorderStyleOption({
122
123
  }
123
124
  ) });
124
125
  }
125
- export {
126
- CompoundDeploymentToolbar,
127
- CompoundElementToolbar
128
- };
126
+
127
+ export { CompoundDeploymentToolbar, CompoundElementToolbar };
@@ -1,12 +1,13 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { ElementShapes } from "@likec4/core";
3
- import { Menu, MenuTarget, Button, MenuDropdown, MenuItem } from "@mantine/core";
4
- import { IconSelector, IconCheck } from "@tabler/icons-react";
5
- import { stopPropagation } from "../../../../utils/xyflow.js";
6
- import { useHandlers, GoToSourceButton, BrowseRelationshipsButton } from "./_shared.js";
7
- import { ColorButton } from "./ColorButton.js";
8
- import { Toolbar } from "./Toolbar.js";
9
- import { useEnabledFeature } from "../../../../context/DiagramFeatures.js";
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { ElementShapes } from '@likec4/core';
3
+ import { Menu, MenuTarget, Button, MenuDropdown, MenuItem } from '@mantine/core';
4
+ import { IconSelector, IconCheck } from '@tabler/icons-react';
5
+ import { stopPropagation } from '../../../../utils/xyflow.js';
6
+ import { useHandlers, GoToSourceButton, BrowseRelationshipsButton } from './_shared.js';
7
+ import { ColorButton } from './ColorButton.js';
8
+ import { Toolbar } from './Toolbar.js';
9
+ import { useEnabledFeature } from '../../../../context/DiagramFeatures.js';
10
+
10
11
  function ElementToolbar(props) {
11
12
  const { enableVscode, enableRelationshipBrowser } = useEnabledFeature("RelationshipBrowser", "Vscode");
12
13
  const {
@@ -143,7 +144,5 @@ function ElementShapeButton({
143
144
  }
144
145
  );
145
146
  }
146
- export {
147
- DeploymentElementToolbar,
148
- ElementToolbar
149
- };
147
+
148
+ export { DeploymentElementToolbar, ElementToolbar };
@@ -5,4 +5,4 @@ export type ToolbarProps = Omit<NodeToolbarProps, 'title'> & {
5
5
  nodeProps: Base.NodeProps;
6
6
  title: ReactNode;
7
7
  };
8
- export declare function Toolbar({ title, children, nodeProps, ...props }: ToolbarProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Toolbar({ title, children, nodeProps, ...props }: ToolbarProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +1,12 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Paper, Stack, Box, Text, Group } from "@mantine/core";
3
- import { useDebouncedValue } from "@mantine/hooks";
4
- import { NodeToolbar } from "@xyflow/react";
5
- import clsx from "clsx";
6
- import { useDiagramContext } from "../../../../hooks/useDiagram.js";
7
- import { stopPropagation } from "../../../../utils/xyflow.js";
8
- import { toolbarTitle } from "./styles.css.js";
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { Paper, Stack, Box, Text, Group } from '@mantine/core';
3
+ import { useDebouncedValue } from '@mantine/hooks';
4
+ import { NodeToolbar } from '@xyflow/react';
5
+ import clsx from 'clsx';
6
+ import { useDiagramContext } from '../../../../hooks/useDiagram.js';
7
+ import { stopPropagation } from '../../../../utils/xyflow.js';
8
+ import { toolbarTitle } from './styles.css.js';
9
+
9
10
  const useSelectedNodesCount = () => {
10
11
  return useDiagramContext((s) => s.xynodes.filter((x) => x.selected).length);
11
12
  };
@@ -32,10 +33,13 @@ function Toolbar({ title, children, nodeProps, ...props }) {
32
33
  }
33
34
  }
34
35
  const [isToolbarVisible] = useDebouncedValue(_isToolbarVisible, delay);
36
+ if (!isToolbarVisible) {
37
+ return null;
38
+ }
35
39
  return /* @__PURE__ */ jsx(
36
40
  NodeToolbar,
37
41
  {
38
- isVisible: !dragging && isToolbarVisible,
42
+ isVisible: !dragging,
39
43
  offset: 4,
40
44
  ...props,
41
45
  children: /* @__PURE__ */ jsx(
@@ -52,8 +56,8 @@ function Toolbar({ title, children, nodeProps, ...props }) {
52
56
  onClick: stopPropagation,
53
57
  onDoubleClick: stopPropagation,
54
58
  withBorder: true,
55
- children: /* @__PURE__ */ jsxs(Stack, { gap: 6, children: [
56
- /* @__PURE__ */ jsx(Box, { pl: 2, children: /* @__PURE__ */ jsx(Text, { c: "dimmed", className: toolbarTitle, children: title }) }),
59
+ children: /* @__PURE__ */ jsxs(Stack, { gap: "6px", children: [
60
+ /* @__PURE__ */ jsx(Box, { px: "4px", children: /* @__PURE__ */ jsx(Text, { c: "dimmed", className: toolbarTitle, children: title }) }),
57
61
  /* @__PURE__ */ jsx(Group, { gap: 4, children })
58
62
  ] })
59
63
  }
@@ -61,6 +65,5 @@ function Toolbar({ title, children, nodeProps, ...props }) {
61
65
  }
62
66
  );
63
67
  }
64
- export {
65
- Toolbar
66
- };
68
+
69
+ export { Toolbar };
@@ -1,12 +1,13 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { invariant, defaultTheme } from "@likec4/core";
3
- import { Tooltip as Tooltip$1, ActionIcon } from "@mantine/core";
4
- import { useCallbackRef } from "@mantine/hooks";
5
- import { IconFileSymlink, IconTransform } from "@tabler/icons-react";
6
- import { useState } from "react";
7
- import { keys } from "remeda";
8
- import { useDiagram } from "../../../../hooks/useDiagram.js";
9
- import { useDiagramEventHandlers } from "../../../../context/DiagramEventHandlers.js";
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { invariant, defaultTheme } from '@likec4/core';
3
+ import { Tooltip as Tooltip$1, ActionIcon } from '@mantine/core';
4
+ import { useCallbackRef } from '@mantine/hooks';
5
+ import { IconFileSymlink, IconTransform } from '@tabler/icons-react';
6
+ import { useState } from 'react';
7
+ import { keys } from 'remeda';
8
+ import { useDiagram } from '../../../../hooks/useDiagram.js';
9
+ import { useDiagramEventHandlers } from '../../../../context/DiagramEventHandlers.js';
10
+
10
11
  const {
11
12
  primary,
12
13
  secondary,
@@ -51,7 +52,7 @@ function useHandlers(target, props) {
51
52
  });
52
53
  });
53
54
  const onChange = useCallbackRef((change) => {
54
- triggerOnChange == null ? void 0 : triggerOnChange({
55
+ triggerOnChange?.({
55
56
  change: {
56
57
  op: "change-element-style",
57
58
  style: change,
@@ -108,11 +109,11 @@ function GoToSourceButton(props) {
108
109
  onClick: (e) => {
109
110
  e.stopPropagation();
110
111
  if (props.elementId) {
111
- onOpenSource == null ? void 0 : onOpenSource({
112
+ onOpenSource?.({
112
113
  element: props.elementId
113
114
  });
114
115
  } else if (props.deploymentId) {
115
- onOpenSource == null ? void 0 : onOpenSource({
116
+ onOpenSource?.({
116
117
  deployment: props.deploymentId
117
118
  });
118
119
  }
@@ -121,11 +122,5 @@ function GoToSourceButton(props) {
121
122
  }
122
123
  ) });
123
124
  }
124
- export {
125
- BrowseRelationshipsButton,
126
- GoToSourceButton,
127
- Tooltip,
128
- colors,
129
- themedColors,
130
- useHandlers
131
- };
125
+
126
+ export { BrowseRelationshipsButton, GoToSourceButton, Tooltip, colors, themedColors, useHandlers };
@@ -1,5 +1,10 @@
1
- /* empty css */
2
- var toolbarTitle = "_1xwo2e70";
3
- export {
4
- toolbarTitle
5
- };
1
+ import { css } from '@likec4/styles/css';
2
+
3
+ const toolbarTitle = css({
4
+ fontSize: "10px",
5
+ fontWeight: 600,
6
+ cursor: "default",
7
+ userSelect: "all"
8
+ });
9
+
10
+ export { toolbarTitle };
@@ -1,13 +1,14 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Popover, PopoverTarget, PopoverDropdown, Box, FloatingIndicator, Text, Flex, UnstyledButton } from "@mantine/core";
3
- import { useHover, useUncontrolled, clampUseMovePosition, useMove, useMergedRef } from "@mantine/hooks";
4
- import { useDebouncedCallback } from "@react-hookz/web";
5
- import { IconLayoutDashboard } from "@tabler/icons-react";
6
- import { useState, forwardRef } from "react";
7
- import { useDiagram, useDiagramContext } from "../../../hooks/useDiagram.js";
8
- import { Tooltip, ActionIcon } from "./_shared.js";
9
- import { autolayoutIndicator, autolayoutButton, spacingSliderBody, spacingSliderThumb } from "./styles.css.js";
10
- import { useDiagramEventHandlers } from "../../../context/DiagramEventHandlers.js";
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { Popover, PopoverTarget, PopoverDropdown, Box, FloatingIndicator, Text, Flex, UnstyledButton } from '@mantine/core';
3
+ import { useHover, useUncontrolled, clampUseMovePosition, useMove, useMergedRef } from '@mantine/hooks';
4
+ import { useDebouncedCallback } from '@react-hookz/web';
5
+ import { IconLayoutDashboard } from '@tabler/icons-react';
6
+ import { useState, forwardRef } from 'react';
7
+ import { useDiagram, useDiagramContext } from '../../../hooks/useDiagram.js';
8
+ import { Tooltip, ActionIcon } from './_shared.js';
9
+ import { autolayoutIndicator, autolayoutButton, spacingSliderBody, spacingSliderThumb } from './styles.css.js';
10
+ import { useDiagramEventHandlers } from '../../../context/DiagramEventHandlers.js';
11
+
11
12
  const selector = (state) => ({
12
13
  viewId: state.view.id,
13
14
  autoLayout: state.view.autoLayout
@@ -30,7 +31,7 @@ const ChangeAutoLayoutButton = (props) => {
30
31
  };
31
32
  const setAutoLayout = (direction) => (event) => {
32
33
  event.stopPropagation();
33
- onChange == null ? void 0 : onChange({
34
+ onChange?.({
34
35
  change: {
35
36
  op: "change-autolayout",
36
37
  layout: {
@@ -42,7 +43,7 @@ const ChangeAutoLayoutButton = (props) => {
42
43
  };
43
44
  const setSpacing = (nodeSep, rankSep) => {
44
45
  diagram.fitDiagram();
45
- onChange == null ? void 0 : onChange({
46
+ onChange?.({
46
47
  change: {
47
48
  op: "change-autolayout",
48
49
  layout: {
@@ -154,6 +155,5 @@ const SpacingSliders = forwardRef(({
154
155
  ] }) })
155
156
  ] });
156
157
  });
157
- export {
158
- ChangeAutoLayoutButton
159
- };
158
+
159
+ export { ChangeAutoLayoutButton };
@@ -1,23 +1,24 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { ActionIconGroup, Group, Stack, Box, Badge, Loader } from "@mantine/core";
3
- import { IconFileSymlink, IconFocusCentered, IconMenu2 } from "@tabler/icons-react";
4
- import { clsx } from "clsx";
5
- import { LayoutGroup, AnimatePresence, m } from "framer-motion";
6
- import { memo } from "react";
7
- import { useControlsCustomLayout } from "../../../context/ControlsCustomLayout.js";
8
- import { useDiagramContext, useDiagram, useDiagramSyncLayoutState } from "../../../hooks/useDiagram.js";
9
- import { LikeC4Search } from "../search/LikeC4Search.js";
10
- import { Tooltip, ActionIcon } from "./_shared.js";
11
- import { ChangeAutoLayoutButton } from "./ChangeAutoLayoutButton.js";
12
- import { LayoutDriftNotification } from "./LayoutDriftNotification.js";
13
- import { ManualLayoutToolsButton } from "./ManualLayoutToolsButton.js";
14
- import { NavigationButtons } from "./NavigationButtons.js";
15
- import { actionIconGroup, navigationButtons, panel } from "./styles.css.js";
16
- import { ToggleReadonly } from "./ToggleReadonly.js";
17
- import { useDiagramEventHandlers } from "../../../context/DiagramEventHandlers.js";
18
- import { useEnabledFeatures } from "../../../context/DiagramFeatures.js";
19
- import { useMantinePortalProps } from "../../../hooks/useMantinePortalProps.js";
20
- import { stopPropagation } from "../../../utils/xyflow.js";
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { ActionIconGroup, Group, Stack, Box, Badge, Loader } from '@mantine/core';
3
+ import { IconFileSymlink, IconFocusCentered, IconMenu2 } from '@tabler/icons-react';
4
+ import { clsx } from 'clsx';
5
+ import { LayoutGroup, AnimatePresence, m } from 'framer-motion';
6
+ import { memo } from 'react';
7
+ import { useControlsCustomLayout } from '../../../context/ControlsCustomLayout.js';
8
+ import { useDiagramContext, useDiagram, useDiagramSyncLayoutState } from '../../../hooks/useDiagram.js';
9
+ import { LikeC4Search } from '../search/LikeC4Search.js';
10
+ import { Tooltip, ActionIcon } from './_shared.js';
11
+ import { ChangeAutoLayoutButton } from './ChangeAutoLayoutButton.js';
12
+ import { LayoutDriftNotification } from './LayoutDriftNotification.js';
13
+ import { ManualLayoutToolsButton } from './ManualLayoutToolsButton.js';
14
+ import { NavigationButtons } from './NavigationButtons.js';
15
+ import { actionIconGroup, navigationButtons, panel } from './styles.css.js';
16
+ import { ToggleReadonly } from './ToggleReadonly.js';
17
+ import { useDiagramEventHandlers } from '../../../context/DiagramEventHandlers.js';
18
+ import { useEnabledFeatures } from '../../../context/DiagramFeatures.js';
19
+ import { useMantinePortalProps } from '../../../hooks/useMantinePortalProps.js';
20
+ import { stopPropagation } from '../../../utils/xyflow.js';
21
+
21
22
  const ControlsDefaultLayout = ({
22
23
  burgerMenu,
23
24
  navigationButtons: navigationButtons$1,
@@ -113,7 +114,7 @@ const Controls = memo(() => {
113
114
  {
114
115
  onClick: (e) => {
115
116
  e.stopPropagation();
116
- onOpenSource == null ? void 0 : onOpenSource({ view: viewId });
117
+ onOpenSource?.({ view: viewId });
117
118
  },
118
119
  children: /* @__PURE__ */ jsx(IconFileSymlink, { stroke: 1.5 })
119
120
  }
@@ -143,6 +144,5 @@ const SyncLayoutBadge = () => {
143
144
  if (!isPending) return null;
144
145
  return /* @__PURE__ */ jsx(Badge, { color: "pink", radius: "xs", size: "xs", variant: "light", leftSection: /* @__PURE__ */ jsx(Loader, { color: "orange", size: 8 }), children: "Pending..." });
145
146
  };
146
- export {
147
- Controls
148
- };
147
+
148
+ export { Controls };
@@ -1,8 +1,8 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { HoverCard, HoverCardTarget, Overlay, HoverCardDropdown, Notification, Text, Code } from "@mantine/core";
3
- import { IconAlertTriangle } from "@tabler/icons-react";
4
- import { mantine } from "../../../theme-vars.js";
5
- import { ActionIcon } from "./_shared.js";
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { HoverCard, HoverCardTarget, Overlay, HoverCardDropdown, Notification, Text, Code } from '@mantine/core';
3
+ import { IconAlertTriangle } from '@tabler/icons-react';
4
+ import { ActionIcon } from './_shared.js';
5
+
6
6
  const LayoutDriftNotification = (props) => /* @__PURE__ */ jsxs(
7
7
  HoverCard,
8
8
  {
@@ -12,7 +12,7 @@ const LayoutDriftNotification = (props) => /* @__PURE__ */ jsxs(
12
12
  ...props,
13
13
  children: [
14
14
  /* @__PURE__ */ jsx(HoverCardTarget, { children: /* @__PURE__ */ jsxs(ActionIcon, { c: "orange", children: [
15
- /* @__PURE__ */ jsx(Overlay, { color: mantine.colors.orange.lightHover, backgroundOpacity: 1 }),
15
+ /* @__PURE__ */ jsx(Overlay, { color: "orange.lightHover", backgroundOpacity: 1 }),
16
16
  /* @__PURE__ */ jsx(IconAlertTriangle, {})
17
17
  ] }) }),
18
18
  /* @__PURE__ */ jsx(HoverCardDropdown, { p: "0", children: /* @__PURE__ */ jsxs(
@@ -38,6 +38,5 @@ const LayoutDriftNotification = (props) => /* @__PURE__ */ jsxs(
38
38
  ]
39
39
  }
40
40
  );
41
- export {
42
- LayoutDriftNotification
43
- };
41
+
42
+ export { LayoutDriftNotification };