@likec4/diagram 1.60.0 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/README.md +63 -11
  2. package/dist/LikeC4Diagram.d.mts +4 -6
  3. package/dist/LikeC4Diagram.mjs +13 -12
  4. package/dist/LikeC4Diagram.props.d.mts +5 -7
  5. package/dist/LikeC4MantineProvider.d.mts +1 -2
  6. package/dist/LikeC4MantineProvider.mjs +26 -11
  7. package/dist/LikeC4ModelProvider.d.mts +1 -3
  8. package/dist/LikeC4ModelProvider.mjs +1 -2
  9. package/dist/LikeC4ProjectsOverview.d.mts +1 -3
  10. package/dist/LikeC4ProjectsOverview.mjs +1 -2
  11. package/dist/LikeC4ProjectsProvider.d.mts +1 -2
  12. package/dist/LikeC4ProjectsProvider.mjs +2 -3
  13. package/dist/LikeC4Styles.d.mts +1 -2
  14. package/dist/LikeC4Styles.mjs +11 -6
  15. package/dist/LikeC4View.d.mts +3 -5
  16. package/dist/LikeC4View.mjs +12 -11
  17. package/dist/ReactLikeC4.d.mts +3 -5
  18. package/dist/ReactLikeC4.mjs +8 -7
  19. package/dist/StaticLikeC4Diagram.d.mts +1 -3
  20. package/dist/StaticLikeC4Diagram.mjs +1 -2
  21. package/dist/_virtual/_rolldown/runtime.mjs +1 -2
  22. package/dist/base/Background.mjs +1 -2
  23. package/dist/base/Base.d.mts +1 -2
  24. package/dist/base/Base.mjs +1 -2
  25. package/dist/base/BaseXYFlow.mjs +12 -10
  26. package/dist/base/const.d.mts +1 -3
  27. package/dist/base/const.mjs +1 -2
  28. package/dist/base/keyboardZoom.mjs +1 -2
  29. package/dist/base/types.d.mts +2 -4
  30. package/dist/base/updateEdges.mjs +1 -2
  31. package/dist/base/updateNodes.mjs +1 -2
  32. package/dist/base-primitives/Markdown.d.mts +5 -5
  33. package/dist/base-primitives/Markdown.mjs +22 -11
  34. package/dist/base-primitives/NodeHandles.d.mts +1 -3
  35. package/dist/base-primitives/NodeHandles.mjs +1 -2
  36. package/dist/base-primitives/compound/CompoundActionButton.d.mts +1 -2
  37. package/dist/base-primitives/compound/CompoundActionButton.mjs +3 -4
  38. package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +1 -2
  39. package/dist/base-primitives/compound/CompoundDetailsButton.mjs +3 -4
  40. package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +1 -2
  41. package/dist/base-primitives/compound/CompoundNodeContainer.mjs +1 -2
  42. package/dist/base-primitives/compound/CompoundTitle.d.mts +1 -2
  43. package/dist/base-primitives/compound/CompoundTitle.mjs +1 -2
  44. package/dist/base-primitives/compound/actionbtns.css.mjs +1 -2
  45. package/dist/base-primitives/edge/EdgeActionButton.mjs +2 -3
  46. package/dist/base-primitives/edge/EdgeContainer.mjs +2 -3
  47. package/dist/base-primitives/edge/EdgeLabel.mjs +3 -3
  48. package/dist/base-primitives/edge/EdgeLabelContainer.mjs +2 -3
  49. package/dist/base-primitives/edge/EdgeMarkers.mjs +1 -2
  50. package/dist/base-primitives/edge/EdgePath.mjs +1 -2
  51. package/dist/base-primitives/element/ElementActionButtons.d.mts +1 -2
  52. package/dist/base-primitives/element/ElementActionButtons.mjs +2 -3
  53. package/dist/base-primitives/element/ElementData.d.mts +1 -2
  54. package/dist/base-primitives/element/ElementData.mjs +1 -2
  55. package/dist/base-primitives/element/ElementDetailsButton.d.mts +1 -2
  56. package/dist/base-primitives/element/ElementDetailsButton.mjs +2 -3
  57. package/dist/base-primitives/element/ElementNodeContainer.d.mts +1 -2
  58. package/dist/base-primitives/element/ElementNodeContainer.mjs +2 -3
  59. package/dist/base-primitives/element/ElementShape.d.mts +11 -6
  60. package/dist/base-primitives/element/ElementShape.mjs +10 -5
  61. package/dist/base-primitives/element/ElementTags.d.mts +6 -3
  62. package/dist/base-primitives/element/ElementTags.mjs +2 -4
  63. package/dist/base-primitives/index.d.mts +5 -5
  64. package/dist/base-primitives/memoEdge.d.mts +2 -6
  65. package/dist/base-primitives/memoEdge.mjs +1 -2
  66. package/dist/base-primitives/memoNode.d.mts +2 -6
  67. package/dist/components/EmptyBox.mjs +1 -2
  68. package/dist/components/ErrorFallback.d.mts +4 -3
  69. package/dist/components/ErrorFallback.mjs +61 -56
  70. package/dist/components/FloatingWindow.mjs +3 -4
  71. package/dist/components/GithubIcon.mjs +1 -2
  72. package/dist/components/Link.mjs +3 -4
  73. package/dist/components/Logo.d.mts +3 -5
  74. package/dist/components/Logo.mjs +28 -35
  75. package/dist/components/NavigationLink.mjs +1 -2
  76. package/dist/components/NavigationPanel.mjs +11 -11
  77. package/dist/components/PortalToContainer.d.mts +1 -3
  78. package/dist/components/PortalToContainer.mjs +1 -2
  79. package/dist/components/RootContainer.mjs +1 -2
  80. package/dist/components/SearchControl.css.mjs +1 -2
  81. package/dist/components/SearchControl.d.mts +1 -2
  82. package/dist/components/SearchControl.mjs +2 -3
  83. package/dist/components/ViewIcon.mjs +5 -6
  84. package/dist/components/ViewNotFound.mjs +1 -2
  85. package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
  86. package/dist/components/markdown/markdown-refs.mjs +145 -0
  87. package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
  88. package/dist/context/ComparingLayoutsContext.mjs +24 -0
  89. package/dist/context/CurrentViewModelProvider.mjs +1 -2
  90. package/dist/context/DiagramEventHandlers.mjs +3 -4
  91. package/dist/context/DiagramFeatures.d.mts +2 -3
  92. package/dist/context/DiagramFeatures.mjs +15 -9
  93. package/dist/context/EnsureMantine.mjs +1 -2
  94. package/dist/context/FramerMotionConfig.d.mts +1 -3
  95. package/dist/context/FramerMotionConfig.mjs +1 -2
  96. package/dist/context/IconRenderer.d.mts +1 -3
  97. package/dist/context/IconRenderer.mjs +14 -14
  98. package/dist/context/LikeC4ModelContext.d.mts +1 -2
  99. package/dist/context/LikeC4ModelContext.mjs +1 -2
  100. package/dist/context/LikeC4ProjectsContext.d.mts +1 -3
  101. package/dist/context/LikeC4ProjectsContext.mjs +1 -2
  102. package/dist/context/RootContainerContext.mjs +1 -2
  103. package/dist/context/TagStylesContext.d.mts +1 -2
  104. package/dist/context/TagStylesContext.mjs +7 -19
  105. package/dist/custom/builtins.d.mts +4 -1
  106. package/dist/custom/customNodes.d.mts +164 -7
  107. package/dist/custom/customNodes.mjs +387 -8
  108. package/dist/custom/index.d.mts +18 -30
  109. package/dist/custom/index.mjs +11 -19
  110. package/dist/custom/primitives.d.mts +3 -5
  111. package/dist/customization/CustomizationContext.d.mts +50 -0
  112. package/dist/customization/CustomizationContext.mjs +64 -0
  113. package/dist/customization/customizable.d.mts +32 -0
  114. package/dist/customization/customizable.mjs +75 -0
  115. package/dist/customization/customization-types.d.mts +40 -0
  116. package/dist/customization/customization-types.mjs +8 -0
  117. package/dist/customization/stableComponents.mjs +35 -0
  118. package/dist/editor/LikeC4EditorCallbacks.d.mts +1 -3
  119. package/dist/editor/LikeC4EditorCallbacks.mjs +1 -2
  120. package/dist/editor/LikeC4EditorProvider.d.mts +1 -3
  121. package/dist/editor/LikeC4EditorProvider.mjs +1 -2
  122. package/dist/editor/actor/actions.mjs +2 -3
  123. package/dist/editor/actor/hotkey.d.mts +1 -3
  124. package/dist/editor/actor/hotkey.mjs +1 -2
  125. package/dist/editor/actor/machine.d.mts +2 -4
  126. package/dist/editor/actor/machine.mjs +1 -2
  127. package/dist/editor/actor/setup.d.mts +1 -2
  128. package/dist/editor/actor/setup.mjs +1 -2
  129. package/dist/editor/actor/state.editor.mjs +2 -3
  130. package/dist/editor/actor/state.sync-queue.mjs +2 -3
  131. package/dist/editor/actor/types.d.mts +1 -3
  132. package/dist/editor/actor/types.mjs +1 -2
  133. package/dist/editor/applyChangesToManualLayout.mjs +1 -2
  134. package/dist/editor/index.d.mts +1 -1
  135. package/dist/editor/useEditorActorLogic.mjs +3 -4
  136. package/dist/hooks/safeContext.d.mts +16 -35
  137. package/dist/hooks/safeContext.mjs +1 -2
  138. package/dist/hooks/useCallbackRef.mjs +1 -2
  139. package/dist/hooks/useCurrentView.d.mts +1 -3
  140. package/dist/hooks/useCurrentView.mjs +1 -2
  141. package/dist/hooks/useCurrentViewModel.d.mts +0 -2
  142. package/dist/hooks/useCurrentViewModel.mjs +1 -2
  143. package/dist/hooks/useDiagram.d.mts +3 -12
  144. package/dist/hooks/useDiagram.mjs +11 -10
  145. package/dist/hooks/useDiagramCompareLayout.d.mts +2 -4
  146. package/dist/hooks/useDiagramCompareLayout.mjs +12 -21
  147. package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
  148. package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
  149. package/dist/hooks/useEdgeTracks.mjs +2 -3
  150. package/dist/hooks/useEditorActor.mjs +1 -2
  151. package/dist/hooks/useId.mjs +1 -2
  152. package/dist/hooks/useLikeC4ElementsTree.mjs +1 -2
  153. package/dist/hooks/useLikeC4Model.d.mts +0 -2
  154. package/dist/hooks/useLikeC4Model.mjs +1 -2
  155. package/dist/hooks/useLikeC4Project.d.mts +2 -4
  156. package/dist/hooks/useLikeC4Project.mjs +1 -2
  157. package/dist/hooks/useLikeC4Styles.d.mts +1 -3
  158. package/dist/hooks/useLikeC4Styles.mjs +1 -2
  159. package/dist/hooks/useMantinePortalProps.mjs +1 -2
  160. package/dist/hooks/useSetState.mjs +1 -2
  161. package/dist/hooks/useUpdateEffect.d.mts +0 -2
  162. package/dist/hooks/useUpdateEffect.mjs +1 -2
  163. package/dist/hooks/useXYFlow.d.mts +1 -3
  164. package/dist/hooks/useXYFlow.mjs +1 -2
  165. package/dist/index.d.mts +20 -18
  166. package/dist/index.mjs +20 -18
  167. package/dist/likec4diagram/DiagramUI.mjs +14 -11
  168. package/dist/likec4diagram/DiagramXYFlow.mjs +34 -34
  169. package/dist/likec4diagram/convert-to-xyflow.mjs +7 -3
  170. package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +4 -3
  171. package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +18 -14
  172. package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +3 -4
  173. package/dist/likec4diagram/custom/edges/useControlPoints.mjs +2 -3
  174. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +2 -3
  175. package/dist/likec4diagram/custom/index.mjs +4 -5
  176. package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +1 -2
  177. package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +2 -3
  178. package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +3 -4
  179. package/dist/likec4diagram/custom/nodes/ElementActions.mjs +4 -5
  180. package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -1
  181. package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +3 -4
  182. package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -1
  183. package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +4 -3
  184. package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +3 -5
  185. package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +1 -3
  186. package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +3 -4
  187. package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -1
  188. package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +1 -2
  189. package/dist/likec4diagram/custom/nodes/index.d.mts +4 -4
  190. package/dist/likec4diagram/custom/nodes/nodes.d.mts +3 -4
  191. package/dist/likec4diagram/custom/nodes/nodes.mjs +19 -21
  192. package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +1 -2
  193. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +1 -3
  194. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +1 -2
  195. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +1 -3
  196. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +4 -5
  197. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +1 -3
  198. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +4 -6
  199. package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +3 -4
  200. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +1 -2
  201. package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +1 -2
  202. package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +1 -2
  203. package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +29 -12
  204. package/dist/likec4diagram/relationship-popover/actor.mjs +1 -2
  205. package/dist/likec4diagram/relationship-popover/components.mjs +1 -2
  206. package/dist/likec4diagram/state/DiagramActorProvider.mjs +22 -34
  207. package/dist/likec4diagram/state/aligners.d.mts +1 -3
  208. package/dist/likec4diagram/state/aligners.mjs +1 -2
  209. package/dist/likec4diagram/state/assign.mjs +3 -4
  210. package/dist/likec4diagram/state/createViewChange.mjs +1 -2
  211. package/dist/likec4diagram/state/diagram-api.d.mts +33 -16
  212. package/dist/likec4diagram/state/diagram-api.mjs +55 -31
  213. package/dist/likec4diagram/state/hotkeyActor.d.mts +1 -3
  214. package/dist/likec4diagram/state/hotkeyActor.mjs +12 -6
  215. package/dist/likec4diagram/state/machine.actions.layout.mjs +2 -3
  216. package/dist/likec4diagram/state/machine.actions.mjs +81 -44
  217. package/dist/likec4diagram/state/machine.d.mts +107 -15
  218. package/dist/likec4diagram/state/machine.mjs +3 -4
  219. package/dist/likec4diagram/state/machine.setup.d.mts +14 -10
  220. package/dist/likec4diagram/state/machine.setup.mjs +55 -28
  221. package/dist/likec4diagram/state/machine.state.initializing.mjs +3 -4
  222. package/dist/likec4diagram/state/machine.state.navigating.mjs +3 -6
  223. package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
  224. package/dist/likec4diagram/state/machine.state.ready.focused.mjs +10 -7
  225. package/dist/likec4diagram/state/machine.state.ready.idle.mjs +10 -7
  226. package/dist/likec4diagram/state/machine.state.ready.mjs +8 -8
  227. package/dist/likec4diagram/state/machine.state.ready.printing.mjs +3 -4
  228. package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +5 -6
  229. package/dist/likec4diagram/state/mediaPrintActor.d.mts +1 -3
  230. package/dist/likec4diagram/state/mediaPrintActor.mjs +1 -2
  231. package/dist/likec4diagram/state/persistence.mjs +12 -5
  232. package/dist/likec4diagram/state/types.d.mts +1 -3
  233. package/dist/likec4diagram/state/utils.mjs +2 -3
  234. package/dist/likec4diagram/types.d.mts +1 -3
  235. package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +5 -7
  236. package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +1 -2
  237. package/dist/likec4diagram/ui/notation/NotationPanel.mjs +6 -7
  238. package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +2 -3
  239. package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +3 -4
  240. package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +4 -7
  241. package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +4 -5
  242. package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +4 -6
  243. package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +2 -3
  244. package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +1 -2
  245. package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +7 -8
  246. package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +3 -9
  247. package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +1 -2
  248. package/dist/likec4diagram/ui/sequence-outline/motion.mjs +1 -2
  249. package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +7 -8
  250. package/dist/likec4diagram/ui/sequence-outline/tree.mjs +1 -2
  251. package/dist/likec4diagram/ui/sequence-outline/types.mjs +1 -2
  252. package/dist/likec4diagram/useLayoutConstraints.mjs +5 -10
  253. package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
  254. package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +9 -2
  255. package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +1 -2
  256. package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +3 -6
  257. package/dist/likec4diagram/xyflow-props.mjs +25 -0
  258. package/dist/likec4diagram/xyflow-sequence/const.mjs +1 -2
  259. package/dist/likec4diagram/xyflow-sequence/layouter.mjs +2 -3
  260. package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +2 -3
  261. package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +2 -3
  262. package/dist/likec4diagram/xyflow-sequence/utils.mjs +1 -2
  263. package/dist/navigationpanel/ElementViewControls.mjs +6 -7
  264. package/dist/navigationpanel/NavigationPanel.mjs +38 -67
  265. package/dist/navigationpanel/NavigationPanelControls.mjs +35 -114
  266. package/dist/navigationpanel/NavigationPanelDropdown.mjs +37 -34
  267. package/dist/navigationpanel/_common.mjs +3 -4
  268. package/dist/navigationpanel/actor.actions.mjs +1 -2
  269. package/dist/navigationpanel/actor.d.mts +0 -2
  270. package/dist/navigationpanel/actor.mjs +2 -3
  271. package/dist/navigationpanel/actor.setup.d.mts +1 -3
  272. package/dist/navigationpanel/actor.setup.mjs +1 -2
  273. package/dist/navigationpanel/comparepanel/ComparePanel.mjs +160 -90
  274. package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +173 -142
  275. package/dist/{likec4diagram/ui → navigationpanel/comparepanel}/LayoutDriftFrame.mjs +6 -12
  276. package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +14 -19
  277. package/dist/navigationpanel/controls/LayoutWarning.mjs +3 -4
  278. package/dist/navigationpanel/controls/LogoButton.mjs +5 -23
  279. package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
  280. package/dist/navigationpanel/controls/NavigationButtons.mjs +3 -4
  281. package/dist/navigationpanel/controls/OpenSource.mjs +2 -3
  282. package/dist/navigationpanel/controls/SearchControl.mjs +2 -3
  283. package/dist/navigationpanel/controls/ToggleReadonly.mjs +36 -21
  284. package/dist/navigationpanel/controls/ViewDetailsButton.mjs +12 -15
  285. package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +46 -13
  286. package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +3 -4
  287. package/dist/navigationpanel/editorpanel/CenterCamera.mjs +2 -3
  288. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +3 -4
  289. package/dist/navigationpanel/editorpanel/EditorPanel.mjs +4 -4
  290. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +11 -13
  291. package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +2 -3
  292. package/dist/navigationpanel/editorpanel/_common.mjs +1 -2
  293. package/dist/navigationpanel/editorpanel/styles.mjs +1 -2
  294. package/dist/navigationpanel/hooks.mjs +1 -2
  295. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +5 -6
  296. package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +7 -9
  297. package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +1 -2
  298. package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +3 -4
  299. package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +44 -38
  300. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -2
  301. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -2
  302. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +1 -2
  303. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +1 -2
  304. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +1 -2
  305. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +1 -2
  306. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +1 -2
  307. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +1 -2
  308. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +1 -2
  309. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +1 -2
  310. package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
  311. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -2
  312. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -2
  313. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +1 -2
  314. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +1 -2
  315. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +1 -2
  316. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +1 -2
  317. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +1 -2
  318. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +1 -2
  319. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +1 -2
  320. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +1 -2
  321. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +1 -2
  322. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +1 -2
  323. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +1 -2
  324. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +1 -2
  325. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +1 -2
  326. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +1 -2
  327. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +1 -2
  328. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +1 -2
  329. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +1 -2
  330. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +1 -2
  331. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +1 -2
  332. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +1 -2
  333. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +1 -2
  334. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +1 -2
  335. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +1 -2
  336. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +1 -2
  337. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +1 -2
  338. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +1 -2
  339. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +1 -2
  340. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +1 -2
  341. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +1 -2
  342. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +1 -2
  343. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +1 -2
  344. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +1 -2
  345. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +1 -2
  346. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +1 -2
  347. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +1 -2
  348. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +1 -2
  349. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +1 -2
  350. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -2
  351. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +1 -2
  352. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +1 -2
  353. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +1 -2
  354. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +1 -2
  355. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +1 -2
  356. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +1 -2
  357. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +1 -2
  358. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -2
  359. package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +1 -2
  360. package/dist/overlays/Overlays.mjs +4 -5
  361. package/dist/overlays/element-details/ElementDetails.mjs +2 -3
  362. package/dist/overlays/element-details/ElementDetailsCard.css.mjs +148 -102
  363. package/dist/overlays/element-details/ElementDetailsCard.mjs +503 -256
  364. package/dist/overlays/element-details/MetadataValue.mjs +115 -222
  365. package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
  366. package/dist/overlays/element-details/TabPanelDeployments.css.mjs +1 -2
  367. package/dist/overlays/element-details/TabPanelDeployments.mjs +5 -6
  368. package/dist/overlays/element-details/TabPanelRelationships.css.mjs +1 -2
  369. package/dist/overlays/element-details/TabPanelRelationships.mjs +6 -7
  370. package/dist/overlays/element-details/TabPanelStructure.css.mjs +1 -2
  371. package/dist/overlays/element-details/TabPanelStructure.mjs +3 -4
  372. package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
  373. package/dist/overlays/element-details/actor.d.mts +6 -7
  374. package/dist/overlays/element-details/actor.mjs +31 -15
  375. package/dist/overlays/element-details/actorContext.mjs +1 -2
  376. package/dist/overlays/element-details/subject.d.mts +12 -0
  377. package/dist/overlays/element-details/subject.mjs +15 -0
  378. package/dist/overlays/hooks.mjs +1 -2
  379. package/dist/overlays/overlay/Overlay.d.mts +1 -3
  380. package/dist/overlays/overlay/Overlay.mjs +4 -5
  381. package/dist/overlays/overlaysActor.d.mts +12 -5
  382. package/dist/overlays/overlaysActor.mjs +24 -6
  383. package/dist/overlays/relationship-details/RelationshipDetails.mjs +16 -8
  384. package/dist/overlays/relationship-details/SelectEdge.css.mjs +1 -2
  385. package/dist/overlays/relationship-details/SelectEdge.mjs +3 -4
  386. package/dist/overlays/relationship-details/_types.d.mts +6 -4
  387. package/dist/overlays/relationship-details/actor.d.mts +0 -2
  388. package/dist/overlays/relationship-details/actor.mjs +2 -3
  389. package/dist/overlays/relationship-details/compute.mjs +1 -2
  390. package/dist/overlays/relationship-details/custom/ElementActions.mjs +6 -7
  391. package/dist/overlays/relationship-details/custom/edgeTypes.mjs +8 -13
  392. package/dist/overlays/relationship-details/custom/nodeTypes.mjs +8 -6
  393. package/dist/overlays/relationship-details/hooks.mjs +1 -2
  394. package/dist/overlays/relationship-details/layout-to-xyflow.mjs +3 -3
  395. package/dist/overlays/relationship-details/layout.d.mts +1 -3
  396. package/dist/overlays/relationship-details/layout.mjs +39 -13
  397. package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +12 -13
  398. package/dist/overlays/relationships-browser/SelectElement.css.mjs +1 -2
  399. package/dist/overlays/relationships-browser/SelectElement.mjs +4 -5
  400. package/dist/overlays/relationships-browser/_types.d.mts +6 -4
  401. package/dist/overlays/relationships-browser/actor.d.mts +0 -2
  402. package/dist/overlays/relationships-browser/actor.mjs +4 -5
  403. package/dist/overlays/relationships-browser/const.mjs +1 -2
  404. package/dist/overlays/relationships-browser/custom/ElementActions.mjs +6 -7
  405. package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +1 -2
  406. package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +14 -17
  407. package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +12 -7
  408. package/dist/overlays/relationships-browser/hooks.mjs +1 -2
  409. package/dist/overlays/relationships-browser/layout.d.mts +1 -3
  410. package/dist/overlays/relationships-browser/layout.mjs +73 -24
  411. package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +2 -2
  412. package/dist/overlays/types.d.mts +5 -7
  413. package/dist/projects-overview/ProjectsOverview.d.mts +1 -3
  414. package/dist/projects-overview/ProjectsOverview.mjs +1 -2
  415. package/dist/projects-overview/ProjectsOverviewXY.d.mts +1 -3
  416. package/dist/projects-overview/ProjectsOverviewXY.mjs +3 -4
  417. package/dist/projects-overview/actor.mjs +1 -2
  418. package/dist/projects-overview/context.mjs +1 -2
  419. package/dist/projects-overview/custom/edgeTypes.mjs +2 -3
  420. package/dist/projects-overview/custom/nodeTypes.mjs +3 -4
  421. package/dist/projects-overview/hooks.mjs +1 -2
  422. package/dist/projects-overview/layouted-to-xyflow.mjs +1 -2
  423. package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +1 -2
  424. package/dist/projects-overview/persistence.mjs +1 -2
  425. package/dist/search/Search.d.mts +1 -3
  426. package/dist/search/Search.mjs +13 -12
  427. package/dist/search/SearchContext.d.mts +1 -3
  428. package/dist/search/SearchContext.mjs +1 -2
  429. package/dist/search/XStateSearchAdapter.mjs +1 -2
  430. package/dist/search/components/ElementsColumn.css.mjs +1 -2
  431. package/dist/search/components/ElementsColumn.mjs +31 -9
  432. package/dist/search/components/PickView.mjs +3 -4
  433. package/dist/search/components/SearchByTags.mjs +3 -4
  434. package/dist/search/components/SearchInput.mjs +3 -4
  435. package/dist/search/components/ViewsColum.mjs +20 -20
  436. package/dist/search/components/ViewsColumn.css.mjs +1 -2
  437. package/dist/search/components/_shared.css.mjs +1 -2
  438. package/dist/search/components/styles.css.mjs +1 -2
  439. package/dist/search/components/utils.mjs +32 -3
  440. package/dist/search/fuzzy.mjs +27 -0
  441. package/dist/search/hooks.mjs +1 -2
  442. package/dist/search/metadata-search.mjs +32 -0
  443. package/dist/search/searchActor.d.mts +1 -3
  444. package/dist/search/searchActor.mjs +1 -2
  445. package/dist/shadowroot/ShadowRoot.mjs +8 -7
  446. package/dist/styles-font2.mjs +1 -2
  447. package/dist/styles-min.css +1 -1
  448. package/dist/styles.css +1 -1
  449. package/dist/styles2.mjs +2 -3
  450. package/dist/utils/defineActors.d.mts +1 -3
  451. package/dist/utils/defineActors.mjs +1 -2
  452. package/dist/utils/edge-corners.mjs +2 -3
  453. package/dist/utils/edge-endpoints.mjs +1 -2
  454. package/dist/utils/edge-label.mjs +1 -2
  455. package/dist/utils/edge-path-through-label.mjs +51 -0
  456. package/dist/utils/edge-path.mjs +1 -2
  457. package/dist/utils/edge-tracks.mjs +1 -2
  458. package/dist/utils/filterProjects.d.mts +10 -0
  459. package/dist/utils/filterProjects.mjs +36 -0
  460. package/dist/utils/index.mjs +1 -0
  461. package/dist/utils/measure-edge-label.mjs +129 -0
  462. package/dist/utils/readableText.mjs +1 -2
  463. package/dist/utils/roundDpr.mjs +1 -2
  464. package/dist/utils/search-event.mjs +17 -0
  465. package/dist/utils/view-bounds.d.mts +1 -3
  466. package/dist/utils/view-bounds.mjs +1 -2
  467. package/dist/utils/view-routing.mjs +1 -2
  468. package/dist/utils/xyflow.mjs +2 -3
  469. package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
  470. package/dist/webcomponent/defineWebcomponent.mjs +93 -0
  471. package/package.json +29 -26
  472. package/panda.buildinfo.json +211 -208
  473. package/styles-min.css +1 -1
  474. package/styles.css +1 -1
  475. package/dist/base-primitives/memoNode.mjs +0 -23
  476. package/dist/context/DiagramEventHandlers.d.mts +0 -11
  477. package/dist/custom/hooks.d.mts +0 -17
  478. package/dist/hooks/useSetState.d.mts +0 -10
  479. package/dist/likec4diagram/custom/edges/edges.css.mjs +0 -50
  480. package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +0 -69
  481. package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +0 -56
  482. package/dist/navigationpanel/styles.css.mjs +0 -23
  483. package/src/styles-font.css +0 -114
  484. package/src/styles-min.css +0 -2
  485. package/src/styles-xyflow.css +0 -1
  486. package/src/styles.css +0 -3
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
4
4
  import { EdgeLabelRenderer } from "@xyflow/react";
