@likec4/diagram 1.48.0 → 1.50.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 (307) hide show
  1. package/README.md +7 -9
  2. package/adhoc-editor/package.json +4 -0
  3. package/dist/LikeC4Diagram.d.ts +2 -1
  4. package/dist/LikeC4Diagram.js +77 -79
  5. package/dist/LikeC4Diagram.props.d.ts +9 -1
  6. package/dist/LikeC4ModelProvider.d.ts +4 -4
  7. package/dist/LikeC4ModelProvider.js +2 -2
  8. package/dist/LikeC4ProjectsOverview.d.ts +3 -2
  9. package/dist/LikeC4ProjectsProvider.d.ts +2 -1
  10. package/dist/LikeC4ProjectsProvider.js +4 -4
  11. package/dist/LikeC4Styles.d.ts +2 -1
  12. package/dist/LikeC4View.d.ts +14 -1
  13. package/dist/LikeC4View.js +31 -18
  14. package/dist/ReactLikeC4.d.ts +2 -1
  15. package/dist/ReactLikeC4.js +3 -1
  16. package/dist/StaticLikeC4Diagram.d.ts +2 -1
  17. package/dist/StaticLikeC4Diagram.js +1 -0
  18. package/dist/_virtual/store-1b2fbb72.cjs.js +3 -0
  19. package/dist/_virtual/xstate-store-react.cjs.js +5 -0
  20. package/dist/_virtual/xstate-store-react.cjs2.js +3 -0
  21. package/dist/adhoc-editor/EditorPanel.d.ts +1 -0
  22. package/dist/adhoc-editor/EditorPanel.js +105 -0
  23. package/dist/adhoc-editor/ElementsTree.d.ts +2 -0
  24. package/dist/adhoc-editor/ElementsTree.js +142 -0
  25. package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +1 -1
  26. package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +46 -43
  27. package/dist/adhoc-editor/components/Tree.d.ts +48 -0
  28. package/dist/adhoc-editor/components/Tree.js +296 -0
  29. package/dist/adhoc-editor/hooks.d.ts +3 -3
  30. package/dist/adhoc-editor/hooks.js +5 -23
  31. package/dist/adhoc-editor/index.d.ts +1 -1
  32. package/dist/adhoc-editor/index.js +1 -0
  33. package/dist/adhoc-editor/{ActorProvider.d.ts → state/ActorProvider.d.ts} +1 -3
  34. package/dist/adhoc-editor/{ActorProvider.js → state/ActorProvider.js} +10 -11
  35. package/dist/adhoc-editor/state/actor.d.ts +13 -0
  36. package/dist/adhoc-editor/{actor.editor.d.ts → state/actor.editor.d.ts} +6 -4
  37. package/dist/adhoc-editor/state/actor.editor.js +205 -0
  38. package/dist/adhoc-editor/{actor.js → state/actor.js} +2 -6
  39. package/dist/adhoc-editor/{actor.layouter.d.ts → state/actor.layouter.d.ts} +7 -4
  40. package/dist/adhoc-editor/{actor.layouter.js → state/actor.layouter.js} +17 -13
  41. package/dist/adhoc-editor/{actor.types.d.ts → state/actor.types.d.ts} +12 -6
  42. package/dist/adhoc-editor/{actor.types.js → state/actor.types.js} +8 -1
  43. package/dist/adhoc-editor/state/panel.d.ts +95 -0
  44. package/dist/adhoc-editor/state/panel.js +139 -0
  45. package/dist/adhoc-editor/state/utils.d.ts +17 -0
  46. package/dist/adhoc-editor/state/utils.js +32 -0
  47. package/dist/adhoc-editor/useElementsTree.d.ts +18 -0
  48. package/dist/adhoc-editor/useElementsTree.js +130 -0
  49. package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +1 -1
  50. package/dist/base/const.d.ts +1 -0
  51. package/dist/base-primitives/compound/CompoundActionButton.js +26 -12
  52. package/dist/base-primitives/compound/CompoundDetailsButton.js +22 -9
  53. package/dist/base-primitives/compound/CompoundNodeContainer.js +5 -4
  54. package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
  55. package/dist/base-primitives/edge/EdgeLabel.js +3 -4
  56. package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +2 -1
  57. package/dist/base-primitives/edge/EdgeLabelContainer.js +12 -19
  58. package/dist/base-primitives/edge/EdgeMarkers.js +3 -3
  59. package/dist/base-primitives/element/ElementActionButtons.js +35 -10
  60. package/dist/base-primitives/element/ElementDetailsButton.js +47 -18
  61. package/dist/base-primitives/element/ElementNodeContainer.d.ts +3 -3
  62. package/dist/base-primitives/element/ElementNodeContainer.js +23 -10
  63. package/dist/base-primitives/element/ElementShape.d.ts +4 -4
  64. package/dist/base-primitives/element/ElementShape.js +71 -8
  65. package/dist/components/ErrorFallback.js +1 -1
  66. package/dist/components/Link.js +3 -3
  67. package/dist/components/Logo.js +1 -1
  68. package/dist/components/NavigationPanel.js +2 -4
  69. package/dist/components/PortalToContainer.js +3 -4
  70. package/dist/components/RootContainer.js +9 -16
  71. package/dist/components/ViewNotFound.d.ts +3 -3
  72. package/dist/components/ViewNotFound.js +30 -26
  73. package/dist/context/CurrentViewModelProvider.d.ts +2 -0
  74. package/dist/context/CurrentViewModelProvider.js +12 -0
  75. package/dist/context/DefaultMantineProvider.d.ts +1 -1
  76. package/dist/context/DefaultMantineProvider.js +10 -1
  77. package/dist/context/DiagramEventHandlers.d.ts +5 -5
  78. package/dist/context/DiagramEventHandlers.js +10 -4
  79. package/dist/context/DiagramFeatures.d.ts +8 -7
  80. package/dist/context/DiagramFeatures.js +5 -3
  81. package/dist/context/FramerMotionConfig.d.ts +1 -3
  82. package/dist/context/IconRenderer.d.ts +5 -4
  83. package/dist/context/IconRenderer.js +51 -24
  84. package/dist/context/LikeC4ModelContext.d.ts +10 -5
  85. package/dist/context/LikeC4ModelContext.js +11 -3
  86. package/dist/context/LikeC4ProjectsContext.d.ts +3 -2
  87. package/dist/context/LikeC4ProjectsContext.js +6 -2
  88. package/dist/context/RootContainerContext.d.ts +10 -3
  89. package/dist/context/RootContainerContext.js +8 -3
  90. package/dist/context/TagStylesContext.js +1 -1
  91. package/dist/custom/index.js +16 -15
  92. package/dist/editor/LikeC4EditorProvider.js +1 -1
  93. package/dist/editor/applyChangesToManualLayout.js +7 -7
  94. package/dist/editor/editorActor.actions.js +20 -20
  95. package/dist/editor/editorActor.setup.js +1 -1
  96. package/dist/editor/editorActor.states.js +0 -9
  97. package/dist/editor/useEditorActorLogic.d.ts +1 -2
  98. package/dist/editor/useEditorActorLogic.js +8 -11
  99. package/dist/hooks/index.d.ts +2 -2
  100. package/dist/hooks/safeContext.d.ts +4 -5
  101. package/dist/hooks/useCallbackRef.js +7 -6
  102. package/dist/hooks/useCurrentView.js +5 -10
  103. package/dist/hooks/useCurrentViewModel.d.ts +2 -6
  104. package/dist/hooks/useCurrentViewModel.js +3 -7
  105. package/dist/hooks/useDiagram.d.ts +9 -1
  106. package/dist/hooks/useDiagram.js +8 -2
  107. package/dist/hooks/useDiagramCompareLayout.d.ts +5 -5
  108. package/dist/hooks/useLikeC4ElementsTree.d.ts +1 -1
  109. package/dist/hooks/useLikeC4ElementsTree.js +1 -1
  110. package/dist/hooks/useLikeC4Model.d.ts +6 -2
  111. package/dist/hooks/useLikeC4Model.js +7 -9
  112. package/dist/hooks/useLikeC4Project.d.ts +4 -6
  113. package/dist/hooks/useLikeC4Project.js +19 -31
  114. package/dist/hooks/useLikeC4Styles.js +3 -9
  115. package/dist/hooks/useMantinePortalProps.d.ts +1 -1
  116. package/dist/hooks/useMediaPrint.d.ts +0 -2
  117. package/dist/hooks/useOverlaysActor.js +4 -4
  118. package/dist/hooks/useSearchActor.js +4 -4
  119. package/dist/index.d.ts +1 -3
  120. package/dist/index.js +2 -2
  121. package/dist/likec4diagram/DiagramXYFlow.d.ts +2 -1
  122. package/dist/likec4diagram/DiagramXYFlow.js +5 -7
  123. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +22 -24
  124. package/dist/likec4diagram/custom/edges/edges.css.js +2 -1
  125. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +40 -55
  126. package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
  127. package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +1 -2
  128. package/dist/likec4diagram/custom/nodes/NodeDrifts.js +3 -20
  129. package/dist/likec4diagram/custom/nodes/NodeNotes.d.ts +6 -0
  130. package/dist/likec4diagram/custom/nodes/NodeNotes.js +286 -0
  131. package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +4 -2
  132. package/dist/likec4diagram/custom/nodes/nodes.js +5 -2
  133. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +12 -8
  134. package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +3 -3
  135. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +1 -1
  136. package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +8 -28
  137. package/dist/likec4diagram/state/DiagramActorProvider.js +30 -56
  138. package/dist/likec4diagram/state/diagram-api.d.ts +11 -0
  139. package/dist/likec4diagram/state/diagram-api.js +15 -0
  140. package/dist/likec4diagram/state/machine.actions.d.ts +27 -0
  141. package/dist/likec4diagram/state/machine.actions.js +78 -21
  142. package/dist/likec4diagram/state/machine.actions.layout.d.ts +1 -0
  143. package/dist/likec4diagram/state/machine.actions.layout.js +38 -3
  144. package/dist/likec4diagram/state/machine.js +4 -1
  145. package/dist/likec4diagram/state/machine.setup.d.ts +19 -2
  146. package/dist/likec4diagram/state/machine.state.navigating.js +1 -1
  147. package/dist/likec4diagram/state/machine.state.ready.d.ts +61 -1
  148. package/dist/likec4diagram/state/machine.state.ready.js +11 -3
  149. package/dist/likec4diagram/state/utils.d.ts +2 -1
  150. package/dist/likec4diagram/state/utils.js +1 -1
  151. package/dist/likec4diagram/types.d.ts +2 -2
  152. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +1 -1
  153. package/dist/likec4diagram/ui/notation/NotationPanel.d.ts +1 -1
  154. package/dist/likec4diagram/ui/notation/NotationPanel.js +6 -29
  155. package/dist/likec4diagram/useLayoutConstraints.d.ts +12 -12
  156. package/dist/likec4diagram/useLayoutConstraints.js +125 -86
  157. package/dist/likec4diagram/xyflow-diagram/diagram-view.js +2 -0
  158. package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +7 -2
  159. package/dist/navigationpanel/NavigationPanel.js +2 -2
  160. package/dist/navigationpanel/NavigationPanelDropdown.js +13 -13
  161. package/dist/navigationpanel/_common.js +2 -2
  162. package/dist/navigationpanel/actor.js +1 -1
  163. package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
  164. package/dist/navigationpanel/comparepanel/ComparePanel.js +155 -29
  165. package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
  166. package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +1 -0
  167. package/dist/navigationpanel/comparepanel/DriftsSummary.js +264 -0
  168. package/dist/navigationpanel/controls/DetailsControls.js +4 -4
  169. package/dist/navigationpanel/controls/LayoutWarning.js +1 -1
  170. package/dist/navigationpanel/controls/LogoButton.js +1 -1
  171. package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
  172. package/dist/navigationpanel/controls/OpenSource.js +1 -1
  173. package/dist/navigationpanel/controls/SearchControl.js +1 -1
  174. package/dist/navigationpanel/controls/ToggleReadonly.js +3 -3
  175. package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
  176. package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
  177. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
  178. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
  179. package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
  180. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +6 -6
  181. package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +16 -16
  182. package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
  183. package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +1 -1
  184. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +1 -1
  185. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +1 -1
  186. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +2 -2
  187. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +1 -1
  188. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +1 -1
  189. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +1 -1
  190. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +1 -1
  191. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +2 -2
  192. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +1 -1
  193. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +1 -1
  194. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +1 -1
  195. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +1 -1
  196. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +14 -0
  197. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +2 -2
  198. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +2 -2
  199. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +1 -1
  200. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +1 -1
  201. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +1 -1
  202. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +2 -2
  203. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +14 -0
  204. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +1 -1
  205. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +1 -1
  206. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +14 -0
  207. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +1 -1
  208. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +2 -2
  209. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +2 -2
  210. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +2 -2
  211. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +2 -2
  212. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +2 -2
  213. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +2 -2
  214. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +2 -2
  215. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +2 -2
  216. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +1 -1
  217. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +1 -1
  218. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +2 -2
  219. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +2 -2
  220. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +1 -1
  221. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +1 -1
  222. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +1 -1
  223. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +1 -1
  224. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +2 -2
  225. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +2 -2
  226. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +14 -0
  227. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +2 -2
  228. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +1 -1
  229. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +1 -1
  230. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +1 -1
  231. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +2 -2
  232. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +1 -1
  233. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +1 -1
  234. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +1 -1
  235. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +1 -1
  236. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +1 -1
  237. package/dist/node_modules/.pnpm/@xstate_store@3.14.0_react@19.2.4/node_modules/@xstate/store/dist/store-1b2fbb72.cjs.js +742 -0
  238. package/dist/node_modules/.pnpm/@xstate_store@3.14.0_react@19.2.4/node_modules/@xstate/store/react/dist/xstate-store-react.cjs.js +175 -0
  239. package/dist/overlays/element-details/ElementDetailsCard.css.js +11 -11
  240. package/dist/overlays/element-details/ElementDetailsCard.js +44 -45
  241. package/dist/overlays/element-details/MetadataValue.js +7 -7
  242. package/dist/overlays/element-details/TabPanelDeployments.js +4 -4
  243. package/dist/overlays/element-details/TabPanelRelationships.css.js +5 -5
  244. package/dist/overlays/element-details/TabPanelRelationships.js +4 -5
  245. package/dist/overlays/element-details/TabPanelStructure.css.js +3 -3
  246. package/dist/overlays/element-details/TabPanelStructure.js +1 -1
  247. package/dist/overlays/element-details/actorContext.d.ts +1 -1
  248. package/dist/overlays/overlaysActor.js +1 -1
  249. package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
  250. package/dist/overlays/relationship-details/SelectEdge.css.js +4 -4
  251. package/dist/overlays/relationship-details/SelectEdge.js +2 -2
  252. package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
  253. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +6 -6
  254. package/dist/overlays/relationships-browser/SelectElement.css.js +2 -2
  255. package/dist/overlays/relationships-browser/SelectElement.js +2 -2
  256. package/dist/overlays/relationships-browser/actor.js +1 -1
  257. package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
  258. package/dist/overlays/relationships-browser/custom/EmptyNode.js +1 -1
  259. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +1 -1
  260. package/dist/projects-overview/ProjectsOverview.js +2 -2
  261. package/dist/projects-overview/ProjectsOverviewXY.d.ts +1 -5
  262. package/dist/projects-overview/ProjectsOverviewXY.js +1 -1
  263. package/dist/projects-overview/actor.d.ts +1 -1
  264. package/dist/projects-overview/context.d.ts +2 -2
  265. package/dist/projects-overview/context.js +2 -1
  266. package/dist/projects-overview/custom/nodeTypes.js +1 -1
  267. package/dist/search/Search.d.ts +2 -1
  268. package/dist/search/Search.js +108 -87
  269. package/dist/search/components/ElementsColumn.css.js +3 -3
  270. package/dist/search/components/ElementsColumn.js +93 -59
  271. package/dist/search/components/PickView.js +8 -4
  272. package/dist/search/components/SearchByTags.js +1 -1
  273. package/dist/search/components/SearchInput.js +2 -2
  274. package/dist/search/components/ViewsColum.d.ts +2 -1
  275. package/dist/search/components/ViewsColum.js +39 -35
  276. package/dist/search/components/ViewsColumn.css.js +1 -1
  277. package/dist/search/components/_shared.css.js +11 -11
  278. package/dist/search/components/utils.js +1 -4
  279. package/dist/search/hooks.js +4 -1
  280. package/dist/search/searchActor.d.ts +12 -2
  281. package/dist/search/searchActor.js +60 -4
  282. package/dist/shadowroot/ShadowRoot.d.ts +5 -2
  283. package/dist/shadowroot/ShadowRoot.js +7 -5
  284. package/dist/shadowroot/styles.css.js +3 -2
  285. package/dist/styles.css2.js +1 -1
  286. package/dist/utils/view-bounds.d.ts +3 -2
  287. package/dist/utils/view-bounds.js +1 -1
  288. package/dist/utils/xyflow.d.ts +10 -5
  289. package/dist/utils/xyflow.js +24 -22
  290. package/package.json +33 -32
  291. package/panda.buildinfo.json +176 -87
  292. package/styles-min.css +1 -1
  293. package/styles.css +1 -1
  294. package/bundle/index.js +0 -52554
  295. package/bundle/package.json +0 -4
  296. package/dist/adhoc-editor/EditorNavigationPanel.d.ts +0 -1
  297. package/dist/adhoc-editor/EditorNavigationPanel.js +0 -32
  298. package/dist/adhoc-editor/SelectElementOverlay.d.ts +0 -1
  299. package/dist/adhoc-editor/SelectElementOverlay.js +0 -124
  300. package/dist/adhoc-editor/actor.d.ts +0 -131
  301. package/dist/adhoc-editor/actor.editor.js +0 -96
  302. package/dist/adhoc-editor/viewrules/ViewRulesPanel.js +0 -104
  303. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js +0 -14
  304. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -14
  305. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -14
  306. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -14
  307. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -14
