@likec4/diagram 1.59.3 → 1.60.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.
- package/custom/package.json +2 -2
- package/dist/LikeC4Diagram.d.mts +15 -0
- package/dist/LikeC4Diagram.mjs +173 -0
- package/dist/LikeC4Diagram.props.d.mts +297 -0
- package/dist/LikeC4MantineProvider.d.mts +26 -0
- package/dist/LikeC4MantineProvider.mjs +158 -0
- package/dist/LikeC4ModelProvider.d.mts +13 -0
- package/dist/LikeC4ModelProvider.mjs +17 -0
- package/dist/LikeC4ProjectsOverview.d.mts +12 -0
- package/dist/LikeC4ProjectsOverview.mjs +28 -0
- package/dist/LikeC4ProjectsProvider.d.mts +35 -0
- package/dist/LikeC4ProjectsProvider.mjs +37 -0
- package/dist/LikeC4Styles.d.mts +16 -0
- package/dist/LikeC4Styles.mjs +73 -0
- package/dist/LikeC4View.d.mts +287 -0
- package/dist/LikeC4View.mjs +153 -0
- package/dist/ReactLikeC4.d.mts +50 -0
- package/dist/ReactLikeC4.mjs +47 -0
- package/dist/StaticLikeC4Diagram.d.mts +14 -0
- package/dist/StaticLikeC4Diagram.mjs +40 -0
- package/dist/_virtual/_rolldown/runtime.mjs +22 -0
- package/dist/base/Background.mjs +32 -0
- package/dist/base/Base.d.mts +30 -0
- package/dist/base/Base.mjs +36 -0
- package/dist/base/BaseXYFlow.mjs +209 -0
- package/dist/base/const.d.mts +5 -0
- package/dist/base/const.mjs +23 -0
- package/dist/base/keyboardZoom.mjs +22 -0
- package/dist/base/types.d.mts +62 -0
- package/dist/base/updateEdges.mjs +36 -0
- package/dist/base/updateNodes.mjs +47 -0
- package/dist/base-primitives/Markdown.d.mts +34 -0
- package/dist/base-primitives/Markdown.mjs +37 -0
- package/dist/base-primitives/NodeHandles.d.mts +10 -0
- package/dist/base-primitives/NodeHandles.mjs +44 -0
- package/dist/base-primitives/compound/CompoundActionButton.d.mts +12 -0
- package/dist/base-primitives/compound/CompoundActionButton.mjs +57 -0
- package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +12 -0
- package/dist/base-primitives/compound/CompoundDetailsButton.mjs +47 -0
- package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +17 -0
- package/dist/base-primitives/compound/CompoundNodeContainer.mjs +49 -0
- package/dist/base-primitives/compound/CompoundTitle.d.mts +21 -0
- package/dist/base-primitives/compound/CompoundTitle.mjs +22 -0
- package/dist/base-primitives/compound/actionbtns.css.mjs +13 -0
- package/dist/base-primitives/edge/EdgeActionButton.d.mts +1 -0
- package/dist/base-primitives/edge/EdgeActionButton.mjs +23 -0
- package/dist/base-primitives/edge/EdgeContainer.d.mts +4 -0
- package/dist/base-primitives/edge/EdgeContainer.mjs +35 -0
- package/dist/base-primitives/edge/EdgeLabel.d.mts +5 -0
- package/dist/base-primitives/edge/EdgeLabel.mjs +46 -0
- package/dist/base-primitives/edge/EdgeLabelContainer.d.mts +4 -0
- package/dist/base-primitives/edge/EdgeLabelContainer.mjs +40 -0
- package/dist/base-primitives/edge/EdgeMarkers.d.mts +2 -0
- package/dist/base-primitives/edge/EdgeMarkers.mjs +163 -0
- package/dist/base-primitives/edge/EdgePath.d.mts +4 -0
- package/dist/base-primitives/edge/EdgePath.mjs +67 -0
- package/dist/base-primitives/element/ElementActionButtons.d.mts +45 -0
- package/dist/base-primitives/element/ElementActionButtons.mjs +100 -0
- package/dist/base-primitives/element/ElementData.d.mts +72 -0
- package/dist/base-primitives/element/ElementData.mjs +135 -0
- package/dist/base-primitives/element/ElementDetailsButton.d.mts +13 -0
- package/dist/base-primitives/element/ElementDetailsButton.mjs +87 -0
- package/dist/base-primitives/element/ElementNodeContainer.d.mts +23 -0
- package/dist/base-primitives/element/ElementNodeContainer.mjs +58 -0
- package/dist/base-primitives/element/ElementShape.d.mts +21 -0
- package/dist/base-primitives/element/ElementShape.mjs +469 -0
- package/dist/base-primitives/element/ElementTags.d.mts +19 -0
- package/dist/base-primitives/element/ElementTags.mjs +137 -0
- package/dist/base-primitives/index.d.mts +21 -0
- package/dist/base-primitives/memoEdge.d.mts +6 -0
- package/dist/base-primitives/memoEdge.mjs +17 -0
- package/dist/base-primitives/memoNode.d.mts +6 -0
- package/dist/base-primitives/memoNode.mjs +23 -0
- package/dist/components/EmptyBox.mjs +11 -0
- package/dist/components/ErrorFallback.d.mts +7 -0
- package/dist/components/ErrorFallback.mjs +115 -0
- package/dist/components/FloatingWindow.mjs +91 -0
- package/dist/components/GithubIcon.mjs +17 -0
- package/dist/components/Link.mjs +103 -0
- package/dist/components/Logo.d.mts +7 -0
- package/dist/components/Logo.mjs +41 -0
- package/dist/components/NavigationLink.mjs +19 -0
- package/dist/components/NavigationPanel.mjs +35 -0
- package/dist/components/PortalToContainer.d.mts +9 -0
- package/dist/components/PortalToContainer.mjs +21 -0
- package/dist/components/RootContainer.mjs +40 -0
- package/dist/components/SearchControl.css.mjs +69 -0
- package/dist/components/SearchControl.d.mts +6 -0
- package/dist/components/SearchControl.mjs +41 -0
- package/dist/components/ViewIcon.mjs +76 -0
- package/dist/components/ViewNotFound.mjs +29 -0
- package/dist/context/CurrentViewModelProvider.mjs +17 -0
- package/dist/context/DiagramEventHandlers.d.mts +11 -0
- package/dist/context/DiagramEventHandlers.mjs +48 -0
- package/dist/context/DiagramFeatures.d.mts +29 -0
- package/dist/context/DiagramFeatures.mjs +95 -0
- package/dist/context/EnsureMantine.mjs +18 -0
- package/dist/context/FramerMotionConfig.d.mts +11 -0
- package/dist/context/FramerMotionConfig.mjs +21 -0
- package/dist/context/IconRenderer.d.mts +24 -0
- package/dist/context/IconRenderer.mjs +179 -0
- package/dist/context/LikeC4ModelContext.d.mts +14 -0
- package/dist/context/LikeC4ModelContext.mjs +21 -0
- package/dist/context/LikeC4ProjectsContext.d.mts +9 -0
- package/dist/context/LikeC4ProjectsContext.mjs +12 -0
- package/dist/context/RootContainerContext.mjs +24 -0
- package/dist/context/TagStylesContext.d.mts +14 -0
- package/dist/context/TagStylesContext.mjs +78 -0
- package/dist/custom/builtins.d.mts +9 -0
- package/dist/custom/customNodes.d.mts +235 -0
- package/dist/custom/customNodes.mjs +241 -0
- package/dist/custom/hooks.d.mts +17 -0
- package/dist/custom/index.d.mts +54 -0
- package/dist/custom/index.mjs +44 -0
- package/dist/custom/primitives.d.mts +16 -0
- package/dist/editor/LikeC4EditorCallbacks.d.mts +44 -0
- package/dist/editor/LikeC4EditorCallbacks.mjs +12 -0
- package/dist/editor/LikeC4EditorProvider.d.mts +30 -0
- package/dist/editor/LikeC4EditorProvider.mjs +39 -0
- package/dist/editor/actor/actions.mjs +208 -0
- package/dist/editor/actor/hotkey.d.mts +8 -0
- package/dist/editor/actor/hotkey.mjs +29 -0
- package/dist/editor/actor/machine.d.mts +9 -0
- package/dist/editor/actor/machine.mjs +27 -0
- package/dist/editor/actor/setup.d.mts +59 -0
- package/dist/editor/actor/setup.mjs +44 -0
- package/dist/editor/actor/state.editor.mjs +58 -0
- package/dist/editor/actor/state.sync-queue.mjs +276 -0
- package/dist/editor/actor/types.d.mts +66 -0
- package/dist/editor/actor/types.mjs +7 -0
- package/dist/editor/applyChangesToManualLayout.mjs +169 -0
- package/dist/editor/index.d.mts +5 -0
- package/dist/editor/useEditorActorLogic.mjs +79 -0
- package/dist/hooks/safeContext.d.mts +128 -0
- package/dist/hooks/safeContext.mjs +74 -0
- package/dist/hooks/useCallbackRef.mjs +23 -0
- package/dist/hooks/useCurrentView.d.mts +14 -0
- package/dist/hooks/useCurrentView.mjs +32 -0
- package/dist/hooks/useCurrentViewModel.d.mts +12 -0
- package/dist/hooks/useCurrentViewModel.mjs +18 -0
- package/dist/hooks/useDiagram.d.mts +29 -0
- package/dist/hooks/useDiagram.mjs +59 -0
- package/dist/hooks/useDiagramCompareLayout.d.mts +54 -0
- package/dist/hooks/useDiagramCompareLayout.mjs +86 -0
- package/dist/hooks/useEdgeTracks.mjs +91 -0
- package/dist/hooks/useEditorActor.mjs +27 -0
- package/dist/hooks/useId.mjs +11 -0
- package/dist/hooks/useLikeC4ElementsTree.mjs +30 -0
- package/dist/hooks/useLikeC4Model.d.mts +15 -0
- package/dist/hooks/useLikeC4Model.mjs +34 -0
- package/dist/hooks/useLikeC4Project.d.mts +29 -0
- package/dist/hooks/useLikeC4Project.mjs +58 -0
- package/dist/hooks/useLikeC4Styles.d.mts +5 -0
- package/dist/hooks/useLikeC4Styles.mjs +11 -0
- package/dist/hooks/useMantinePortalProps.mjs +15 -0
- package/dist/hooks/useSetState.d.mts +10 -0
- package/dist/hooks/useSetState.mjs +26 -0
- package/dist/hooks/useUpdateEffect.d.mts +7 -0
- package/dist/hooks/useUpdateEffect.mjs +23 -0
- package/dist/hooks/useXYFlow.d.mts +12 -0
- package/dist/hooks/useXYFlow.mjs +28 -0
- package/dist/index.d.mts +33 -0
- package/dist/index.mjs +30 -0
- package/dist/likec4diagram/DiagramUI.mjs +56 -0
- package/dist/likec4diagram/DiagramXYFlow.mjs +287 -0
- package/dist/likec4diagram/convert-to-xyflow.mjs +55 -0
- package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +26 -0
- package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +446 -0
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +81 -0
- package/dist/likec4diagram/custom/edges/edges.css.mjs +50 -0
- package/dist/likec4diagram/custom/edges/useControlPoints.mjs +41 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +41 -0
- package/dist/likec4diagram/custom/index.mjs +26 -0
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +6 -0
- package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +24 -0
- package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +90 -0
- package/dist/likec4diagram/custom/nodes/ElementActions.mjs +147 -0
- package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +1 -0
- package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +84 -0
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +1 -0
- package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +24 -0
- package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +226 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +6 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +153 -0
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +1 -0
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +239 -0
- package/dist/likec4diagram/custom/nodes/index.d.mts +11 -0
- package/dist/likec4diagram/custom/nodes/nodes.d.mts +22 -0
- package/dist/likec4diagram/custom/nodes/nodes.mjs +174 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +160 -0
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +6 -0
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +65 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +11 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +117 -0
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +11 -0
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +64 -0
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +106 -0
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +17 -0
- package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +9 -0
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +41 -0
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +524 -0
- package/dist/likec4diagram/relationship-popover/actor.mjs +120 -0
- package/dist/likec4diagram/relationship-popover/components.mjs +47 -0
- package/dist/likec4diagram/state/DiagramActorProvider.mjs +152 -0
- package/dist/likec4diagram/state/aligners.d.mts +7 -0
- package/dist/likec4diagram/state/aligners.mjs +294 -0
- package/dist/likec4diagram/state/assign.mjs +99 -0
- package/dist/likec4diagram/state/createViewChange.mjs +73 -0
- package/dist/likec4diagram/state/diagram-api.d.mts +173 -0
- package/dist/likec4diagram/state/diagram-api.mjs +362 -0
- package/dist/likec4diagram/state/hotkeyActor.d.mts +8 -0
- package/dist/likec4diagram/state/hotkeyActor.mjs +58 -0
- package/dist/likec4diagram/state/machine.actions.layout.mjs +176 -0
- package/dist/likec4diagram/state/machine.actions.mjs +800 -0
- package/dist/likec4diagram/state/machine.d.mts +74 -0
- package/dist/likec4diagram/state/machine.mjs +91 -0
- package/dist/likec4diagram/state/machine.setup.d.mts +376 -0
- package/dist/likec4diagram/state/machine.setup.mjs +170 -0
- package/dist/likec4diagram/state/machine.state.initializing.mjs +60 -0
- package/dist/likec4diagram/state/machine.state.navigating.mjs +205 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.mjs +76 -0
- package/dist/likec4diagram/state/machine.state.ready.idle.mjs +108 -0
- package/dist/likec4diagram/state/machine.state.ready.mjs +154 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.mjs +42 -0
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +262 -0
- package/dist/likec4diagram/state/mediaPrintActor.d.mts +10 -0
- package/dist/likec4diagram/state/mediaPrintActor.mjs +24 -0
- package/dist/likec4diagram/state/persistence.mjs +24 -0
- package/dist/likec4diagram/state/types.d.mts +23 -0
- package/dist/likec4diagram/state/utils.mjs +169 -0
- package/dist/likec4diagram/types.d.mts +202 -0
- package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +158 -0
- package/dist/likec4diagram/ui/LayoutDriftFrame.mjs +63 -0
- package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +69 -0
- package/dist/likec4diagram/ui/notation/NotationPanel.mjs +190 -0
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +83 -0
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +72 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +109 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +142 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +85 -0
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +66 -0
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +54 -0
- package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +192 -0
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +96 -0
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +79 -0
- package/dist/likec4diagram/ui/sequence-outline/motion.mjs +22 -0
- package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +87 -0
- package/dist/likec4diagram/ui/sequence-outline/tree.mjs +69 -0
- package/dist/likec4diagram/ui/sequence-outline/types.mjs +14 -0
- package/dist/likec4diagram/useLayoutConstraints.mjs +482 -0
- package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +275 -0
- package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +176 -0
- package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +128 -0
- package/dist/likec4diagram/xyflow-sequence/const.mjs +14 -0
- package/dist/likec4diagram/xyflow-sequence/layouter.mjs +566 -0
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +289 -0
- package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +146 -0
- package/dist/likec4diagram/xyflow-sequence/utils.mjs +97 -0
- package/dist/navigationpanel/ElementViewControls.mjs +51 -0
- package/dist/navigationpanel/NavigationPanel.mjs +124 -0
- package/dist/navigationpanel/NavigationPanelControls.mjs +172 -0
- package/dist/navigationpanel/NavigationPanelDropdown.mjs +375 -0
- package/dist/navigationpanel/_common.mjs +50 -0
- package/dist/navigationpanel/actor.actions.mjs +51 -0
- package/dist/navigationpanel/actor.d.mts +37 -0
- package/dist/navigationpanel/actor.mjs +97 -0
- package/dist/navigationpanel/actor.setup.d.mts +73 -0
- package/dist/navigationpanel/actor.setup.mjs +34 -0
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +69 -0
- package/dist/navigationpanel/comparepanel/ComparePanel.mjs +139 -0
- package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +56 -0
- package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +222 -0
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +37 -0
- package/dist/navigationpanel/controls/LayoutWarning.mjs +91 -0
- package/dist/navigationpanel/controls/LogoButton.mjs +50 -0
- package/dist/navigationpanel/controls/NavigationButtons.mjs +40 -0
- package/dist/navigationpanel/controls/OpenSource.mjs +28 -0
- package/dist/navigationpanel/controls/SearchControl.mjs +70 -0
- package/dist/navigationpanel/controls/ToggleReadonly.mjs +72 -0
- package/dist/navigationpanel/controls/ViewDetailsButton.mjs +124 -0
- package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +85 -0
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +39 -0
- package/dist/navigationpanel/editorpanel/CenterCamera.mjs +21 -0
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +249 -0
- package/dist/navigationpanel/editorpanel/EditorPanel.mjs +64 -0
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +144 -0
- package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +24 -0
- package/dist/navigationpanel/editorpanel/_common.mjs +16 -0
- package/dist/navigationpanel/editorpanel/styles.mjs +58 -0
- package/dist/navigationpanel/hooks.mjs +32 -0
- package/dist/navigationpanel/styles.css.mjs +23 -0
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +117 -0
- package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +82 -0
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +51 -0
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +81 -0
- package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +383 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +38 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +35 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +35 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +35 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +35 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +35 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +51 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +17 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +27 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +31 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +20 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.0/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +39 -0
- package/dist/overlays/Overlays.mjs +113 -0
- package/dist/overlays/element-details/ElementDetails.mjs +27 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.mjs +220 -0
- package/dist/overlays/element-details/ElementDetailsCard.mjs +534 -0
- package/dist/overlays/element-details/MetadataValue.mjs +232 -0
- package/dist/overlays/element-details/TabPanelDeployments.css.mjs +37 -0
- package/dist/overlays/element-details/TabPanelDeployments.mjs +192 -0
- package/dist/overlays/element-details/TabPanelRelationships.css.mjs +69 -0
- package/dist/overlays/element-details/TabPanelRelationships.mjs +163 -0
- package/dist/overlays/element-details/TabPanelStructure.css.mjs +30 -0
- package/dist/overlays/element-details/TabPanelStructure.mjs +96 -0
- package/dist/overlays/element-details/actor.d.mts +34 -0
- package/dist/overlays/element-details/actor.mjs +52 -0
- package/dist/overlays/element-details/actorContext.mjs +17 -0
- package/dist/overlays/hooks.mjs +7 -0
- package/dist/overlays/overlay/Overlay.d.mts +54 -0
- package/dist/overlays/overlay/Overlay.mjs +117 -0
- package/dist/overlays/overlaysActor.d.mts +49 -0
- package/dist/overlays/overlaysActor.mjs +232 -0
- package/dist/overlays/relationship-details/RelationshipDetails.mjs +286 -0
- package/dist/overlays/relationship-details/SelectEdge.css.mjs +77 -0
- package/dist/overlays/relationship-details/SelectEdge.mjs +151 -0
- package/dist/overlays/relationship-details/_types.d.mts +60 -0
- package/dist/overlays/relationship-details/actor.d.mts +109 -0
- package/dist/overlays/relationship-details/actor.mjs +251 -0
- package/dist/overlays/relationship-details/compute.d.mts +3 -0
- package/dist/overlays/relationship-details/compute.mjs +116 -0
- package/dist/overlays/relationship-details/custom/ElementActions.mjs +49 -0
- package/dist/overlays/relationship-details/custom/edgeTypes.mjs +47 -0
- package/dist/overlays/relationship-details/custom/nodeTypes.mjs +101 -0
- package/dist/overlays/relationship-details/hooks.mjs +54 -0
- package/dist/overlays/relationship-details/layout-to-xyflow.mjs +124 -0
- package/dist/overlays/relationship-details/layout.d.mts +27 -0
- package/dist/overlays/relationship-details/layout.mjs +287 -0
- package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +346 -0
- package/dist/overlays/relationships-browser/SelectElement.css.mjs +15 -0
- package/dist/overlays/relationships-browser/SelectElement.mjs +202 -0
- package/dist/overlays/relationships-browser/_types.d.mts +65 -0
- package/dist/overlays/relationships-browser/actor.d.mts +103 -0
- package/dist/overlays/relationships-browser/actor.mjs +379 -0
- package/dist/overlays/relationships-browser/const.mjs +10 -0
- package/dist/overlays/relationships-browser/custom/ElementActions.mjs +67 -0
- package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +27 -0
- package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +70 -0
- package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +108 -0
- package/dist/overlays/relationships-browser/hooks.mjs +58 -0
- package/dist/overlays/relationships-browser/layout.d.mts +30 -0
- package/dist/overlays/relationships-browser/layout.mjs +428 -0
- package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +146 -0
- package/dist/overlays/types.d.mts +23 -0
- package/dist/projects-overview/ProjectsOverview.d.mts +15 -0
- package/dist/projects-overview/ProjectsOverview.mjs +61 -0
- package/dist/projects-overview/ProjectsOverviewXY.d.mts +14 -0
- package/dist/projects-overview/ProjectsOverviewXY.mjs +111 -0
- package/dist/projects-overview/actor.mjs +269 -0
- package/dist/projects-overview/context.mjs +13 -0
- package/dist/projects-overview/custom/edgeTypes.mjs +26 -0
- package/dist/projects-overview/custom/nodeTypes.mjs +43 -0
- package/dist/projects-overview/hooks.mjs +17 -0
- package/dist/projects-overview/index.d.mts +2 -0
- package/dist/projects-overview/layouted-to-xyflow.mjs +55 -0
- package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +11 -0
- package/dist/projects-overview/persistence.mjs +26 -0
- package/dist/search/Search.d.mts +11 -0
- package/dist/search/Search.mjs +201 -0
- package/dist/search/SearchContext.d.mts +23 -0
- package/dist/search/SearchContext.mjs +23 -0
- package/dist/search/XStateSearchAdapter.mjs +72 -0
- package/dist/search/components/ElementsColumn.css.mjs +54 -0
- package/dist/search/components/ElementsColumn.mjs +264 -0
- package/dist/search/components/PickView.mjs +120 -0
- package/dist/search/components/SearchByTags.mjs +81 -0
- package/dist/search/components/SearchInput.mjs +193 -0
- package/dist/search/components/ViewsColum.mjs +161 -0
- package/dist/search/components/ViewsColumn.css.mjs +19 -0
- package/dist/search/components/_shared.css.mjs +123 -0
- package/dist/search/components/styles.css.mjs +56 -0
- package/dist/search/components/utils.mjs +57 -0
- package/dist/search/hooks.mjs +18 -0
- package/dist/search/searchActor.d.mts +37 -0
- package/dist/search/searchActor.mjs +104 -0
- package/dist/shadowroot/ShadowRoot.mjs +205 -0
- package/dist/styles-font.css +1 -0
- package/dist/styles-font2.mjs +5 -0
- package/dist/styles-min.css +1 -0
- package/dist/styles-xyflow.css +1 -0
- package/dist/styles.css +1 -0
- package/dist/styles2.mjs +5 -0
- package/dist/utils/defineActors.d.mts +10 -0
- package/dist/utils/defineActors.mjs +15 -0
- package/dist/utils/edge-corners.mjs +126 -0
- package/dist/utils/edge-endpoints.mjs +42 -0
- package/dist/utils/edge-label.mjs +41 -0
- package/dist/utils/edge-path.mjs +246 -0
- package/dist/utils/edge-tracks.mjs +141 -0
- package/dist/utils/index.mjs +7 -0
- package/dist/utils/readableText.mjs +20 -0
- package/dist/utils/roundDpr.mjs +26 -0
- package/dist/utils/view-bounds.d.mts +10 -0
- package/dist/utils/view-bounds.mjs +57 -0
- package/dist/utils/view-routing.mjs +12 -0
- package/dist/utils/xyflow.mjs +174 -0
- package/package.json +66 -62
- package/panda.buildinfo.json +353 -300
- package/styles-min.css +1 -1
- package/styles-xyflow.css +1 -1
- package/styles.css +1 -1
- package/dist/LikeC4Diagram.d.ts +0 -12
- package/dist/LikeC4Diagram.js +0 -155
- package/dist/LikeC4Diagram.props.d.ts +0 -270
- package/dist/LikeC4ModelProvider.d.ts +0 -10
- package/dist/LikeC4ModelProvider.js +0 -15
- package/dist/LikeC4ProjectsOverview.d.ts +0 -8
- package/dist/LikeC4ProjectsOverview.js +0 -26
- package/dist/LikeC4ProjectsProvider.d.ts +0 -18
- package/dist/LikeC4ProjectsProvider.js +0 -35
- package/dist/LikeC4Styles.d.ts +0 -4
- package/dist/LikeC4Styles.js +0 -68
- package/dist/LikeC4View.d.ts +0 -284
- package/dist/LikeC4View.js +0 -151
- package/dist/ReactLikeC4.d.ts +0 -47
- package/dist/ReactLikeC4.js +0 -45
- package/dist/StaticLikeC4Diagram.d.ts +0 -11
- package/dist/StaticLikeC4Diagram.js +0 -38
- package/dist/_virtual/_rolldown/runtime.js +0 -17
- package/dist/base/Background.d.ts +0 -8
- package/dist/base/Background.js +0 -30
- package/dist/base/Base.d.ts +0 -29
- package/dist/base/Base.js +0 -34
- package/dist/base/BaseXYFlow.d.ts +0 -16
- package/dist/base/BaseXYFlow.js +0 -204
- package/dist/base/const.d.ts +0 -19
- package/dist/base/const.js +0 -20
- package/dist/base/index.d.ts +0 -7
- package/dist/base/keyboardZoom.d.ts +0 -3
- package/dist/base/keyboardZoom.js +0 -20
- package/dist/base/types.d.ts +0 -66
- package/dist/base/updateEdges.d.ts +0 -3
- package/dist/base/updateEdges.js +0 -34
- package/dist/base/updateNodes.d.ts +0 -17
- package/dist/base/updateNodes.js +0 -45
- package/dist/base-primitives/Markdown.d.ts +0 -59
- package/dist/base-primitives/Markdown.js +0 -35
- package/dist/base-primitives/NodeHandles.d.ts +0 -7
- package/dist/base-primitives/NodeHandles.js +0 -42
- package/dist/base-primitives/compound/CompoundActionButton.d.ts +0 -10
- package/dist/base-primitives/compound/CompoundActionButton.js +0 -55
- package/dist/base-primitives/compound/CompoundDetailsButton.d.ts +0 -10
- package/dist/base-primitives/compound/CompoundDetailsButton.js +0 -45
- package/dist/base-primitives/compound/CompoundNodeContainer.d.ts +0 -15
- package/dist/base-primitives/compound/CompoundNodeContainer.js +0 -47
- package/dist/base-primitives/compound/CompoundTitle.d.ts +0 -19
- package/dist/base-primitives/compound/CompoundTitle.js +0 -20
- package/dist/base-primitives/compound/actionbtns.css.d.ts +0 -11
- package/dist/base-primitives/compound/actionbtns.css.js +0 -11
- package/dist/base-primitives/edge/EdgeActionButton.d.ts +0 -8
- package/dist/base-primitives/edge/EdgeActionButton.js +0 -21
- package/dist/base-primitives/edge/EdgeContainer.d.ts +0 -11
- package/dist/base-primitives/edge/EdgeContainer.js +0 -33
- package/dist/base-primitives/edge/EdgeLabel.d.ts +0 -15
- package/dist/base-primitives/edge/EdgeLabel.js +0 -44
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +0 -19
- package/dist/base-primitives/edge/EdgeLabelContainer.js +0 -38
- package/dist/base-primitives/edge/EdgeMarkers.d.ts +0 -14
- package/dist/base-primitives/edge/EdgeMarkers.js +0 -161
- package/dist/base-primitives/edge/EdgePath.d.ts +0 -17
- package/dist/base-primitives/edge/EdgePath.js +0 -65
- package/dist/base-primitives/element/ElementActionButtons.d.ts +0 -43
- package/dist/base-primitives/element/ElementActionButtons.js +0 -98
- package/dist/base-primitives/element/ElementData.d.ts +0 -67
- package/dist/base-primitives/element/ElementData.js +0 -127
- package/dist/base-primitives/element/ElementDetailsButton.d.ts +0 -11
- package/dist/base-primitives/element/ElementDetailsButton.js +0 -85
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +0 -22
- package/dist/base-primitives/element/ElementNodeContainer.js +0 -55
- package/dist/base-primitives/element/ElementShape.d.ts +0 -18
- package/dist/base-primitives/element/ElementShape.js +0 -367
- package/dist/base-primitives/element/ElementTags.d.ts +0 -21
- package/dist/base-primitives/element/ElementTags.js +0 -135
- package/dist/base-primitives/index.d.ts +0 -20
- package/dist/base-primitives/memoEdge.d.ts +0 -3
- package/dist/base-primitives/memoEdge.js +0 -15
- package/dist/base-primitives/memoNode.d.ts +0 -3
- package/dist/base-primitives/memoNode.js +0 -21
- package/dist/components/ErrorFallback.d.ts +0 -3
- package/dist/components/ErrorFallback.js +0 -112
- package/dist/components/GithubIcon.d.ts +0 -2
- package/dist/components/GithubIcon.js +0 -15
- package/dist/components/Link.d.ts +0 -6
- package/dist/components/Link.js +0 -100
- package/dist/components/Logo.d.ts +0 -5
- package/dist/components/Logo.js +0 -39
- package/dist/components/NavigationLink.d.ts +0 -6
- package/dist/components/NavigationLink.js +0 -17
- package/dist/components/NavigationPanel.d.ts +0 -11
- package/dist/components/NavigationPanel.js +0 -29
- package/dist/components/PortalToContainer.d.ts +0 -6
- package/dist/components/PortalToContainer.js +0 -19
- package/dist/components/RootContainer.d.ts +0 -6
- package/dist/components/RootContainer.js +0 -38
- package/dist/components/SearchControl.css.d.ts +0 -3
- package/dist/components/SearchControl.css.js +0 -69
- package/dist/components/SearchControl.d.ts +0 -5
- package/dist/components/SearchControl.js +0 -39
- package/dist/components/ViewNotFound.d.ts +0 -5
- package/dist/components/ViewNotFound.js +0 -27
- package/dist/context/CurrentViewModelProvider.d.ts +0 -2
- package/dist/context/CurrentViewModelProvider.js +0 -15
- package/dist/context/DefaultMantineProvider.d.ts +0 -2
- package/dist/context/DefaultMantineProvider.js +0 -48
- package/dist/context/DiagramEventHandlers.d.ts +0 -15
- package/dist/context/DiagramEventHandlers.js +0 -52
- package/dist/context/DiagramFeatures.d.ts +0 -53
- package/dist/context/DiagramFeatures.js +0 -93
- package/dist/context/EnsureMantine.d.ts +0 -4
- package/dist/context/EnsureMantine.js +0 -16
- package/dist/context/FramerMotionConfig.d.ts +0 -8
- package/dist/context/FramerMotionConfig.js +0 -19
- package/dist/context/IconRenderer.d.ts +0 -39
- package/dist/context/IconRenderer.js +0 -133
- package/dist/context/LikeC4ModelContext.d.ts +0 -15
- package/dist/context/LikeC4ModelContext.js +0 -19
- package/dist/context/LikeC4ProjectsContext.d.ts +0 -8
- package/dist/context/LikeC4ProjectsContext.js +0 -10
- package/dist/context/RootContainerContext.d.ts +0 -19
- package/dist/context/RootContainerContext.js +0 -22
- package/dist/context/TagStylesContext.d.ts +0 -9
- package/dist/context/TagStylesContext.js +0 -76
- package/dist/context/index.d.ts +0 -7
- package/dist/custom/builtins.d.ts +0 -1
- package/dist/custom/customNodes.d.ts +0 -233
- package/dist/custom/customNodes.js +0 -239
- package/dist/custom/hooks.d.ts +0 -11
- package/dist/custom/index.d.ts +0 -16
- package/dist/custom/index.js +0 -41
- package/dist/custom/primitives.d.ts +0 -1
- package/dist/editor/LikeC4EditorCallbacks.d.ts +0 -42
- package/dist/editor/LikeC4EditorCallbacks.js +0 -10
- package/dist/editor/LikeC4EditorProvider.d.ts +0 -34
- package/dist/editor/LikeC4EditorProvider.js +0 -37
- package/dist/editor/actor/actions.d.ts +0 -174
- package/dist/editor/actor/actions.js +0 -188
- package/dist/editor/actor/hotkey.d.ts +0 -7
- package/dist/editor/actor/hotkey.js +0 -27
- package/dist/editor/actor/machine.d.ts +0 -9
- package/dist/editor/actor/machine.js +0 -23
- package/dist/editor/actor/setup.d.ts +0 -70
- package/dist/editor/actor/setup.js +0 -42
- package/dist/editor/actor/state.editor.d.ts +0 -147
- package/dist/editor/actor/state.editor.js +0 -56
- package/dist/editor/actor/state.sync-queue.d.ts +0 -612
- package/dist/editor/actor/state.sync-queue.js +0 -273
- package/dist/editor/actor/types.d.ts +0 -64
- package/dist/editor/actor/types.js +0 -5
- package/dist/editor/applyChangesToManualLayout.d.ts +0 -8
- package/dist/editor/applyChangesToManualLayout.js +0 -164
- package/dist/editor/index.d.ts +0 -5
- package/dist/editor/useEditorActorLogic.d.ts +0 -8
- package/dist/editor/useEditorActorLogic.js +0 -74
- package/dist/hooks/index.d.ts +0 -14
- package/dist/hooks/safeContext.d.ts +0 -160
- package/dist/hooks/safeContext.js +0 -72
- package/dist/hooks/useCallbackRef.d.ts +0 -7
- package/dist/hooks/useCallbackRef.js +0 -21
- package/dist/hooks/useCurrentView.d.ts +0 -11
- package/dist/hooks/useCurrentView.js +0 -21
- package/dist/hooks/useCurrentViewModel.d.ts +0 -10
- package/dist/hooks/useCurrentViewModel.js +0 -16
- package/dist/hooks/useDiagram.d.ts +0 -42
- package/dist/hooks/useDiagram.js +0 -79
- package/dist/hooks/useDiagramCompareLayout.d.ts +0 -53
- package/dist/hooks/useDiagramCompareLayout.js +0 -86
- package/dist/hooks/useEditorActor.d.ts +0 -9
- package/dist/hooks/useEditorActor.js +0 -27
- package/dist/hooks/useId.d.ts +0 -1
- package/dist/hooks/useId.js +0 -9
- package/dist/hooks/useLikeC4ElementsTree.d.ts +0 -14
- package/dist/hooks/useLikeC4ElementsTree.js +0 -28
- package/dist/hooks/useLikeC4Model.d.ts +0 -12
- package/dist/hooks/useLikeC4Model.js +0 -27
- package/dist/hooks/useLikeC4Project.d.ts +0 -25
- package/dist/hooks/useLikeC4Project.js +0 -56
- package/dist/hooks/useLikeC4Styles.d.ts +0 -2
- package/dist/hooks/useLikeC4Styles.js +0 -9
- package/dist/hooks/useMantinePortalProps.d.ts +0 -9
- package/dist/hooks/useMantinePortalProps.js +0 -13
- package/dist/hooks/useMediaPrint.d.ts +0 -4
- package/dist/hooks/useOverlaysActor.d.ts +0 -2
- package/dist/hooks/useReducedGraphics.d.ts +0 -1
- package/dist/hooks/useSearchActor.d.ts +0 -2
- package/dist/hooks/useSetState.d.ts +0 -7
- package/dist/hooks/useSetState.js +0 -24
- package/dist/hooks/useUpdateEffect.d.ts +0 -4
- package/dist/hooks/useUpdateEffect.js +0 -21
- package/dist/hooks/useXYFlow.d.ts +0 -23
- package/dist/hooks/useXYFlow.js +0 -26
- package/dist/index.d.ts +0 -27
- package/dist/index.js +0 -27
- package/dist/likec4diagram/DiagramUI.d.ts +0 -2
- package/dist/likec4diagram/DiagramUI.js +0 -54
- package/dist/likec4diagram/DiagramXYFlow.d.ts +0 -7
- package/dist/likec4diagram/DiagramXYFlow.js +0 -267
- package/dist/likec4diagram/convert-to-xyflow.d.ts +0 -12
- package/dist/likec4diagram/convert-to-xyflow.js +0 -43
- package/dist/likec4diagram/custom/edges/EdgeDrifts.d.ts +0 -6
- package/dist/likec4diagram/custom/edges/EdgeDrifts.js +0 -24
- package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +0 -3
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +0 -401
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.d.ts +0 -2
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +0 -79
- package/dist/likec4diagram/custom/edges/edges.css.d.ts +0 -3
- package/dist/likec4diagram/custom/edges/edges.css.js +0 -48
- package/dist/likec4diagram/custom/edges/useControlPoints.d.ts +0 -8
- package/dist/likec4diagram/custom/edges/useControlPoints.js +0 -54
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +0 -10
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +0 -57
- package/dist/likec4diagram/custom/edges/utils.d.ts +0 -10
- package/dist/likec4diagram/custom/index.d.ts +0 -17
- package/dist/likec4diagram/custom/index.js +0 -22
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.ts +0 -4
- package/dist/likec4diagram/custom/nodes/CompoundActions.js +0 -22
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +0 -87
- package/dist/likec4diagram/custom/nodes/ElementActions.js +0 -144
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +0 -5
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +0 -22
- package/dist/likec4diagram/custom/nodes/NodeNotes.d.ts +0 -6
- package/dist/likec4diagram/custom/nodes/NodeNotes.js +0 -224
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.ts +0 -3
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +0 -151
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.ts +0 -2
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.js +0 -234
- package/dist/likec4diagram/custom/nodes/index.d.ts +0 -11
- package/dist/likec4diagram/custom/nodes/nodes.d.ts +0 -19
- package/dist/likec4diagram/custom/nodes/nodes.js +0 -172
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.d.ts +0 -22
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +0 -158
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.ts +0 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +0 -63
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +0 -114
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +0 -62
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +0 -18
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +0 -103
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.d.ts +0 -1
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +0 -15
- package/dist/likec4diagram/custom/nodes/toolbar/types.d.ts +0 -5
- package/dist/likec4diagram/custom/nodes/toolbar/types.js +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.js +0 -39
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.d.ts +0 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +0 -520
- package/dist/likec4diagram/relationship-popover/actor.d.ts +0 -75
- package/dist/likec4diagram/relationship-popover/actor.js +0 -116
- package/dist/likec4diagram/relationship-popover/components.d.ts +0 -7
- package/dist/likec4diagram/relationship-popover/components.js +0 -41
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +0 -14
- package/dist/likec4diagram/state/DiagramActorProvider.js +0 -132
- package/dist/likec4diagram/state/aligners.d.ts +0 -45
- package/dist/likec4diagram/state/aligners.js +0 -292
- package/dist/likec4diagram/state/assign.d.ts +0 -26
- package/dist/likec4diagram/state/assign.js +0 -97
- package/dist/likec4diagram/state/createViewChange.d.ts +0 -3
- package/dist/likec4diagram/state/createViewChange.js +0 -71
- package/dist/likec4diagram/state/diagram-api.d.ts +0 -162
- package/dist/likec4diagram/state/diagram-api.js +0 -337
- package/dist/likec4diagram/state/hotkeyActor.d.ts +0 -7
- package/dist/likec4diagram/state/hotkeyActor.js +0 -56
- package/dist/likec4diagram/state/inspector.d.ts +0 -4
- package/dist/likec4diagram/state/machine.actions.d.ts +0 -2560
- package/dist/likec4diagram/state/machine.actions.js +0 -787
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +0 -578
- package/dist/likec4diagram/state/machine.actions.layout.js +0 -172
- package/dist/likec4diagram/state/machine.d.ts +0 -161
- package/dist/likec4diagram/state/machine.js +0 -79
- package/dist/likec4diagram/state/machine.setup.d.ts +0 -436
- package/dist/likec4diagram/state/machine.setup.js +0 -162
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +0 -232
- package/dist/likec4diagram/state/machine.state.initializing.js +0 -55
- package/dist/likec4diagram/state/machine.state.navigating.d.ts +0 -14
- package/dist/likec4diagram/state/machine.state.navigating.js +0 -199
- package/dist/likec4diagram/state/machine.state.ready.d.ts +0 -4229
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +0 -696
- package/dist/likec4diagram/state/machine.state.ready.focused.js +0 -74
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +0 -585
- package/dist/likec4diagram/state/machine.state.ready.idle.js +0 -106
- package/dist/likec4diagram/state/machine.state.ready.js +0 -134
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +0 -128
- package/dist/likec4diagram/state/machine.state.ready.printing.js +0 -40
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +0 -839
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +0 -227
- package/dist/likec4diagram/state/mediaPrintActor.d.ts +0 -12
- package/dist/likec4diagram/state/mediaPrintActor.js +0 -22
- package/dist/likec4diagram/state/persistence.d.ts +0 -5
- package/dist/likec4diagram/state/persistence.js +0 -22
- package/dist/likec4diagram/state/types.d.ts +0 -23
- package/dist/likec4diagram/state/utils.d.ts +0 -73
- package/dist/likec4diagram/state/utils.js +0 -167
- package/dist/likec4diagram/types.d.ts +0 -190
- package/dist/likec4diagram/ui/FloatingSequenceActors.d.ts +0 -6
- package/dist/likec4diagram/ui/FloatingSequenceActors.js +0 -156
- package/dist/likec4diagram/ui/LayoutDriftFrame.d.ts +0 -2
- package/dist/likec4diagram/ui/LayoutDriftFrame.js +0 -55
- package/dist/likec4diagram/ui/index.d.ts +0 -4
- package/dist/likec4diagram/ui/notation/NotationPanel.css.d.ts +0 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +0 -69
- package/dist/likec4diagram/ui/notation/NotationPanel.d.ts +0 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.js +0 -187
- package/dist/likec4diagram/ui/notation/index.d.ts +0 -1
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.d.ts +0 -2
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.js +0 -542
- package/dist/likec4diagram/ui/sequence-outline/state.d.ts +0 -36
- package/dist/likec4diagram/ui/sequence-outline/state.js +0 -55
- package/dist/likec4diagram/useLayoutConstraints.d.ts +0 -54
- package/dist/likec4diagram/useLayoutConstraints.js +0 -412
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +0 -18
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +0 -273
- package/dist/likec4diagram/xyflow-sequence/_types.d.ts +0 -91
- package/dist/likec4diagram/xyflow-sequence/const.d.ts +0 -17
- package/dist/likec4diagram/xyflow-sequence/const.js +0 -13
- package/dist/likec4diagram/xyflow-sequence/layouter.d.ts +0 -70
- package/dist/likec4diagram/xyflow-sequence/layouter.js +0 -564
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.d.ts +0 -17
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.js +0 -286
- package/dist/likec4diagram/xyflow-sequence/sequence-view.d.ts +0 -2
- package/dist/likec4diagram/xyflow-sequence/sequence-view.js +0 -144
- package/dist/likec4diagram/xyflow-sequence/utils.d.ts +0 -22
- package/dist/likec4diagram/xyflow-sequence/utils.js +0 -96
- package/dist/navigationpanel/NavigationPanel.d.ts +0 -5
- package/dist/navigationpanel/NavigationPanel.js +0 -117
- package/dist/navigationpanel/NavigationPanelControls.d.ts +0 -2
- package/dist/navigationpanel/NavigationPanelControls.js +0 -128
- package/dist/navigationpanel/NavigationPanelDropdown.d.ts +0 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +0 -398
- package/dist/navigationpanel/_common.d.ts +0 -9
- package/dist/navigationpanel/_common.js +0 -60
- package/dist/navigationpanel/actor.actions.d.ts +0 -19
- package/dist/navigationpanel/actor.actions.js +0 -45
- package/dist/navigationpanel/actor.d.ts +0 -38
- package/dist/navigationpanel/actor.js +0 -93
- package/dist/navigationpanel/actor.setup.d.ts +0 -98
- package/dist/navigationpanel/actor.setup.js +0 -31
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +0 -5
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +0 -68
- package/dist/navigationpanel/comparepanel/ComparePanel.d.ts +0 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.js +0 -139
- package/dist/navigationpanel/comparepanel/ComparePanelControls.d.ts +0 -1
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +0 -54
- package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +0 -1
- package/dist/navigationpanel/comparepanel/DriftsSummary.js +0 -218
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.d.ts +0 -5
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +0 -35
- package/dist/navigationpanel/comparepanel/index.d.ts +0 -1
- package/dist/navigationpanel/controls/DetailsControls.d.ts +0 -2
- package/dist/navigationpanel/controls/DetailsControls.js +0 -224
- package/dist/navigationpanel/controls/LayoutWarning.d.ts +0 -2
- package/dist/navigationpanel/controls/LayoutWarning.js +0 -92
- package/dist/navigationpanel/controls/LogoButton.d.ts +0 -1
- package/dist/navigationpanel/controls/LogoButton.js +0 -48
- package/dist/navigationpanel/controls/NavigationButtons.d.ts +0 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +0 -37
- package/dist/navigationpanel/controls/OpenSource.d.ts +0 -1
- package/dist/navigationpanel/controls/OpenSource.js +0 -29
- package/dist/navigationpanel/controls/SearchControl.d.ts +0 -1
- package/dist/navigationpanel/controls/SearchControl.js +0 -53
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +0 -1
- package/dist/navigationpanel/controls/ToggleReadonly.js +0 -89
- package/dist/navigationpanel/controls/index.d.ts +0 -7
- package/dist/navigationpanel/dropdown/ProjectsMenu.d.ts +0 -2
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +0 -72
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.d.ts +0 -4
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.js +0 -37
- package/dist/navigationpanel/editorpanel/CenterCamera.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/CenterCamera.js +0 -19
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +0 -187
- package/dist/navigationpanel/editorpanel/EditorPanel.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/EditorPanel.js +0 -62
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +0 -4
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +0 -133
- package/dist/navigationpanel/editorpanel/ToggleReadonly.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +0 -22
- package/dist/navigationpanel/editorpanel/_common.d.ts +0 -3
- package/dist/navigationpanel/editorpanel/_common.js +0 -14
- package/dist/navigationpanel/editorpanel/index.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/styles.d.ts +0 -8
- package/dist/navigationpanel/editorpanel/styles.js +0 -62
- package/dist/navigationpanel/hooks.d.ts +0 -35
- package/dist/navigationpanel/hooks.js +0 -30
- package/dist/navigationpanel/index.d.ts +0 -1
- package/dist/navigationpanel/styles.css.d.ts +0 -16
- package/dist/navigationpanel/styles.css.js +0 -22
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.d.ts +0 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +0 -112
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +0 -292
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +0 -107
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.css.d.ts +0 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.d.ts +0 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +0 -79
- package/dist/navigationpanel/walkthrough/index.d.ts +0 -2
- package/dist/overlays/Overlays.d.ts +0 -6
- package/dist/overlays/Overlays.js +0 -99
- package/dist/overlays/element-details/ElementDetails.d.ts +0 -6
- package/dist/overlays/element-details/ElementDetails.js +0 -25
- package/dist/overlays/element-details/ElementDetailsCard.css.d.ts +0 -16
- package/dist/overlays/element-details/ElementDetailsCard.css.js +0 -226
- package/dist/overlays/element-details/ElementDetailsCard.d.ts +0 -11
- package/dist/overlays/element-details/ElementDetailsCard.js +0 -528
- package/dist/overlays/element-details/MetadataValue.d.ts +0 -10
- package/dist/overlays/element-details/MetadataValue.js +0 -218
- package/dist/overlays/element-details/TabPanelDeployments.css.d.ts +0 -4
- package/dist/overlays/element-details/TabPanelDeployments.css.js +0 -43
- package/dist/overlays/element-details/TabPanelDeployments.d.ts +0 -7
- package/dist/overlays/element-details/TabPanelDeployments.js +0 -188
- package/dist/overlays/element-details/TabPanelRelationships.css.d.ts +0 -5
- package/dist/overlays/element-details/TabPanelRelationships.css.js +0 -71
- package/dist/overlays/element-details/TabPanelRelationships.d.ts +0 -7
- package/dist/overlays/element-details/TabPanelRelationships.js +0 -159
- package/dist/overlays/element-details/TabPanelStructure.css.d.ts +0 -2
- package/dist/overlays/element-details/TabPanelStructure.css.js +0 -32
- package/dist/overlays/element-details/TabPanelStructure.d.ts +0 -25
- package/dist/overlays/element-details/TabPanelStructure.js +0 -94
- package/dist/overlays/element-details/actor.d.ts +0 -34
- package/dist/overlays/element-details/actor.js +0 -48
- package/dist/overlays/element-details/actorContext.d.ts +0 -7
- package/dist/overlays/element-details/actorContext.js +0 -15
- package/dist/overlays/hooks.d.ts +0 -28
- package/dist/overlays/hooks.js +0 -5
- package/dist/overlays/overlay/Overlay.d.ts +0 -51
- package/dist/overlays/overlay/Overlay.js +0 -114
- package/dist/overlays/overlaysActor.d.ts +0 -49
- package/dist/overlays/overlaysActor.js +0 -225
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +0 -5
- package/dist/overlays/relationship-details/RelationshipDetails.js +0 -282
- package/dist/overlays/relationship-details/SelectEdge.css.d.ts +0 -8
- package/dist/overlays/relationship-details/SelectEdge.css.js +0 -70
- package/dist/overlays/relationship-details/SelectEdge.d.ts +0 -5
- package/dist/overlays/relationship-details/SelectEdge.js +0 -148
- package/dist/overlays/relationship-details/_types.d.ts +0 -57
- package/dist/overlays/relationship-details/actor.d.ts +0 -109
- package/dist/overlays/relationship-details/actor.js +0 -248
- package/dist/overlays/relationship-details/compute.d.ts +0 -13
- package/dist/overlays/relationship-details/compute.js +0 -114
- package/dist/overlays/relationship-details/custom/ElementActions.d.ts +0 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +0 -45
- package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +0 -3
- package/dist/overlays/relationship-details/custom/edgeTypes.js +0 -45
- package/dist/overlays/relationship-details/custom/index.d.ts +0 -2
- package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +0 -9
- package/dist/overlays/relationship-details/custom/nodeTypes.js +0 -99
- package/dist/overlays/relationship-details/custom/styles.css.d.ts +0 -1
- package/dist/overlays/relationship-details/hooks.d.ts +0 -40
- package/dist/overlays/relationship-details/hooks.js +0 -52
- package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +0 -12
- package/dist/overlays/relationship-details/layout-to-xyflow.js +0 -122
- package/dist/overlays/relationship-details/layout.d.ts +0 -25
- package/dist/overlays/relationship-details/layout.js +0 -285
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +0 -5
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +0 -334
- package/dist/overlays/relationships-browser/SelectElement.css.d.ts +0 -3
- package/dist/overlays/relationships-browser/SelectElement.css.js +0 -19
- package/dist/overlays/relationships-browser/SelectElement.d.ts +0 -2
- package/dist/overlays/relationships-browser/SelectElement.js +0 -195
- package/dist/overlays/relationships-browser/_types.d.ts +0 -64
- package/dist/overlays/relationships-browser/actor.d.ts +0 -113
- package/dist/overlays/relationships-browser/actor.js +0 -376
- package/dist/overlays/relationships-browser/const.d.ts +0 -6
- package/dist/overlays/relationships-browser/const.js +0 -9
- package/dist/overlays/relationships-browser/custom/ElementActions.d.ts +0 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +0 -63
- package/dist/overlays/relationships-browser/custom/EmptyNode.d.ts +0 -2
- package/dist/overlays/relationships-browser/custom/EmptyNode.js +0 -27
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +0 -3
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +0 -68
- package/dist/overlays/relationships-browser/custom/index.d.ts +0 -3
- package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +0 -9
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +0 -106
- package/dist/overlays/relationships-browser/hooks.d.ts +0 -18
- package/dist/overlays/relationships-browser/hooks.js +0 -56
- package/dist/overlays/relationships-browser/layout.d.ts +0 -29
- package/dist/overlays/relationships-browser/layout.js +0 -426
- package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +0 -10
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +0 -144
- package/dist/overlays/types.d.ts +0 -28
- package/dist/projects-overview/ProjectsOverview.d.ts +0 -13
- package/dist/projects-overview/ProjectsOverview.js +0 -59
- package/dist/projects-overview/ProjectsOverviewXY.d.ts +0 -13
- package/dist/projects-overview/ProjectsOverviewXY.js +0 -109
- package/dist/projects-overview/_types.d.ts +0 -34
- package/dist/projects-overview/actor.d.ts +0 -115
- package/dist/projects-overview/actor.js +0 -266
- package/dist/projects-overview/context.d.ts +0 -4
- package/dist/projects-overview/context.js +0 -11
- package/dist/projects-overview/custom/edgeTypes.d.ts +0 -3
- package/dist/projects-overview/custom/edgeTypes.js +0 -24
- package/dist/projects-overview/custom/index.d.ts +0 -2
- package/dist/projects-overview/custom/nodeTypes.d.ts +0 -2
- package/dist/projects-overview/custom/nodeTypes.js +0 -41
- package/dist/projects-overview/custom/styles.css.d.ts +0 -1
- package/dist/projects-overview/hooks.d.ts +0 -5
- package/dist/projects-overview/hooks.js +0 -15
- package/dist/projects-overview/index.d.ts +0 -1
- package/dist/projects-overview/layouted-to-xyflow.d.ts +0 -6
- package/dist/projects-overview/layouted-to-xyflow.js +0 -53
- package/dist/projects-overview/panel/ProjectsOverviewPanel.d.ts +0 -1
- package/dist/projects-overview/panel/ProjectsOverviewPanel.js +0 -9
- package/dist/projects-overview/persistence.d.ts +0 -5
- package/dist/projects-overview/persistence.js +0 -24
- package/dist/search/Search.d.ts +0 -13
- package/dist/search/Search.js +0 -197
- package/dist/search/SearchContext.d.ts +0 -21
- package/dist/search/SearchContext.js +0 -21
- package/dist/search/XStateSearchAdapter.d.ts +0 -5
- package/dist/search/XStateSearchAdapter.js +0 -70
- package/dist/search/components/ElementsColumn.css.d.ts +0 -10
- package/dist/search/components/ElementsColumn.css.js +0 -51
- package/dist/search/components/ElementsColumn.d.ts +0 -2
- package/dist/search/components/ElementsColumn.js +0 -261
- package/dist/search/components/PickView.d.ts +0 -4
- package/dist/search/components/PickView.js +0 -118
- package/dist/search/components/SearchByTags.d.ts +0 -1
- package/dist/search/components/SearchByTags.js +0 -79
- package/dist/search/components/SearchInput.d.ts +0 -2
- package/dist/search/components/SearchInput.js +0 -191
- package/dist/search/components/ViewsColum.d.ts +0 -13
- package/dist/search/components/ViewsColum.js +0 -158
- package/dist/search/components/ViewsColumn.css.d.ts +0 -3
- package/dist/search/components/ViewsColumn.css.js +0 -15
- package/dist/search/components/_shared.css.d.ts +0 -4
- package/dist/search/components/_shared.css.js +0 -136
- package/dist/search/components/styles.css.d.ts +0 -6
- package/dist/search/components/styles.css.js +0 -54
- package/dist/search/components/utils.d.ts +0 -11
- package/dist/search/components/utils.js +0 -55
- package/dist/search/hooks.d.ts +0 -3
- package/dist/search/hooks.js +0 -16
- package/dist/search/searchActor.d.ts +0 -37
- package/dist/search/searchActor.js +0 -100
- package/dist/shadowroot/ShadowRoot.d.ts +0 -17
- package/dist/shadowroot/ShadowRoot.js +0 -198
- package/dist/shadowroot/index.d.ts +0 -1
- package/dist/styles-font2.js +0 -4
- package/dist/styles2.js +0 -4
- package/dist/utils/css.d.ts +0 -1
- package/dist/utils/defineActors.d.ts +0 -21
- package/dist/utils/defineActors.js +0 -13
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -6
- package/dist/utils/readableText.d.ts +0 -11
- package/dist/utils/readableText.js +0 -18
- package/dist/utils/roundDpr.d.ts +0 -1
- package/dist/utils/roundDpr.js +0 -24
- package/dist/utils/view-bounds.d.ts +0 -9
- package/dist/utils/view-bounds.js +0 -55
- package/dist/utils/xyflow.d.ts +0 -88
- package/dist/utils/xyflow.js +0 -161
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { calcViewBounds } from "../../utils/view-bounds.js";
|
|
3
|
-
import { hasAtLeast, map } from "remeda";
|
|
4
|
-
import { getNodeDimensions } from "@xyflow/system";
|
|
5
|
-
//#region src/likec4diagram/state/createViewChange.ts
|
|
6
|
-
function createViewChange(parentContext) {
|
|
7
|
-
const { view: { drifts: _1, _layout: _2, ...view }, xynodes, xystore } = parentContext;
|
|
8
|
-
const { nodeLookup, edgeLookup } = xystore.getState();
|
|
9
|
-
const nodes = map(view.nodes, (node) => {
|
|
10
|
-
const internal = nodeLookup.get(node.id);
|
|
11
|
-
if (!internal) {
|
|
12
|
-
console.error(`Internal node not found for ${node.id}`);
|
|
13
|
-
return node;
|
|
14
|
-
}
|
|
15
|
-
const xynodedata = xynodes.find((n) => n.data.id === node.id)?.data ?? internal.data;
|
|
16
|
-
const position = internal.internals.positionAbsolute;
|
|
17
|
-
const { width, height } = getNodeDimensions(internal);
|
|
18
|
-
return {
|
|
19
|
-
...node,
|
|
20
|
-
shape: xynodedata.shape,
|
|
21
|
-
color: xynodedata.color,
|
|
22
|
-
style: { ...xynodedata.style },
|
|
23
|
-
x: Math.floor(position.x),
|
|
24
|
-
y: Math.floor(position.y),
|
|
25
|
-
width: Math.ceil(width),
|
|
26
|
-
height: Math.ceil(height)
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
const edges = map(view.edges, (edge) => {
|
|
30
|
-
const xyedge = edgeLookup.get(edge.id);
|
|
31
|
-
if (!xyedge) {
|
|
32
|
-
console.error(`Internal edge not found for ${edge.id}`);
|
|
33
|
-
return edge;
|
|
34
|
-
}
|
|
35
|
-
const data = xyedge.data;
|
|
36
|
-
const controlPoints = data.controlPoints ?? [];
|
|
37
|
-
const _updated = {
|
|
38
|
-
...edge,
|
|
39
|
-
points: data.points
|
|
40
|
-
};
|
|
41
|
-
if (data.labelBBox) _updated.labelBBox = {
|
|
42
|
-
x: Math.round(data.labelBBox.x),
|
|
43
|
-
y: Math.round(data.labelBBox.y),
|
|
44
|
-
width: Math.round(data.labelBBox.width),
|
|
45
|
-
height: Math.round(data.labelBBox.height)
|
|
46
|
-
};
|
|
47
|
-
else _updated.labelBBox = null;
|
|
48
|
-
if (data.isLabelCustomized !== void 0) _updated.isLabelCustomized = data.isLabelCustomized;
|
|
49
|
-
if (hasAtLeast(controlPoints, 1)) _updated.controlPoints = map(controlPoints, (v) => ({
|
|
50
|
-
x: Math.round(v.x),
|
|
51
|
-
y: Math.round(v.y)
|
|
52
|
-
}));
|
|
53
|
-
else _updated.controlPoints = null;
|
|
54
|
-
return _updated;
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
op: "save-view-snapshot",
|
|
58
|
-
layout: {
|
|
59
|
-
...view,
|
|
60
|
-
_layout: "manual",
|
|
61
|
-
bounds: calcViewBounds({
|
|
62
|
-
nodes,
|
|
63
|
-
edges
|
|
64
|
-
}),
|
|
65
|
-
nodes,
|
|
66
|
-
edges
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
export { createViewChange };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { DynamicViewDisplayVariant, NodeNotation as ElementNotation, ViewChange } from '@likec4/core/types';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
|
-
import { PartialDeep } from 'type-fest';
|
|
4
|
-
import { TogglableFeature } from '../../context/DiagramFeatures';
|
|
5
|
-
import { EditorActorRef } from '../../editor/actor/machine';
|
|
6
|
-
import { OpenSourceParams } from '../../LikeC4Diagram.props';
|
|
7
|
-
import { OverlaysActorRef } from '../../overlays/overlaysActor';
|
|
8
|
-
import { SearchActorRef } from '../../search/searchActor';
|
|
9
|
-
import { Types } from '../types';
|
|
10
|
-
import { AlignmentMode } from './aligners';
|
|
11
|
-
import { DiagramActorRef, DiagramContext, DiagramEvents } from './types';
|
|
12
|
-
import type * as t from '@likec4/core/types';
|
|
13
|
-
type Any = t.aux.Any;
|
|
14
|
-
type Unknown = t.aux.UnknownLayouted;
|
|
15
|
-
type ViewId<A> = t.aux.ViewId<A>;
|
|
16
|
-
type Fqn<A> = t.aux.Fqn<A>;
|
|
17
|
-
type NodeId = t.aux.NodeId;
|
|
18
|
-
type EdgeId = t.aux.EdgeId;
|
|
19
|
-
export declare class DiagramApi<A extends Any = Unknown> {
|
|
20
|
-
private static cache;
|
|
21
|
-
static withActor(actorRef: RefObject<DiagramActorRef>): DiagramApi;
|
|
22
|
-
/**
|
|
23
|
-
* React ref to the diagram actor
|
|
24
|
-
*/
|
|
25
|
-
readonly ref: RefObject<DiagramActorRef>;
|
|
26
|
-
private constructor();
|
|
27
|
-
/**
|
|
28
|
-
* @warning Do not use in render phase
|
|
29
|
-
*/
|
|
30
|
-
get actor(): DiagramActorRef;
|
|
31
|
-
/**
|
|
32
|
-
* @warning Do not use in render phase
|
|
33
|
-
*/
|
|
34
|
-
get currentView(): t.DiagramView<A>;
|
|
35
|
-
/**
|
|
36
|
-
* Editor actor reference
|
|
37
|
-
* @warning Do not use in render phase
|
|
38
|
-
*/
|
|
39
|
-
editorActor(): EditorActorRef;
|
|
40
|
-
/**
|
|
41
|
-
* Overlays actor reference
|
|
42
|
-
* @warning Do not use in render phase
|
|
43
|
-
*/
|
|
44
|
-
overlays(): OverlaysActorRef;
|
|
45
|
-
/**
|
|
46
|
-
* Search actor reference
|
|
47
|
-
* @warning Do not use in render phase
|
|
48
|
-
*/
|
|
49
|
-
searchActor(): SearchActorRef;
|
|
50
|
-
/**
|
|
51
|
-
* Send event to diagram actor
|
|
52
|
-
*/
|
|
53
|
-
send(event: DiagramEvents): void;
|
|
54
|
-
/**
|
|
55
|
-
* Navigate to view
|
|
56
|
-
* @param viewId - Target view ID
|
|
57
|
-
* @param fromNode - Node from which navigation was triggered
|
|
58
|
-
* @param focusOnElement - Element FQN to focus after navigation (from search)
|
|
59
|
-
*/
|
|
60
|
-
navigateTo(viewId: ViewId<A>, fromNode?: NodeId, focusOnElement?: Fqn<A>): void;
|
|
61
|
-
/**
|
|
62
|
-
* Navigate back or forward in history
|
|
63
|
-
*/
|
|
64
|
-
navigate(direction: 'back' | 'forward'): void;
|
|
65
|
-
/**
|
|
66
|
-
* Fit diagram to view
|
|
67
|
-
*/
|
|
68
|
-
fitDiagram(duration?: number): void;
|
|
69
|
-
/**
|
|
70
|
-
* Open relationships browser
|
|
71
|
-
*/
|
|
72
|
-
openRelationshipsBrowser(fqn: Fqn<A>): void;
|
|
73
|
-
/**
|
|
74
|
-
* If running in editor, trigger opening source file
|
|
75
|
-
*/
|
|
76
|
-
openSource(params: OpenSourceParams<Unknown>): void;
|
|
77
|
-
/**
|
|
78
|
-
* Open element details card
|
|
79
|
-
*/
|
|
80
|
-
openElementDetails(fqn: Fqn<A>, fromNode?: NodeId): void;
|
|
81
|
-
openRelationshipDetails(...params: [edgeId: EdgeId] | [source: Fqn<A>, target: Fqn<A>]): void;
|
|
82
|
-
updateNodeData(nodeId: NodeId, data: PartialDeep<Types.NodeData>): void;
|
|
83
|
-
updateEdgeData(edgeId: EdgeId, data: PartialDeep<Types.EdgeData>): void;
|
|
84
|
-
highlightNode(nodeId: NodeId): void;
|
|
85
|
-
highlightEdge(edgeId: EdgeId): void;
|
|
86
|
-
unhighlightAll(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Center viewport on a given node
|
|
89
|
-
*/
|
|
90
|
-
centerViewportOnNode(target: NodeId): void;
|
|
91
|
-
/**
|
|
92
|
-
* Center viewport on a given edge (centering on edge means including both source and target nodes in view)
|
|
93
|
-
*/
|
|
94
|
-
centerViewportOnEdge(target: EdgeId): void;
|
|
95
|
-
/**
|
|
96
|
-
* Start editing, either node or edge
|
|
97
|
-
*/
|
|
98
|
-
startEditing(subject: 'node' | 'edge'): void;
|
|
99
|
-
/**
|
|
100
|
-
* Stop editing
|
|
101
|
-
* @param wasChanged - whether there were changes made during editing
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
stopEditing(wasChanged?: boolean): void;
|
|
105
|
-
/**
|
|
106
|
-
* Undo last editing operation
|
|
107
|
-
* @returns true if there was something to undo
|
|
108
|
-
*/
|
|
109
|
-
undoEditing(): boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Align nodes
|
|
112
|
-
*/
|
|
113
|
-
align(mode: AlignmentMode): void;
|
|
114
|
-
/**
|
|
115
|
-
* Reset edge control points
|
|
116
|
-
*/
|
|
117
|
-
resetEdgeControlPoints(): void;
|
|
118
|
-
/**
|
|
119
|
-
* Focus node
|
|
120
|
-
*/
|
|
121
|
-
focusNode(nodeId: NodeId): void;
|
|
122
|
-
/**
|
|
123
|
-
* Focus on element by FQN (finds the node and focuses on it).
|
|
124
|
-
* Used by search to highlight an element on the current view.
|
|
125
|
-
*/
|
|
126
|
-
focusOnElement(elementFqn: Fqn<A>): void;
|
|
127
|
-
/**
|
|
128
|
-
* @warning Do not use in render phase
|
|
129
|
-
*/
|
|
130
|
-
getContext(): DiagramContext;
|
|
131
|
-
/**
|
|
132
|
-
* @warning Do not use in render phase
|
|
133
|
-
*/
|
|
134
|
-
findDiagramNode(xynodeId: string): t.DiagramNode<A> | null;
|
|
135
|
-
/**
|
|
136
|
-
* @warning Do not use in render phase
|
|
137
|
-
*/
|
|
138
|
-
findEdge(xyedgeId: string): Types.Edge | null;
|
|
139
|
-
/**
|
|
140
|
-
* @warning Do not use in render phase
|
|
141
|
-
*/
|
|
142
|
-
findDiagramEdge(xyedgeId: string): t.DiagramEdge<A> | null;
|
|
143
|
-
startWalkthrough(stepId?: t.StepPath): void;
|
|
144
|
-
walkthroughStep(value?: 'next' | 'prev' | {
|
|
145
|
-
step: t.StepPath;
|
|
146
|
-
}): void;
|
|
147
|
-
stopWalkthrough(): void;
|
|
148
|
-
toggleFeature(feature: TogglableFeature, forceValue?: boolean): void;
|
|
149
|
-
highlightNotation(notation: ElementNotation, kind?: string): void;
|
|
150
|
-
unhighlightNotation(): void;
|
|
151
|
-
openSearch(searchValue?: string): void;
|
|
152
|
-
triggerChange(change: ViewChange): void;
|
|
153
|
-
/**
|
|
154
|
-
* Switch dynamic view display variant
|
|
155
|
-
*/
|
|
156
|
-
switchDynamicViewVariant(variant: DynamicViewDisplayVariant): void;
|
|
157
|
-
/**
|
|
158
|
-
* Toggle sequence flow collapse/expand
|
|
159
|
-
*/
|
|
160
|
-
toggleSequenceFlow(flowId: t.StepPath): void;
|
|
161
|
-
}
|
|
162
|
-
export {};
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { findDiagramEdge, findDiagramNode, findNodeByModelFqn, typedSystem } from "./utils.js";
|
|
3
|
-
import { DefaultWeakMap, invariant, nonNullable } from "@likec4/core/utils";
|
|
4
|
-
//#region src/likec4diagram/state/diagram-api.ts
|
|
5
|
-
var DiagramApi = class DiagramApi {
|
|
6
|
-
static cache = new DefaultWeakMap((ref) => new DiagramApi(ref));
|
|
7
|
-
static withActor(actorRef) {
|
|
8
|
-
return this.cache.get(actorRef);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* React ref to the diagram actor
|
|
12
|
-
*/
|
|
13
|
-
ref;
|
|
14
|
-
constructor(actorRef) {
|
|
15
|
-
this.ref = actorRef;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @warning Do not use in render phase
|
|
19
|
-
*/
|
|
20
|
-
get actor() {
|
|
21
|
-
return this.ref.current;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @warning Do not use in render phase
|
|
25
|
-
*/
|
|
26
|
-
get currentView() {
|
|
27
|
-
return this.ref.current.getSnapshot().context.view;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Editor actor reference
|
|
31
|
-
* @warning Do not use in render phase
|
|
32
|
-
*/
|
|
33
|
-
editorActor() {
|
|
34
|
-
const editorActor = typedSystem(this.ref.current.system).editorActorRef;
|
|
35
|
-
return nonNullable(editorActor, "Editor actor not found in actor system");
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Overlays actor reference
|
|
39
|
-
* @warning Do not use in render phase
|
|
40
|
-
*/
|
|
41
|
-
overlays() {
|
|
42
|
-
const overlaysActor = typedSystem(this.ref.current.system).overlaysActorRef;
|
|
43
|
-
return nonNullable(overlaysActor, "Overlays actor not found in actor system");
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Search actor reference
|
|
47
|
-
* @warning Do not use in render phase
|
|
48
|
-
*/
|
|
49
|
-
searchActor() {
|
|
50
|
-
const searchActor = typedSystem(this.ref.current.system).searchActorRef;
|
|
51
|
-
return nonNullable(searchActor, "Search actor not found in actor system");
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Send event to diagram actor
|
|
55
|
-
*/
|
|
56
|
-
send(event) {
|
|
57
|
-
this.ref.current.send(event);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Navigate to view
|
|
61
|
-
* @param viewId - Target view ID
|
|
62
|
-
* @param fromNode - Node from which navigation was triggered
|
|
63
|
-
* @param focusOnElement - Element FQN to focus after navigation (from search)
|
|
64
|
-
*/
|
|
65
|
-
navigateTo(viewId, fromNode, focusOnElement) {
|
|
66
|
-
this.send({
|
|
67
|
-
type: "navigate.to",
|
|
68
|
-
viewId,
|
|
69
|
-
...fromNode && { fromNode },
|
|
70
|
-
...focusOnElement && { focusOnElement }
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Navigate back or forward in history
|
|
75
|
-
*/
|
|
76
|
-
navigate(direction) {
|
|
77
|
-
this.send({ type: `navigate.${direction}` });
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Fit diagram to view
|
|
81
|
-
*/
|
|
82
|
-
fitDiagram(duration = 350) {
|
|
83
|
-
this.send({
|
|
84
|
-
type: "xyflow.fitDiagram",
|
|
85
|
-
duration
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Open relationships browser
|
|
90
|
-
*/
|
|
91
|
-
openRelationshipsBrowser(fqn) {
|
|
92
|
-
this.send({
|
|
93
|
-
type: "open.relationshipsBrowser",
|
|
94
|
-
fqn
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* If running in editor, trigger opening source file
|
|
99
|
-
*/
|
|
100
|
-
openSource(params) {
|
|
101
|
-
this.send({
|
|
102
|
-
type: "open.source",
|
|
103
|
-
...params
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Open element details card
|
|
108
|
-
*/
|
|
109
|
-
openElementDetails(fqn, fromNode) {
|
|
110
|
-
this.send({
|
|
111
|
-
type: "open.elementDetails",
|
|
112
|
-
fqn,
|
|
113
|
-
fromNode
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
openRelationshipDetails(...params) {
|
|
117
|
-
if (params.length === 1) this.send({
|
|
118
|
-
type: "open.relationshipDetails",
|
|
119
|
-
params: { edgeId: params[0] }
|
|
120
|
-
});
|
|
121
|
-
else this.send({
|
|
122
|
-
type: "open.relationshipDetails",
|
|
123
|
-
params: {
|
|
124
|
-
source: params[0],
|
|
125
|
-
target: params[1]
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
updateNodeData(nodeId, data) {
|
|
130
|
-
this.send({
|
|
131
|
-
type: "update.nodeData",
|
|
132
|
-
nodeId,
|
|
133
|
-
data
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
updateEdgeData(edgeId, data) {
|
|
137
|
-
this.send({
|
|
138
|
-
type: "update.edgeData",
|
|
139
|
-
edgeId,
|
|
140
|
-
data
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
highlightNode(nodeId) {
|
|
144
|
-
this.send({
|
|
145
|
-
type: "highlight.node",
|
|
146
|
-
nodeId
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
highlightEdge(edgeId) {
|
|
150
|
-
this.send({
|
|
151
|
-
type: "highlight.edge",
|
|
152
|
-
edgeId
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
unhighlightAll() {
|
|
156
|
-
this.send({ type: "unhighlight.all" });
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Center viewport on a given node
|
|
160
|
-
*/
|
|
161
|
-
centerViewportOnNode(target) {
|
|
162
|
-
this.send({
|
|
163
|
-
type: "xyflow.centerViewport",
|
|
164
|
-
nodeId: target
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Center viewport on a given edge (centering on edge means including both source and target nodes in view)
|
|
169
|
-
*/
|
|
170
|
-
centerViewportOnEdge(target) {
|
|
171
|
-
this.send({
|
|
172
|
-
type: "xyflow.centerViewport",
|
|
173
|
-
edgeId: target
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Start editing, either node or edge
|
|
178
|
-
*/
|
|
179
|
-
startEditing(subject) {
|
|
180
|
-
const editorActor = typedSystem(this.ref.current.system).editorActorRef;
|
|
181
|
-
invariant(editorActor, "No editor actor found in diagram actor system");
|
|
182
|
-
editorActor.send({
|
|
183
|
-
type: "edit.move.start",
|
|
184
|
-
subject
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Stop editing
|
|
189
|
-
* @param wasChanged - whether there were changes made during editing
|
|
190
|
-
* @default false
|
|
191
|
-
*/
|
|
192
|
-
stopEditing(wasChanged = false) {
|
|
193
|
-
const editorActor = typedSystem(this.ref.current.system).editorActorRef;
|
|
194
|
-
invariant(editorActor, "No editor actor found in diagram actor system");
|
|
195
|
-
editorActor.send({ type: wasChanged ? "edit.move.end" : "edit.move.cancel" });
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Undo last editing operation
|
|
199
|
-
* @returns true if there was something to undo
|
|
200
|
-
*/
|
|
201
|
-
undoEditing() {
|
|
202
|
-
const editorActor = typedSystem(this.ref.current.system).editorActorRef;
|
|
203
|
-
invariant(editorActor, "No editor actor found in diagram actor system");
|
|
204
|
-
const hasUndo = editorActor.getSnapshot().context.history !== null;
|
|
205
|
-
if (hasUndo) editorActor.send({ type: "undo" });
|
|
206
|
-
return hasUndo;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Align nodes
|
|
210
|
-
*/
|
|
211
|
-
align(mode) {
|
|
212
|
-
this.send({
|
|
213
|
-
type: "layout.align",
|
|
214
|
-
mode
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Reset edge control points
|
|
219
|
-
*/
|
|
220
|
-
resetEdgeControlPoints() {
|
|
221
|
-
this.send({ type: "layout.resetEdgeControlPoints" });
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Focus node
|
|
225
|
-
*/
|
|
226
|
-
focusNode(nodeId) {
|
|
227
|
-
this.send({
|
|
228
|
-
type: "focus.node",
|
|
229
|
-
nodeId
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Focus on element by FQN (finds the node and focuses on it).
|
|
234
|
-
* Used by search to highlight an element on the current view.
|
|
235
|
-
*/
|
|
236
|
-
focusOnElement(elementFqn) {
|
|
237
|
-
const context = this.ref.current.getSnapshot().context;
|
|
238
|
-
const node = findNodeByModelFqn(context.xynodes, elementFqn);
|
|
239
|
-
if (node) this.send({
|
|
240
|
-
type: "focus.node",
|
|
241
|
-
nodeId: node.id,
|
|
242
|
-
autoUnfocus: true
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* @warning Do not use in render phase
|
|
247
|
-
*/
|
|
248
|
-
getContext() {
|
|
249
|
-
return this.ref.current.getSnapshot().context;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* @warning Do not use in render phase
|
|
253
|
-
*/
|
|
254
|
-
findDiagramNode(xynodeId) {
|
|
255
|
-
return findDiagramNode(this.ref.current.getSnapshot().context, xynodeId);
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @warning Do not use in render phase
|
|
259
|
-
*/
|
|
260
|
-
findEdge(xyedgeId) {
|
|
261
|
-
return this.ref.current.getSnapshot().context.xyedges.find((e) => e.data.id === xyedgeId) ?? null;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @warning Do not use in render phase
|
|
265
|
-
*/
|
|
266
|
-
findDiagramEdge(xyedgeId) {
|
|
267
|
-
return findDiagramEdge(this.ref.current.getSnapshot().context, xyedgeId);
|
|
268
|
-
}
|
|
269
|
-
startWalkthrough(stepId) {
|
|
270
|
-
this.send({
|
|
271
|
-
type: "walkthrough.start",
|
|
272
|
-
stepId
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
walkthroughStep(value = "next") {
|
|
276
|
-
if (value === "next" || value === "prev") this.send({
|
|
277
|
-
type: "walkthrough.step",
|
|
278
|
-
direction: value
|
|
279
|
-
});
|
|
280
|
-
else this.send({
|
|
281
|
-
type: "walkthrough.step",
|
|
282
|
-
stepId: value.step
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
stopWalkthrough() {
|
|
286
|
-
this.send({ type: "walkthrough.end" });
|
|
287
|
-
}
|
|
288
|
-
toggleFeature(feature, forceValue) {
|
|
289
|
-
this.send({
|
|
290
|
-
type: "toggle.feature",
|
|
291
|
-
feature,
|
|
292
|
-
...forceValue !== void 0 && { forceValue }
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
highlightNotation(notation, kind) {
|
|
296
|
-
this.send({
|
|
297
|
-
type: "notations.highlight",
|
|
298
|
-
notation,
|
|
299
|
-
...kind && { kind }
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
unhighlightNotation() {
|
|
303
|
-
this.send({ type: "notations.unhighlight" });
|
|
304
|
-
}
|
|
305
|
-
openSearch(searchValue) {
|
|
306
|
-
this.send({
|
|
307
|
-
type: "open.search",
|
|
308
|
-
...searchValue && { search: searchValue }
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
triggerChange(change) {
|
|
312
|
-
this.send({
|
|
313
|
-
type: "trigger.change",
|
|
314
|
-
change
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Switch dynamic view display variant
|
|
319
|
-
*/
|
|
320
|
-
switchDynamicViewVariant(variant) {
|
|
321
|
-
this.send({
|
|
322
|
-
type: "switch.dynamicViewVariant",
|
|
323
|
-
variant
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Toggle sequence flow collapse/expand
|
|
328
|
-
*/
|
|
329
|
-
toggleSequenceFlow(flowId) {
|
|
330
|
-
this.send({
|
|
331
|
-
type: "sequence.flow.toggle",
|
|
332
|
-
flowId
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
//#endregion
|
|
337
|
-
export { DiagramApi };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AnyEventObject, CallbackActorLogic, NonReducibleUnknown } from 'xstate';
|
|
2
|
-
export type HotKeyEvent = {
|
|
3
|
-
type: 'key.esc' | `key.arrow.${'left' | 'right' | 'up' | 'down'}`;
|
|
4
|
-
};
|
|
5
|
-
export interface HotkeyActorLogic extends CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent> {
|
|
6
|
-
}
|
|
7
|
-
export declare const hotkeyActorLogic: HotkeyActorLogic;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { getHotkeyHandler } from "@mantine/hooks";
|
|
3
|
-
import { fromCallback } from "xstate";
|
|
4
|
-
//#region src/likec4diagram/state/hotkeyActor.ts
|
|
5
|
-
var hotkeyActorLogic = fromCallback(({ sendBack }) => {
|
|
6
|
-
const escHandler = getHotkeyHandler([[
|
|
7
|
-
"Escape",
|
|
8
|
-
(event) => {
|
|
9
|
-
event.stopPropagation();
|
|
10
|
-
sendBack({ type: "key.esc" });
|
|
11
|
-
},
|
|
12
|
-
{ preventDefault: true }
|
|
13
|
-
]]);
|
|
14
|
-
const arrowshandler = getHotkeyHandler([
|
|
15
|
-
[
|
|
16
|
-
"ArrowLeft",
|
|
17
|
-
(event) => {
|
|
18
|
-
event.stopPropagation();
|
|
19
|
-
sendBack({ type: "key.arrow.left" });
|
|
20
|
-
},
|
|
21
|
-
{ preventDefault: true }
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
"ArrowUp",
|
|
25
|
-
(event) => {
|
|
26
|
-
event.stopPropagation();
|
|
27
|
-
sendBack({ type: "key.arrow.up" });
|
|
28
|
-
},
|
|
29
|
-
{ preventDefault: true }
|
|
30
|
-
],
|
|
31
|
-
[
|
|
32
|
-
"ArrowRight",
|
|
33
|
-
(event) => {
|
|
34
|
-
event.stopPropagation();
|
|
35
|
-
sendBack({ type: "key.arrow.right" });
|
|
36
|
-
},
|
|
37
|
-
{ preventDefault: true }
|
|
38
|
-
],
|
|
39
|
-
[
|
|
40
|
-
"ArrowDown",
|
|
41
|
-
(event) => {
|
|
42
|
-
event.stopPropagation();
|
|
43
|
-
sendBack({ type: "key.arrow.down" });
|
|
44
|
-
},
|
|
45
|
-
{ preventDefault: true }
|
|
46
|
-
]
|
|
47
|
-
]);
|
|
48
|
-
document.body.addEventListener("keydown", escHandler);
|
|
49
|
-
document.body.addEventListener("keydown", arrowshandler, { capture: true });
|
|
50
|
-
return () => {
|
|
51
|
-
document.body.removeEventListener("keydown", escHandler);
|
|
52
|
-
document.body.removeEventListener("keydown", arrowshandler, { capture: true });
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
|
-
export { hotkeyActorLogic };
|