5
5
  import { isNumber } from "remeda";
6
6
 
7
- //#region src/base-primitives/edge/EdgeLabelContainer.tsx
7
+ // src/base-primitives/edge/EdgeLabelContainer.tsx
8
8
  const toCssVarValue = (value) => {
9
9
  if (value === void 0) return "";
10
10
  return isNumber(value) ? `${Math.trunc(value)}px` : value;
11
11
  };
12
- function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered: isHovered = false, active: isActive = false, dimmed: isDimmed = false, labelBBox, color = "gray" }, animated }, labelPosition: labelXY, className, style: contentStyle, children, ...rest }) {
12
+ function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered: isHovered = false, active: isActive = false, dimmed: isDimmed = false, labelBBox, color }, animated }, labelPosition: labelXY, className, style: contentStyle, children, ...rest }) {
13
13
  let labelX = labelXY?.x ?? labelBBox?.x;
14
14
  let labelY = labelXY?.y ?? labelBBox?.y;
15
15
  if (labelX === void 0 || labelY === void 0) return null;
@@ -36,5 +36,4 @@ function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered
36
36
  }, id) });
37
37
  }
38
38
 
39
- //#endregion
40
39
  export { EdgeLabelContainer };
@@ -2,7 +2,7 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { nonexhaustive } from "@likec4/core";
4
4
 
