@likec4/diagram 1.45.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/bundle/index.js +2134 -1652
  2. package/dist/LikeC4Diagram.d.ts +1 -1
  3. package/dist/LikeC4Diagram.js +8 -7
  4. package/dist/LikeC4Diagram.props.d.ts +4 -12
  5. package/dist/LikeC4ProjectsProvider.js +8 -4
  6. package/dist/LikeC4View.js +1 -5
  7. package/dist/ReactLikeC4.d.ts +1 -4
  8. package/dist/StaticLikeC4Diagram.js +0 -2
  9. package/dist/base-primitives/NodeHandles.d.ts +2 -1
  10. package/dist/base-primitives/NodeHandles.js +22 -18
  11. package/dist/base-primitives/compound/CompoundActionButton.js +1 -1
  12. package/dist/base-primitives/compound/CompoundDetailsButton.js +1 -1
  13. package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
  14. package/dist/base-primitives/edge/EdgeContainer.d.ts +1 -1
  15. package/dist/base-primitives/edge/EdgeContainer.js +2 -3
  16. package/dist/base-primitives/edge/EdgeLabel.js +16 -16
  17. package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +1 -1
  18. package/dist/base-primitives/edge/EdgeLabelContainer.js +5 -4
  19. package/dist/base-primitives/edge/EdgePath.js +13 -18
  20. package/dist/base-primitives/element/ElementActionButtons.js +1 -1
  21. package/dist/base-primitives/element/ElementDetailsButton.js +1 -1
  22. package/dist/components/ErrorFallback.js +1 -1
  23. package/dist/components/Link.js +2 -2
  24. package/dist/context/DiagramEventHandlers.js +0 -1
  25. package/dist/context/DiagramFeatures.d.ts +1 -1
  26. package/dist/context/DiagramFeatures.js +1 -0
  27. package/dist/context/EnsureMantine.js +2 -1
  28. package/dist/context/IconRenderer.js +6 -6
  29. package/dist/editor/LikeC4EditorProvider.d.ts +22 -0
  30. package/dist/editor/LikeC4EditorProvider.js +12 -0
  31. package/dist/editor/__tests__/fixture.d.ts +205 -0
  32. package/dist/editor/applyChangesToManualLayout.d.ts +8 -0
  33. package/dist/editor/applyChangesToManualLayout.js +182 -0
  34. package/dist/editor/editorActor.actions.d.ts +201 -0
  35. package/dist/editor/editorActor.actions.js +149 -0
  36. package/dist/editor/editorActor.d.ts +653 -0
  37. package/dist/editor/editorActor.js +324 -0
  38. package/dist/editor/hotkeyActor.d.ts +7 -0
  39. package/dist/editor/hotkeyActor.js +19 -0
  40. package/dist/editor/index.d.ts +3 -2
  41. package/dist/editor/useEditorActorLogic.d.ts +565 -0
  42. package/dist/editor/useEditorActorLogic.js +54 -0
  43. package/dist/hooks/safeContext.d.ts +3 -2
  44. package/dist/hooks/safeContext.js +7 -4
  45. package/dist/hooks/useDiagram.d.ts +4 -2
  46. package/dist/hooks/useDiagram.js +19 -8
  47. package/dist/hooks/useDiagramCompareLayout.d.ts +8 -0
  48. package/dist/hooks/useDiagramCompareLayout.js +22 -2
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/likec4diagram/DiagramXYFlow.js +1 -2
  52. package/dist/likec4diagram/custom/edges/EdgeDrifts.js +1 -5
  53. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +74 -48
  54. package/dist/likec4diagram/custom/edges/edges.css.d.ts +0 -1
  55. package/dist/likec4diagram/custom/edges/edges.css.js +30 -24
  56. package/dist/likec4diagram/custom/edges/useControlPoints.js +2 -2
  57. package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
  58. package/dist/likec4diagram/custom/nodes/NodeDrifts.js +4 -9
  59. package/dist/likec4diagram/custom/nodes/nodes.js +3 -6
  60. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +2 -2
  61. package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
  62. package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +127 -14
  63. package/dist/likec4diagram/state/DiagramActorProvider.js +63 -71
  64. package/dist/likec4diagram/state/assign.d.ts +4 -1
  65. package/dist/likec4diagram/state/assign.js +11 -8
  66. package/dist/likec4diagram/state/createViewChange.js +13 -9
  67. package/dist/likec4diagram/state/diagram-api.d.ts +20 -2
  68. package/dist/likec4diagram/state/diagram-api.js +58 -44
  69. package/dist/likec4diagram/state/hotkeyActor.d.ts +1 -1
  70. package/dist/likec4diagram/state/hotkeyActor.js +12 -0
  71. package/dist/likec4diagram/state/machine.actions.d.ts +774 -195
  72. package/dist/likec4diagram/state/machine.actions.js +185 -74
  73. package/dist/likec4diagram/state/machine.actions.layout.d.ts +93 -31
  74. package/dist/likec4diagram/state/machine.actions.layout.js +16 -4
  75. package/dist/likec4diagram/state/machine.d.ts +5 -4
  76. package/dist/likec4diagram/state/machine.js +11 -6
  77. package/dist/likec4diagram/state/machine.setup.d.ts +20 -9
  78. package/dist/likec4diagram/state/machine.setup.js +18 -3
  79. package/dist/likec4diagram/state/machine.state.initializing.d.ts +34 -18
  80. package/dist/likec4diagram/state/machine.state.initializing.js +10 -10
  81. package/dist/likec4diagram/state/machine.state.navigating.js +28 -9
  82. package/dist/likec4diagram/state/machine.state.ready.d.ts +1368 -434
  83. package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +363 -39
  84. package/dist/likec4diagram/state/machine.state.ready.focused.js +17 -4
  85. package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +104 -38
  86. package/dist/likec4diagram/state/machine.state.ready.idle.js +14 -5
  87. package/dist/likec4diagram/state/machine.state.ready.js +13 -90
  88. package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +18 -6
  89. package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +204 -31
  90. package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +14 -1
  91. package/dist/likec4diagram/state/types.d.ts +6 -2
  92. package/dist/likec4diagram/state/utils.d.ts +33 -7
  93. package/dist/likec4diagram/state/utils.js +23 -7
  94. package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
  95. package/dist/likec4diagram/useLayoutConstraints.js +5 -9
  96. package/dist/navigationpanel/NavigationPanel.js +6 -9
  97. package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
  98. package/dist/navigationpanel/_common.js +1 -1
  99. package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +3 -1
  100. package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +40 -14
  101. package/dist/navigationpanel/comparepanel/ComparePanelControls.js +6 -4
  102. package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +2 -2
  103. package/dist/navigationpanel/controls/DetailsControls.js +2 -2
  104. package/dist/navigationpanel/controls/LayoutWarning.js +2 -1
  105. package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
  106. package/dist/navigationpanel/controls/OpenSource.js +1 -1
  107. package/dist/navigationpanel/controls/SearchControl.js +2 -2
  108. package/dist/navigationpanel/controls/ToggleReadonly.js +25 -17
  109. package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
  110. package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
  111. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
  112. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
  113. package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
  114. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -3
  115. package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +66 -66
  116. package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
  117. package/dist/overlays/Overlays.js +24 -12
  118. package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
  119. package/dist/overlays/element-details/MetadataValue.js +4 -6
  120. package/dist/overlays/element-details/TabPanelDeployments.js +3 -3
  121. package/dist/overlays/element-details/TabPanelRelationships.js +12 -7
  122. package/dist/overlays/element-details/TabPanelStructure.js +1 -1
  123. package/dist/overlays/overlaysActor.js +6 -3
  124. package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
  125. package/dist/overlays/relationship-details/SelectEdge.js +2 -2
  126. package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
  127. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +3 -3
  128. package/dist/overlays/relationships-browser/SelectElement.js +2 -2
  129. package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
  130. package/dist/search/components/ElementsColumn.js +7 -3
  131. package/dist/search/components/PickView.js +3 -1
  132. package/dist/search/components/SearchByTags.js +1 -1
  133. package/dist/search/components/SearchInput.js +1 -1
  134. package/dist/search/components/ViewsColum.d.ts +3 -1
  135. package/dist/search/components/ViewsColum.js +13 -7
  136. package/dist/shadowroot/styles.css.js +6 -1
  137. package/dist/styles.css2.js +1 -1
  138. package/dist/utils/index.d.ts +2 -2
  139. package/dist/utils/xyflow.d.ts +2 -3
  140. package/dist/utils/xyflow.js +9 -8
  141. package/package.json +17 -17
  142. package/panda.buildinfo.json +59 -77
  143. package/styles-min.css +1 -1
  144. package/styles.css +1 -1
  145. package/dist/base-primitives/edge/edge.css.d.ts +0 -4
  146. package/dist/base-primitives/edge/edge.css.js +0 -71
  147. package/dist/editor/LikeC4EditorContext.d.ts +0 -21
  148. package/dist/likec4diagram/state/syncManualLayoutActor.d.ts +0 -46
  149. package/dist/likec4diagram/state/syncManualLayoutActor.js +0 -309
  150. package/dist/utils/vector.d.ts +0 -86
  151. package/dist/utils/vector.js +0 -127
  152. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
  153. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
  154. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
  155. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
  156. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
  157. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
  159. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
  160. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
  161. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
  162. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
  163. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
  164. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
  165. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
  166. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
  167. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
  168. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
  169. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
  170. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
  171. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
  172. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
  173. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
  174. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
  175. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
  176. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
  177. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
  178. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
  179. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
  180. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
  181. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
  182. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
  183. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
  184. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
  185. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
  186. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
  187. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
  188. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
  189. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
  190. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
  191. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
  192. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
  193. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
  194. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
  195. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
  196. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
  197. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
  198. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
  199. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
  200. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
  201. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
  202. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
