@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,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FunctionComponent, NamedExoticComponent } from 'react';
|
|
3
|
-
export declare const edgeTypes: {
|
|
4
|
-
relationship: FunctionComponent<ProjectsOverviewTypes.EdgeProps>;
|
|
5
|
-
};
|
|
1
|
+
import { NamedExoticComponent } from 'react';
|
|
6
2
|
export type ProjectsOverviewXYProps = {
|
|
7
3
|
/**
|
|
8
4
|
* Background pattern
|
|
@@ -4,7 +4,7 @@ import { EdgeChange, NodeChange } from '@xyflow/system';
|
|
|
4
4
|
import { MouseEvent } from 'react';
|
|
5
5
|
import { Simplify } from 'type-fest';
|
|
6
6
|
import { ActorRef, SnapshotFrom, StateMachine, ActionFunction, Values } from 'xstate';
|
|
7
|
-
import { ViewPadding } from '../
|
|
7
|
+
import { ViewPadding } from '../LikeC4Diagram.props';
|
|
8
8
|
import { ProjectsOverviewTypes, ProjectsOverviewXYFLowInstance, ProjectsOverviewXYStoreApi } from './_types';
|
|
9
9
|
export type Input = {
|
|
10
10
|
view: LayoutedProjectsView;
|
|
@@ -20,8 +20,7 @@ const machine = setup({
|
|
|
20
20
|
guards: {
|
|
21
21
|
isReady: ({ context }) => context.initialized.xydata && context.initialized.xyflow && !!context.xystore && !!context.xyflow,
|
|
22
22
|
"click: selected node": ({ event }) => {
|
|
23
|
-
|
|
24
|
-
return event.node.selected === true;
|
|
23
|
+
return event.type === "xyflow.click.node" && event.node.selected === true;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
});
|
|
@@ -91,32 +90,11 @@ const saveViewport = () => machine.createAction(({ context }) => {
|
|
|
91
90
|
});
|
|
92
91
|
const handleClick = () => machine.enqueueActions(({ event, enqueue }) => {
|
|
93
92
|
if (event.type === "xyflow.click.double") {
|
|
94
|
-
enqueue(
|
|
95
|
-
enqueue(raiseFitDiagram());
|
|
93
|
+
enqueue(fitDiagram());
|
|
96
94
|
return;
|
|
97
95
|
}
|
|
98
|
-
if (event.type === "xyflow.click.pane") {
|
|
99
|
-
enqueue(cancelFitDiagram());
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
console.warn("Unknown event", event);
|
|
103
96
|
});
|
|
104
|
-
const
|
|
105
|
-
const raiseFitDiagram = (params) => {
|
|
106
|
-
const { delay = 30, ...rest } = {};
|
|
107
|
-
return machine.raise(
|
|
108
|
-
{
|
|
109
|
-
type: "xyflow.fitDiagram",
|
|
110
|
-
...rest
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: "fitDiagram",
|
|
114
|
-
delay
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
const fitDiagram = (params) => machine.enqueueActions(({ context, event, enqueue }) => {
|
|
119
|
-
enqueue(cancelFitDiagram());
|
|
97
|
+
const fitDiagram = (params) => machine.enqueueActions(({ context, event }) => {
|
|
120
98
|
let bounds = context.view.bounds, duration;
|
|
121
99
|
if (params) {
|
|
122
100
|
bounds = params.bounds ?? context.view.bounds;
|
|
@@ -261,16 +239,16 @@ const _projectOverviewLogic = machine.createMachine({
|
|
|
261
239
|
"xyflow.mouse.*": {
|
|
262
240
|
actions: onMouseEnterOrLeave()
|
|
263
241
|
},
|
|
264
|
-
"xyflow.click
|
|
242
|
+
"xyflow.click.*": [
|
|
265
243
|
{
|
|
266
244
|
guard: "click: selected node",
|
|
267
245
|
actions: assignNavigateTo(),
|
|
268
246
|
target: "navigate"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
actions: handleClick()
|
|
269
250
|
}
|
|
270
251
|
],
|
|
271
|
-
"xyflow.click.*": {
|
|
272
|
-
actions: handleClick()
|
|
273
|
-
},
|
|
274
252
|
"xyflow.fitDiagram": {
|
|
275
253
|
actions: fitDiagram()
|
|
276
254
|
},
|
|
@@ -282,7 +260,6 @@ const _projectOverviewLogic = machine.createMachine({
|
|
|
282
260
|
navigate: {
|
|
283
261
|
tags: "active",
|
|
284
262
|
entry: [
|
|
285
|
-
cancelFitDiagram(),
|
|
286
263
|
saveViewport(),
|
|
287
264
|
xstateActions_cjsExports.assign({
|
|
288
265
|
xyedges: []
|
|
@@ -292,7 +269,7 @@ const _projectOverviewLogic = machine.createMachine({
|
|
|
292
269
|
const { width, domNode } = nonNullable(xystore).getState();
|
|
293
270
|
const nextZoom = clamp(
|
|
294
271
|
Math.min(
|
|
295
|
-
width *
|
|
272
|
+
width * 7 / 9 / navigateTo.data.width
|
|
296
273
|
// (height - 200) / (navigateTo.data.height),
|
|
297
274
|
),
|
|
298
275
|
{ min: MinZoom, max: 2.5 }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ProjectsOverviewActorRef } from './actor';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
2
|
+
import { Provider } from 'react';
|
|
3
|
+
export declare const ProjectsOverviewActorContextProvider: Provider<ProjectsOverviewActorRef | null>;
|
|
4
4
|
export declare function useProjectsOverviewActor(): ProjectsOverviewActorRef;
|
|
@@ -2,8 +2,9 @@ import { nonNullable } from '@likec4/core';
|
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
|
|
4
4
|
const ProjectsOverviewActorContext = createContext(null);
|
|
5
|
+
const ProjectsOverviewActorContextProvider = ProjectsOverviewActorContext.Provider;
|
|
5
6
|
function useProjectsOverviewActor() {
|
|
6
7
|
return nonNullable(useContext(ProjectsOverviewActorContext), "No ProjectsOverviewActorContext");
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export {
|
|
10
|
+
export { ProjectsOverviewActorContextProvider, useProjectsOverviewActor };
|
|
@@ -5,7 +5,7 @@ import { ElementNodeContainer } from '../../base-primitives/element/ElementNodeC
|
|
|
5
5
|
import { ElementShape } from '../../base-primitives/element/ElementShape.js';
|
|
6
6
|
import { ElementData } from '../../base-primitives/element/ElementData.js';
|
|
7
7
|
import { ElementActionButtons } from '../../base-primitives/element/ElementActionButtons.js';
|
|
8
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
8
|
+
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';
|
|
9
9
|
import { DefaultHandles } from '../../base-primitives/NodeHandles.js';
|
|
10
10
|
|
|
11
11
|
function ProjectNode(props) {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { NavigationPanel } from '../../components/NavigationPanel.js';
|
|
3
3
|
|
|
4
4
|
const ProjectsOverviewPanel = () => {
|
|
5
|
-
return /* @__PURE__ */ jsx(NavigationPanel.Root, {
|
|
5
|
+
return /* @__PURE__ */ jsx(NavigationPanel.Root, { children: /* @__PURE__ */ jsxs(NavigationPanel.Body, { children: [
|
|
6
6
|
/* @__PURE__ */ jsx(NavigationPanel.Logo, {}),
|
|
7
7
|
/* @__PURE__ */ jsx(NavigationPanel.Label, { children: "Projects Overview" })
|
|
8
8
|
] }) });
|
package/dist/search/Search.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
searchActorRef: SearchActorRef;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { MemoExoticComponent } from 'react';
|
|
2
|
+
export declare const Search: MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
package/dist/search/Search.js
CHANGED
|
@@ -5,13 +5,12 @@ import { Group, Grid, GridCol, Title, ScrollArea } from '@mantine/core';
|
|
|
5
5
|
import { useHotkeys } from '@mantine/hooks';
|
|
6
6
|
import { useTimeoutEffect } from '@react-hookz/web';
|
|
7
7
|
import { useSelector } from '@xstate/react';
|
|
8
|
-
import { AnimatePresence, LayoutGroup } from 'motion/react';
|
|
9
|
-
import { useRef } from 'react';
|
|
10
|
-
import { ErrorBoundary } from 'react-error-boundary';
|
|
8
|
+
import { AnimatePresence, usePresence, LayoutGroup } from 'motion/react';
|
|
9
|
+
import { memo, useRef, useMemo, useEffect, Suspense } from 'react';
|
|
11
10
|
import { isTruthy } from 'remeda';
|
|
12
|
-
import {
|
|
13
|
-
import { DiagramFeatures } from '../context/DiagramFeatures.js';
|
|
11
|
+
import { createEmptyActor } from 'xstate';
|
|
14
12
|
import { useCallbackRef } from '../hooks/useCallbackRef.js';
|
|
13
|
+
import { useSearchActorRef } from '../hooks/useSearchActor.js';
|
|
15
14
|
import { Overlay } from '../overlays/overlay/Overlay.js';
|
|
16
15
|
import { ElementsColumn } from './components/ElementsColumn.js';
|
|
17
16
|
import { PickView } from './components/PickView.js';
|
|
@@ -19,7 +18,6 @@ import { SearchByTags } from './components/SearchByTags.js';
|
|
|
19
18
|
import { LikeC4SearchInput } from './components/SearchInput.js';
|
|
20
19
|
import { focusToFirstFoundElement, moveFocusToSearchInput } from './components/utils.js';
|
|
21
20
|
import { ViewsColumn } from './components/ViewsColum.js';
|
|
22
|
-
import { SearchActorContext, usePickViewFor } from './hooks.js';
|
|
23
21
|
|
|
24
22
|
const dialog = css({
|
|
25
23
|
backgroundColor: `[rgb(34 34 34 / var(--_opacity, 95%))]`,
|
|
@@ -51,30 +49,54 @@ const body = css({
|
|
|
51
49
|
paddingLeft: "md",
|
|
52
50
|
paddingRight: "md",
|
|
53
51
|
paddingBottom: "sm",
|
|
54
|
-
background: "
|
|
52
|
+
background: "transparent"
|
|
55
53
|
// backgroundColor: {
|
|
56
54
|
// _dark: `[rgb(34 34 34 / 0.95)]`,
|
|
57
55
|
// _light: `[rgb(255 255 255/ 0.95)]`,
|
|
58
56
|
// },
|
|
59
57
|
});
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
const scrollArea = css({
|
|
59
|
+
height: [
|
|
60
|
+
"100%",
|
|
61
|
+
"100cqh"
|
|
62
|
+
],
|
|
63
|
+
"& .mantine-ScrollArea-viewport": {
|
|
64
|
+
minHeight: "100%",
|
|
65
|
+
"& > div": {
|
|
66
|
+
minHeight: "100%",
|
|
67
|
+
height: "100%"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const selectIsOpened = (s) => {
|
|
72
|
+
try {
|
|
73
|
+
return s.status === "active" && (s.value === "opened" || s.value === "pickView");
|
|
74
|
+
} catch (e) {
|
|
75
|
+
console.error(e);
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const Search = memo(() => {
|
|
80
|
+
const searchActorRef = useSearchActorRef();
|
|
81
|
+
const emptyActorRef = useRef(createEmptyActor());
|
|
82
|
+
const isOpened = useSelector(searchActorRef ?? emptyActorRef.current, selectIsOpened);
|
|
66
83
|
const close = useCallbackRef(() => {
|
|
67
|
-
searchActorRef
|
|
84
|
+
searchActorRef?.send({ type: "close" });
|
|
68
85
|
});
|
|
69
|
-
useHotkeys(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
86
|
+
useHotkeys(
|
|
87
|
+
useMemo(() => {
|
|
88
|
+
const openSearch = () => searchActorRef?.send({ type: "open" });
|
|
89
|
+
return searchActorRef ? [
|
|
90
|
+
["mod+k", openSearch, {
|
|
91
|
+
preventDefault: true
|
|
92
|
+
}],
|
|
93
|
+
["mod+f", openSearch, {
|
|
94
|
+
preventDefault: true
|
|
95
|
+
}]
|
|
96
|
+
] : [];
|
|
97
|
+
}, [searchActorRef])
|
|
98
|
+
);
|
|
99
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: searchActorRef && isOpened && /* @__PURE__ */ jsx(
|
|
78
100
|
Overlay,
|
|
79
101
|
{
|
|
80
102
|
fullscreen: true,
|
|
@@ -89,31 +111,32 @@ function Search({ searchActorRef }) {
|
|
|
89
111
|
openDelay: 0,
|
|
90
112
|
onClose: close,
|
|
91
113
|
"data-likec4-search": "true",
|
|
92
|
-
children: /* @__PURE__ */ jsx(
|
|
114
|
+
children: /* @__PURE__ */ jsx(SearchOverlayBody, { searchActorRef })
|
|
93
115
|
}
|
|
94
|
-
) })
|
|
95
|
-
}
|
|
96
|
-
const scrollArea = css({
|
|
97
|
-
height: [
|
|
98
|
-
"100%",
|
|
99
|
-
"100cqh"
|
|
100
|
-
],
|
|
101
|
-
"& .mantine-ScrollArea-viewport": {
|
|
102
|
-
minHeight: "100%",
|
|
103
|
-
"& > div": {
|
|
104
|
-
minHeight: "100%",
|
|
105
|
-
height: "100%"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
116
|
+
) });
|
|
108
117
|
});
|
|
109
|
-
|
|
118
|
+
Search.displayName = "Search";
|
|
119
|
+
const selectPickViewFor = (s) => s.context.pickViewFor;
|
|
120
|
+
const SearchOverlayBody = memo(({ searchActorRef }) => {
|
|
110
121
|
const ref = useRef(null);
|
|
111
|
-
const pickViewFor =
|
|
122
|
+
const pickViewFor = useSelector(searchActorRef, selectPickViewFor);
|
|
112
123
|
useTimeoutEffect(() => {
|
|
113
124
|
if (isTruthy(searchActorRef.getSnapshot().context.openedWithSearch)) {
|
|
114
125
|
focusToFirstFoundElement(ref.current);
|
|
115
126
|
}
|
|
116
127
|
}, 150);
|
|
128
|
+
const [isPresent, safeToRemove] = usePresence();
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
if (isPresent) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
safeToRemove();
|
|
134
|
+
try {
|
|
135
|
+
searchActorRef.send({ type: "animation.presence.end" });
|
|
136
|
+
} catch (e) {
|
|
137
|
+
console.debug("SearchOverlayBody: animation.presence.end failed", e);
|
|
138
|
+
}
|
|
139
|
+
}, [isPresent, searchActorRef, safeToRemove]);
|
|
117
140
|
return /* @__PURE__ */ jsxs(Box, { ref, display: "contents", children: [
|
|
118
141
|
/* @__PURE__ */ jsx(
|
|
119
142
|
Group,
|
|
@@ -151,7 +174,7 @@ const SearchOverlay = ({ searchActorRef }) => {
|
|
|
151
174
|
className: scrollArea,
|
|
152
175
|
pr: "xs",
|
|
153
176
|
scrollbars: "y",
|
|
154
|
-
children: /* @__PURE__ */ jsx(
|
|
177
|
+
children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-elements", children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(ElementsColumn, {}) }) })
|
|
155
178
|
}
|
|
156
179
|
) }),
|
|
157
180
|
/* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(
|
|
@@ -161,14 +184,14 @@ const SearchOverlay = ({ searchActorRef }) => {
|
|
|
161
184
|
className: scrollArea,
|
|
162
185
|
pr: "xs",
|
|
163
186
|
scrollbars: "y",
|
|
164
|
-
children: /* @__PURE__ */ jsx(
|
|
187
|
+
children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-views", children: /* @__PURE__ */ jsx(ViewsColumn, {}) }) })
|
|
165
188
|
}
|
|
166
189
|
) })
|
|
167
190
|
]
|
|
168
191
|
}
|
|
169
192
|
),
|
|
170
|
-
pickViewFor && /* @__PURE__ */ jsx(PickView, { elementFqn: pickViewFor })
|
|
193
|
+
pickViewFor && /* @__PURE__ */ jsx(PickView, { searchActorRef, elementFqn: pickViewFor })
|
|
171
194
|
] });
|
|
172
|
-
};
|
|
195
|
+
});
|
|
173
196
|
|
|
174
197
|
export { Search };
|
|
@@ -25,7 +25,7 @@ const treeSubtree = css({
|
|
|
25
25
|
marginTop: "2"
|
|
26
26
|
});
|
|
27
27
|
const elementExpandIcon = css({
|
|
28
|
-
color: "
|
|
28
|
+
color: "text.dimmed"
|
|
29
29
|
});
|
|
30
30
|
const elementTitleAndId = css({
|
|
31
31
|
[whenContainerIsNarrow]: {
|
|
@@ -35,14 +35,14 @@ const elementTitleAndId = css({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const elementId = css({
|
|
38
|
-
// color: `[var(${descriptionColor}, {colors.
|
|
38
|
+
// color: `[var(${descriptionColor}, {colors.text.dimmed})]`,
|
|
39
39
|
fontSize: "10px",
|
|
40
40
|
lineHeight: "1.3",
|
|
41
41
|
display: "block",
|
|
42
|
-
fontWeight:
|
|
42
|
+
fontWeight: "medium",
|
|
43
43
|
whiteSpace: "nowrap",
|
|
44
44
|
padding: "[1px 5px]",
|
|
45
|
-
borderRadius: "
|
|
45
|
+
borderRadius: "sm",
|
|
46
46
|
background: `mantine.colors.dark[9]/30`,
|
|
47
47
|
_light: {
|
|
48
48
|
background: `mantine.colors.gray[3]/20`
|
|
@@ -56,9 +56,9 @@ const elementIcon = css({
|
|
|
56
56
|
});
|
|
57
57
|
const elementViewsCount = css({
|
|
58
58
|
flex: 0,
|
|
59
|
-
// color: `[var(${descriptionColor}, {colors.
|
|
59
|
+
// color: `[var(${descriptionColor}, {colors.text.dimmed})]`,
|
|
60
60
|
fontSize: "10px",
|
|
61
|
-
fontWeight:
|
|
61
|
+
fontWeight: "medium",
|
|
62
62
|
whiteSpace: "nowrap",
|
|
63
63
|
lineHeight: "1.1",
|
|
64
64
|
[whenContainerIsNarrow]: {
|
|
@@ -1,80 +1,110 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { ifilter,
|
|
2
|
+
import { ifilter, imap, toArray, isAncestor, stringHash, nameFromFqn } from '@likec4/core/utils';
|
|
3
3
|
import { cx } from '@likec4/styles/css';
|
|
4
|
-
import {
|
|
4
|
+
import { Txt } from '@likec4/styles/jsx';
|
|
5
|
+
import { useTree, Tree, ActionIcon, UnstyledButton, Box, Group, Highlight, Tooltip } from '@mantine/core';
|
|
5
6
|
import * as m from 'motion/react-m';
|
|
6
7
|
import { memo, useMemo, useEffect } from 'react';
|
|
7
|
-
import {
|
|
8
|
+
import { pipe, filter, hasAtLeast, reduce, only, first, last } from 'remeda';
|
|
8
9
|
import { IconOrShapeRenderer } from '../../context/IconRenderer.js';
|
|
9
10
|
import { useCallbackRef } from '../../hooks/useCallbackRef.js';
|
|
10
|
-
import '@xstate/react';
|
|
11
|
-
import 'fast-equals';
|
|
12
|
-
import { useDiagram } from '../../hooks/safeContext.js';
|
|
13
|
-
import { sortByLabel } from '../../hooks/useLikeC4ElementsTree.js';
|
|
14
11
|
import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
|
|
15
12
|
import { useNormalizedSearch, useSearchActor } from '../hooks.js';
|
|
16
13
|
import { focusable, buttonsva } from './_shared.css.js';
|
|
17
14
|
import { treeSubtree, treeLabel, treeRoot, treeNode, elementIcon, elementExpandIcon, elementTitleAndId, elementId, elementViewsCount } from './ElementsColumn.css.js';
|
|
18
|
-
import {
|
|
15
|
+
import { stopAndPrevent, moveFocusToSearchInput, queryAllFocusable, centerY } from './utils.js';
|
|
19
16
|
import { NothingFound } from './ViewsColum.js';
|
|
20
|
-
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.
|
|
17
|
+
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';
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
const ElementsColumn = memo(() => {
|
|
19
|
+
function useElementsColumnData() {
|
|
24
20
|
const model = useLikeC4Model();
|
|
21
|
+
const allElements = useMemo(() => pipe(
|
|
22
|
+
model.elements(),
|
|
23
|
+
ifilter((i) => !i.imported),
|
|
24
|
+
imap((element) => ({
|
|
25
|
+
label: element.title,
|
|
26
|
+
value: element.id,
|
|
27
|
+
element,
|
|
28
|
+
// searchTerms,
|
|
29
|
+
viewsCount: [...element.views()].length,
|
|
30
|
+
children: []
|
|
31
|
+
})),
|
|
32
|
+
toArray()
|
|
33
|
+
), [model]);
|
|
25
34
|
const search = useNormalizedSearch();
|
|
26
|
-
|
|
35
|
+
return useMemo(() => {
|
|
27
36
|
const searchTerms = search.split(".");
|
|
28
37
|
let elements;
|
|
29
|
-
if (
|
|
30
|
-
elements =
|
|
31
|
-
} else {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
if (search === "" || search === "kind:") {
|
|
39
|
+
elements = allElements;
|
|
40
|
+
} else if (search.startsWith("kind:")) {
|
|
41
|
+
const searchKind = search.slice(5);
|
|
42
|
+
elements = filter(allElements, ({ element }) => {
|
|
43
|
+
return element.kind.toLocaleLowerCase()[searchKind.length > 4 ? "startsWith" : "includes"](searchKind);
|
|
44
|
+
});
|
|
45
|
+
} else if (search.startsWith("#")) {
|
|
46
|
+
const searchTag = search.slice(1);
|
|
47
|
+
elements = filter(allElements, ({ element }) => {
|
|
48
|
+
return element.tags.some((tag) => tag.toLocaleLowerCase().includes(searchTag));
|
|
49
|
+
});
|
|
50
|
+
} else if (hasAtLeast(searchTerms, 2)) {
|
|
51
|
+
const satisfies = (element) => {
|
|
52
|
+
const fqnParts = element.id.toLocaleLowerCase().split(".");
|
|
53
|
+
if (fqnParts.length < searchTerms.length) {
|
|
54
|
+
return false;
|
|
35
55
|
}
|
|
36
|
-
|
|
37
|
-
|
|
56
|
+
let lastMatchIndex = 0;
|
|
57
|
+
for (let i = 0; i < fqnParts.length; i++) {
|
|
58
|
+
if (fqnParts[i].includes(searchTerms[lastMatchIndex])) {
|
|
59
|
+
lastMatchIndex++;
|
|
60
|
+
if (lastMatchIndex === searchTerms.length) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
38
65
|
}
|
|
39
|
-
|
|
66
|
+
return false;
|
|
67
|
+
};
|
|
68
|
+
elements = filter(allElements, ({ element }) => satisfies(element));
|
|
69
|
+
} else {
|
|
70
|
+
elements = filter(allElements, ({ element }) => {
|
|
71
|
+
const value = element.title + " " + element.name + " " + (element.summary.md || "");
|
|
40
72
|
return value.toLocaleLowerCase().includes(search);
|
|
41
73
|
});
|
|
42
74
|
}
|
|
43
75
|
const byid = {};
|
|
44
|
-
const { all, roots } = pipe(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const treeItem = {
|
|
49
|
-
label: element.title,
|
|
50
|
-
value: element.id,
|
|
51
|
-
element,
|
|
52
|
-
searchTerms,
|
|
53
|
-
children: []
|
|
54
|
-
};
|
|
76
|
+
const { hash, all, roots } = pipe(
|
|
77
|
+
elements,
|
|
78
|
+
reduce((acc, treeItem) => {
|
|
79
|
+
treeItem.children = [];
|
|
55
80
|
byid[treeItem.value] = treeItem;
|
|
56
81
|
const parent = acc.all.findLast((root) => isAncestor(root.value, treeItem.value));
|
|
57
82
|
if (parent) {
|
|
58
83
|
parent.children.push(treeItem);
|
|
59
|
-
if (parent.children.length > 1) {
|
|
60
|
-
parent.children.sort(sortByLabel);
|
|
61
|
-
}
|
|
62
84
|
} else {
|
|
63
85
|
acc.roots.push(treeItem);
|
|
64
86
|
}
|
|
65
87
|
acc.all.push(treeItem);
|
|
88
|
+
acc.hash = stringHash(acc.hash + treeItem.value);
|
|
66
89
|
return acc;
|
|
67
90
|
}, {
|
|
91
|
+
hash: "empty",
|
|
68
92
|
all: [],
|
|
69
93
|
roots: []
|
|
70
94
|
})
|
|
71
95
|
);
|
|
72
96
|
return {
|
|
97
|
+
hash,
|
|
73
98
|
all,
|
|
74
99
|
byid,
|
|
75
|
-
roots
|
|
100
|
+
roots,
|
|
101
|
+
searchTerms: hasAtLeast(searchTerms, 1) ? searchTerms : [search]
|
|
76
102
|
};
|
|
77
|
-
}, [
|
|
103
|
+
}, [allElements, search]);
|
|
104
|
+
}
|
|
105
|
+
const btn = buttonsva();
|
|
106
|
+
const ElementsColumn = memo(() => {
|
|
107
|
+
const data = useElementsColumnData();
|
|
78
108
|
const handleClick = useHandleElementSelection();
|
|
79
109
|
if (data.all.length === 0) {
|
|
80
110
|
return /* @__PURE__ */ jsx(NothingFound, {});
|
|
@@ -85,8 +115,10 @@ const setHoveredNode = () => {
|
|
|
85
115
|
};
|
|
86
116
|
function ElementsTree({
|
|
87
117
|
data: {
|
|
118
|
+
searchTerms,
|
|
88
119
|
all,
|
|
89
120
|
byid,
|
|
121
|
+
hash,
|
|
90
122
|
roots
|
|
91
123
|
},
|
|
92
124
|
handleClick
|
|
@@ -102,7 +134,7 @@ function ElementsTree({
|
|
|
102
134
|
tree.expand(nd.value);
|
|
103
135
|
}
|
|
104
136
|
}
|
|
105
|
-
}, [
|
|
137
|
+
}, [hash]);
|
|
106
138
|
const onKeyDownCapture = useCallbackRef((e) => {
|
|
107
139
|
const target = e.target;
|
|
108
140
|
const id = target.getAttribute("data-value");
|
|
@@ -154,12 +186,12 @@ function ElementsTree({
|
|
|
154
186
|
subtree: treeSubtree
|
|
155
187
|
},
|
|
156
188
|
onKeyDownCapture,
|
|
157
|
-
renderNode: ElementTreeNode
|
|
189
|
+
renderNode: (p) => /* @__PURE__ */ jsx(ElementTreeNode, { ...p, searchTerms, handleClick })
|
|
158
190
|
}
|
|
159
191
|
);
|
|
160
192
|
}
|
|
161
|
-
function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
|
|
162
|
-
const { element,
|
|
193
|
+
function ElementTreeNode({ node, elementProps, hasChildren, expanded, handleClick, searchTerms }) {
|
|
194
|
+
const { label, element, viewsCount } = node;
|
|
163
195
|
const elementIcon$1 = IconOrShapeRenderer({
|
|
164
196
|
element: {
|
|
165
197
|
id: element.id,
|
|
@@ -169,8 +201,6 @@ function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
|
|
|
169
201
|
},
|
|
170
202
|
className: cx(btn.icon, elementIcon)
|
|
171
203
|
});
|
|
172
|
-
const views = [...element.views()];
|
|
173
|
-
const handleClick = useHandleElementSelection();
|
|
174
204
|
const key = `@tree.${node.value}`;
|
|
175
205
|
return /* @__PURE__ */ jsxs(m.div, { layoutId: key, ...elementProps, children: [
|
|
176
206
|
/* @__PURE__ */ jsx(
|
|
@@ -204,7 +234,7 @@ function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
|
|
|
204
234
|
tabIndex: -1,
|
|
205
235
|
"data-value": element.id,
|
|
206
236
|
className: cx(btn.root, "group", "likec4-element-button"),
|
|
207
|
-
...
|
|
237
|
+
...viewsCount > 0 && {
|
|
208
238
|
onClick: (e) => {
|
|
209
239
|
if (!hasChildren || expanded) {
|
|
210
240
|
e.stopPropagation();
|
|
@@ -216,23 +246,32 @@ function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
|
|
|
216
246
|
elementIcon$1,
|
|
217
247
|
/* @__PURE__ */ jsxs(Box, { style: { flexGrow: 1 }, children: [
|
|
218
248
|
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", align: "center", className: elementTitleAndId, children: [
|
|
219
|
-
/* @__PURE__ */ jsx(Highlight, { component: "div", highlight: searchTerms, className: btn.title, children:
|
|
249
|
+
/* @__PURE__ */ jsx(Highlight, { component: "div", highlight: searchTerms, className: btn.title, children: label }),
|
|
220
250
|
/* @__PURE__ */ jsx(Tooltip, { label: element.id, withinPortal: false, fz: "xs", disabled: !element.id.includes("."), children: /* @__PURE__ */ jsx(
|
|
221
251
|
Highlight,
|
|
222
252
|
{
|
|
223
253
|
component: "div",
|
|
224
|
-
highlight: searchTerms,
|
|
254
|
+
highlight: last(searchTerms),
|
|
225
255
|
className: cx(elementId, btn.descriptionColor),
|
|
226
256
|
children: nameFromFqn(element.id)
|
|
227
257
|
}
|
|
228
258
|
) })
|
|
229
259
|
] }),
|
|
230
|
-
/* @__PURE__ */ jsx(
|
|
260
|
+
/* @__PURE__ */ jsx(
|
|
261
|
+
Highlight,
|
|
262
|
+
{
|
|
263
|
+
component: "div",
|
|
264
|
+
highlight: element.summary.nonEmpty ? searchTerms : [],
|
|
265
|
+
className: btn.description,
|
|
266
|
+
lineClamp: 1,
|
|
267
|
+
children: element.summary.nonEmpty ? element.summary.text : "No description"
|
|
268
|
+
}
|
|
269
|
+
)
|
|
231
270
|
] }),
|
|
232
|
-
/* @__PURE__ */ jsx(
|
|
233
|
-
|
|
271
|
+
/* @__PURE__ */ jsx(Txt, { as: "div", className: cx(elementViewsCount, btn.descriptionColor), size: "xs", children: viewsCount === 0 ? "No views" : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
272
|
+
viewsCount,
|
|
234
273
|
" view",
|
|
235
|
-
|
|
274
|
+
viewsCount > 1 ? "s" : ""
|
|
236
275
|
] }) })
|
|
237
276
|
]
|
|
238
277
|
}
|
|
@@ -240,7 +279,6 @@ function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
|
|
|
240
279
|
] });
|
|
241
280
|
}
|
|
242
281
|
function useHandleElementSelection() {
|
|
243
|
-
const diagram = useDiagram();
|
|
244
282
|
const searchActorRef = useSearchActor();
|
|
245
283
|
return useCallbackRef((element) => {
|
|
246
284
|
const views = [...element.views()];
|
|
@@ -253,16 +291,11 @@ function useHandleElementSelection() {
|
|
|
253
291
|
searchActorRef.send({ type: "pickview.open", elementFqn });
|
|
254
292
|
return;
|
|
255
293
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
diagram.focusOnElement(elementFqn);
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
diagram.navigateTo(onlyOneViewId, void 0, elementFqn);
|
|
294
|
+
searchActorRef.send({
|
|
295
|
+
type: "navigate.to",
|
|
296
|
+
viewId: onlyOneViewId,
|
|
297
|
+
focusOnElement: elementFqn
|
|
264
298
|
});
|
|
265
|
-
return;
|
|
266
299
|
});
|
|
267
300
|
}
|
|
268
301
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Fqn } from '@likec4/core/types';
|
|
2
|
-
|
|
2
|
+
import { SearchActorRef } from '../searchActor';
|
|
3
|
+
export declare function PickView({ searchActorRef, elementFqn, }: {
|
|
4
|
+
searchActorRef: SearchActorRef;
|
|
3
5
|
elementFqn: Fqn;
|
|
4
6
|
}): import("react/jsx-runtime").JSX.Element;
|