@likec4/diagram 1.51.0 → 1.53.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/dist/LikeC4View.js +1 -1
- package/dist/_virtual/assign-6b5249c3.cjs.js +3 -0
- package/dist/_virtual/log-b8ad8428.cjs.js +3 -0
- package/dist/_virtual/raise-f23ccfcb.cjs.js +3 -0
- package/dist/_virtual/store-803b8f7d.cjs.js +3 -0
- package/dist/_virtual/xstate-actions.cjs.js +1 -1
- package/dist/_virtual/xstate-guards.cjs.js +1 -1
- package/dist/_virtual/xstate-store-react.cjs.js +1 -1
- package/dist/adhoc-editor/EditorPanel.js +1 -1
- package/dist/adhoc-editor/components/Tree.js +1 -1
- package/dist/base-primitives/compound/CompoundActionButton.js +1 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.js +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/element/ElementActionButtons.js +1 -1
- package/dist/base-primitives/element/ElementDetailsButton.js +1 -1
- package/dist/components/ErrorFallback.js +1 -1
- package/dist/components/Link.js +2 -2
- package/dist/components/NavigationPanel.js +4 -2
- package/dist/components/SearchControl.css.js +79 -0
- package/dist/components/SearchControl.js +17 -0
- package/dist/context/IconRenderer.js +7 -7
- package/dist/custom/index.d.ts +1 -0
- package/dist/custom/index.js +1 -0
- package/dist/editor/editorActor.actions.d.ts +142 -190
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +4 -4
- package/dist/likec4diagram/relationship-popover/actor.d.ts +28 -130
- package/dist/likec4diagram/state/machine.actions.d.ts +1819 -2407
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +472 -628
- package/dist/likec4diagram/state/machine.setup.js +2 -2
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +148 -196
- package/dist/likec4diagram/state/machine.state.ready.d.ts +2921 -3807
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +413 -537
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +352 -413
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +91 -121
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +583 -775
- package/dist/likec4diagram/ui/notation/NotationPanel.js +2 -2
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +1 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
- package/dist/navigationpanel/_common.js +1 -1
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
- package/dist/navigationpanel/controls/DetailsControls.js +2 -2
- package/dist/navigationpanel/controls/LayoutWarning.js +1 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
- package/dist/navigationpanel/controls/OpenSource.js +1 -1
- package/dist/navigationpanel/controls/SearchControl.js +1 -1
- package/dist/navigationpanel/controls/ToggleReadonly.js +2 -2
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
- 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/walkthrough/ActiveWalkthroughControls.js +3 -3
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +2 -2
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +31 -45
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.1_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +1 -1
- package/dist/node_modules/.pnpm/{@xstate_store@3.14.0_react@19.2.4/node_modules/@xstate/store/dist/store-1b2fbb72.cjs.js → @xstate_store@3.17.0_react@19.2.4/node_modules/@xstate/store/dist/store-803b8f7d.cjs.js} +151 -132
- package/dist/node_modules/.pnpm/{@xstate_store@3.14.0_react@19.2.4 → @xstate_store@3.17.0_react@19.2.4}/node_modules/@xstate/store/react/dist/xstate-store-react.cjs.js +7 -2
- package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c → xstate@5.28.0}/node_modules/xstate/actions/dist/xstate-actions.cjs.js +6 -6
- package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/assign-dea9f7c8.cjs.js → xstate@5.28.0/node_modules/xstate/dist/assign-6b5249c3.cjs.js} +10 -10
- package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/log-ec8d4df4.cjs.js → xstate@5.28.0/node_modules/xstate/dist/log-b8ad8428.cjs.js} +18 -18
- package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/raise-da5b247f.cjs.js → xstate@5.28.0/node_modules/xstate/dist/raise-f23ccfcb.cjs.js} +223 -126
- package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c → xstate@5.28.0}/node_modules/xstate/guards/dist/xstate-guards.cjs.js +2 -2
- package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
- package/dist/overlays/element-details/MetadataValue.js +2 -2
- package/dist/overlays/element-details/TabPanelDeployments.js +3 -3
- package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +1 -1
- package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +6 -6
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
- package/dist/projects-overview/actor.d.ts +15 -21
- package/dist/projects-overview/custom/nodeTypes.js +1 -1
- package/dist/search/Search.d.ts +8 -0
- package/dist/search/Search.js +40 -47
- package/dist/search/SearchContext.d.ts +21 -0
- package/dist/search/SearchContext.js +20 -0
- package/dist/search/XStateSearchAdapter.d.ts +5 -0
- package/dist/search/XStateSearchAdapter.js +64 -0
- package/dist/search/components/ElementsColumn.js +6 -9
- package/dist/search/components/PickView.d.ts +1 -3
- package/dist/search/components/PickView.js +5 -5
- package/dist/search/components/SearchByTags.js +1 -1
- package/dist/search/components/SearchInput.js +6 -7
- package/dist/search/components/ViewsColum.js +8 -12
- package/dist/search/hooks.d.ts +0 -2
- package/dist/search/hooks.js +7 -33
- package/dist/styles.css2.js +1 -1
- package/package.json +23 -23
- package/panda.buildinfo.json +2 -3
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/_virtual/assign-dea9f7c8.cjs.js +0 -3
- package/dist/_virtual/log-ec8d4df4.cjs.js +0 -3
- package/dist/_virtual/raise-da5b247f.cjs.js +0 -3
- package/dist/_virtual/store-1b2fbb72.cjs.js +0 -3
- /package/dist/node_modules/.pnpm/{xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c → xstate@5.28.0}/node_modules/xstate/dev/dist/xstate-dev.cjs.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewChange } from '@likec4/core/types';
|
|
2
|
-
import { ActionFunction, CancelAction,
|
|
2
|
+
import { ActionFunction, CancelAction, PromiseActorLogic, EventObject, NonReducibleUnknown, StopAction } from 'xstate';
|
|
3
3
|
import { EditorActorContext, EditorActorEvent, EditorActorEmitedEvent } from './editorActor.setup';
|
|
4
4
|
import { HotkeyActorLogic } from './hotkeyActor';
|
|
5
5
|
export declare const raiseSync: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, never, never, never, "500ms" | "waitBeforeSync", never>;
|
|
@@ -8,194 +8,146 @@ export declare const reschedule: (delay?: number) => ActionFunction<EditorActorC
|
|
|
8
8
|
type LayoutChanges = ViewChange.ResetManualLayout | ViewChange.SaveViewSnapshot;
|
|
9
9
|
export declare const isLayoutChange: (change: ViewChange) => change is LayoutChanges;
|
|
10
10
|
export declare const withoutSnapshotChanges: (data: ViewChange[]) => (ViewChange.ChangeElementStyle | ViewChange.ChangeAutoLayout)[];
|
|
11
|
-
export declare const saveStateBeforeEdit: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
}>, never, Values<{
|
|
45
|
-
"has pending": {
|
|
46
|
-
type: "has pending";
|
|
47
|
-
params: unknown;
|
|
48
|
-
};
|
|
49
|
-
"can undo": {
|
|
50
|
-
type: "can undo";
|
|
51
|
-
params: unknown;
|
|
52
|
-
};
|
|
53
|
-
}>, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
11
|
+
export declare const saveStateBeforeEdit: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
12
|
+
src: "hotkey";
|
|
13
|
+
logic: HotkeyActorLogic;
|
|
14
|
+
id: "hotkey";
|
|
15
|
+
} | {
|
|
16
|
+
src: "applyLatest";
|
|
17
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
18
|
+
id: string | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
src: "executeChange";
|
|
21
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
22
|
+
id: string | undefined;
|
|
23
|
+
}, never, never, never, never>;
|
|
24
|
+
export declare const startEditing: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
25
|
+
src: "hotkey";
|
|
26
|
+
logic: HotkeyActorLogic;
|
|
27
|
+
id: "hotkey";
|
|
28
|
+
} | {
|
|
29
|
+
src: "applyLatest";
|
|
30
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
31
|
+
id: string | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
src: "executeChange";
|
|
34
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
35
|
+
id: string | undefined;
|
|
36
|
+
}, never, {
|
|
37
|
+
type: "has pending";
|
|
38
|
+
params: unknown;
|
|
39
|
+
} | {
|
|
40
|
+
type: "can undo";
|
|
41
|
+
params: unknown;
|
|
42
|
+
}, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
54
43
|
export declare const stopHotkey: () => StopAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>;
|
|
55
|
-
export declare const ensureHotKey: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
applyLatest: {
|
|
165
|
-
src: "applyLatest";
|
|
166
|
-
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
167
|
-
id: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
executeChange: {
|
|
170
|
-
src: "executeChange";
|
|
171
|
-
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
172
|
-
id: string | undefined;
|
|
173
|
-
};
|
|
174
|
-
}>, never, Values<{
|
|
175
|
-
"has pending": {
|
|
176
|
-
type: "has pending";
|
|
177
|
-
params: unknown;
|
|
178
|
-
};
|
|
179
|
-
"can undo": {
|
|
180
|
-
type: "can undo";
|
|
181
|
-
params: unknown;
|
|
182
|
-
};
|
|
183
|
-
}>, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
184
|
-
export declare const addSnapshotToPendingChanges: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, Values<{
|
|
185
|
-
hotkey: {
|
|
186
|
-
src: "hotkey";
|
|
187
|
-
logic: HotkeyActorLogic;
|
|
188
|
-
id: "hotkey";
|
|
189
|
-
};
|
|
190
|
-
applyLatest: {
|
|
191
|
-
src: "applyLatest";
|
|
192
|
-
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
193
|
-
id: string | undefined;
|
|
194
|
-
};
|
|
195
|
-
executeChange: {
|
|
196
|
-
src: "executeChange";
|
|
197
|
-
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
198
|
-
id: string | undefined;
|
|
199
|
-
};
|
|
200
|
-
}>, never, never, never, never>;
|
|
44
|
+
export declare const ensureHotKey: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
45
|
+
src: "hotkey";
|
|
46
|
+
logic: HotkeyActorLogic;
|
|
47
|
+
id: "hotkey";
|
|
48
|
+
} | {
|
|
49
|
+
src: "applyLatest";
|
|
50
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
51
|
+
id: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
src: "executeChange";
|
|
54
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
55
|
+
id: string | undefined;
|
|
56
|
+
}, never, {
|
|
57
|
+
type: "has pending";
|
|
58
|
+
params: unknown;
|
|
59
|
+
} | {
|
|
60
|
+
type: "can undo";
|
|
61
|
+
params: unknown;
|
|
62
|
+
}, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
63
|
+
export declare const pushHistory: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
64
|
+
src: "hotkey";
|
|
65
|
+
logic: HotkeyActorLogic;
|
|
66
|
+
id: "hotkey";
|
|
67
|
+
} | {
|
|
68
|
+
src: "applyLatest";
|
|
69
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
70
|
+
id: string | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
src: "executeChange";
|
|
73
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
74
|
+
id: string | undefined;
|
|
75
|
+
}, never, never, never, never>;
|
|
76
|
+
export declare const stopEditing: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
77
|
+
src: "hotkey";
|
|
78
|
+
logic: HotkeyActorLogic;
|
|
79
|
+
id: "hotkey";
|
|
80
|
+
} | {
|
|
81
|
+
src: "applyLatest";
|
|
82
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
83
|
+
id: string | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
src: "executeChange";
|
|
86
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
87
|
+
id: string | undefined;
|
|
88
|
+
}, never, {
|
|
89
|
+
type: "has pending";
|
|
90
|
+
params: unknown;
|
|
91
|
+
} | {
|
|
92
|
+
type: "can undo";
|
|
93
|
+
params: unknown;
|
|
94
|
+
}, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
95
|
+
export declare const markHistoryAsSynched: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
96
|
+
src: "hotkey";
|
|
97
|
+
logic: HotkeyActorLogic;
|
|
98
|
+
id: "hotkey";
|
|
99
|
+
} | {
|
|
100
|
+
src: "applyLatest";
|
|
101
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
102
|
+
id: string | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
src: "executeChange";
|
|
105
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
106
|
+
id: string | undefined;
|
|
107
|
+
}, never, never, never, never>;
|
|
108
|
+
export declare const popHistory: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
109
|
+
src: "hotkey";
|
|
110
|
+
logic: HotkeyActorLogic;
|
|
111
|
+
id: "hotkey";
|
|
112
|
+
} | {
|
|
113
|
+
src: "applyLatest";
|
|
114
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
115
|
+
id: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
src: "executeChange";
|
|
118
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
119
|
+
id: string | undefined;
|
|
120
|
+
}, never, never, never, never>;
|
|
121
|
+
export declare const undo: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
122
|
+
src: "hotkey";
|
|
123
|
+
logic: HotkeyActorLogic;
|
|
124
|
+
id: "hotkey";
|
|
125
|
+
} | {
|
|
126
|
+
src: "applyLatest";
|
|
127
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
128
|
+
id: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
src: "executeChange";
|
|
131
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
132
|
+
id: string | undefined;
|
|
133
|
+
}, never, {
|
|
134
|
+
type: "has pending";
|
|
135
|
+
params: unknown;
|
|
136
|
+
} | {
|
|
137
|
+
type: "can undo";
|
|
138
|
+
params: unknown;
|
|
139
|
+
}, "500ms" | "waitBeforeSync", EditorActorEmitedEvent>;
|
|
140
|
+
export declare const addSnapshotToPendingChanges: () => ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
141
|
+
src: "hotkey";
|
|
142
|
+
logic: HotkeyActorLogic;
|
|
143
|
+
id: "hotkey";
|
|
144
|
+
} | {
|
|
145
|
+
src: "applyLatest";
|
|
146
|
+
logic: PromiseActorLogic<import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Output, import("./editorActor.setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
147
|
+
id: string | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
src: "executeChange";
|
|
150
|
+
logic: PromiseActorLogic<NonReducibleUnknown, import("./editorActor.setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
151
|
+
id: string | undefined;
|
|
152
|
+
}, never, never, never, never>;
|
|
201
153
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -19,3 +19,6 @@ export { ReactLikeC4, type ReactLikeC4Props } from './ReactLikeC4';
|
|
|
19
19
|
export { useCurrentView, useCurrentViewId, } from './hooks/useCurrentView';
|
|
20
20
|
export { pickViewBounds } from './utils/view-bounds';
|
|
21
21
|
export { LikeC4ProjectsOverview, type LikeC4ProjectsOverviewProps, } from './LikeC4ProjectsOverview';
|
|
22
|
+
export { normalizeSearch, SearchContext, type SearchContextValue, useSearchContext, } from './search/SearchContext';
|
|
23
|
+
export { bodyCss as searchBodyCss, dialogCss as searchDialogCss, SearchPanelContent, } from './search/Search';
|
|
24
|
+
export { SearchControl } from './components/SearchControl';
|
package/dist/index.js
CHANGED
|
@@ -16,5 +16,8 @@ export { ReactLikeC4 } from './ReactLikeC4.js';
|
|
|
16
16
|
export { useCurrentView, useCurrentViewId } from './hooks/useCurrentView.js';
|
|
17
17
|
export { pickViewBounds } from './utils/view-bounds.js';
|
|
18
18
|
export { LikeC4ProjectsOverview } from './LikeC4ProjectsOverview.js';
|
|
19
|
+
export { SearchContext, normalizeSearch, useSearchContext } from './search/SearchContext.js';
|
|
20
|
+
export { SearchPanelContent, bodyCss as searchBodyCss, dialogCss as searchDialogCss } from './search/Search.js';
|
|
21
|
+
export { SearchControl } from './components/SearchControl.js';
|
|
19
22
|
export { useDiagram } from './hooks/safeContext.js';
|
|
20
23
|
export { useOptionalCurrentViewModel } from './context/LikeC4ModelContext.js';
|
|
@@ -5,8 +5,8 @@ import { useEnabledFeatures } from '../../../context/DiagramFeatures.js';
|
|
|
5
5
|
import '@xstate/react';
|
|
6
6
|
import 'fast-equals';
|
|
7
7
|
import { useDiagram } from '../../../hooks/safeContext.js';
|
|
8
|
-
import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
9
|
-
import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
8
|
+
import IconZoomScan from '../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
9
|
+
import IconTransform from '../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js';
|
|
10
10
|
import { ElementActionButtons } from '../../../base-primitives/element/ElementActionButtons.js';
|
|
11
11
|
|
|
12
12
|
function ElementActions({
|
|
@@ -7,8 +7,8 @@ import { BorderStyleOption, GoToSourceButton, BrowseRelationshipsButton } from '
|
|
|
7
7
|
import { ColorButton } from './ColorButton.js';
|
|
8
8
|
import { Toolbar } from './Toolbar.js';
|
|
9
9
|
import { useHandlers } from './useHandlers.js';
|
|
10
|
-
import IconSelector from '../../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
11
|
-
import IconCheck from '../../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
10
|
+
import IconSelector from '../../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js';
|
|
11
|
+
import IconCheck from '../../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js';
|
|
12
12
|
|
|
13
13
|
const SortedElementShapes = [...ElementShapes].sort();
|
|
14
14
|
function ElementToolbar(props) {
|
|
@@ -5,8 +5,8 @@ import '@xstate/react';
|
|
|
5
5
|
import 'fast-equals';
|
|
6
6
|
import { useDiagram } from '../../../../hooks/safeContext.js';
|
|
7
7
|
import { useDiagramEventHandlers } from '../../../../context/DiagramEventHandlers.js';
|
|
8
|
-
import IconFileSymlink from '../../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
9
|
-
import IconTransform from '../../../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
8
|
+
import IconFileSymlink from '../../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
9
|
+
import IconTransform from '../../../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js';
|
|
10
10
|
|
|
11
11
|
const Tooltip = Tooltip$1.withProps({
|
|
12
12
|
color: "dark",
|
|
@@ -21,10 +21,10 @@ import { Endpoint, RelationshipTitle } from './components.js';
|
|
|
21
21
|
import { useDiagram } from '../../hooks/safeContext.js';
|
|
22
22
|
import { useRootContainerRef } from '../../context/RootContainerContext.js';
|
|
23
23
|
import { roundDpr } from '../../utils/roundDpr.js';
|
|
24
|
-
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
25
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
26
|
-
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
27
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.
|
|
24
|
+
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
|
|
25
|
+
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
26
|
+
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
27
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.40.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
28
28
|
import { Markdown } from '../../base-primitives/Markdown.js';
|
|
29
29
|
|
|
30
30
|
function selectDiagramContext(c) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EdgeId } from '@likec4/core/types';
|
|
2
|
-
import { ActorLogicFrom, ActorRefFrom, SnapshotFrom, StateMachine,
|
|
2
|
+
import { ActorLogicFrom, ActorRefFrom, SnapshotFrom, StateMachine, NonReducibleUnknown, EventObject, MetaObject } from 'xstate';
|
|
3
3
|
export type RelationshipPopoverActorEvent = {
|
|
4
4
|
type: 'xyedge.mouseEnter';
|
|
5
5
|
edgeId: EdgeId;
|
|
@@ -30,140 +30,38 @@ export interface RelationshipPopoverActorContext {
|
|
|
30
30
|
*/
|
|
31
31
|
openTimeout: number;
|
|
32
32
|
}
|
|
33
|
-
declare const _actorLogic: StateMachine<RelationshipPopoverActorContext, RelationshipPopoverActorEvent, {}, never,
|
|
34
|
-
"update edgeId"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type: "edge was selected";
|
|
53
|
-
params: unknown;
|
|
54
|
-
};
|
|
55
|
-
"edge was hovered": {
|
|
56
|
-
type: "edge was hovered";
|
|
57
|
-
params: unknown;
|
|
58
|
-
};
|
|
59
|
-
}>, "open timeout" | "close timeout" | "long idle", "idle" | "opening" | {
|
|
33
|
+
declare const _actorLogic: StateMachine<RelationshipPopoverActorContext, RelationshipPopoverActorEvent, {}, never, {
|
|
34
|
+
type: "update edgeId";
|
|
35
|
+
params: NonReducibleUnknown;
|
|
36
|
+
} | {
|
|
37
|
+
type: "increase open timeout";
|
|
38
|
+
params: NonReducibleUnknown;
|
|
39
|
+
} | {
|
|
40
|
+
type: "decrease open timeout";
|
|
41
|
+
params: NonReducibleUnknown;
|
|
42
|
+
} | {
|
|
43
|
+
type: "reset edgeId";
|
|
44
|
+
params: NonReducibleUnknown;
|
|
45
|
+
}, {
|
|
46
|
+
type: "edge was selected";
|
|
47
|
+
params: unknown;
|
|
48
|
+
} | {
|
|
49
|
+
type: "edge was hovered";
|
|
50
|
+
params: unknown;
|
|
51
|
+
}, "open timeout" | "close timeout" | "long idle", "idle" | "opening" | {
|
|
60
52
|
active: "hovered" | "opened" | "closing";
|
|
61
53
|
}, "opened", NonReducibleUnknown, NonReducibleUnknown, EventObject, MetaObject, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
edgeId: null;
|
|
65
|
-
edgeSelected: false;
|
|
66
|
-
openTimeout: number;
|
|
67
|
-
};
|
|
68
|
-
readonly initial: "idle";
|
|
69
|
-
readonly on: {
|
|
70
|
-
readonly close: {
|
|
71
|
-
readonly target: "#idle";
|
|
72
|
-
readonly actions: readonly ["reset edgeId", "increase open timeout"];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
readonly states: {
|
|
54
|
+
id: "breadcrumbs";
|
|
55
|
+
states: {
|
|
76
56
|
readonly idle: {
|
|
77
|
-
|
|
78
|
-
readonly on: {
|
|
79
|
-
readonly 'xyedge.mouseEnter': {
|
|
80
|
-
readonly target: "opening";
|
|
81
|
-
readonly actions: "update edgeId";
|
|
82
|
-
};
|
|
83
|
-
readonly 'xyedge.select': {
|
|
84
|
-
readonly target: "active";
|
|
85
|
-
readonly actions: "update edgeId";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
readonly after: {
|
|
89
|
-
readonly 'long idle': {
|
|
90
|
-
readonly actions: "increase open timeout";
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
readonly opening: {
|
|
95
|
-
readonly on: {
|
|
96
|
-
readonly 'xyedge.mouseLeave': {
|
|
97
|
-
readonly target: "idle";
|
|
98
|
-
};
|
|
99
|
-
readonly 'xyedge.select': {
|
|
100
|
-
readonly target: "active";
|
|
101
|
-
readonly actions: "update edgeId";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
readonly after: {
|
|
105
|
-
readonly 'open timeout': {
|
|
106
|
-
readonly actions: "decrease open timeout";
|
|
107
|
-
readonly target: "active";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
57
|
+
id: "idle";
|
|
110
58
|
};
|
|
59
|
+
readonly opening: {};
|
|
111
60
|
readonly active: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
readonly 'xyedge.unselect': {
|
|
117
|
-
readonly target: "idle";
|
|
118
|
-
readonly actions: "increase open timeout";
|
|
119
|
-
};
|
|
120
|
-
readonly 'xyedge.select': {
|
|
121
|
-
readonly actions: "update edgeId";
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
readonly states: {
|
|
125
|
-
readonly opened: {
|
|
126
|
-
readonly on: {
|
|
127
|
-
readonly 'dropdown.mouseEnter': {
|
|
128
|
-
readonly target: "hovered";
|
|
129
|
-
};
|
|
130
|
-
readonly 'xyedge.mouseLeave': {
|
|
131
|
-
readonly guard: "edge was hovered";
|
|
132
|
-
readonly target: "closing";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
readonly hovered: {
|
|
137
|
-
readonly on: {
|
|
138
|
-
readonly 'dropdown.mouseLeave': readonly [{
|
|
139
|
-
readonly guard: "edge was selected";
|
|
140
|
-
readonly target: "opened";
|
|
141
|
-
}, {
|
|
142
|
-
readonly target: "closing";
|
|
143
|
-
}];
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
readonly closing: {
|
|
147
|
-
readonly on: {
|
|
148
|
-
readonly 'xyedge.mouseEnter': {
|
|
149
|
-
readonly guard: "edge was hovered";
|
|
150
|
-
readonly target: "opened";
|
|
151
|
-
readonly actions: "update edgeId";
|
|
152
|
-
};
|
|
153
|
-
readonly 'xyedge.select': {
|
|
154
|
-
readonly target: "opened";
|
|
155
|
-
readonly actions: "update edgeId";
|
|
156
|
-
};
|
|
157
|
-
readonly 'dropdown.mouseEnter': {
|
|
158
|
-
readonly target: "hovered";
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
readonly after: {
|
|
162
|
-
readonly 'close timeout': {
|
|
163
|
-
readonly target: "#idle";
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
};
|
|
61
|
+
states: {
|
|
62
|
+
readonly opened: {};
|
|
63
|
+
readonly hovered: {};
|
|
64
|
+
readonly closing: {};
|
|
167
65
|
};
|
|
168
66
|
};
|
|
169
67
|
};
|