@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
|
@@ -1,653 +0,0 @@
|
|
|
1
|
-
import { ActorRef, NonReducibleUnknown, SnapshotFrom, SetupReturn, PromiseActorLogic, EventObject, MetaObject, StateMachine, ActorRefFromLogic, Values, ConditionalRequired, InputFrom, RequiredActorOptions, IsNotNever, GetConcreteByKey, AnyActorLogic, RequiredLogicInput, MachineSnapshot, AnyActorRef, StateValue, AnyEventObject, CancelAction, ActionFunction, LogAction, DoneActorEvent, ErrorActorEvent, ActionArgs, StopAction } from 'xstate';
|
|
2
|
-
import { Types } from '../likec4diagram/types';
|
|
3
|
-
import { HotKeyEvent, HotkeyActorLogic } from './hotkeyActor';
|
|
4
|
-
import type * as t from '@likec4/core/types';
|
|
5
|
-
export declare namespace EditorCalls {
|
|
6
|
-
type ApplyLatestToManual = (params: {
|
|
7
|
-
input: ApplyLatestToManual.Input;
|
|
8
|
-
}) => Promise<ApplyLatestToManual.Output>;
|
|
9
|
-
namespace ApplyLatestToManual {
|
|
10
|
-
type Input = {
|
|
11
|
-
viewId: t.ViewId;
|
|
12
|
-
current: t.LayoutedView | undefined;
|
|
13
|
-
};
|
|
14
|
-
type Output = {
|
|
15
|
-
updated: t.LayoutedView;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
type ExecuteChange = (params: {
|
|
19
|
-
input: ExecuteChange.Input;
|
|
20
|
-
}) => Promise<ExecuteChange.Output>;
|
|
21
|
-
namespace ExecuteChange {
|
|
22
|
-
type Input = {
|
|
23
|
-
viewId: t.ViewId;
|
|
24
|
-
changes: t.ViewChange[];
|
|
25
|
-
};
|
|
26
|
-
type Output = NonReducibleUnknown;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export type EditorActorEvent = {
|
|
30
|
-
type: 'sync';
|
|
31
|
-
} | {
|
|
32
|
-
type: 'change';
|
|
33
|
-
change: t.ViewChange;
|
|
34
|
-
} | {
|
|
35
|
-
type: 'edit.start';
|
|
36
|
-
subject: 'node' | 'edge';
|
|
37
|
-
} | {
|
|
38
|
-
type: 'edit.finish';
|
|
39
|
-
wasChanged?: boolean;
|
|
40
|
-
} | {
|
|
41
|
-
type: 'applyLatestToManual';
|
|
42
|
-
} | {
|
|
43
|
-
type: 'synced';
|
|
44
|
-
} | {
|
|
45
|
-
type: 'cancel';
|
|
46
|
-
} | {
|
|
47
|
-
type: 'reset';
|
|
48
|
-
} | HotKeyEvent;
|
|
49
|
-
type HistorySnapshot = {
|
|
50
|
-
view: t.LayoutedView;
|
|
51
|
-
change: t.ViewChange.SaveViewSnapshot;
|
|
52
|
-
xynodes: Types.Node[];
|
|
53
|
-
xyedges: Types.Edge[];
|
|
54
|
-
synched: boolean;
|
|
55
|
-
};
|
|
56
|
-
export interface EditorActorInput {
|
|
57
|
-
viewId: t.ViewId;
|
|
58
|
-
}
|
|
59
|
-
export interface EditorActorContext {
|
|
60
|
-
viewId: t.ViewId;
|
|
61
|
-
pendingChanges: t.ViewChange[];
|
|
62
|
-
history: ReadonlyArray<HistorySnapshot>;
|
|
63
|
-
/**
|
|
64
|
-
* The state before editing started
|
|
65
|
-
*/
|
|
66
|
-
beforeEditing: HistorySnapshot | null;
|
|
67
|
-
/**
|
|
68
|
-
* The subject of the edit
|
|
69
|
-
*/
|
|
70
|
-
editing: 'node' | 'edge' | null;
|
|
71
|
-
}
|
|
72
|
-
export type EditorActorEmitedEvent = {
|
|
73
|
-
type: 'idle';
|
|
74
|
-
};
|
|
75
|
-
export declare const machine: SetupReturn<EditorActorContext, EditorActorEvent, {
|
|
76
|
-
applyLatest: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
77
|
-
executeChange: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
78
|
-
hotkey: HotkeyActorLogic;
|
|
79
|
-
}, {
|
|
80
|
-
hotkey: "hotkey";
|
|
81
|
-
}, {}, {
|
|
82
|
-
'has pending': unknown;
|
|
83
|
-
'can undo': unknown;
|
|
84
|
-
}, "350ms" | "waitBeforeSync", "pending", EditorActorInput, NonReducibleUnknown, EditorActorEmitedEvent, MetaObject>;
|
|
85
|
-
declare const _editorActorLogic: StateMachine<EditorActorContext, EditorActorEvent, {
|
|
86
|
-
[x: string]: ActorRefFromLogic<HotkeyActorLogic> | ActorRefFromLogic<PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>> | ActorRefFromLogic<PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>> | undefined;
|
|
87
|
-
hotkey?: ActorRefFromLogic<HotkeyActorLogic>;
|
|
88
|
-
}, Values<{
|
|
89
|
-
hotkey: {
|
|
90
|
-
src: "hotkey";
|
|
91
|
-
logic: HotkeyActorLogic;
|
|
92
|
-
id: "hotkey";
|
|
93
|
-
};
|
|
94
|
-
applyLatest: {
|
|
95
|
-
src: "applyLatest";
|
|
96
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
97
|
-
id: string | undefined;
|
|
98
|
-
};
|
|
99
|
-
executeChange: {
|
|
100
|
-
src: "executeChange";
|
|
101
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
102
|
-
id: string | undefined;
|
|
103
|
-
};
|
|
104
|
-
}>, never, Values<{
|
|
105
|
-
"has pending": {
|
|
106
|
-
type: "has pending";
|
|
107
|
-
params: unknown;
|
|
108
|
-
};
|
|
109
|
-
"can undo": {
|
|
110
|
-
type: "can undo";
|
|
111
|
-
params: unknown;
|
|
112
|
-
};
|
|
113
|
-
}>, "350ms" | "waitBeforeSync", "pending" | "idle" | "editing" | "afterEdit" | "executeChanges" | {
|
|
114
|
-
applyLatestToManual: "call" | "wait";
|
|
115
|
-
}, "pending", EditorActorInput, NonReducibleUnknown, EditorActorEmitedEvent, MetaObject, {
|
|
116
|
-
readonly id: "editor";
|
|
117
|
-
readonly context: ({ input }: {
|
|
118
|
-
spawn: {
|
|
119
|
-
<TSrc extends "hotkey" | "applyLatest" | "executeChange">(logic: TSrc, ...[options]: ({
|
|
120
|
-
src: "hotkey";
|
|
121
|
-
logic: HotkeyActorLogic;
|
|
122
|
-
id: "hotkey";
|
|
123
|
-
} extends infer T ? T extends {
|
|
124
|
-
src: "hotkey";
|
|
125
|
-
logic: HotkeyActorLogic;
|
|
126
|
-
id: "hotkey";
|
|
127
|
-
} ? T extends {
|
|
128
|
-
src: TSrc;
|
|
129
|
-
} ? ConditionalRequired<[options?: {
|
|
130
|
-
id?: T["id"];
|
|
131
|
-
systemId?: string;
|
|
132
|
-
input?: InputFrom<T["logic"]>;
|
|
133
|
-
syncSnapshot?: boolean;
|
|
134
|
-
} & { [K in RequiredActorOptions<T>]: unknown; }], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
135
|
-
src: "applyLatest";
|
|
136
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
137
|
-
id: string | undefined;
|
|
138
|
-
} extends infer T_1 ? T_1 extends {
|
|
139
|
-
src: "applyLatest";
|
|
140
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
141
|
-
id: string | undefined;
|
|
142
|
-
} ? T_1 extends {
|
|
143
|
-
src: TSrc;
|
|
144
|
-
} ? ConditionalRequired<[options?: {
|
|
145
|
-
id?: T_1["id"];
|
|
146
|
-
systemId?: string;
|
|
147
|
-
input?: InputFrom<T_1["logic"]>;
|
|
148
|
-
syncSnapshot?: boolean;
|
|
149
|
-
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
150
|
-
src: "executeChange";
|
|
151
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
152
|
-
id: string | undefined;
|
|
153
|
-
} extends infer T_2 ? T_2 extends {
|
|
154
|
-
src: "executeChange";
|
|
155
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
156
|
-
id: string | undefined;
|
|
157
|
-
} ? T_2 extends {
|
|
158
|
-
src: TSrc;
|
|
159
|
-
} ? ConditionalRequired<[options?: {
|
|
160
|
-
id?: T_2["id"];
|
|
161
|
-
systemId?: string;
|
|
162
|
-
input?: InputFrom<T_2["logic"]>;
|
|
163
|
-
syncSnapshot?: boolean;
|
|
164
|
-
} & { [K_2 in RequiredActorOptions<T_2>]: unknown; }], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never)): ActorRefFromLogic< GetConcreteByKey<Values<{
|
|
165
|
-
hotkey: {
|
|
166
|
-
src: "hotkey";
|
|
167
|
-
logic: HotkeyActorLogic;
|
|
168
|
-
id: "hotkey";
|
|
169
|
-
};
|
|
170
|
-
applyLatest: {
|
|
171
|
-
src: "applyLatest";
|
|
172
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
173
|
-
id: string | undefined;
|
|
174
|
-
};
|
|
175
|
-
executeChange: {
|
|
176
|
-
src: "executeChange";
|
|
177
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
178
|
-
id: string | undefined;
|
|
179
|
-
};
|
|
180
|
-
}>, "src", TSrc>["logic"]>;
|
|
181
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
182
|
-
id?: never;
|
|
183
|
-
systemId?: string;
|
|
184
|
-
input?: InputFrom<TLogic>;
|
|
185
|
-
syncSnapshot?: boolean;
|
|
186
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
187
|
-
};
|
|
188
|
-
input: EditorActorInput;
|
|
189
|
-
self: ActorRef< MachineSnapshot<EditorActorContext, EditorActorEvent, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, EditorActorEvent, AnyEventObject>;
|
|
190
|
-
}) => {
|
|
191
|
-
viewId: t.ViewId;
|
|
192
|
-
beforeEditing: null;
|
|
193
|
-
editing: null;
|
|
194
|
-
pendingChanges: never[];
|
|
195
|
-
history: never[];
|
|
196
|
-
};
|
|
197
|
-
readonly initial: "idle";
|
|
198
|
-
readonly states: {
|
|
199
|
-
readonly idle: {
|
|
200
|
-
id: string;
|
|
201
|
-
on: {
|
|
202
|
-
sync: {
|
|
203
|
-
target: "#pending";
|
|
204
|
-
};
|
|
205
|
-
'edit.start': {
|
|
206
|
-
target: "#editing";
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
readonly editing: {
|
|
211
|
-
id: string;
|
|
212
|
-
tags: "pending";
|
|
213
|
-
entry: CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>[];
|
|
214
|
-
on: {
|
|
215
|
-
change: {
|
|
216
|
-
target: "#executeChanges";
|
|
217
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
218
|
-
hotkey: {
|
|
219
|
-
src: "hotkey";
|
|
220
|
-
logic: HotkeyActorLogic;
|
|
221
|
-
id: "hotkey";
|
|
222
|
-
};
|
|
223
|
-
applyLatest: {
|
|
224
|
-
src: "applyLatest";
|
|
225
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
226
|
-
id: string | undefined;
|
|
227
|
-
};
|
|
228
|
-
executeChange: {
|
|
229
|
-
src: "executeChange";
|
|
230
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
231
|
-
id: string | undefined;
|
|
232
|
-
};
|
|
233
|
-
}>, never, Values<{
|
|
234
|
-
"has pending": {
|
|
235
|
-
type: "has pending";
|
|
236
|
-
params: unknown;
|
|
237
|
-
};
|
|
238
|
-
"can undo": {
|
|
239
|
-
type: "can undo";
|
|
240
|
-
params: unknown;
|
|
241
|
-
};
|
|
242
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
243
|
-
};
|
|
244
|
-
'edit.finish': {
|
|
245
|
-
target: "#afterEdit";
|
|
246
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
247
|
-
hotkey: {
|
|
248
|
-
src: "hotkey";
|
|
249
|
-
logic: HotkeyActorLogic;
|
|
250
|
-
id: "hotkey";
|
|
251
|
-
};
|
|
252
|
-
applyLatest: {
|
|
253
|
-
src: "applyLatest";
|
|
254
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
255
|
-
id: string | undefined;
|
|
256
|
-
};
|
|
257
|
-
executeChange: {
|
|
258
|
-
src: "executeChange";
|
|
259
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
260
|
-
id: string | undefined;
|
|
261
|
-
};
|
|
262
|
-
}>, never, Values<{
|
|
263
|
-
"has pending": {
|
|
264
|
-
type: "has pending";
|
|
265
|
-
params: unknown;
|
|
266
|
-
};
|
|
267
|
-
"can undo": {
|
|
268
|
-
type: "can undo";
|
|
269
|
-
params: unknown;
|
|
270
|
-
};
|
|
271
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
272
|
-
};
|
|
273
|
-
undo: {
|
|
274
|
-
target: "#idle";
|
|
275
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
276
|
-
hotkey: {
|
|
277
|
-
src: "hotkey";
|
|
278
|
-
logic: HotkeyActorLogic;
|
|
279
|
-
id: "hotkey";
|
|
280
|
-
};
|
|
281
|
-
applyLatest: {
|
|
282
|
-
src: "applyLatest";
|
|
283
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
284
|
-
id: string | undefined;
|
|
285
|
-
};
|
|
286
|
-
executeChange: {
|
|
287
|
-
src: "executeChange";
|
|
288
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
289
|
-
id: string | undefined;
|
|
290
|
-
};
|
|
291
|
-
}>, never, Values<{
|
|
292
|
-
"has pending": {
|
|
293
|
-
type: "has pending";
|
|
294
|
-
params: unknown;
|
|
295
|
-
};
|
|
296
|
-
"can undo": {
|
|
297
|
-
type: "can undo";
|
|
298
|
-
params: unknown;
|
|
299
|
-
};
|
|
300
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
readonly pending: {
|
|
305
|
-
id: string;
|
|
306
|
-
tags: "pending"[];
|
|
307
|
-
entry: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
308
|
-
hotkey: {
|
|
309
|
-
src: "hotkey";
|
|
310
|
-
logic: HotkeyActorLogic;
|
|
311
|
-
id: "hotkey";
|
|
312
|
-
};
|
|
313
|
-
applyLatest: {
|
|
314
|
-
src: "applyLatest";
|
|
315
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
316
|
-
id: string | undefined;
|
|
317
|
-
};
|
|
318
|
-
executeChange: {
|
|
319
|
-
src: "executeChange";
|
|
320
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
321
|
-
id: string | undefined;
|
|
322
|
-
};
|
|
323
|
-
}>, never, Values<{
|
|
324
|
-
"has pending": {
|
|
325
|
-
type: "has pending";
|
|
326
|
-
params: unknown;
|
|
327
|
-
};
|
|
328
|
-
"can undo": {
|
|
329
|
-
type: "can undo";
|
|
330
|
-
params: unknown;
|
|
331
|
-
};
|
|
332
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
333
|
-
on: {
|
|
334
|
-
sync: {
|
|
335
|
-
target: "#pending";
|
|
336
|
-
reenter: true;
|
|
337
|
-
};
|
|
338
|
-
'edit.start': {
|
|
339
|
-
target: "#editing";
|
|
340
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
341
|
-
hotkey: {
|
|
342
|
-
src: "hotkey";
|
|
343
|
-
logic: HotkeyActorLogic;
|
|
344
|
-
id: "hotkey";
|
|
345
|
-
};
|
|
346
|
-
applyLatest: {
|
|
347
|
-
src: "applyLatest";
|
|
348
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
349
|
-
id: string | undefined;
|
|
350
|
-
};
|
|
351
|
-
executeChange: {
|
|
352
|
-
src: "executeChange";
|
|
353
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
354
|
-
id: string | undefined;
|
|
355
|
-
};
|
|
356
|
-
}>, never, never, never, never>[];
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
after: {
|
|
360
|
-
waitBeforeSync: {
|
|
361
|
-
target: "#executeChanges";
|
|
362
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
363
|
-
hotkey: {
|
|
364
|
-
src: "hotkey";
|
|
365
|
-
logic: HotkeyActorLogic;
|
|
366
|
-
id: "hotkey";
|
|
367
|
-
};
|
|
368
|
-
applyLatest: {
|
|
369
|
-
src: "applyLatest";
|
|
370
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
371
|
-
id: string | undefined;
|
|
372
|
-
};
|
|
373
|
-
executeChange: {
|
|
374
|
-
src: "executeChange";
|
|
375
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
376
|
-
id: string | undefined;
|
|
377
|
-
};
|
|
378
|
-
}>, never, never, never, never>[];
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
readonly afterEdit: {
|
|
383
|
-
id: string;
|
|
384
|
-
always: ({
|
|
385
|
-
target: "#pending";
|
|
386
|
-
guard: "has pending";
|
|
387
|
-
} | {
|
|
388
|
-
target: "#idle";
|
|
389
|
-
})[];
|
|
390
|
-
};
|
|
391
|
-
readonly applyLatestToManual: {
|
|
392
|
-
id: string;
|
|
393
|
-
entry: CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>[];
|
|
394
|
-
initial: string;
|
|
395
|
-
on: {
|
|
396
|
-
'*': {
|
|
397
|
-
actions: LogAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>[];
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
states: {
|
|
401
|
-
call: {
|
|
402
|
-
invoke: {
|
|
403
|
-
src: "applyLatest";
|
|
404
|
-
input: ({ context }: {
|
|
405
|
-
context: EditorActorContext;
|
|
406
|
-
event: EditorActorEvent;
|
|
407
|
-
self: ActorRef< MachineSnapshot<EditorActorContext, EditorActorEvent, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, EditorActorEvent, AnyEventObject>;
|
|
408
|
-
}) => {
|
|
409
|
-
current: t.DiagramView | undefined;
|
|
410
|
-
viewId: t.ViewId;
|
|
411
|
-
};
|
|
412
|
-
onDone: {
|
|
413
|
-
actions: ActionFunction<EditorActorContext, DoneActorEvent<EditorCalls.ApplyLatestToManual.Output, string>, EditorActorEvent, undefined, never, never, never, "350ms" | "waitBeforeSync", never>;
|
|
414
|
-
target: string;
|
|
415
|
-
};
|
|
416
|
-
onError: {
|
|
417
|
-
target: "#idle";
|
|
418
|
-
actions: ( ActionFunction<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent, undefined, Values<{
|
|
419
|
-
hotkey: {
|
|
420
|
-
src: "hotkey";
|
|
421
|
-
logic: HotkeyActorLogic;
|
|
422
|
-
id: "hotkey";
|
|
423
|
-
};
|
|
424
|
-
applyLatest: {
|
|
425
|
-
src: "applyLatest";
|
|
426
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
427
|
-
id: string | undefined;
|
|
428
|
-
};
|
|
429
|
-
executeChange: {
|
|
430
|
-
src: "executeChange";
|
|
431
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
432
|
-
id: string | undefined;
|
|
433
|
-
};
|
|
434
|
-
}>, never, never, never, never> | (({ event }: ActionArgs<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent>) => void))[];
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
wait: {
|
|
439
|
-
entry: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
440
|
-
hotkey: {
|
|
441
|
-
src: "hotkey";
|
|
442
|
-
logic: HotkeyActorLogic;
|
|
443
|
-
id: "hotkey";
|
|
444
|
-
};
|
|
445
|
-
applyLatest: {
|
|
446
|
-
src: "applyLatest";
|
|
447
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
448
|
-
id: string | undefined;
|
|
449
|
-
};
|
|
450
|
-
executeChange: {
|
|
451
|
-
src: "executeChange";
|
|
452
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
453
|
-
id: string | undefined;
|
|
454
|
-
};
|
|
455
|
-
}>, never, never, never, never>;
|
|
456
|
-
after: {
|
|
457
|
-
'350ms': {
|
|
458
|
-
target: "#executeChanges";
|
|
459
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
460
|
-
hotkey: {
|
|
461
|
-
src: "hotkey";
|
|
462
|
-
logic: HotkeyActorLogic;
|
|
463
|
-
id: "hotkey";
|
|
464
|
-
};
|
|
465
|
-
applyLatest: {
|
|
466
|
-
src: "applyLatest";
|
|
467
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
468
|
-
id: string | undefined;
|
|
469
|
-
};
|
|
470
|
-
executeChange: {
|
|
471
|
-
src: "executeChange";
|
|
472
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
473
|
-
id: string | undefined;
|
|
474
|
-
};
|
|
475
|
-
}>, never, Values<{
|
|
476
|
-
"has pending": {
|
|
477
|
-
type: "has pending";
|
|
478
|
-
params: unknown;
|
|
479
|
-
};
|
|
480
|
-
"can undo": {
|
|
481
|
-
type: "can undo";
|
|
482
|
-
params: unknown;
|
|
483
|
-
};
|
|
484
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>[];
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
};
|
|
490
|
-
readonly executeChanges: {
|
|
491
|
-
id: string;
|
|
492
|
-
entry: CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>[];
|
|
493
|
-
invoke: {
|
|
494
|
-
src: "executeChange";
|
|
495
|
-
input: ({ context }: {
|
|
496
|
-
context: EditorActorContext;
|
|
497
|
-
event: EditorActorEvent;
|
|
498
|
-
self: ActorRef< MachineSnapshot<EditorActorContext, EditorActorEvent, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, EditorActorEvent, AnyEventObject>;
|
|
499
|
-
}) => {
|
|
500
|
-
changes: t.ViewChange[];
|
|
501
|
-
viewId: t.ViewId;
|
|
502
|
-
};
|
|
503
|
-
onDone: {
|
|
504
|
-
target: "#idle";
|
|
505
|
-
actions: ActionFunction<EditorActorContext, DoneActorEvent<NonReducibleUnknown, string>, EditorActorEvent, undefined, Values<{
|
|
506
|
-
hotkey: {
|
|
507
|
-
src: "hotkey";
|
|
508
|
-
logic: HotkeyActorLogic;
|
|
509
|
-
id: "hotkey";
|
|
510
|
-
};
|
|
511
|
-
applyLatest: {
|
|
512
|
-
src: "applyLatest";
|
|
513
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
514
|
-
id: string | undefined;
|
|
515
|
-
};
|
|
516
|
-
executeChange: {
|
|
517
|
-
src: "executeChange";
|
|
518
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
519
|
-
id: string | undefined;
|
|
520
|
-
};
|
|
521
|
-
}>, never, Values<{
|
|
522
|
-
"has pending": {
|
|
523
|
-
type: "has pending";
|
|
524
|
-
params: unknown;
|
|
525
|
-
};
|
|
526
|
-
"can undo": {
|
|
527
|
-
type: "can undo";
|
|
528
|
-
params: unknown;
|
|
529
|
-
};
|
|
530
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
531
|
-
};
|
|
532
|
-
onError: {
|
|
533
|
-
target: "#afterEdit";
|
|
534
|
-
actions: ({ event }: ActionArgs<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent>) => void;
|
|
535
|
-
};
|
|
536
|
-
};
|
|
537
|
-
on: {
|
|
538
|
-
'*': {
|
|
539
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, never, never, never, "350ms" | "waitBeforeSync", never>;
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
readonly on: {
|
|
545
|
-
readonly cancel: {
|
|
546
|
-
readonly target: "#idle";
|
|
547
|
-
readonly actions: readonly [ CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>, ActionFunction<EditorActorContext, {
|
|
548
|
-
type: "cancel";
|
|
549
|
-
}, EditorActorEvent, undefined, Values<{
|
|
550
|
-
hotkey: {
|
|
551
|
-
src: "hotkey";
|
|
552
|
-
logic: HotkeyActorLogic;
|
|
553
|
-
id: "hotkey";
|
|
554
|
-
};
|
|
555
|
-
applyLatest: {
|
|
556
|
-
src: "applyLatest";
|
|
557
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
558
|
-
id: string | undefined;
|
|
559
|
-
};
|
|
560
|
-
executeChange: {
|
|
561
|
-
src: "executeChange";
|
|
562
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
563
|
-
id: string | undefined;
|
|
564
|
-
};
|
|
565
|
-
}>, never, never, never, never>];
|
|
566
|
-
};
|
|
567
|
-
readonly synced: {
|
|
568
|
-
readonly actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
569
|
-
hotkey: {
|
|
570
|
-
src: "hotkey";
|
|
571
|
-
logic: HotkeyActorLogic;
|
|
572
|
-
id: "hotkey";
|
|
573
|
-
};
|
|
574
|
-
applyLatest: {
|
|
575
|
-
src: "applyLatest";
|
|
576
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
577
|
-
id: string | undefined;
|
|
578
|
-
};
|
|
579
|
-
executeChange: {
|
|
580
|
-
src: "executeChange";
|
|
581
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
582
|
-
id: string | undefined;
|
|
583
|
-
};
|
|
584
|
-
}>, never, never, never, never>;
|
|
585
|
-
};
|
|
586
|
-
readonly undo: {
|
|
587
|
-
readonly target: "#idle";
|
|
588
|
-
readonly guard: "can undo";
|
|
589
|
-
readonly actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
590
|
-
hotkey: {
|
|
591
|
-
src: "hotkey";
|
|
592
|
-
logic: HotkeyActorLogic;
|
|
593
|
-
id: "hotkey";
|
|
594
|
-
};
|
|
595
|
-
applyLatest: {
|
|
596
|
-
src: "applyLatest";
|
|
597
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
598
|
-
id: string | undefined;
|
|
599
|
-
};
|
|
600
|
-
executeChange: {
|
|
601
|
-
src: "executeChange";
|
|
602
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
603
|
-
id: string | undefined;
|
|
604
|
-
};
|
|
605
|
-
}>, never, Values<{
|
|
606
|
-
"has pending": {
|
|
607
|
-
type: "has pending";
|
|
608
|
-
params: unknown;
|
|
609
|
-
};
|
|
610
|
-
"can undo": {
|
|
611
|
-
type: "can undo";
|
|
612
|
-
params: unknown;
|
|
613
|
-
};
|
|
614
|
-
}>, "350ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
615
|
-
};
|
|
616
|
-
readonly change: {
|
|
617
|
-
readonly target: "#executeChanges";
|
|
618
|
-
};
|
|
619
|
-
readonly applyLatestToManual: {
|
|
620
|
-
readonly target: "#applyLatestToManual";
|
|
621
|
-
};
|
|
622
|
-
readonly reset: {
|
|
623
|
-
readonly target: "#idle";
|
|
624
|
-
readonly actions: readonly [ CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>, ActionFunction<EditorActorContext, {
|
|
625
|
-
type: "reset";
|
|
626
|
-
}, EditorActorEvent, undefined, Values<{
|
|
627
|
-
hotkey: {
|
|
628
|
-
src: "hotkey";
|
|
629
|
-
logic: HotkeyActorLogic;
|
|
630
|
-
id: "hotkey";
|
|
631
|
-
};
|
|
632
|
-
applyLatest: {
|
|
633
|
-
src: "applyLatest";
|
|
634
|
-
logic: PromiseActorLogic<EditorCalls.ApplyLatestToManual.Output, EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
635
|
-
id: string | undefined;
|
|
636
|
-
};
|
|
637
|
-
executeChange: {
|
|
638
|
-
src: "executeChange";
|
|
639
|
-
logic: PromiseActorLogic<NonReducibleUnknown, EditorCalls.ExecuteChange.Input, EventObject>;
|
|
640
|
-
id: string | undefined;
|
|
641
|
-
};
|
|
642
|
-
}>, never, never, never, never>, StopAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>];
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
}>;
|
|
646
|
-
type InferredMachine = typeof _editorActorLogic;
|
|
647
|
-
export interface EditorActorLogic extends InferredMachine {
|
|
648
|
-
}
|
|
649
|
-
export declare const editorActorLogic: EditorActorLogic;
|
|
650
|
-
export type EditorActorSnapshot = SnapshotFrom<EditorActorLogic>;
|
|
651
|
-
export interface EditorActorRef extends ActorRef<EditorActorSnapshot, EditorActorEvent, EditorActorEmitedEvent> {
|
|
652
|
-
}
|
|
653
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { css } from '@likec4/styles/css';
|
|
2
|
-
|
|
3
|
-
const endpoint = css({
|
|
4
|
-
display: "block",
|
|
5
|
-
fontSize: "xxs",
|
|
6
|
-
fontWeight: 500,
|
|
7
|
-
whiteSpace: "nowrap",
|
|
8
|
-
paddingX: "1",
|
|
9
|
-
paddingY: "0.5",
|
|
10
|
-
borderRadius: "[2px]",
|
|
11
|
-
background: {
|
|
12
|
-
_light: "var(--likec4-palette-fill)/90",
|
|
13
|
-
_dark: "var(--likec4-palette-fill)/60"
|
|
14
|
-
},
|
|
15
|
-
lineHeight: "1",
|
|
16
|
-
color: {
|
|
17
|
-
_light: "var(--likec4-palette-hiContrast)",
|
|
18
|
-
_dark: "var(--likec4-palette-loContrast)"
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const title = css({
|
|
22
|
-
whiteSpaceCollapse: "preserve-breaks",
|
|
23
|
-
fontSize: "sm",
|
|
24
|
-
lineHeight: "sm",
|
|
25
|
-
userSelect: "all"
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export { endpoint, title };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const emptyNode: string;
|