@@ -1,11 +1,11 @@
1
1
  import { GuardPredicate, ActionFunction, Values } from 'xstate';
2
2
  import { Context, Events, EmittedEvents } from './machine.setup';
3
3
  import { NormalizeGuardArgArray } from 'xstate/guards';
4
- import { SyncLayoutActorLogic } from './syncManualLayoutActor';
5
4
  import { HotkeyActorLogic } from './hotkeyActor';
6
5
  import { OverlaysActorLogic } from '../../overlays/overlaysActor';
7
6
  import { SearchActorLogic } from '../../search/searchActor';
8
7
  import { MediaPrintActorLogic } from './mediaPrintActor';
8
+ import { EditorActorLogic } from '../../editor';
9
9
  export declare const idle: {
10
10
  id: string;
11
11
  on: {
@@ -18,11 +18,6 @@ export declare const idle: {
18
18
  node: import("../types").Types.Node;
19
19
  }, unknown, NormalizeGuardArgArray<["click: same node", "click: selected node"]>>]>>;
20
20
  actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
21
- syncManualLayoutActorLogic: {
22
- src: "syncManualLayoutActorLogic";
23
- logic: SyncLayoutActorLogic;
24
- id: "syncLayout";
25
- };
26
21
  hotkeyActorLogic: {
27
22
  src: "hotkeyActorLogic";
28
23
  logic: HotkeyActorLogic;
@@ -43,6 +38,11 @@ export declare const idle: {
43
38
  logic: MediaPrintActorLogic;
44
39
  id: "mediaPrint";
45
40
  };
41
+ editorActor: {
42
+ src: "editorActor";
43
+ logic: EditorActorLogic;
44
+ id: "editor";
45
+ };
46
46
  }>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
47
47
  target: string;
48
48
  } | {
@@ -54,11 +54,6 @@ export declare const idle: {
54
54
  node: import("../types").Types.Node;
55
55
  }, unknown, NormalizeGuardArgArray<["click: same node", "click: selected node"]>>]>>;