5
- //#region src/base-primitives/edge/EdgeMarkers.tsx
5
+ // src/base-primitives/edge/EdgeMarkers.tsx
6
6
  const Open = (props) => /* @__PURE__ */ jsx("marker", {
7
7
  viewBox: "-4 -4 14 16",
8
8
  refX: 5,
@@ -159,5 +159,4 @@ function arrowTypeToMarker(arrowType) {
159
159
  }
160
160
  }
161
161
 
162
- //#endregion
163
162
  export { EdgeMarkers, arrowTypeToMarker };
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { edgePath } from "@likec4/styles/recipes";
7
7
 
8
- //#region src/base-primitives/edge/EdgePath.tsx
8
+ // src/base-primitives/edge/EdgePath.tsx
9
9
  const EdgePath = forwardRef(({ edgeProps: { id, data: { line, dir, tail, head }, selectable = true, style, interactionWidth }, isDragging = false, onEdgePointerDown, strokeWidth, svgPath }, svgPathRef) => {
10
10
  let markerStartName = arrowTypeToMarker(tail);
11
11
  let markerEndName = arrowTypeToMarker(head ?? "normal");
@@ -63,5 +63,4 @@ const EdgePath = forwardRef(({ edgeProps: { id, data: { line, dir, tail, head },
63
63
  });
64
64
  EdgePath.displayName = "EdgePath";
65
65
 
66
- //#endregion
67
66
  export { EdgePath };
@@ -1,6 +1,5 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { MouseEvent, ReactNode } from "react";
3
- //#region src/base-primitives/element/ElementActionButtons.d.ts
4
3
  type ElementActionButtonsProps = {
5
4
  selected?: boolean;
6
5
  data: {
@@ -42,4 +41,4 @@ export declare namespace ElementActionButtons {
42
41
  onClick: (e: MouseEvent) => void;
43
42
  };
44
43
  }
45
- //#endregion
44
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconBolt from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs";
2
+ import IconBolt from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs";
3
3
  import { stopPropagation } from "../../utils/xyflow.mjs";
4
4
  import { cx } from "@likec4/styles/css";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ import { useId } from "@mantine/hooks";
8
8
  import * as m from "motion/react-m";
9
9
  import { actionBtn, actionButtons } from "@likec4/styles/recipes";
10
10
 
11
- //#region src/base-primitives/element/ElementActionButtons.tsx
11
+ // src/base-primitives/element/ElementActionButtons.tsx
12
12
  const variants = {
13
13
  normal: {
14
14
  originY: 0,
@@ -96,5 +96,4 @@ function ElementActionButtons({ selected = false, data: { hovered: isHovered = f
96
96
  });
97
97
  }
98
98
 
99
- //#endregion
100
99
  export { ElementActionButtons };
@@ -2,7 +2,6 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { CSSProperties, DetailedHTMLProps, HTMLAttributes } from "react";
3
3
  import { ComputedNodeStyle, ElementShape, MarkdownOrString, NodeId } from "@likec4/core";
4
4
  import { Color } from "@likec4/core/types";
5
- //#region src/base-primitives/element/ElementData.d.ts
6
5
  type RequiredData = {
7
6
  id: NodeId;
8
7
  title: string;
@@ -69,4 +68,4 @@ export declare namespace ElementData {
69
68
  }, SlotProps> & SlotProps)) & import("react").RefAttributes<HTMLDivElement>>;
70
69
  var Description: import("react").ForwardRefExoticComponent<SlotProps & import("react").RefAttributes<HTMLDivElement>>;
71
70
  }
72
- //#endregion
71
+ export {};
@@ -9,7 +9,7 @@ import { isTruthy } from "remeda";
9
9
  import { RichText } from "@likec4/core/types";
10
10
  import { elementNodeData } from "@likec4/styles/recipes";
11
11
 
12
- //#region src/base-primitives/element/ElementData.tsx
12
+ // src/base-primitives/element/ElementData.tsx
13
13
  /**
14
14
  * Resolve the icon color based on the node's style and color.
15
15
  *
@@ -131,5 +131,4 @@ ElementData.Title = Title;
131
131
  ElementData.Technology = Technology;
132
132
  ElementData.Description = Description;
133
133
 
134
- //#endregion
135
134
  export { ElementData };
@@ -1,7 +1,6 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { BaseNodeData } from "../../base/types.mjs";
3
3
  import { MouseEvent, ReactNode } from "react";
4
- //#region src/base-primitives/element/ElementDetailsButton.d.ts
5
4
  type ElementDetailsButtonProps = {
6
5
  selected?: boolean;
7
6
  data: BaseNodeData;
@@ -10,4 +9,4 @@ type ElementDetailsButtonProps = {
10
9
  onClick: (e: MouseEvent) => void;
11
10
  };
12
11
  export declare function ElementDetailsButton({ selected, data: { hovered: isHovered }, icon, ariaLabel, onClick }: ElementDetailsButtonProps): import("react").JSX.Element;
13
- //#endregion
12
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs";
2
+ import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs";
3
3
  import { stopPropagation } from "../../utils/xyflow.mjs";
4
4
  import { css, cx } from "@likec4/styles/css";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ import { Box as Box$1 } from "@likec4/styles/jsx";
8
8
  import * as m from "motion/react-m";
9
9
  import { actionBtn } from "@likec4/styles/recipes";
10
10
 
11
- //#region src/base-primitives/element/ElementDetailsButton.tsx
11
+ // src/base-primitives/element/ElementDetailsButton.tsx
12
12
  const variants = {
13
13
  normal: {
14
14
  originX: .4,
@@ -83,5 +83,4 @@ function ElementDetailsButton({ selected = false, data: { hovered: isHovered = f
83
83
  });
84
84
  }
85
85
 
86
- //#endregion
87
86
  export { ElementDetailsButton };
@@ -2,7 +2,6 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { BaseNodePropsWithData } from "../../base/types.mjs";
3
3
  import { MotionNodeLayoutOptions, MotionStyle } from "motion/react";
4
4
  import { Color, ComputedNodeStyle, ElementShape } from "@likec4/core/types";
5
- //#region src/base-primitives/element/ElementNodeContainer.d.ts
6
5
  type RequiredData = {
7
6
  color: Color;
8
7
  shape: ElementShape;
@@ -20,4 +19,4 @@ export declare const ElementNodeContainer: import("react").ForwardRefExoticCompo
20
19
  } & MotionNodeLayoutOptions & {
21
20
  children?: import("react").ReactNode | undefined;
22
21
  } & import("react").RefAttributes<HTMLDivElement>>;
23
- //#endregion
22
+ export {};
@@ -6,7 +6,7 @@ import { ensureSizes } from "@likec4/core/types";
6
6
  import * as m from "motion/react-m";
7
7
  import { elementNode } from "@likec4/styles/recipes";
8
8
 
9
- //#region src/base-primitives/element/ElementNodeContainer.tsx
9
+ // src/base-primitives/element/ElementNodeContainer.tsx
10
10
  const variants = {
11
11
  normal: { scale: 1 },
12
12
  hovered: { scale: 1.05 },
@@ -17,7 +17,7 @@ const variants = {
17
17
  * Top-level primitive to compose leaf nodes renderers.
18
18
  * This container provides the state via data-* attributes
19
19
  */
20
- const ElementNodeContainer = forwardRef(({ nodeProps: { selected = false, selectable = false, data: { hovered: isHovered = false, dimmed: isDimmed = false, ...data } }, className, style, children, ...rest }, ref) => {
20
+ const ElementNodeContainer = forwardRef(({ nodeProps: { selected, selectable, data: { hovered: isHovered = false, dimmed: isDimmed = false, ...data } }, className, style, children, ...rest }, ref) => {
21
21
  let variant;
22
22
  switch (true) {
23
23
  case isHovered:
@@ -54,5 +54,4 @@ const ElementNodeContainer = forwardRef(({ nodeProps: { selected = false, select
54
54
  });
55
55
  ElementNodeContainer.displayName = "ElementNodeContainer";
56
56
 
57
- //#endregion
58
57
  export { ElementNodeContainer };
@@ -1,13 +1,13 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
- import { ComputedNodeStyle, ElementShape as ElementShape$1 } from "@likec4/core/types";
3
- //#region src/base-primitives/element/ElementShape.d.ts
2
+ import { Customizable } from "../../customization/customization-types.mjs";
3
+ import { ComputedNodeStyle, ElementShape } from "@likec4/core/types";
4
4
  type RequiredData = {
5
- shape: ElementShape$1;
5
+ shape: ElementShape;
6
6
  width: number;
7
7
  height: number;
8
8
  style?: ComputedNodeStyle;
9
9
  };
10
- type ElementShapeProps = {
10
+ export type ElementShapeProps = {
11
11
  data: RequiredData;
12
12
  width?: number | undefined;
13
13
  height?: number | undefined;
@@ -16,6 +16,11 @@ type ElementShapeProps = {
16
16
  */
17
17
  showSelectionOutline?: boolean | undefined;
18
18
  };
19
- declare function ElementShape$1({ data, width, height, showSelectionOutline }: ElementShapeProps): import("react").JSX.Element;
20
- //#endregion
19
+ /**
20
+ * Shape of the element node.
21
+ *
22
+ * Customizable slot `ElementShape`: the replacement is rendered for every node
23
+ * (and wherever else the shape is shown), so keep it cheap and memoize heavy computations.
24
+ */
25
+ declare const ElementShape$1: Customizable<({ data, width, height, showSelectionOutline }: ElementShapeProps) => import("react").JSX.Element, "ElementShape">;
21
26
  export { ElementShape$1 as ElementShape };
@@ -1,10 +1,11 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
+ import { customizable } from "../../customization/customizable.mjs";
2
3
  import { roundDpr } from "../../utils/roundDpr.mjs";
3
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
5
  import { nonexhaustive } from "@likec4/core";
5
6
  import { elementShapeRecipe } from "@likec4/styles/recipes";
6
7
 
7
- //#region src/base-primitives/element/ElementShape.tsx
8
+ // src/base-primitives/element/ElementShape.tsx
8
9
  function cylinderSVGPath(diameter, height, tilt = .07) {
9
10
  const radius = Math.round(diameter / 2);
10
11
  const rx = radius;
@@ -415,7 +416,13 @@ function ShapeSvgOutline({ shape, w, h }) {
415
416
  children: svg
416
417
  });
417
418
  }
418
- function ElementShape$1({ data, width, height, showSelectionOutline = true }) {
419
+ /**
420
+ * Shape of the element node.
421
+ *
422
+ * Customizable slot `ElementShape`: the replacement is rendered for every node
423
+ * (and wherever else the shape is shown), so keep it cheap and memoize heavy computations.
424
+ */
425
+ const ElementShape$1 = customizable("ElementShape")(function ElementShape({ data, width, height, showSelectionOutline = true }) {
419
426
  let w = !!width && width > 10 ? width : data.width;
420
427
  let h = !!height && height > 10 ? height : data.height;
421
428
  const isMultiple = data.style?.multiple ?? false;
@@ -462,8 +469,6 @@ function ElementShape$1({ data, width, height, showSelectionOutline = true }) {
462
469
  h
463
470
  })]
464
471
  })] });
465
- }
466
- __name(ElementShape$1, "ElementShape");
472
+ });
467
473
 
468
- //#endregion
469
474
  export { ElementShape$1 as ElementShape };
@@ -1,7 +1,10 @@
1
1
  import { __name } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { BaseNodePropsWithData } from "../../base/types.mjs";
3
- import "react";
4
- //#region src/base-primitives/element/ElementTags.d.ts
3
+ import { ComponentPropsWithoutRef } from "react";
4
+ export type ElementTagProps = {
5
+ tag: string;
6
+ cursor?: 'pointer' | 'default';
7
+ } & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'color' | 'translate'>;
5
8
  export declare const ElementTag: import("react").ForwardRefExoticComponent<{
6
9
  tag: string;
7
10
  cursor?: "pointer" | "default";
@@ -16,4 +19,4 @@ export type ElementTagsProps = BaseNodePropsWithData<Data> & {
16
19
  onTagMouseLeave?: (tag: `#${string}`) => void;
17
20
  };
18
21
  export declare const ElementTags: import("react").MemoExoticComponent<({ id, data: { tags, width, hovered }, onTagClick, onTagMouseEnter, onTagMouseLeave }: ElementTagsProps) => import("react").JSX.Element | null>;
19
- //#endregion
22
+ export {};
@@ -12,7 +12,7 @@ import { Box, HStack } from "@likec4/styles/jsx";
12
12
  import { hstack } from "@likec4/styles/patterns";
13
13
  import { likec4tag } from "@likec4/styles/recipes";
14
14
 
15
- //#region src/base-primitives/element/ElementTags.tsx
15
+ // src/base-primitives/element/ElementTags.tsx
16
16
  const ElementTag = forwardRef(({ tag, cursor, className, style, ...props }, ref) => {
17
17
  return /* @__PURE__ */ jsxs(Box, {
18
18
  ref,
@@ -96,8 +96,7 @@ function WithElementTags({ id, tags, width, hovered, onTagClick, onTagMouseEnter
96
96
  transition: "fast"
97
97
  })
98
98
  }, id + "#" + tag))
99
- }), /* @__PURE__ */ jsx(NodeToolbar, {
100
- isVisible,
99
+ }), isVisible && /* @__PURE__ */ jsx(NodeToolbar, {
101
100
  align: "start",
102
101
  position: Position.Bottom,
103
102
  children: /* @__PURE__ */ jsx(HStack, {
@@ -133,5 +132,4 @@ function WithElementTags({ id, tags, width, hovered, onTagClick, onTagMouseEnter
133
132
  })] });
134
133
  }
135
134
 
136
- //#endregion
137
135
  export { ElementTag, ElementTags };
@@ -12,10 +12,10 @@ import { ElementActionButtons } from "./element/ElementActionButtons.mjs";
12
12
  import { ElementData } from "./element/ElementData.mjs";
13
13
  import { ElementDetailsButton } from "./element/ElementDetailsButton.mjs";
14
14
  import { ElementNodeContainer } from "./element/ElementNodeContainer.mjs";
15
- import { ElementShape } from "./element/ElementShape.mjs";
16
- import { ElementTag, ElementTags, ElementTagsProps } from "./element/ElementTags.mjs";
15
+ import { ElementShape, ElementShapeProps } from "./element/ElementShape.mjs";
16
+ import { ElementTag, ElementTagProps, ElementTags, ElementTagsProps } from "./element/ElementTags.mjs";
17
17
  import { Markdown } from "./Markdown.mjs";
18
- import { memoEdge } from "./memoEdge.mjs";
19
- import { memoNode } from "./memoNode.mjs";
18
+ import "./memoEdge.mjs";
19
+ import "./memoNode.mjs";
20
20
  import { DefaultHandles } from "./NodeHandles.mjs";
21
- export { CompoundActionButton, CompoundDetailsButton, CompoundNodeContainer, CompoundTitle, DefaultHandles, ElementActionButtons, ElementData, ElementDetailsButton, ElementNodeContainer, ElementTag, ElementTags, Markdown, memoEdge, memoNode };
21
+ export { CompoundActionButton, CompoundDetailsButton, CompoundNodeContainer, CompoundTitle, DefaultHandles, ElementActionButtons, ElementData, ElementDetailsButton, ElementNodeContainer, ElementShape, type ElementShapeProps, ElementTag, type ElementTagProps, ElementTags, type ElementTagsProps, Markdown };
@@ -1,6 +1,2 @@
1
- import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
- import { BaseEdgeProps } from "../base/types.mjs";
3
- import { FunctionComponent } from "react";
4
- //#region src/base-primitives/memoEdge.d.ts
5
- export declare function memoEdge<P extends BaseEdgeProps>(Edge: FunctionComponent<P>): FunctionComponent<P>;
6
- //#endregion
1
+ import "../base/types.mjs";
2
+ import { FunctionComponent } from "react";
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { memo } from "react";
3
3
  import { deepEqual } from "fast-equals";
4
4
 
5
- //#region src/base-primitives/memoEdge.ts
5
+ // src/base-primitives/memoEdge.ts
6
6
  const isSame = (a, b) => {
7
7
  return Math.abs(a - b) < 2.5;
8
8
  };
@@ -13,5 +13,4 @@ function memoEdge(Edge) {
13
13
  return Memo;
14
14
  }
15
15
 
16
- //#endregion
17
16
  export { memoEdge };
@@ -1,6 +1,2 @@
1
- import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
- import { BaseNodeProps } from "../base/types.mjs";
3
- import { FunctionComponent } from "react";
4
- //#region src/base-primitives/memoNode.d.ts
5
- export declare function memoNode<P extends BaseNodeProps>(Node: FunctionComponent<P>, displayName?: string): FunctionComponent<P>;
6
- //#endregion
1
+ import "../base/types.mjs";
2
+ import { FunctionComponent } from "react";
@@ -2,10 +2,9 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { isCssProperty, styled } from "@likec4/styles/jsx";
3
3
  import { emptyBox } from "@likec4/styles/recipes";
4
4
 
5
- //#region src/components/EmptyBox.tsx
5
+ // src/components/EmptyBox.tsx
6
6
  const EmptyBox = styled("div", emptyBox, { shouldForwardProp(prop, variantKeys) {
7
7
  return !variantKeys.includes(prop) && !isCssProperty(prop);
8
8
  } });
9
9
 
10
- //#endregion
11
10
  export { EmptyBox };
@@ -1,7 +1,8 @@
1
1
  import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { ErrorBoundaryProps, FallbackProps } from "react-error-boundary";
3
- //#region src/components/ErrorFallback.d.ts
4
3
  export declare function ErrorFallback({ error, resetErrorBoundary }: FallbackProps): import("react").JSX.Element;
5
- declare function ErrorBoundary$1(props: Pick<ErrorBoundaryProps, 'onReset' | 'onError' | 'children'>): import("react").JSX.Element;
6
- //#endregion
4
+ declare function ErrorBoundary$1({ variant, ...props }: Pick<ErrorBoundaryProps, 'onReset' | 'onError' | 'children'> & {
5
+ /** @default 'dialog' */
6
+ variant?: 'dialog' | 'message';
7
+ }): import("react").JSX.Element;
7
8
  export { ErrorBoundary$1 as ErrorBoundary };
@@ -1,5 +1,5 @@
1
1
  import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
- import IconX from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs";
2
+ import IconX from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs";
3
3
  import { css } from "@likec4/styles/css";
4
4
  import { useRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -7,9 +7,8 @@ import { Button, ScrollAreaAutosize, Text, ThemeIcon } from "@mantine/core";
7
7
  import { HStack, VStack } from "@likec4/styles/jsx";
8
8
  import { ErrorBoundary } from "react-error-boundary";
9
9
 
10
- //#region src/components/ErrorFallback.tsx
10
+ // src/components/ErrorFallback.tsx
11
11
  function ErrorFallback({ error, resetErrorBoundary }) {
12
- const errorString = error instanceof Error ? error.message : "Unknown error";
13
12
  const dialogRef = useRef(null);
14
13
  return /* @__PURE__ */ jsx("dialog", {
15
14
  open: true,
@@ -47,62 +46,69 @@ function ErrorFallback({ error, resetErrorBoundary }) {
47
46
  e.stopPropagation();
48
47
  resetErrorBoundary();
49
48
  },
50
- children: /* @__PURE__ */ jsxs(HStack, {
51
- p: "xl",
52
- gap: "lg",
53
- alignItems: "flex-start",
54
- flexWrap: "nowrap",
55
- children: [/* @__PURE__ */ jsx(ThemeIcon, {
56
- size: "md",
57
- radius: "xl",
58
- color: "red",
59
- children: /* @__PURE__ */ jsx(IconX, { style: {
60
- width: 20,
61
- height: 20
62
- } })
63
- }), /* @__PURE__ */ jsxs(VStack, {
64
- flex: "1",
65
- children: [
66
- /* @__PURE__ */ jsx(Text, {
49
+ children: /* @__PURE__ */ jsx(ErrorFallbackMessage, {
50
+ error,
51
+ resetErrorBoundary
52
+ })
53
+ });
54
+ }
55
+ function ErrorFallbackMessage({ error, resetErrorBoundary }) {
56
+ const errorString = error instanceof Error ? error.message : "Unknown error";
57
+ return /* @__PURE__ */ jsxs(HStack, {
58
+ p: "xl",
59
+ gap: "lg",
60
+ alignItems: "flex-start",
61
+ flexWrap: "nowrap",
62
+ children: [/* @__PURE__ */ jsx(ThemeIcon, {
63
+ size: "md",
64
+ radius: "xl",
65
+ color: "red",
66
+ children: /* @__PURE__ */ jsx(IconX, { style: {
67
+ width: 20,
68
+ height: 20
69
+ } })
70
+ }), /* @__PURE__ */ jsxs(VStack, {
71
+ flex: "1",
72
+ children: [
73
+ /* @__PURE__ */ jsx(Text, {
74
+ fz: "md",
75
+ children: "Oops, something went wrong"
76
+ }),
77
+ /* @__PURE__ */ jsx(ScrollAreaAutosize, {
78
+ maw: "100%",
79
+ mah: 400,
80
+ type: "auto",
81
+ children: /* @__PURE__ */ jsx(Text, {
67
82
  fz: "md",
68
- children: "Oops, something went wrong"
69
- }),
70
- /* @__PURE__ */ jsx(ScrollAreaAutosize, {
71
- maw: "100%",
72
- mah: 400,
73
- type: "auto",
74
- children: /* @__PURE__ */ jsx(Text, {
75
- fz: "md",
76
- c: "red",
77
- style: {
78
- whiteSpace: "pre-wrap",
79
- userSelect: "all"
80
- },
81
- children: errorString
82
- })
83
- }),
84
- /* @__PURE__ */ jsxs(HStack, {
85
- gap: "md",
86
- mt: "md",
87
- children: [/* @__PURE__ */ jsx(Button, {
88
- size: "sm",
89
- variant: "default",
90
- onClick: () => resetErrorBoundary(),
91
- children: "Reset"
92
- }), /* @__PURE__ */ jsx(Text, {
93
- fz: "sm",
94
- c: "dimmed",
95
- children: "See console for more details and report the issue if it persists."
96
- })]
83
+ c: "red",
84
+ style: {
85
+ whiteSpace: "pre-wrap",
86
+ userSelect: "all"
87
+ },
88
+ children: errorString
97
89
  })
98
- ]
99
- })]
100
- })
90
+ }),
91
+ /* @__PURE__ */ jsxs(HStack, {
92
+ gap: "md",
93
+ mt: "md",
94
+ children: [/* @__PURE__ */ jsx(Button, {
95
+ size: "sm",
96
+ variant: "default",
97
+ onClick: () => resetErrorBoundary(),
98
+ children: "Reset"
99
+ }), /* @__PURE__ */ jsx(Text, {
100
+ fz: "sm",
101
+ c: "dimmed",
102
+ children: "See console for more details and report the issue if it persists."
103
+ })]
104
+ })
105
+ ]
106
+ })]
101
107
  });
102
108
  }
103
- function ErrorBoundary$1(props) {
109
+ function ErrorBoundary$1({ variant = "dialog", ...props }) {
104
110
  return /* @__PURE__ */ jsx(ErrorBoundary, {
105
- FallbackComponent: ErrorFallback,
111
+ FallbackComponent: variant === "dialog" ? ErrorFallback : ErrorFallbackMessage,
106
112
  onError: (err, info) => {
107
113
  console.error(err, info);
108
114
  },
@@ -111,5 +117,4 @@ function ErrorBoundary$1(props) {
111
117
  }
112
118
  __name(ErrorBoundary$1, "ErrorBoundary");
113
119
 
114
- //#endregion
115
- export { ErrorBoundary$1 as ErrorBoundary, ErrorFallback };
120
+ export { ErrorBoundary$1 as ErrorBoundary, ErrorFallback, ErrorFallbackMessage };
@@ -1,5 +1,5 @@
1
1
  import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
- import { useId as useId$1 } from "../hooks/useId.mjs";
2
+ import { useId as useId$2 } from "../hooks/useId.mjs";
3
3
  import { useMantinePortalProps } from "../hooks/useMantinePortalProps.mjs";
4
4
  import { cx } from "@likec4/styles/css";
5
5
  import { useRef } from "react";
@@ -10,10 +10,10 @@ import { useSessionStorage } from "@mantine/hooks";
10
10
  import { Box as Box$1 } from "@likec4/styles/jsx";
11
11
  import { floatingWindow } from "@likec4/styles/recipes";
12
12
 
13
- //#region src/components/FloatingWindow.tsx
13
+ // src/components/FloatingWindow.tsx
14
14
  function FloatingWindow$1({ children, windowId, onClose, dimensions, initialPosition, className, nonResizeable = false, ...props }) {
15
15
  const portalProps = useMantinePortalProps();
16
- const id = useId$1();
16
+ const id = useId$2();
17
17
  const [windowState, setWindowState] = useSessionStorage({
18
18
  key: `likec4:window:${windowId ?? id}`,
19
19
  getInitialValueInEffect: false,
@@ -87,5 +87,4 @@ function FloatingWindow$1({ children, windowId, onClose, dimensions, initialPosi
87
87
  }
88
88
  __name(FloatingWindow$1, "FloatingWindow");
89
89
 
90
- //#endregion
91
90
  export { FloatingWindow$1 as FloatingWindow };
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { forwardRef } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
- //#region src/components/GithubIcon.tsx
5
+ // src/components/GithubIcon.tsx
6
6
  const GithubIcon = forwardRef((props, ref) => /* @__PURE__ */ jsx("svg", {
7
7
  height: "24",
8
8
  width: "24",
@@ -13,5 +13,4 @@ const GithubIcon = forwardRef((props, ref) => /* @__PURE__ */ jsx("svg", {
13
13
  children: /* @__PURE__ */ jsx("path", { d: "M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z" })
14
14
  }));
15
15
 
16
- //#endregion
17
16
  export { GithubIcon };
@@ -1,6 +1,6 @@
1
1
  import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
- import IconCheck from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs";
3
- import IconCopy from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs";
2
+ import IconCheck from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs";
3
+ import IconCopy from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs";
4
4
  import { GithubIcon } from "./GithubIcon.mjs";
5
5
  import { css, cx } from "@likec4/styles/css";
6
6
  import { forwardRef } from "react";
@@ -8,7 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { ActionIcon, Badge, CopyButton } from "@mantine/core";
9
9
  import { styled } from "@likec4/styles/jsx";
10
10
 
11
- //#region src/components/Link.tsx
11
+ // src/components/Link.tsx
12
12
  const GITHUB_PREFIX = "https://github.com/";
13
13
  const Link = forwardRef(({ value, className, ...props }, ref) => {
14
14
  const url = value.url.includes("://") ? value.url : new window.URL(value.url, window.location.href).toString();
@@ -99,5 +99,4 @@ const Link = forwardRef(({ value, className, ...props }, ref) => {
99
99
  });
100
100
  });
101
101
 
102
- //#endregion
103
102
  export { Link };
@@ -1,7 +1,5 @@
1
1
  import { __name } from "../_virtual/_rolldown/runtime.mjs";
2
+ import { Customizable } from "../customization/customization-types.mjs";
2
3
  import { SVGProps } from "react";
3
- //#region src/components/Logo.d.ts
4
- type LogoProps = Omit<SVGProps<SVGSVGElement>, 'viewBox'>;
5
- export declare const Logo: import("react").ForwardRefExoticComponent<Omit<LogoProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
6
- export declare const LogoIcon: import("react").ForwardRefExoticComponent<Omit<LogoProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
7
- //#endregion
4
+ export declare const Logo: Customizable<(props: SVGProps<SVGSVGElement>) => import("react").JSX.Element, "LogoSvg">;
5
+ export declare const LogoIcon: Customizable<(props: SVGProps<SVGSVGElement>) => import("react").JSX.Element, "LogoIconSvg">;