@likec4/diagram 1.48.0 → 1.50.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 +7 -9
- package/adhoc-editor/package.json +4 -0
- package/dist/LikeC4Diagram.d.ts +2 -1
- package/dist/LikeC4Diagram.js +77 -79
- package/dist/LikeC4Diagram.props.d.ts +9 -1
- package/dist/LikeC4ModelProvider.d.ts +4 -4
- package/dist/LikeC4ModelProvider.js +2 -2
- package/dist/LikeC4ProjectsOverview.d.ts +3 -2
- package/dist/LikeC4ProjectsProvider.d.ts +2 -1
- package/dist/LikeC4ProjectsProvider.js +4 -4
- package/dist/LikeC4Styles.d.ts +2 -1
- package/dist/LikeC4View.d.ts +14 -1
- package/dist/LikeC4View.js +31 -18
- package/dist/ReactLikeC4.d.ts +2 -1
- package/dist/ReactLikeC4.js +3 -1
- package/dist/StaticLikeC4Diagram.d.ts +2 -1
- package/dist/StaticLikeC4Diagram.js +1 -0
- package/dist/_virtual/store-1b2fbb72.cjs.js +3 -0
- package/dist/_virtual/xstate-store-react.cjs.js +5 -0
- package/dist/_virtual/xstate-store-react.cjs2.js +3 -0
- package/dist/adhoc-editor/EditorPanel.d.ts +1 -0
- package/dist/adhoc-editor/EditorPanel.js +105 -0
- package/dist/adhoc-editor/ElementsTree.d.ts +2 -0
- package/dist/adhoc-editor/ElementsTree.js +142 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +1 -1
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +46 -43
- package/dist/adhoc-editor/components/Tree.d.ts +48 -0
- package/dist/adhoc-editor/components/Tree.js +296 -0
- package/dist/adhoc-editor/hooks.d.ts +3 -3
- package/dist/adhoc-editor/hooks.js +5 -23
- package/dist/adhoc-editor/index.d.ts +1 -1
- package/dist/adhoc-editor/index.js +1 -0
- package/dist/adhoc-editor/{ActorProvider.d.ts → state/ActorProvider.d.ts} +1 -3
- package/dist/adhoc-editor/{ActorProvider.js → state/ActorProvider.js} +10 -11
- package/dist/adhoc-editor/state/actor.d.ts +13 -0
- package/dist/adhoc-editor/{actor.editor.d.ts → state/actor.editor.d.ts} +6 -4
- package/dist/adhoc-editor/state/actor.editor.js +205 -0
- package/dist/adhoc-editor/{actor.js → state/actor.js} +2 -6
- package/dist/adhoc-editor/{actor.layouter.d.ts → state/actor.layouter.d.ts} +7 -4
- package/dist/adhoc-editor/{actor.layouter.js → state/actor.layouter.js} +17 -13
- package/dist/adhoc-editor/{actor.types.d.ts → state/actor.types.d.ts} +12 -6
- package/dist/adhoc-editor/{actor.types.js → state/actor.types.js} +8 -1
- package/dist/adhoc-editor/state/panel.d.ts +95 -0
- package/dist/adhoc-editor/state/panel.js +139 -0
- package/dist/adhoc-editor/state/utils.d.ts +17 -0
- package/dist/adhoc-editor/state/utils.js +32 -0
- package/dist/adhoc-editor/useElementsTree.d.ts +18 -0
- package/dist/adhoc-editor/useElementsTree.js +130 -0
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +1 -1
- package/dist/base/const.d.ts +1 -0
- package/dist/base-primitives/compound/CompoundActionButton.js +26 -12
- package/dist/base-primitives/compound/CompoundDetailsButton.js +22 -9
- package/dist/base-primitives/compound/CompoundNodeContainer.js +5 -4
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/edge/EdgeLabel.js +3 -4
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +2 -1
- package/dist/base-primitives/edge/EdgeLabelContainer.js +12 -19
- package/dist/base-primitives/edge/EdgeMarkers.js +3 -3
- package/dist/base-primitives/element/ElementActionButtons.js +35 -10
- package/dist/base-primitives/element/ElementDetailsButton.js +47 -18
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +3 -3
- package/dist/base-primitives/element/ElementNodeContainer.js +23 -10
- package/dist/base-primitives/element/ElementShape.d.ts +4 -4
- package/dist/base-primitives/element/ElementShape.js +71 -8
- package/dist/components/ErrorFallback.js +1 -1
- package/dist/components/Link.js +3 -3
- package/dist/components/Logo.js +1 -1
- package/dist/components/NavigationPanel.js +2 -4
- package/dist/components/PortalToContainer.js +3 -4
- package/dist/components/RootContainer.js +9 -16
- package/dist/components/ViewNotFound.d.ts +3 -3
- package/dist/components/ViewNotFound.js +30 -26
- package/dist/context/CurrentViewModelProvider.d.ts +2 -0
- package/dist/context/CurrentViewModelProvider.js +12 -0
- package/dist/context/DefaultMantineProvider.d.ts +1 -1
- package/dist/context/DefaultMantineProvider.js +10 -1
- package/dist/context/DiagramEventHandlers.d.ts +5 -5
- package/dist/context/DiagramEventHandlers.js +10 -4
- package/dist/context/DiagramFeatures.d.ts +8 -7
- package/dist/context/DiagramFeatures.js +5 -3
- package/dist/context/FramerMotionConfig.d.ts +1 -3
- package/dist/context/IconRenderer.d.ts +5 -4
- package/dist/context/IconRenderer.js +51 -24
- package/dist/context/LikeC4ModelContext.d.ts +10 -5
- package/dist/context/LikeC4ModelContext.js +11 -3
- package/dist/context/LikeC4ProjectsContext.d.ts +3 -2
- package/dist/context/LikeC4ProjectsContext.js +6 -2
- package/dist/context/RootContainerContext.d.ts +10 -3
- package/dist/context/RootContainerContext.js +8 -3
- package/dist/context/TagStylesContext.js +1 -1
- package/dist/custom/index.js +16 -15
- package/dist/editor/LikeC4EditorProvider.js +1 -1
- package/dist/editor/applyChangesToManualLayout.js +7 -7
- package/dist/editor/editorActor.actions.js +20 -20
- package/dist/editor/editorActor.setup.js +1 -1
- package/dist/editor/editorActor.states.js +0 -9
- package/dist/editor/useEditorActorLogic.d.ts +1 -2
- package/dist/editor/useEditorActorLogic.js +8 -11
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/safeContext.d.ts +4 -5
- package/dist/hooks/useCallbackRef.js +7 -6
- package/dist/hooks/useCurrentView.js +5 -10
- package/dist/hooks/useCurrentViewModel.d.ts +2 -6
- package/dist/hooks/useCurrentViewModel.js +3 -7
- package/dist/hooks/useDiagram.d.ts +9 -1
- package/dist/hooks/useDiagram.js +8 -2
- package/dist/hooks/useDiagramCompareLayout.d.ts +5 -5
- package/dist/hooks/useLikeC4ElementsTree.d.ts +1 -1
- package/dist/hooks/useLikeC4ElementsTree.js +1 -1
- package/dist/hooks/useLikeC4Model.d.ts +6 -2
- package/dist/hooks/useLikeC4Model.js +7 -9
- package/dist/hooks/useLikeC4Project.d.ts +4 -6
- package/dist/hooks/useLikeC4Project.js +19 -31
- package/dist/hooks/useLikeC4Styles.js +3 -9
- package/dist/hooks/useMantinePortalProps.d.ts +1 -1
- package/dist/hooks/useMediaPrint.d.ts +0 -2
- package/dist/hooks/useOverlaysActor.js +4 -4
- package/dist/hooks/useSearchActor.js +4 -4
- package/dist/index.d.ts +1 -3
- package/dist/index.js +2 -2
- package/dist/likec4diagram/DiagramXYFlow.d.ts +2 -1
- package/dist/likec4diagram/DiagramXYFlow.js +5 -7
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +22 -24
- package/dist/likec4diagram/custom/edges/edges.css.js +2 -1
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +40 -55
- package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +1 -2
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +3 -20
- package/dist/likec4diagram/custom/nodes/NodeNotes.d.ts +6 -0
- package/dist/likec4diagram/custom/nodes/NodeNotes.js +286 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +4 -2
- package/dist/likec4diagram/custom/nodes/nodes.js +5 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +12 -8
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +1 -1
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +8 -28
- package/dist/likec4diagram/state/DiagramActorProvider.js +30 -56
- package/dist/likec4diagram/state/diagram-api.d.ts +11 -0
- package/dist/likec4diagram/state/diagram-api.js +15 -0
- package/dist/likec4diagram/state/machine.actions.d.ts +27 -0
- package/dist/likec4diagram/state/machine.actions.js +78 -21
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +1 -0
- package/dist/likec4diagram/state/machine.actions.layout.js +38 -3
- package/dist/likec4diagram/state/machine.js +4 -1
- package/dist/likec4diagram/state/machine.setup.d.ts +19 -2
- package/dist/likec4diagram/state/machine.state.navigating.js +1 -1
- package/dist/likec4diagram/state/machine.state.ready.d.ts +61 -1
- package/dist/likec4diagram/state/machine.state.ready.js +11 -3
- package/dist/likec4diagram/state/utils.d.ts +2 -1
- package/dist/likec4diagram/state/utils.js +1 -1
- package/dist/likec4diagram/types.d.ts +2 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.d.ts +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.js +6 -29
- package/dist/likec4diagram/useLayoutConstraints.d.ts +12 -12
- package/dist/likec4diagram/useLayoutConstraints.js +125 -86
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +2 -0
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +7 -2
- package/dist/navigationpanel/NavigationPanel.js +2 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +13 -13
- package/dist/navigationpanel/_common.js +2 -2
- package/dist/navigationpanel/actor.js +1 -1
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.js +155 -29
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
- package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +1 -0
- package/dist/navigationpanel/comparepanel/DriftsSummary.js +264 -0
- package/dist/navigationpanel/controls/DetailsControls.js +4 -4
- package/dist/navigationpanel/controls/LayoutWarning.js +1 -1
- package/dist/navigationpanel/controls/LogoButton.js +1 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
- package/dist/navigationpanel/controls/OpenSource.js +1 -1
- package/dist/navigationpanel/controls/SearchControl.js +1 -1
- package/dist/navigationpanel/controls/ToggleReadonly.js +3 -3
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
- package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +6 -6
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +16 -16
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +1 -1
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +14 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +2 -2
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +14 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +1 -1
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +14 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +2 -2
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +14 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.4 → @tabler_icons-react@3.36.1_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +1 -1
- package/dist/node_modules/.pnpm/@xstate_store@3.14.0_react@19.2.4/node_modules/@xstate/store/dist/store-1b2fbb72.cjs.js +742 -0
- package/dist/node_modules/.pnpm/@xstate_store@3.14.0_react@19.2.4/node_modules/@xstate/store/react/dist/xstate-store-react.cjs.js +175 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.js +11 -11
- package/dist/overlays/element-details/ElementDetailsCard.js +44 -45
- package/dist/overlays/element-details/MetadataValue.js +7 -7
- package/dist/overlays/element-details/TabPanelDeployments.js +4 -4
- package/dist/overlays/element-details/TabPanelRelationships.css.js +5 -5
- package/dist/overlays/element-details/TabPanelRelationships.js +4 -5
- package/dist/overlays/element-details/TabPanelStructure.css.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +1 -1
- package/dist/overlays/element-details/actorContext.d.ts +1 -1
- package/dist/overlays/overlaysActor.js +1 -1
- package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
- package/dist/overlays/relationship-details/SelectEdge.css.js +4 -4
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +6 -6
- package/dist/overlays/relationships-browser/SelectElement.css.js +2 -2
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/actor.js +1 -1
- package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/custom/EmptyNode.js +1 -1
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +1 -1
- package/dist/projects-overview/ProjectsOverview.js +2 -2
- package/dist/projects-overview/ProjectsOverviewXY.d.ts +1 -5
- package/dist/projects-overview/ProjectsOverviewXY.js +1 -1
- package/dist/projects-overview/actor.d.ts +1 -1
- package/dist/projects-overview/context.d.ts +2 -2
- package/dist/projects-overview/context.js +2 -1
- package/dist/projects-overview/custom/nodeTypes.js +1 -1
- package/dist/search/Search.d.ts +2 -1
- package/dist/search/Search.js +108 -87
- package/dist/search/components/ElementsColumn.css.js +3 -3
- package/dist/search/components/ElementsColumn.js +93 -59
- package/dist/search/components/PickView.js +8 -4
- package/dist/search/components/SearchByTags.js +1 -1
- package/dist/search/components/SearchInput.js +2 -2
- package/dist/search/components/ViewsColum.d.ts +2 -1
- package/dist/search/components/ViewsColum.js +39 -35
- package/dist/search/components/ViewsColumn.css.js +1 -1
- package/dist/search/components/_shared.css.js +11 -11
- package/dist/search/components/utils.js +1 -4
- package/dist/search/hooks.js +4 -1
- package/dist/search/searchActor.d.ts +12 -2
- package/dist/search/searchActor.js +60 -4
- package/dist/shadowroot/ShadowRoot.d.ts +5 -2
- package/dist/shadowroot/ShadowRoot.js +7 -5
- package/dist/shadowroot/styles.css.js +3 -2
- package/dist/styles.css2.js +1 -1
- package/dist/utils/view-bounds.d.ts +3 -2
- package/dist/utils/view-bounds.js +1 -1
- package/dist/utils/xyflow.d.ts +10 -5
- package/dist/utils/xyflow.js +24 -22
- package/package.json +33 -32
- package/panda.buildinfo.json +176 -87
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/bundle/index.js +0 -52554
- package/bundle/package.json +0 -4
- package/dist/adhoc-editor/EditorNavigationPanel.d.ts +0 -1
- package/dist/adhoc-editor/EditorNavigationPanel.js +0 -32
- package/dist/adhoc-editor/SelectElementOverlay.d.ts +0 -1
- package/dist/adhoc-editor/SelectElementOverlay.js +0 -124
- package/dist/adhoc-editor/actor.d.ts +0 -131
- package/dist/adhoc-editor/actor.editor.js +0 -96
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.js +0 -104
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js +0 -14
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -14
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -14
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -14
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -14
|
@@ -1,41 +1,167 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { css } from '@likec4/styles/css';
|
|
3
|
+
import { HStack } from '@likec4/styles/jsx';
|
|
4
|
+
import { hstack, vstack } from '@likec4/styles/patterns';
|
|
5
|
+
import { Divider, Button } from '@mantine/core';
|
|
6
|
+
import { useIsMounted } from '@react-hookz/web';
|
|
3
7
|
import { AnimatePresence } from 'motion/react';
|
|
4
8
|
import * as m from 'motion/react-m';
|
|
5
|
-
import { memo } from 'react';
|
|
9
|
+
import { memo, useState } from 'react';
|
|
10
|
+
import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js';
|
|
11
|
+
import { Tooltip } from '../_common.js';
|
|
6
12
|
import { ComparePanelControls } from './ComparePanelControls.js';
|
|
13
|
+
import { DriftsSummary } from './DriftsSummary.js';
|
|
14
|
+
import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
|
|
7
15
|
import { useEnabledFeatures } from '../../context/DiagramFeatures.js';
|
|
16
|
+
import { useCallbackRef } from '../../hooks/useCallbackRef.js';
|
|
8
17
|
|
|
18
|
+
const variants = {
|
|
19
|
+
initial: {
|
|
20
|
+
opacity: 0,
|
|
21
|
+
translateX: -20
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
opacity: 1,
|
|
25
|
+
translateX: 0
|
|
26
|
+
},
|
|
27
|
+
exit: {
|
|
28
|
+
opacity: 0,
|
|
29
|
+
translateX: -20
|
|
30
|
+
}
|
|
31
|
+
};
|
|
9
32
|
const ComparePanel = memo(() => {
|
|
33
|
+
const portalProps = useMantinePortalProps();
|
|
34
|
+
const isMounted = useIsMounted();
|
|
10
35
|
const { enableCompareWithLatest } = useEnabledFeatures();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
const [ctx, ops] = useDiagramCompareLayout();
|
|
37
|
+
const [isProcessing, setIsProcessing] = useState(false);
|
|
38
|
+
const resetProcessing = () => {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
if (isMounted()) {
|
|
41
|
+
setIsProcessing(false);
|
|
42
|
+
}
|
|
43
|
+
}, 500);
|
|
44
|
+
};
|
|
45
|
+
const onApplyLatest = useCallbackRef((e) => {
|
|
46
|
+
if (!ctx.canApplyLatest || ctx.layout === "auto") {
|
|
47
|
+
window.alert(
|
|
48
|
+
"Cannot apply changes from latest version when using auto layout. Please switch to manual layout first."
|
|
49
|
+
);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
e.stopPropagation();
|
|
53
|
+
setIsProcessing(true);
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
ops.applyLatestToManual();
|
|
56
|
+
resetProcessing();
|
|
57
|
+
}, 200);
|
|
58
|
+
});
|
|
59
|
+
const onResetManualLayout = useCallbackRef((e) => {
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
setIsProcessing(true);
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
ops.resetManualLayout();
|
|
64
|
+
resetProcessing();
|
|
65
|
+
}, 200);
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: enableCompareWithLatest && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
m.div,
|
|
70
|
+
{
|
|
71
|
+
layout: "size",
|
|
72
|
+
layoutDependency: ctx.drifts || ctx.layout,
|
|
73
|
+
className: hstack({
|
|
74
|
+
gap: "2",
|
|
75
|
+
layerStyle: "likec4.panel",
|
|
76
|
+
position: "relative",
|
|
77
|
+
px: "2",
|
|
78
|
+
py: "1",
|
|
79
|
+
pl: "3",
|
|
80
|
+
pointerEvents: "all"
|
|
81
|
+
}),
|
|
82
|
+
variants,
|
|
83
|
+
initial: "initial",
|
|
84
|
+
animate: "animate",
|
|
85
|
+
exit: "exit",
|
|
86
|
+
children: /* @__PURE__ */ jsx(ComparePanelControls, {})
|
|
31
87
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
88
|
+
"ComparePanel"
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsxs(
|
|
91
|
+
m.div,
|
|
92
|
+
{
|
|
93
|
+
layout: "size",
|
|
94
|
+
layoutDependency: ctx.drifts || ctx.layout,
|
|
95
|
+
variants,
|
|
96
|
+
initial: "initial",
|
|
97
|
+
animate: "animate",
|
|
98
|
+
exit: "exit",
|
|
99
|
+
className: vstack({
|
|
100
|
+
gap: "4",
|
|
101
|
+
layerStyle: "likec4.panel",
|
|
102
|
+
position: "relative",
|
|
103
|
+
p: "4",
|
|
104
|
+
pointerEvents: "all",
|
|
105
|
+
height: "auto",
|
|
106
|
+
overflow: "hidden",
|
|
107
|
+
maxHeight: "calc(100cqh - 180px)",
|
|
108
|
+
"@/md": {
|
|
109
|
+
minWidth: "200px"
|
|
110
|
+
}
|
|
111
|
+
}),
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ jsx(DriftsSummary, {}),
|
|
114
|
+
ctx.canApplyLatest && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(m.div, { layout: "position", className: css({ flex: "0" }), children: [
|
|
115
|
+
/* @__PURE__ */ jsx(Divider, { orientation: "horizontal", size: "xs", mb: "xs" }),
|
|
116
|
+
/* @__PURE__ */ jsxs(HStack, { children: [
|
|
117
|
+
/* @__PURE__ */ jsx(
|
|
118
|
+
Tooltip,
|
|
119
|
+
{
|
|
120
|
+
openDelay: 100,
|
|
121
|
+
disabled: ctx.layout !== "auto",
|
|
122
|
+
label: "Switch to manual layout to apply changes.",
|
|
123
|
+
...portalProps,
|
|
124
|
+
children: /* @__PURE__ */ jsx(
|
|
125
|
+
Button,
|
|
126
|
+
{
|
|
127
|
+
loading: isProcessing,
|
|
128
|
+
size: "xs",
|
|
129
|
+
color: "orange",
|
|
130
|
+
variant: "light",
|
|
131
|
+
onClick: onApplyLatest,
|
|
132
|
+
disabled: ctx.layout === "auto",
|
|
133
|
+
children: "Apply changes"
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
!isProcessing && /* @__PURE__ */ jsx(
|
|
139
|
+
Tooltip,
|
|
140
|
+
{
|
|
141
|
+
openDelay: 100,
|
|
142
|
+
disabled: ctx.layout !== "manual",
|
|
143
|
+
label: "Reset manual layout",
|
|
144
|
+
...portalProps,
|
|
145
|
+
children: /* @__PURE__ */ jsx(
|
|
146
|
+
Button,
|
|
147
|
+
{
|
|
148
|
+
hidden: isProcessing,
|
|
149
|
+
size: "xs",
|
|
150
|
+
color: "orange",
|
|
151
|
+
variant: "subtle",
|
|
152
|
+
onClick: onResetManualLayout,
|
|
153
|
+
children: "Reset"
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] })
|
|
159
|
+
] }) })
|
|
160
|
+
]
|
|
35
161
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
) });
|
|
162
|
+
"ListOfDrifts"
|
|
163
|
+
)
|
|
164
|
+
] }) });
|
|
39
165
|
});
|
|
40
166
|
ComparePanel.displayName = "ComparePanel";
|
|
41
167
|
|
|
@@ -5,7 +5,7 @@ import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js'
|
|
|
5
5
|
import { PanelActionIcon } from '../_common.js';
|
|
6
6
|
import { CompareActionsMenu } from './CompareActionsMenu.js';
|
|
7
7
|
import { LayoutTypeSwitcher } from './LayoutTypeSwitcher.js';
|
|
8
|
-
import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
+
import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
|
|
9
9
|
|
|
10
10
|
const Divider = Divider$1.withProps({
|
|
11
11
|
mx: 2,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DriftsSummary(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { deepEqual } from 'fast-equals';
|
|
3
|
+
import { styled, Txt } from '@likec4/styles/jsx';
|
|
4
|
+
import { vstack } from '@likec4/styles/patterns';
|
|
5
|
+
import { useDebouncedCallback } from '@mantine/hooks';
|
|
6
|
+
import { AnimatePresence, m, stagger } from 'motion/react';
|
|
7
|
+
import { hasAtLeast, map, pipe, filter } from 'remeda';
|
|
8
|
+
import { useDiagramSnapshot, selectDiagramActorContext } from '../../hooks/useDiagram.js';
|
|
9
|
+
import { useDiagram } from '../../hooks/safeContext.js';
|
|
10
|
+
import { useCallbackRef } from '../../hooks/useCallbackRef.js';
|
|
11
|
+
|
|
12
|
+
const hasDrifts = (item) => {
|
|
13
|
+
return !!item.drifts && hasAtLeast(item.drifts, 1);
|
|
14
|
+
};
|
|
15
|
+
const selectDrifts = selectDiagramActorContext((ctx) => ({
|
|
16
|
+
view: ctx.view.drifts ?? [],
|
|
17
|
+
nodes: pipe(
|
|
18
|
+
ctx.view.nodes,
|
|
19
|
+
map((node) => ({
|
|
20
|
+
id: node.id,
|
|
21
|
+
name: node.title,
|
|
22
|
+
drifts: node.drifts
|
|
23
|
+
})),
|
|
24
|
+
filter(hasDrifts)
|
|
25
|
+
),
|
|
26
|
+
edges: pipe(
|
|
27
|
+
ctx.view.edges,
|
|
28
|
+
map((edge) => ({
|
|
29
|
+
edgeId: edge.id,
|
|
30
|
+
drifts: edge.drifts
|
|
31
|
+
})),
|
|
32
|
+
filter(hasDrifts)
|
|
33
|
+
)
|
|
34
|
+
}));
|
|
35
|
+
const variants = {
|
|
36
|
+
initial: {
|
|
37
|
+
opacity: 0,
|
|
38
|
+
translateY: -8
|
|
39
|
+
},
|
|
40
|
+
animate: {
|
|
41
|
+
opacity: 1,
|
|
42
|
+
translateY: 0,
|
|
43
|
+
transition: {
|
|
44
|
+
delayChildren: stagger(0.1)
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
exit: {
|
|
48
|
+
opacity: 0,
|
|
49
|
+
translateY: -8,
|
|
50
|
+
transition: {
|
|
51
|
+
delayChildren: stagger(0.2, { startDelay: 0.5, from: "last" })
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function DriftsSummary() {
|
|
56
|
+
const selected = useDiagramSnapshot(selectDrifts, deepEqual);
|
|
57
|
+
const diagram = useDiagram();
|
|
58
|
+
const onMouseLeaveDebounced = useDebouncedCallback(
|
|
59
|
+
(e) => {
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
diagram.unhighlightAll();
|
|
62
|
+
},
|
|
63
|
+
150
|
|
64
|
+
);
|
|
65
|
+
const onMouseEnter = useCallbackRef((e) => {
|
|
66
|
+
const target = e.currentTarget.getAttribute("data-drift-type");
|
|
67
|
+
const id = e.currentTarget.getAttribute("data-drift-id");
|
|
68
|
+
if (target === "node" && id) {
|
|
69
|
+
e.stopPropagation();
|
|
70
|
+
onMouseLeaveDebounced.cancel();
|
|
71
|
+
diagram.highlightNode(id);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (target === "edge" && id) {
|
|
75
|
+
e.stopPropagation();
|
|
76
|
+
onMouseLeaveDebounced.cancel();
|
|
77
|
+
diagram.highlightEdge(id);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const onClick = useCallbackRef((e) => {
|
|
82
|
+
const target = e.currentTarget.getAttribute("data-drift-type");
|
|
83
|
+
const id = e.currentTarget.getAttribute("data-drift-id");
|
|
84
|
+
if (target === "node" && id) {
|
|
85
|
+
e.stopPropagation();
|
|
86
|
+
diagram.centerViewportOnNode(id);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (target === "edge" && id) {
|
|
90
|
+
e.stopPropagation();
|
|
91
|
+
diagram.centerViewportOnEdge(id);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const handlers = {
|
|
96
|
+
onMouseEnter,
|
|
97
|
+
onMouseLeave: onMouseLeaveDebounced,
|
|
98
|
+
onClick
|
|
99
|
+
};
|
|
100
|
+
const { view, nodes, edges } = selected;
|
|
101
|
+
if (view.length === 0 && nodes.length === 0 && edges.length === 0) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { propagate: true, mode: "wait", children: /* @__PURE__ */ jsxs(
|
|
105
|
+
m.div,
|
|
106
|
+
{
|
|
107
|
+
layout: "size",
|
|
108
|
+
variants,
|
|
109
|
+
initial: "initial",
|
|
110
|
+
animate: "animate",
|
|
111
|
+
exit: "exit",
|
|
112
|
+
layoutDependency: selected,
|
|
113
|
+
className: vstack({
|
|
114
|
+
mx: "[calc({spacing.2} * -1)]",
|
|
115
|
+
px: "2",
|
|
116
|
+
flex: "1",
|
|
117
|
+
height: "100%",
|
|
118
|
+
overflow: "scroll",
|
|
119
|
+
gap: "4"
|
|
120
|
+
}),
|
|
121
|
+
children: [
|
|
122
|
+
hasAtLeast(view, 1) && /* @__PURE__ */ jsx(ViewDrifts, { drifts: view }),
|
|
123
|
+
nodes.length > 0 && /* @__PURE__ */ jsxs(m.div, { layout: "size", children: [
|
|
124
|
+
/* @__PURE__ */ jsx(SectionHeader, { children: "Elements:" }),
|
|
125
|
+
/* @__PURE__ */ jsx(m.div, { layout: "size", className: vstack({ mt: "2", gap: "2" }), children: map(
|
|
126
|
+
nodes,
|
|
127
|
+
(node) => /* @__PURE__ */ jsx(NodeDrifts, { ...node, ...handlers }, node.id)
|
|
128
|
+
) })
|
|
129
|
+
] }, `nodes-drifts`),
|
|
130
|
+
edges.length > 0 && /* @__PURE__ */ jsxs(m.div, { layout: "size", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(SectionHeader, { children: "Relationships:" }),
|
|
132
|
+
/* @__PURE__ */ jsx(m.div, { layout: "size", className: vstack({ mt: "2", gap: "2" }), children: map(edges, (edge) => /* @__PURE__ */ jsx(EdgeDrifts, { ...edge, ...handlers }, edge.edgeId)) })
|
|
133
|
+
] }, `edges-drifts`)
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
`drifts-summary`
|
|
137
|
+
) });
|
|
138
|
+
}
|
|
139
|
+
function ViewDrifts({ drifts }) {
|
|
140
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
141
|
+
m.div,
|
|
142
|
+
{
|
|
143
|
+
layout: "position",
|
|
144
|
+
className: vstack({
|
|
145
|
+
gap: "2"
|
|
146
|
+
}),
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx(SectionHeader, { children: "View drifts (summary):" }),
|
|
149
|
+
/* @__PURE__ */ jsx(DriftsGroup, { children: map(drifts, (drift) => /* @__PURE__ */ jsx(DriftLabel, { children: drift }, drift)) }, `view-drifts`)
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
`view-drifts-header`
|
|
153
|
+
) });
|
|
154
|
+
}
|
|
155
|
+
function NodeDrifts({ id, name, drifts, ...handlers }) {
|
|
156
|
+
return /* @__PURE__ */ jsxs(
|
|
157
|
+
DriftsGroup,
|
|
158
|
+
{
|
|
159
|
+
"data-drift-type": "node",
|
|
160
|
+
"data-drift-id": id,
|
|
161
|
+
...handlers,
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
Txt,
|
|
165
|
+
{
|
|
166
|
+
truncate: true,
|
|
167
|
+
css: {
|
|
168
|
+
maxWidth: {
|
|
169
|
+
base: 160,
|
|
170
|
+
"@/sm": 180,
|
|
171
|
+
"@/md": 250
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
color: "likec4.compare.manual.outline",
|
|
175
|
+
fontSize: "xs",
|
|
176
|
+
lineHeight: "sm",
|
|
177
|
+
fontWeight: "medium",
|
|
178
|
+
children: name
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
map(drifts, (drift) => /* @__PURE__ */ jsx(DriftLabel, { children: drift }, id + drift))
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
`node-drifts-${id}`
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
function EdgeDrifts({ edgeId, drifts, ...handlers }) {
|
|
188
|
+
return /* @__PURE__ */ jsx(
|
|
189
|
+
DriftsGroup,
|
|
190
|
+
{
|
|
191
|
+
"data-drift-type": "edge",
|
|
192
|
+
"data-drift-id": edgeId,
|
|
193
|
+
...handlers,
|
|
194
|
+
children: map(drifts, (drift) => /* @__PURE__ */ jsx(
|
|
195
|
+
DriftLabel,
|
|
196
|
+
{
|
|
197
|
+
children: drift
|
|
198
|
+
},
|
|
199
|
+
edgeId + drift
|
|
200
|
+
))
|
|
201
|
+
},
|
|
202
|
+
`edge-drifts-${edgeId}`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
const DriftsGroup = styled(m.div, {
|
|
206
|
+
base: vstack.raw({
|
|
207
|
+
gap: "1",
|
|
208
|
+
px: "3",
|
|
209
|
+
py: "2",
|
|
210
|
+
cursor: "default",
|
|
211
|
+
rounded: "sm",
|
|
212
|
+
backgroundColor: "likec4.compare.manual/10",
|
|
213
|
+
border: "1px solid {colors.likec4.compare.manual.outline/20}",
|
|
214
|
+
_hover: {
|
|
215
|
+
backgroundColor: "likec4.compare.manual/20",
|
|
216
|
+
borderColor: "likec4.compare.manual.outline/25"
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
}, {
|
|
220
|
+
defaultProps: {
|
|
221
|
+
className: "group",
|
|
222
|
+
variants,
|
|
223
|
+
layout: "size",
|
|
224
|
+
initial: "initial",
|
|
225
|
+
animate: "animate",
|
|
226
|
+
exit: "exit"
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
const SectionHeader = styled(m.div, {
|
|
230
|
+
base: {
|
|
231
|
+
userSelect: "none",
|
|
232
|
+
fontWeight: "medium",
|
|
233
|
+
textStyle: "dimmed.xs",
|
|
234
|
+
pl: "2"
|
|
235
|
+
}
|
|
236
|
+
}, {
|
|
237
|
+
defaultProps: {
|
|
238
|
+
variants,
|
|
239
|
+
layout: "position",
|
|
240
|
+
initial: "initial",
|
|
241
|
+
animate: "animate",
|
|
242
|
+
exit: "exit"
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
const DriftLabel = styled(m.div, {
|
|
246
|
+
base: {
|
|
247
|
+
userSelect: "none",
|
|
248
|
+
textStyle: "xs",
|
|
249
|
+
color: {
|
|
250
|
+
base: "text",
|
|
251
|
+
_groupHover: "text.bright"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
defaultProps: {
|
|
256
|
+
variants,
|
|
257
|
+
layout: "position",
|
|
258
|
+
initial: "initial",
|
|
259
|
+
animate: "animate",
|
|
260
|
+
exit: "exit"
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export { DriftsSummary };
|
|
@@ -12,8 +12,8 @@ import { Link } from '../../components/Link.js';
|
|
|
12
12
|
import { useOnDiagramEvent } from '../../hooks/useDiagram.js';
|
|
13
13
|
import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
|
|
14
14
|
import { useNavigationActorSnapshot } from '../hooks.js';
|
|
15
|
-
import IconId from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
16
|
-
import IconLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
15
|
+
import IconId from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js';
|
|
16
|
+
import IconLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js';
|
|
17
17
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
18
18
|
import { ElementTag } from '../../base-primitives/element/ElementTags.js';
|
|
19
19
|
import { Markdown } from '../../base-primitives/Markdown.js';
|
|
@@ -111,7 +111,7 @@ const ViewDetailsCardTrigger = ({ linksCount, onOpen }) => /* @__PURE__ */ jsx(P
|
|
|
111
111
|
const SectionHeader = styled("div", {
|
|
112
112
|
base: {
|
|
113
113
|
fontSize: "xs",
|
|
114
|
-
color: "
|
|
114
|
+
color: "text.dimmed",
|
|
115
115
|
fontWeight: "medium",
|
|
116
116
|
userSelect: "none",
|
|
117
117
|
mb: "xxs"
|
|
@@ -241,7 +241,7 @@ const ViewBadge = ({
|
|
|
241
241
|
};
|
|
242
242
|
const ViewBadgeLabel = styled("div", {
|
|
243
243
|
base: {
|
|
244
|
-
color: "
|
|
244
|
+
color: "text.dimmed",
|
|
245
245
|
fontWeight: "medium",
|
|
246
246
|
fontSize: "xxs",
|
|
247
247
|
userSelect: "none"
|
|
@@ -8,7 +8,7 @@ import * as m from 'motion/react-m';
|
|
|
8
8
|
import { memo, Fragment as Fragment$1 } from 'react';
|
|
9
9
|
import { useDiagramCompareLayout } from '../../hooks/useDiagramCompareLayout.js';
|
|
10
10
|
import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
|
|
11
|
-
import IconAlertTriangle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
11
|
+
import IconAlertTriangle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js';
|
|
12
12
|
|
|
13
13
|
const LayoutWarning = memo(() => {
|
|
14
14
|
const [ctx, { toggleCompare }] = useDiagramCompareLayout();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { css, cx } from '@likec4/styles/css';
|
|
3
3
|
import { hstack } from '@likec4/styles/patterns';
|
|
4
4
|
import { UnstyledButton } from '@mantine/core';
|
|
5
5
|
import * as m from 'motion/react-m';
|
|
@@ -4,8 +4,8 @@ import * as m from 'motion/react-m';
|
|
|
4
4
|
import { useDiagramContext } from '../../hooks/useDiagram.js';
|
|
5
5
|
import { PanelActionIcon } from '../_common.js';
|
|
6
6
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
7
|
-
import IconArrowLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
-
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
7
|
+
import IconArrowLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js';
|
|
8
|
+
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
|
|
9
9
|
|
|
10
10
|
const NavigationButtons = () => {
|
|
11
11
|
const diagram = useDiagram();
|
|
@@ -3,7 +3,7 @@ import { useDiagramEventHandlers } from '../../context/DiagramEventHandlers.js';
|
|
|
3
3
|
import { useEnabledFeatures } from '../../context/DiagramFeatures.js';
|
|
4
4
|
import { useCurrentViewId } from '../../hooks/useCurrentView.js';
|
|
5
5
|
import { Tooltip, PanelActionIcon } from '../_common.js';
|
|
6
|
-
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
6
|
+
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
7
7
|
|
|
8
8
|
const OpenSource = () => {
|
|
9
9
|
const viewId = useCurrentViewId();
|
|
@@ -9,7 +9,7 @@ import '@xstate/react';
|
|
|
9
9
|
import 'fast-equals';
|
|
10
10
|
import 'react';
|
|
11
11
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
12
|
-
import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
12
|
+
import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js';
|
|
13
13
|
|
|
14
14
|
function SearchControl() {
|
|
15
15
|
const diagram = useDiagram();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { css, cx } from '@likec4/styles/css';
|
|
3
3
|
import { hstack } from '@likec4/styles/patterns';
|
|
4
4
|
import { UnstyledButton } from '@mantine/core';
|
|
5
5
|
import { AnimatePresence } from 'motion/react';
|
|
@@ -8,8 +8,8 @@ import { isTruthy } from 'remeda';
|
|
|
8
8
|
import { useDiagramContext } from '../../hooks/useDiagram.js';
|
|
9
9
|
import { deriveToggledFeatures } from '../../likec4diagram/state/machine.setup.js';
|
|
10
10
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
11
|
-
import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
12
|
-
import IconLock from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
11
|
+
import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
|
|
12
|
+
import IconLock from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js';
|
|
13
13
|
|
|
14
14
|
const selector = (ctx) => {
|
|
15
15
|
const toggledFeatures = deriveToggledFeatures(ctx);
|
|
@@ -4,7 +4,7 @@ import { HStack, Box } from '@likec4/styles/jsx';
|
|
|
4
4
|
import { Menu, MenuTarget, Button, MenuDropdown, MenuItem } from '@mantine/core';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { useLikeC4ProjectsContext, useLikeC4ProjectId } from '../../hooks/useLikeC4Project.js';
|
|
7
|
-
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
7
|
+
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js';
|
|
8
8
|
|
|
9
9
|
const ProjectsMenu = memo((_) => {
|
|
10
10
|
const { projects, onProjectChange } = useLikeC4ProjectsContext();
|
|
@@ -5,7 +5,7 @@ import 'react';
|
|
|
5
5
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
6
6
|
import { PanelActionIcon } from '../_common.js';
|
|
7
7
|
import { Tooltip } from './_common.js';
|
|
8
|
-
import IconFocusCentered from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
+
import IconFocusCentered from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js';
|
|
9
9
|
|
|
10
10
|
const CenterCamera = () => {
|
|
11
11
|
const diagram = useDiagram();
|
|
@@ -8,7 +8,7 @@ import { PanelActionIcon } from '../_common.js';
|
|
|
8
8
|
import { Tooltip } from './_common.js';
|
|
9
9
|
import { autolayoutIndicator, autolayoutButton, spacingSliderBody, spacingSliderThumb } from './styles.js';
|
|
10
10
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
11
|
-
import IconLayoutDashboard from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
11
|
+
import IconLayoutDashboard from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js';
|
|
12
12
|
|
|
13
13
|
const selector = (state) => ({
|
|
14
14
|
viewId: state.view.id,
|
|
@@ -9,15 +9,15 @@ import { useDiagram } from '../../hooks/safeContext.js';
|
|
|
9
9
|
import { useMantinePortalProps } from '../../hooks/useMantinePortalProps.js';
|
|
10
10
|
import { PanelActionIcon } from '../_common.js';
|
|
11
11
|
import { Tooltip } from './_common.js';
|
|
12
|
-
import IconLayoutCollage from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
13
|
-
import IconLayoutBoardSplit from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
14
|
-
import IconLayoutAlignLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
15
|
-
import IconLayoutAlignCenter from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
16
|
-
import IconLayoutAlignRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
17
|
-
import IconLayoutAlignTop from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
18
|
-
import IconLayoutAlignMiddle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
19
|
-
import IconLayoutAlignBottom from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
20
|
-
import IconRouteOff from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
12
|
+
import IconLayoutCollage from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js';
|
|
13
|
+
import IconLayoutBoardSplit from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js';
|
|
14
|
+
import IconLayoutAlignLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js';
|
|
15
|
+
import IconLayoutAlignCenter from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js';
|
|
16
|
+
import IconLayoutAlignRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js';
|
|
17
|
+
import IconLayoutAlignTop from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js';
|
|
18
|
+
import IconLayoutAlignMiddle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js';
|
|
19
|
+
import IconLayoutAlignBottom from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js';
|
|
20
|
+
import IconRouteOff from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js';
|
|
21
21
|
|
|
22
22
|
const Action = ({
|
|
23
23
|
label,
|
|
@@ -5,7 +5,7 @@ import 'react';
|
|
|
5
5
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
6
6
|
import { PanelActionIcon } from '../_common.js';
|
|
7
7
|
import { Tooltip } from './_common.js';
|
|
8
|
-
import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
+
import IconLockOpen2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js';
|
|
9
9
|
|
|
10
10
|
const ToggleReadonly = () => {
|
|
11
11
|
const diagram = useDiagram();
|