@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
|
@@ -1,10 +1,8 @@
|
|
|
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.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs";
|
|
3
2
|
import { useEnabledFeatures } from "../context/DiagramFeatures.mjs";
|
|
4
|
-
import { selectDiagramContext, useDiagramSelector } from "../hooks/safeContext.mjs";
|
|
5
3
|
import { useOptionalCurrentViewModel } from "../context/LikeC4ModelContext.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { selectDiagramSnapshot, useDiagramSelector } from "../hooks/safeContext.mjs";
|
|
5
|
+
import { isComparingLayouts } from "../likec4diagram/state/machine.setup.mjs";
|
|
8
6
|
import { LayoutWarning } from "./controls/LayoutWarning.mjs";
|
|
9
7
|
import { LogoButton } from "./controls/LogoButton.mjs";
|
|
10
8
|
import { NavigationButtons } from "./controls/NavigationButtons.mjs";
|
|
@@ -12,138 +10,56 @@ import { OpenSource } from "./controls/OpenSource.mjs";
|
|
|
12
10
|
import { SearchControl } from "./controls/SearchControl.mjs";
|
|
13
11
|
import { ToggleReadonly } from "./controls/ToggleReadonly.mjs";
|
|
14
12
|
import { ViewDetailsButton } from "./controls/ViewDetailsButton.mjs";
|
|
13
|
+
import { NavigationBreadcrumbs } from "./controls/NavigationBreadcrumbs.mjs";
|
|
15
14
|
import { ElementViewControls } from "./ElementViewControls.mjs";
|
|
16
|
-
import {
|
|
15
|
+
import { useNavigationActor } from "./hooks.mjs";
|
|
17
16
|
import { DynamicViewControls } from "./walkthrough/DynamicViewControls.mjs";
|
|
18
|
-
import { css, cx } from "@likec4/styles/css";
|
|
19
17
|
import { memo } from "react";
|
|
20
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
21
19
|
import { isTruthy } from "remeda";
|
|
22
|
-
import { UnstyledButton } from "@mantine/core";
|
|
23
|
-
import { LayoutGroup } from "motion/react";
|
|
24
20
|
import { extractViewTitleFromPath } from "@likec4/core/model";
|
|
25
21
|
import { hstack } from "@likec4/styles/patterns";
|
|
26
|
-
import * as m
|
|
22
|
+
import * as m from "motion/react-m";
|
|
27
23
|
|
|
28
|
-
|
|
29
|
-
const selectViewData =
|
|
30
|
-
const
|
|
24
|
+
// src/navigationpanel/NavigationPanelControls.tsx
|
|
25
|
+
const selectViewData = selectDiagramSnapshot((snapshot) => {
|
|
26
|
+
const s = snapshot.context;
|
|
27
|
+
const isElementView = s.view._type === "element";
|
|
28
|
+
const isComparing = isComparingLayouts(snapshot);
|
|
29
|
+
const comparingLatest = isComparing && s.view._layout === "auto";
|
|
30
|
+
const isGraphForceSimulation = isElementView && s.elementViewVariant === "graph";
|
|
31
31
|
const noActiveWalkthrough = !isTruthy(s.activeWalkthrough);
|
|
32
32
|
const hasEditor = s.features.enableEditor;
|
|
33
33
|
const isReadOnly = s.toggledFeatures.enableReadOnly ?? false;
|
|
34
|
+
const isEditing = !isReadOnly;
|
|
34
35
|
return {
|
|
35
36
|
viewId: s.view.id,
|
|
37
|
+
linksCount: s.view.links?.length ?? 0,
|
|
36
38
|
viewTitle: (s.view.title && extractViewTitleFromPath(s.view.title)) ?? "Untitled View",
|
|
37
39
|
isDynamicView: s.view._type === "dynamic",
|
|
38
40
|
isElementView: s.view._type === "element",
|
|
41
|
+
elementViewVariant: s.elementViewVariant,
|
|
39
42
|
editBtnVisible: hasEditor && noActiveWalkthrough,
|
|
40
|
-
editBtnDisabled: comparingLatest,
|
|
41
|
-
isReadOnly
|
|
43
|
+
editBtnDisabled: comparingLatest || isGraphForceSimulation,
|
|
44
|
+
isReadOnly,
|
|
45
|
+
isEditing,
|
|
46
|
+
isComparing
|
|
42
47
|
};
|
|
43
48
|
});
|
|
44
|
-
const breadcrumbAnimation = {
|
|
45
|
-
initial: {
|
|
46
|
-
opacity: .5,
|
|
47
|
-
translateX: -10,
|
|
48
|
-
translateY: 0
|
|
49
|
-
},
|
|
50
|
-
animate: {
|
|
51
|
-
opacity: 1,
|
|
52
|
-
translateX: 0,
|
|
53
|
-
translateY: 0
|
|
54
|
-
},
|
|
55
|
-
exit: {
|
|
56
|
-
opacity: 0,
|
|
57
|
-
translateX: -10,
|
|
58
|
-
translateY: 0
|
|
59
|
-
},
|
|
60
|
-
whileTap: { translateY: 1 }
|
|
61
|
-
};
|
|
62
49
|
const NavigationPanelControls = memo(() => {
|
|
63
50
|
const actor = useNavigationActor();
|
|
64
|
-
const { enableNavigationButtons, enableDynamicViewWalkthrough,
|
|
51
|
+
const { enableNavigationButtons, enableDynamicViewWalkthrough, enableSearch, enableVscode } = useEnabledFeatures();
|
|
65
52
|
const viewModel = useOptionalCurrentViewModel();
|
|
66
|
-
const { editBtnDisabled, editBtnVisible, isReadOnly, viewTitle, isDynamicView, isElementView } = useDiagramSelector(selectViewData);
|
|
67
|
-
const
|
|
68
|
-
const folderBreadcrumbs = (!folder || folder.isRoot ? [] : folder.breadcrumbs.map((s) => ({
|
|
69
|
-
folderPath: s.path,
|
|
70
|
-
title: s.title
|
|
71
|
-
}))).flatMap(({ folderPath, title }, index, all) => [/* @__PURE__ */ jsx(UnstyledButton, {
|
|
72
|
-
component: m$1.button,
|
|
73
|
-
layout: "position",
|
|
74
|
-
className: cx(breadcrumbTitle({
|
|
75
|
-
dimmed: true,
|
|
76
|
-
truncate: true
|
|
77
|
-
}), css({
|
|
78
|
-
userSelect: "none",
|
|
79
|
-
maxWidth: "[150px]",
|
|
80
|
-
display: {
|
|
81
|
-
base: "none",
|
|
82
|
-
"@/md": "block"
|
|
83
|
-
}
|
|
84
|
-
})),
|
|
85
|
-
...breadcrumbAnimation,
|
|
86
|
-
title,
|
|
87
|
-
onMouseEnter: () => actor.send({
|
|
88
|
-
type: "breadcrumbs.mouseEnter.folder",
|
|
89
|
-
folderPath
|
|
90
|
-
}),
|
|
91
|
-
onMouseLeave: () => actor.send({
|
|
92
|
-
type: "breadcrumbs.mouseLeave.folder",
|
|
93
|
-
folderPath
|
|
94
|
-
}),
|
|
95
|
-
onClick: (e) => {
|
|
96
|
-
e.stopPropagation();
|
|
97
|
-
actor.send({
|
|
98
|
-
type: "breadcrumbs.click.folder",
|
|
99
|
-
folderPath
|
|
100
|
-
});
|
|
101
|
-
},
|
|
102
|
-
children: title
|
|
103
|
-
}, folderPath), /* @__PURE__ */ jsx(m$1.div, {
|
|
104
|
-
layout: true,
|
|
105
|
-
className: css({
|
|
106
|
-
display: {
|
|
107
|
-
base: "none",
|
|
108
|
-
"@/md": "block"
|
|
109
|
-
},
|
|
110
|
-
color: "text.non-essential"
|
|
111
|
-
}),
|
|
112
|
-
children: /* @__PURE__ */ jsx(IconChevronRight, { size: 16 })
|
|
113
|
-
}, folderPath + "-separator")]);
|
|
114
|
-
const viewBreadcrumb = /* @__PURE__ */ jsx(UnstyledButton, {
|
|
115
|
-
layoutId: "view-title",
|
|
116
|
-
component: m$1.button,
|
|
117
|
-
layout: "position",
|
|
118
|
-
...breadcrumbAnimation,
|
|
119
|
-
className: cx(breadcrumbTitle({ truncate: true }), css({ userSelect: "none" })),
|
|
120
|
-
title: viewTitle,
|
|
121
|
-
onMouseEnter: () => actor.send({ type: "breadcrumbs.mouseEnter.viewtitle" }),
|
|
122
|
-
onMouseLeave: () => actor.send({ type: "breadcrumbs.mouseLeave.viewtitle" }),
|
|
123
|
-
onClick: (e) => {
|
|
124
|
-
e.stopPropagation();
|
|
125
|
-
actor.send({ type: "breadcrumbs.click.viewtitle" });
|
|
126
|
-
},
|
|
127
|
-
children: viewTitle
|
|
128
|
-
});
|
|
53
|
+
const { editBtnDisabled, editBtnVisible, isReadOnly, isEditing, viewTitle, isDynamicView, isElementView, elementViewVariant, linksCount, isComparing } = useDiagramSelector(selectViewData);
|
|
54
|
+
const hasModel = !!viewModel;
|
|
129
55
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
130
56
|
/* @__PURE__ */ jsx(LogoButton, {}, "logo-button"),
|
|
131
57
|
enableNavigationButtons && /* @__PURE__ */ jsx(NavigationButtons, {}, "nav-buttons"),
|
|
132
|
-
/* @__PURE__ */ jsx(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
gap: "1",
|
|
136
|
-
flexShrink: 1,
|
|
137
|
-
flexGrow: 1,
|
|
138
|
-
flexWrap: "nowrap",
|
|
139
|
-
overflow: "hidden"
|
|
140
|
-
}),
|
|
141
|
-
children: /* @__PURE__ */ jsxs(LayoutGroup, {
|
|
142
|
-
id: "navigation-panel-breadcrumbs",
|
|
143
|
-
children: [folderBreadcrumbs, viewBreadcrumb]
|
|
144
|
-
})
|
|
58
|
+
/* @__PURE__ */ jsx(NavigationBreadcrumbs, {
|
|
59
|
+
viewTitle,
|
|
60
|
+
viewModel
|
|
145
61
|
}, "breadcrumbs"),
|
|
146
|
-
/* @__PURE__ */ jsxs(m
|
|
62
|
+
/* @__PURE__ */ jsxs(m.div, {
|
|
147
63
|
layout: "size",
|
|
148
64
|
className: hstack({
|
|
149
65
|
gap: "1.5",
|
|
@@ -152,15 +68,21 @@ const NavigationPanelControls = memo(() => {
|
|
|
152
68
|
flexGrow: 0
|
|
153
69
|
}),
|
|
154
70
|
children: [
|
|
155
|
-
/* @__PURE__ */ jsx(ViewDetailsButton, {
|
|
71
|
+
hasModel && /* @__PURE__ */ jsx(ViewDetailsButton, {
|
|
72
|
+
linksCount,
|
|
73
|
+
onOpen: () => actor.closeDropdown()
|
|
74
|
+
}, "details"),
|
|
156
75
|
enableVscode && /* @__PURE__ */ jsx(OpenSource, {}, "open-source"),
|
|
157
76
|
editBtnVisible && /* @__PURE__ */ jsx(ToggleReadonly, {
|
|
158
77
|
disabled: editBtnDisabled,
|
|
159
78
|
isReadOnly
|
|
160
79
|
}, "toggle-readonly"),
|
|
161
80
|
enableDynamicViewWalkthrough && isDynamicView && /* @__PURE__ */ jsx(DynamicViewControls, {}, "dynamic-view-controls"),
|
|
162
|
-
isElementView && /* @__PURE__ */ jsx(ElementViewControls, {
|
|
163
|
-
|
|
81
|
+
isElementView && /* @__PURE__ */ jsx(ElementViewControls, {
|
|
82
|
+
elementViewVariant,
|
|
83
|
+
disabled: isComparing || isEditing
|
|
84
|
+
}, "element-view-controls"),
|
|
85
|
+
enableSearch && !isComparing && /* @__PURE__ */ jsx(SearchControl, {}, "search-control"),
|
|
164
86
|
/* @__PURE__ */ jsx(LayoutWarning, {}, "outdated-manual-layout-warning")
|
|
165
87
|
]
|
|
166
88
|
}, "actions")
|
|
@@ -168,5 +90,4 @@ const NavigationPanelControls = memo(() => {
|
|
|
168
90
|
});
|
|
169
91
|
NavigationPanelControls.displayName = "NavigationPanelControls";
|
|
170
92
|
|
|
171
|
-
//#endregion
|
|
172
93
|
export { NavigationPanelControls };
|
|
@@ -1,17 +1,17 @@
|
|
|
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.
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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
|
+
import IconFolderFilled from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs";
|
|
4
|
+
import IconSearch from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs";
|
|
5
|
+
import { EmptyBox } from "../components/EmptyBox.mjs";
|
|
6
|
+
import { ErrorBoundary } from "../components/ErrorFallback.mjs";
|
|
7
|
+
import { NavigationLink } from "../components/NavigationLink.mjs";
|
|
8
|
+
import { viewIcon } from "../components/ViewIcon.mjs";
|
|
6
9
|
import { useOptionalCurrentViewModel } from "../context/LikeC4ModelContext.mjs";
|
|
10
|
+
import { useOnDiagramEvent } from "../hooks/useDiagram.mjs";
|
|
7
11
|
import { useLikeC4Model } from "../hooks/useLikeC4Model.mjs";
|
|
8
12
|
import { Tooltip as Tooltip$1 } from "./_common.mjs";
|
|
9
|
-
import { selectNavigationContext, useNavigationActor, useNavigationActorRef, useNavigationActorSelector } from "./hooks.mjs";
|
|
10
|
-
import { EmptyBox } from "../components/EmptyBox.mjs";
|
|
11
|
-
import { viewIcon } from "../components/ViewIcon.mjs";
|
|
12
|
-
import { breadcrumbTitle } from "./styles.css.mjs";
|
|
13
|
-
import { NavigationLink } from "../components/NavigationLink.mjs";
|
|
14
13
|
import { ProjectsMenu } from "./dropdown/ProjectsMenu.mjs";
|
|
14
|
+
import { selectNavigationContext, useNavigationActor, useNavigationActorRef, useNavigationActorSelector } from "./hooks.mjs";
|
|
15
15
|
import { css, cx } from "@likec4/styles/css";
|
|
16
16
|
import { memo, useDeferredValue, useEffect, useRef, useState } from "react";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -24,8 +24,9 @@ import { useThrottledCallback, useUncontrolled } from "@mantine/hooks";
|
|
|
24
24
|
import { Box as Box$1, HStack, VStack } from "@likec4/styles/jsx";
|
|
25
25
|
import { VIEW_FOLDERS_SEPARATOR, normalizeViewPath } from "@likec4/core/model";
|
|
26
26
|
import { hstack, vstack } from "@likec4/styles/patterns";
|
|
27
|
+
import { navigationPanel } from "@likec4/styles/recipes";
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
// src/navigationpanel/NavigationPanelDropdown.tsx
|
|
29
30
|
const scopedKeydownHandler = createScopedKeydownHandler({
|
|
30
31
|
siblingSelector: "[data-likec4-focusable]",
|
|
31
32
|
parentSelector: "[data-likec4-breadcrumbs-dropdown]",
|
|
@@ -53,7 +54,7 @@ const NavigationPanelDropdown = memo(() => {
|
|
|
53
54
|
value
|
|
54
55
|
});
|
|
55
56
|
}, 250);
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ jsx(PopoverDropdown, {
|
|
57
58
|
className: cx("nowheel", vstack({
|
|
58
59
|
layerStyle: "likec4.dropdown",
|
|
59
60
|
gap: "xs",
|
|
@@ -62,24 +63,28 @@ const NavigationPanelDropdown = memo(() => {
|
|
|
62
63
|
"data-likec4-breadcrumbs-dropdown": true,
|
|
63
64
|
onMouseLeave: () => actor.send({ type: "dropdown.mouseLeave" }),
|
|
64
65
|
onMouseEnter: () => actor.send({ type: "dropdown.mouseEnter" }),
|
|
65
|
-
children:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
children: /* @__PURE__ */ jsxs(ErrorBoundary, {
|
|
67
|
+
variant: "message",
|
|
68
|
+
onReset: () => actor.closeDropdown(),
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx(ProjectsMenu, {}),
|
|
71
|
+
/* @__PURE__ */ jsx(HStack, {
|
|
72
|
+
gap: "xs",
|
|
73
|
+
children: /* @__PURE__ */ jsx(SearchInput, {
|
|
74
|
+
defaultValue: searchQuery,
|
|
75
|
+
onChange: setSearchQuery
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ jsx(ScrollAreaAutosize, {
|
|
79
|
+
scrollbars: "x",
|
|
80
|
+
type: "auto",
|
|
81
|
+
offsetScrollbars: "present",
|
|
82
|
+
classNames: { root: css({ maxWidth: ["[calc(100vw - 50px)]", "[calc(100cqw - 50px)]"] }) },
|
|
83
|
+
styles: { viewport: { overscrollBehavior: "none" } },
|
|
84
|
+
children: hasSearchQuery ? /* @__PURE__ */ jsx(SearchResults, {}) : /* @__PURE__ */ jsx(FolderColumns, {})
|
|
72
85
|
})
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
scrollbars: "x",
|
|
76
|
-
type: "auto",
|
|
77
|
-
offsetScrollbars: "present",
|
|
78
|
-
classNames: { root: css({ maxWidth: ["[calc(100vw - 50px)]", "[calc(100cqw - 50px)]"] }) },
|
|
79
|
-
styles: { viewport: { overscrollBehavior: "none" } },
|
|
80
|
-
children: hasSearchQuery ? /* @__PURE__ */ jsx(SearchResults, {}) : /* @__PURE__ */ jsx(FolderColumns, {})
|
|
81
|
-
})
|
|
82
|
-
]
|
|
86
|
+
]
|
|
87
|
+
})
|
|
83
88
|
});
|
|
84
89
|
});
|
|
85
90
|
NavigationPanelDropdown.displayName = "NavigationPanelDropdown";
|
|
@@ -152,12 +157,13 @@ const inheritColor = css({ _groupFocus: {
|
|
|
152
157
|
color: "[inherit!]",
|
|
153
158
|
transition: "none"
|
|
154
159
|
} });
|
|
160
|
+
const breadcrumbTitle = navigationPanel().breadcrumb;
|
|
155
161
|
function FoundedView({ view, highlight, ...props }) {
|
|
156
162
|
const folder = view.folder;
|
|
157
163
|
const icon = viewIcon(view.id === "index" ? "index" : view._type);
|
|
158
164
|
const viewLabel = /* @__PURE__ */ jsx(Highlight, {
|
|
159
165
|
component: "div",
|
|
160
|
-
className: cx(inheritColor, breadcrumbTitle
|
|
166
|
+
className: cx(inheritColor, breadcrumbTitle, css({ "& > mark": {
|
|
161
167
|
backgroundColor: {
|
|
162
168
|
base: "highlight.body/80",
|
|
163
169
|
_groupFocus: "transparent"
|
|
@@ -176,10 +182,8 @@ function FoundedView({ view, highlight, ...props }) {
|
|
|
176
182
|
});
|
|
177
183
|
const breadcrumbs = folder.breadcrumbs.map((b) => /* @__PURE__ */ jsx(Highlight, {
|
|
178
184
|
component: "div",
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
truncate: true
|
|
182
|
-
})),
|
|
185
|
+
"data-dimmed": "true",
|
|
186
|
+
className: cx(css({ _groupHover: { color: "text.dimmed" } }), inheritColor, breadcrumbTitle),
|
|
183
187
|
maw: 170,
|
|
184
188
|
highlight: isArray(highlight) ? highlight : [],
|
|
185
189
|
children: b.title
|
|
@@ -371,5 +375,4 @@ function SearchInput(props) {
|
|
|
371
375
|
});
|
|
372
376
|
}
|
|
373
377
|
|
|
374
|
-
//#endregion
|
|
375
378
|
export { NavigationPanelDropdown };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { cx } from "@likec4/styles/css";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { ActionIcon,
|
|
5
|
+
import { ActionIcon, ThemeIcon, Tooltip } from "@mantine/core";
|
|
6
6
|
import * as m from "motion/react-m";
|
|
7
7
|
import { navigationPanelActionIcon } from "@likec4/styles/recipes";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/navigationpanel/_common.tsx
|
|
10
10
|
const Tooltip$1 = Tooltip.withProps({
|
|
11
11
|
color: "dark",
|
|
12
12
|
fz: "xs",
|
|
@@ -46,5 +46,4 @@ const PanelActionIcon = forwardRef(({ variant = "default", className, disabled =
|
|
|
46
46
|
return content;
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
export { PanelActionIcon, Tooltip$1 as Tooltip };
|
|
@@ -4,7 +4,7 @@ import { actor } from "./actor.setup.mjs";
|
|
|
4
4
|
import { isNonNullish } from "remeda";
|
|
5
5
|
import { assertEvent } from "xstate";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/navigationpanel/actor.actions.ts
|
|
8
8
|
const updateActivatedBy = () => actor.assign({ activatedBy: ({ context, event }) => {
|
|
9
9
|
switch (true) {
|
|
10
10
|
case event.type.includes("click"): return "click";
|
|
@@ -47,5 +47,4 @@ const emitNavigateTo = () => actor.enqueueActions(({ event, enqueue }) => {
|
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
//#endregion
|
|
51
50
|
export { emitNavigateTo, keepDropdownOpen, resetSearchQuery, resetSelectedFolder, updateActivatedBy, updateInputs, updateSearchQuery, updateSelectedFolder };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { Context, Events, Input, Tags } from "./actor.setup.mjs";
|
|
3
3
|
import { ActorRef, SnapshotFrom, StateMachine, StateValueFrom } from "xstate";
|
|
4
|
-
//#region src/navigationpanel/actor.d.ts
|
|
5
4
|
declare const _actorLogic: StateMachine<Context, Events, {}, never, never, {
|
|
6
5
|
type: "was opened on hover";
|
|
7
6
|
params: unknown;
|
|
@@ -33,5 +32,4 @@ declare const _actorLogic: StateMachine<Context, Events, {}, never, never, {
|
|
|
33
32
|
export interface NavigationPanelActorLogic extends StateMachine<Context, Events, any, any, any, any, any, StateValueFrom<typeof _actorLogic>, Tags, Input, any, any, any, any> {}
|
|
34
33
|
export type NavigationPanelActorSnapshot = SnapshotFrom<NavigationPanelActorLogic>;
|
|
35
34
|
export interface NavigationPanelActorRef extends ActorRef<NavigationPanelActorSnapshot, Events, never> {}
|
|
36
|
-
//#endregion
|
|
37
35
|
export type { Context as NavigationPanelActorContext, Events as NavigationPanelActorEvent, Input as NavigationPanelActorInput };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { Context, actor } from "./actor.setup.mjs";
|
|
3
2
|
import { emitNavigateTo, keepDropdownOpen, resetSearchQuery, resetSelectedFolder, updateActivatedBy, updateInputs, updateSearchQuery, updateSelectedFolder } from "./actor.actions.mjs";
|
|
3
|
+
import { Context, actor } from "./actor.setup.mjs";
|
|
4
4
|
import { raise } from "xstate";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/navigationpanel/actor.ts
|
|
7
7
|
const _actorLogic = actor.createMachine({
|
|
8
8
|
id: "navigationPanel",
|
|
9
9
|
context: ({ input }) => Context({ input }),
|
|
@@ -93,5 +93,4 @@ const _actorLogic = actor.createMachine({
|
|
|
93
93
|
});
|
|
94
94
|
const navigationPanelActorLogic = _actorLogic;
|
|
95
95
|
|
|
96
|
-
//#endregion
|
|
97
96
|
export { navigationPanelActorLogic };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { ViewId } from "@likec4/core/types";
|
|
3
|
-
//#region src/navigationpanel/actor.setup.d.ts
|
|
4
3
|
export interface Input {
|
|
5
4
|
viewId: ViewId;
|
|
6
5
|
viewFolder: string;
|
|
@@ -69,5 +68,4 @@ export interface Context {
|
|
|
69
68
|
export type Tags = 'active';
|
|
70
69
|
export declare function Context({ input }: {
|
|
71
70
|
input: Input;
|
|
72
|
-
}): Context;
|
|
73
|
-
//#endregion
|
|
71
|
+
}): Context;
|
|
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { isEmpty } from "remeda";
|
|
3
3
|
import { setup } from "xstate";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/navigationpanel/actor.setup.ts
|
|
6
6
|
function Context({ input }) {
|
|
7
7
|
return {
|
|
8
8
|
viewId: input.viewId,
|
|
@@ -30,5 +30,4 @@ const actor = setup({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Context, actor };
|