56
56
  actions: ActionFunction<Context, Events, Events, undefined, Values<{
57
- syncManualLayoutActorLogic: {
58
- src: "syncManualLayoutActorLogic";
59
- logic: SyncLayoutActorLogic;
60
- id: "syncLayout";
61
- };
62
57
  hotkeyActorLogic: {
63
58
  src: "hotkeyActorLogic";
64
59
  logic: HotkeyActorLogic;
@@ -79,11 +74,20 @@ export declare const idle: {
79
74
  logic: MediaPrintActorLogic;
80
75
  id: "mediaPrint";
81
76
  };
77
+ editorActor: {
78
+ src: "editorActor";
79
+ logic: EditorActorLogic;
80
+ id: "editor";
81
+ };
82
82
  }>, never, Values<{
83
83
  isReady: {
84
84
  type: "isReady";
85
85
  params: unknown;
86
86
  };
87
+ "enabled: Editor": {
88
+ type: "enabled: Editor";
89
+ params: unknown;
90
+ };
87
91
  "enabled: FitView": {
88
92
  type: "enabled: FitView";
89
93
  params: unknown;
@@ -116,6 +120,10 @@ export declare const idle: {
116
120
  type: "enabled: DynamicViewWalkthrough";
117
121
  params: unknown;
118
122
  };
123
+ "focus.node: autoUnfocus": {
124
+ type: "focus.node: autoUnfocus";
125
+ params: unknown;
126
+ };
119
127
  "enabled: Overlays": {
120
128
  type: "enabled: Overlays";
121
129
  params: unknown;
@@ -128,6 +136,10 @@ export declare const idle: {
128
136
  type: "is dynamic view";
129
137
  params: unknown;
130
138
  };
139
+ "is same view": {
140
+ type: "is same view";
141
+ params: unknown;
142
+ };
131
143
  "is another view": {
132
144
  type: "is another view";
133
145
  params: unknown;
@@ -160,11 +172,6 @@ export declare const idle: {
160
172
  target?: never;
161
173
  } | {
162
174
  actions: ActionFunction<Context, Events, Events, undefined, Values<{
163
- syncManualLayoutActorLogic: {
164
- src: "syncManualLayoutActorLogic";
165
- logic: SyncLayoutActorLogic;
166
- id: "syncLayout";
167
- };
168
175
  hotkeyActorLogic: {
169
176
  src: "hotkeyActorLogic";
170
177
  logic: HotkeyActorLogic;
@@ -185,11 +192,20 @@ export declare const idle: {
185
192
  logic: MediaPrintActorLogic;
186
193
  id: "mediaPrint";
187
194
  };
195
+ editorActor: {
196
+ src: "editorActor";
197
+ logic: EditorActorLogic;
198
+ id: "editor";
199
+ };
188
200
  }>, never, Values<{
189
201
  isReady: {
190
202
  type: "isReady";
191
203
  params: unknown;
192
204
  };
205
+ "enabled: Editor": {
206
+ type: "enabled: Editor";
207
+ params: unknown;
208
+ };
193
209
  "enabled: FitView": {
194
210
  type: "enabled: FitView";
195
211
  params: unknown;
@@ -222,6 +238,10 @@ export declare const idle: {
222
238
  type: "enabled: DynamicViewWalkthrough";
223
239
  params: unknown;
224
240
  };
241
+ "focus.node: autoUnfocus": {
242
+ type: "focus.node: autoUnfocus";
243
+ params: unknown;
244
+ };
225
245
  "enabled: Overlays": {
226
246
  type: "enabled: Overlays";
227
247
  params: unknown;
@@ -234,6 +254,10 @@ export declare const idle: {
234
254
  type: "is dynamic view";
235
255
  params: unknown;
236
256
  };
257
+ "is same view": {
258
+ type: "is same view";
259
+ params: unknown;
260
+ };
237
261
  "is another view": {
238
262
  type: "is another view";
239
263
  params: unknown;
@@ -268,11 +292,6 @@ export declare const idle: {
268
292
  })[];
269
293
  'xyflow.paneClick': {
270
294
  actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
271
- syncManualLayoutActorLogic: {
272
- src: "syncManualLayoutActorLogic";
273
- logic: SyncLayoutActorLogic;
274
- id: "syncLayout";
275
- };
276
295
  hotkeyActorLogic: {
277
296
  src: "hotkeyActorLogic";
278
297
  logic: HotkeyActorLogic;
@@ -293,17 +312,17 @@ export declare const idle: {
293
312
  logic: MediaPrintActorLogic;
294
313
  id: "mediaPrint";
295
314
  };
315
+ editorActor: {
316
+ src: "editorActor";
317
+ logic: EditorActorLogic;
318
+ id: "editor";
319
+ };
296
320
  }>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
297
321
  };
298
322
  'xyflow.paneDblClick': {
299
323
  actions: ActionFunction<Context, {
300
324
  type: "xyflow.paneDblClick";
301
325
  }, Events, undefined, Values<{
302
- syncManualLayoutActorLogic: {
303
- src: "syncManualLayoutActorLogic";
304
- logic: SyncLayoutActorLogic;
305
- id: "syncLayout";
306
- };
307
326
  hotkeyActorLogic: {
308
327
  src: "hotkeyActorLogic";
309
328
  logic: HotkeyActorLogic;
@@ -324,11 +343,20 @@ export declare const idle: {
324
343
  logic: MediaPrintActorLogic;
325
344
  id: "mediaPrint";
326
345
  };
346
+ editorActor: {
347
+ src: "editorActor";
348
+ logic: EditorActorLogic;
349
+ id: "editor";
350
+ };
327
351
  }>, never, Values<{
328
352
  isReady: {
329
353
  type: "isReady";
330
354
  params: unknown;
331
355
  };
356
+ "enabled: Editor": {
357
+ type: "enabled: Editor";
358
+ params: unknown;
359
+ };
332
360
  "enabled: FitView": {
333
361
  type: "enabled: FitView";
334
362
  params: unknown;
@@ -361,6 +389,10 @@ export declare const idle: {
361
389
  type: "enabled: DynamicViewWalkthrough";
362
390
  params: unknown;
363
391
  };
392
+ "focus.node: autoUnfocus": {
393
+ type: "focus.node: autoUnfocus";
394
+ params: unknown;
395
+ };
364
396
  "enabled: Overlays": {
365
397
  type: "enabled: Overlays";
366
398
  params: unknown;
@@ -373,6 +405,10 @@ export declare const idle: {
373
405
  type: "is dynamic view";
374
406
  params: unknown;
375
407
  };
408
+ "is same view": {
409
+ type: "is same view";
410
+ params: unknown;
411
+ };
376
412
  "is another view": {
377
413
  type: "is another view";
378
414
  params: unknown;
@@ -403,14 +439,39 @@ export declare const idle: {
403
439
  };
404
440
  }>, never, EmittedEvents>[];
405
441
  };
406
- 'focus.node': {
407
- guard: "enabled: FocusMode";
442
+ 'focus.node': ({
443
+ guard: "focus.node: autoUnfocus";
408
444
  actions: ActionFunction<Context, Events, Events, undefined, Values<{
409
- syncManualLayoutActorLogic: {
410
- src: "syncManualLayoutActorLogic";
411
- logic: SyncLayoutActorLogic;
412
- id: "syncLayout";
445
+ hotkeyActorLogic: {
446
+ src: "hotkeyActorLogic";
447
+ logic: HotkeyActorLogic;
448
+ id: "hotkey";
449
+ };
450
+ overlaysActorLogic: {
451
+ src: "overlaysActorLogic";
452
+ logic: OverlaysActorLogic;
453
+ id: "overlays";
413
454
  };
455
+ searchActorLogic: {
456
+ src: "searchActorLogic";
457
+ logic: SearchActorLogic;
458
+ id: "search";
459
+ };
460
+ mediaPrintActorLogic: {
461
+ src: "mediaPrintActorLogic";
462
+ logic: MediaPrintActorLogic;
463
+ id: "mediaPrint";
464
+ };
465
+ editorActor: {
466
+ src: "editorActor";
467
+ logic: EditorActorLogic;
468
+ id: "editor";
469
+ };
470
+ }>, never, never, never, never>;
471
+ target: string;
472
+ } | {
473
+ guard: "enabled: FocusMode";
474
+ actions: ActionFunction<Context, Events, Events, undefined, Values<{
414
475
  hotkeyActorLogic: {
415
476
  src: "hotkeyActorLogic";
416
477
  logic: HotkeyActorLogic;
@@ -431,20 +492,20 @@ export declare const idle: {
431
492
  logic: MediaPrintActorLogic;
432
493
  id: "mediaPrint";
433
494
  };
495
+ editorActor: {
496
+ src: "editorActor";
497
+ logic: EditorActorLogic;
498
+ id: "editor";
499
+ };
434
500
  }>, never, never, never, never>;
435
501
  target: string;
436
- };
502
+ })[];
437
503
  'xyflow.edgeClick': {
438
504
  guard: GuardPredicate<Context, {
439
505
  type: "xyflow.edgeClick";
440
506
  edge: import("../types").Types.Edge;
441
507
  }, unknown, NormalizeGuardArgArray<["enabled: Readonly", "is dynamic view", "enabled: DynamicViewWalkthrough", "click: selected edge"]>>;
442
508
  actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
443
- syncManualLayoutActorLogic: {
444
- src: "syncManualLayoutActorLogic";
445
- logic: SyncLayoutActorLogic;
446
- id: "syncLayout";
447
- };
448
509
  hotkeyActorLogic: {
449
510
  src: "hotkeyActorLogic";
450
511
  logic: HotkeyActorLogic;
@@ -465,6 +526,11 @@ export declare const idle: {
465
526
  logic: MediaPrintActorLogic;
466
527
  id: "mediaPrint";
467
528
  };
529
+ editorActor: {
530
+ src: "editorActor";
531
+ logic: EditorActorLogic;
532
+ id: "editor";
533
+ };
468
534
  }>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents> | ActionFunction<Context, {
469
535
  type: "xyflow.edgeClick";
470
536
  edge: import("../types").Types.Edge;
@@ -69,11 +69,20 @@ const idle = machine.createStateConfig({
69
69
  })
70
70
  ]
71
71
  },
72
- "focus.node": {
73
- guard: "enabled: FocusMode",
74
- actions: assignFocusedNode(),
75
- target: targetState.focused
76
- },
72
+ "focus.node": [
73
+ // Focus was initialed by the user searching (autoUnfocus=true) - always allowed
74
+ {
75
+ guard: "focus.node: autoUnfocus",
76
+ actions: assignFocusedNode(),
77
+ target: targetState.focused
78
+ },
79
+ // Regular focus - requires FocusMode to be enabled
80
+ {
81
+ guard: "enabled: FocusMode",
82
+ actions: assignFocusedNode(),
83
+ target: targetState.focused
84
+ }
85
+ ],
77
86
  "xyflow.edgeClick": {
78
87
  guard: xstateGuards_cjsExports.and([
79
88
  "enabled: Readonly",
@@ -1,77 +1,19 @@
1
- import { BBox } from '@likec4/core';
2
- import { resetLastClickedNode, emitEdgeClick, assignLastClickedNode, emitNodeClick, emitPaneClick, undimEverything, tagHighlight, notationsHighlight, startEditing, onEdgeDoubleClick, stopEditing, onEdgeMouseLeave, onEdgeMouseEnter, onNodeMouseLeave, onNodeMouseEnter, updateFeatures, ensureOverlaysActor, ensureSearchActor, ensureSyncLayoutActor, assignToggledFeatures, emitOpenSource, openElementDetails, stopSyncLayout, disableCompareWithLatest, resetEdgesControlPoints, layoutAlign, handleNavigate, closeAllOverlays, closeSearch, updateXYNodesEdges, sendSynced } from './machine.actions.js';
1
+ import { updateView, resetLastClickedNode, emitEdgeClick, assignLastClickedNode, emitNodeClick, emitPaneClick, undimEverything, tagHighlight, notationsHighlight, startEditing, onEdgeDoubleClick, stopEditing, onEdgeMouseLeave, onEdgeMouseEnter, onNodeMouseLeave, onNodeMouseEnter, updateFeatures, ensureOverlaysActor, ensureSearchActor, ensureEditorActor, assignToggledFeatures, emitOpenSource, openOverlay, cancelEditing, disableCompareWithLatest, triggerChange, resetEdgesControlPoints, layoutAlign, handleNavigate, closeAllOverlays, closeSearch, stopEditorActor } from './machine.actions.js';
3
2
  import { machine, targetState } from './machine.setup.js';
4
3
  import { focused } from './machine.state.ready.focused.js';
5
4
  import { idle } from './machine.state.ready.idle.js';
6
5
  import { printing } from './machine.state.ready.printing.js';
7
6
  import { walkthrough } from './machine.state.ready.walkthrough.js';
8
- import { typedSystem, calcViewportForBounds } from './utils.js';
7
+ import { typedSystem } from './utils.js';
9
8
  import { x as xstateActions_cjsExports } from '../../_virtual/xstate-actions.cjs.js';
10
9
  import { x as xstateGuards_cjsExports } from '../../_virtual/xstate-guards.cjs.js';
11
10
  import { setViewport, fitDiagram, cancelFitDiagram, raiseFitDiagram } from './machine.actions.layout.js';
12
11
 
13
- const updateView = () => machine.enqueueActions(
14
- ({ enqueue, event, context, self }) => {
15
- if (event.type !== "update.view") {
16
- console.warn(`Ignoring unexpected event type: ${event.type} in action 'update.view'`);
17
- return;
18
- }
19
- const nextView = event.view;
20
- const isAnotherView = nextView.id !== context.view.id;
21
- if (isAnotherView) {
22
- console.warn("updateView called for another view - ignoring", { event });
23
- return;
24
- }
25
- enqueue(updateXYNodesEdges());
26
- if (event.source === "internal") {
27
- return;
28
- }
29
- enqueue(sendSynced());
30
- let recenter = !context.viewportChangedManually;
31
- if (context.toggledFeatures.enableCompareWithLatest === true && context.view._layout !== nextView._layout) {
32
- if (nextView._layout === "auto" && context.viewportOnAutoLayout) {
33
- enqueue(
34
- setViewport({
35
- viewport: context.viewportOnAutoLayout,
36
- duration: 0
37
- })
38
- );
39
- return;
40
- }
41
- if (nextView._layout === "manual" && context.viewportOnManualLayout) {
42
- enqueue(
43
- setViewport({
44
- viewport: context.viewportOnManualLayout,
45
- duration: 0
46
- })
47
- );
48
- return;
49
- }
50
- }
51
- recenter = recenter || nextView._type === "dynamic" && context.view._type === "dynamic" && nextView.variant !== context.view.variant;
52
- recenter = recenter || context.toggledFeatures.enableCompareWithLatest === true && !!nextView._layout && context.view._layout !== nextView._layout;
53
- if (recenter) {
54
- enqueue(cancelFitDiagram());
55
- const nextViewport = calcViewportForBounds(
56
- context,
57
- event.view.bounds
58
- );
59
- let zoom = Math.min(nextViewport.zoom, context.viewport.zoom);
60
- const center = BBox.center(event.view.bounds);
61
- context.xyflow.setCenter(
62
- Math.round(center.x),
63
- Math.round(center.y),
64
- { zoom }
65
- );
66
- enqueue(raiseFitDiagram());
67
- }
68
- }
69
- );
70
12
  const ready = machine.createStateConfig({
71
13
  initial: "idle",
72
14
  entry: [
73
15
  xstateActions_cjsExports.spawnChild("mediaPrintActorLogic", { id: "mediaPrint" }),
74
- ensureSyncLayoutActor(),
16
+ ensureEditorActor(),
75
17
  ensureOverlaysActor(),
76
18
  ensureSearchActor()
77
19
  ],
@@ -80,7 +22,7 @@ const ready = machine.createStateConfig({
80
22
  xstateActions_cjsExports.stopChild("mediaPrint"),
81
23
  closeAllOverlays(),
82
24
  closeSearch(),
83
- stopSyncLayout()
25
+ stopEditorActor()
84
26
  ],
85
27
  states: {
86
28
  idle,
@@ -111,15 +53,11 @@ const ready = machine.createStateConfig({
111
53
  "layout.resetManualLayout": {
112
54
  guard: "not readonly",
113
55
  actions: [
114
- stopSyncLayout(),
56
+ cancelEditing(),
115
57
  disableCompareWithLatest(),
116
- xstateActions_cjsExports.emit({
117
- type: "onChange",
118
- change: {
119
- op: "reset-manual-layout"
120
- }
121
- }),
122
- ensureSyncLayoutActor()
58
+ triggerChange({
59
+ op: "reset-manual-layout"
60
+ })
123
61
  ]
124
62
  },
125
63
  "xyflow.resized": {
@@ -130,28 +68,13 @@ const ready = machine.createStateConfig({
130
68
  ]
131
69
  },
132
70
  "open.elementDetails": {
133
- guard: "enabled: ElementDetails",
134
- actions: openElementDetails()
71
+ actions: openOverlay()
135
72
  },
136
73
  "open.relationshipsBrowser": {
137
- actions: xstateActions_cjsExports.sendTo(({ system }) => typedSystem(system).overlaysActorRef, ({ context, event, self }) => ({
138
- type: "open.relationshipsBrowser",
139
- subject: event.fqn,
140
- viewId: context.view.id,
141
- scope: "view",
142
- closeable: true,
143
- enableChangeScope: true,
144
- enableSelectSubject: true,
145
- openSourceActor: self
146
- }))
74
+ actions: openOverlay()
147
75
  },
148
76
  "open.relationshipDetails": {
149
- actions: xstateActions_cjsExports.sendTo(({ system }) => typedSystem(system).overlaysActorRef, ({ context, event, self }) => ({
150
- type: "open.relationshipDetails",
151
- viewId: context.view.id,
152
- openSourceActor: self,
153
- ...event.params
154
- }))
77
+ actions: openOverlay()
155
78
  },
156
79
  "open.source": {
157
80
  guard: "enabled: OpenSource",
@@ -164,7 +87,7 @@ const ready = machine.createStateConfig({
164
87
  "toggle.feature": {
165
88
  actions: [
166
89
  assignToggledFeatures(),
167
- ensureSyncLayoutActor()
90
+ ensureEditorActor()
168
91
  ]
169
92
  },
170
93
  "update.features": {
@@ -172,7 +95,7 @@ const ready = machine.createStateConfig({
172
95
  updateFeatures(),
173
96
  ensureOverlaysActor(),
174
97
  ensureSearchActor(),
175
- ensureSyncLayoutActor()
98
+ ensureEditorActor()
176
99
  ]
177
100
  },
178
101
  "xyflow.nodeMouseEnter": {
@@ -1,10 +1,10 @@
1
1
  import { CancelAction, ActionFunction, Values, LogAction } from 'xstate';
2
2
  import { Context, Events, EmittedEvents } from './machine.setup';
3
- import { SyncLayoutActorLogic } from './syncManualLayoutActor';
4
3
  import { HotkeyActorLogic } from './hotkeyActor';
5
4
  import { OverlaysActorLogic } from '../../overlays/overlaysActor';
6
5
  import { SearchActorLogic } from '../../search/searchActor';
7
6
  import { MediaPrintActorLogic } from './mediaPrintActor';
7
+ import { EditorActorLogic } from '../../editor';
8
8
  /**
9
9
  * State when the diagram is being prepared for printing.
10
10
  * Adjusts the viewport to fit the entire diagram for optimal printing.
@@ -14,11 +14,6 @@ export declare const printing: {
14
14
  id: string;
15
15
  entry: CancelAction<Context, Events, undefined, Events>[];
16
16
  exit: ActionFunction<Context, Events, Events, undefined, Values<{
17
- syncManualLayoutActorLogic: {
18
- src: "syncManualLayoutActorLogic";
19
- logic: SyncLayoutActorLogic;
20
- id: "syncLayout";
21
- };
22
17
  hotkeyActorLogic: {
23
18
  src: "hotkeyActorLogic";
24
19
  logic: HotkeyActorLogic;
@@ -39,11 +34,20 @@ export declare const printing: {
39
34
  logic: MediaPrintActorLogic;
40
35
  id: "mediaPrint";
41
36
  };
37
+ editorActor: {
38
+ src: "editorActor";
39
+ logic: EditorActorLogic;
40
+ id: "editor";
41
+ };
42
42
  }>, never, Values<{
43
43
  isReady: {
44
44
  type: "isReady";
45
45
  params: unknown;
46
46
  };
47
+ "enabled: Editor": {
48
+ type: "enabled: Editor";
49
+ params: unknown;
50
+ };
47
51
  "enabled: FitView": {
48
52
  type: "enabled: FitView";
49
53
  params: unknown;
@@ -76,6 +80,10 @@ export declare const printing: {
76
80
  type: "enabled: DynamicViewWalkthrough";
77
81
  params: unknown;
78
82
  };
83
+ "focus.node: autoUnfocus": {
84
+ type: "focus.node: autoUnfocus";
85
+ params: unknown;
86
+ };
79
87
  "enabled: Overlays": {
80
88
  type: "enabled: Overlays";
81
89
  params: unknown;
@@ -88,6 +96,10 @@ export declare const printing: {
88
96
  type: "is dynamic view";
89
97
  params: unknown;
90
98
  };
99
+ "is same view": {
100
+ type: "is same view";
101
+ params: unknown;
102
+ };
91
103
  "is another view": {
92
104
  type: "is another view";
93
105
  params: unknown;