@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
|
@@ -134,9 +134,13 @@ export declare const focused: {
|
|
|
134
134
|
type: "click: selected edge";
|
|
135
135
|
params: unknown;
|
|
136
136
|
};
|
|
137
|
+
"click: active walkthrough step": {
|
|
138
|
+
type: "click: active walkthrough step";
|
|
139
|
+
params: unknown;
|
|
140
|
+
};
|
|
137
141
|
}>, never, EmittedEvents>[];
|
|
138
|
-
target?: never;
|
|
139
142
|
} | {
|
|
143
|
+
target: string;
|
|
140
144
|
guard: "click: focused node";
|
|
141
145
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
142
146
|
hotkeyActorLogic: {
|
|
@@ -165,7 +169,6 @@ export declare const focused: {
|
|
|
165
169
|
id: "editor";
|
|
166
170
|
};
|
|
167
171
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
168
|
-
target: string;
|
|
169
172
|
} | {
|
|
170
173
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
171
174
|
hotkeyActorLogic: {
|
|
@@ -198,7 +201,6 @@ export declare const focused: {
|
|
|
198
201
|
node: import("../types").Types.Node;
|
|
199
202
|
}, Events, undefined, never, never, never, never, never>)[];
|
|
200
203
|
guard?: never;
|
|
201
|
-
target?: never;
|
|
202
204
|
})[];
|
|
203
205
|
'focus.node': {
|
|
204
206
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
@@ -316,40 +318,18 @@ export declare const focused: {
|
|
|
316
318
|
type: "click: selected edge";
|
|
317
319
|
params: unknown;
|
|
318
320
|
};
|
|
321
|
+
"click: active walkthrough step": {
|
|
322
|
+
type: "click: active walkthrough step";
|
|
323
|
+
params: unknown;
|
|
324
|
+
};
|
|
319
325
|
}>, never, EmittedEvents>[];
|
|
320
326
|
};
|
|
321
327
|
'key.esc': {
|
|
322
328
|
target: string;
|
|
323
329
|
};
|
|
324
330
|
'xyflow.paneClick': {
|
|
325
|
-
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
326
|
-
hotkeyActorLogic: {
|
|
327
|
-
src: "hotkeyActorLogic";
|
|
328
|
-
logic: HotkeyActorLogic;
|
|
329
|
-
id: "hotkey";
|
|
330
|
-
};
|
|
331
|
-
overlaysActorLogic: {
|
|
332
|
-
src: "overlaysActorLogic";
|
|
333
|
-
logic: OverlaysActorLogic;
|
|
334
|
-
id: "overlays";
|
|
335
|
-
};
|
|
336
|
-
searchActorLogic: {
|
|
337
|
-
src: "searchActorLogic";
|
|
338
|
-
logic: SearchActorLogic;
|
|
339
|
-
id: "search";
|
|
340
|
-
};
|
|
341
|
-
mediaPrintActorLogic: {
|
|
342
|
-
src: "mediaPrintActorLogic";
|
|
343
|
-
logic: MediaPrintActorLogic;
|
|
344
|
-
id: "mediaPrint";
|
|
345
|
-
};
|
|
346
|
-
editorActor: {
|
|
347
|
-
src: "editorActor";
|
|
348
|
-
logic: EditorActorLogic;
|
|
349
|
-
id: "editor";
|
|
350
|
-
};
|
|
351
|
-
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
352
331
|
target: string;
|
|
332
|
+
actions: ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>[];
|
|
353
333
|
};
|
|
354
334
|
'notations.unhighlight': {
|
|
355
335
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
@@ -467,6 +447,10 @@ export declare const focused: {
|
|
|
467
447
|
type: "click: selected edge";
|
|
468
448
|
params: unknown;
|
|
469
449
|
};
|
|
450
|
+
"click: active walkthrough step": {
|
|
451
|
+
type: "click: active walkthrough step";
|
|
452
|
+
params: unknown;
|
|
453
|
+
};
|
|
470
454
|
}>, never, EmittedEvents>;
|
|
471
455
|
};
|
|
472
456
|
'tag.unhighlight': {
|
|
@@ -585,126 +569,11 @@ export declare const focused: {
|
|
|
585
569
|
type: "click: selected edge";
|
|
586
570
|
params: unknown;
|
|
587
571
|
};
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
'update.view': {
|
|
591
|
-
guard: "is same view";
|
|
592
|
-
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
593
|
-
hotkeyActorLogic: {
|
|
594
|
-
src: "hotkeyActorLogic";
|
|
595
|
-
logic: HotkeyActorLogic;
|
|
596
|
-
id: "hotkey";
|
|
597
|
-
};
|
|
598
|
-
overlaysActorLogic: {
|
|
599
|
-
src: "overlaysActorLogic";
|
|
600
|
-
logic: OverlaysActorLogic;
|
|
601
|
-
id: "overlays";
|
|
602
|
-
};
|
|
603
|
-
searchActorLogic: {
|
|
604
|
-
src: "searchActorLogic";
|
|
605
|
-
logic: SearchActorLogic;
|
|
606
|
-
id: "search";
|
|
607
|
-
};
|
|
608
|
-
mediaPrintActorLogic: {
|
|
609
|
-
src: "mediaPrintActorLogic";
|
|
610
|
-
logic: MediaPrintActorLogic;
|
|
611
|
-
id: "mediaPrint";
|
|
612
|
-
};
|
|
613
|
-
editorActor: {
|
|
614
|
-
src: "editorActor";
|
|
615
|
-
logic: EditorActorLogic;
|
|
616
|
-
id: "editor";
|
|
617
|
-
};
|
|
618
|
-
}>, never, Values<{
|
|
619
|
-
isReady: {
|
|
620
|
-
type: "isReady";
|
|
621
|
-
params: unknown;
|
|
622
|
-
};
|
|
623
|
-
"enabled: Editor": {
|
|
624
|
-
type: "enabled: Editor";
|
|
625
|
-
params: unknown;
|
|
626
|
-
};
|
|
627
|
-
"enabled: FitView": {
|
|
628
|
-
type: "enabled: FitView";
|
|
629
|
-
params: unknown;
|
|
630
|
-
};
|
|
631
|
-
"enabled: FocusMode": {
|
|
632
|
-
type: "enabled: FocusMode";
|
|
633
|
-
params: unknown;
|
|
634
|
-
};
|
|
635
|
-
"enabled: Readonly": {
|
|
636
|
-
type: "enabled: Readonly";
|
|
637
|
-
params: unknown;
|
|
638
|
-
};
|
|
639
|
-
"enabled: RelationshipDetails": {
|
|
640
|
-
type: "enabled: RelationshipDetails";
|
|
641
|
-
params: unknown;
|
|
642
|
-
};
|
|
643
|
-
"enabled: Search": {
|
|
644
|
-
type: "enabled: Search";
|
|
645
|
-
params: unknown;
|
|
646
|
-
};
|
|
647
|
-
"enabled: ElementDetails": {
|
|
648
|
-
type: "enabled: ElementDetails";
|
|
649
|
-
params: unknown;
|
|
650
|
-
};
|
|
651
|
-
"enabled: OpenSource": {
|
|
652
|
-
type: "enabled: OpenSource";
|
|
653
|
-
params: unknown;
|
|
654
|
-
};
|
|
655
|
-
"enabled: DynamicViewWalkthrough": {
|
|
656
|
-
type: "enabled: DynamicViewWalkthrough";
|
|
657
|
-
params: unknown;
|
|
658
|
-
};
|
|
659
|
-
"focus.node: autoUnfocus": {
|
|
660
|
-
type: "focus.node: autoUnfocus";
|
|
661
|
-
params: unknown;
|
|
662
|
-
};
|
|
663
|
-
"enabled: Overlays": {
|
|
664
|
-
type: "enabled: Overlays";
|
|
665
|
-
params: unknown;
|
|
666
|
-
};
|
|
667
|
-
"not readonly": {
|
|
668
|
-
type: "not readonly";
|
|
572
|
+
"click: active walkthrough step": {
|
|
573
|
+
type: "click: active walkthrough step";
|
|
669
574
|
params: unknown;
|
|
670
575
|
};
|
|
671
|
-
|
|
672
|
-
type: "is dynamic view";
|
|
673
|
-
params: unknown;
|
|
674
|
-
};
|
|
675
|
-
"is same view": {
|
|
676
|
-
type: "is same view";
|
|
677
|
-
params: unknown;
|
|
678
|
-
};
|
|
679
|
-
"is another view": {
|
|
680
|
-
type: "is another view";
|
|
681
|
-
params: unknown;
|
|
682
|
-
};
|
|
683
|
-
"click: node has modelFqn": {
|
|
684
|
-
type: "click: node has modelFqn";
|
|
685
|
-
params: unknown;
|
|
686
|
-
};
|
|
687
|
-
"click: selected node": {
|
|
688
|
-
type: "click: selected node";
|
|
689
|
-
params: unknown;
|
|
690
|
-
};
|
|
691
|
-
"click: same node": {
|
|
692
|
-
type: "click: same node";
|
|
693
|
-
params: unknown;
|
|
694
|
-
};
|
|
695
|
-
"click: focused node": {
|
|
696
|
-
type: "click: focused node";
|
|
697
|
-
params: unknown;
|
|
698
|
-
};
|
|
699
|
-
"click: node has connections": {
|
|
700
|
-
type: "click: node has connections";
|
|
701
|
-
params: unknown;
|
|
702
|
-
};
|
|
703
|
-
"click: selected edge": {
|
|
704
|
-
type: "click: selected edge";
|
|
705
|
-
params: unknown;
|
|
706
|
-
};
|
|
707
|
-
}>, never, EmittedEvents>[];
|
|
576
|
+
}>, never, EmittedEvents>;
|
|
708
577
|
};
|
|
709
578
|
};
|
|
710
579
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { machine, targetState } from './machine.setup.js';
|
|
1
|
+
import { focusOnNodesAndEdges, emitPaneClick, assignFocusedNode, openSourceOfFocusedOrLastClickedNode, assignLastClickedNode, openElementDetails, emitNodeClick, stopHotKeyActor, undimEverything, cancelAutoUnfocusTimer, startHotKeyActor, startAutoUnfocusTimer } from './machine.actions.js';
|
|
2
|
+
import { machine, to, targetState } from './machine.setup.js';
|
|
3
3
|
import { fitFocusedBounds, returnViewportBefore, cancelFitDiagram, assignViewportBefore } from './machine.actions.layout.js';
|
|
4
4
|
import { x as xstateGuards_cjsExports } from '../../_virtual/xstate-guards.cjs.js';
|
|
5
5
|
import { x as xstateActions_cjsExports } from '../../_virtual/xstate-actions.cjs.js';
|
|
@@ -27,7 +27,7 @@ const focused = machine.createStateConfig({
|
|
|
27
27
|
],
|
|
28
28
|
on: {
|
|
29
29
|
"focus.autoUnfocus": {
|
|
30
|
-
|
|
30
|
+
...to.idle
|
|
31
31
|
},
|
|
32
32
|
"xyflow.nodeClick": [
|
|
33
33
|
{
|
|
@@ -48,7 +48,7 @@ const focused = machine.createStateConfig({
|
|
|
48
48
|
assignLastClickedNode(),
|
|
49
49
|
emitNodeClick()
|
|
50
50
|
],
|
|
51
|
-
|
|
51
|
+
...to.idle
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
actions: [
|
|
@@ -70,27 +70,19 @@ const focused = machine.createStateConfig({
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"key.esc": {
|
|
73
|
-
|
|
73
|
+
...to.idle
|
|
74
74
|
},
|
|
75
75
|
"xyflow.paneClick": {
|
|
76
76
|
actions: [
|
|
77
|
-
resetLastClickedNode(),
|
|
78
77
|
emitPaneClick()
|
|
79
78
|
],
|
|
80
|
-
|
|
79
|
+
...to.idle
|
|
81
80
|
},
|
|
82
81
|
"notations.unhighlight": {
|
|
83
82
|
actions: focusOnNodesAndEdges()
|
|
84
83
|
},
|
|
85
84
|
"tag.unhighlight": {
|
|
86
85
|
actions: focusOnNodesAndEdges()
|
|
87
|
-
},
|
|
88
|
-
"update.view": {
|
|
89
|
-
guard: "is same view",
|
|
90
|
-
actions: [
|
|
91
|
-
updateView(),
|
|
92
|
-
focusOnNodesAndEdges()
|
|
93
|
-
]
|
|
94
86
|
}
|
|
95
87
|
}
|
|
96
88
|
});
|
|
@@ -10,6 +10,7 @@ export declare const idle: {
|
|
|
10
10
|
id: string;
|
|
11
11
|
on: {
|
|
12
12
|
'xyflow.nodeClick': ({
|
|
13
|
+
target: string;
|
|
13
14
|
guard: GuardPredicate<Context, {
|
|
14
15
|
type: "xyflow.nodeClick";
|
|
15
16
|
node: import("../types").Types.Node;
|
|
@@ -44,7 +45,6 @@ export declare const idle: {
|
|
|
44
45
|
id: "editor";
|
|
45
46
|
};
|
|
46
47
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
47
|
-
target: string;
|
|
48
48
|
} | {
|
|
49
49
|
guard: GuardPredicate<Context, {
|
|
50
50
|
type: "xyflow.nodeClick";
|
|
@@ -168,8 +168,11 @@ export declare const idle: {
|
|
|
168
168
|
type: "click: selected edge";
|
|
169
169
|
params: unknown;
|
|
170
170
|
};
|
|
171
|
+
"click: active walkthrough step": {
|
|
172
|
+
type: "click: active walkthrough step";
|
|
173
|
+
params: unknown;
|
|
174
|
+
};
|
|
171
175
|
}>, never, EmittedEvents>[];
|
|
172
|
-
target?: never;
|
|
173
176
|
} | {
|
|
174
177
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
175
178
|
hotkeyActorLogic: {
|
|
@@ -286,9 +289,12 @@ export declare const idle: {
|
|
|
286
289
|
type: "click: selected edge";
|
|
287
290
|
params: unknown;
|
|
288
291
|
};
|
|
292
|
+
"click: active walkthrough step": {
|
|
293
|
+
type: "click: active walkthrough step";
|
|
294
|
+
params: unknown;
|
|
295
|
+
};
|
|
289
296
|
}>, never, EmittedEvents>[];
|
|
290
297
|
guard?: never;
|
|
291
|
-
target?: never;
|
|
292
298
|
})[];
|
|
293
299
|
'xyflow.paneClick': {
|
|
294
300
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
@@ -320,9 +326,7 @@ export declare const idle: {
|
|
|
320
326
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
321
327
|
};
|
|
322
328
|
'xyflow.paneDblClick': {
|
|
323
|
-
actions: ActionFunction<Context, {
|
|
324
|
-
type: "xyflow.paneDblClick";
|
|
325
|
-
}, Events, undefined, Values<{
|
|
329
|
+
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
326
330
|
hotkeyActorLogic: {
|
|
327
331
|
src: "hotkeyActorLogic";
|
|
328
332
|
logic: HotkeyActorLogic;
|
|
@@ -348,96 +352,7 @@ export declare const idle: {
|
|
|
348
352
|
logic: EditorActorLogic;
|
|
349
353
|
id: "editor";
|
|
350
354
|
};
|
|
351
|
-
}>, never,
|
|
352
|
-
isReady: {
|
|
353
|
-
type: "isReady";
|
|
354
|
-
params: unknown;
|
|
355
|
-
};
|
|
356
|
-
"enabled: Editor": {
|
|
357
|
-
type: "enabled: Editor";
|
|
358
|
-
params: unknown;
|
|
359
|
-
};
|
|
360
|
-
"enabled: FitView": {
|
|
361
|
-
type: "enabled: FitView";
|
|
362
|
-
params: unknown;
|
|
363
|
-
};
|
|
364
|
-
"enabled: FocusMode": {
|
|
365
|
-
type: "enabled: FocusMode";
|
|
366
|
-
params: unknown;
|
|
367
|
-
};
|
|
368
|
-
"enabled: Readonly": {
|
|
369
|
-
type: "enabled: Readonly";
|
|
370
|
-
params: unknown;
|
|
371
|
-
};
|
|
372
|
-
"enabled: RelationshipDetails": {
|
|
373
|
-
type: "enabled: RelationshipDetails";
|
|
374
|
-
params: unknown;
|
|
375
|
-
};
|
|
376
|
-
"enabled: Search": {
|
|
377
|
-
type: "enabled: Search";
|
|
378
|
-
params: unknown;
|
|
379
|
-
};
|
|
380
|
-
"enabled: ElementDetails": {
|
|
381
|
-
type: "enabled: ElementDetails";
|
|
382
|
-
params: unknown;
|
|
383
|
-
};
|
|
384
|
-
"enabled: OpenSource": {
|
|
385
|
-
type: "enabled: OpenSource";
|
|
386
|
-
params: unknown;
|
|
387
|
-
};
|
|
388
|
-
"enabled: DynamicViewWalkthrough": {
|
|
389
|
-
type: "enabled: DynamicViewWalkthrough";
|
|
390
|
-
params: unknown;
|
|
391
|
-
};
|
|
392
|
-
"focus.node: autoUnfocus": {
|
|
393
|
-
type: "focus.node: autoUnfocus";
|
|
394
|
-
params: unknown;
|
|
395
|
-
};
|
|
396
|
-
"enabled: Overlays": {
|
|
397
|
-
type: "enabled: Overlays";
|
|
398
|
-
params: unknown;
|
|
399
|
-
};
|
|
400
|
-
"not readonly": {
|
|
401
|
-
type: "not readonly";
|
|
402
|
-
params: unknown;
|
|
403
|
-
};
|
|
404
|
-
"is dynamic view": {
|
|
405
|
-
type: "is dynamic view";
|
|
406
|
-
params: unknown;
|
|
407
|
-
};
|
|
408
|
-
"is same view": {
|
|
409
|
-
type: "is same view";
|
|
410
|
-
params: unknown;
|
|
411
|
-
};
|
|
412
|
-
"is another view": {
|
|
413
|
-
type: "is another view";
|
|
414
|
-
params: unknown;
|
|
415
|
-
};
|
|
416
|
-
"click: node has modelFqn": {
|
|
417
|
-
type: "click: node has modelFqn";
|
|
418
|
-
params: unknown;
|
|
419
|
-
};
|
|
420
|
-
"click: selected node": {
|
|
421
|
-
type: "click: selected node";
|
|
422
|
-
params: unknown;
|
|
423
|
-
};
|
|
424
|
-
"click: same node": {
|
|
425
|
-
type: "click: same node";
|
|
426
|
-
params: unknown;
|
|
427
|
-
};
|
|
428
|
-
"click: focused node": {
|
|
429
|
-
type: "click: focused node";
|
|
430
|
-
params: unknown;
|
|
431
|
-
};
|
|
432
|
-
"click: node has connections": {
|
|
433
|
-
type: "click: node has connections";
|
|
434
|
-
params: unknown;
|
|
435
|
-
};
|
|
436
|
-
"click: selected edge": {
|
|
437
|
-
type: "click: selected edge";
|
|
438
|
-
params: unknown;
|
|
439
|
-
};
|
|
440
|
-
}>, never, EmittedEvents>[];
|
|
355
|
+
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
441
356
|
};
|
|
442
357
|
'focus.node': ({
|
|
443
358
|
guard: "focus.node: autoUnfocus";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resetLastClickedNode, emitEdgeClick, assignFocusedNode, emitPaneClick, assignLastClickedNode, emitNodeClick, openSourceOfFocusedOrLastClickedNode, openElementDetails
|
|
2
|
-
import { machine, targetState } from './machine.setup.js';
|
|
1
|
+
import { resetLastClickedNode, emitEdgeClick, assignFocusedNode, emitOpenSourceOfView, emitPaneClick, assignLastClickedNode, emitNodeClick, openSourceOfFocusedOrLastClickedNode, openElementDetails } from './machine.actions.js';
|
|
2
|
+
import { machine, targetState, to } from './machine.setup.js';
|
|
3
3
|
import { x as xstateActions_cjsExports } from '../../_virtual/xstate-actions.cjs.js';
|
|
4
4
|
import { x as xstateGuards_cjsExports } from '../../_virtual/xstate-guards.cjs.js';
|
|
5
|
-
import {
|
|
5
|
+
import { raiseFitDiagram } from './machine.actions.layout.js';
|
|
6
6
|
|
|
7
7
|
const idle = machine.createStateConfig({
|
|
8
8
|
id: targetState.idle.slice(1),
|
|
@@ -23,7 +23,7 @@ const idle = machine.createStateConfig({
|
|
|
23
23
|
assignFocusedNode(),
|
|
24
24
|
emitNodeClick()
|
|
25
25
|
],
|
|
26
|
-
|
|
26
|
+
...to.focused
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
guard: xstateGuards_cjsExports.and([
|
|
@@ -59,14 +59,9 @@ const idle = machine.createStateConfig({
|
|
|
59
59
|
"xyflow.paneDblClick": {
|
|
60
60
|
actions: [
|
|
61
61
|
resetLastClickedNode(),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
enqueue(
|
|
67
|
-
emitOpenSource({ view: context.view.id })
|
|
68
|
-
);
|
|
69
|
-
})
|
|
62
|
+
raiseFitDiagram(),
|
|
63
|
+
emitOpenSourceOfView(),
|
|
64
|
+
emitPaneClick()
|
|
70
65
|
]
|
|
71
66
|
},
|
|
72
67
|
"focus.node": [
|