@likec4/diagram 1.47.0 → 1.48.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 +1 -1
- package/bundle/index.js +5489 -4909
- package/dist/LikeC4Diagram.js +18 -12
- package/dist/LikeC4Diagram.props.d.ts +1 -5
- package/dist/LikeC4ProjectsProvider.js +7 -5
- package/dist/LikeC4Styles.d.ts +2 -6
- package/dist/LikeC4Styles.js +44 -43
- package/dist/LikeC4View.d.ts +9 -1
- package/dist/LikeC4View.js +10 -8
- package/dist/ReactLikeC4.d.ts +12 -2
- package/dist/ReactLikeC4.js +5 -3
- package/dist/adhoc-editor/ActorProvider.d.ts +7 -0
- package/dist/adhoc-editor/ActorProvider.js +41 -0
- package/dist/adhoc-editor/EditorNavigationPanel.d.ts +1 -0
- package/dist/adhoc-editor/EditorNavigationPanel.js +32 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +4 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +71 -0
- package/dist/adhoc-editor/SelectElementOverlay.d.ts +1 -0
- package/dist/adhoc-editor/SelectElementOverlay.js +124 -0
- package/dist/adhoc-editor/actor.d.ts +131 -0
- package/dist/adhoc-editor/actor.editor.d.ts +54 -0
- package/dist/adhoc-editor/actor.editor.js +96 -0
- package/dist/adhoc-editor/actor.js +20 -0
- package/dist/adhoc-editor/actor.layouter.d.ts +48 -0
- package/dist/adhoc-editor/actor.layouter.js +66 -0
- package/dist/adhoc-editor/actor.types.d.ts +57 -0
- package/dist/adhoc-editor/actor.types.js +22 -0
- package/dist/adhoc-editor/hooks.d.ts +14 -0
- package/dist/adhoc-editor/hooks.js +47 -0
- package/dist/adhoc-editor/index.d.ts +2 -0
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +6 -0
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.js +104 -0
- package/dist/base/const.d.ts +1 -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 +3 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.js +3 -1
- package/dist/base-primitives/compound/CompoundNodeContainer.js +6 -4
- 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/EdgeLabelContainer.js +5 -1
- package/dist/base-primitives/element/ElementActionButtons.js +31 -58
- 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 +2 -1
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +2 -2
- package/dist/base-primitives/element/ElementNodeContainer.js +1 -0
- 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 +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NavigationPanel.js +9 -28
- package/dist/components/RootContainer.js +5 -8
- package/dist/context/DefaultMantineProvider.d.ts +2 -0
- package/dist/context/DefaultMantineProvider.js +66 -0
- package/dist/context/DiagramFeatures.js +12 -11
- package/dist/context/EnsureMantine.d.ts +0 -3
- package/dist/context/EnsureMantine.js +3 -4
- package/dist/context/IconRenderer.d.ts +14 -0
- package/dist/context/IconRenderer.js +8 -8
- package/dist/context/TagStylesContext.js +12 -4
- package/dist/custom/hooks.d.ts +2 -2
- package/dist/custom/index.d.ts +1 -1
- package/dist/custom/index.js +2 -2
- 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 +2 -2
- package/dist/editor/applyChangesToManualLayout.js +1 -0
- package/dist/editor/editorActor.actions.d.ts +25 -25
- package/dist/editor/editorActor.actions.js +2 -2
- 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} +22 -64
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/useEditorActorLogic.d.ts +2 -564
- package/dist/editor/useEditorActorLogic.js +8 -12
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useCallbackRef.d.ts +6 -0
- package/dist/hooks/useCurrentViewModel.d.ts +10 -0
- package/dist/hooks/useDiagram.js +2 -2
- package/dist/hooks/useDiagramCompareLayout.d.ts +1 -1
- package/dist/hooks/useDiagramCompareLayout.js +1 -1
- package/dist/hooks/useLikeC4ElementsTree.js +1 -1
- package/dist/hooks/useLikeC4Model.js +2 -2
- 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 +7 -4
- package/dist/index.js +4 -2
- package/dist/likec4diagram/DiagramUI.js +1 -3
- package/dist/likec4diagram/DiagramXYFlow.js +25 -12
- 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 +13 -14
- 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 +68 -35
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +1 -2
- package/dist/likec4diagram/custom/nodes/ElementActions.js +7 -10
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +7 -5
- package/dist/likec4diagram/custom/nodes/nodes.js +25 -6
- 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 +7 -6
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +2 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +15 -15
- 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 +14 -15
- package/dist/likec4diagram/state/assign.d.ts +1 -1
- package/dist/likec4diagram/state/createViewChange.js +16 -4
- package/dist/likec4diagram/state/machine.actions.d.ts +65 -0
- package/dist/likec4diagram/state/machine.actions.js +51 -39
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +22 -2
- package/dist/likec4diagram/state/machine.actions.layout.js +32 -14
- package/dist/likec4diagram/state/machine.d.ts +1 -1
- package/dist/likec4diagram/state/machine.js +31 -30
- package/dist/likec4diagram/state/machine.setup.d.ts +21 -5
- 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 +81 -49
- package/dist/likec4diagram/state/machine.state.ready.d.ts +508 -582
- 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 +80 -69
- 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 +13 -14
- package/dist/likec4diagram/state/utils.js +11 -3
- package/dist/likec4diagram/types.d.ts +9 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
- package/dist/likec4diagram/useLayoutConstraints.js +4 -1
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +11 -3
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +5 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.d.ts +7 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +10 -8
- package/dist/navigationpanel/NavigationPanel.js +2 -1
- package/dist/navigationpanel/NavigationPanelControls.js +4 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
- package/dist/navigationpanel/_common.d.ts +1 -1
- package/dist/navigationpanel/_common.js +1 -2
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +4 -5
- package/dist/navigationpanel/controls/DetailsControls.js +5 -5
- package/dist/navigationpanel/controls/LayoutWarning.js +2 -2
- 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 +4 -5
- 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 +3 -3
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +67 -67
- 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/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +14 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.js +4 -4
- package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
- package/dist/overlays/element-details/MetadataValue.js +6 -7
- package/dist/overlays/element-details/TabPanelDeployments.js +7 -5
- package/dist/overlays/element-details/TabPanelRelationships.css.js +5 -25
- package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +3 -2
- package/dist/overlays/overlaysActor.js +18 -0
- 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 +2 -2
- 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.js +2 -2
- 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/projects-overview/actor.js +8 -31
- package/dist/projects-overview/custom/nodeTypes.js +1 -1
- package/dist/projects-overview/panel/ProjectsOverviewPanel.js +1 -1
- package/dist/search/Search.d.ts +1 -4
- package/dist/search/Search.js +89 -87
- package/dist/search/components/ElementsColumn.css.js +3 -3
- package/dist/search/components/ElementsColumn.js +3 -4
- package/dist/search/components/PickView.d.ts +3 -1
- package/dist/search/components/PickView.js +5 -4
- package/dist/search/components/SearchByTags.js +1 -1
- package/dist/search/components/SearchInput.js +1 -1
- package/dist/search/components/ViewsColum.js +2 -2
- package/dist/search/components/_shared.css.d.ts +1 -1
- package/dist/search/components/_shared.css.js +1 -1
- package/dist/search/components/utils.js +1 -1
- package/dist/search/hooks.d.ts +1 -6
- package/dist/search/hooks.js +12 -9
- package/dist/search/searchActor.d.ts +1 -1
- package/dist/shadowroot/ShadowRoot.js +20 -19
- package/dist/shadowroot/styles.css.d.ts +0 -2
- package/dist/shadowroot/styles.css.js +1 -34
- package/dist/styles-font.css2.js +1 -1
- package/dist/styles.css2.js +1 -1
- package/dist/utils/view-bounds.js +9 -5
- package/dist/utils/xyflow.d.ts +19 -3
- package/dist/utils/xyflow.js +52 -9
- package/package.json +21 -20
- package/panda.buildinfo.json +80 -104
- package/styles-font.css +1 -1
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- 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/overlays/relationships-browser/custom/styles.css.d.ts +0 -1
- package/dist/overlays/relationships-browser/custom/styles.css.js +0 -14
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
|
@@ -10,7 +10,7 @@ import { useDiagramContext } from '../../hooks/useDiagram.js';
|
|
|
10
10
|
import { Tooltip } from '../_common.js';
|
|
11
11
|
import { useNavigationActor } from '../hooks.js';
|
|
12
12
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
13
|
-
import IconPlayerPlayFilled from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
13
|
+
import IconPlayerPlayFilled from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js';
|
|
14
14
|
|
|
15
15
|
const TriggerWalkthroughButton = forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
16
16
|
Button,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import createReactComponent from '../createReactComponent.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const __iconNode = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M9 12h6", "key": "svg-1" }], ["path", { "d": "M12 9v6", "key": "svg-2" }]];
|
|
12
|
+
const IconCirclePlus = createReactComponent("outline", "circle-plus", "CirclePlus", __iconNode);
|
|
13
|
+
|
|
14
|
+
export { __iconNode, IconCirclePlus as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import createReactComponent from '../createReactComponent.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const __iconNode = [["path", { "d": "M4 7l16 0", "key": "svg-0" }], ["path", { "d": "M10 11l0 6", "key": "svg-1" }], ["path", { "d": "M14 11l0 6", "key": "svg-2" }], ["path", { "d": "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "key": "svg-3" }], ["path", { "d": "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", "key": "svg-4" }]];
|
|
12
|
+
const IconTrash = createReactComponent("outline", "trash", "Trash", __iconNode);
|
|
13
|
+
|
|
14
|
+
export { __iconNode, IconTrash as default };
|
|
@@ -56,7 +56,7 @@ const title = css({
|
|
|
56
56
|
fontFamily: "likec4.element",
|
|
57
57
|
fontOpticalSizing: "auto",
|
|
58
58
|
fontStyle: "normal",
|
|
59
|
-
fontWeight:
|
|
59
|
+
fontWeight: "bold",
|
|
60
60
|
fontSize: "24px",
|
|
61
61
|
// lineHeight: 1.15,
|
|
62
62
|
lineHeight: "xs"
|
|
@@ -140,7 +140,7 @@ const viewButtonTitle = css({
|
|
|
140
140
|
transition: "fast",
|
|
141
141
|
color: `[var(${viewTitleColor}, {colors.mantine.colors.gray[7]})]`,
|
|
142
142
|
fontSize: "15px",
|
|
143
|
-
fontWeight:
|
|
143
|
+
fontWeight: "medium",
|
|
144
144
|
lineHeight: "1.4"
|
|
145
145
|
});
|
|
146
146
|
const tabsRoot = css({
|
|
@@ -165,7 +165,7 @@ const tabsList = css({
|
|
|
165
165
|
});
|
|
166
166
|
const tabsTab = css({
|
|
167
167
|
fontSize: "xs",
|
|
168
|
-
fontWeight:
|
|
168
|
+
fontWeight: "medium",
|
|
169
169
|
flexGrow: 1,
|
|
170
170
|
padding: "[6px 8px]",
|
|
171
171
|
transition: "fast",
|
|
@@ -233,7 +233,7 @@ const resizeHandle = css({
|
|
|
233
233
|
borderColor: "mantine.colors.dark[3]",
|
|
234
234
|
borderTop: "none",
|
|
235
235
|
borderLeft: "none",
|
|
236
|
-
borderRadius: "
|
|
236
|
+
borderRadius: "xs",
|
|
237
237
|
bottom: "0.5",
|
|
238
238
|
right: "0.5",
|
|
239
239
|
transition: "fast",
|
|
@@ -21,12 +21,12 @@ import { TabPanelStructure } from './TabPanelStructure.js';
|
|
|
21
21
|
import { useUpdateEffect } from '../../hooks/useUpdateEffect.js';
|
|
22
22
|
import { IconRenderer } from '../../context/IconRenderer.js';
|
|
23
23
|
import { stopPropagation } from '../../utils/xyflow.js';
|
|
24
|
-
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
24
|
+
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js';
|
|
25
25
|
import { IfEnabled, DiagramFeatures } from '../../context/DiagramFeatures.js';
|
|
26
|
-
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
27
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
26
|
+
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
27
|
+
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
28
28
|
import { Markdown } from '../../base-primitives/Markdown.js';
|
|
29
|
-
import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
29
|
+
import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js';
|
|
30
30
|
|
|
31
31
|
const Divider = Divider$1.withProps({
|
|
32
32
|
mb: 8,
|
|
@@ -2,8 +2,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { css } from '@likec4/styles/css';
|
|
3
3
|
import { UnstyledButton, Flex, Text, Box, Stack, Tooltip } from '@mantine/core';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
|
-
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
6
|
-
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
5
|
+
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js';
|
|
6
|
+
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
|
|
7
7
|
|
|
8
8
|
function MetadataProvider({ children }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
@@ -59,7 +59,7 @@ function MultiValueDisplay({
|
|
|
59
59
|
className: css({
|
|
60
60
|
fontSize: "xs",
|
|
61
61
|
color: "mantine.colors.gray[5]",
|
|
62
|
-
fontWeight:
|
|
62
|
+
fontWeight: "medium",
|
|
63
63
|
flexShrink: 0,
|
|
64
64
|
_dark: {
|
|
65
65
|
color: "mantine.colors.dark[3]"
|
|
@@ -118,7 +118,6 @@ function MultiValueDisplay({
|
|
|
118
118
|
userSelect: "all",
|
|
119
119
|
_dark: {
|
|
120
120
|
backgroundColor: "mantine.colors.dark[9]",
|
|
121
|
-
color: "mantine.colors.text",
|
|
122
121
|
borderColor: "mantine.colors.dark[4]"
|
|
123
122
|
}
|
|
124
123
|
}),
|
|
@@ -132,7 +131,7 @@ function MultiValueDisplay({
|
|
|
132
131
|
className: css({
|
|
133
132
|
fontSize: "xs",
|
|
134
133
|
color: "mantine.colors.gray[5]",
|
|
135
|
-
fontWeight:
|
|
134
|
+
fontWeight: "medium",
|
|
136
135
|
flexShrink: 0,
|
|
137
136
|
_dark: {
|
|
138
137
|
color: "mantine.colors.dark[3]"
|
|
@@ -191,7 +190,7 @@ function MetadataValue({ label, value }) {
|
|
|
191
190
|
component: "span",
|
|
192
191
|
className: css({
|
|
193
192
|
fontSize: "xs",
|
|
194
|
-
fontWeight:
|
|
193
|
+
fontWeight: "medium",
|
|
195
194
|
color: "mantine.colors.gray[6]",
|
|
196
195
|
backgroundColor: "mantine.colors.gray[1]",
|
|
197
196
|
padding: "[1px 4px]",
|
|
@@ -219,7 +218,7 @@ function MetadataValue({ label, value }) {
|
|
|
219
218
|
userSelect: "none",
|
|
220
219
|
whiteSpace: "nowrap",
|
|
221
220
|
padding: "[4px 8px]",
|
|
222
|
-
fontWeight: 700
|
|
221
|
+
fontWeight: "[700]"
|
|
223
222
|
}),
|
|
224
223
|
children: [
|
|
225
224
|
label,
|
|
@@ -6,10 +6,10 @@ import 'fast-equals';
|
|
|
6
6
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
7
7
|
import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
|
|
8
8
|
import { treeNodeLabel, treeNode, nodeLabel, instanceLabel } from './TabPanelDeployments.css.js';
|
|
9
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
10
|
-
import IconTarget from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
9
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
10
|
+
import IconTarget from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js';
|
|
11
11
|
import { stopPropagation } from '../../utils/xyflow.js';
|
|
12
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
12
|
+
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
13
13
|
|
|
14
14
|
const DeploymentNodeRenderer = ({
|
|
15
15
|
node
|
|
@@ -20,6 +20,7 @@ const DeploymentNodeRenderer = ({
|
|
|
20
20
|
] }),
|
|
21
21
|
/* @__PURE__ */ jsx(Text, { component: "div", fz: "sm", fw: "500", children: node.title })
|
|
22
22
|
] });
|
|
23
|
+
const zoomIcon = /* @__PURE__ */ jsx(ThemeIcon, { size: "sm", variant: "transparent", color: "gray", children: /* @__PURE__ */ jsx(IconZoomScan, { stroke: 1.8, opacity: 0.65 }) });
|
|
23
24
|
const DeployedInstanceRenderer = ({
|
|
24
25
|
instance
|
|
25
26
|
}) => {
|
|
@@ -54,7 +55,7 @@ const DeployedInstanceRenderer = ({
|
|
|
54
55
|
px: "xs",
|
|
55
56
|
py: 4,
|
|
56
57
|
disabled: view.id === currentViewId,
|
|
57
|
-
leftSection:
|
|
58
|
+
leftSection: zoomIcon,
|
|
58
59
|
styles: {
|
|
59
60
|
itemSection: {
|
|
60
61
|
marginInlineEnd: rem(8)
|
|
@@ -74,6 +75,7 @@ const DeployedInstanceRenderer = ({
|
|
|
74
75
|
] })
|
|
75
76
|
] });
|
|
76
77
|
};
|
|
78
|
+
const infoIcon = /* @__PURE__ */ jsx(IconInfoCircle, {});
|
|
77
79
|
const setHoveredNode = () => {
|
|
78
80
|
};
|
|
79
81
|
const TabPanelDeployments = memo(({ elementFqn }) => {
|
|
@@ -121,7 +123,7 @@ const TabPanelDeployments = memo(({ elementFqn }) => {
|
|
|
121
123
|
tree.expandAllNodes();
|
|
122
124
|
}, [data]);
|
|
123
125
|
if (deployments.length === 0) {
|
|
124
|
-
return /* @__PURE__ */ jsx(Alert, { variant: "light", color: "gray", icon:
|
|
126
|
+
return /* @__PURE__ */ jsx(Alert, { variant: "light", color: "gray", icon: infoIcon, children: "This element does not have any deployments" });
|
|
125
127
|
}
|
|
126
128
|
return (
|
|
127
129
|
// <Box></Box>
|
|
@@ -3,29 +3,19 @@ import { css } from '@likec4/styles/css';
|
|
|
3
3
|
const fqn = css({
|
|
4
4
|
display: "inline-block",
|
|
5
5
|
fontSize: "sm",
|
|
6
|
-
fontWeight:
|
|
6
|
+
fontWeight: "medium",
|
|
7
7
|
whiteSpace: "nowrap",
|
|
8
8
|
padding: "[3px 6px]",
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: "xs",
|
|
10
10
|
background: `var(--likec4-palette-fill)/75`,
|
|
11
11
|
lineHeight: 1.2,
|
|
12
12
|
color: "var(--likec4-palette-hiContrast)"
|
|
13
|
-
// selectors: {
|
|
14
|
-
// [`${whereDark} &`]: {
|
|
15
|
-
// }
|
|
16
|
-
// }
|
|
17
13
|
});
|
|
18
14
|
const relationshipStat = css({
|
|
19
15
|
_light: {
|
|
20
16
|
background: "mantine.colors.gray[1]",
|
|
21
17
|
"&[data-missing": {}
|
|
22
18
|
},
|
|
23
|
-
// [`&[data-zero]`]: {
|
|
24
|
-
// color: mantine.colors.dimmed
|
|
25
|
-
// },
|
|
26
|
-
// [`${whereLight} &[data-zero]`]: {
|
|
27
|
-
// background: mantine.colors.gray[3]
|
|
28
|
-
// },
|
|
29
19
|
[`&[data-missing]`]: {
|
|
30
20
|
color: "mantine.colors.orange[4]",
|
|
31
21
|
background: `mantine.colors.orange[8]/15`,
|
|
@@ -55,7 +45,7 @@ css({
|
|
|
55
45
|
top: "0",
|
|
56
46
|
left: "2",
|
|
57
47
|
fontSize: "xxs",
|
|
58
|
-
fontWeight:
|
|
48
|
+
fontWeight: "medium",
|
|
59
49
|
lineHeight: "1",
|
|
60
50
|
color: "mantine.colors.dimmed",
|
|
61
51
|
opacity: 0.85,
|
|
@@ -70,9 +60,9 @@ css({
|
|
|
70
60
|
css({
|
|
71
61
|
display: "inline-block",
|
|
72
62
|
fontSize: "xl",
|
|
73
|
-
fontWeight:
|
|
63
|
+
fontWeight: "bold",
|
|
74
64
|
padding: "[1px 5px]",
|
|
75
|
-
minWidth:
|
|
65
|
+
minWidth: "24px",
|
|
76
66
|
textAlign: "center",
|
|
77
67
|
borderRadius: "sm",
|
|
78
68
|
background: "mantine.colors.dark[7]",
|
|
@@ -84,16 +74,6 @@ css({
|
|
|
84
74
|
color: "mantine.colors.orange[4]",
|
|
85
75
|
background: `mantine.colors.orange[8]/20`
|
|
86
76
|
}
|
|
87
|
-
// _light: {
|
|
88
|
-
// background: 'mantine.colors.gray[4]',
|
|
89
|
-
// color: 'mantine.colors.dark[6]',
|
|
90
|
-
// [`&[data-zero]`]: {
|
|
91
|
-
// background: 'mantine.colors.gray[3]',
|
|
92
|
-
// },
|
|
93
|
-
// [`&[data-missing]`]: {
|
|
94
|
-
// color: 'mantine.colors.orange[8]',
|
|
95
|
-
// },
|
|
96
|
-
// },
|
|
97
77
|
});
|
|
98
78
|
|
|
99
79
|
export { fqn, relationshipStat, xyflow };
|
|
@@ -9,9 +9,9 @@ import { useElementDetailsActorRef } from './actorContext.js';
|
|
|
9
9
|
import { fqn, xyflow, relationshipStat } from './TabPanelRelationships.css.js';
|
|
10
10
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
11
11
|
import 'fast-equals';
|
|
12
|
-
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
13
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
14
|
-
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
12
|
+
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
|
|
13
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
14
|
+
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js';
|
|
15
15
|
|
|
16
16
|
const Tooltip = Tooltip$1.withProps({
|
|
17
17
|
color: "dark",
|
|
@@ -2,11 +2,12 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useTree, Alert, Anchor, Tree, Box, Text, Pill } from '@mantine/core';
|
|
3
3
|
import { useMemo, useEffect } from 'react';
|
|
4
4
|
import { treeNodeLabel, elementLabel } from './TabPanelStructure.css.js';
|
|
5
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
5
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
6
6
|
|
|
7
7
|
const ElementLabel = ({
|
|
8
8
|
element
|
|
9
9
|
}) => /* @__PURE__ */ jsx(Box, { className: elementLabel, children: /* @__PURE__ */ jsx(Text, { component: "div", fz: "sm", fw: "500", children: element.title }) });
|
|
10
|
+
const infoIcon = /* @__PURE__ */ jsx(IconInfoCircle, {});
|
|
10
11
|
const setHoveredNode = () => {
|
|
11
12
|
};
|
|
12
13
|
function TabPanelStructure({
|
|
@@ -57,7 +58,7 @@ function TabPanelStructure({
|
|
|
57
58
|
tree.expandAllNodes();
|
|
58
59
|
}, [data]);
|
|
59
60
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
|
-
/* @__PURE__ */ jsxs(Alert, { variant: "light", color: "orange", title: "In development", icon:
|
|
61
|
+
/* @__PURE__ */ jsxs(Alert, { variant: "light", color: "orange", title: "In development", icon: infoIcon, children: [
|
|
61
62
|
"We need your feedback. Share your thoughts and ideas -",
|
|
62
63
|
" ",
|
|
63
64
|
/* @__PURE__ */ jsx(
|
|
@@ -49,6 +49,15 @@ const machine = setup({
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
+
const emitOpened = (overlay) => machine.emit({
|
|
53
|
+
type: "opened",
|
|
54
|
+
overlay: overlay.split("-")[0]
|
|
55
|
+
});
|
|
56
|
+
const emitClosed = (overlay) => machine.emit({
|
|
57
|
+
type: "closed",
|
|
58
|
+
overlay: overlay.split("-")[0]
|
|
59
|
+
});
|
|
60
|
+
const emitIdle = () => machine.emit({ type: "idle" });
|
|
52
61
|
const closeLastOverlay = () => machine.enqueueActions(({ context, enqueue }) => {
|
|
53
62
|
if (context.overlays.length === 0) {
|
|
54
63
|
return;
|
|
@@ -62,6 +71,7 @@ const closeLastOverlay = () => machine.enqueueActions(({ context, enqueue }) =>
|
|
|
62
71
|
enqueue.assign({
|
|
63
72
|
overlays: context.overlays.filter((o) => o.id !== lastOverlay)
|
|
64
73
|
});
|
|
74
|
+
enqueue(emitClosed(lastOverlay));
|
|
65
75
|
});
|
|
66
76
|
const closeSpecificOverlay = () => machine.enqueueActions(({ context, enqueue, event }) => {
|
|
67
77
|
assertEvent(event, "close");
|
|
@@ -76,12 +86,14 @@ const closeSpecificOverlay = () => machine.enqueueActions(({ context, enqueue, e
|
|
|
76
86
|
enqueue.assign({
|
|
77
87
|
overlays: context.overlays.filter((o) => o.id !== toClose)
|
|
78
88
|
});
|
|
89
|
+
enqueue(emitClosed(toClose));
|
|
79
90
|
}
|
|
80
91
|
});
|
|
81
92
|
const closeAllOverlays = () => machine.enqueueActions(({ context, enqueue }) => {
|
|
82
93
|
for (const { id } of reverse(context.overlays)) {
|
|
83
94
|
enqueue.sendTo(id, { type: "close" });
|
|
84
95
|
enqueue.stopChild(id);
|
|
96
|
+
enqueue(emitClosed(id));
|
|
85
97
|
}
|
|
86
98
|
enqueue.assign({ overlays: [] });
|
|
87
99
|
});
|
|
@@ -107,6 +119,7 @@ const openElementDetails = () => machine.enqueueActions(({ context, enqueue, eve
|
|
|
107
119
|
}
|
|
108
120
|
]
|
|
109
121
|
});
|
|
122
|
+
enqueue(emitOpened(id));
|
|
110
123
|
});
|
|
111
124
|
const openRelationshipDetails = () => machine.enqueueActions(({ context, enqueue, event }) => {
|
|
112
125
|
assertEvent(event, "open.relationshipDetails");
|
|
@@ -134,6 +147,7 @@ const openRelationshipDetails = () => machine.enqueueActions(({ context, enqueue
|
|
|
134
147
|
}
|
|
135
148
|
]
|
|
136
149
|
});
|
|
150
|
+
enqueue(emitOpened(id));
|
|
137
151
|
});
|
|
138
152
|
const openRelationshipsBrowser = () => machine.enqueueActions(({ context, enqueue, event }) => {
|
|
139
153
|
assertEvent(event, "open.relationshipsBrowser");
|
|
@@ -163,6 +177,7 @@ const openRelationshipsBrowser = () => machine.enqueueActions(({ context, enqueu
|
|
|
163
177
|
}
|
|
164
178
|
]
|
|
165
179
|
});
|
|
180
|
+
enqueue(emitOpened(id));
|
|
166
181
|
});
|
|
167
182
|
const openOverlay = () => machine.enqueueActions(({ enqueue, event }) => {
|
|
168
183
|
assertEvent(event, [
|
|
@@ -200,6 +215,9 @@ const _overlaysActorLogic = machine.createMachine({
|
|
|
200
215
|
initial: "idle",
|
|
201
216
|
states: {
|
|
202
217
|
idle: {
|
|
218
|
+
entry: [
|
|
219
|
+
emitIdle()
|
|
220
|
+
],
|
|
203
221
|
on: {
|
|
204
222
|
"open.*": {
|
|
205
223
|
actions: openOverlay(),
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { RelationshipDetailsTypes } from './_types';
|
|
2
1
|
import { RelationshipDetailsActorRef } from './actor';
|
|
3
|
-
import { FunctionComponent } from 'react';
|
|
4
|
-
export declare const edgeTypes: {
|
|
5
|
-
relationship: FunctionComponent<RelationshipDetailsTypes.EdgeProps>;
|
|
6
|
-
};
|
|
7
2
|
export type RelationshipDetailsProps = {
|
|
8
3
|
actorRef: RelationshipDetailsActorRef;
|
|
9
4
|
};
|
|
@@ -17,9 +17,9 @@ import { layoutRelationshipDetails } from './layout.js';
|
|
|
17
17
|
import { SelectEdge } from './SelectEdge.js';
|
|
18
18
|
import { RelationshipEdge } from './custom/edgeTypes.js';
|
|
19
19
|
import { CompoundNode, ElementNode } from './custom/nodeTypes.js';
|
|
20
|
-
import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
21
|
-
import IconChevronLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
22
|
-
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
20
|
+
import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
|
|
21
|
+
import IconChevronLeft from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js';
|
|
22
|
+
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
|
|
23
23
|
|
|
24
24
|
const nodeTypes = {
|
|
25
25
|
element: ElementNode,
|
|
@@ -261,4 +261,4 @@ const TopLeftPanelInner = ({ edge, view }) => {
|
|
|
261
261
|
] }) }) });
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
export { RelationshipDetails
|
|
264
|
+
export { RelationshipDetails };
|
|
@@ -7,7 +7,7 @@ const edgeEnpoint = css.raw({
|
|
|
7
7
|
"& .mantine-Text-root": {
|
|
8
8
|
color: "mantine.colors.text/90",
|
|
9
9
|
fontSize: "xs",
|
|
10
|
-
fontWeight:
|
|
10
|
+
fontWeight: "medium",
|
|
11
11
|
lineHeight: "1.2"
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -36,7 +36,7 @@ const edgeLabel = cx(
|
|
|
36
36
|
width: "100%",
|
|
37
37
|
"& .mantine-Text-root": {
|
|
38
38
|
fontSize: "xxs",
|
|
39
|
-
fontWeight:
|
|
39
|
+
fontWeight: "normal",
|
|
40
40
|
lineHeight: "xs",
|
|
41
41
|
color: "mantine.colors.dimmed"
|
|
42
42
|
}
|
|
@@ -3,8 +3,8 @@ import { Popover, PopoverTarget, Button, Box, Text, ThemeIcon, PopoverDropdown,
|
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { useRelationshipDetails } from './hooks.js';
|
|
5
5
|
import { edgeSource, edgeTarget, scrollArea, edgeGrid, edgeRow, edgeArrow, edgeLabel } from './SelectEdge.css.js';
|
|
6
|
-
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
7
|
-
import IconSelector from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
6
|
+
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
|
|
7
|
+
import IconSelector from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js';
|
|
8
8
|
|
|
9
9
|
const SelectEdge = ({
|
|
10
10
|
edge,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { treeFromElements } from '@likec4/core/compute-view
|
|
1
|
+
import { treeFromElements } from '@likec4/core/compute-view';
|
|
2
2
|
import { modelConnection } from '@likec4/core/model';
|
|
3
3
|
import { invariant, isAncestor, sortParentsFirst } from '@likec4/core/utils';
|
|
4
4
|
import { hasAtLeast } from 'remeda';
|
|
@@ -6,9 +6,9 @@ import 'fast-equals';
|
|
|
6
6
|
import 'react';
|
|
7
7
|
import { useDiagram } from '../../../hooks/safeContext.js';
|
|
8
8
|
import { ElementActionButtons } from '../../../base-primitives/element/ElementActionButtons.js';
|
|
9
|
-
import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
10
|
-
import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
11
|
-
import IconFileSymlink from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.
|
|
9
|
+
import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
10
|
+
import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js';
|
|
11
|
+
import IconFileSymlink from '../../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
12
12
|
|
|
13
13
|
const ElementActions = (props) => {
|
|
14
14
|
const { enableNavigateTo, enableVscode } = useEnabledFeatures();
|
|
@@ -7,15 +7,28 @@ import '@xstate/react';
|
|
|
7
7
|
import 'fast-equals';
|
|
8
8
|
import 'react';
|
|
9
9
|
import { useDiagram } from '../../../hooks/safeContext.js';
|
|
10
|
+
import { useCallbackRef } from '../../../hooks/useCallbackRef.js';
|
|
10
11
|
import { memoNode } from '../../../base-primitives/memoNode.js';
|
|
11
12
|
import { CompoundNodeContainer } from '../../../base-primitives/compound/CompoundNodeContainer.js';
|
|
12
13
|
import { CompoundTitle } from '../../../base-primitives/compound/CompoundTitle.js';
|
|
13
14
|
import { ElementNodeContainer } from '../../../base-primitives/element/ElementNodeContainer.js';
|
|
14
15
|
import { ElementShape } from '../../../base-primitives/element/ElementShape.js';
|
|
15
16
|
import { ElementData } from '../../../base-primitives/element/ElementData.js';
|
|
16
|
-
import { ElementTags } from '../../../base-primitives/element/ElementTags.js';
|
|
17
17
|
import { ElementDetailsButton } from '../../../base-primitives/element/ElementDetailsButton.js';
|
|
18
|
+
import { ElementTags as ElementTags$1 } from '../../../base-primitives/element/ElementTags.js';
|
|
18
19
|
|
|
20
|
+
function ElementTags(props) {
|
|
21
|
+
const diagram = useDiagram();
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
ElementTags$1,
|
|
24
|
+
{
|
|
25
|
+
onTagClick: useCallbackRef((tag) => {
|
|
26
|
+
diagram.openSearch(tag);
|
|
27
|
+
}),
|
|
28
|
+
...props
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
19
32
|
const ElementDetailsButtonWithHandler = (props) => {
|
|
20
33
|
const diagram = useDiagram();
|
|
21
34
|
return /* @__PURE__ */ jsx(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { treeFromElements } from '@likec4/core/compute-view
|
|
1
|
+
import { treeFromElements } from '@likec4/core/compute-view';
|
|
2
2
|
import { exact, preferSummary } from '@likec4/core/types';
|
|
3
3
|
import dagre from '@dagrejs/dagre';
|
|
4
4
|
import { ifind, DefaultMap, invariant } from '@likec4/core/utils';
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { RelationshipsBrowserTypes } from './_types';
|
|
2
1
|
import { RelationshipsBrowserActorRef } from './actor';
|
|
3
|
-
import { FunctionComponent } from 'react';
|
|
4
|
-
export declare const edgeTypes: {
|
|
5
|
-
relationship: FunctionComponent<RelationshipsBrowserTypes.EdgeProps>;
|
|
6
|
-
};
|
|
7
2
|
export type RelationshipsBrowserProps = {
|
|
8
3
|
actorRef: RelationshipsBrowserActorRef;
|
|
9
4
|
};
|