@likec4/diagram 1.47.0 → 1.49.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/LICENSE +1 -1
- package/README.md +8 -10
- package/adhoc-editor/package.json +4 -0
- package/dist/LikeC4Diagram.d.ts +2 -1
- package/dist/LikeC4Diagram.js +85 -81
- package/dist/LikeC4Diagram.props.d.ts +10 -6
- 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 +10 -8
- package/dist/LikeC4Styles.d.ts +3 -6
- package/dist/LikeC4Styles.js +44 -43
- package/dist/LikeC4View.d.ts +22 -1
- package/dist/LikeC4View.js +40 -25
- package/dist/ReactLikeC4.d.ts +13 -2
- package/dist/ReactLikeC4.js +8 -4
- 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 +4 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +74 -0
- 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 +14 -0
- package/dist/adhoc-editor/hooks.js +29 -0
- package/dist/adhoc-editor/index.d.ts +2 -0
- package/dist/adhoc-editor/index.js +1 -0
- package/dist/adhoc-editor/state/ActorProvider.d.ts +5 -0
- package/dist/adhoc-editor/state/ActorProvider.js +40 -0
- package/dist/adhoc-editor/state/actor.d.ts +13 -0
- package/dist/adhoc-editor/state/actor.editor.d.ts +56 -0
- package/dist/adhoc-editor/state/actor.editor.js +205 -0
- package/dist/adhoc-editor/state/actor.js +16 -0
- package/dist/adhoc-editor/state/actor.layouter.d.ts +51 -0
- package/dist/adhoc-editor/state/actor.layouter.js +70 -0
- package/dist/adhoc-editor/state/actor.types.d.ts +63 -0
- package/dist/adhoc-editor/state/actor.types.js +29 -0
- 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 +6 -0
- package/dist/base/const.d.ts +2 -0
- package/dist/base/const.js +2 -1
- package/dist/base/updateEdges.js +26 -3
- package/dist/base/updateNodes.js +8 -5
- package/dist/base-primitives/Markdown.d.ts +1 -1
- package/dist/base-primitives/Markdown.js +1 -1
- package/dist/base-primitives/NodeHandles.d.ts +4 -2
- package/dist/base-primitives/NodeHandles.js +46 -19
- package/dist/base-primitives/compound/CompoundActionButton.js +28 -12
- package/dist/base-primitives/compound/CompoundDetailsButton.js +24 -9
- package/dist/base-primitives/compound/CompoundNodeContainer.js +11 -8
- package/dist/base-primitives/compound/CompoundTitle.js +1 -2
- package/dist/base-primitives/compound/actionbtns.css.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/edge/EdgeContainer.js +5 -2
- 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 +17 -20
- package/dist/base-primitives/element/ElementActionButtons.js +57 -59
- package/dist/base-primitives/element/ElementData.d.ts +7 -7
- package/dist/base-primitives/element/ElementData.js +61 -48
- package/dist/base-primitives/element/ElementDetailsButton.js +48 -18
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +5 -5
- package/dist/base-primitives/element/ElementNodeContainer.js +24 -10
- package/dist/base-primitives/element/ElementShape.d.ts +2 -2
- package/dist/base-primitives/element/ElementShape.js +70 -7
- package/dist/base-primitives/element/ElementTags.d.ts +6 -2
- package/dist/base-primitives/element/ElementTags.js +55 -32
- package/dist/base-primitives/index.d.ts +1 -1
- package/dist/base-primitives/memoEdge.js +1 -1
- package/dist/base-primitives/memoNode.js +1 -1
- package/dist/components/ErrorFallback.js +1 -1
- package/dist/components/Link.js +3 -3
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NavigationPanel.js +5 -26
- package/dist/components/PortalToContainer.js +3 -4
- package/dist/components/RootContainer.js +9 -19
- 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 +2 -0
- package/dist/context/DefaultMantineProvider.js +75 -0
- 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 +16 -13
- package/dist/context/EnsureMantine.d.ts +0 -3
- package/dist/context/EnsureMantine.js +3 -4
- package/dist/context/FramerMotionConfig.d.ts +1 -3
- package/dist/context/IconRenderer.d.ts +19 -4
- package/dist/context/IconRenderer.js +52 -25
- 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 +13 -5
- package/dist/custom/hooks.d.ts +2 -2
- package/dist/custom/index.d.ts +1 -1
- package/dist/custom/index.js +16 -15
- package/dist/editor/LikeC4EditorCallbacks.d.ts +18 -0
- package/dist/editor/LikeC4EditorCallbacks.js +5 -0
- package/dist/editor/LikeC4EditorProvider.d.ts +30 -18
- package/dist/editor/LikeC4EditorProvider.js +3 -3
- package/dist/editor/applyChangesToManualLayout.js +7 -6
- package/dist/editor/editorActor.actions.d.ts +25 -25
- package/dist/editor/editorActor.actions.js +22 -22
- package/dist/editor/editorActor.setup.d.ts +84 -0
- package/dist/editor/editorActor.setup.js +38 -0
- package/dist/editor/editorActor.states.d.ts +9 -0
- package/dist/editor/{editorActor.js → editorActor.states.js} +21 -72
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/useEditorActorLogic.d.ts +2 -565
- package/dist/editor/useEditorActorLogic.js +14 -21
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/safeContext.d.ts +4 -5
- package/dist/hooks/useCallbackRef.d.ts +6 -0
- package/dist/hooks/useCallbackRef.js +7 -6
- package/dist/hooks/useCurrentView.js +5 -10
- package/dist/hooks/useCurrentViewModel.d.ts +8 -2
- package/dist/hooks/useCurrentViewModel.js +3 -7
- package/dist/hooks/useDiagram.d.ts +9 -1
- package/dist/hooks/useDiagram.js +10 -4
- package/dist/hooks/useDiagramCompareLayout.d.ts +6 -6
- package/dist/hooks/useDiagramCompareLayout.js +1 -1
- package/dist/hooks/useLikeC4ElementsTree.d.ts +1 -1
- package/dist/hooks/useLikeC4ElementsTree.js +2 -2
- 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/hooks/useSetState.d.ts +6 -1
- package/dist/hooks/useSetState.js +7 -4
- package/dist/hooks/useXYFlow.d.ts +7 -1
- package/dist/hooks/useXYFlow.js +4 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -1
- package/dist/likec4diagram/DiagramUI.js +1 -3
- package/dist/likec4diagram/DiagramXYFlow.d.ts +2 -1
- package/dist/likec4diagram/DiagramXYFlow.js +29 -18
- package/dist/likec4diagram/convert-to-xyflow.d.ts +2 -1
- package/dist/likec4diagram/convert-to-xyflow.js +2 -6
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +34 -37
- package/dist/likec4diagram/custom/edges/edges.css.js +2 -1
- package/dist/likec4diagram/custom/edges/useControlPoints.js +3 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +3 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +52 -34
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +1 -2
- package/dist/likec4diagram/custom/nodes/ElementActions.js +7 -10
- 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 +10 -6
- package/dist/likec4diagram/custom/nodes/nodes.js +30 -8
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +5 -4
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +6 -1
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +14 -9
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +4 -4
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +3 -3
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +16 -36
- package/dist/likec4diagram/relationship-popover/components.d.ts +7 -0
- package/dist/likec4diagram/relationship-popover/components.js +39 -0
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +4 -3
- package/dist/likec4diagram/state/DiagramActorProvider.js +39 -66
- package/dist/likec4diagram/state/assign.d.ts +1 -1
- package/dist/likec4diagram/state/createViewChange.js +16 -4
- 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 +92 -0
- package/dist/likec4diagram/state/machine.actions.js +127 -58
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +23 -2
- package/dist/likec4diagram/state/machine.actions.layout.js +68 -15
- package/dist/likec4diagram/state/machine.d.ts +1 -1
- package/dist/likec4diagram/state/machine.js +35 -31
- package/dist/likec4diagram/state/machine.setup.d.ts +40 -7
- package/dist/likec4diagram/state/machine.setup.js +13 -4
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +32 -2
- package/dist/likec4diagram/state/machine.state.navigating.d.ts +1 -1
- package/dist/likec4diagram/state/machine.state.navigating.js +82 -50
- package/dist/likec4diagram/state/machine.state.ready.d.ts +565 -579
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +17 -148
- package/dist/likec4diagram/state/machine.state.ready.focused.js +6 -14
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +11 -96
- package/dist/likec4diagram/state/machine.state.ready.idle.js +7 -12
- package/dist/likec4diagram/state/machine.state.ready.js +89 -70
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +4 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.js +4 -3
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +145 -2
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +29 -21
- package/dist/likec4diagram/state/types.d.ts +1 -1
- package/dist/likec4diagram/state/utils.d.ts +14 -14
- package/dist/likec4diagram/state/utils.js +12 -4
- package/dist/likec4diagram/types.d.ts +11 -3
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +2 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
- package/dist/likec4diagram/useLayoutConstraints.d.ts +12 -12
- package/dist/likec4diagram/useLayoutConstraints.js +126 -84
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +11 -3
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +7 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.d.ts +7 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +15 -8
- package/dist/navigationpanel/NavigationPanel.js +4 -3
- package/dist/navigationpanel/NavigationPanelControls.js +4 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +13 -13
- package/dist/navigationpanel/_common.d.ts +1 -1
- package/dist/navigationpanel/_common.js +2 -3
- 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/comparepanel/LayoutTypeSwitcher.js +4 -5
- package/dist/navigationpanel/controls/DetailsControls.js +7 -7
- package/dist/navigationpanel/controls/LayoutWarning.js +2 -2
- 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.d.ts +1 -2
- package/dist/navigationpanel/controls/SearchControl.js +8 -12
- package/dist/navigationpanel/controls/ToggleReadonly.js +5 -6
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +12 -6
- 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/editorpanel/styles.js +4 -4
- package/dist/navigationpanel/styles.css.d.ts +1 -1
- package/dist/navigationpanel/styles.css.js +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +6 -6
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +77 -77
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +2 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.3 → @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.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +14 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @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.3 → @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.3 → @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 +15 -15
- package/dist/overlays/element-details/ElementDetailsCard.js +39 -40
- package/dist/overlays/element-details/MetadataValue.js +11 -12
- package/dist/overlays/element-details/TabPanelDeployments.js +8 -6
- package/dist/overlays/element-details/TabPanelRelationships.css.js +10 -30
- 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 +3 -2
- package/dist/overlays/overlaysActor.js +19 -1
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +0 -5
- package/dist/overlays/relationship-details/RelationshipDetails.js +4 -4
- package/dist/overlays/relationship-details/SelectEdge.css.js +6 -6
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/compute.js +1 -1
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationship-details/custom/nodeTypes.js +14 -1
- package/dist/overlays/relationship-details/layout.js +1 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +0 -5
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +116 -21
- 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 +21 -6
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +14 -1
- package/dist/overlays/relationships-browser/layout.d.ts +1 -1
- package/dist/overlays/relationships-browser/layout.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/actor.js +8 -31
- 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/projects-overview/panel/ProjectsOverviewPanel.js +1 -1
- package/dist/search/Search.d.ts +2 -4
- package/dist/search/Search.js +67 -44
- package/dist/search/components/ElementsColumn.css.js +6 -6
- package/dist/search/components/ElementsColumn.js +93 -60
- package/dist/search/components/PickView.d.ts +3 -1
- package/dist/search/components/PickView.js +12 -7
- 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.d.ts +1 -1
- package/dist/search/components/_shared.css.js +12 -12
- package/dist/search/components/utils.js +1 -4
- package/dist/search/hooks.d.ts +1 -6
- package/dist/search/hooks.js +15 -9
- 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 +25 -22
- package/dist/shadowroot/styles.css.d.ts +0 -2
- package/dist/shadowroot/styles.css.js +4 -36
- package/dist/styles-font.css2.js +1 -1
- package/dist/styles.css2.js +1 -1
- package/dist/utils/view-bounds.d.ts +3 -2
- package/dist/utils/view-bounds.js +10 -6
- package/dist/utils/xyflow.d.ts +27 -6
- package/dist/utils/xyflow.js +68 -23
- package/package.json +39 -37
- package/panda.buildinfo.json +226 -161
- package/styles-font.css +1 -1
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/bundle/index.js +0 -51974
- package/bundle/package.json +0 -4
- package/dist/editor/__tests__/fixture.d.ts +0 -205
- package/dist/editor/editorActor.d.ts +0 -653
- package/dist/likec4diagram/relationship-popover/styles.css.d.ts +0 -2
- package/dist/likec4diagram/relationship-popover/styles.css.js +0 -28
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/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.3/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.3/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.3/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -14
- package/dist/overlays/relationships-browser/custom/styles.css.d.ts +0 -1
- package/dist/overlays/relationships-browser/custom/styles.css.js +0 -14
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { VIEW_FOLDERS_SEPARATOR, normalizeViewPath } from '@likec4/core/model';
|
|
3
3
|
import { ifilter, ifirst, toArray, compareNaturalHierarchically, nonexhaustive } from '@likec4/core/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { css, cx } from '@likec4/styles/css';
|
|
5
5
|
import { HStack, VStack, Box } from '@likec4/styles/jsx';
|
|
6
6
|
import { vstack, hstack } from '@likec4/styles/patterns';
|
|
7
|
-
import { PopoverDropdown, ScrollAreaAutosize, Input,
|
|
7
|
+
import { PopoverDropdown, ScrollAreaAutosize, Input, Button, rem, Divider, createScopedKeydownHandler, Highlight, UnstyledButton, Breadcrumbs } from '@mantine/core';
|
|
8
8
|
import { useThrottledCallback, useUncontrolled } from '@mantine/hooks';
|
|
9
9
|
import { useMountEffect } from '@react-hookz/web';
|
|
10
10
|
import { useSelector } from '@xstate/react';
|
|
@@ -12,18 +12,18 @@ import { shallowEqual, deepEqual } from 'fast-equals';
|
|
|
12
12
|
import { memo, useDeferredValue, useState, useEffect, useRef } from 'react';
|
|
13
13
|
import { isEmpty, pipe, sort, isArray } from 'remeda';
|
|
14
14
|
import { NavigationLink } from '../components/NavigationLink.js';
|
|
15
|
+
import { useOnDiagramEvent } from '../hooks/useDiagram.js';
|
|
15
16
|
import { useLikeC4Model } from '../hooks/useLikeC4Model.js';
|
|
16
17
|
import { ProjectsMenu } from './dropdown/ProjectsMenu.js';
|
|
17
18
|
import { useNavigationActor, useNavigationActorSnapshot, useNavigationActorContext, useNavigationActorRef } from './hooks.js';
|
|
18
19
|
import { breadcrumbTitle } from './styles.css.js';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import IconFolderFilled from '../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js';
|
|
20
|
+
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';
|
|
21
|
+
import IconDirectionSignFilled from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js';
|
|
22
|
+
import IconStack2 from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js';
|
|
23
|
+
import IconZoomScan from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
24
|
+
import IconStarFilled from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js';
|
|
25
|
+
import IconFolderFilled from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js';
|
|
26
|
+
import IconChevronRight from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
|
|
27
27
|
|
|
28
28
|
const scopedKeydownHandler = createScopedKeydownHandler({
|
|
29
29
|
siblingSelector: "[data-likec4-focusable]",
|
|
@@ -240,7 +240,7 @@ function FoundedView({ view, highlight, ...props }) {
|
|
|
240
240
|
className: cx(
|
|
241
241
|
css({
|
|
242
242
|
_groupHover: {
|
|
243
|
-
color: "
|
|
243
|
+
color: "text.dimmed"
|
|
244
244
|
}
|
|
245
245
|
}),
|
|
246
246
|
inheritColor,
|
|
@@ -265,7 +265,7 @@ function FoundedView({ view, highlight, ...props }) {
|
|
|
265
265
|
className,
|
|
266
266
|
children: [
|
|
267
267
|
folderIcon,
|
|
268
|
-
/* @__PURE__ */ jsx(Breadcrumbs, { separator:
|
|
268
|
+
/* @__PURE__ */ jsx(Breadcrumbs, { separator: btnRightSection, separatorMargin: 3, children: breadcrumbs })
|
|
269
269
|
]
|
|
270
270
|
}
|
|
271
271
|
);
|
|
@@ -468,7 +468,7 @@ function SearchInput(props) {
|
|
|
468
468
|
}),
|
|
469
469
|
input: css({
|
|
470
470
|
_placeholder: {
|
|
471
|
-
color: "
|
|
471
|
+
color: "text.dimmed"
|
|
472
472
|
},
|
|
473
473
|
_focus: {
|
|
474
474
|
outline: "none"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NavigationPanelActionIconVariant } from '
|
|
1
|
+
import { NavigationPanelActionIconVariant } from '@likec4/styles/recipes';
|
|
2
2
|
import { ActionIconProps, TooltipProps, BreadcrumbsProps } from '@mantine/core';
|
|
3
3
|
import { HTMLMotionProps } from 'motion/react';
|
|
4
4
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cx, css } from '@likec4/styles/css';
|
|
3
3
|
import { navigationPanelActionIcon } from '@likec4/styles/recipes';
|
|
4
|
-
import {
|
|
4
|
+
import { Tooltip as Tooltip$1, ActionIcon, ThemeIcon, Breadcrumbs } from '@mantine/core';
|
|
5
5
|
import * as m from 'motion/react-m';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import IconChevronRight from '../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
7
|
+
import IconChevronRight from '../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
|
|
8
8
|
|
|
9
9
|
const Tooltip = Tooltip$1.withProps({
|
|
10
10
|
color: "dark",
|
|
@@ -19,7 +19,6 @@ const Tooltip = Tooltip$1.withProps({
|
|
|
19
19
|
const BreadcrumbsSeparator = () => /* @__PURE__ */ jsx(
|
|
20
20
|
ThemeIcon,
|
|
21
21
|
{
|
|
22
|
-
component: m.div,
|
|
23
22
|
variant: "transparent",
|
|
24
23
|
size: 16,
|
|
25
24
|
className: css({
|
|
@@ -3,9 +3,9 @@ import { cx } from '@likec4/styles/css';
|
|
|
3
3
|
import { Box } from '@likec4/styles/jsx';
|
|
4
4
|
import { hstack } from '@likec4/styles/patterns';
|
|
5
5
|
import { Menu, UnstyledButton, Tooltip } from '@mantine/core';
|
|
6
|
-
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
6
|
+
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';
|
|
7
7
|
import { stopPropagation } from '../../utils/xyflow.js';
|
|
8
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.1_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
9
9
|
|
|
10
10
|
function CompareActionsMenu({
|
|
11
11
|
disabled = false,
|
|
@@ -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 };
|
|
@@ -3,16 +3,15 @@ import { invariant } from '@likec4/core';
|
|
|
3
3
|
import { css } from '@likec4/styles/css';
|
|
4
4
|
import { SegmentedControl } from '@mantine/core';
|
|
5
5
|
import * as m from 'motion/react-m';
|
|
6
|
-
import { useMemo } from 'react';
|
|
7
6
|
|
|
7
|
+
const data = [
|
|
8
|
+
{ value: "manual", label: "Saved manual" },
|
|
9
|
+
{ value: "auto", label: "Latest auto" }
|
|
10
|
+
];
|
|
8
11
|
function LayoutTypeSwitcher({
|
|
9
12
|
value,
|
|
10
13
|
onChange
|
|
11
14
|
}) {
|
|
12
|
-
const data = useMemo(() => [
|
|
13
|
-
{ value: "manual", label: "Saved manual" },
|
|
14
|
-
{ value: "auto", label: "Latest auto" }
|
|
15
|
-
], []);
|
|
16
15
|
return /* @__PURE__ */ jsx(m.div, { layout: "position", children: /* @__PURE__ */ jsx(
|
|
17
16
|
SegmentedControl,
|
|
18
17
|
{
|
|
@@ -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';
|
|
@@ -97,7 +97,7 @@ const ViewDetailsCardTrigger = ({ linksCount, onOpen }) => /* @__PURE__ */ jsx(P
|
|
|
97
97
|
{
|
|
98
98
|
css: {
|
|
99
99
|
fontSize: "11px",
|
|
100
|
-
fontWeight:
|
|
100
|
+
fontWeight: "bold",
|
|
101
101
|
lineHeight: 1,
|
|
102
102
|
opacity: 0.8
|
|
103
103
|
},
|
|
@@ -111,8 +111,8 @@ const ViewDetailsCardTrigger = ({ linksCount, onOpen }) => /* @__PURE__ */ jsx(P
|
|
|
111
111
|
const SectionHeader = styled("div", {
|
|
112
112
|
base: {
|
|
113
113
|
fontSize: "xs",
|
|
114
|
-
color: "
|
|
115
|
-
fontWeight:
|
|
114
|
+
color: "text.dimmed",
|
|
115
|
+
fontWeight: "medium",
|
|
116
116
|
userSelect: "none",
|
|
117
117
|
mb: "xxs"
|
|
118
118
|
}
|
|
@@ -241,8 +241,8 @@ const ViewBadge = ({
|
|
|
241
241
|
};
|
|
242
242
|
const ViewBadgeLabel = styled("div", {
|
|
243
243
|
base: {
|
|
244
|
-
color: "
|
|
245
|
-
fontWeight:
|
|
244
|
+
color: "text.dimmed",
|
|
245
|
+
fontWeight: "medium",
|
|
246
246
|
fontSize: "xxs",
|
|
247
247
|
userSelect: "none"
|
|
248
248
|
}
|