@@ -1,41 +1,167 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { hstack } from '@likec4/styles/patterns';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { css } from '@likec4/styles/css';
3
+ import { HStack } from '@likec4/styles/jsx';
4
+ import { hstack, vstack } from '@likec4/styles/patterns';
5
+ import { Divider, Button } from '@mantine/core';
6
+ import { useIsMounted } from '@react-hookz/web';
3
7
  import { AnimatePresence } from 'motion/react';
4
8
  import * as m from 'motion/react-m';
5
- import { memo } from 'react';
9
+ import { memo, useState } from 'react';
10
+ import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js';
11
+ import { Tooltip } from '../_common.js';
6
12
  import { ComparePanelControls } from './ComparePanelControls.js';
13
+ import { DriftsSummary } from './DriftsSummary.js';
14
+ import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
7
15
  import { useEnabledFeatures } from '../../context/DiagramFeatures.js';
16
+ import { useCallbackRef } from '../../hooks/useCallbackRef.js';
8
17
 
18
+ const variants = {
19
+ initial: {
20
+ opacity: 0,
21
+ translateX: -20
22
+ },
23
+ animate: {
24
+ opacity: 1,
25
+ translateX: 0
26
+ },
27
+ exit: {
28
+ opacity: 0,
29
+ translateX: -20
30
+ }
31
+ };
9
32
  const ComparePanel = memo(() => {
33
+ const portalProps = useMantinePortalProps();
34
+ const isMounted = useIsMounted();
10
35
  const { enableCompareWithLatest } = useEnabledFeatures();
11
- return /* @__PURE__ */ jsx(AnimatePresence, { children: enableCompareWithLatest && /* @__PURE__ */ jsx(
12
- m.div,
13
- {
14
- layout: "position",
15
- className: hstack({
16
- gap: "2",
17
- layerStyle: "likec4.panel",
18
- position: "relative",
19
- px: "2",
20
- py: "1",
21
- pl: "3",
22
- pointerEvents: "all"
23
- }),
24
- initial: {
25
- opacity: 0,
26
- translateX: -20
27
- },
28
- animate: {
29
- opacity: 1,
30
- translateX: 0
36
+ const [ctx, ops] = useDiagramCompareLayout();
37
+ const [isProcessing, setIsProcessing] = useState(false);
38
+ const resetProcessing = () => {
39
+ setTimeout(() => {
40
+ if (isMounted()) {
41
+ setIsProcessing(false);
42
+ }
43
+ }, 500);
44
+ };
45
+ const onApplyLatest = useCallbackRef((e) => {
46
+ if (!ctx.canApplyLatest || ctx.layout === "auto") {
47
+ window.alert(
48
+ "Cannot apply changes from latest version when using auto layout. Please switch to manual layout first."
49
+ );
50
+ return;
51
+ }
52
+ e.stopPropagation();
53
+ setIsProcessing(true);
54
+ setTimeout(() => {
55
+ ops.applyLatestToManual();
56
+ resetProcessing();
57
+ }, 200);
58
+ });
59
+ const onResetManualLayout = useCallbackRef((e) => {
60
+ e.stopPropagation();
61
+ setIsProcessing(true);
62
+ setTimeout(() => {
63
+ ops.resetManualLayout();
64
+ resetProcessing();
65
+ }, 200);
66
+ });
67
+ return /* @__PURE__ */ jsx(AnimatePresence, { children: enableCompareWithLatest && /* @__PURE__ */ jsxs(Fragment, { children: [
68
+ /* @__PURE__ */ jsx(
69
+ m.div,
70
+ {
71
+ layout: "size",
72
+ layoutDependency: ctx.drifts || ctx.layout,
73
+ className: hstack({
74
+ gap: "2",
75
+ layerStyle: "likec4.panel",
76
+ position: "relative",
77
+ px: "2",
78
+ py: "1",
79
+ pl: "3",
80
+ pointerEvents: "all"
81
+ }),
82
+ variants,
83
+ initial: "initial",
84
+ animate: "animate",
85
+ exit: "exit",
86
+ children: /* @__PURE__ */ jsx(ComparePanelControls, {})
31
87
  },
32
- exit: {
33
- opacity: 0,
34
- translateX: -20
88
+ "ComparePanel"
89
+ ),
90
+ /* @__PURE__ */ jsxs(
91
+ m.div,
92
+ {
93
+ layout: "size",
94
+ layoutDependency: ctx.drifts || ctx.layout,
95
+ variants,
96
+ initial: "initial",
97
+ animate: "animate",
98
+ exit: "exit",
99
+ className: vstack({
100
+ gap: "4",
101
+ layerStyle: "likec4.panel",
102
+ position: "relative",
103
+ p: "4",
104
+ pointerEvents: "all",
105
+ height: "auto",
106
+ overflow: "hidden",
107
+ maxHeight: "calc(100cqh - 180px)",
108
+ "@/md": {
109
+ minWidth: "200px"
110
+ }
111
+ }),
112
+ children: [
113
+ /* @__PURE__ */ jsx(DriftsSummary, {}),
114
+ ctx.canApplyLatest && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(m.div, { layout: "position", className: css({ flex: "0" }), children: [
115
+ /* @__PURE__ */ jsx(Divider, { orientation: "horizontal", size: "xs", mb: "xs" }),
116
+ /* @__PURE__ */ jsxs(HStack, { children: [
117
+ /* @__PURE__ */ jsx(
118
+ Tooltip,
119
+ {
120
+ openDelay: 100,
121
+ disabled: ctx.layout !== "auto",
122
+ label: "Switch to manual layout to apply changes.",
123
+ ...portalProps,
124
+ children: /* @__PURE__ */ jsx(
125
+ Button,
126
+ {
127
+ loading: isProcessing,
128
+ size: "xs",
129
+ color: "orange",
130
+ variant: "light",
131
+ onClick: onApplyLatest,
132
+ disabled: ctx.layout === "auto",
133
+ children: "Apply changes"
134
+ }
135
+ )
136
+ }
137
+ ),
138
+ !isProcessing && /* @__PURE__ */ jsx(
139
+ Tooltip,
140
+ {
141
+ openDelay: 100,
142
+ disabled: ctx.layout !== "manual",
143
+ label: "Reset manual layout",
144
+ ...portalProps,
145
+ children: /* @__PURE__ */ jsx(
146
+ Button,
147
+ {
148
+ hidden: isProcessing,
149
+ size: "xs",
150
+ color: "orange",
151
+ variant: "subtle",
152
+ onClick: onResetManualLayout,
153
+ children: "Reset"
154
+ }
155
+ )
156
+ }
157
+ )
158
+ ] })
159
+ ] }) })
160
+ ]
35
161
  },
36
- children: /* @__PURE__ */ jsx(ComparePanelControls, {})
37
- }
38
- ) });
162
+ "ListOfDrifts"
163
+ )
164
+ ] }) });
39
165
  });
