@likec4/diagram 1.60.0 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -11
- package/dist/LikeC4Diagram.d.mts +4 -6
- package/dist/LikeC4Diagram.mjs +13 -12
- package/dist/LikeC4Diagram.props.d.mts +5 -7
- package/dist/LikeC4MantineProvider.d.mts +1 -2
- package/dist/LikeC4MantineProvider.mjs +26 -11
- package/dist/LikeC4ModelProvider.d.mts +1 -3
- package/dist/LikeC4ModelProvider.mjs +1 -2
- package/dist/LikeC4ProjectsOverview.d.mts +1 -3
- package/dist/LikeC4ProjectsOverview.mjs +1 -2
- package/dist/LikeC4ProjectsProvider.d.mts +1 -2
- package/dist/LikeC4ProjectsProvider.mjs +2 -3
- package/dist/LikeC4Styles.d.mts +1 -2
- package/dist/LikeC4Styles.mjs +11 -6
- package/dist/LikeC4View.d.mts +3 -5
- package/dist/LikeC4View.mjs +12 -11
- package/dist/ReactLikeC4.d.mts +3 -5
- package/dist/ReactLikeC4.mjs +8 -7
- package/dist/StaticLikeC4Diagram.d.mts +1 -3
- package/dist/StaticLikeC4Diagram.mjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/base/Background.mjs +1 -2
- package/dist/base/Base.d.mts +1 -2
- package/dist/base/Base.mjs +1 -2
- package/dist/base/BaseXYFlow.mjs +12 -10
- package/dist/base/const.d.mts +1 -3
- package/dist/base/const.mjs +1 -2
- package/dist/base/keyboardZoom.mjs +1 -2
- package/dist/base/types.d.mts +2 -4
- package/dist/base/updateEdges.mjs +1 -2
- package/dist/base/updateNodes.mjs +1 -2
- package/dist/base-primitives/Markdown.d.mts +5 -5
- package/dist/base-primitives/Markdown.mjs +22 -11
- package/dist/base-primitives/NodeHandles.d.mts +1 -3
- package/dist/base-primitives/NodeHandles.mjs +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundDetailsButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundNodeContainer.mjs +1 -2
- package/dist/base-primitives/compound/CompoundTitle.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundTitle.mjs +1 -2
- package/dist/base-primitives/compound/actionbtns.css.mjs +1 -2
- package/dist/base-primitives/edge/EdgeActionButton.mjs +2 -3
- package/dist/base-primitives/edge/EdgeContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeLabel.mjs +3 -3
- package/dist/base-primitives/edge/EdgeLabelContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeMarkers.mjs +1 -2
- package/dist/base-primitives/edge/EdgePath.mjs +1 -2
- package/dist/base-primitives/element/ElementActionButtons.d.mts +1 -2
- package/dist/base-primitives/element/ElementActionButtons.mjs +2 -3
- package/dist/base-primitives/element/ElementData.d.mts +1 -2
- package/dist/base-primitives/element/ElementData.mjs +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.d.mts +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.mjs +2 -3
- package/dist/base-primitives/element/ElementNodeContainer.d.mts +1 -2
- package/dist/base-primitives/element/ElementNodeContainer.mjs +2 -3
- package/dist/base-primitives/element/ElementShape.d.mts +11 -6
- package/dist/base-primitives/element/ElementShape.mjs +10 -5
- package/dist/base-primitives/element/ElementTags.d.mts +6 -3
- package/dist/base-primitives/element/ElementTags.mjs +2 -4
- package/dist/base-primitives/index.d.mts +5 -5
- package/dist/base-primitives/memoEdge.d.mts +2 -6
- package/dist/base-primitives/memoEdge.mjs +1 -2
- package/dist/base-primitives/memoNode.d.mts +2 -6
- package/dist/components/EmptyBox.mjs +1 -2
- package/dist/components/ErrorFallback.d.mts +4 -3
- package/dist/components/ErrorFallback.mjs +61 -56
- package/dist/components/FloatingWindow.mjs +3 -4
- package/dist/components/GithubIcon.mjs +1 -2
- package/dist/components/Link.mjs +3 -4
- package/dist/components/Logo.d.mts +3 -5
- package/dist/components/Logo.mjs +28 -35
- package/dist/components/NavigationLink.mjs +1 -2
- package/dist/components/NavigationPanel.mjs +11 -11
- package/dist/components/PortalToContainer.d.mts +1 -3
- package/dist/components/PortalToContainer.mjs +1 -2
- package/dist/components/RootContainer.mjs +1 -2
- package/dist/components/SearchControl.css.mjs +1 -2
- package/dist/components/SearchControl.d.mts +1 -2
- package/dist/components/SearchControl.mjs +2 -3
- package/dist/components/ViewIcon.mjs +5 -6
- package/dist/components/ViewNotFound.mjs +1 -2
- package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
- package/dist/components/markdown/markdown-refs.mjs +145 -0
- package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
- package/dist/context/ComparingLayoutsContext.mjs +24 -0
- package/dist/context/CurrentViewModelProvider.mjs +1 -2
- package/dist/context/DiagramEventHandlers.mjs +3 -4
- package/dist/context/DiagramFeatures.d.mts +2 -3
- package/dist/context/DiagramFeatures.mjs +15 -9
- package/dist/context/EnsureMantine.mjs +1 -2
- package/dist/context/FramerMotionConfig.d.mts +1 -3
- package/dist/context/FramerMotionConfig.mjs +1 -2
- package/dist/context/IconRenderer.d.mts +1 -3
- package/dist/context/IconRenderer.mjs +14 -14
- package/dist/context/LikeC4ModelContext.d.mts +1 -2
- package/dist/context/LikeC4ModelContext.mjs +1 -2
- package/dist/context/LikeC4ProjectsContext.d.mts +1 -3
- package/dist/context/LikeC4ProjectsContext.mjs +1 -2
- package/dist/context/RootContainerContext.mjs +1 -2
- package/dist/context/TagStylesContext.d.mts +1 -2
- package/dist/context/TagStylesContext.mjs +7 -19
- package/dist/custom/builtins.d.mts +4 -1
- package/dist/custom/customNodes.d.mts +164 -7
- package/dist/custom/customNodes.mjs +387 -8
- package/dist/custom/index.d.mts +18 -30
- package/dist/custom/index.mjs +11 -19
- package/dist/custom/primitives.d.mts +3 -5
- package/dist/customization/CustomizationContext.d.mts +50 -0
- package/dist/customization/CustomizationContext.mjs +64 -0
- package/dist/customization/customizable.d.mts +32 -0
- package/dist/customization/customizable.mjs +75 -0
- package/dist/customization/customization-types.d.mts +40 -0
- package/dist/customization/customization-types.mjs +8 -0
- package/dist/customization/stableComponents.mjs +35 -0
- package/dist/editor/LikeC4EditorCallbacks.d.mts +1 -3
- package/dist/editor/LikeC4EditorCallbacks.mjs +1 -2
- package/dist/editor/LikeC4EditorProvider.d.mts +1 -3
- package/dist/editor/LikeC4EditorProvider.mjs +1 -2
- package/dist/editor/actor/actions.mjs +2 -3
- package/dist/editor/actor/hotkey.d.mts +1 -3
- package/dist/editor/actor/hotkey.mjs +1 -2
- package/dist/editor/actor/machine.d.mts +2 -4
- package/dist/editor/actor/machine.mjs +1 -2
- package/dist/editor/actor/setup.d.mts +1 -2
- package/dist/editor/actor/setup.mjs +1 -2
- package/dist/editor/actor/state.editor.mjs +2 -3
- package/dist/editor/actor/state.sync-queue.mjs +2 -3
- package/dist/editor/actor/types.d.mts +1 -3
- package/dist/editor/actor/types.mjs +1 -2
- package/dist/editor/applyChangesToManualLayout.mjs +1 -2
- package/dist/editor/index.d.mts +1 -1
- package/dist/editor/useEditorActorLogic.mjs +3 -4
- package/dist/hooks/safeContext.d.mts +16 -35
- package/dist/hooks/safeContext.mjs +1 -2
- package/dist/hooks/useCallbackRef.mjs +1 -2
- package/dist/hooks/useCurrentView.d.mts +1 -3
- package/dist/hooks/useCurrentView.mjs +1 -2
- package/dist/hooks/useCurrentViewModel.d.mts +0 -2
- package/dist/hooks/useCurrentViewModel.mjs +1 -2
- package/dist/hooks/useDiagram.d.mts +3 -12
- package/dist/hooks/useDiagram.mjs +11 -10
- package/dist/hooks/useDiagramCompareLayout.d.mts +2 -4
- package/dist/hooks/useDiagramCompareLayout.mjs +12 -21
- package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
- package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
- package/dist/hooks/useEdgeTracks.mjs +2 -3
- package/dist/hooks/useEditorActor.mjs +1 -2
- package/dist/hooks/useId.mjs +1 -2
- package/dist/hooks/useLikeC4ElementsTree.mjs +1 -2
- package/dist/hooks/useLikeC4Model.d.mts +0 -2
- package/dist/hooks/useLikeC4Model.mjs +1 -2
- package/dist/hooks/useLikeC4Project.d.mts +2 -4
- package/dist/hooks/useLikeC4Project.mjs +1 -2
- package/dist/hooks/useLikeC4Styles.d.mts +1 -3
- package/dist/hooks/useLikeC4Styles.mjs +1 -2
- package/dist/hooks/useMantinePortalProps.mjs +1 -2
- package/dist/hooks/useSetState.mjs +1 -2
- package/dist/hooks/useUpdateEffect.d.mts +0 -2
- package/dist/hooks/useUpdateEffect.mjs +1 -2
- package/dist/hooks/useXYFlow.d.mts +1 -3
- package/dist/hooks/useXYFlow.mjs +1 -2
- package/dist/index.d.mts +20 -18
- package/dist/index.mjs +20 -18
- package/dist/likec4diagram/DiagramUI.mjs +14 -11
- package/dist/likec4diagram/DiagramXYFlow.mjs +34 -34
- package/dist/likec4diagram/convert-to-xyflow.mjs +7 -3
- package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +18 -14
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +3 -4
- package/dist/likec4diagram/custom/edges/useControlPoints.mjs +2 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +2 -3
- package/dist/likec4diagram/custom/index.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +1 -2
- package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +2 -3
- package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/ElementActions.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +3 -5
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -1
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/index.d.mts +4 -4
- package/dist/likec4diagram/custom/nodes/nodes.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/nodes.mjs +19 -21
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +4 -6
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +29 -12
- package/dist/likec4diagram/relationship-popover/actor.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/components.mjs +1 -2
- package/dist/likec4diagram/state/DiagramActorProvider.mjs +22 -34
- package/dist/likec4diagram/state/aligners.d.mts +1 -3
- package/dist/likec4diagram/state/aligners.mjs +1 -2
- package/dist/likec4diagram/state/assign.mjs +3 -4
- package/dist/likec4diagram/state/createViewChange.mjs +1 -2
- package/dist/likec4diagram/state/diagram-api.d.mts +33 -16
- package/dist/likec4diagram/state/diagram-api.mjs +55 -31
- package/dist/likec4diagram/state/hotkeyActor.d.mts +1 -3
- package/dist/likec4diagram/state/hotkeyActor.mjs +12 -6
- package/dist/likec4diagram/state/machine.actions.layout.mjs +2 -3
- package/dist/likec4diagram/state/machine.actions.mjs +81 -44
- package/dist/likec4diagram/state/machine.d.mts +107 -15
- package/dist/likec4diagram/state/machine.mjs +3 -4
- package/dist/likec4diagram/state/machine.setup.d.mts +14 -10
- package/dist/likec4diagram/state/machine.setup.mjs +55 -28
- package/dist/likec4diagram/state/machine.state.initializing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.navigating.mjs +3 -6
- package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.idle.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.mjs +8 -8
- package/dist/likec4diagram/state/machine.state.ready.printing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +5 -6
- package/dist/likec4diagram/state/mediaPrintActor.d.mts +1 -3
- package/dist/likec4diagram/state/mediaPrintActor.mjs +1 -2
- package/dist/likec4diagram/state/persistence.mjs +12 -5
- package/dist/likec4diagram/state/types.d.mts +1 -3
- package/dist/likec4diagram/state/utils.mjs +2 -3
- package/dist/likec4diagram/types.d.mts +1 -3
- package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +5 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +1 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.mjs +6 -7
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +3 -4
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +4 -7
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +4 -5
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +4 -6
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +3 -9
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/motion.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/tree.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/types.mjs +1 -2
- package/dist/likec4diagram/useLayoutConstraints.mjs +5 -10
- package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
- package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +9 -2
- package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +1 -2
- package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +3 -6
- package/dist/likec4diagram/xyflow-props.mjs +25 -0
- package/dist/likec4diagram/xyflow-sequence/const.mjs +1 -2
- package/dist/likec4diagram/xyflow-sequence/layouter.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/utils.mjs +1 -2
- package/dist/navigationpanel/ElementViewControls.mjs +6 -7
- package/dist/navigationpanel/NavigationPanel.mjs +38 -67
- package/dist/navigationpanel/NavigationPanelControls.mjs +35 -114
- package/dist/navigationpanel/NavigationPanelDropdown.mjs +37 -34
- package/dist/navigationpanel/_common.mjs +3 -4
- package/dist/navigationpanel/actor.actions.mjs +1 -2
- package/dist/navigationpanel/actor.d.mts +0 -2
- package/dist/navigationpanel/actor.mjs +2 -3
- package/dist/navigationpanel/actor.setup.d.mts +1 -3
- package/dist/navigationpanel/actor.setup.mjs +1 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.mjs +160 -90
- package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +173 -142
- package/dist/{likec4diagram/ui → navigationpanel/comparepanel}/LayoutDriftFrame.mjs +6 -12
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +14 -19
- package/dist/navigationpanel/controls/LayoutWarning.mjs +3 -4
- package/dist/navigationpanel/controls/LogoButton.mjs +5 -23
- package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
- package/dist/navigationpanel/controls/NavigationButtons.mjs +3 -4
- package/dist/navigationpanel/controls/OpenSource.mjs +2 -3
- package/dist/navigationpanel/controls/SearchControl.mjs +2 -3
- package/dist/navigationpanel/controls/ToggleReadonly.mjs +36 -21
- package/dist/navigationpanel/controls/ViewDetailsButton.mjs +12 -15
- package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +46 -13
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +3 -4
- package/dist/navigationpanel/editorpanel/CenterCamera.mjs +2 -3
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +3 -4
- package/dist/navigationpanel/editorpanel/EditorPanel.mjs +4 -4
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +11 -13
- package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +2 -3
- package/dist/navigationpanel/editorpanel/_common.mjs +1 -2
- package/dist/navigationpanel/editorpanel/styles.mjs +1 -2
- package/dist/navigationpanel/hooks.mjs +1 -2
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +5 -6
- package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +7 -9
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +1 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +3 -4
- package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +44 -38
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +1 -2
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +1 -2
- package/dist/overlays/Overlays.mjs +4 -5
- package/dist/overlays/element-details/ElementDetails.mjs +2 -3
- package/dist/overlays/element-details/ElementDetailsCard.css.mjs +148 -102
- package/dist/overlays/element-details/ElementDetailsCard.mjs +503 -256
- package/dist/overlays/element-details/MetadataValue.mjs +115 -222
- package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
- package/dist/overlays/element-details/TabPanelDeployments.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelDeployments.mjs +5 -6
- package/dist/overlays/element-details/TabPanelRelationships.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelRelationships.mjs +6 -7
- package/dist/overlays/element-details/TabPanelStructure.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelStructure.mjs +3 -4
- package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
- package/dist/overlays/element-details/actor.d.mts +6 -7
- package/dist/overlays/element-details/actor.mjs +31 -15
- package/dist/overlays/element-details/actorContext.mjs +1 -2
- package/dist/overlays/element-details/subject.d.mts +12 -0
- package/dist/overlays/element-details/subject.mjs +15 -0
- package/dist/overlays/hooks.mjs +1 -2
- package/dist/overlays/overlay/Overlay.d.mts +1 -3
- package/dist/overlays/overlay/Overlay.mjs +4 -5
- package/dist/overlays/overlaysActor.d.mts +12 -5
- package/dist/overlays/overlaysActor.mjs +24 -6
- package/dist/overlays/relationship-details/RelationshipDetails.mjs +16 -8
- package/dist/overlays/relationship-details/SelectEdge.css.mjs +1 -2
- package/dist/overlays/relationship-details/SelectEdge.mjs +3 -4
- package/dist/overlays/relationship-details/_types.d.mts +6 -4
- package/dist/overlays/relationship-details/actor.d.mts +0 -2
- package/dist/overlays/relationship-details/actor.mjs +2 -3
- package/dist/overlays/relationship-details/compute.mjs +1 -2
- package/dist/overlays/relationship-details/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationship-details/custom/edgeTypes.mjs +8 -13
- package/dist/overlays/relationship-details/custom/nodeTypes.mjs +8 -6
- package/dist/overlays/relationship-details/hooks.mjs +1 -2
- package/dist/overlays/relationship-details/layout-to-xyflow.mjs +3 -3
- package/dist/overlays/relationship-details/layout.d.mts +1 -3
- package/dist/overlays/relationship-details/layout.mjs +39 -13
- package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +12 -13
- package/dist/overlays/relationships-browser/SelectElement.css.mjs +1 -2
- package/dist/overlays/relationships-browser/SelectElement.mjs +4 -5
- package/dist/overlays/relationships-browser/_types.d.mts +6 -4
- package/dist/overlays/relationships-browser/actor.d.mts +0 -2
- package/dist/overlays/relationships-browser/actor.mjs +4 -5
- package/dist/overlays/relationships-browser/const.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +14 -17
- package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +12 -7
- package/dist/overlays/relationships-browser/hooks.mjs +1 -2
- package/dist/overlays/relationships-browser/layout.d.mts +1 -3
- package/dist/overlays/relationships-browser/layout.mjs +73 -24
- package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +2 -2
- package/dist/overlays/types.d.mts +5 -7
- package/dist/projects-overview/ProjectsOverview.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverview.mjs +1 -2
- package/dist/projects-overview/ProjectsOverviewXY.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverviewXY.mjs +3 -4
- package/dist/projects-overview/actor.mjs +1 -2
- package/dist/projects-overview/context.mjs +1 -2
- package/dist/projects-overview/custom/edgeTypes.mjs +2 -3
- package/dist/projects-overview/custom/nodeTypes.mjs +3 -4
- package/dist/projects-overview/hooks.mjs +1 -2
- package/dist/projects-overview/layouted-to-xyflow.mjs +1 -2
- package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +1 -2
- package/dist/projects-overview/persistence.mjs +1 -2
- package/dist/search/Search.d.mts +1 -3
- package/dist/search/Search.mjs +13 -12
- package/dist/search/SearchContext.d.mts +1 -3
- package/dist/search/SearchContext.mjs +1 -2
- package/dist/search/XStateSearchAdapter.mjs +1 -2
- package/dist/search/components/ElementsColumn.css.mjs +1 -2
- package/dist/search/components/ElementsColumn.mjs +31 -9
- package/dist/search/components/PickView.mjs +3 -4
- package/dist/search/components/SearchByTags.mjs +3 -4
- package/dist/search/components/SearchInput.mjs +3 -4
- package/dist/search/components/ViewsColum.mjs +20 -20
- package/dist/search/components/ViewsColumn.css.mjs +1 -2
- package/dist/search/components/_shared.css.mjs +1 -2
- package/dist/search/components/styles.css.mjs +1 -2
- package/dist/search/components/utils.mjs +32 -3
- package/dist/search/fuzzy.mjs +27 -0
- package/dist/search/hooks.mjs +1 -2
- package/dist/search/metadata-search.mjs +32 -0
- package/dist/search/searchActor.d.mts +1 -3
- package/dist/search/searchActor.mjs +1 -2
- package/dist/shadowroot/ShadowRoot.mjs +8 -7
- package/dist/styles-font2.mjs +1 -2
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles2.mjs +2 -3
- package/dist/utils/defineActors.d.mts +1 -3
- package/dist/utils/defineActors.mjs +1 -2
- package/dist/utils/edge-corners.mjs +2 -3
- package/dist/utils/edge-endpoints.mjs +1 -2
- package/dist/utils/edge-label.mjs +1 -2
- package/dist/utils/edge-path-through-label.mjs +51 -0
- package/dist/utils/edge-path.mjs +1 -2
- package/dist/utils/edge-tracks.mjs +1 -2
- package/dist/utils/filterProjects.d.mts +10 -0
- package/dist/utils/filterProjects.mjs +36 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/measure-edge-label.mjs +129 -0
- package/dist/utils/readableText.mjs +1 -2
- package/dist/utils/roundDpr.mjs +1 -2
- package/dist/utils/search-event.mjs +17 -0
- package/dist/utils/view-bounds.d.mts +1 -3
- package/dist/utils/view-bounds.mjs +1 -2
- package/dist/utils/view-routing.mjs +1 -2
- package/dist/utils/xyflow.mjs +2 -3
- package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
- package/dist/webcomponent/defineWebcomponent.mjs +93 -0
- package/package.json +29 -26
- package/panda.buildinfo.json +211 -208
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/base-primitives/memoNode.mjs +0 -23
- package/dist/context/DiagramEventHandlers.d.mts +0 -11
- package/dist/custom/hooks.d.mts +0 -17
- package/dist/hooks/useSetState.d.mts +0 -10
- package/dist/likec4diagram/custom/edges/edges.css.mjs +0 -50
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +0 -69
- package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +0 -56
- package/dist/navigationpanel/styles.css.mjs +0 -23
- package/src/styles-font.css +0 -114
- package/src/styles-min.css +0 -2
- package/src/styles-xyflow.css +0 -1
- package/src/styles.css +0 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { assignLastClickedNode, beforeLayoutTypeChangeWhileComparing, cancelEditing, emitNodeClick, emitOnLayoutTypeChange, exitComparingLayouts, openNodeDetails, openSourceOfFocusedOrLastClickedNode, triggerChange, updateView } from "./machine.actions.mjs";
|
|
2
|
+
import { ComparingTag, machine, targetState, to } from "./machine.setup.mjs";
|
|
3
|
+
import { and, not, or } from "xstate/guards";
|
|
4
|
+
import { assign } from "xstate/actions";
|
|
5
|
+
|
|
6
|
+
// src/likec4diagram/state/machine.state.ready.comparing.ts
|
|
7
|
+
/**
|
|
8
|
+
* State when comparing manual layout with the latest auto layout.
|
|
9
|
+
*
|
|
10
|
+
* - Entered on `compare.start` (from `idle` or `focused`), if the view has layout drifts
|
|
11
|
+
* - Left on `compare.end`, manual layout reset, printing or navigation,
|
|
12
|
+
* or automatically when drifts are gone or the feature is disabled
|
|
13
|
+
* - On exit switches back to manual layout (if auto is active)
|
|
14
|
+
* - Focus mode and walkthrough are not available
|
|
15
|
+
* - Diagram is readonly while auto layout is active (see `isReadOnly` guard)
|
|
16
|
+
*/
|
|
17
|
+
const comparing = machine.createStateConfig({
|
|
18
|
+
id: targetState.comparing.slice(1),
|
|
19
|
+
tags: [ComparingTag],
|
|
20
|
+
always: {
|
|
21
|
+
guard: not("can compare layouts"),
|
|
22
|
+
...to.idle
|
|
23
|
+
},
|
|
24
|
+
exit: [exitComparingLayouts()],
|
|
25
|
+
on: {
|
|
26
|
+
"compare.end": { ...to.idle },
|
|
27
|
+
"emit.onLayoutTypeChange": { actions: [beforeLayoutTypeChangeWhileComparing(), emitOnLayoutTypeChange()] },
|
|
28
|
+
"update.view": [{
|
|
29
|
+
guard: "is another view",
|
|
30
|
+
...to.navigating
|
|
31
|
+
}, { actions: updateView({ restoreLayoutViewport: true }) }],
|
|
32
|
+
"layout.resetManualLayout": {
|
|
33
|
+
guard: "enabled: Editor",
|
|
34
|
+
...to.idle,
|
|
35
|
+
actions: [
|
|
36
|
+
cancelEditing(),
|
|
37
|
+
assign({ viewportChangedManually: false }),
|
|
38
|
+
triggerChange({ op: "reset-manual-layout" })
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"walkthrough.start": {},
|
|
42
|
+
"xyflow.nodeClick": [{
|
|
43
|
+
guard: and([
|
|
44
|
+
"enabled: Readonly",
|
|
45
|
+
"enabled: ElementDetails",
|
|
46
|
+
"click: node has details",
|
|
47
|
+
or(["click: same node", "click: selected node"])
|
|
48
|
+
]),
|
|
49
|
+
actions: [
|
|
50
|
+
assignLastClickedNode(),
|
|
51
|
+
openSourceOfFocusedOrLastClickedNode(),
|
|
52
|
+
openNodeDetails(),
|
|
53
|
+
emitNodeClick()
|
|
54
|
+
]
|
|
55
|
+
}, { actions: [
|
|
56
|
+
assignLastClickedNode(),
|
|
57
|
+
openSourceOfFocusedOrLastClickedNode(),
|
|
58
|
+
emitNodeClick()
|
|
59
|
+
] }]
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export { comparing };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { assignFocusedNode, assignLastClickedNode, cancelAutoUnfocusTimer, emitNodeClick, emitPaneClick, focusOnNodesAndEdges, openNodeDetails, openSourceOfFocusedOrLastClickedNode, resetLastClickedNode, startAutoUnfocusTimer, startHotKeyActor, stopHotKeyActor, undimEverything } from "./machine.actions.mjs";
|
|
3
3
|
import { assignViewportBefore, cancelFitDiagram, fitFocusedBounds, returnViewportBefore } from "./machine.actions.layout.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { assign, raise } from "xstate/actions";
|
|
4
|
+
import { machine, targetState, to } from "./machine.setup.mjs";
|
|
6
5
|
import { and } from "xstate/guards";
|
|
6
|
+
import { assign, raise } from "xstate/actions";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/likec4diagram/state/machine.state.ready.focused.ts
|
|
9
9
|
const focused = machine.createStateConfig({
|
|
10
10
|
id: targetState.focused.slice(1),
|
|
11
11
|
entry: [
|
|
@@ -28,17 +28,21 @@ const focused = machine.createStateConfig({
|
|
|
28
28
|
})
|
|
29
29
|
],
|
|
30
30
|
on: {
|
|
31
|
+
"compare.start": {
|
|
32
|
+
guard: "can compare layouts",
|
|
33
|
+
...to.comparing
|
|
34
|
+
},
|
|
31
35
|
"focus.autoUnfocus": { ...to.idle },
|
|
32
36
|
"xyflow.nodeClick": [
|
|
33
37
|
{
|
|
34
38
|
guard: and([
|
|
35
39
|
"enabled: ElementDetails",
|
|
36
40
|
"click: focused node",
|
|
37
|
-
"click: node has
|
|
41
|
+
"click: node has details"
|
|
38
42
|
]),
|
|
39
43
|
actions: [
|
|
40
44
|
assignLastClickedNode(),
|
|
41
|
-
|
|
45
|
+
openNodeDetails(),
|
|
42
46
|
emitNodeClick()
|
|
43
47
|
]
|
|
44
48
|
},
|
|
@@ -72,5 +76,4 @@ const focused = machine.createStateConfig({
|
|
|
72
76
|
}
|
|
73
77
|
});
|
|
74
78
|
|
|
75
|
-
//#endregion
|
|
76
79
|
export { focused };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { assignFocusedNode, assignLastClickedNode, emitEdgeClick, emitNodeClick, emitOpenSourceOfView, emitPaneClick, openNodeDetails, openSourceOfFocusedOrLastClickedNode, resetLastClickedNode, resetSelection } from "./machine.actions.mjs";
|
|
3
3
|
import { raiseFitDiagram } from "./machine.actions.layout.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { machine, targetState, to } from "./machine.setup.mjs";
|
|
5
5
|
import { dynamicViewFlow, invariant, isDynamicView } from "@likec4/core";
|
|
6
|
-
import { raise } from "xstate/actions";
|
|
7
6
|
import { and, not, or } from "xstate/guards";
|
|
7
|
+
import { raise } from "xstate/actions";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/likec4diagram/state/machine.state.ready.idle.ts
|
|
10
10
|
const idle = machine.createStateConfig({
|
|
11
11
|
id: targetState.idle.slice(1),
|
|
12
12
|
on: {
|
|
13
|
+
"compare.start": {
|
|
14
|
+
guard: "can compare layouts",
|
|
15
|
+
...to.comparing
|
|
16
|
+
},
|
|
13
17
|
"xyflow.nodeClick": [
|
|
14
18
|
{
|
|
15
19
|
description: "Handle sequence subflow click in sequence variant",
|
|
@@ -52,13 +56,13 @@ const idle = machine.createStateConfig({
|
|
|
52
56
|
guard: and([
|
|
53
57
|
"enabled: Readonly",
|
|
54
58
|
"enabled: ElementDetails",
|
|
55
|
-
"click: node has
|
|
59
|
+
"click: node has details",
|
|
56
60
|
or(["click: same node", "click: selected node"])
|
|
57
61
|
]),
|
|
58
62
|
actions: [
|
|
59
63
|
assignLastClickedNode(),
|
|
60
64
|
openSourceOfFocusedOrLastClickedNode(),
|
|
61
|
-
|
|
65
|
+
openNodeDetails(),
|
|
62
66
|
emitNodeClick()
|
|
63
67
|
]
|
|
64
68
|
},
|
|
@@ -104,5 +108,4 @@ const idle = machine.createStateConfig({
|
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
|
|
107
|
-
//#endregion
|
|
108
111
|
export { idle };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { assignLastClickedNode, assignToggledFeatures, cancelEditing, closeAllOverlays, collapseOrExpandSequenceFlow, emitEdgeClick, emitNodeClick, emitOpenSource, emitOpenSourceOfView, emitPaneClick, ensureAllActors, ensureEditorActor, ensureOverlaysActor, ensureSearchActor, handleNavigate, highlightNodeOrEdge, layoutAlign, notationsHighlight, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseLeave, onNodeMouseEnter, onNodeMouseLeave, openOverlay, resetEdgesControlPoints, resetLastClickedNode, startEditing, stopEditing, tagHighlight, triggerChange, undimEverything, updateFeatures, updateView } from "./machine.actions.mjs";
|
|
3
3
|
import { machine, to } from "./machine.setup.mjs";
|
|
4
4
|
import { cancelFitDiagram, centerOnNodeOrEdge, fitDiagram, raiseFitDiagram, setViewport } from "./machine.actions.layout.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { comparing } from "./machine.state.ready.comparing.mjs";
|
|
6
6
|
import { focused } from "./machine.state.ready.focused.mjs";
|
|
7
7
|
import { idle } from "./machine.state.ready.idle.mjs";
|
|
8
8
|
import { printing } from "./machine.state.ready.printing.mjs";
|
|
9
9
|
import { walkthrough } from "./machine.state.ready.walkthrough.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { typedSystem } from "./utils.mjs";
|
|
11
11
|
import { and } from "xstate/guards";
|
|
12
|
+
import { assign, sendTo, spawnChild, stopChild } from "xstate/actions";
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
// src/likec4diagram/state/machine.state.ready.ts
|
|
14
15
|
const ready = machine.createStateConfig({
|
|
15
16
|
initial: "idle",
|
|
16
17
|
entry: [spawnChild("mediaPrint", { id: "mediaPrint" }), ensureAllActors()],
|
|
@@ -26,7 +27,8 @@ const ready = machine.createStateConfig({
|
|
|
26
27
|
idle,
|
|
27
28
|
focused,
|
|
28
29
|
walkthrough,
|
|
29
|
-
printing
|
|
30
|
+
printing,
|
|
31
|
+
comparing
|
|
30
32
|
},
|
|
31
33
|
on: {
|
|
32
34
|
"layout.align": {
|
|
@@ -49,7 +51,6 @@ const ready = machine.createStateConfig({
|
|
|
49
51
|
guard: "enabled: Editor",
|
|
50
52
|
actions: [
|
|
51
53
|
cancelEditing(),
|
|
52
|
-
disableCompareWithLatest(),
|
|
53
54
|
assign({ viewportChangedManually: false }),
|
|
54
55
|
triggerChange({ op: "reset-manual-layout" })
|
|
55
56
|
]
|
|
@@ -60,7 +61,7 @@ const ready = machine.createStateConfig({
|
|
|
60
61
|
"notations.unhighlight": { actions: undimEverything() },
|
|
61
62
|
"highlight.*": { actions: highlightNodeOrEdge() },
|
|
62
63
|
"unhighlight.all": { actions: undimEverything() },
|
|
63
|
-
"open.
|
|
64
|
+
"open.nodeDetails": { actions: openOverlay() },
|
|
64
65
|
"open.relationshipDetails": { actions: openOverlay() },
|
|
65
66
|
"open.relationshipsBrowser": { actions: openOverlay() },
|
|
66
67
|
"open.search": {
|
|
@@ -150,5 +151,4 @@ const ready = machine.createStateConfig({
|
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
153
|
|
|
153
|
-
//#endregion
|
|
154
154
|
export { ready };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { viewBounds } from "./utils.mjs";
|
|
3
|
-
import { machine, targetState, to } from "./machine.setup.mjs";
|
|
4
2
|
import { assignViewportBefore, cancelFitDiagram, returnViewportBefore, setViewport } from "./machine.actions.layout.mjs";
|
|
3
|
+
import { machine, targetState, to } from "./machine.setup.mjs";
|
|
4
|
+
import { viewBounds } from "./utils.mjs";
|
|
5
5
|
import { enqueueActions, log } from "xstate";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/likec4diagram/state/machine.state.ready.printing.ts
|
|
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.
|
|
@@ -38,5 +38,4 @@ const printing = machine.createStateConfig({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { printing };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { roundDpr } from "../../utils/roundDpr.mjs";
|
|
3
2
|
import { Base } from "../../base/Base.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { assignViewportBefore, cancelFitDiagram, fitFocusedBounds, returnViewportBefore } from "./machine.actions.layout.mjs";
|
|
3
|
+
import { roundDpr } from "../../utils/roundDpr.mjs";
|
|
6
4
|
import { assignLastClickedNode, cancelEditing, collapseOrExpandSequenceFlow, emitEdgeClick, emitPaneClick, resetLastClickedNode, resetSelection, startHotKeyActor, stopHotKeyActor, updateView } from "./machine.actions.mjs";
|
|
5
|
+
import { assignViewportBefore, cancelFitDiagram, fitFocusedBounds, returnViewportBefore } from "./machine.actions.layout.mjs";
|
|
6
|
+
import { machine, targetState, to } from "./machine.setup.mjs";
|
|
7
7
|
import { clamp, find, firstBy, isNumber, map } from "remeda";
|
|
8
8
|
import { invariant, nonNullable } from "@likec4/core";
|
|
9
|
-
import { dynamicViewFlow as dynamicViewFlow$1, flowAncestors as flowAncestors$1,
|
|
9
|
+
import { dynamicViewFlow as dynamicViewFlow$1, flowAncestors as flowAncestors$1, flowHelpers, isDynamicView as isDynamicView$1, isDynamicViewWithFlow as isDynamicViewWithFlow$1, isStepPath as isStepPath$1, parentFlow } from "@likec4/core/types";
|
|
10
10
|
import { assertEvent, enqueueActions } from "xstate";
|
|
11
11
|
import { assign as assign$1, raise as raise$1 } from "xstate/actions";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/likec4diagram/state/machine.state.ready.walkthrough.ts
|
|
14
14
|
const byId = (id) => (e) => e.data.id === id && isNumber(e.data.stepnum);
|
|
15
15
|
const outlinePanelWidth = ({ activeWalkthrough, xystore }) => {
|
|
16
16
|
if (activeWalkthrough) return activeWalkthrough.outlinePanelWidth;
|
|
@@ -258,5 +258,4 @@ const walkthrough = machine.createStateConfig({
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
|
|
261
|
-
//#endregion
|
|
262
261
|
export { walkthrough };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { AnyEventObject, CallbackActorLogic, NonReducibleUnknown } from "xstate";
|
|
3
|
-
//#region src/likec4diagram/state/mediaPrintActor.d.ts
|
|
4
3
|
export type MediaPrintEvent = {
|
|
5
4
|
type: 'media.print.on';
|
|
6
5
|
} | {
|
|
7
6
|
type: 'media.print.off';
|
|
8
7
|
};
|
|
9
|
-
export interface MediaPrintActorLogic extends CallbackActorLogic<AnyEventObject, NonReducibleUnknown, MediaPrintEvent> {}
|
|
10
|
-
//#endregion
|
|
8
|
+
export interface MediaPrintActorLogic extends CallbackActorLogic<AnyEventObject, NonReducibleUnknown, MediaPrintEvent> {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { fromCallback } from "xstate";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/likec4diagram/state/mediaPrintActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Actor logic to listen for media print events.
|
|
7
7
|
*/
|
|
@@ -20,5 +20,4 @@ const mediaPrintActorLogic = fromCallback(({ sendBack }) => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
//#endregion
|
|
24
23
|
export { mediaPrintActorLogic };
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { isBoolean
|
|
2
|
+
import { isBoolean } from "remeda";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/likec4diagram/state/persistence.ts
|
|
5
5
|
const key = `likec4:diagram:toggledFeatures`;
|
|
6
|
+
/**
|
|
7
|
+
* Picks only togglable features with boolean values
|
|
8
|
+
* (ignores unknown keys, e.g. persisted by previous versions)
|
|
9
|
+
*/
|
|
10
|
+
function pickTogglable(value) {
|
|
11
|
+
if (typeof value !== "object" || value === null || !("enableReadOnly" in value)) return {};
|
|
12
|
+
return isBoolean(value.enableReadOnly) ? { enableReadOnly: value.enableReadOnly } : {};
|
|
13
|
+
}
|
|
6
14
|
const DiagramToggledFeaturesPersistence = {
|
|
7
15
|
read() {
|
|
8
16
|
try {
|
|
9
17
|
let fromStorage = sessionStorage.getItem(key);
|
|
10
|
-
if (fromStorage) return JSON.parse(fromStorage);
|
|
18
|
+
if (fromStorage) return pickTogglable(JSON.parse(fromStorage));
|
|
11
19
|
return null;
|
|
12
20
|
} catch (e) {
|
|
13
21
|
if (import.meta.env.MODE !== "test") console.error(`Error reading fromStorage ${key}:`, e);
|
|
@@ -15,10 +23,9 @@ const DiagramToggledFeaturesPersistence = {
|
|
|
15
23
|
}
|
|
16
24
|
},
|
|
17
25
|
write(toggledFeatures) {
|
|
18
|
-
sessionStorage.setItem(key, JSON.stringify(
|
|
26
|
+
sessionStorage.setItem(key, JSON.stringify(pickTogglable(toggledFeatures)));
|
|
19
27
|
return toggledFeatures;
|
|
20
28
|
}
|
|
21
29
|
};
|
|
22
30
|
|
|
23
|
-
//#endregion
|
|
24
31
|
export { DiagramToggledFeaturesPersistence };
|
|
@@ -3,10 +3,9 @@ import { BaseEditorActorRef } from "../../editor/actor/setup.mjs";
|
|
|
3
3
|
import { NavigationPanelActorRef } from "../../navigationpanel/actor.mjs";
|
|
4
4
|
import { OverlaysActorRef } from "../../overlays/overlaysActor.mjs";
|
|
5
5
|
import { SearchActorRef } from "../../search/searchActor.mjs";
|
|
6
|
-
import { Context, ElementViewDisplayVariant, EmittedEvents, Events } from "./machine.setup.mjs";
|
|
7
6
|
import { DiagramMachineRef, DiagramMachineSnapshot } from "./machine.mjs";
|
|
7
|
+
import { Context, ElementViewDisplayVariant, EmittedEvents, Events } from "./machine.setup.mjs";
|
|
8
8
|
import { ActorSystem } from "xstate";
|
|
9
|
-
//#region src/likec4diagram/state/types.d.ts
|
|
10
9
|
export type System = ActorSystem<{
|
|
11
10
|
actors: {
|
|
12
11
|
diagram: DiagramMachineRef;
|
|
@@ -19,5 +18,4 @@ export type System = ActorSystem<{
|
|
|
19
18
|
export interface DiagramActorRef extends DiagramMachineRef {
|
|
20
19
|
system: System;
|
|
21
20
|
}
|
|
22
|
-
//#endregion
|
|
23
21
|
export type { DiagramMachineSnapshot as DiagramActorSnapshot, Context as DiagramContext, EmittedEvents as DiagramEmittedEvents, Events as DiagramEvents };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { pickViewBounds } from "../../utils/view-bounds.mjs";
|
|
3
|
+
import { getEdgePosition, getNodesBounds, getViewportForBounds } from "@xyflow/system";
|
|
3
4
|
import { BBox } from "@likec4/core/geometry";
|
|
4
5
|
import { invariant, nonNullable, nonexhaustive } from "@likec4/core/utils";
|
|
5
|
-
import { getEdgePosition, getNodesBounds, getViewportForBounds } from "@xyflow/system";
|
|
6
6
|
import { isDynamicView } from "@likec4/core/types";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/likec4diagram/state/utils.ts
|
|
9
9
|
const findNodeByModelFqn = (xynodes, elementFqn) => {
|
|
10
10
|
const node = xynodes.find((n) => "modelFqn" in n.data && n.data["modelFqn"] === elementFqn);
|
|
11
11
|
return node ? node : null;
|
|
@@ -165,5 +165,4 @@ function calcViewportForBounds(context, bounds) {
|
|
|
165
165
|
return getViewportForBounds(bounds, width, height, context.minZoom, maxZoom, context.fitViewPadding);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
//#endregion
|
|
169
168
|
export { activeSequenceBounds, calcViewportForBounds, findCorrespondingNode, findDiagramEdge, findDiagramNode, findNodeByModelFqn, focusedBounds, getEdgeBounds, nodeRef, typedSystem, viewBounds };
|
|
@@ -4,7 +4,6 @@ import { FunctionComponent } from "react";
|
|
|
4
4
|
import { XYPosition } from "@xyflow/system";
|
|
5
5
|
import { AutoLayoutDirection, BBox, DeploymentFqn, DiagramEdge, DiagramNode, DiagramNodeDriftReason, DynamicViewFlow, ExclusiveUnion, Fqn, IconUrl, MarkdownOrString, NonEmptyReadonlyArray, StepPath, ViewId } from "@likec4/core/types";
|
|
6
6
|
import { Simplify } from "type-fest";
|
|
7
|
-
//#region src/likec4diagram/types.d.ts
|
|
8
7
|
export declare namespace Types {
|
|
9
8
|
type LeafNodeData = Simplify<BaseNodeData & NonOptional<Pick<DiagramNode, 'id' | 'title' | 'technology' | 'description' | 'notes' | 'color' | 'shape' | 'width' | 'level' | 'height' | 'style' | 'tags' | 'x' | 'y'>> & {
|
|
10
9
|
/**
|
|
@@ -198,5 +197,4 @@ export declare namespace Types {
|
|
|
198
197
|
type NodeRenderers = { [T in NodeType]: NodeRenderer<T>; };
|
|
199
198
|
type EdgeRenderer<T extends EdgeType> = FunctionComponent<EdgeProps<T>>;
|
|
200
199
|
type EdgeRenderers = { [T in EdgeType]: EdgeRenderer<T>; };
|
|
201
|
-
}
|
|
202
|
-
//#endregion
|
|
200
|
+
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { selectXYStore, useXYStore } from "../../hooks/useXYFlow.mjs";
|
|
3
|
-
import { roundDpr } from "../../utils/roundDpr.mjs";
|
|
4
|
-
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
5
2
|
import { ElementData } from "../../base-primitives/element/ElementData.mjs";
|
|
6
3
|
import { ElementShape as ElementShape$1 } from "../../base-primitives/element/ElementShape.mjs";
|
|
4
|
+
import { useDiagram } from "../../hooks/safeContext.mjs";
|
|
5
|
+
import { selectXYStore, useXYStore } from "../../hooks/useXYFlow.mjs";
|
|
6
|
+
import { roundDpr } from "../../utils/roundDpr.mjs";
|
|
7
7
|
import { css, cx } from "@likec4/styles/css";
|
|
8
8
|
import { useCallback } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useNodesData } from "@xyflow/react";
|
|
11
|
-
import { shallowEqual } from "fast-equals";
|
|
12
11
|
import { clamp, omit, pipe } from "remeda";
|
|
13
12
|
import { ensureSizes } from "@likec4/core";
|
|
14
|
-
import { ifilter, imap, invariant as invariant$1, toArray } from "@likec4/core/utils";
|
|
15
13
|
import { getNodeDimensions } from "@xyflow/system";
|
|
14
|
+
import { ifilter, imap, invariant as invariant$1, toArray } from "@likec4/core/utils";
|
|
16
15
|
import { AnimatePresence, LayoutGroup } from "motion/react";
|
|
17
16
|
import * as m$1 from "motion/react-m";
|
|
18
17
|
import { elementNode } from "@likec4/styles/recipes";
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
// src/likec4diagram/ui/FloatingSequenceActors.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Returns actor nodes from the current XY node list.
|
|
23
22
|
* Only re-runs when xynodes reference changes.
|
|
@@ -154,5 +153,4 @@ function SequenceActor({ id, top }) {
|
|
|
154
153
|
});
|
|
155
154
|
}
|
|
156
155
|
|
|
157
|
-
//#endregion
|
|
158
156
|
export { FloatingSequenceActors };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "@likec4/styles/css";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/likec4diagram/ui/notation/NotationPanel.css.ts
|
|
4
4
|
const container = css({
|
|
5
5
|
position: "absolute",
|
|
6
6
|
bottom: "0",
|
|
@@ -65,5 +65,4 @@ const shapeBadge = css({
|
|
|
65
65
|
["--badge-color"]: "var(--likec4-palette-hiContrast)"
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
//#endregion
|
|
69
68
|
export { card, container, elementNotation, icon, shapeBadge, tabPanel };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconArrowDownRight from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconHelpCircle from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
4
|
-
import {
|
|
2
|
+
import IconArrowDownRight from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs";
|
|
3
|
+
import IconHelpCircle from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs";
|
|
4
|
+
import { ElementShape } from "../../../base-primitives/element/ElementShape.mjs";
|
|
5
5
|
import { selectDiagramContext, useDiagram, useDiagramSelector } from "../../../hooks/safeContext.mjs";
|
|
6
6
|
import { useMantinePortalProps } from "../../../hooks/useMantinePortalProps.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { useXYStore } from "../../../hooks/useXYFlow.mjs";
|
|
8
8
|
import { card, container, elementNotation, icon, shapeBadge, tabPanel } from "./NotationPanel.css.mjs";
|
|
9
9
|
import { cx } from "@likec4/styles/css";
|
|
10
10
|
import { memo, useState } from "react";
|
|
@@ -15,9 +15,9 @@ import { ActionIcon, Badge, Box, Card, Group, Paper, ScrollAreaAutosize, Stack,
|
|
|
15
15
|
import { AnimatePresence, m } from "motion/react";
|
|
16
16
|
import { useLocalStorage } from "@mantine/hooks";
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// src/likec4diagram/ui/notation/NotationPanel.tsx
|
|
19
19
|
const ElementNotation = ({ value }) => {
|
|
20
|
-
const { title, color
|
|
20
|
+
const { title, color, shape } = value;
|
|
21
21
|
const [onlyKind, setOnlyKind] = useState(null);
|
|
22
22
|
const diagram = useDiagram();
|
|
23
23
|
const w = 300;
|
|
@@ -186,5 +186,4 @@ const NotationPanel = memo(() => {
|
|
|
186
186
|
}, id)] });
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
//#endregion
|
|
190
189
|
export { NotationPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconChevronRight from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconChevronRight from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs";
|
|
3
3
|
import { useDiagram } from "../../../hooks/safeContext.mjs";
|
|
4
4
|
import { flowPresentation } from "./presentation.mjs";
|
|
5
5
|
import { collectTrail, firstStepOf } from "./tree.mjs";
|
|
@@ -7,7 +7,7 @@ import { Fragment } from "react";
|
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { HStack, styled } from "@likec4/styles/jsx";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/likec4diagram/ui/sequence-outline/ActiveTrail.tsx
|
|
11
11
|
/**
|
|
12
12
|
* Sticky "you are here" trail: the fragments the active step is nested inside.
|
|
13
13
|
* Each segment jumps the walkthrough to the first step of that fragment.
|
|
@@ -79,5 +79,4 @@ const ActiveTrail = ({ ancestors, tree }) => {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
//#endregion
|
|
83
82
|
export { ActiveTrail };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { flowPresentation } from "./presentation.mjs";
|
|
3
2
|
import { recessed } from "./depth-of-field.mjs";
|
|
3
|
+
import { flowPresentation } from "./presentation.mjs";
|
|
4
4
|
import { css, cva } from "@likec4/styles/css";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { m } from "motion/react";
|
|
7
|
-
import {
|
|
7
|
+
import { styled } from "@likec4/styles/jsx";
|
|
8
8
|
import { hstack } from "@likec4/styles/patterns";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/likec4diagram/ui/sequence-outline/FlowRow.tsx
|
|
11
11
|
/** Small pill tag for the sub-flow operator (`loop`, `par`, `try`, …). */
|
|
12
12
|
const flowTagBase = cva({
|
|
13
13
|
base: {
|
|
@@ -68,5 +68,4 @@ const FlowRow = ({ node, recession, isCollapsed }) => {
|
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
//#endregion
|
|
72
71
|
export { FlowRow, FlowTag };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconPlayerSkipBackFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconPlayerSkipForwardFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconPlayerSkipBackFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs";
|
|
3
|
+
import IconPlayerSkipForwardFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs";
|
|
4
4
|
import { useDiagram } from "../../../hooks/safeContext.mjs";
|
|
5
5
|
import { ActiveTrail } from "./ActiveTrail.mjs";
|
|
6
6
|
import { recessionOf, shadedPanelBg } from "./depth-of-field.mjs";
|
|
7
|
-
import { useSelectContext } from "./StoreProvider.mjs";
|
|
8
7
|
import { OutlineNodes } from "./OutlineNodes.mjs";
|
|
8
|
+
import { useSelectContext } from "./StoreProvider.mjs";
|
|
9
9
|
import { css } from "@likec4/styles/css";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { pick } from "remeda";
|
|
12
|
-
import { flowAncestors } from "@likec4/core";
|
|
13
12
|
import { Button, ScrollArea } from "@mantine/core";
|
|
14
|
-
import { LayoutGroup } from "motion/react";
|
|
15
13
|
import { HStack, styled } from "@likec4/styles/jsx";
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
// src/likec4diagram/ui/sequence-outline/OutlineBody.tsx
|
|
18
16
|
/** Prev/next controls, the "you are here" trail, and the scrollable outline itself. */
|
|
19
17
|
const OutlineBody = () => {
|
|
20
18
|
const { activeStep, next, prev, tree, ancestors } = useSelectContext((s) => ({
|
|
@@ -105,5 +103,4 @@ const OutlineBody = () => {
|
|
|
105
103
|
] });
|
|
106
104
|
};
|
|
107
105
|
|
|
108
|
-
//#endregion
|
|
109
106
|
export { OutlineBody };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconDirectionSignFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconDirectionSignFilled from "../../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs";
|
|
3
|
+
import { MarkdownWithRefs } from "../../../components/markdown/MarkdownWithRefs.mjs";
|
|
3
4
|
import { useDiagram } from "../../../hooks/safeContext.mjs";
|
|
4
|
-
import { Markdown } from "../../../base-primitives/Markdown.mjs";
|
|
5
5
|
import { useSelectContext } from "./StoreProvider.mjs";
|
|
6
6
|
import { css } from "@likec4/styles/css";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -9,7 +9,7 @@ import { RichText } from "@likec4/core";
|
|
|
9
9
|
import { CloseButton, Spoiler } from "@mantine/core";
|
|
10
10
|
import { Box as Box$1, HStack, Txt, VStack, styled } from "@likec4/styles/jsx";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/likec4diagram/ui/sequence-outline/OutlineHeader.tsx
|
|
13
13
|
/** View title, walkthrough progress and the (optional) view description. */
|
|
14
14
|
const OutlineHeader = () => {
|
|
15
15
|
const diagram = useDiagram();
|
|
@@ -129,7 +129,7 @@ const OutlineHeader = () => {
|
|
|
129
129
|
children: "hide"
|
|
130
130
|
}),
|
|
131
131
|
maxHeight: 16,
|
|
132
|
-
children: /* @__PURE__ */ jsx(
|
|
132
|
+
children: /* @__PURE__ */ jsx(MarkdownWithRefs, {
|
|
133
133
|
value: RichText.from(description),
|
|
134
134
|
className: css({ color: "text.dimmed" }),
|
|
135
135
|
fontSize: "xxs"
|
|
@@ -138,5 +138,4 @@ const OutlineHeader = () => {
|
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
|
|
141
|
-
//#endregion
|
|
142
141
|
export { OutlineHeader };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { SEQ_FRAME_LAYOUT_ID, SEQ_TRANSITION } from "./motion.mjs";
|
|
3
|
-
import { flowPresentation } from "./presentation.mjs";
|
|
4
|
-
import { isOutlineFlowNode } from "./types.mjs";
|
|
5
2
|
import { activeFrame, activeFrameBorder, levelBand, nestedBand, recessionOf } from "./depth-of-field.mjs";
|
|
6
3
|
import { FlowRow } from "./FlowRow.mjs";
|
|
4
|
+
import { SEQ_FRAME_LAYOUT_ID, SEQ_TRANSITION } from "./motion.mjs";
|
|
5
|
+
import { flowPresentation } from "./presentation.mjs";
|
|
7
6
|
import { StepRow } from "./StepRow.mjs";
|
|
8
7
|
import { useIsCollapsed, useSelectContext } from "./StoreProvider.mjs";
|
|
8
|
+
import { isOutlineFlowNode } from "./types.mjs";
|
|
9
9
|
import { css, cx } from "@likec4/styles/css";
|
|
10
10
|
import { Activity } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { m } from "motion/react";
|
|
13
|
-
import { Box } from "@likec4/styles/jsx";
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
// src/likec4diagram/ui/sequence-outline/OutlineNodes.tsx
|
|
16
15
|
function renderNodes({ nodes, depth, activeStep, activeDepth }) {
|
|
17
16
|
const recession = recessionOf(depth, activeDepth);
|
|
18
17
|
return nodes.map((node) => {
|
|
@@ -81,5 +80,4 @@ function OutlineFlowNode({ node, depth, activeStep, activeDepth }) {
|
|
|
81
80
|
});
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
//#endregion
|
|
85
83
|
export { OutlineNodes };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { PortalToContainer } from "../../../components/PortalToContainer.mjs";
|
|
3
3
|
import { SEQ_TRANSITION } from "./motion.mjs";
|
|
4
|
-
import { StoreProvider, useOutlinePanelWidth } from "./StoreProvider.mjs";
|
|
5
4
|
import { OutlineBody } from "./OutlineBody.mjs";
|
|
6
5
|
import { OutlineHeader } from "./OutlineHeader.mjs";
|
|
6
|
+
import { StoreProvider, useOutlinePanelWidth } from "./StoreProvider.mjs";
|
|
7
7
|
import { memo } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { AnimatePresence, LayoutGroup, MotionConfig, m } from "motion/react";
|
|
10
10
|
import { vstack } from "@likec4/styles/patterns";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Side panel shown while a dynamic view walkthrough is running: the view title and progress,
|
|
15
15
|
* the trail of fragments the current step sits in, and the outline of every step.
|
|
@@ -62,5 +62,4 @@ const SequenceOutlinePanelShell = ({ children }) => {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
//#endregion
|
|
66
65
|
export { SequenceOutlinePanel };
|