@likec4/diagram 1.47.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/bundle/index.js +5489 -4909
- package/dist/LikeC4Diagram.js +18 -12
- package/dist/LikeC4Diagram.props.d.ts +1 -5
- package/dist/LikeC4ProjectsProvider.js +7 -5
- package/dist/LikeC4Styles.d.ts +2 -6
- package/dist/LikeC4Styles.js +44 -43
- package/dist/LikeC4View.d.ts +9 -1
- package/dist/LikeC4View.js +10 -8
- package/dist/ReactLikeC4.d.ts +12 -2
- package/dist/ReactLikeC4.js +5 -3
- package/dist/adhoc-editor/ActorProvider.d.ts +7 -0
- package/dist/adhoc-editor/ActorProvider.js +41 -0
- package/dist/adhoc-editor/EditorNavigationPanel.d.ts +1 -0
- package/dist/adhoc-editor/EditorNavigationPanel.js +32 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +4 -0
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +71 -0
- package/dist/adhoc-editor/SelectElementOverlay.d.ts +1 -0
- package/dist/adhoc-editor/SelectElementOverlay.js +124 -0
- package/dist/adhoc-editor/actor.d.ts +131 -0
- package/dist/adhoc-editor/actor.editor.d.ts +54 -0
- package/dist/adhoc-editor/actor.editor.js +96 -0
- package/dist/adhoc-editor/actor.js +20 -0
- package/dist/adhoc-editor/actor.layouter.d.ts +48 -0
- package/dist/adhoc-editor/actor.layouter.js +66 -0
- package/dist/adhoc-editor/actor.types.d.ts +57 -0
- package/dist/adhoc-editor/actor.types.js +22 -0
- package/dist/adhoc-editor/hooks.d.ts +14 -0
- package/dist/adhoc-editor/hooks.js +47 -0
- package/dist/adhoc-editor/index.d.ts +2 -0
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +6 -0
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.js +104 -0
- package/dist/base/const.d.ts +1 -0
- package/dist/base/const.js +2 -1
- package/dist/base/updateEdges.js +26 -3
- package/dist/base/updateNodes.js +8 -5
- package/dist/base-primitives/Markdown.d.ts +1 -1
- package/dist/base-primitives/Markdown.js +1 -1
- package/dist/base-primitives/NodeHandles.d.ts +4 -2
- package/dist/base-primitives/NodeHandles.js +46 -19
- package/dist/base-primitives/compound/CompoundActionButton.js +3 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.js +3 -1
- package/dist/base-primitives/compound/CompoundNodeContainer.js +6 -4
- package/dist/base-primitives/compound/CompoundTitle.js +1 -2
- package/dist/base-primitives/compound/actionbtns.css.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/edge/EdgeContainer.js +5 -2
- package/dist/base-primitives/edge/EdgeLabelContainer.js +5 -1
- package/dist/base-primitives/element/ElementActionButtons.js +31 -58
- package/dist/base-primitives/element/ElementData.d.ts +7 -7
- package/dist/base-primitives/element/ElementData.js +61 -48
- package/dist/base-primitives/element/ElementDetailsButton.js +2 -1
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +2 -2
- package/dist/base-primitives/element/ElementNodeContainer.js +1 -0
- package/dist/base-primitives/element/ElementTags.d.ts +6 -2
- package/dist/base-primitives/element/ElementTags.js +55 -32
- package/dist/base-primitives/index.d.ts +1 -1
- package/dist/base-primitives/memoEdge.js +1 -1
- package/dist/base-primitives/memoNode.js +1 -1
- package/dist/components/ErrorFallback.js +1 -1
- package/dist/components/Link.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NavigationPanel.js +9 -28
- package/dist/components/RootContainer.js +5 -8
- package/dist/context/DefaultMantineProvider.d.ts +2 -0
- package/dist/context/DefaultMantineProvider.js +66 -0
- package/dist/context/DiagramFeatures.js +12 -11
- package/dist/context/EnsureMantine.d.ts +0 -3
- package/dist/context/EnsureMantine.js +3 -4
- package/dist/context/IconRenderer.d.ts +14 -0
- package/dist/context/IconRenderer.js +8 -8
- package/dist/context/TagStylesContext.js +12 -4
- package/dist/custom/hooks.d.ts +2 -2
- package/dist/custom/index.d.ts +1 -1
- package/dist/custom/index.js +2 -2
- package/dist/editor/LikeC4EditorCallbacks.d.ts +18 -0
- package/dist/editor/LikeC4EditorCallbacks.js +5 -0
- package/dist/editor/LikeC4EditorProvider.d.ts +30 -18
- package/dist/editor/LikeC4EditorProvider.js +2 -2
- package/dist/editor/applyChangesToManualLayout.js +1 -0
- package/dist/editor/editorActor.actions.d.ts +25 -25
- package/dist/editor/editorActor.actions.js +2 -2
- package/dist/editor/editorActor.setup.d.ts +84 -0
- package/dist/editor/editorActor.setup.js +38 -0
- package/dist/editor/editorActor.states.d.ts +9 -0
- package/dist/editor/{editorActor.js → editorActor.states.js} +22 -64
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/useEditorActorLogic.d.ts +2 -564
- package/dist/editor/useEditorActorLogic.js +8 -12
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useCallbackRef.d.ts +6 -0
- package/dist/hooks/useCurrentViewModel.d.ts +10 -0
- package/dist/hooks/useDiagram.js +2 -2
- package/dist/hooks/useDiagramCompareLayout.d.ts +1 -1
- package/dist/hooks/useDiagramCompareLayout.js +1 -1
- package/dist/hooks/useLikeC4ElementsTree.js +1 -1
- package/dist/hooks/useLikeC4Model.js +2 -2
- package/dist/hooks/useSetState.d.ts +6 -1
- package/dist/hooks/useSetState.js +7 -4
- package/dist/hooks/useXYFlow.d.ts +7 -1
- package/dist/hooks/useXYFlow.js +4 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +4 -2
- package/dist/likec4diagram/DiagramUI.js +1 -3
- package/dist/likec4diagram/DiagramXYFlow.js +25 -12
- package/dist/likec4diagram/convert-to-xyflow.d.ts +2 -1
- package/dist/likec4diagram/convert-to-xyflow.js +2 -6
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +13 -14
- package/dist/likec4diagram/custom/edges/useControlPoints.js +3 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +3 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +68 -35
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +1 -2
- package/dist/likec4diagram/custom/nodes/ElementActions.js +7 -10
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +7 -5
- package/dist/likec4diagram/custom/nodes/nodes.js +25 -6
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +5 -4
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +6 -1
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +7 -6
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +2 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +15 -15
- package/dist/likec4diagram/relationship-popover/components.d.ts +7 -0
- package/dist/likec4diagram/relationship-popover/components.js +39 -0
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +4 -3
- package/dist/likec4diagram/state/DiagramActorProvider.js +14 -15
- package/dist/likec4diagram/state/assign.d.ts +1 -1
- package/dist/likec4diagram/state/createViewChange.js +16 -4
- package/dist/likec4diagram/state/machine.actions.d.ts +65 -0
- package/dist/likec4diagram/state/machine.actions.js +51 -39
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +22 -2
- package/dist/likec4diagram/state/machine.actions.layout.js +32 -14
- package/dist/likec4diagram/state/machine.d.ts +1 -1
- package/dist/likec4diagram/state/machine.js +31 -30
- package/dist/likec4diagram/state/machine.setup.d.ts +21 -5
- package/dist/likec4diagram/state/machine.setup.js +13 -4
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +32 -2
- package/dist/likec4diagram/state/machine.state.navigating.d.ts +1 -1
- package/dist/likec4diagram/state/machine.state.navigating.js +81 -49
- package/dist/likec4diagram/state/machine.state.ready.d.ts +508 -582
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +17 -148
- package/dist/likec4diagram/state/machine.state.ready.focused.js +6 -14
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +11 -96
- package/dist/likec4diagram/state/machine.state.ready.idle.js +7 -12
- package/dist/likec4diagram/state/machine.state.ready.js +80 -69
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +4 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.js +4 -3
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +145 -2
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +29 -21
- package/dist/likec4diagram/state/types.d.ts +1 -1
- package/dist/likec4diagram/state/utils.d.ts +13 -14
- package/dist/likec4diagram/state/utils.js +11 -3
- package/dist/likec4diagram/types.d.ts +9 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
- package/dist/likec4diagram/useLayoutConstraints.js +4 -1
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +11 -3
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +5 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.d.ts +7 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +10 -8
- package/dist/navigationpanel/NavigationPanel.js +2 -1
- package/dist/navigationpanel/NavigationPanelControls.js +4 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
- package/dist/navigationpanel/_common.d.ts +1 -1
- package/dist/navigationpanel/_common.js +1 -2
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +4 -5
- package/dist/navigationpanel/controls/DetailsControls.js +5 -5
- package/dist/navigationpanel/controls/LayoutWarning.js +2 -2
- package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
- package/dist/navigationpanel/controls/OpenSource.js +1 -1
- package/dist/navigationpanel/controls/SearchControl.d.ts +1 -2
- package/dist/navigationpanel/controls/SearchControl.js +8 -12
- package/dist/navigationpanel/controls/ToggleReadonly.js +4 -5
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +12 -6
- package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
- package/dist/navigationpanel/editorpanel/styles.js +4 -4
- package/dist/navigationpanel/styles.css.d.ts +1 -1
- package/dist/navigationpanel/styles.css.js +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -3
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +67 -67
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +1 -1
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +14 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.js +4 -4
- package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
- package/dist/overlays/element-details/MetadataValue.js +6 -7
- package/dist/overlays/element-details/TabPanelDeployments.js +7 -5
- package/dist/overlays/element-details/TabPanelRelationships.css.js +5 -25
- package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +3 -2
- package/dist/overlays/overlaysActor.js +18 -0
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +0 -5
- package/dist/overlays/relationship-details/RelationshipDetails.js +4 -4
- package/dist/overlays/relationship-details/SelectEdge.css.js +2 -2
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/compute.js +1 -1
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationship-details/custom/nodeTypes.js +14 -1
- package/dist/overlays/relationship-details/layout.js +1 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +0 -5
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +116 -21
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/custom/EmptyNode.js +21 -6
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +14 -1
- package/dist/overlays/relationships-browser/layout.d.ts +1 -1
- package/dist/overlays/relationships-browser/layout.js +1 -1
- package/dist/projects-overview/actor.js +8 -31
- package/dist/projects-overview/custom/nodeTypes.js +1 -1
- package/dist/projects-overview/panel/ProjectsOverviewPanel.js +1 -1
- package/dist/search/Search.d.ts +1 -4
- package/dist/search/Search.js +89 -87
- package/dist/search/components/ElementsColumn.css.js +3 -3
- package/dist/search/components/ElementsColumn.js +3 -4
- package/dist/search/components/PickView.d.ts +3 -1
- package/dist/search/components/PickView.js +5 -4
- package/dist/search/components/SearchByTags.js +1 -1
- package/dist/search/components/SearchInput.js +1 -1
- package/dist/search/components/ViewsColum.js +2 -2
- package/dist/search/components/_shared.css.d.ts +1 -1
- package/dist/search/components/_shared.css.js +1 -1
- package/dist/search/components/utils.js +1 -1
- package/dist/search/hooks.d.ts +1 -6
- package/dist/search/hooks.js +12 -9
- package/dist/search/searchActor.d.ts +1 -1
- package/dist/shadowroot/ShadowRoot.js +20 -19
- package/dist/shadowroot/styles.css.d.ts +0 -2
- package/dist/shadowroot/styles.css.js +1 -34
- package/dist/styles-font.css2.js +1 -1
- package/dist/styles.css2.js +1 -1
- package/dist/utils/view-bounds.js +9 -5
- package/dist/utils/xyflow.d.ts +19 -3
- package/dist/utils/xyflow.js +52 -9
- package/package.json +21 -20
- package/panda.buildinfo.json +80 -104
- package/styles-font.css +1 -1
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/editor/__tests__/fixture.d.ts +0 -205
- package/dist/editor/editorActor.d.ts +0 -653
- package/dist/likec4diagram/relationship-popover/styles.css.d.ts +0 -2
- package/dist/likec4diagram/relationship-popover/styles.css.js +0 -28
- package/dist/overlays/relationships-browser/custom/styles.css.d.ts +0 -1
- package/dist/overlays/relationships-browser/custom/styles.css.js +0 -14
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
|
@@ -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": [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { machine,
|
|
1
|
+
import { resetLastClickedNode, emitOpenSourceOfView, emitPaneClick, onNodeMouseLeave, onNodeMouseEnter, assignLastClickedNode, emitNodeClick, onEdgeMouseLeave, onEdgeMouseEnter, startEditing, onEdgeDoubleClick, stopEditing, emitEdgeClick, updateView, updateFeatures, ensureOverlaysActor, ensureSearchActor, ensureEditorActor, assignToggledFeatures, undimEverything, tagHighlight, emitOpenSource, openOverlay, notationsHighlight, handleNavigate, cancelEditing, disableCompareWithLatest, triggerChange, resetEdgesControlPoints, layoutAlign, closeAllOverlays, closeSearch, stopEditorActor } from './machine.actions.js';
|
|
2
|
+
import { machine, to } from './machine.setup.js';
|
|
3
3
|
import { focused } from './machine.state.ready.focused.js';
|
|
4
4
|
import { idle } from './machine.state.ready.idle.js';
|
|
5
5
|
import { printing } from './machine.state.ready.printing.js';
|
|
6
6
|
import { walkthrough } from './machine.state.ready.walkthrough.js';
|
|
7
7
|
import { typedSystem } from './utils.js';
|
|
8
8
|
import { x as xstateActions_cjsExports } from '../../_virtual/xstate-actions.cjs.js';
|
|
9
|
+
import { setViewport, cancelFitDiagram, raiseFitDiagram, fitDiagram } from './machine.actions.layout.js';
|
|
9
10
|
import { x as xstateGuards_cjsExports } from '../../_virtual/xstate-guards.cjs.js';
|
|
10
|
-
import { setViewport, fitDiagram, cancelFitDiagram, raiseFitDiagram } from './machine.actions.layout.js';
|
|
11
11
|
|
|
12
12
|
const ready = machine.createStateConfig({
|
|
13
13
|
initial: "idle",
|
|
@@ -31,9 +31,6 @@ const ready = machine.createStateConfig({
|
|
|
31
31
|
printing
|
|
32
32
|
},
|
|
33
33
|
on: {
|
|
34
|
-
"navigate.*": {
|
|
35
|
-
actions: handleNavigate()
|
|
36
|
-
},
|
|
37
34
|
"layout.align": {
|
|
38
35
|
guard: "not readonly",
|
|
39
36
|
actions: [
|
|
@@ -60,35 +57,46 @@ const ready = machine.createStateConfig({
|
|
|
60
57
|
})
|
|
61
58
|
]
|
|
62
59
|
},
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
"media.print.on": {
|
|
61
|
+
...to.printing
|
|
62
|
+
},
|
|
63
|
+
"navigate.*": {
|
|
64
|
+
actions: handleNavigate()
|
|
65
|
+
},
|
|
66
|
+
"notations.highlight": {
|
|
67
|
+
actions: notationsHighlight()
|
|
68
|
+
},
|
|
69
|
+
"notations.unhighlight": {
|
|
70
|
+
actions: undimEverything()
|
|
69
71
|
},
|
|
70
72
|
"open.elementDetails": {
|
|
71
73
|
actions: openOverlay()
|
|
72
74
|
},
|
|
73
|
-
"open.
|
|
75
|
+
"open.relationshipDetails": {
|
|
74
76
|
actions: openOverlay()
|
|
75
77
|
},
|
|
76
|
-
"open.
|
|
78
|
+
"open.relationshipsBrowser": {
|
|
77
79
|
actions: openOverlay()
|
|
78
80
|
},
|
|
81
|
+
"open.search": {
|
|
82
|
+
guard: "enabled: Search",
|
|
83
|
+
actions: xstateActions_cjsExports.sendTo(typedSystem.searchActor, ({ event }) => ({
|
|
84
|
+
type: "open",
|
|
85
|
+
search: event.search
|
|
86
|
+
}))
|
|
87
|
+
},
|
|
79
88
|
"open.source": {
|
|
80
89
|
guard: "enabled: OpenSource",
|
|
81
90
|
actions: emitOpenSource()
|
|
82
91
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
92
|
+
"tag.highlight": {
|
|
93
|
+
actions: tagHighlight()
|
|
94
|
+
},
|
|
95
|
+
"tag.unhighlight": {
|
|
96
|
+
actions: undimEverything()
|
|
86
97
|
},
|
|
87
98
|
"toggle.feature": {
|
|
88
|
-
actions:
|
|
89
|
-
assignToggledFeatures(),
|
|
90
|
-
ensureEditorActor()
|
|
91
|
-
]
|
|
99
|
+
actions: assignToggledFeatures()
|
|
92
100
|
},
|
|
93
101
|
"update.features": {
|
|
94
102
|
actions: [
|
|
@@ -98,17 +106,26 @@ const ready = machine.createStateConfig({
|
|
|
98
106
|
ensureEditorActor()
|
|
99
107
|
]
|
|
100
108
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
"update.view": [
|
|
110
|
+
// Redirect to navigating state if received another view
|
|
111
|
+
{
|
|
112
|
+
guard: "is another view",
|
|
113
|
+
...to.navigating
|
|
114
|
+
},
|
|
115
|
+
// Otherwise, just update the view in place
|
|
116
|
+
{
|
|
117
|
+
actions: updateView()
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"walkthrough.start": {
|
|
121
|
+
guard: "is dynamic view",
|
|
122
|
+
...to.walkthrough
|
|
109
123
|
},
|
|
110
|
-
"xyflow.
|
|
111
|
-
actions:
|
|
124
|
+
"xyflow.edgeClick": {
|
|
125
|
+
actions: [
|
|
126
|
+
resetLastClickedNode(),
|
|
127
|
+
emitEdgeClick()
|
|
128
|
+
]
|
|
112
129
|
},
|
|
113
130
|
"xyflow.edgeDoubleClick": {
|
|
114
131
|
guard: xstateGuards_cjsExports.and([
|
|
@@ -121,24 +138,32 @@ const ready = machine.createStateConfig({
|
|
|
121
138
|
stopEditing(true)
|
|
122
139
|
]
|
|
123
140
|
},
|
|
124
|
-
"
|
|
125
|
-
actions:
|
|
141
|
+
"xyflow.edgeMouseEnter": {
|
|
142
|
+
actions: onEdgeMouseEnter()
|
|
126
143
|
},
|
|
127
|
-
"
|
|
128
|
-
actions:
|
|
144
|
+
"xyflow.edgeMouseLeave": {
|
|
145
|
+
actions: onEdgeMouseLeave()
|
|
129
146
|
},
|
|
130
|
-
"
|
|
131
|
-
|
|
147
|
+
"xyflow.fitDiagram": {
|
|
148
|
+
guard: "enabled: FitView",
|
|
149
|
+
actions: [
|
|
150
|
+
xstateActions_cjsExports.assign({
|
|
151
|
+
viewportChangedManually: false
|
|
152
|
+
}),
|
|
153
|
+
fitDiagram()
|
|
154
|
+
]
|
|
132
155
|
},
|
|
133
|
-
"
|
|
134
|
-
actions:
|
|
156
|
+
"xyflow.nodeClick": {
|
|
157
|
+
actions: [
|
|
158
|
+
assignLastClickedNode(),
|
|
159
|
+
emitNodeClick()
|
|
160
|
+
]
|
|
135
161
|
},
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}))
|
|
162
|
+
"xyflow.nodeMouseEnter": {
|
|
163
|
+
actions: onNodeMouseEnter()
|
|
164
|
+
},
|
|
165
|
+
"xyflow.nodeMouseLeave": {
|
|
166
|
+
actions: onNodeMouseLeave()
|
|
142
167
|
},
|
|
143
168
|
"xyflow.paneClick": {
|
|
144
169
|
actions: [
|
|
@@ -146,38 +171,24 @@ const ready = machine.createStateConfig({
|
|
|
146
171
|
emitPaneClick()
|
|
147
172
|
]
|
|
148
173
|
},
|
|
149
|
-
"xyflow.
|
|
174
|
+
"xyflow.paneDblClick": {
|
|
150
175
|
actions: [
|
|
151
|
-
|
|
152
|
-
|
|
176
|
+
resetLastClickedNode(),
|
|
177
|
+
cancelFitDiagram(),
|
|
178
|
+
raiseFitDiagram(),
|
|
179
|
+
emitOpenSourceOfView(),
|
|
180
|
+
emitPaneClick()
|
|
153
181
|
]
|
|
154
182
|
},
|
|
155
|
-
"xyflow.
|
|
183
|
+
"xyflow.resized": {
|
|
184
|
+
guard: ({ context }) => context.features.enableFitView && !context.viewportChangedManually,
|
|
156
185
|
actions: [
|
|
157
|
-
|
|
158
|
-
|
|
186
|
+
cancelFitDiagram(),
|
|
187
|
+
raiseFitDiagram({ delay: 150 })
|
|
159
188
|
]
|
|
160
189
|
},
|
|
161
|
-
"xyflow.fitDiagram": {
|
|
162
|
-
guard: "enabled: FitView",
|
|
163
|
-
actions: fitDiagram()
|
|
164
|
-
},
|
|
165
190
|
"xyflow.setViewport": {
|
|
166
191
|
actions: setViewport()
|
|
167
|
-
},
|
|
168
|
-
"update.view": [
|
|
169
|
-
// Redirect to navigating state if received another view
|
|
170
|
-
{
|
|
171
|
-
guard: "is another view",
|
|
172
|
-
target: targetState.navigating
|
|
173
|
-
},
|
|
174
|
-
// Otherwise, just update the view in place
|
|
175
|
-
{
|
|
176
|
-
actions: updateView()
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"media.print.on": {
|
|
180
|
-
target: targetState.printing
|
|
181
192
|
}
|
|
182
193
|
}
|
|
183
194
|
});
|