40
166
  ComparePanel.displayName = "ComparePanel";
41
167
 
@@ -5,7 +5,7 @@ import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js'
5
5
  import { PanelActionIcon } from '../_common.js';
6
6
  import { CompareActionsMenu } from './CompareActionsMenu.js';
7
7
  import { LayoutTypeSwitcher } from './LayoutTypeSwitcher.js';
8
- import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
8
+ import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
9
9
 
10
10
  const Divider = Divider$1.withProps({
11
11
  mx: 2,
@@ -0,0 +1 @@
1
+ export declare function DriftsSummary(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,264 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { deepEqual } from 'fast-equals';
3
+ import { styled, Txt } from '@likec4/styles/jsx';
4
+ import { vstack } from '@likec4/styles/patterns';
5
+ import { useDebouncedCallback } from '@mantine/hooks';
6
+ import { AnimatePresence, m, stagger } from 'motion/react';
7
+ import { hasAtLeast, map, pipe, filter } from 'remeda';
8
+ import { useDiagramSnapshot, selectDiagramActorContext } from '../../hooks/useDiagram.js';
9
+ import { useDiagram } from '../../hooks/safeContext.js';
10
+ import { useCallbackRef } from '../../hooks/useCallbackRef.js';
11
+
12
+ const hasDrifts = (item) => {
13
+ return !!item.drifts && hasAtLeast(item.drifts, 1);
14
+ };
15
+ const selectDrifts = selectDiagramActorContext((ctx) => ({
16
+ view: ctx.view.drifts ?? [],
17
+ nodes: pipe(
18
+ ctx.view.nodes,
19
+ map((node) => ({
20
+ id: node.id,
21
+ name: node.title,
22
+ drifts: node.drifts
23
+ })),
24
+ filter(hasDrifts)
25
+ ),
26
+ edges: pipe(
27
+ ctx.view.edges,
28
+ map((edge) => ({
29
+ edgeId: edge.id,
30
+ drifts: edge.drifts
31
+ })),
32
+ filter(hasDrifts)
33
+ )
34
+ }));
35
+ const variants = {
36
+ initial: {
37
+ opacity: 0,
38
+ translateY: -8
39
+ },
40
+ animate: {
41
+ opacity: 1,
42
+ translateY: 0,
43
+ transition: {
44
+ delayChildren: stagger(0.1)
45
+ }
46
+ },
47
+ exit: {
48
+ opacity: 0,
49
+ translateY: -8,
50
+ transition: {
51
+ delayChildren: stagger(0.2, { startDelay: 0.5, from: "last" })
52
+ }
53
+ }
54
+ };
55
+ function DriftsSummary() {
56
+ const selected = useDiagramSnapshot(selectDrifts, deepEqual);
57
+ const diagram = useDiagram();
58
+ const onMouseLeaveDebounced = useDebouncedCallback(
59
+ (e) => {
60
+ e.stopPropagation();
61
+ diagram.unhighlightAll();
62
+ },
63
+ 150
64
+ );
65
+ const onMouseEnter = useCallbackRef((e) => {
66
+ const target = e.currentTarget.getAttribute("data-drift-type");
67
+ const id = e.currentTarget.getAttribute("data-drift-id");
68
+ if (target === "node" && id) {
69
+ e.stopPropagation();
70
+ onMouseLeaveDebounced.cancel();
71
+ diagram.highlightNode(id);
72
+ return;
73
+ }
74
+ if (target === "edge" && id) {
75
+ e.stopPropagation();
76
+ onMouseLeaveDebounced.cancel();
77
+ diagram.highlightEdge(id);
78
+ return;
79
+ }
80
+ });
81
+ const onClick = useCallbackRef((e) => {
82
+ const target = e.currentTarget.getAttribute("data-drift-type");
83
+ const id = e.currentTarget.getAttribute("data-drift-id");
84
+ if (target === "node" && id) {
85
+ e.stopPropagation();
86
+ diagram.centerViewportOnNode(id);
87
+ return;
88
+ }
89
+ if (target === "edge" && id) {
90
+ e.stopPropagation();
91
+ diagram.centerViewportOnEdge(id);
92
+ return;
93
+ }
94
+ });
95
+ const handlers = {
96
+ onMouseEnter,
97
+ onMouseLeave: onMouseLeaveDebounced,
98
+ onClick
99
+ };
100
+ const { view, nodes, edges } = selected;
101
+ if (view.length === 0 && nodes.length === 0 && edges.length === 0) {
102
+ return null;
103
+ }
104
+ return /* @__PURE__ */ jsx(AnimatePresence, { propagate: true, mode: "wait", children: /* @__PURE__ */ jsxs(
105
+ m.div,
106
+ {
107
+ layout: "size",
108
+ variants,
109
+ initial: "initial",
110
+ animate: "animate",
111
+ exit: "exit",
112
+ layoutDependency: selected,
113
+ className: vstack({
114
+ mx: "[calc({spacing.2} * -1)]",
115
+ px: "2",
116
+ flex: "1",
117
+ height: "100%",
118
+ overflow: "scroll",
119
+ gap: "4"
120
+ }),
121
+ children: [
122
+ hasAtLeast(view, 1) && /* @__PURE__ */ jsx(ViewDrifts, { drifts: view }),
123
+ nodes.length > 0 && /* @__PURE__ */ jsxs(m.div, { layout: "size", children: [
124
+ /* @__PURE__ */ jsx(SectionHeader, { children: "Elements:" }),
125
+ /* @__PURE__ */ jsx(m.div, { layout: "size", className: vstack({ mt: "2", gap: "2" }), children: map(
126
+ nodes,
127
+ (node) => /* @__PURE__ */ jsx(NodeDrifts, { ...node, ...handlers }, node.id)
128
+ ) })
129
+ ] }, `nodes-drifts`),
130
+ edges.length > 0 && /* @__PURE__ */ jsxs(m.div, { layout: "size", children: [
131
+ /* @__PURE__ */ jsx(SectionHeader, { children: "Relationships:" }),
132
+ /* @__PURE__ */ jsx(m.div, { layout: "size", className: vstack({ mt: "2", gap: "2" }), children: map(edges, (edge) => /* @__PURE__ */ jsx(EdgeDrifts, { ...edge, ...handlers }, edge.edgeId)) })
133
+ ] }, `edges-drifts`)
134
+ ]
135
+ },
136
+ `drifts-summary`
137
+ ) });
138
+ }
139
+ function ViewDrifts({ drifts }) {
140
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
141
+ m.div,
142
+ {
143
+ layout: "position",
144
+ className: vstack({
145
+ gap: "2"
146
+ }),
147
+ children: [
148
+ /* @__PURE__ */ jsx(SectionHeader, { children: "View drifts (summary):" }),
149
+ /* @__PURE__ */ jsx(DriftsGroup, { children: map(drifts, (drift) => /* @__PURE__ */ jsx(DriftLabel, { children: drift }, drift)) }, `view-drifts`)
150
+ ]
151
+ },
152
+ `view-drifts-header`
153
+ ) });
154
+ }
155
+ function NodeDrifts({ id, name, drifts, ...handlers }) {
156
+ return /* @__PURE__ */ jsxs(
157
+ DriftsGroup,
158
+ {
159
+ "data-drift-type": "node",
160
+ "data-drift-id": id,
161
+ ...handlers,
162
+ children: [
163
+ /* @__PURE__ */ jsx(
164
+ Txt,
165
+ {
166
+ truncate: true,
167
+ css: {
168
+ maxWidth: {
169
+ base: 160,
170
+ "@/sm": 180,
171
+ "@/md": 250
172
+ }
173
+ },
174
+ color: "likec4.compare.manual.outline",
175
+ fontSize: "xs",
176
+ lineHeight: "sm",
177
+ fontWeight: "medium",
178
+ children: name
179
+ }
180
+ ),
181
+ map(drifts, (drift) => /* @__PURE__ */ jsx(DriftLabel, { children: drift }, id + drift))
182
+ ]
183
+ },
184
+ `node-drifts-${id}`
185
+ );
186
+ }
187
+ function EdgeDrifts({ edgeId, drifts, ...handlers }) {
188
+ return /* @__PURE__ */ jsx(
189
+ DriftsGroup,
190
+ {
191
+ "data-drift-type": "edge",
192
+ "data-drift-id": edgeId,
193
+ ...handlers,
194
+ children: map(drifts, (drift) => /* @__PURE__ */ jsx(
195
+ DriftLabel,
196
+ {
197
+ children: drift
198
+ },
199
+ edgeId + drift
200
+ ))
201
+ },
202
+ `edge-drifts-${edgeId}`
203
+ );
204
+ }
205
+ const DriftsGroup = styled(m.div, {
206
+ base: vstack.raw({
207
+ gap: "1",
208
+ px: "3",
209
+ py: "2",
210
+ cursor: "default",
211
+ rounded: "sm",
212
+ backgroundColor: "likec4.compare.manual/10",
213
+ border: "1px solid {colors.likec4.compare.manual.outline/20}",
214
+ _hover: {
215
+ backgroundColor: "likec4.compare.manual/20",
216
+ borderColor: "likec4.compare.manual.outline/25"
217
+ }
218
+ })
219
+ }, {
220
+ defaultProps: {
221
+ className: "group",
222
+ variants,
223
+ layout: "size",
224
+ initial: "initial",
225
+ animate: "animate",
226
+ exit: "exit"
227
+ }
228
+ });
229
+ const SectionHeader = styled(m.div, {
230
+ base: {
231
+ userSelect: "none",
232
+ fontWeight: "medium",
233
+ textStyle: "dimmed.xs",
234
+ pl: "2"
235
+ }
236
+ }, {
237
+ defaultProps: {
238
+ variants,
239
+ layout: "position",
240
+ initial: "initial",
241
+ animate: "animate",
242
+ exit: "exit"
243
+ }
244
+ });
245
+ const DriftLabel = styled(m.div, {
246
+ base: {
247
+ userSelect: "none",
248
+ textStyle: "xs",
249
+ color: {
250
+ base: "text",
251
+ _groupHover: "text.bright"
252
+ }
253
+ }
254
+ }, {
255
+ defaultProps: {
256
+ variants,
257
+ layout: "position",
258
+ initial: "initial",
259
+ animate: "animate",
260
+ exit: "exit"
261
+ }
262
+ });
263
+
264
+ export { DriftsSummary };
@@ -12,8 +12,8 @@ import { Link } from '../../components/Link.js';
12
12
  import { useOnDiagramEvent } from '../../hooks/useDiagram.js';
