@likec4/diagram 1.28.0 → 1.29.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/bundle/index.js +1040 -1190
- package/dist/LikeC4CustomColors.js +2 -2
- package/dist/LikeC4Diagram.js +2 -2
- package/dist/LikeC4ModelProvider.js +1 -1
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/react.production.js +3 -0
- package/dist/base/BaseXYFlow.js +5 -5
- package/dist/base/primitives/compound/CompoundActionButton.js +1 -1
- package/dist/base/primitives/compound/CompoundDetailsButton.js +1 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.d.ts +1 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.js +2 -2
- package/dist/base/primitives/customEdge.d.ts +1 -1
- package/dist/base/primitives/customEdge.js +3 -3
- package/dist/base/primitives/customNode.js +2 -2
- package/dist/base/primitives/edge/EdgeContainer.js +1 -1
- package/dist/base/primitives/edge/EdgeLabel.css.d.ts +3 -0
- package/dist/base/primitives/edge/EdgeLabel.css.js +3 -0
- package/dist/base/primitives/edge/EdgeLabel.d.ts +1 -1
- package/dist/base/primitives/edge/EdgeLabel.js +3 -2
- package/dist/base/primitives/edge/EdgeLabelContainer.js +1 -1
- package/dist/base/primitives/edge/EdgePath.d.ts +10 -42
- package/dist/base/primitives/edge/EdgePath.js +23 -16
- package/dist/base/primitives/edge/edge.css.js +1 -1
- package/dist/base/primitives/element/ElementActionButtons.js +1 -2
- package/dist/base/primitives/element/ElementDetailsButton.js +1 -2
- package/dist/base/primitives/element/ElementNodeContainer.js +3 -3
- package/dist/base/updateEdges.js +7 -2
- package/dist/base/updateNodes.js +11 -3
- package/dist/bundle/LikeC4View.js +3 -3
- package/dist/bundle/ReactLikeC4.js +1 -1
- package/dist/bundle/ShadowRoot.js +3 -3
- package/dist/bundle/styles.css.js +3 -3
- package/dist/context/ControlsCustomLayout.js +1 -1
- package/dist/context/DiagramEventHandlers.js +5 -5
- package/dist/context/DiagramFeatures.js +7 -7
- package/dist/context/EnsureMantine.js +2 -2
- package/dist/context/FramerMotionConfig.js +2 -2
- package/dist/context/IconRenderer.js +4 -4
- package/dist/context/ReduceGraphics.js +2 -2
- package/dist/context/RootContainer.js +5 -9
- package/dist/hooks/safeContext.d.ts +2 -5
- package/dist/hooks/safeContext.js +5 -4
- package/dist/hooks/useCurrentViewId.js +1 -1
- package/dist/hooks/useDiagram.d.ts +715 -150
- package/dist/hooks/useDiagram.js +2 -2
- package/dist/hooks/useMantinePortalProps.js +2 -2
- package/dist/hooks/useSetState.js +3 -3
- package/dist/hooks/useUpdateEffect.js +1 -1
- package/dist/hooks/useXYFlow.d.ts +2 -2
- package/dist/likec4diagram/DiagramUI.js +2 -2
- package/dist/likec4diagram/DiagramXYFlow.js +2 -2
- package/dist/likec4diagram/custom/edges/NotePopover.js +2 -2
- package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +2 -2
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +7 -7
- package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.js +6 -6
- package/dist/likec4diagram/custom/index.d.ts +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
- package/dist/likec4diagram/ui/controls/ChangeAutoLayoutButton.js +4 -4
- package/dist/likec4diagram/ui/controls/Controls.js +9 -9
- package/dist/likec4diagram/ui/controls/NavigationButtons.js +1 -1
- package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.js +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.js +4 -4
- package/dist/likec4diagram/ui/search/ElementsColumn.js +88 -77
- package/dist/likec4diagram/ui/search/LikeC4Search.d.ts +2 -1
- package/dist/likec4diagram/ui/search/LikeC4Search.js +27 -24
- package/dist/likec4diagram/ui/search/SearchInput.js +1 -1
- package/dist/likec4diagram/ui/search/ViewsColum.js +3 -2
- package/dist/likec4diagram/ui/search/state.js +11 -9
- package/dist/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.js +1 -1
- package/dist/likec4diagram/useLayoutConstraints.js +3 -3
- package/dist/likec4model/LikeC4ModelContext.js +2 -2
- package/dist/likec4model/useLikeC4ElementsTree.js +2 -2
- package/dist/likec4model/useLikeC4Model.js +2 -2
- package/dist/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.production.js +548 -0
- package/dist/node_modules/.pnpm/react@19.0.0/node_modules/react/index.js +15 -0
- package/dist/overlays/Overlays.js +6 -6
- package/dist/overlays/element-details/ElementDetails.js +1 -1
- package/dist/overlays/element-details/ElementDetailsCard.js +5 -5
- package/dist/overlays/element-details/TabPanelDeployments.js +7 -4
- package/dist/overlays/element-details/TabPanelRelationships.js +2 -2
- package/dist/overlays/element-details/TabPanelStructure.js +6 -3
- package/dist/overlays/element-details/actor.d.ts +2 -2
- package/dist/overlays/element-details/actorContext.js +3 -3
- package/dist/overlays/overlay/Overlay.js +8 -7
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +1 -1
- package/dist/overlays/relationship-details/RelationshipDetails.js +28 -23
- package/dist/overlays/relationship-details/SelectEdge.js +3 -6
- package/dist/overlays/relationship-details/actor.d.ts +4 -1
- package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +1 -1
- package/dist/overlays/relationship-details/custom/edgeTypes.js +1 -1
- package/dist/overlays/relationship-details/hooks.d.ts +4 -1
- package/dist/overlays/relationship-details/hooks.js +4 -4
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +1 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +9 -11
- package/dist/overlays/relationships-browser/SelectElement.js +8 -5
- package/dist/overlays/relationships-browser/actor.d.ts +2 -1
- package/dist/overlays/relationships-browser/actor.js +6 -12
- package/dist/overlays/relationships-browser/const.d.ts +2 -1
- package/dist/overlays/relationships-browser/const.js +6 -1
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +1 -1
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +3 -4
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +1 -1
- package/dist/overlays/relationships-browser/hooks.d.ts +2 -1
- package/dist/overlays/relationships-browser/hooks.js +4 -4
- package/dist/overlays/relationships-browser/layout.js +2 -2
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +1 -2
- package/dist/state/DiagramActorProvider.js +7 -5
- package/dist/state/diagram-machine.d.ts +719 -146
- package/dist/state/diagram-machine.js +51 -10
- package/dist/styles.css.js +1 -1
- package/package.json +20 -16
- package/src/LikeC4Diagram.tsx +0 -1
- package/src/base/BaseXYFlow.tsx +2 -2
- package/src/base/primitives/compound/CompoundActionButton.tsx +1 -1
- package/src/base/primitives/compound/CompoundDetailsButton.tsx +1 -1
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +1 -1
- package/src/base/primitives/customEdge.ts +1 -0
- package/src/base/primitives/edge/EdgeLabel.css.ts +3 -0
- package/src/base/primitives/edge/EdgeLabel.tsx +2 -1
- package/src/base/primitives/edge/EdgePath.tsx +22 -14
- package/src/base/primitives/edge/edge.css.ts +1 -1
- package/src/base/primitives/element/ElementActionButtons.tsx +2 -2
- package/src/base/primitives/element/ElementDetailsButton.tsx +2 -2
- package/src/base/primitives/element/ElementNodeContainer.tsx +1 -1
- package/src/base/updateEdges.ts +6 -9
- package/src/base/updateNodes.ts +10 -14
- package/src/context/FramerMotionConfig.tsx +1 -1
- package/src/context/RootContainer.tsx +0 -4
- package/src/hooks/safeContext.tsx +3 -1
- package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +2 -2
- package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.tsx +1 -1
- package/src/likec4diagram/ui/controls/Controls.tsx +56 -58
- package/src/likec4diagram/ui/controls/NavigationButtons.tsx +1 -1
- package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.tsx +1 -1
- package/src/likec4diagram/ui/notation/NotationPanel.tsx +1 -1
- package/src/likec4diagram/ui/search/ElementsColumn.tsx +94 -71
- package/src/likec4diagram/ui/search/LikeC4Search.tsx +48 -55
- package/src/likec4diagram/ui/search/ViewsColum.tsx +2 -2
- package/src/likec4diagram/ui/search/state.ts +8 -6
- package/src/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.tsx +1 -1
- package/src/overlays/Overlays.tsx +2 -2
- package/src/overlays/element-details/ElementDetails.tsx +2 -2
- package/src/overlays/element-details/ElementDetailsCard.tsx +1 -1
- package/src/overlays/element-details/TabPanelDeployments.tsx +2 -0
- package/src/overlays/element-details/TabPanelStructure.tsx +2 -1
- package/src/overlays/overlay/Overlay.tsx +2 -1
- package/src/overlays/relationship-details/RelationshipDetails.tsx +25 -16
- package/src/overlays/relationship-details/SelectEdge.tsx +0 -14
- package/src/overlays/relationship-details/actor.ts +2 -1
- package/src/overlays/relationship-details/custom/edgeTypes.tsx +1 -1
- package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +1 -3
- package/src/overlays/relationships-browser/SelectElement.tsx +2 -0
- package/src/overlays/relationships-browser/actor.ts +8 -13
- package/src/overlays/relationships-browser/const.ts +8 -1
- package/src/overlays/relationships-browser/custom/edgeTypes.tsx +2 -3
- package/src/overlays/relationships-browser/custom/nodeTypes.tsx +1 -1
- package/src/overlays/relationships-browser/useViewToNodesEdges.ts +1 -2
- package/src/state/DiagramActorProvider.tsx +7 -4
- package/src/state/diagram-machine.ts +50 -8
|
@@ -13,9 +13,9 @@ import { HotKeyEvent } from '../state/hotkeyActor';
|
|
|
13
13
|
import { OverlaysContext, OverlayActorEvent, OverlayActorEmitedEvent } from '../overlays/overlaysActor';
|
|
14
14
|
import { ElementDetailsLogic } from '../overlays/element-details/actor';
|
|
15
15
|
import { EnabledFeatures } from '../context';
|
|
16
|
-
import { ReactFlowState,
|
|
16
|
+
import { ReactFlowState, ReactFlowInstance } from '@xyflow/react';
|
|
17
|
+
import { EdgeMarkerType, HandleType, XYPosition, Viewport, NodeChange, EdgeChange } from '@xyflow/system';
|
|
17
18
|
import { ReactNode, CSSProperties } from 'react';
|
|
18
|
-
import { XYPosition, Viewport, NodeChange, EdgeChange } from '@xyflow/system';
|
|
19
19
|
export { useDiagramActorRef };
|
|
20
20
|
export declare function useDiagram(): {
|
|
21
21
|
actor: DiagramActorRef;
|
|
@@ -2031,7 +2031,7 @@ export declare function useDiagram(): {
|
|
|
2031
2031
|
readonly params: {
|
|
2032
2032
|
readonly duration: 0;
|
|
2033
2033
|
};
|
|
2034
|
-
},
|
|
2034
|
+
}, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
2035
2035
|
syncManualLayoutActorLogic: {
|
|
2036
2036
|
src: "syncManualLayoutActorLogic";
|
|
2037
2037
|
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
@@ -2284,7 +2284,7 @@ export declare function useDiagram(): {
|
|
|
2284
2284
|
}>;
|
|
2285
2285
|
id: "overlays";
|
|
2286
2286
|
};
|
|
2287
|
-
}>, never, never, never, never
|
|
2287
|
+
}>, never, never, never, never>, "startSyncLayout"];
|
|
2288
2288
|
readonly target: "ready";
|
|
2289
2289
|
}, {
|
|
2290
2290
|
readonly target: "initializing";
|
|
@@ -4989,6 +4989,19 @@ export declare function useDiagram(): {
|
|
|
4989
4989
|
}>, never, never, never, never>;
|
|
4990
4990
|
readonly target: "focused";
|
|
4991
4991
|
};
|
|
4992
|
+
readonly 'xyflow.edgeClick': readonly [{
|
|
4993
|
+
readonly guard: any;
|
|
4994
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
4995
|
+
type: "xyflow.edgeClick";
|
|
4996
|
+
edge: Types.Edge;
|
|
4997
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
4998
|
+
}, {
|
|
4999
|
+
readonly guard: any;
|
|
5000
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
5001
|
+
type: "xyflow.edgeClick";
|
|
5002
|
+
edge: Types.Edge;
|
|
5003
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
5004
|
+
}];
|
|
4992
5005
|
};
|
|
4993
5006
|
};
|
|
4994
5007
|
readonly focused: {
|
|
@@ -5879,6 +5892,10 @@ export declare function useDiagram(): {
|
|
|
5879
5892
|
type: "enabled: Readonly";
|
|
5880
5893
|
params: unknown;
|
|
5881
5894
|
};
|
|
5895
|
+
"enabled: RelationshipDetails": {
|
|
5896
|
+
type: "enabled: RelationshipDetails";
|
|
5897
|
+
params: unknown;
|
|
5898
|
+
};
|
|
5882
5899
|
"not readonly": {
|
|
5883
5900
|
type: "not readonly";
|
|
5884
5901
|
params: unknown;
|
|
@@ -5907,6 +5924,10 @@ export declare function useDiagram(): {
|
|
|
5907
5924
|
type: "click: node has connections";
|
|
5908
5925
|
params: unknown;
|
|
5909
5926
|
};
|
|
5927
|
+
"click: selected edge": {
|
|
5928
|
+
type: "click: selected edge";
|
|
5929
|
+
params: unknown;
|
|
5930
|
+
};
|
|
5910
5931
|
}>, never, EventObject>;
|
|
5911
5932
|
readonly on: {
|
|
5912
5933
|
readonly 'xyflow.nodeClick': readonly [{
|
|
@@ -8363,6 +8384,10 @@ export declare function useDiagram(): {
|
|
|
8363
8384
|
type: "enabled: Readonly";
|
|
8364
8385
|
params: unknown;
|
|
8365
8386
|
};
|
|
8387
|
+
"enabled: RelationshipDetails": {
|
|
8388
|
+
type: "enabled: RelationshipDetails";
|
|
8389
|
+
params: unknown;
|
|
8390
|
+
};
|
|
8366
8391
|
"not readonly": {
|
|
8367
8392
|
type: "not readonly";
|
|
8368
8393
|
params: unknown;
|
|
@@ -8391,11 +8416,16 @@ export declare function useDiagram(): {
|
|
|
8391
8416
|
type: "click: node has connections";
|
|
8392
8417
|
params: unknown;
|
|
8393
8418
|
};
|
|
8419
|
+
"click: selected edge": {
|
|
8420
|
+
type: "click: selected edge";
|
|
8421
|
+
params: unknown;
|
|
8422
|
+
};
|
|
8394
8423
|
}>, never, EventObject>;
|
|
8395
8424
|
};
|
|
8396
|
-
readonly '
|
|
8397
|
-
readonly actions: ActionFunction<DiagramContext, {
|
|
8398
|
-
type: "
|
|
8425
|
+
readonly 'xyflow.edgeClick': {
|
|
8426
|
+
readonly actions: readonly [ ActionFunction<DiagramContext, {
|
|
8427
|
+
type: "xyflow.edgeClick";
|
|
8428
|
+
edge: Types.Edge;
|
|
8399
8429
|
}, Events, undefined, Values<{
|
|
8400
8430
|
syncManualLayoutActorLogic: {
|
|
8401
8431
|
src: "syncManualLayoutActorLogic";
|
|
@@ -8649,163 +8679,674 @@ export declare function useDiagram(): {
|
|
|
8649
8679
|
}>;
|
|
8650
8680
|
id: "overlays";
|
|
8651
8681
|
};
|
|
8652
|
-
}>, never, never, never, never
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
};
|
|
8660
|
-
readonly 'update.view': {
|
|
8661
|
-
readonly guard: "is another view";
|
|
8662
|
-
readonly actions: ActionFunction<DiagramContext, {
|
|
8663
|
-
type: "update.view";
|
|
8664
|
-
view: DiagramView;
|
|
8665
|
-
xynodes: Types.Node[];
|
|
8666
|
-
xyedges: Types.Edge[];
|
|
8667
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
8668
|
-
readonly target: "idle";
|
|
8669
|
-
};
|
|
8670
|
-
};
|
|
8671
|
-
readonly exit: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
8672
|
-
syncManualLayoutActorLogic: {
|
|
8673
|
-
src: "syncManualLayoutActorLogic";
|
|
8674
|
-
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
8675
|
-
type: "trigger:OnChange";
|
|
8676
|
-
params: {
|
|
8677
|
-
change: ViewChange;
|
|
8678
|
-
};
|
|
8679
|
-
}, {
|
|
8680
|
-
type: "same view";
|
|
8681
|
-
params: unknown;
|
|
8682
|
-
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8683
|
-
readonly initial: "idle";
|
|
8684
|
-
readonly context: ({ input }: {
|
|
8685
|
-
spawn: {
|
|
8686
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
8687
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
8688
|
-
id?: never;
|
|
8689
|
-
systemId?: string;
|
|
8690
|
-
input?: InputFrom<TLogic>;
|
|
8691
|
-
syncSnapshot?: boolean;
|
|
8692
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
8693
|
-
};
|
|
8694
|
-
input: Input;
|
|
8695
|
-
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
8696
|
-
}) => {
|
|
8697
|
-
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
8698
|
-
viewId: ViewId;
|
|
8699
|
-
};
|
|
8700
|
-
readonly states: {
|
|
8701
|
-
readonly idle: {
|
|
8702
|
-
readonly tags: "ready";
|
|
8703
|
-
readonly on: {
|
|
8704
|
-
readonly sync: {
|
|
8705
|
-
readonly target: "pending";
|
|
8706
|
-
};
|
|
8682
|
+
}>, never, never, never, never>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
8683
|
+
syncManualLayoutActorLogic: {
|
|
8684
|
+
src: "syncManualLayoutActorLogic";
|
|
8685
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
8686
|
+
type: "trigger:OnChange";
|
|
8687
|
+
params: {
|
|
8688
|
+
change: ViewChange;
|
|
8707
8689
|
};
|
|
8708
|
-
}
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8690
|
+
}, {
|
|
8691
|
+
type: "same view";
|
|
8692
|
+
params: unknown;
|
|
8693
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8694
|
+
readonly initial: "idle";
|
|
8695
|
+
readonly context: ({ input }: {
|
|
8696
|
+
spawn: {
|
|
8697
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
8698
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
8699
|
+
id?: never;
|
|
8700
|
+
systemId?: string;
|
|
8701
|
+
input?: InputFrom<TLogic>;
|
|
8702
|
+
syncSnapshot?: boolean;
|
|
8703
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
8714
8704
|
};
|
|
8705
|
+
input: Input;
|
|
8706
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
8707
|
+
}) => {
|
|
8708
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
8709
|
+
viewId: ViewId;
|
|
8715
8710
|
};
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8711
|
+
readonly states: {
|
|
8712
|
+
readonly idle: {
|
|
8713
|
+
readonly tags: "ready";
|
|
8714
|
+
readonly on: {
|
|
8715
|
+
readonly sync: {
|
|
8716
|
+
readonly target: "pending";
|
|
8717
|
+
};
|
|
8718
|
+
};
|
|
8723
8719
|
};
|
|
8724
|
-
readonly
|
|
8725
|
-
readonly
|
|
8720
|
+
readonly paused: {
|
|
8721
|
+
readonly tags: "pending";
|
|
8722
|
+
readonly on: {
|
|
8723
|
+
readonly sync: {
|
|
8724
|
+
readonly target: "pending";
|
|
8725
|
+
};
|
|
8726
|
+
};
|
|
8726
8727
|
};
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
}) => {
|
|
8737
|
-
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
8728
|
+
readonly pending: {
|
|
8729
|
+
readonly tags: "pending";
|
|
8730
|
+
readonly on: {
|
|
8731
|
+
readonly sync: {
|
|
8732
|
+
readonly target: "pending";
|
|
8733
|
+
readonly reenter: true;
|
|
8734
|
+
};
|
|
8735
|
+
readonly cancel: {
|
|
8736
|
+
readonly target: "paused";
|
|
8738
8737
|
};
|
|
8739
8738
|
};
|
|
8740
|
-
readonly
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8739
|
+
readonly after: {
|
|
8740
|
+
readonly timeout: readonly [{
|
|
8741
|
+
readonly guard: "same view";
|
|
8742
|
+
readonly actions: {
|
|
8743
|
+
readonly type: "trigger:OnChange";
|
|
8744
|
+
readonly params: ({ context }: {
|
|
8745
|
+
context: Readonly< Input>;
|
|
8746
|
+
event: Events;
|
|
8747
|
+
}) => {
|
|
8748
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
8749
|
+
};
|
|
8750
|
+
};
|
|
8751
|
+
readonly target: "synced";
|
|
8752
|
+
}, {
|
|
8753
|
+
readonly target: "stopped";
|
|
8754
|
+
}];
|
|
8755
|
+
};
|
|
8756
|
+
};
|
|
8757
|
+
readonly synced: {
|
|
8758
|
+
readonly tags: "ready";
|
|
8759
|
+
readonly on: {
|
|
8760
|
+
readonly sync: {
|
|
8761
|
+
readonly target: "pending";
|
|
8762
|
+
};
|
|
8763
|
+
};
|
|
8764
|
+
};
|
|
8765
|
+
readonly stopped: {
|
|
8766
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
8767
|
+
readonly type: "final";
|
|
8768
|
+
};
|
|
8744
8769
|
};
|
|
8745
|
-
};
|
|
8746
|
-
readonly synced: {
|
|
8747
|
-
readonly tags: "ready";
|
|
8748
8770
|
readonly on: {
|
|
8749
|
-
readonly
|
|
8750
|
-
readonly target: "
|
|
8771
|
+
readonly synced: {
|
|
8772
|
+
readonly target: ".synced";
|
|
8773
|
+
};
|
|
8774
|
+
readonly stop: {
|
|
8775
|
+
readonly target: ".stopped";
|
|
8751
8776
|
};
|
|
8752
8777
|
};
|
|
8753
|
-
}
|
|
8754
|
-
|
|
8755
|
-
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
8756
|
-
readonly type: "final";
|
|
8757
|
-
};
|
|
8758
|
-
};
|
|
8759
|
-
readonly on: {
|
|
8760
|
-
readonly synced: {
|
|
8761
|
-
readonly target: ".synced";
|
|
8762
|
-
};
|
|
8763
|
-
readonly stop: {
|
|
8764
|
-
readonly target: ".stopped";
|
|
8765
|
-
};
|
|
8766
|
-
};
|
|
8767
|
-
}>;
|
|
8768
|
-
id: "syncLayout";
|
|
8769
|
-
};
|
|
8770
|
-
hotkeyActorLogic: {
|
|
8771
|
-
src: "hotkeyActorLogic";
|
|
8772
|
-
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
8773
|
-
id: "hotkey";
|
|
8774
|
-
};
|
|
8775
|
-
overlaysActorLogic: {
|
|
8776
|
-
src: "overlaysActorLogic";
|
|
8777
|
-
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
8778
|
-
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
8779
|
-
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
8780
|
-
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
8781
|
-
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
8782
|
-
}, Values<{
|
|
8783
|
-
elementDetails: {
|
|
8784
|
-
src: "elementDetails";
|
|
8785
|
-
logic: ElementDetailsLogic;
|
|
8786
|
-
id: `elementDetails-${number}`;
|
|
8787
|
-
};
|
|
8788
|
-
relationshipsBrowser: {
|
|
8789
|
-
src: "relationshipsBrowser";
|
|
8790
|
-
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
8791
|
-
id: `relationshipsBrowser-${number}`;
|
|
8792
|
-
};
|
|
8793
|
-
relationshipDetails: {
|
|
8794
|
-
src: "relationshipDetails";
|
|
8795
|
-
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
8796
|
-
id: `relationshipDetails-${number}`;
|
|
8778
|
+
}>;
|
|
8779
|
+
id: "syncLayout";
|
|
8797
8780
|
};
|
|
8798
|
-
|
|
8799
|
-
src: "
|
|
8800
|
-
logic: CallbackActorLogic<
|
|
8781
|
+
hotkeyActorLogic: {
|
|
8782
|
+
src: "hotkeyActorLogic";
|
|
8783
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
8801
8784
|
id: "hotkey";
|
|
8802
8785
|
};
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8786
|
+
overlaysActorLogic: {
|
|
8787
|
+
src: "overlaysActorLogic";
|
|
8788
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
8789
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
8790
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
8791
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
8792
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
8793
|
+
}, Values<{
|
|
8794
|
+
elementDetails: {
|
|
8795
|
+
src: "elementDetails";
|
|
8796
|
+
logic: ElementDetailsLogic;
|
|
8797
|
+
id: `elementDetails-${number}`;
|
|
8798
|
+
};
|
|
8799
|
+
relationshipsBrowser: {
|
|
8800
|
+
src: "relationshipsBrowser";
|
|
8801
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
8802
|
+
id: `relationshipsBrowser-${number}`;
|
|
8803
|
+
};
|
|
8804
|
+
relationshipDetails: {
|
|
8805
|
+
src: "relationshipDetails";
|
|
8806
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
8807
|
+
id: `relationshipDetails-${number}`;
|
|
8808
|
+
};
|
|
8809
|
+
hotkey: {
|
|
8810
|
+
src: "hotkey";
|
|
8811
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
8812
|
+
id: "hotkey";
|
|
8813
|
+
};
|
|
8814
|
+
}>, Values<{
|
|
8815
|
+
closeLastOverlay: {
|
|
8816
|
+
type: "closeLastOverlay";
|
|
8817
|
+
params: NonReducibleUnknown;
|
|
8818
|
+
};
|
|
8819
|
+
closeSpecificOverlay: {
|
|
8820
|
+
type: "closeSpecificOverlay";
|
|
8821
|
+
params: {
|
|
8822
|
+
actorId: string;
|
|
8823
|
+
};
|
|
8824
|
+
};
|
|
8825
|
+
closeAllOverlays: {
|
|
8826
|
+
type: "closeAllOverlays";
|
|
8827
|
+
params: NonReducibleUnknown;
|
|
8828
|
+
};
|
|
8829
|
+
openElementDetails: {
|
|
8830
|
+
type: "openElementDetails";
|
|
8831
|
+
params: NonReducibleUnknown;
|
|
8832
|
+
};
|
|
8833
|
+
openRelationshipDetails: {
|
|
8834
|
+
type: "openRelationshipDetails";
|
|
8835
|
+
params: NonReducibleUnknown;
|
|
8836
|
+
};
|
|
8837
|
+
openRelationshipsBrowser: {
|
|
8838
|
+
type: "openRelationshipsBrowser";
|
|
8839
|
+
params: NonReducibleUnknown;
|
|
8840
|
+
};
|
|
8841
|
+
listenToEsc: {
|
|
8842
|
+
type: "listenToEsc";
|
|
8843
|
+
params: NonReducibleUnknown;
|
|
8844
|
+
};
|
|
8845
|
+
stopListeningToEsc: {
|
|
8846
|
+
type: "stopListeningToEsc";
|
|
8847
|
+
params: NonReducibleUnknown;
|
|
8848
|
+
};
|
|
8849
|
+
}>, Values<{
|
|
8850
|
+
"has overlays?": {
|
|
8851
|
+
type: "has overlays?";
|
|
8852
|
+
params: unknown;
|
|
8853
|
+
};
|
|
8854
|
+
"close specific overlay?": {
|
|
8855
|
+
type: "close specific overlay?";
|
|
8856
|
+
params: unknown;
|
|
8857
|
+
};
|
|
8858
|
+
"last: is relationshipDetails?": {
|
|
8859
|
+
type: "last: is relationshipDetails?";
|
|
8860
|
+
params: unknown;
|
|
8861
|
+
};
|
|
8862
|
+
"last: is relationshipsBrowser?": {
|
|
8863
|
+
type: "last: is relationshipsBrowser?";
|
|
8864
|
+
params: unknown;
|
|
8865
|
+
};
|
|
8866
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
8867
|
+
readonly id: "overlays";
|
|
8868
|
+
readonly context: () => {
|
|
8869
|
+
seq: number;
|
|
8870
|
+
overlays: never[];
|
|
8871
|
+
};
|
|
8872
|
+
readonly initial: "idle";
|
|
8873
|
+
readonly on: {
|
|
8874
|
+
readonly 'open.elementDetails': {
|
|
8875
|
+
readonly actions: "openElementDetails";
|
|
8876
|
+
readonly target: ".active";
|
|
8877
|
+
readonly reenter: false;
|
|
8878
|
+
};
|
|
8879
|
+
readonly 'open.relationshipDetails': {
|
|
8880
|
+
readonly actions: "openRelationshipDetails";
|
|
8881
|
+
readonly target: ".active";
|
|
8882
|
+
readonly reenter: false;
|
|
8883
|
+
};
|
|
8884
|
+
readonly 'open.relationshipsBrowser': {
|
|
8885
|
+
readonly actions: "openRelationshipsBrowser";
|
|
8886
|
+
readonly target: ".active";
|
|
8887
|
+
readonly reenter: false;
|
|
8888
|
+
};
|
|
8889
|
+
};
|
|
8890
|
+
readonly states: {
|
|
8891
|
+
readonly idle: {};
|
|
8892
|
+
readonly active: {
|
|
8893
|
+
readonly entry: "listenToEsc";
|
|
8894
|
+
readonly exit: "stopListeningToEsc";
|
|
8895
|
+
readonly on: {
|
|
8896
|
+
readonly close: readonly [{
|
|
8897
|
+
readonly guard: "close specific overlay?";
|
|
8898
|
+
readonly actions: {
|
|
8899
|
+
readonly type: "closeSpecificOverlay";
|
|
8900
|
+
readonly params: ({ event }: {
|
|
8901
|
+
context: OverlaysContext;
|
|
8902
|
+
event: {
|
|
8903
|
+
type: "close";
|
|
8904
|
+
actorId?: string | undefined;
|
|
8905
|
+
};
|
|
8906
|
+
}) => {
|
|
8907
|
+
actorId: string;
|
|
8908
|
+
};
|
|
8909
|
+
};
|
|
8910
|
+
readonly target: "closing";
|
|
8911
|
+
}, {
|
|
8912
|
+
readonly actions: "closeLastOverlay";
|
|
8913
|
+
readonly target: "closing";
|
|
8914
|
+
}];
|
|
8915
|
+
readonly 'close.all': {
|
|
8916
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
8917
|
+
readonly target: "idle";
|
|
8918
|
+
};
|
|
8919
|
+
};
|
|
8920
|
+
};
|
|
8921
|
+
readonly closing: {
|
|
8922
|
+
readonly always: readonly [{
|
|
8923
|
+
readonly guard: "has overlays?";
|
|
8924
|
+
readonly target: "active";
|
|
8925
|
+
}, {
|
|
8926
|
+
readonly actions: "stopListeningToEsc";
|
|
8927
|
+
readonly target: "idle";
|
|
8928
|
+
}];
|
|
8929
|
+
};
|
|
8930
|
+
};
|
|
8931
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
8932
|
+
}>;
|
|
8933
|
+
id: "overlays";
|
|
8934
|
+
};
|
|
8935
|
+
}>, never, never, never, never>, "xyflow:fitFocusedBounds"];
|
|
8936
|
+
};
|
|
8937
|
+
readonly 'notations.unhighlight': {
|
|
8938
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
8939
|
+
type: "notations.unhighlight";
|
|
8940
|
+
}, Events, undefined, Values<{
|
|
8941
|
+
syncManualLayoutActorLogic: {
|
|
8942
|
+
src: "syncManualLayoutActorLogic";
|
|
8943
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
8944
|
+
type: "trigger:OnChange";
|
|
8945
|
+
params: {
|
|
8946
|
+
change: ViewChange;
|
|
8947
|
+
};
|
|
8948
|
+
}, {
|
|
8949
|
+
type: "same view";
|
|
8950
|
+
params: unknown;
|
|
8951
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8952
|
+
readonly initial: "idle";
|
|
8953
|
+
readonly context: ({ input }: {
|
|
8954
|
+
spawn: {
|
|
8955
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
8956
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
8957
|
+
id?: never;
|
|
8958
|
+
systemId?: string;
|
|
8959
|
+
input?: InputFrom<TLogic>;
|
|
8960
|
+
syncSnapshot?: boolean;
|
|
8961
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
8962
|
+
};
|
|
8963
|
+
input: Input;
|
|
8964
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
8965
|
+
}) => {
|
|
8966
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
8967
|
+
viewId: ViewId;
|
|
8968
|
+
};
|
|
8969
|
+
readonly states: {
|
|
8970
|
+
readonly idle: {
|
|
8971
|
+
readonly tags: "ready";
|
|
8972
|
+
readonly on: {
|
|
8973
|
+
readonly sync: {
|
|
8974
|
+
readonly target: "pending";
|
|
8975
|
+
};
|
|
8976
|
+
};
|
|
8977
|
+
};
|
|
8978
|
+
readonly paused: {
|
|
8979
|
+
readonly tags: "pending";
|
|
8980
|
+
readonly on: {
|
|
8981
|
+
readonly sync: {
|
|
8982
|
+
readonly target: "pending";
|
|
8983
|
+
};
|
|
8984
|
+
};
|
|
8985
|
+
};
|
|
8986
|
+
readonly pending: {
|
|
8987
|
+
readonly tags: "pending";
|
|
8988
|
+
readonly on: {
|
|
8989
|
+
readonly sync: {
|
|
8990
|
+
readonly target: "pending";
|
|
8991
|
+
readonly reenter: true;
|
|
8992
|
+
};
|
|
8993
|
+
readonly cancel: {
|
|
8994
|
+
readonly target: "paused";
|
|
8995
|
+
};
|
|
8996
|
+
};
|
|
8997
|
+
readonly after: {
|
|
8998
|
+
readonly timeout: readonly [{
|
|
8999
|
+
readonly guard: "same view";
|
|
9000
|
+
readonly actions: {
|
|
9001
|
+
readonly type: "trigger:OnChange";
|
|
9002
|
+
readonly params: ({ context }: {
|
|
9003
|
+
context: Readonly< Input>;
|
|
9004
|
+
event: Events;
|
|
9005
|
+
}) => {
|
|
9006
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
9007
|
+
};
|
|
9008
|
+
};
|
|
9009
|
+
readonly target: "synced";
|
|
9010
|
+
}, {
|
|
9011
|
+
readonly target: "stopped";
|
|
9012
|
+
}];
|
|
9013
|
+
};
|
|
9014
|
+
};
|
|
9015
|
+
readonly synced: {
|
|
9016
|
+
readonly tags: "ready";
|
|
9017
|
+
readonly on: {
|
|
9018
|
+
readonly sync: {
|
|
9019
|
+
readonly target: "pending";
|
|
9020
|
+
};
|
|
9021
|
+
};
|
|
9022
|
+
};
|
|
9023
|
+
readonly stopped: {
|
|
9024
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
9025
|
+
readonly type: "final";
|
|
9026
|
+
};
|
|
9027
|
+
};
|
|
9028
|
+
readonly on: {
|
|
9029
|
+
readonly synced: {
|
|
9030
|
+
readonly target: ".synced";
|
|
9031
|
+
};
|
|
9032
|
+
readonly stop: {
|
|
9033
|
+
readonly target: ".stopped";
|
|
9034
|
+
};
|
|
9035
|
+
};
|
|
9036
|
+
}>;
|
|
9037
|
+
id: "syncLayout";
|
|
9038
|
+
};
|
|
9039
|
+
hotkeyActorLogic: {
|
|
9040
|
+
src: "hotkeyActorLogic";
|
|
9041
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
9042
|
+
id: "hotkey";
|
|
9043
|
+
};
|
|
9044
|
+
overlaysActorLogic: {
|
|
9045
|
+
src: "overlaysActorLogic";
|
|
9046
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
9047
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
9048
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
9049
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
9050
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
9051
|
+
}, Values<{
|
|
9052
|
+
elementDetails: {
|
|
9053
|
+
src: "elementDetails";
|
|
9054
|
+
logic: ElementDetailsLogic;
|
|
9055
|
+
id: `elementDetails-${number}`;
|
|
9056
|
+
};
|
|
9057
|
+
relationshipsBrowser: {
|
|
9058
|
+
src: "relationshipsBrowser";
|
|
9059
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
9060
|
+
id: `relationshipsBrowser-${number}`;
|
|
9061
|
+
};
|
|
9062
|
+
relationshipDetails: {
|
|
9063
|
+
src: "relationshipDetails";
|
|
9064
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
9065
|
+
id: `relationshipDetails-${number}`;
|
|
9066
|
+
};
|
|
9067
|
+
hotkey: {
|
|
9068
|
+
src: "hotkey";
|
|
9069
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
9070
|
+
id: "hotkey";
|
|
9071
|
+
};
|
|
9072
|
+
}>, Values<{
|
|
9073
|
+
closeLastOverlay: {
|
|
9074
|
+
type: "closeLastOverlay";
|
|
9075
|
+
params: NonReducibleUnknown;
|
|
9076
|
+
};
|
|
9077
|
+
closeSpecificOverlay: {
|
|
9078
|
+
type: "closeSpecificOverlay";
|
|
9079
|
+
params: {
|
|
9080
|
+
actorId: string;
|
|
9081
|
+
};
|
|
9082
|
+
};
|
|
9083
|
+
closeAllOverlays: {
|
|
9084
|
+
type: "closeAllOverlays";
|
|
9085
|
+
params: NonReducibleUnknown;
|
|
9086
|
+
};
|
|
9087
|
+
openElementDetails: {
|
|
9088
|
+
type: "openElementDetails";
|
|
9089
|
+
params: NonReducibleUnknown;
|
|
9090
|
+
};
|
|
9091
|
+
openRelationshipDetails: {
|
|
9092
|
+
type: "openRelationshipDetails";
|
|
9093
|
+
params: NonReducibleUnknown;
|
|
9094
|
+
};
|
|
9095
|
+
openRelationshipsBrowser: {
|
|
9096
|
+
type: "openRelationshipsBrowser";
|
|
9097
|
+
params: NonReducibleUnknown;
|
|
9098
|
+
};
|
|
9099
|
+
listenToEsc: {
|
|
9100
|
+
type: "listenToEsc";
|
|
9101
|
+
params: NonReducibleUnknown;
|
|
9102
|
+
};
|
|
9103
|
+
stopListeningToEsc: {
|
|
9104
|
+
type: "stopListeningToEsc";
|
|
9105
|
+
params: NonReducibleUnknown;
|
|
9106
|
+
};
|
|
9107
|
+
}>, Values<{
|
|
9108
|
+
"has overlays?": {
|
|
9109
|
+
type: "has overlays?";
|
|
9110
|
+
params: unknown;
|
|
9111
|
+
};
|
|
9112
|
+
"close specific overlay?": {
|
|
9113
|
+
type: "close specific overlay?";
|
|
9114
|
+
params: unknown;
|
|
9115
|
+
};
|
|
9116
|
+
"last: is relationshipDetails?": {
|
|
9117
|
+
type: "last: is relationshipDetails?";
|
|
9118
|
+
params: unknown;
|
|
9119
|
+
};
|
|
9120
|
+
"last: is relationshipsBrowser?": {
|
|
9121
|
+
type: "last: is relationshipsBrowser?";
|
|
9122
|
+
params: unknown;
|
|
9123
|
+
};
|
|
9124
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
9125
|
+
readonly id: "overlays";
|
|
9126
|
+
readonly context: () => {
|
|
9127
|
+
seq: number;
|
|
9128
|
+
overlays: never[];
|
|
9129
|
+
};
|
|
9130
|
+
readonly initial: "idle";
|
|
9131
|
+
readonly on: {
|
|
9132
|
+
readonly 'open.elementDetails': {
|
|
9133
|
+
readonly actions: "openElementDetails";
|
|
9134
|
+
readonly target: ".active";
|
|
9135
|
+
readonly reenter: false;
|
|
9136
|
+
};
|
|
9137
|
+
readonly 'open.relationshipDetails': {
|
|
9138
|
+
readonly actions: "openRelationshipDetails";
|
|
9139
|
+
readonly target: ".active";
|
|
9140
|
+
readonly reenter: false;
|
|
9141
|
+
};
|
|
9142
|
+
readonly 'open.relationshipsBrowser': {
|
|
9143
|
+
readonly actions: "openRelationshipsBrowser";
|
|
9144
|
+
readonly target: ".active";
|
|
9145
|
+
readonly reenter: false;
|
|
9146
|
+
};
|
|
9147
|
+
};
|
|
9148
|
+
readonly states: {
|
|
9149
|
+
readonly idle: {};
|
|
9150
|
+
readonly active: {
|
|
9151
|
+
readonly entry: "listenToEsc";
|
|
9152
|
+
readonly exit: "stopListeningToEsc";
|
|
9153
|
+
readonly on: {
|
|
9154
|
+
readonly close: readonly [{
|
|
9155
|
+
readonly guard: "close specific overlay?";
|
|
9156
|
+
readonly actions: {
|
|
9157
|
+
readonly type: "closeSpecificOverlay";
|
|
9158
|
+
readonly params: ({ event }: {
|
|
9159
|
+
context: OverlaysContext;
|
|
9160
|
+
event: {
|
|
9161
|
+
type: "close";
|
|
9162
|
+
actorId?: string | undefined;
|
|
9163
|
+
};
|
|
9164
|
+
}) => {
|
|
9165
|
+
actorId: string;
|
|
9166
|
+
};
|
|
9167
|
+
};
|
|
9168
|
+
readonly target: "closing";
|
|
9169
|
+
}, {
|
|
9170
|
+
readonly actions: "closeLastOverlay";
|
|
9171
|
+
readonly target: "closing";
|
|
9172
|
+
}];
|
|
9173
|
+
readonly 'close.all': {
|
|
9174
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
9175
|
+
readonly target: "idle";
|
|
9176
|
+
};
|
|
9177
|
+
};
|
|
9178
|
+
};
|
|
9179
|
+
readonly closing: {
|
|
9180
|
+
readonly always: readonly [{
|
|
9181
|
+
readonly guard: "has overlays?";
|
|
9182
|
+
readonly target: "active";
|
|
9183
|
+
}, {
|
|
9184
|
+
readonly actions: "stopListeningToEsc";
|
|
9185
|
+
readonly target: "idle";
|
|
9186
|
+
}];
|
|
9187
|
+
};
|
|
9188
|
+
};
|
|
9189
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
9190
|
+
}>;
|
|
9191
|
+
id: "overlays";
|
|
9192
|
+
};
|
|
9193
|
+
}>, never, never, never, never>;
|
|
9194
|
+
};
|
|
9195
|
+
readonly 'walkthrough.end': {
|
|
9196
|
+
readonly target: "idle";
|
|
9197
|
+
};
|
|
9198
|
+
readonly 'xyflow.paneDblClick': {
|
|
9199
|
+
readonly target: "idle";
|
|
9200
|
+
};
|
|
9201
|
+
readonly 'update.view': {
|
|
9202
|
+
readonly guard: "is another view";
|
|
9203
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
9204
|
+
type: "update.view";
|
|
9205
|
+
view: DiagramView;
|
|
9206
|
+
xynodes: Types.Node[];
|
|
9207
|
+
xyedges: Types.Edge[];
|
|
9208
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
9209
|
+
readonly target: "idle";
|
|
9210
|
+
};
|
|
9211
|
+
};
|
|
9212
|
+
readonly exit: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
9213
|
+
syncManualLayoutActorLogic: {
|
|
9214
|
+
src: "syncManualLayoutActorLogic";
|
|
9215
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
9216
|
+
type: "trigger:OnChange";
|
|
9217
|
+
params: {
|
|
9218
|
+
change: ViewChange;
|
|
9219
|
+
};
|
|
9220
|
+
}, {
|
|
9221
|
+
type: "same view";
|
|
9222
|
+
params: unknown;
|
|
9223
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
9224
|
+
readonly initial: "idle";
|
|
9225
|
+
readonly context: ({ input }: {
|
|
9226
|
+
spawn: {
|
|
9227
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
9228
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
9229
|
+
id?: never;
|
|
9230
|
+
systemId?: string;
|
|
9231
|
+
input?: InputFrom<TLogic>;
|
|
9232
|
+
syncSnapshot?: boolean;
|
|
9233
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
9234
|
+
};
|
|
9235
|
+
input: Input;
|
|
9236
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
9237
|
+
}) => {
|
|
9238
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
9239
|
+
viewId: ViewId;
|
|
9240
|
+
};
|
|
9241
|
+
readonly states: {
|
|
9242
|
+
readonly idle: {
|
|
9243
|
+
readonly tags: "ready";
|
|
9244
|
+
readonly on: {
|
|
9245
|
+
readonly sync: {
|
|
9246
|
+
readonly target: "pending";
|
|
9247
|
+
};
|
|
9248
|
+
};
|
|
9249
|
+
};
|
|
9250
|
+
readonly paused: {
|
|
9251
|
+
readonly tags: "pending";
|
|
9252
|
+
readonly on: {
|
|
9253
|
+
readonly sync: {
|
|
9254
|
+
readonly target: "pending";
|
|
9255
|
+
};
|
|
9256
|
+
};
|
|
9257
|
+
};
|
|
9258
|
+
readonly pending: {
|
|
9259
|
+
readonly tags: "pending";
|
|
9260
|
+
readonly on: {
|
|
9261
|
+
readonly sync: {
|
|
9262
|
+
readonly target: "pending";
|
|
9263
|
+
readonly reenter: true;
|
|
9264
|
+
};
|
|
9265
|
+
readonly cancel: {
|
|
9266
|
+
readonly target: "paused";
|
|
9267
|
+
};
|
|
9268
|
+
};
|
|
9269
|
+
readonly after: {
|
|
9270
|
+
readonly timeout: readonly [{
|
|
9271
|
+
readonly guard: "same view";
|
|
9272
|
+
readonly actions: {
|
|
9273
|
+
readonly type: "trigger:OnChange";
|
|
9274
|
+
readonly params: ({ context }: {
|
|
9275
|
+
context: Readonly< Input>;
|
|
9276
|
+
event: Events;
|
|
9277
|
+
}) => {
|
|
9278
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
9279
|
+
};
|
|
9280
|
+
};
|
|
9281
|
+
readonly target: "synced";
|
|
9282
|
+
}, {
|
|
9283
|
+
readonly target: "stopped";
|
|
9284
|
+
}];
|
|
9285
|
+
};
|
|
9286
|
+
};
|
|
9287
|
+
readonly synced: {
|
|
9288
|
+
readonly tags: "ready";
|
|
9289
|
+
readonly on: {
|
|
9290
|
+
readonly sync: {
|
|
9291
|
+
readonly target: "pending";
|
|
9292
|
+
};
|
|
9293
|
+
};
|
|
9294
|
+
};
|
|
9295
|
+
readonly stopped: {
|
|
9296
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
9297
|
+
readonly type: "final";
|
|
9298
|
+
};
|
|
9299
|
+
};
|
|
9300
|
+
readonly on: {
|
|
9301
|
+
readonly synced: {
|
|
9302
|
+
readonly target: ".synced";
|
|
9303
|
+
};
|
|
9304
|
+
readonly stop: {
|
|
9305
|
+
readonly target: ".stopped";
|
|
9306
|
+
};
|
|
9307
|
+
};
|
|
9308
|
+
}>;
|
|
9309
|
+
id: "syncLayout";
|
|
9310
|
+
};
|
|
9311
|
+
hotkeyActorLogic: {
|
|
9312
|
+
src: "hotkeyActorLogic";
|
|
9313
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
9314
|
+
id: "hotkey";
|
|
9315
|
+
};
|
|
9316
|
+
overlaysActorLogic: {
|
|
9317
|
+
src: "overlaysActorLogic";
|
|
9318
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
9319
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
9320
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
9321
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
9322
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
9323
|
+
}, Values<{
|
|
9324
|
+
elementDetails: {
|
|
9325
|
+
src: "elementDetails";
|
|
9326
|
+
logic: ElementDetailsLogic;
|
|
9327
|
+
id: `elementDetails-${number}`;
|
|
9328
|
+
};
|
|
9329
|
+
relationshipsBrowser: {
|
|
9330
|
+
src: "relationshipsBrowser";
|
|
9331
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
9332
|
+
id: `relationshipsBrowser-${number}`;
|
|
9333
|
+
};
|
|
9334
|
+
relationshipDetails: {
|
|
9335
|
+
src: "relationshipDetails";
|
|
9336
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
9337
|
+
id: `relationshipDetails-${number}`;
|
|
9338
|
+
};
|
|
9339
|
+
hotkey: {
|
|
9340
|
+
src: "hotkey";
|
|
9341
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
9342
|
+
id: "hotkey";
|
|
9343
|
+
};
|
|
9344
|
+
}>, Values<{
|
|
9345
|
+
closeLastOverlay: {
|
|
9346
|
+
type: "closeLastOverlay";
|
|
9347
|
+
params: NonReducibleUnknown;
|
|
9348
|
+
};
|
|
9349
|
+
closeSpecificOverlay: {
|
|
8809
9350
|
type: "closeSpecificOverlay";
|
|
8810
9351
|
params: {
|
|
8811
9352
|
actorId: string;
|
|
@@ -9048,6 +9589,10 @@ export declare function useDiagram(): {
|
|
|
9048
9589
|
type: "enabled: Readonly";
|
|
9049
9590
|
params: unknown;
|
|
9050
9591
|
};
|
|
9592
|
+
"enabled: RelationshipDetails": {
|
|
9593
|
+
type: "enabled: RelationshipDetails";
|
|
9594
|
+
params: unknown;
|
|
9595
|
+
};
|
|
9051
9596
|
"not readonly": {
|
|
9052
9597
|
type: "not readonly";
|
|
9053
9598
|
params: unknown;
|
|
@@ -9076,6 +9621,10 @@ export declare function useDiagram(): {
|
|
|
9076
9621
|
type: "click: node has connections";
|
|
9077
9622
|
params: unknown;
|
|
9078
9623
|
};
|
|
9624
|
+
"click: selected edge": {
|
|
9625
|
+
type: "click: selected edge";
|
|
9626
|
+
params: unknown;
|
|
9627
|
+
};
|
|
9079
9628
|
}>, never, EventObject>;
|
|
9080
9629
|
};
|
|
9081
9630
|
};
|
|
@@ -9478,6 +10027,10 @@ export declare function useDiagram(): {
|
|
|
9478
10027
|
type: "enabled: Readonly";
|
|
9479
10028
|
params: unknown;
|
|
9480
10029
|
};
|
|
10030
|
+
"enabled: RelationshipDetails": {
|
|
10031
|
+
type: "enabled: RelationshipDetails";
|
|
10032
|
+
params: unknown;
|
|
10033
|
+
};
|
|
9481
10034
|
"not readonly": {
|
|
9482
10035
|
type: "not readonly";
|
|
9483
10036
|
params: unknown;
|
|
@@ -9506,6 +10059,10 @@ export declare function useDiagram(): {
|
|
|
9506
10059
|
type: "click: node has connections";
|
|
9507
10060
|
params: unknown;
|
|
9508
10061
|
};
|
|
10062
|
+
"click: selected edge": {
|
|
10063
|
+
type: "click: selected edge";
|
|
10064
|
+
params: unknown;
|
|
10065
|
+
};
|
|
9509
10066
|
}>, never, EventObject>;
|
|
9510
10067
|
readonly target: "#idle";
|
|
9511
10068
|
};
|
|
@@ -11460,6 +12017,10 @@ export declare function useDiagram(): {
|
|
|
11460
12017
|
type: "enabled: Readonly";
|
|
11461
12018
|
params: unknown;
|
|
11462
12019
|
};
|
|
12020
|
+
"enabled: RelationshipDetails": {
|
|
12021
|
+
type: "enabled: RelationshipDetails";
|
|
12022
|
+
params: unknown;
|
|
12023
|
+
};
|
|
11463
12024
|
"not readonly": {
|
|
11464
12025
|
type: "not readonly";
|
|
11465
12026
|
params: unknown;
|
|
@@ -11488,6 +12049,10 @@ export declare function useDiagram(): {
|
|
|
11488
12049
|
type: "click: node has connections";
|
|
11489
12050
|
params: unknown;
|
|
11490
12051
|
};
|
|
12052
|
+
"click: selected edge": {
|
|
12053
|
+
type: "click: selected edge";
|
|
12054
|
+
params: unknown;
|
|
12055
|
+
};
|
|
11491
12056
|
}>, never, EventObject>];
|
|
11492
12057
|
};
|
|
11493
12058
|
readonly 'update.inputs': {
|