13
13
  import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
14
14
  import { useNavigationActorSnapshot } from '../hooks.js';
15
- import IconId from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js';
16
- import IconLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js';
15
+ import IconId from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js';
16
+ import IconLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js';
17
17
  import { useDiagram } from '../../hooks/safeContext.js';
18
18
  import { ElementTag } from '../../base-primitives/element/ElementTags.js';
19
19
  import { Markdown } from '../../base-primitives/Markdown.js';
@@ -111,7 +111,7 @@ const ViewDetailsCardTrigger = ({ linksCount, onOpen }) => /* @__PURE__ */ jsx(P
111
111
  const SectionHeader = styled("div", {
112
112
  base: {
113
113
  fontSize: "xs",
114
- color: "mantine.colors.dimmed",
114
+ color: "text.dimmed",
115
115
  fontWeight: "medium",
116
116
  userSelect: "none",
117
117
  mb: "xxs"
@@ -241,7 +241,7 @@ const ViewBadge = ({
241
241
  };
242
242
  const ViewBadgeLabel = styled("div", {
243
243
  base: {
244
- color: "mantine.colors.dimmed",
244
+ color: "text.dimmed",
245
245
  fontWeight: "medium",
246
246
  fontSize: "xxs",
247
247
  userSelect: "none"
@@ -8,7 +8,7 @@ import * as m from 'motion/react-m';
8
8
  import { memo, Fragment as Fragment$1 } from 'react';
9
9
  import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js';
10
10
  import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
11
- import IconAlertTriangle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js';
11
+ import IconAlertTriangle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js';
12
12
 
13
13
  const LayoutWarning = memo(() => {
14
14
  const [ctx, { toggleCompare }] = useDiagramCompareLayout();
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { cx, css } from '@likec4/styles/css';
2
+ import { css, cx } from '@likec4/styles/css';
3
3
  import { hstack } from '@likec4/styles/patterns';
4
4
  import { UnstyledButton } from '@mantine/core';
5
5
  import * as m from 'motion/react-m';
@@ -4,8 +4,8 @@ import * as m from 'motion/react-m';
4
4
  import { useDiagramContext } from '../../hooks/useDiagram.js';
5
5
  import { PanelActionIcon } from '../_common.js';
6
6
  import { useDiagram } from '../../hooks/safeContext.js';
7
- import IconArrowLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js';
8
- import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
7
+ import IconArrowLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js';
8
+ import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
9
9
 
10
10
  const NavigationButtons = () => {
11
11
  const diagram = useDiagram();
@@ -3,7 +3,7 @@ import { useDiagramEventHandlers } from '../../context/DiagramEventHandlers.js';
3
3
  import { useEnabledFeatures } from '../../context/DiagramFeatures.js';
4
4
  import { useCurrentViewId } from '../../hooks/useCurrentView.js';
5
5
  import { Tooltip, PanelActionIcon } from '../_common.js';
6
- import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
6
+ import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
7
7
 
8
8
  const OpenSource = () => {
9
9
  const viewId = useCurrentViewId();
@@ -9,7 +9,7 @@ import '@xstate/react';
9
9
  import 'fast-equals';
10
10
  import 'react';
11
11
  import { useDiagram } from '../../hooks/safeContext.js';
12
- import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js';
12
+ import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js';
13
13
 
14
14
  function SearchControl() {
15
15
  const diagram = useDiagram();
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { cx, css } from '@likec4/styles/css';
2
+ import { css, cx } from '@likec4/styles/css';
3
3
  import { hstack } from '@likec4/styles/patterns';
4
4
  import { UnstyledButton } from '@mantine/core';
5
5
  import { AnimatePresence } from 'motion/react';
@@ -8,8 +8,8 @@ import { isTruthy } from 'remeda';
8
8
  import { useDiagramContext } from '../../hooks/useDiagram.js';
9
9
  import { deriveToggledFeatures } from '../../likec4diagram/state/machine.setup.js';
10
10
  import { useDiagram } from '../../hooks/safeContext.js';
11
- import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
12
- import IconLock from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js';
11
+ import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
12
+ import IconLock from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js';
13
13
 
14
14
  const selector = (ctx) => {
15
15
  const toggledFeatures = deriveToggledFeatures(ctx);
@@ -4,7 +4,7 @@ import { HStack, Box } from '@likec4/styles/jsx';
4
4
  import { Menu, MenuTarget, Button, MenuDropdown, MenuItem } from '@mantine/core';
5
5
  import { memo } from 'react';
6
6
  import { useLikeC4ProjectsContext, useLikeC4ProjectId } from '../../hooks/useLikeC4Project.js';
7
- import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js';
7
+ import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js';
8
8
 
9
9
  const ProjectsMenu = memo((_) => {
10
10
  const { projects, onProjectChange } = useLikeC4ProjectsContext();
@@ -5,7 +5,7 @@ import 'react';
5
5
  import { useDiagram } from '../../hooks/safeContext.js';
6
6
  import { PanelActionIcon } from '../_common.js';
7
7
  import { Tooltip } from './_common.js';
8
- import IconFocusCentered from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js';
8
+ import IconFocusCentered from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js';
9
9
 
10
10
  const CenterCamera = () => {
11
11
  const diagram = useDiagram();
@@ -8,7 +8,7 @@ import { PanelActionIcon } from '../_common.js';
8
8
  import { Tooltip } from './_common.js';
9
9
  import { autolayoutIndicator, autolayoutButton, spacingSliderBody, spacingSliderThumb } from './styles.js';
10
10
  import { useDiagram } from '../../hooks/safeContext.js';
11
- import IconLayoutDashboard from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js';
11
+ import IconLayoutDashboard from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js';
12
12
 
13
13
  const selector = (state) => ({
14
14
  viewId: state.view.id,
@@ -9,15 +9,15 @@ import { useDiagram } from '../../hooks/safeContext.js';
9
9
  import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
10
10
  import { PanelActionIcon } from '../_common.js';
11
11
  import { Tooltip } from './_common.js';
12
- import IconLayoutCollage from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js';
13
- import IconLayoutBoardSplit from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js';
14
- import IconLayoutAlignLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js';
15
- import IconLayoutAlignCenter from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js';
16
- import IconLayoutAlignRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js';
17
- import IconLayoutAlignTop from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js';
18
- import IconLayoutAlignMiddle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js';
19
- import IconLayoutAlignBottom from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js';
20
- import IconRouteOff from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js';
12
+ import IconLayoutCollage from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js';
13
+ import IconLayoutBoardSplit from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js';
14
+ import IconLayoutAlignLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js';
15
+ import IconLayoutAlignCenter from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js';
16
+ import IconLayoutAlignRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js';
17
+ import IconLayoutAlignTop from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js';
18
+ import IconLayoutAlignMiddle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js';
19
+ import IconLayoutAlignBottom from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js';
20
+ import IconRouteOff from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js';
21
21
 
22
22
  const Action = ({
23
23
  label,
@@ -5,7 +5,7 @@ import 'react';
5
5
  import { useDiagram } from '../../hooks/safeContext.js';
6
6
  import { PanelActionIcon } from '../_common.js';
7
7
  import { Tooltip } from './_common.js';
8
- import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
8
+ import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
9
9
 
10
10
  const ToggleReadonly = () => {
11
11
  const diagram = useDiagram();