@likec4/diagram 1.27.1 → 1.27.2
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 +2147 -6730
- package/dist/LikeC4Diagram.js +1 -1
- package/dist/LikeC4Diagram.props.d.ts +5 -3
- package/dist/StaticLikeC4Diagram.js +1 -1
- package/dist/_virtual/set.js +5 -0
- package/dist/_virtual/set2.js +3 -0
- package/dist/base/BaseXYFlow.d.ts +2 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.d.ts +1 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.js +0 -1
- package/dist/base/primitives/element/ElementActionButtons.js +5 -10
- package/dist/base/primitives/element/ElementNodeContainer.css.js +4 -4
- package/dist/base/updateEdges.js +1 -9
- package/dist/base/updateNodes.js +1 -12
- package/dist/bundle/LikeC4View.js +2 -2
- package/dist/bundle/LikeC4View.props.d.ts +7 -7
- package/dist/hooks/useCurrentViewId.js +8 -2
- package/dist/hooks/useDiagram.d.ts +1517 -684
- package/dist/hooks/useDiagram.js +16 -8
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +3 -3
- package/dist/likec4diagram/ui/notation/NotationPanel.js +10 -4
- package/dist/node_modules/.pnpm/mnemonist@0.40.3_patch_hash_5c12abb43fcff6fd81e53021b89075d53249640d165a2556cc1e58d71201a13a/node_modules/mnemonist/set.js +369 -0
- package/dist/overlays/Overlays.js +3 -1
- package/dist/overlays/element-details/actor.d.ts +2769 -173
- package/dist/overlays/overlay/Overlay.css.d.ts +26 -2
- package/dist/overlays/overlay/Overlay.css.js +66 -18
- package/dist/overlays/overlay/Overlay.d.ts +7 -6
- package/dist/overlays/overlay/Overlay.js +12 -8
- package/dist/overlays/overlaysActor.js +2 -2
- package/dist/overlays/relationship-details/RelationshipDetails.js +113 -70
- package/dist/overlays/relationship-details/SelectEdge.d.ts +1 -1
- package/dist/overlays/relationship-details/SelectEdge.js +15 -9
- package/dist/overlays/relationship-details/_types.d.ts +4 -1
- package/dist/overlays/relationship-details/actor.d.ts +415 -128
- package/dist/overlays/relationship-details/actor.js +162 -53
- package/dist/overlays/relationship-details/compute.d.ts +12 -0
- package/dist/overlays/relationship-details/compute.js +139 -0
- package/dist/overlays/relationship-details/custom/ElementActions.js +27 -5
- package/dist/overlays/relationship-details/custom/edgeTypes.js +1 -1
- package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +2 -1
- package/dist/overlays/relationship-details/hooks.d.ts +336 -6
- package/dist/overlays/relationship-details/hooks.js +9 -7
- package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +12 -0
- package/dist/overlays/relationship-details/layout-to-xyflow.js +149 -0
- package/dist/overlays/relationship-details/layout.d.ts +22 -0
- package/dist/overlays/relationship-details/layout.js +314 -0
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +3 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +2 -2
- package/dist/overlays/relationships-browser/_types.d.ts +2 -0
- package/dist/overlays/relationships-browser/actor.d.ts +130 -14
- package/dist/overlays/relationships-browser/actor.js +30 -16
- package/dist/overlays/relationships-browser/custom/ElementActions.js +5 -3
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +3 -1
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +1 -1
- package/dist/overlays/relationships-browser/hooks.d.ts +3 -1
- package/dist/overlays/relationships-browser/hooks.js +1 -1
- package/dist/overlays/relationships-browser/{-useRelationshipsView.d.ts → layout.d.ts} +2 -0
- package/dist/overlays/relationships-browser/{-useRelationshipsView.js → layout.js} +19 -2
- package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +1 -1
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +3 -1
- package/dist/packages/core/src/compute-view/relationships-view/compute.js +1 -1
- package/dist/packages/core/src/model/connection/model/ConnectionModel.js +121 -0
- package/dist/packages/core/src/model/connection/model/find.js +39 -0
- package/dist/packages/core/src/model/connection/ops.js +7 -0
- package/dist/packages/core/src/utils/const.js +3 -0
- package/dist/packages/core/src/utils/fqn.js +9 -1
- package/dist/packages/core/src/utils/iterable/find.js +21 -0
- package/dist/packages/core/src/utils/iterable/some.js +21 -0
- package/dist/packages/core/src/utils/set.js +48 -0
- package/dist/packages/core/src/utils/string-hash.js +13 -0
- package/dist/state/diagram-machine.d.ts +1552 -703
- package/dist/state/diagram-machine.js +39 -3
- package/dist/state/syncManualLayoutActor.d.ts +1 -1
- package/dist/styles.css.js +1 -1
- package/package.json +11 -11
- package/src/LikeC4Diagram.props.ts +7 -3
- package/src/LikeC4Diagram.tsx +1 -1
- package/src/StaticLikeC4Diagram.tsx +1 -1
- package/src/base/BaseXYFlow.tsx +2 -1
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +0 -2
- package/src/base/primitives/element/ElementActionButtons.tsx +6 -7
- package/src/base/primitives/element/ElementNodeContainer.css.ts +4 -4
- package/src/base/updateEdges.ts +8 -8
- package/src/base/updateNodes.ts +11 -11
- package/src/bundle/LikeC4View.props.ts +7 -7
- package/src/bundle/LikeC4View.tsx +2 -2
- package/src/hooks/useCurrentViewId.ts +4 -2
- package/src/hooks/useDiagram.ts +18 -9
- package/src/likec4diagram/ui/notation/NotationPanel.css.ts +2 -2
- package/src/likec4diagram/ui/notation/NotationPanel.tsx +8 -6
- package/src/overlays/Overlays.tsx +3 -1
- package/src/overlays/overlay/Overlay.css.ts +67 -17
- package/src/overlays/overlay/Overlay.tsx +26 -21
- package/src/overlays/overlaysActor.ts +1 -1
- package/src/overlays/relationship-details/RelationshipDetails.tsx +131 -68
- package/src/overlays/relationship-details/SelectEdge.tsx +19 -12
- package/src/overlays/relationship-details/_types.ts +3 -1
- package/src/overlays/relationship-details/actor.ts +217 -68
- package/src/overlays/relationship-details/compute.ts +186 -0
- package/src/overlays/relationship-details/custom/ElementActions.tsx +27 -18
- package/src/overlays/relationship-details/custom/edgeTypes.tsx +1 -1
- package/src/overlays/relationship-details/hooks.ts +10 -8
- package/src/overlays/relationship-details/layout-to-xyflow.ts +195 -0
- package/src/overlays/relationship-details/layout.ts +470 -0
- package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +2 -2
- package/src/overlays/relationships-browser/_types.ts +2 -0
- package/src/overlays/relationships-browser/actor.ts +39 -14
- package/src/overlays/relationships-browser/custom/ElementActions.tsx +5 -3
- package/src/overlays/relationships-browser/custom/edgeTypes.tsx +1 -1
- package/src/overlays/relationships-browser/hooks.ts +2 -2
- package/src/overlays/relationships-browser/{-useRelationshipsView.ts → layout.ts} +23 -13
- package/src/overlays/relationships-browser/useViewToNodesEdges.ts +3 -1
- package/src/state/diagram-machine.ts +51 -6
- package/dist/overlays/relationship-details/useLayoutedDetails.d.ts +0 -19
- package/dist/overlays/relationship-details/useLayoutedDetails.js +0 -267
- package/src/overlays/relationship-details/useLayoutedDetails.ts +0 -376
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DiagramView, EdgeId, Fqn, NodeId, ViewId, ViewChange, NonEmptyArray, Point, Color, BBox, RelationshipLineType, RelationshipArrowType, XYPoint, DiagramNode, DiagramEdge } from '@likec4/core';
|
|
1
|
+
import { DiagramView, EdgeId, ElementNotation, Fqn, NodeId, ViewId, ViewChange, NonEmptyArray, Point, Color, BBox, RelationshipLineType, RelationshipArrowType, XYPoint, DiagramNode, DiagramEdge } from '@likec4/core';
|
|
2
2
|
import { PartialDeep } from 'type-fest';
|
|
3
3
|
import { FeatureName } from '../context/DiagramFeatures';
|
|
4
|
-
import { OpenSourceParams } from '../LikeC4Diagram.props';
|
|
4
|
+
import { OpenSourceParams, PaddingWithUnit } from '../LikeC4Diagram.props';
|
|
5
5
|
import { Types } from '../likec4diagram/types';
|
|
6
6
|
import { AlignmentMode } from '../state/aligners';
|
|
7
7
|
import { DiagramActorSnapshot, DiagramContext, SyncLayoutActorSnapshot, DiagramActorRef } from '../state/types';
|
|
@@ -26,7 +26,7 @@ export declare function useDiagram(): {
|
|
|
26
26
|
openRelationshipsBrowser: (fqn: Fqn) => void;
|
|
27
27
|
openSource: (params: OpenSourceParams) => void;
|
|
28
28
|
openElementDetails: (fqn: Fqn, fromNode?: NodeId) => void;
|
|
29
|
-
openRelationshipDetails: (edgeId: EdgeId) => void;
|
|
29
|
+
openRelationshipDetails: (...params: [edgeId: EdgeId] | [source: Fqn, target: Fqn]) => void;
|
|
30
30
|
updateNodeData: (nodeId: NodeId, data: PartialDeep<Types.NodeData>) => void;
|
|
31
31
|
updateEdgeData: (edgeId: EdgeId, data: PartialDeep<Types.Edge["data"]>) => void;
|
|
32
32
|
scheduleSaveManualLayout: () => void;
|
|
@@ -53,7 +53,7 @@ export declare function useDiagram(): {
|
|
|
53
53
|
}, {
|
|
54
54
|
type: "same view";
|
|
55
55
|
params: unknown;
|
|
56
|
-
}, "timeout", "
|
|
56
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
57
57
|
readonly initial: "idle";
|
|
58
58
|
readonly context: ({ input }: {
|
|
59
59
|
spawn: {
|
|
@@ -301,7 +301,7 @@ export declare function useDiagram(): {
|
|
|
301
301
|
}, {
|
|
302
302
|
type: "same view";
|
|
303
303
|
params: unknown;
|
|
304
|
-
}, "timeout", "
|
|
304
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
305
305
|
readonly initial: "idle";
|
|
306
306
|
readonly context: ({ input }: {
|
|
307
307
|
spawn: {
|
|
@@ -398,7 +398,7 @@ export declare function useDiagram(): {
|
|
|
398
398
|
}, {
|
|
399
399
|
type: "same view";
|
|
400
400
|
params: unknown;
|
|
401
|
-
}, "timeout", "
|
|
401
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
402
402
|
readonly initial: "idle";
|
|
403
403
|
readonly context: ({ input }: {
|
|
404
404
|
spawn: {
|
|
@@ -821,7 +821,7 @@ export declare function useDiagram(): {
|
|
|
821
821
|
}, {
|
|
822
822
|
type: "same view";
|
|
823
823
|
params: unknown;
|
|
824
|
-
}, "timeout", "
|
|
824
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
825
825
|
readonly initial: "idle";
|
|
826
826
|
readonly context: ({ input }: {
|
|
827
827
|
spawn: {
|
|
@@ -1493,7 +1493,7 @@ export declare function useDiagram(): {
|
|
|
1493
1493
|
};
|
|
1494
1494
|
zoomable: boolean;
|
|
1495
1495
|
pannable: boolean;
|
|
1496
|
-
fitViewPadding:
|
|
1496
|
+
fitViewPadding: PaddingWithUnit;
|
|
1497
1497
|
nodesSelectable: boolean;
|
|
1498
1498
|
};
|
|
1499
1499
|
readonly states: {
|
|
@@ -1514,7 +1514,7 @@ export declare function useDiagram(): {
|
|
|
1514
1514
|
}, {
|
|
1515
1515
|
type: "same view";
|
|
1516
1516
|
params: unknown;
|
|
1517
|
-
}, "timeout", "
|
|
1517
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
1518
1518
|
readonly initial: "idle";
|
|
1519
1519
|
readonly context: ({ input }: {
|
|
1520
1520
|
spawn: {
|
|
@@ -1776,7 +1776,7 @@ export declare function useDiagram(): {
|
|
|
1776
1776
|
}, {
|
|
1777
1777
|
type: "same view";
|
|
1778
1778
|
params: unknown;
|
|
1779
|
-
}, "timeout", "
|
|
1779
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
1780
1780
|
readonly initial: "idle";
|
|
1781
1781
|
readonly context: ({ input }: {
|
|
1782
1782
|
spawn: {
|
|
@@ -2042,7 +2042,7 @@ export declare function useDiagram(): {
|
|
|
2042
2042
|
}, {
|
|
2043
2043
|
type: "same view";
|
|
2044
2044
|
params: unknown;
|
|
2045
|
-
}, "timeout", "
|
|
2045
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2046
2046
|
readonly initial: "idle";
|
|
2047
2047
|
readonly context: ({ input }: {
|
|
2048
2048
|
spawn: {
|
|
@@ -2310,7 +2310,7 @@ export declare function useDiagram(): {
|
|
|
2310
2310
|
}, {
|
|
2311
2311
|
type: "same view";
|
|
2312
2312
|
params: unknown;
|
|
2313
|
-
}, "timeout", "
|
|
2313
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2314
2314
|
readonly initial: "idle";
|
|
2315
2315
|
readonly context: ({ input }: {
|
|
2316
2316
|
spawn: {
|
|
@@ -2568,7 +2568,7 @@ export declare function useDiagram(): {
|
|
|
2568
2568
|
}, {
|
|
2569
2569
|
type: "same view";
|
|
2570
2570
|
params: unknown;
|
|
2571
|
-
}, "timeout", "
|
|
2571
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2572
2572
|
readonly initial: "idle";
|
|
2573
2573
|
readonly context: ({ input }: {
|
|
2574
2574
|
spawn: {
|
|
@@ -2826,7 +2826,7 @@ export declare function useDiagram(): {
|
|
|
2826
2826
|
}, {
|
|
2827
2827
|
type: "same view";
|
|
2828
2828
|
params: unknown;
|
|
2829
|
-
}, "timeout", "
|
|
2829
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2830
2830
|
readonly initial: "idle";
|
|
2831
2831
|
readonly context: ({ input }: {
|
|
2832
2832
|
spawn: {
|
|
@@ -3102,7 +3102,7 @@ export declare function useDiagram(): {
|
|
|
3102
3102
|
}, {
|
|
3103
3103
|
type: "same view";
|
|
3104
3104
|
params: unknown;
|
|
3105
|
-
}, "timeout", "
|
|
3105
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
3106
3106
|
readonly initial: "idle";
|
|
3107
3107
|
readonly context: ({ input }: {
|
|
3108
3108
|
spawn: {
|
|
@@ -3374,7 +3374,12 @@ export declare function useDiagram(): {
|
|
|
3374
3374
|
readonly 'open.relationshipDetails': {
|
|
3375
3375
|
readonly actions: ActionFunction<DiagramContext, {
|
|
3376
3376
|
type: "open.relationshipDetails";
|
|
3377
|
-
|
|
3377
|
+
params: {
|
|
3378
|
+
edgeId: EdgeId;
|
|
3379
|
+
} | {
|
|
3380
|
+
source: Fqn;
|
|
3381
|
+
target: Fqn;
|
|
3382
|
+
};
|
|
3378
3383
|
}, Events, undefined, never, never, never, never, never>;
|
|
3379
3384
|
};
|
|
3380
3385
|
readonly 'open.source': {
|
|
@@ -3410,7 +3415,7 @@ export declare function useDiagram(): {
|
|
|
3410
3415
|
}, {
|
|
3411
3416
|
type: "same view";
|
|
3412
3417
|
params: unknown;
|
|
3413
|
-
}, "timeout", "
|
|
3418
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
3414
3419
|
readonly initial: "idle";
|
|
3415
3420
|
readonly context: ({ input }: {
|
|
3416
3421
|
spawn: {
|
|
@@ -3898,150 +3903,425 @@ export declare function useDiagram(): {
|
|
|
3898
3903
|
};
|
|
3899
3904
|
};
|
|
3900
3905
|
};
|
|
3901
|
-
readonly '
|
|
3902
|
-
readonly
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3906
|
+
readonly 'notations.highlight': {
|
|
3907
|
+
readonly actions: {
|
|
3908
|
+
readonly type: "notations.highlight";
|
|
3909
|
+
readonly params: (data: {
|
|
3910
|
+
context: DiagramContext;
|
|
3911
|
+
event: {
|
|
3912
|
+
type: "notations.highlight";
|
|
3913
|
+
notation: ElementNotation;
|
|
3914
|
+
kind?: string;
|
|
3915
|
+
};
|
|
3916
|
+
}) => {
|
|
3917
|
+
type: "notations.highlight";
|
|
3918
|
+
notation: ElementNotation;
|
|
3919
|
+
kind?: string;
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3908
3922
|
};
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
},
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3923
|
+
readonly 'notations.unhighlight': {
|
|
3924
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
3925
|
+
type: "notations.unhighlight";
|
|
3926
|
+
}, Events, undefined, Values<{
|
|
3927
|
+
syncManualLayoutActorLogic: {
|
|
3928
|
+
src: "syncManualLayoutActorLogic";
|
|
3929
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
3930
|
+
type: "trigger:OnChange";
|
|
3931
|
+
params: {
|
|
3932
|
+
change: ViewChange;
|
|
3933
|
+
};
|
|
3934
|
+
}, {
|
|
3935
|
+
type: "same view";
|
|
3936
|
+
params: unknown;
|
|
3937
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
3938
|
+
readonly initial: "idle";
|
|
3939
|
+
readonly context: ({ input }: {
|
|
3940
|
+
spawn: {
|
|
3941
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
3942
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
3943
|
+
id?: never;
|
|
3944
|
+
systemId?: string;
|
|
3945
|
+
input?: InputFrom<TLogic>;
|
|
3946
|
+
syncSnapshot?: boolean;
|
|
3947
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
3948
|
+
};
|
|
3949
|
+
input: Input;
|
|
3950
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
3951
|
+
}) => {
|
|
3952
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
3953
|
+
viewId: ViewId;
|
|
3954
|
+
};
|
|
3955
|
+
readonly states: {
|
|
3956
|
+
readonly idle: {
|
|
3957
|
+
readonly tags: "ready";
|
|
3958
|
+
readonly on: {
|
|
3959
|
+
readonly sync: {
|
|
3960
|
+
readonly target: "pending";
|
|
3942
3961
|
};
|
|
3943
|
-
input: Input;
|
|
3944
|
-
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
3945
|
-
}) => {
|
|
3946
|
-
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
3947
|
-
viewId: ViewId;
|
|
3948
3962
|
};
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
};
|
|
3956
|
-
};
|
|
3963
|
+
};
|
|
3964
|
+
readonly paused: {
|
|
3965
|
+
readonly tags: "pending";
|
|
3966
|
+
readonly on: {
|
|
3967
|
+
readonly sync: {
|
|
3968
|
+
readonly target: "pending";
|
|
3957
3969
|
};
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3972
|
+
readonly pending: {
|
|
3973
|
+
readonly tags: "pending";
|
|
3974
|
+
readonly on: {
|
|
3975
|
+
readonly sync: {
|
|
3976
|
+
readonly target: "pending";
|
|
3977
|
+
readonly reenter: true;
|
|
3965
3978
|
};
|
|
3966
|
-
readonly
|
|
3967
|
-
readonly
|
|
3968
|
-
readonly on: {
|
|
3969
|
-
readonly sync: {
|
|
3970
|
-
readonly target: "pending";
|
|
3971
|
-
readonly reenter: true;
|
|
3972
|
-
};
|
|
3973
|
-
readonly cancel: {
|
|
3974
|
-
readonly target: "paused";
|
|
3975
|
-
};
|
|
3976
|
-
};
|
|
3977
|
-
readonly after: {
|
|
3978
|
-
readonly timeout: readonly [{
|
|
3979
|
-
readonly guard: "same view";
|
|
3980
|
-
readonly actions: {
|
|
3981
|
-
readonly type: "trigger:OnChange";
|
|
3982
|
-
readonly params: ({ context }: {
|
|
3983
|
-
context: Readonly< Input>;
|
|
3984
|
-
event: Events;
|
|
3985
|
-
}) => {
|
|
3986
|
-
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
3987
|
-
};
|
|
3988
|
-
};
|
|
3989
|
-
readonly target: "synced";
|
|
3990
|
-
}, {
|
|
3991
|
-
readonly target: "stopped";
|
|
3992
|
-
}];
|
|
3993
|
-
};
|
|
3979
|
+
readonly cancel: {
|
|
3980
|
+
readonly target: "paused";
|
|
3994
3981
|
};
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
3982
|
+
};
|
|
3983
|
+
readonly after: {
|
|
3984
|
+
readonly timeout: readonly [{
|
|
3985
|
+
readonly guard: "same view";
|
|
3986
|
+
readonly actions: {
|
|
3987
|
+
readonly type: "trigger:OnChange";
|
|
3988
|
+
readonly params: ({ context }: {
|
|
3989
|
+
context: Readonly< Input>;
|
|
3990
|
+
event: Events;
|
|
3991
|
+
}) => {
|
|
3992
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
4000
3993
|
};
|
|
4001
3994
|
};
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
readonly
|
|
4005
|
-
|
|
4006
|
-
};
|
|
3995
|
+
readonly target: "synced";
|
|
3996
|
+
}, {
|
|
3997
|
+
readonly target: "stopped";
|
|
3998
|
+
}];
|
|
4007
3999
|
};
|
|
4000
|
+
};
|
|
4001
|
+
readonly synced: {
|
|
4002
|
+
readonly tags: "ready";
|
|
4008
4003
|
readonly on: {
|
|
4009
|
-
readonly
|
|
4010
|
-
readonly target: "
|
|
4011
|
-
};
|
|
4012
|
-
readonly stop: {
|
|
4013
|
-
readonly target: ".stopped";
|
|
4004
|
+
readonly sync: {
|
|
4005
|
+
readonly target: "pending";
|
|
4014
4006
|
};
|
|
4015
4007
|
};
|
|
4016
|
-
}
|
|
4017
|
-
|
|
4008
|
+
};
|
|
4009
|
+
readonly stopped: {
|
|
4010
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
4011
|
+
readonly type: "final";
|
|
4012
|
+
};
|
|
4018
4013
|
};
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4014
|
+
readonly on: {
|
|
4015
|
+
readonly synced: {
|
|
4016
|
+
readonly target: ".synced";
|
|
4017
|
+
};
|
|
4018
|
+
readonly stop: {
|
|
4019
|
+
readonly target: ".stopped";
|
|
4020
|
+
};
|
|
4021
|
+
};
|
|
4022
|
+
}>;
|
|
4023
|
+
id: "syncLayout";
|
|
4024
|
+
};
|
|
4025
|
+
hotkeyActorLogic: {
|
|
4026
|
+
src: "hotkeyActorLogic";
|
|
4027
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
4028
|
+
id: "hotkey";
|
|
4029
|
+
};
|
|
4030
|
+
overlaysActorLogic: {
|
|
4031
|
+
src: "overlaysActorLogic";
|
|
4032
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
4033
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
4034
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
4035
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
4036
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
4037
|
+
}, Values<{
|
|
4038
|
+
elementDetails: {
|
|
4039
|
+
src: "elementDetails";
|
|
4040
|
+
logic: ElementDetailsLogic;
|
|
4041
|
+
id: `elementDetails-${number}`;
|
|
4042
|
+
};
|
|
4043
|
+
relationshipsBrowser: {
|
|
4044
|
+
src: "relationshipsBrowser";
|
|
4045
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
4046
|
+
id: `relationshipsBrowser-${number}`;
|
|
4047
|
+
};
|
|
4048
|
+
relationshipDetails: {
|
|
4049
|
+
src: "relationshipDetails";
|
|
4050
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
4051
|
+
id: `relationshipDetails-${number}`;
|
|
4052
|
+
};
|
|
4053
|
+
hotkey: {
|
|
4054
|
+
src: "hotkey";
|
|
4055
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
4022
4056
|
id: "hotkey";
|
|
4023
4057
|
};
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4058
|
+
}>, Values<{
|
|
4059
|
+
closeLastOverlay: {
|
|
4060
|
+
type: "closeLastOverlay";
|
|
4061
|
+
params: NonReducibleUnknown;
|
|
4062
|
+
};
|
|
4063
|
+
closeSpecificOverlay: {
|
|
4064
|
+
type: "closeSpecificOverlay";
|
|
4065
|
+
params: {
|
|
4066
|
+
actorId: string;
|
|
4067
|
+
};
|
|
4068
|
+
};
|
|
4069
|
+
closeAllOverlays: {
|
|
4070
|
+
type: "closeAllOverlays";
|
|
4071
|
+
params: NonReducibleUnknown;
|
|
4072
|
+
};
|
|
4073
|
+
openElementDetails: {
|
|
4074
|
+
type: "openElementDetails";
|
|
4075
|
+
params: NonReducibleUnknown;
|
|
4076
|
+
};
|
|
4077
|
+
openRelationshipDetails: {
|
|
4078
|
+
type: "openRelationshipDetails";
|
|
4079
|
+
params: NonReducibleUnknown;
|
|
4080
|
+
};
|
|
4081
|
+
openRelationshipsBrowser: {
|
|
4082
|
+
type: "openRelationshipsBrowser";
|
|
4083
|
+
params: NonReducibleUnknown;
|
|
4084
|
+
};
|
|
4085
|
+
listenToEsc: {
|
|
4086
|
+
type: "listenToEsc";
|
|
4087
|
+
params: NonReducibleUnknown;
|
|
4088
|
+
};
|
|
4089
|
+
stopListeningToEsc: {
|
|
4090
|
+
type: "stopListeningToEsc";
|
|
4091
|
+
params: NonReducibleUnknown;
|
|
4092
|
+
};
|
|
4093
|
+
}>, Values<{
|
|
4094
|
+
"has overlays?": {
|
|
4095
|
+
type: "has overlays?";
|
|
4096
|
+
params: unknown;
|
|
4097
|
+
};
|
|
4098
|
+
"close specific overlay?": {
|
|
4099
|
+
type: "close specific overlay?";
|
|
4100
|
+
params: unknown;
|
|
4101
|
+
};
|
|
4102
|
+
"last: is relationshipDetails?": {
|
|
4103
|
+
type: "last: is relationshipDetails?";
|
|
4104
|
+
params: unknown;
|
|
4105
|
+
};
|
|
4106
|
+
"last: is relationshipsBrowser?": {
|
|
4107
|
+
type: "last: is relationshipsBrowser?";
|
|
4108
|
+
params: unknown;
|
|
4109
|
+
};
|
|
4110
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
4111
|
+
readonly id: "overlays";
|
|
4112
|
+
readonly context: () => {
|
|
4113
|
+
seq: number;
|
|
4114
|
+
overlays: never[];
|
|
4115
|
+
};
|
|
4116
|
+
readonly initial: "idle";
|
|
4117
|
+
readonly on: {
|
|
4118
|
+
readonly 'open.elementDetails': {
|
|
4119
|
+
readonly actions: "openElementDetails";
|
|
4120
|
+
readonly target: ".active";
|
|
4121
|
+
readonly reenter: false;
|
|
4122
|
+
};
|
|
4123
|
+
readonly 'open.relationshipDetails': {
|
|
4124
|
+
readonly actions: "openRelationshipDetails";
|
|
4125
|
+
readonly target: ".active";
|
|
4126
|
+
readonly reenter: false;
|
|
4127
|
+
};
|
|
4128
|
+
readonly 'open.relationshipsBrowser': {
|
|
4129
|
+
readonly actions: "openRelationshipsBrowser";
|
|
4130
|
+
readonly target: ".active";
|
|
4131
|
+
readonly reenter: false;
|
|
4132
|
+
};
|
|
4133
|
+
};
|
|
4134
|
+
readonly states: {
|
|
4135
|
+
readonly idle: {};
|
|
4136
|
+
readonly active: {
|
|
4137
|
+
readonly entry: "listenToEsc";
|
|
4138
|
+
readonly exit: "stopListeningToEsc";
|
|
4139
|
+
readonly on: {
|
|
4140
|
+
readonly close: readonly [{
|
|
4141
|
+
readonly guard: "close specific overlay?";
|
|
4142
|
+
readonly actions: {
|
|
4143
|
+
readonly type: "closeSpecificOverlay";
|
|
4144
|
+
readonly params: ({ event }: {
|
|
4145
|
+
context: OverlaysContext;
|
|
4146
|
+
event: {
|
|
4147
|
+
type: "close";
|
|
4148
|
+
actorId?: string | undefined;
|
|
4149
|
+
};
|
|
4150
|
+
}) => {
|
|
4151
|
+
actorId: string;
|
|
4152
|
+
};
|
|
4153
|
+
};
|
|
4154
|
+
readonly target: "closing";
|
|
4155
|
+
}, {
|
|
4156
|
+
readonly actions: "closeLastOverlay";
|
|
4157
|
+
readonly target: "closing";
|
|
4158
|
+
}];
|
|
4159
|
+
readonly 'close.all': {
|
|
4160
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
4161
|
+
readonly target: "idle";
|
|
4162
|
+
};
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
readonly closing: {
|
|
4166
|
+
readonly always: readonly [{
|
|
4167
|
+
readonly guard: "has overlays?";
|
|
4168
|
+
readonly target: "active";
|
|
4169
|
+
}, {
|
|
4170
|
+
readonly actions: "stopListeningToEsc";
|
|
4171
|
+
readonly target: "idle";
|
|
4172
|
+
}];
|
|
4173
|
+
};
|
|
4174
|
+
};
|
|
4175
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
4176
|
+
}>;
|
|
4177
|
+
id: "overlays";
|
|
4178
|
+
};
|
|
4179
|
+
}>, never, never, never, never>;
|
|
4180
|
+
};
|
|
4181
|
+
readonly 'saveManualLayout.*': {
|
|
4182
|
+
readonly guard: "not readonly";
|
|
4183
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
4184
|
+
type: "saveManualLayout.schedule";
|
|
4185
|
+
} | {
|
|
4186
|
+
type: "saveManualLayout.cancel";
|
|
4187
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
4188
|
+
};
|
|
4189
|
+
};
|
|
4190
|
+
readonly exit: readonly [ CancelAction<DiagramContext, Events, undefined, Events>];
|
|
4191
|
+
readonly states: {
|
|
4192
|
+
readonly idle: {
|
|
4193
|
+
readonly id: "idle";
|
|
4194
|
+
readonly on: {
|
|
4195
|
+
readonly 'xyflow.nodeClick': readonly [{
|
|
4196
|
+
readonly guard: any;
|
|
4197
|
+
readonly actions: readonly [ ActionFunction<DiagramContext, {
|
|
4198
|
+
type: "xyflow.nodeClick";
|
|
4199
|
+
node: Types.Node;
|
|
4200
|
+
}, Events, undefined, Values<{
|
|
4201
|
+
syncManualLayoutActorLogic: {
|
|
4202
|
+
src: "syncManualLayoutActorLogic";
|
|
4203
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
4204
|
+
type: "trigger:OnChange";
|
|
4205
|
+
params: {
|
|
4206
|
+
change: ViewChange;
|
|
4207
|
+
};
|
|
4208
|
+
}, {
|
|
4209
|
+
type: "same view";
|
|
4210
|
+
params: unknown;
|
|
4211
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
4212
|
+
readonly initial: "idle";
|
|
4213
|
+
readonly context: ({ input }: {
|
|
4214
|
+
spawn: {
|
|
4215
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
4216
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
4217
|
+
id?: never;
|
|
4218
|
+
systemId?: string;
|
|
4219
|
+
input?: InputFrom<TLogic>;
|
|
4220
|
+
syncSnapshot?: boolean;
|
|
4221
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
4222
|
+
};
|
|
4223
|
+
input: Input;
|
|
4224
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
4225
|
+
}) => {
|
|
4226
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
4227
|
+
viewId: ViewId;
|
|
4228
|
+
};
|
|
4229
|
+
readonly states: {
|
|
4230
|
+
readonly idle: {
|
|
4231
|
+
readonly tags: "ready";
|
|
4232
|
+
readonly on: {
|
|
4233
|
+
readonly sync: {
|
|
4234
|
+
readonly target: "pending";
|
|
4235
|
+
};
|
|
4236
|
+
};
|
|
4237
|
+
};
|
|
4238
|
+
readonly paused: {
|
|
4239
|
+
readonly tags: "pending";
|
|
4240
|
+
readonly on: {
|
|
4241
|
+
readonly sync: {
|
|
4242
|
+
readonly target: "pending";
|
|
4243
|
+
};
|
|
4244
|
+
};
|
|
4245
|
+
};
|
|
4246
|
+
readonly pending: {
|
|
4247
|
+
readonly tags: "pending";
|
|
4248
|
+
readonly on: {
|
|
4249
|
+
readonly sync: {
|
|
4250
|
+
readonly target: "pending";
|
|
4251
|
+
readonly reenter: true;
|
|
4252
|
+
};
|
|
4253
|
+
readonly cancel: {
|
|
4254
|
+
readonly target: "paused";
|
|
4255
|
+
};
|
|
4256
|
+
};
|
|
4257
|
+
readonly after: {
|
|
4258
|
+
readonly timeout: readonly [{
|
|
4259
|
+
readonly guard: "same view";
|
|
4260
|
+
readonly actions: {
|
|
4261
|
+
readonly type: "trigger:OnChange";
|
|
4262
|
+
readonly params: ({ context }: {
|
|
4263
|
+
context: Readonly< Input>;
|
|
4264
|
+
event: Events;
|
|
4265
|
+
}) => {
|
|
4266
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
4267
|
+
};
|
|
4268
|
+
};
|
|
4269
|
+
readonly target: "synced";
|
|
4270
|
+
}, {
|
|
4271
|
+
readonly target: "stopped";
|
|
4272
|
+
}];
|
|
4273
|
+
};
|
|
4274
|
+
};
|
|
4275
|
+
readonly synced: {
|
|
4276
|
+
readonly tags: "ready";
|
|
4277
|
+
readonly on: {
|
|
4278
|
+
readonly sync: {
|
|
4279
|
+
readonly target: "pending";
|
|
4280
|
+
};
|
|
4281
|
+
};
|
|
4282
|
+
};
|
|
4283
|
+
readonly stopped: {
|
|
4284
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
4285
|
+
readonly type: "final";
|
|
4286
|
+
};
|
|
4287
|
+
};
|
|
4288
|
+
readonly on: {
|
|
4289
|
+
readonly synced: {
|
|
4290
|
+
readonly target: ".synced";
|
|
4291
|
+
};
|
|
4292
|
+
readonly stop: {
|
|
4293
|
+
readonly target: ".stopped";
|
|
4294
|
+
};
|
|
4295
|
+
};
|
|
4296
|
+
}>;
|
|
4297
|
+
id: "syncLayout";
|
|
4298
|
+
};
|
|
4299
|
+
hotkeyActorLogic: {
|
|
4300
|
+
src: "hotkeyActorLogic";
|
|
4301
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
4302
|
+
id: "hotkey";
|
|
4303
|
+
};
|
|
4304
|
+
overlaysActorLogic: {
|
|
4305
|
+
src: "overlaysActorLogic";
|
|
4306
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
4307
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
4308
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
4309
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
4310
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
4311
|
+
}, Values<{
|
|
4312
|
+
elementDetails: {
|
|
4313
|
+
src: "elementDetails";
|
|
4314
|
+
logic: ElementDetailsLogic;
|
|
4315
|
+
id: `elementDetails-${number}`;
|
|
4316
|
+
};
|
|
4317
|
+
relationshipsBrowser: {
|
|
4318
|
+
src: "relationshipsBrowser";
|
|
4319
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
4320
|
+
id: `relationshipsBrowser-${number}`;
|
|
4321
|
+
};
|
|
4322
|
+
relationshipDetails: {
|
|
4323
|
+
src: "relationshipDetails";
|
|
4324
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
4045
4325
|
id: `relationshipDetails-${number}`;
|
|
4046
4326
|
};
|
|
4047
4327
|
hotkey: {
|
|
@@ -4189,7 +4469,7 @@ export declare function useDiagram(): {
|
|
|
4189
4469
|
}, {
|
|
4190
4470
|
type: "same view";
|
|
4191
4471
|
params: unknown;
|
|
4192
|
-
}, "timeout", "
|
|
4472
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
4193
4473
|
readonly initial: "idle";
|
|
4194
4474
|
readonly context: ({ input }: {
|
|
4195
4475
|
spawn: {
|
|
@@ -4464,7 +4744,7 @@ export declare function useDiagram(): {
|
|
|
4464
4744
|
}, {
|
|
4465
4745
|
type: "same view";
|
|
4466
4746
|
params: unknown;
|
|
4467
|
-
}, "timeout", "
|
|
4747
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
4468
4748
|
readonly initial: "idle";
|
|
4469
4749
|
readonly context: ({ input }: {
|
|
4470
4750
|
spawn: {
|
|
@@ -4723,7 +5003,7 @@ export declare function useDiagram(): {
|
|
|
4723
5003
|
}, {
|
|
4724
5004
|
type: "same view";
|
|
4725
5005
|
params: unknown;
|
|
4726
|
-
}, "timeout", "
|
|
5006
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
4727
5007
|
readonly initial: "idle";
|
|
4728
5008
|
readonly context: ({ input }: {
|
|
4729
5009
|
spawn: {
|
|
@@ -4976,7 +5256,7 @@ export declare function useDiagram(): {
|
|
|
4976
5256
|
}, {
|
|
4977
5257
|
type: "same view";
|
|
4978
5258
|
params: unknown;
|
|
4979
|
-
}, "timeout", "
|
|
5259
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
4980
5260
|
readonly initial: "idle";
|
|
4981
5261
|
readonly context: ({ input }: {
|
|
4982
5262
|
spawn: {
|
|
@@ -5230,7 +5510,7 @@ export declare function useDiagram(): {
|
|
|
5230
5510
|
}, {
|
|
5231
5511
|
type: "same view";
|
|
5232
5512
|
params: unknown;
|
|
5233
|
-
}, "timeout", "
|
|
5513
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5234
5514
|
readonly initial: "idle";
|
|
5235
5515
|
readonly context: ({ input }: {
|
|
5236
5516
|
spawn: {
|
|
@@ -5488,13 +5768,32 @@ export declare function useDiagram(): {
|
|
|
5488
5768
|
onEdgeMouseEnter: {
|
|
5489
5769
|
type: "onEdgeMouseEnter";
|
|
5490
5770
|
params: {
|
|
5491
|
-
edge: Types.Edge;
|
|
5771
|
+
edge: Types.Edge;
|
|
5772
|
+
};
|
|
5773
|
+
};
|
|
5774
|
+
onEdgeMouseLeave: {
|
|
5775
|
+
type: "onEdgeMouseLeave";
|
|
5776
|
+
params: {
|
|
5777
|
+
edge: Types.Edge;
|
|
5778
|
+
};
|
|
5779
|
+
};
|
|
5780
|
+
"trigger:OnChange": {
|
|
5781
|
+
type: "trigger:OnChange";
|
|
5782
|
+
params: {
|
|
5783
|
+
change: ViewChange;
|
|
5784
|
+
};
|
|
5785
|
+
};
|
|
5786
|
+
"layout.align": {
|
|
5787
|
+
type: "layout.align";
|
|
5788
|
+
params: {
|
|
5789
|
+
mode: AlignmentMode;
|
|
5492
5790
|
};
|
|
5493
5791
|
};
|
|
5494
|
-
|
|
5495
|
-
type: "
|
|
5792
|
+
"notations.highlight": {
|
|
5793
|
+
type: "notations.highlight";
|
|
5496
5794
|
params: {
|
|
5497
|
-
|
|
5795
|
+
notation: ElementNotation;
|
|
5796
|
+
kind?: string;
|
|
5498
5797
|
};
|
|
5499
5798
|
};
|
|
5500
5799
|
"xyflow:fitDiagram": {
|
|
@@ -5508,18 +5807,6 @@ export declare function useDiagram(): {
|
|
|
5508
5807
|
type: "closeAllOverlays";
|
|
5509
5808
|
params: NonReducibleUnknown;
|
|
5510
5809
|
};
|
|
5511
|
-
"trigger:OnChange": {
|
|
5512
|
-
type: "trigger:OnChange";
|
|
5513
|
-
params: {
|
|
5514
|
-
change: ViewChange;
|
|
5515
|
-
};
|
|
5516
|
-
};
|
|
5517
|
-
"layout.align": {
|
|
5518
|
-
type: "layout.align";
|
|
5519
|
-
params: {
|
|
5520
|
-
mode: AlignmentMode;
|
|
5521
|
-
};
|
|
5522
|
-
};
|
|
5523
5810
|
"trigger:NavigateTo": {
|
|
5524
5811
|
type: "trigger:NavigateTo";
|
|
5525
5812
|
params: {
|
|
@@ -5640,7 +5927,269 @@ export declare function useDiagram(): {
|
|
|
5640
5927
|
}, {
|
|
5641
5928
|
type: "same view";
|
|
5642
5929
|
params: unknown;
|
|
5643
|
-
}, "timeout", "
|
|
5930
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5931
|
+
readonly initial: "idle";
|
|
5932
|
+
readonly context: ({ input }: {
|
|
5933
|
+
spawn: {
|
|
5934
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
5935
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
5936
|
+
id?: never;
|
|
5937
|
+
systemId?: string;
|
|
5938
|
+
input?: InputFrom<TLogic>;
|
|
5939
|
+
syncSnapshot?: boolean;
|
|
5940
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
5941
|
+
};
|
|
5942
|
+
input: Input;
|
|
5943
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
5944
|
+
}) => {
|
|
5945
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
5946
|
+
viewId: ViewId;
|
|
5947
|
+
};
|
|
5948
|
+
readonly states: {
|
|
5949
|
+
readonly idle: {
|
|
5950
|
+
readonly tags: "ready";
|
|
5951
|
+
readonly on: {
|
|
5952
|
+
readonly sync: {
|
|
5953
|
+
readonly target: "pending";
|
|
5954
|
+
};
|
|
5955
|
+
};
|
|
5956
|
+
};
|
|
5957
|
+
readonly paused: {
|
|
5958
|
+
readonly tags: "pending";
|
|
5959
|
+
readonly on: {
|
|
5960
|
+
readonly sync: {
|
|
5961
|
+
readonly target: "pending";
|
|
5962
|
+
};
|
|
5963
|
+
};
|
|
5964
|
+
};
|
|
5965
|
+
readonly pending: {
|
|
5966
|
+
readonly tags: "pending";
|
|
5967
|
+
readonly on: {
|
|
5968
|
+
readonly sync: {
|
|
5969
|
+
readonly target: "pending";
|
|
5970
|
+
readonly reenter: true;
|
|
5971
|
+
};
|
|
5972
|
+
readonly cancel: {
|
|
5973
|
+
readonly target: "paused";
|
|
5974
|
+
};
|
|
5975
|
+
};
|
|
5976
|
+
readonly after: {
|
|
5977
|
+
readonly timeout: readonly [{
|
|
5978
|
+
readonly guard: "same view";
|
|
5979
|
+
readonly actions: {
|
|
5980
|
+
readonly type: "trigger:OnChange";
|
|
5981
|
+
readonly params: ({ context }: {
|
|
5982
|
+
context: Readonly< Input>;
|
|
5983
|
+
event: Events;
|
|
5984
|
+
}) => {
|
|
5985
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
5986
|
+
};
|
|
5987
|
+
};
|
|
5988
|
+
readonly target: "synced";
|
|
5989
|
+
}, {
|
|
5990
|
+
readonly target: "stopped";
|
|
5991
|
+
}];
|
|
5992
|
+
};
|
|
5993
|
+
};
|
|
5994
|
+
readonly synced: {
|
|
5995
|
+
readonly tags: "ready";
|
|
5996
|
+
readonly on: {
|
|
5997
|
+
readonly sync: {
|
|
5998
|
+
readonly target: "pending";
|
|
5999
|
+
};
|
|
6000
|
+
};
|
|
6001
|
+
};
|
|
6002
|
+
readonly stopped: {
|
|
6003
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
6004
|
+
readonly type: "final";
|
|
6005
|
+
};
|
|
6006
|
+
};
|
|
6007
|
+
readonly on: {
|
|
6008
|
+
readonly synced: {
|
|
6009
|
+
readonly target: ".synced";
|
|
6010
|
+
};
|
|
6011
|
+
readonly stop: {
|
|
6012
|
+
readonly target: ".stopped";
|
|
6013
|
+
};
|
|
6014
|
+
};
|
|
6015
|
+
}>;
|
|
6016
|
+
id: "syncLayout";
|
|
6017
|
+
};
|
|
6018
|
+
hotkeyActorLogic: {
|
|
6019
|
+
src: "hotkeyActorLogic";
|
|
6020
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
6021
|
+
id: "hotkey";
|
|
6022
|
+
};
|
|
6023
|
+
overlaysActorLogic: {
|
|
6024
|
+
src: "overlaysActorLogic";
|
|
6025
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
6026
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
6027
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
6028
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
6029
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
6030
|
+
}, Values<{
|
|
6031
|
+
elementDetails: {
|
|
6032
|
+
src: "elementDetails";
|
|
6033
|
+
logic: ElementDetailsLogic;
|
|
6034
|
+
id: `elementDetails-${number}`;
|
|
6035
|
+
};
|
|
6036
|
+
relationshipsBrowser: {
|
|
6037
|
+
src: "relationshipsBrowser";
|
|
6038
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
6039
|
+
id: `relationshipsBrowser-${number}`;
|
|
6040
|
+
};
|
|
6041
|
+
relationshipDetails: {
|
|
6042
|
+
src: "relationshipDetails";
|
|
6043
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
6044
|
+
id: `relationshipDetails-${number}`;
|
|
6045
|
+
};
|
|
6046
|
+
hotkey: {
|
|
6047
|
+
src: "hotkey";
|
|
6048
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
6049
|
+
id: "hotkey";
|
|
6050
|
+
};
|
|
6051
|
+
}>, Values<{
|
|
6052
|
+
closeLastOverlay: {
|
|
6053
|
+
type: "closeLastOverlay";
|
|
6054
|
+
params: NonReducibleUnknown;
|
|
6055
|
+
};
|
|
6056
|
+
closeSpecificOverlay: {
|
|
6057
|
+
type: "closeSpecificOverlay";
|
|
6058
|
+
params: {
|
|
6059
|
+
actorId: string;
|
|
6060
|
+
};
|
|
6061
|
+
};
|
|
6062
|
+
closeAllOverlays: {
|
|
6063
|
+
type: "closeAllOverlays";
|
|
6064
|
+
params: NonReducibleUnknown;
|
|
6065
|
+
};
|
|
6066
|
+
openElementDetails: {
|
|
6067
|
+
type: "openElementDetails";
|
|
6068
|
+
params: NonReducibleUnknown;
|
|
6069
|
+
};
|
|
6070
|
+
openRelationshipDetails: {
|
|
6071
|
+
type: "openRelationshipDetails";
|
|
6072
|
+
params: NonReducibleUnknown;
|
|
6073
|
+
};
|
|
6074
|
+
openRelationshipsBrowser: {
|
|
6075
|
+
type: "openRelationshipsBrowser";
|
|
6076
|
+
params: NonReducibleUnknown;
|
|
6077
|
+
};
|
|
6078
|
+
listenToEsc: {
|
|
6079
|
+
type: "listenToEsc";
|
|
6080
|
+
params: NonReducibleUnknown;
|
|
6081
|
+
};
|
|
6082
|
+
stopListeningToEsc: {
|
|
6083
|
+
type: "stopListeningToEsc";
|
|
6084
|
+
params: NonReducibleUnknown;
|
|
6085
|
+
};
|
|
6086
|
+
}>, Values<{
|
|
6087
|
+
"has overlays?": {
|
|
6088
|
+
type: "has overlays?";
|
|
6089
|
+
params: unknown;
|
|
6090
|
+
};
|
|
6091
|
+
"close specific overlay?": {
|
|
6092
|
+
type: "close specific overlay?";
|
|
6093
|
+
params: unknown;
|
|
6094
|
+
};
|
|
6095
|
+
"last: is relationshipDetails?": {
|
|
6096
|
+
type: "last: is relationshipDetails?";
|
|
6097
|
+
params: unknown;
|
|
6098
|
+
};
|
|
6099
|
+
"last: is relationshipsBrowser?": {
|
|
6100
|
+
type: "last: is relationshipsBrowser?";
|
|
6101
|
+
params: unknown;
|
|
6102
|
+
};
|
|
6103
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
6104
|
+
readonly id: "overlays";
|
|
6105
|
+
readonly context: () => {
|
|
6106
|
+
seq: number;
|
|
6107
|
+
overlays: never[];
|
|
6108
|
+
};
|
|
6109
|
+
readonly initial: "idle";
|
|
6110
|
+
readonly on: {
|
|
6111
|
+
readonly 'open.elementDetails': {
|
|
6112
|
+
readonly actions: "openElementDetails";
|
|
6113
|
+
readonly target: ".active";
|
|
6114
|
+
readonly reenter: false;
|
|
6115
|
+
};
|
|
6116
|
+
readonly 'open.relationshipDetails': {
|
|
6117
|
+
readonly actions: "openRelationshipDetails";
|
|
6118
|
+
readonly target: ".active";
|
|
6119
|
+
readonly reenter: false;
|
|
6120
|
+
};
|
|
6121
|
+
readonly 'open.relationshipsBrowser': {
|
|
6122
|
+
readonly actions: "openRelationshipsBrowser";
|
|
6123
|
+
readonly target: ".active";
|
|
6124
|
+
readonly reenter: false;
|
|
6125
|
+
};
|
|
6126
|
+
};
|
|
6127
|
+
readonly states: {
|
|
6128
|
+
readonly idle: {};
|
|
6129
|
+
readonly active: {
|
|
6130
|
+
readonly entry: "listenToEsc";
|
|
6131
|
+
readonly exit: "stopListeningToEsc";
|
|
6132
|
+
readonly on: {
|
|
6133
|
+
readonly close: readonly [{
|
|
6134
|
+
readonly guard: "close specific overlay?";
|
|
6135
|
+
readonly actions: {
|
|
6136
|
+
readonly type: "closeSpecificOverlay";
|
|
6137
|
+
readonly params: ({ event }: {
|
|
6138
|
+
context: OverlaysContext;
|
|
6139
|
+
event: {
|
|
6140
|
+
type: "close";
|
|
6141
|
+
actorId?: string | undefined;
|
|
6142
|
+
};
|
|
6143
|
+
}) => {
|
|
6144
|
+
actorId: string;
|
|
6145
|
+
};
|
|
6146
|
+
};
|
|
6147
|
+
readonly target: "closing";
|
|
6148
|
+
}, {
|
|
6149
|
+
readonly actions: "closeLastOverlay";
|
|
6150
|
+
readonly target: "closing";
|
|
6151
|
+
}];
|
|
6152
|
+
readonly 'close.all': {
|
|
6153
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
6154
|
+
readonly target: "idle";
|
|
6155
|
+
};
|
|
6156
|
+
};
|
|
6157
|
+
};
|
|
6158
|
+
readonly closing: {
|
|
6159
|
+
readonly always: readonly [{
|
|
6160
|
+
readonly guard: "has overlays?";
|
|
6161
|
+
readonly target: "active";
|
|
6162
|
+
}, {
|
|
6163
|
+
readonly actions: "stopListeningToEsc";
|
|
6164
|
+
readonly target: "idle";
|
|
6165
|
+
}];
|
|
6166
|
+
};
|
|
6167
|
+
};
|
|
6168
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
6169
|
+
}>;
|
|
6170
|
+
id: "overlays";
|
|
6171
|
+
};
|
|
6172
|
+
}>, never, never, never, never>, ActionFunction<DiagramContext, {
|
|
6173
|
+
type: "xyflow.nodeClick";
|
|
6174
|
+
node: Types.Node;
|
|
6175
|
+
}, Events, undefined, never, never, never, never, never>];
|
|
6176
|
+
}];
|
|
6177
|
+
readonly 'focus.node': {
|
|
6178
|
+
readonly actions: readonly [ ActionFunction<DiagramContext, {
|
|
6179
|
+
type: "focus.node";
|
|
6180
|
+
nodeId: NodeId;
|
|
6181
|
+
}, Events, undefined, Values<{
|
|
6182
|
+
syncManualLayoutActorLogic: {
|
|
6183
|
+
src: "syncManualLayoutActorLogic";
|
|
6184
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
6185
|
+
type: "trigger:OnChange";
|
|
6186
|
+
params: {
|
|
6187
|
+
change: ViewChange;
|
|
6188
|
+
};
|
|
6189
|
+
}, {
|
|
6190
|
+
type: "same view";
|
|
6191
|
+
params: unknown;
|
|
6192
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5644
6193
|
readonly initial: "idle";
|
|
5645
6194
|
readonly context: ({ input }: {
|
|
5646
6195
|
spawn: {
|
|
@@ -5882,16 +6431,7 @@ export declare function useDiagram(): {
|
|
|
5882
6431
|
}>;
|
|
5883
6432
|
id: "overlays";
|
|
5884
6433
|
};
|
|
5885
|
-
}>, never, never, never, never>, ActionFunction<DiagramContext, {
|
|
5886
|
-
type: "xyflow.nodeClick";
|
|
5887
|
-
node: Types.Node;
|
|
5888
|
-
}, Events, undefined, never, never, never, never, never>];
|
|
5889
|
-
}];
|
|
5890
|
-
readonly 'focus.node': {
|
|
5891
|
-
readonly actions: readonly [ ActionFunction<DiagramContext, {
|
|
5892
|
-
type: "focus.node";
|
|
5893
|
-
nodeId: NodeId;
|
|
5894
|
-
}, Events, undefined, Values<{
|
|
6434
|
+
}>, never, never, never, never>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
5895
6435
|
syncManualLayoutActorLogic: {
|
|
5896
6436
|
src: "syncManualLayoutActorLogic";
|
|
5897
6437
|
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
@@ -5902,7 +6442,7 @@ export declare function useDiagram(): {
|
|
|
5902
6442
|
}, {
|
|
5903
6443
|
type: "same view";
|
|
5904
6444
|
params: unknown;
|
|
5905
|
-
}, "timeout", "
|
|
6445
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5906
6446
|
readonly initial: "idle";
|
|
5907
6447
|
readonly context: ({ input }: {
|
|
5908
6448
|
spawn: {
|
|
@@ -6144,7 +6684,15 @@ export declare function useDiagram(): {
|
|
|
6144
6684
|
}>;
|
|
6145
6685
|
id: "overlays";
|
|
6146
6686
|
};
|
|
6147
|
-
}>, never, never, never, never>,
|
|
6687
|
+
}>, never, never, never, never>, "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
|
|
6688
|
+
};
|
|
6689
|
+
readonly 'key.esc': {
|
|
6690
|
+
readonly target: "idle";
|
|
6691
|
+
};
|
|
6692
|
+
readonly 'xyflow.paneClick': {
|
|
6693
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
6694
|
+
type: "xyflow.paneClick";
|
|
6695
|
+
}, Events, undefined, Values<{
|
|
6148
6696
|
syncManualLayoutActorLogic: {
|
|
6149
6697
|
src: "syncManualLayoutActorLogic";
|
|
6150
6698
|
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
@@ -6155,7 +6703,7 @@ export declare function useDiagram(): {
|
|
|
6155
6703
|
}, {
|
|
6156
6704
|
type: "same view";
|
|
6157
6705
|
params: unknown;
|
|
6158
|
-
}, "timeout", "
|
|
6706
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
6159
6707
|
readonly initial: "idle";
|
|
6160
6708
|
readonly context: ({ input }: {
|
|
6161
6709
|
spawn: {
|
|
@@ -6397,14 +6945,12 @@ export declare function useDiagram(): {
|
|
|
6397
6945
|
}>;
|
|
6398
6946
|
id: "overlays";
|
|
6399
6947
|
};
|
|
6400
|
-
}>, never, never, never, never
|
|
6401
|
-
};
|
|
6402
|
-
readonly 'key.esc': {
|
|
6948
|
+
}>, never, never, never, never>;
|
|
6403
6949
|
readonly target: "idle";
|
|
6404
6950
|
};
|
|
6405
|
-
readonly '
|
|
6951
|
+
readonly 'notations.unhighlight': {
|
|
6406
6952
|
readonly actions: ActionFunction<DiagramContext, {
|
|
6407
|
-
type: "
|
|
6953
|
+
type: "notations.unhighlight";
|
|
6408
6954
|
}, Events, undefined, Values<{
|
|
6409
6955
|
syncManualLayoutActorLogic: {
|
|
6410
6956
|
src: "syncManualLayoutActorLogic";
|
|
@@ -6416,7 +6962,7 @@ export declare function useDiagram(): {
|
|
|
6416
6962
|
}, {
|
|
6417
6963
|
type: "same view";
|
|
6418
6964
|
params: unknown;
|
|
6419
|
-
}, "timeout", "
|
|
6965
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
6420
6966
|
readonly initial: "idle";
|
|
6421
6967
|
readonly context: ({ input }: {
|
|
6422
6968
|
spawn: {
|
|
@@ -6597,74 +7143,326 @@ export declare function useDiagram(): {
|
|
|
6597
7143
|
};
|
|
6598
7144
|
readonly initial: "idle";
|
|
6599
7145
|
readonly on: {
|
|
6600
|
-
readonly 'open.elementDetails': {
|
|
6601
|
-
readonly actions: "openElementDetails";
|
|
6602
|
-
readonly target: ".active";
|
|
6603
|
-
readonly reenter: false;
|
|
6604
|
-
};
|
|
6605
|
-
readonly 'open.relationshipDetails': {
|
|
6606
|
-
readonly actions: "openRelationshipDetails";
|
|
6607
|
-
readonly target: ".active";
|
|
6608
|
-
readonly reenter: false;
|
|
6609
|
-
};
|
|
6610
|
-
readonly 'open.relationshipsBrowser': {
|
|
6611
|
-
readonly actions: "openRelationshipsBrowser";
|
|
6612
|
-
readonly target: ".active";
|
|
6613
|
-
readonly reenter: false;
|
|
6614
|
-
};
|
|
6615
|
-
};
|
|
6616
|
-
readonly states: {
|
|
6617
|
-
readonly idle: {};
|
|
6618
|
-
readonly active: {
|
|
6619
|
-
readonly entry: "listenToEsc";
|
|
6620
|
-
readonly exit: "stopListeningToEsc";
|
|
6621
|
-
readonly on: {
|
|
6622
|
-
readonly close: readonly [{
|
|
6623
|
-
readonly guard: "close specific overlay?";
|
|
6624
|
-
readonly actions: {
|
|
6625
|
-
readonly type: "closeSpecificOverlay";
|
|
6626
|
-
readonly params: ({ event }: {
|
|
6627
|
-
context: OverlaysContext;
|
|
6628
|
-
event: {
|
|
6629
|
-
type: "close";
|
|
6630
|
-
actorId?: string | undefined;
|
|
6631
|
-
};
|
|
6632
|
-
}) => {
|
|
6633
|
-
actorId: string;
|
|
6634
|
-
};
|
|
7146
|
+
readonly 'open.elementDetails': {
|
|
7147
|
+
readonly actions: "openElementDetails";
|
|
7148
|
+
readonly target: ".active";
|
|
7149
|
+
readonly reenter: false;
|
|
7150
|
+
};
|
|
7151
|
+
readonly 'open.relationshipDetails': {
|
|
7152
|
+
readonly actions: "openRelationshipDetails";
|
|
7153
|
+
readonly target: ".active";
|
|
7154
|
+
readonly reenter: false;
|
|
7155
|
+
};
|
|
7156
|
+
readonly 'open.relationshipsBrowser': {
|
|
7157
|
+
readonly actions: "openRelationshipsBrowser";
|
|
7158
|
+
readonly target: ".active";
|
|
7159
|
+
readonly reenter: false;
|
|
7160
|
+
};
|
|
7161
|
+
};
|
|
7162
|
+
readonly states: {
|
|
7163
|
+
readonly idle: {};
|
|
7164
|
+
readonly active: {
|
|
7165
|
+
readonly entry: "listenToEsc";
|
|
7166
|
+
readonly exit: "stopListeningToEsc";
|
|
7167
|
+
readonly on: {
|
|
7168
|
+
readonly close: readonly [{
|
|
7169
|
+
readonly guard: "close specific overlay?";
|
|
7170
|
+
readonly actions: {
|
|
7171
|
+
readonly type: "closeSpecificOverlay";
|
|
7172
|
+
readonly params: ({ event }: {
|
|
7173
|
+
context: OverlaysContext;
|
|
7174
|
+
event: {
|
|
7175
|
+
type: "close";
|
|
7176
|
+
actorId?: string | undefined;
|
|
7177
|
+
};
|
|
7178
|
+
}) => {
|
|
7179
|
+
actorId: string;
|
|
7180
|
+
};
|
|
7181
|
+
};
|
|
7182
|
+
readonly target: "closing";
|
|
7183
|
+
}, {
|
|
7184
|
+
readonly actions: "closeLastOverlay";
|
|
7185
|
+
readonly target: "closing";
|
|
7186
|
+
}];
|
|
7187
|
+
readonly 'close.all': {
|
|
7188
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
7189
|
+
readonly target: "idle";
|
|
7190
|
+
};
|
|
7191
|
+
};
|
|
7192
|
+
};
|
|
7193
|
+
readonly closing: {
|
|
7194
|
+
readonly always: readonly [{
|
|
7195
|
+
readonly guard: "has overlays?";
|
|
7196
|
+
readonly target: "active";
|
|
7197
|
+
}, {
|
|
7198
|
+
readonly actions: "stopListeningToEsc";
|
|
7199
|
+
readonly target: "idle";
|
|
7200
|
+
}];
|
|
7201
|
+
};
|
|
7202
|
+
};
|
|
7203
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
7204
|
+
}>;
|
|
7205
|
+
id: "overlays";
|
|
7206
|
+
};
|
|
7207
|
+
}>, never, never, never, never>;
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
};
|
|
7211
|
+
readonly walkthrough: {
|
|
7212
|
+
readonly entry: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
7213
|
+
syncManualLayoutActorLogic: {
|
|
7214
|
+
src: "syncManualLayoutActorLogic";
|
|
7215
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
7216
|
+
type: "trigger:OnChange";
|
|
7217
|
+
params: {
|
|
7218
|
+
change: ViewChange;
|
|
7219
|
+
};
|
|
7220
|
+
}, {
|
|
7221
|
+
type: "same view";
|
|
7222
|
+
params: unknown;
|
|
7223
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
7224
|
+
readonly initial: "idle";
|
|
7225
|
+
readonly context: ({ input }: {
|
|
7226
|
+
spawn: {
|
|
7227
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
7228
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
7229
|
+
id?: never;
|
|
7230
|
+
systemId?: string;
|
|
7231
|
+
input?: InputFrom<TLogic>;
|
|
7232
|
+
syncSnapshot?: boolean;
|
|
7233
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
7234
|
+
};
|
|
7235
|
+
input: Input;
|
|
7236
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
7237
|
+
}) => {
|
|
7238
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
7239
|
+
viewId: ViewId;
|
|
7240
|
+
};
|
|
7241
|
+
readonly states: {
|
|
7242
|
+
readonly idle: {
|
|
7243
|
+
readonly tags: "ready";
|
|
7244
|
+
readonly on: {
|
|
7245
|
+
readonly sync: {
|
|
7246
|
+
readonly target: "pending";
|
|
7247
|
+
};
|
|
7248
|
+
};
|
|
7249
|
+
};
|
|
7250
|
+
readonly paused: {
|
|
7251
|
+
readonly tags: "pending";
|
|
7252
|
+
readonly on: {
|
|
7253
|
+
readonly sync: {
|
|
7254
|
+
readonly target: "pending";
|
|
7255
|
+
};
|
|
7256
|
+
};
|
|
7257
|
+
};
|
|
7258
|
+
readonly pending: {
|
|
7259
|
+
readonly tags: "pending";
|
|
7260
|
+
readonly on: {
|
|
7261
|
+
readonly sync: {
|
|
7262
|
+
readonly target: "pending";
|
|
7263
|
+
readonly reenter: true;
|
|
7264
|
+
};
|
|
7265
|
+
readonly cancel: {
|
|
7266
|
+
readonly target: "paused";
|
|
7267
|
+
};
|
|
7268
|
+
};
|
|
7269
|
+
readonly after: {
|
|
7270
|
+
readonly timeout: readonly [{
|
|
7271
|
+
readonly guard: "same view";
|
|
7272
|
+
readonly actions: {
|
|
7273
|
+
readonly type: "trigger:OnChange";
|
|
7274
|
+
readonly params: ({ context }: {
|
|
7275
|
+
context: Readonly< Input>;
|
|
7276
|
+
event: Events;
|
|
7277
|
+
}) => {
|
|
7278
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
7279
|
+
};
|
|
7280
|
+
};
|
|
7281
|
+
readonly target: "synced";
|
|
7282
|
+
}, {
|
|
7283
|
+
readonly target: "stopped";
|
|
7284
|
+
}];
|
|
7285
|
+
};
|
|
7286
|
+
};
|
|
7287
|
+
readonly synced: {
|
|
7288
|
+
readonly tags: "ready";
|
|
7289
|
+
readonly on: {
|
|
7290
|
+
readonly sync: {
|
|
7291
|
+
readonly target: "pending";
|
|
7292
|
+
};
|
|
7293
|
+
};
|
|
7294
|
+
};
|
|
7295
|
+
readonly stopped: {
|
|
7296
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
7297
|
+
readonly type: "final";
|
|
7298
|
+
};
|
|
7299
|
+
};
|
|
7300
|
+
readonly on: {
|
|
7301
|
+
readonly synced: {
|
|
7302
|
+
readonly target: ".synced";
|
|
7303
|
+
};
|
|
7304
|
+
readonly stop: {
|
|
7305
|
+
readonly target: ".stopped";
|
|
7306
|
+
};
|
|
7307
|
+
};
|
|
7308
|
+
}>;
|
|
7309
|
+
id: "syncLayout";
|
|
7310
|
+
};
|
|
7311
|
+
hotkeyActorLogic: {
|
|
7312
|
+
src: "hotkeyActorLogic";
|
|
7313
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
7314
|
+
id: "hotkey";
|
|
7315
|
+
};
|
|
7316
|
+
overlaysActorLogic: {
|
|
7317
|
+
src: "overlaysActorLogic";
|
|
7318
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
7319
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
7320
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
7321
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
7322
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
7323
|
+
}, Values<{
|
|
7324
|
+
elementDetails: {
|
|
7325
|
+
src: "elementDetails";
|
|
7326
|
+
logic: ElementDetailsLogic;
|
|
7327
|
+
id: `elementDetails-${number}`;
|
|
7328
|
+
};
|
|
7329
|
+
relationshipsBrowser: {
|
|
7330
|
+
src: "relationshipsBrowser";
|
|
7331
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
7332
|
+
id: `relationshipsBrowser-${number}`;
|
|
7333
|
+
};
|
|
7334
|
+
relationshipDetails: {
|
|
7335
|
+
src: "relationshipDetails";
|
|
7336
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
7337
|
+
id: `relationshipDetails-${number}`;
|
|
7338
|
+
};
|
|
7339
|
+
hotkey: {
|
|
7340
|
+
src: "hotkey";
|
|
7341
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
7342
|
+
id: "hotkey";
|
|
7343
|
+
};
|
|
7344
|
+
}>, Values<{
|
|
7345
|
+
closeLastOverlay: {
|
|
7346
|
+
type: "closeLastOverlay";
|
|
7347
|
+
params: NonReducibleUnknown;
|
|
7348
|
+
};
|
|
7349
|
+
closeSpecificOverlay: {
|
|
7350
|
+
type: "closeSpecificOverlay";
|
|
7351
|
+
params: {
|
|
7352
|
+
actorId: string;
|
|
7353
|
+
};
|
|
7354
|
+
};
|
|
7355
|
+
closeAllOverlays: {
|
|
7356
|
+
type: "closeAllOverlays";
|
|
7357
|
+
params: NonReducibleUnknown;
|
|
7358
|
+
};
|
|
7359
|
+
openElementDetails: {
|
|
7360
|
+
type: "openElementDetails";
|
|
7361
|
+
params: NonReducibleUnknown;
|
|
7362
|
+
};
|
|
7363
|
+
openRelationshipDetails: {
|
|
7364
|
+
type: "openRelationshipDetails";
|
|
7365
|
+
params: NonReducibleUnknown;
|
|
7366
|
+
};
|
|
7367
|
+
openRelationshipsBrowser: {
|
|
7368
|
+
type: "openRelationshipsBrowser";
|
|
7369
|
+
params: NonReducibleUnknown;
|
|
7370
|
+
};
|
|
7371
|
+
listenToEsc: {
|
|
7372
|
+
type: "listenToEsc";
|
|
7373
|
+
params: NonReducibleUnknown;
|
|
7374
|
+
};
|
|
7375
|
+
stopListeningToEsc: {
|
|
7376
|
+
type: "stopListeningToEsc";
|
|
7377
|
+
params: NonReducibleUnknown;
|
|
7378
|
+
};
|
|
7379
|
+
}>, Values<{
|
|
7380
|
+
"has overlays?": {
|
|
7381
|
+
type: "has overlays?";
|
|
7382
|
+
params: unknown;
|
|
7383
|
+
};
|
|
7384
|
+
"close specific overlay?": {
|
|
7385
|
+
type: "close specific overlay?";
|
|
7386
|
+
params: unknown;
|
|
7387
|
+
};
|
|
7388
|
+
"last: is relationshipDetails?": {
|
|
7389
|
+
type: "last: is relationshipDetails?";
|
|
7390
|
+
params: unknown;
|
|
7391
|
+
};
|
|
7392
|
+
"last: is relationshipsBrowser?": {
|
|
7393
|
+
type: "last: is relationshipsBrowser?";
|
|
7394
|
+
params: unknown;
|
|
7395
|
+
};
|
|
7396
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
7397
|
+
readonly id: "overlays";
|
|
7398
|
+
readonly context: () => {
|
|
7399
|
+
seq: number;
|
|
7400
|
+
overlays: never[];
|
|
7401
|
+
};
|
|
7402
|
+
readonly initial: "idle";
|
|
7403
|
+
readonly on: {
|
|
7404
|
+
readonly 'open.elementDetails': {
|
|
7405
|
+
readonly actions: "openElementDetails";
|
|
7406
|
+
readonly target: ".active";
|
|
7407
|
+
readonly reenter: false;
|
|
7408
|
+
};
|
|
7409
|
+
readonly 'open.relationshipDetails': {
|
|
7410
|
+
readonly actions: "openRelationshipDetails";
|
|
7411
|
+
readonly target: ".active";
|
|
7412
|
+
readonly reenter: false;
|
|
7413
|
+
};
|
|
7414
|
+
readonly 'open.relationshipsBrowser': {
|
|
7415
|
+
readonly actions: "openRelationshipsBrowser";
|
|
7416
|
+
readonly target: ".active";
|
|
7417
|
+
readonly reenter: false;
|
|
7418
|
+
};
|
|
7419
|
+
};
|
|
7420
|
+
readonly states: {
|
|
7421
|
+
readonly idle: {};
|
|
7422
|
+
readonly active: {
|
|
7423
|
+
readonly entry: "listenToEsc";
|
|
7424
|
+
readonly exit: "stopListeningToEsc";
|
|
7425
|
+
readonly on: {
|
|
7426
|
+
readonly close: readonly [{
|
|
7427
|
+
readonly guard: "close specific overlay?";
|
|
7428
|
+
readonly actions: {
|
|
7429
|
+
readonly type: "closeSpecificOverlay";
|
|
7430
|
+
readonly params: ({ event }: {
|
|
7431
|
+
context: OverlaysContext;
|
|
7432
|
+
event: {
|
|
7433
|
+
type: "close";
|
|
7434
|
+
actorId?: string | undefined;
|
|
6635
7435
|
};
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
readonly actions: "closeLastOverlay";
|
|
6639
|
-
readonly target: "closing";
|
|
6640
|
-
}];
|
|
6641
|
-
readonly 'close.all': {
|
|
6642
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
6643
|
-
readonly target: "idle";
|
|
7436
|
+
}) => {
|
|
7437
|
+
actorId: string;
|
|
6644
7438
|
};
|
|
6645
7439
|
};
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
readonly
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
}];
|
|
7440
|
+
readonly target: "closing";
|
|
7441
|
+
}, {
|
|
7442
|
+
readonly actions: "closeLastOverlay";
|
|
7443
|
+
readonly target: "closing";
|
|
7444
|
+
}];
|
|
7445
|
+
readonly 'close.all': {
|
|
7446
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
7447
|
+
readonly target: "idle";
|
|
6655
7448
|
};
|
|
6656
7449
|
};
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
7450
|
+
};
|
|
7451
|
+
readonly closing: {
|
|
7452
|
+
readonly always: readonly [{
|
|
7453
|
+
readonly guard: "has overlays?";
|
|
7454
|
+
readonly target: "active";
|
|
7455
|
+
}, {
|
|
7456
|
+
readonly actions: "stopListeningToEsc";
|
|
7457
|
+
readonly target: "idle";
|
|
7458
|
+
}];
|
|
7459
|
+
};
|
|
6660
7460
|
};
|
|
6661
|
-
|
|
6662
|
-
|
|
7461
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
7462
|
+
}>;
|
|
7463
|
+
id: "overlays";
|
|
6663
7464
|
};
|
|
6664
|
-
}
|
|
6665
|
-
};
|
|
6666
|
-
readonly walkthrough: {
|
|
6667
|
-
readonly entry: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
7465
|
+
}>, never, never, never, never>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
6668
7466
|
syncManualLayoutActorLogic: {
|
|
6669
7467
|
src: "syncManualLayoutActorLogic";
|
|
6670
7468
|
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
@@ -6675,7 +7473,7 @@ export declare function useDiagram(): {
|
|
|
6675
7473
|
}, {
|
|
6676
7474
|
type: "same view";
|
|
6677
7475
|
params: unknown;
|
|
6678
|
-
}, "timeout", "
|
|
7476
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
6679
7477
|
readonly initial: "idle";
|
|
6680
7478
|
readonly context: ({ input }: {
|
|
6681
7479
|
spawn: {
|
|
@@ -6928,7 +7726,7 @@ export declare function useDiagram(): {
|
|
|
6928
7726
|
}, {
|
|
6929
7727
|
type: "same view";
|
|
6930
7728
|
params: unknown;
|
|
6931
|
-
}, "timeout", "
|
|
7729
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
6932
7730
|
readonly initial: "idle";
|
|
6933
7731
|
readonly context: ({ input }: {
|
|
6934
7732
|
spawn: {
|
|
@@ -7141,303 +7939,463 @@ export declare function useDiagram(): {
|
|
|
7141
7939
|
type: "close";
|
|
7142
7940
|
actorId?: string | undefined;
|
|
7143
7941
|
};
|
|
7144
|
-
}) => {
|
|
7145
|
-
actorId: string;
|
|
7942
|
+
}) => {
|
|
7943
|
+
actorId: string;
|
|
7944
|
+
};
|
|
7945
|
+
};
|
|
7946
|
+
readonly target: "closing";
|
|
7947
|
+
}, {
|
|
7948
|
+
readonly actions: "closeLastOverlay";
|
|
7949
|
+
readonly target: "closing";
|
|
7950
|
+
}];
|
|
7951
|
+
readonly 'close.all': {
|
|
7952
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
7953
|
+
readonly target: "idle";
|
|
7954
|
+
};
|
|
7955
|
+
};
|
|
7956
|
+
};
|
|
7957
|
+
readonly closing: {
|
|
7958
|
+
readonly always: readonly [{
|
|
7959
|
+
readonly guard: "has overlays?";
|
|
7960
|
+
readonly target: "active";
|
|
7961
|
+
}, {
|
|
7962
|
+
readonly actions: "stopListeningToEsc";
|
|
7963
|
+
readonly target: "idle";
|
|
7964
|
+
}];
|
|
7965
|
+
};
|
|
7966
|
+
};
|
|
7967
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
7968
|
+
}>;
|
|
7969
|
+
id: "overlays";
|
|
7970
|
+
};
|
|
7971
|
+
}>, never, never, never, never>, "xyflow:fitFocusedBounds"];
|
|
7972
|
+
readonly on: {
|
|
7973
|
+
readonly 'key.esc': {
|
|
7974
|
+
readonly target: "idle";
|
|
7975
|
+
};
|
|
7976
|
+
readonly 'key.arrow.left': {
|
|
7977
|
+
readonly actions: ActionFunction<DiagramContext, HotKeyEvent, Events, undefined, never, never, never, never, never>;
|
|
7978
|
+
};
|
|
7979
|
+
readonly 'key.arrow.right': {
|
|
7980
|
+
readonly actions: ActionFunction<DiagramContext, HotKeyEvent, Events, undefined, never, never, never, never, never>;
|
|
7981
|
+
};
|
|
7982
|
+
readonly 'walkthrough.step': {
|
|
7983
|
+
readonly actions: ActionFunction<DiagramContext, {
|
|
7984
|
+
type: "walkthrough.step";
|
|
7985
|
+
direction: "next" | "previous";
|
|
7986
|
+
}, Events, undefined, Values<{
|
|
7987
|
+
syncManualLayoutActorLogic: {
|
|
7988
|
+
src: "syncManualLayoutActorLogic";
|
|
7989
|
+
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
7990
|
+
type: "trigger:OnChange";
|
|
7991
|
+
params: {
|
|
7992
|
+
change: ViewChange;
|
|
7993
|
+
};
|
|
7994
|
+
}, {
|
|
7995
|
+
type: "same view";
|
|
7996
|
+
params: unknown;
|
|
7997
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
7998
|
+
readonly initial: "idle";
|
|
7999
|
+
readonly context: ({ input }: {
|
|
8000
|
+
spawn: {
|
|
8001
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
8002
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
8003
|
+
id?: never;
|
|
8004
|
+
systemId?: string;
|
|
8005
|
+
input?: InputFrom<TLogic>;
|
|
8006
|
+
syncSnapshot?: boolean;
|
|
8007
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
8008
|
+
};
|
|
8009
|
+
input: Input;
|
|
8010
|
+
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
8011
|
+
}) => {
|
|
8012
|
+
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
8013
|
+
viewId: ViewId;
|
|
8014
|
+
};
|
|
8015
|
+
readonly states: {
|
|
8016
|
+
readonly idle: {
|
|
8017
|
+
readonly tags: "ready";
|
|
8018
|
+
readonly on: {
|
|
8019
|
+
readonly sync: {
|
|
8020
|
+
readonly target: "pending";
|
|
8021
|
+
};
|
|
8022
|
+
};
|
|
8023
|
+
};
|
|
8024
|
+
readonly paused: {
|
|
8025
|
+
readonly tags: "pending";
|
|
8026
|
+
readonly on: {
|
|
8027
|
+
readonly sync: {
|
|
8028
|
+
readonly target: "pending";
|
|
8029
|
+
};
|
|
8030
|
+
};
|
|
8031
|
+
};
|
|
8032
|
+
readonly pending: {
|
|
8033
|
+
readonly tags: "pending";
|
|
8034
|
+
readonly on: {
|
|
8035
|
+
readonly sync: {
|
|
8036
|
+
readonly target: "pending";
|
|
8037
|
+
readonly reenter: true;
|
|
8038
|
+
};
|
|
8039
|
+
readonly cancel: {
|
|
8040
|
+
readonly target: "paused";
|
|
8041
|
+
};
|
|
8042
|
+
};
|
|
8043
|
+
readonly after: {
|
|
8044
|
+
readonly timeout: readonly [{
|
|
8045
|
+
readonly guard: "same view";
|
|
8046
|
+
readonly actions: {
|
|
8047
|
+
readonly type: "trigger:OnChange";
|
|
8048
|
+
readonly params: ({ context }: {
|
|
8049
|
+
context: Readonly< Input>;
|
|
8050
|
+
event: Events;
|
|
8051
|
+
}) => {
|
|
8052
|
+
change: import("@likec4/core").ViewChange.SaveManualLayout;
|
|
8053
|
+
};
|
|
8054
|
+
};
|
|
8055
|
+
readonly target: "synced";
|
|
8056
|
+
}, {
|
|
8057
|
+
readonly target: "stopped";
|
|
8058
|
+
}];
|
|
8059
|
+
};
|
|
8060
|
+
};
|
|
8061
|
+
readonly synced: {
|
|
8062
|
+
readonly tags: "ready";
|
|
8063
|
+
readonly on: {
|
|
8064
|
+
readonly sync: {
|
|
8065
|
+
readonly target: "pending";
|
|
7146
8066
|
};
|
|
7147
8067
|
};
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
readonly
|
|
7151
|
-
readonly
|
|
7152
|
-
}];
|
|
7153
|
-
readonly 'close.all': {
|
|
7154
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
7155
|
-
readonly target: "idle";
|
|
8068
|
+
};
|
|
8069
|
+
readonly stopped: {
|
|
8070
|
+
readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
|
|
8071
|
+
readonly type: "final";
|
|
7156
8072
|
};
|
|
7157
8073
|
};
|
|
7158
|
-
};
|
|
7159
|
-
readonly closing: {
|
|
7160
|
-
readonly always: readonly [{
|
|
7161
|
-
readonly guard: "has overlays?";
|
|
7162
|
-
readonly target: "active";
|
|
7163
|
-
}, {
|
|
7164
|
-
readonly actions: "stopListeningToEsc";
|
|
7165
|
-
readonly target: "idle";
|
|
7166
|
-
}];
|
|
7167
|
-
};
|
|
7168
|
-
};
|
|
7169
|
-
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
7170
|
-
}>;
|
|
7171
|
-
id: "overlays";
|
|
7172
|
-
};
|
|
7173
|
-
}>, never, never, never, never>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
|
|
7174
|
-
syncManualLayoutActorLogic: {
|
|
7175
|
-
src: "syncManualLayoutActorLogic";
|
|
7176
|
-
logic: StateMachine<Readonly< Input>, Events, {}, never, {
|
|
7177
|
-
type: "trigger:OnChange";
|
|
7178
|
-
params: {
|
|
7179
|
-
change: ViewChange;
|
|
7180
|
-
};
|
|
7181
|
-
}, {
|
|
7182
|
-
type: "same view";
|
|
7183
|
-
params: unknown;
|
|
7184
|
-
}, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
7185
|
-
readonly initial: "idle";
|
|
7186
|
-
readonly context: ({ input }: {
|
|
7187
|
-
spawn: {
|
|
7188
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
7189
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
7190
|
-
id?: never;
|
|
7191
|
-
systemId?: string;
|
|
7192
|
-
input?: InputFrom<TLogic>;
|
|
7193
|
-
syncSnapshot?: boolean;
|
|
7194
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
7195
|
-
};
|
|
7196
|
-
input: Input;
|
|
7197
|
-
self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
7198
|
-
}) => {
|
|
7199
|
-
parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
|
|
7200
|
-
viewId: ViewId;
|
|
7201
|
-
};
|
|
7202
|
-
readonly states: {
|
|
7203
|
-
readonly idle: {
|
|
7204
|
-
readonly tags: "ready";
|
|
7205
8074
|
readonly on: {
|
|
7206
|
-
readonly
|
|
7207
|
-
readonly target: "
|
|
8075
|
+
readonly synced: {
|
|
8076
|
+
readonly target: ".synced";
|
|
8077
|
+
};
|
|
8078
|
+
readonly stop: {
|
|
8079
|
+
readonly target: ".stopped";
|
|
7208
8080
|
};
|
|
7209
8081
|
};
|
|
7210
|
-
}
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
8082
|
+
}>;
|
|
8083
|
+
id: "syncLayout";
|
|
8084
|
+
};
|
|
8085
|
+
hotkeyActorLogic: {
|
|
8086
|
+
src: "hotkeyActorLogic";
|
|
8087
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
8088
|
+
id: "hotkey";
|
|
8089
|
+
};
|
|
8090
|
+
overlaysActorLogic: {
|
|
8091
|
+
src: "overlaysActorLogic";
|
|
8092
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
8093
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
8094
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
8095
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
8096
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
8097
|
+
}, Values<{
|
|
8098
|
+
elementDetails: {
|
|
8099
|
+
src: "elementDetails";
|
|
8100
|
+
logic: ElementDetailsLogic;
|
|
8101
|
+
id: `elementDetails-${number}`;
|
|
8102
|
+
};
|
|
8103
|
+
relationshipsBrowser: {
|
|
8104
|
+
src: "relationshipsBrowser";
|
|
8105
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
8106
|
+
id: `relationshipsBrowser-${number}`;
|
|
8107
|
+
};
|
|
8108
|
+
relationshipDetails: {
|
|
8109
|
+
src: "relationshipDetails";
|
|
8110
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
8111
|
+
id: `relationshipDetails-${number}`;
|
|
8112
|
+
};
|
|
8113
|
+
hotkey: {
|
|
8114
|
+
src: "hotkey";
|
|
8115
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
8116
|
+
id: "hotkey";
|
|
8117
|
+
};
|
|
8118
|
+
}>, Values<{
|
|
8119
|
+
closeLastOverlay: {
|
|
8120
|
+
type: "closeLastOverlay";
|
|
8121
|
+
params: NonReducibleUnknown;
|
|
8122
|
+
};
|
|
8123
|
+
closeSpecificOverlay: {
|
|
8124
|
+
type: "closeSpecificOverlay";
|
|
8125
|
+
params: {
|
|
8126
|
+
actorId: string;
|
|
7216
8127
|
};
|
|
7217
8128
|
};
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
8129
|
+
closeAllOverlays: {
|
|
8130
|
+
type: "closeAllOverlays";
|
|
8131
|
+
params: NonReducibleUnknown;
|
|
8132
|
+
};
|
|
8133
|
+
openElementDetails: {
|
|
8134
|
+
type: "openElementDetails";
|
|
8135
|
+
params: NonReducibleUnknown;
|
|
8136
|
+
};
|
|
8137
|
+
openRelationshipDetails: {
|
|
8138
|
+
type: "openRelationshipDetails";
|
|
8139
|
+
params: NonReducibleUnknown;
|
|
8140
|
+
};
|
|
8141
|
+
openRelationshipsBrowser: {
|
|
8142
|
+
type: "openRelationshipsBrowser";
|
|
8143
|
+
params: NonReducibleUnknown;
|
|
8144
|
+
};
|
|
8145
|
+
listenToEsc: {
|
|
8146
|
+
type: "listenToEsc";
|
|
8147
|
+
params: NonReducibleUnknown;
|
|
8148
|
+
};
|
|
8149
|
+
stopListeningToEsc: {
|
|
8150
|
+
type: "stopListeningToEsc";
|
|
8151
|
+
params: NonReducibleUnknown;
|
|
8152
|
+
};
|
|
8153
|
+
}>, Values<{
|
|
8154
|
+
"has overlays?": {
|
|
8155
|
+
type: "has overlays?";
|
|
8156
|
+
params: unknown;
|
|
8157
|
+
};
|
|
8158
|
+
"close specific overlay?": {
|
|
8159
|
+
type: "close specific overlay?";
|
|
8160
|
+
params: unknown;
|
|
8161
|
+
};
|
|
8162
|
+
"last: is relationshipDetails?": {
|
|
8163
|
+
type: "last: is relationshipDetails?";
|
|
8164
|
+
params: unknown;
|
|
8165
|
+
};
|
|
8166
|
+
"last: is relationshipsBrowser?": {
|
|
8167
|
+
type: "last: is relationshipsBrowser?";
|
|
8168
|
+
params: unknown;
|
|
8169
|
+
};
|
|
8170
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
8171
|
+
readonly id: "overlays";
|
|
8172
|
+
readonly context: () => {
|
|
8173
|
+
seq: number;
|
|
8174
|
+
overlays: never[];
|
|
8175
|
+
};
|
|
8176
|
+
readonly initial: "idle";
|
|
7221
8177
|
readonly on: {
|
|
7222
|
-
readonly
|
|
7223
|
-
readonly
|
|
7224
|
-
readonly
|
|
8178
|
+
readonly 'open.elementDetails': {
|
|
8179
|
+
readonly actions: "openElementDetails";
|
|
8180
|
+
readonly target: ".active";
|
|
8181
|
+
readonly reenter: false;
|
|
7225
8182
|
};
|
|
7226
|
-
readonly
|
|
7227
|
-
readonly
|
|
8183
|
+
readonly 'open.relationshipDetails': {
|
|
8184
|
+
readonly actions: "openRelationshipDetails";
|
|
8185
|
+
readonly target: ".active";
|
|
8186
|
+
readonly reenter: false;
|
|
8187
|
+
};
|
|
8188
|
+
readonly 'open.relationshipsBrowser': {
|
|
8189
|
+
readonly actions: "openRelationshipsBrowser";
|
|
8190
|
+
readonly target: ".active";
|
|
8191
|
+
readonly reenter: false;
|
|
7228
8192
|
};
|
|
7229
8193
|
};
|
|
7230
|
-
readonly
|
|
7231
|
-
readonly
|
|
7232
|
-
|
|
7233
|
-
readonly
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
8194
|
+
readonly states: {
|
|
8195
|
+
readonly idle: {};
|
|
8196
|
+
readonly active: {
|
|
8197
|
+
readonly entry: "listenToEsc";
|
|
8198
|
+
readonly exit: "stopListeningToEsc";
|
|
8199
|
+
readonly on: {
|
|
8200
|
+
readonly close: readonly [{
|
|
8201
|
+
readonly guard: "close specific overlay?";
|
|
8202
|
+
readonly actions: {
|
|
8203
|
+
readonly type: "closeSpecificOverlay";
|
|
8204
|
+
readonly params: ({ event }: {
|
|
8205
|
+
context: OverlaysContext;
|
|
8206
|
+
event: {
|
|
8207
|
+
type: "close";
|
|
8208
|
+
actorId?: string | undefined;
|
|
8209
|
+
};
|
|
8210
|
+
}) => {
|
|
8211
|
+
actorId: string;
|
|
8212
|
+
};
|
|
8213
|
+
};
|
|
8214
|
+
readonly target: "closing";
|
|
8215
|
+
}, {
|
|
8216
|
+
readonly actions: "closeLastOverlay";
|
|
8217
|
+
readonly target: "closing";
|
|
8218
|
+
}];
|
|
8219
|
+
readonly 'close.all': {
|
|
8220
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
8221
|
+
readonly target: "idle";
|
|
7240
8222
|
};
|
|
7241
8223
|
};
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
readonly
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
readonly sync: {
|
|
7252
|
-
readonly target: "pending";
|
|
8224
|
+
};
|
|
8225
|
+
readonly closing: {
|
|
8226
|
+
readonly always: readonly [{
|
|
8227
|
+
readonly guard: "has overlays?";
|
|
8228
|
+
readonly target: "active";
|
|
8229
|
+
}, {
|
|
8230
|
+
readonly actions: "stopListeningToEsc";
|
|
8231
|
+
readonly target: "idle";
|
|
8232
|
+
}];
|
|
7253
8233
|
};
|
|
7254
8234
|
};
|
|
8235
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
8236
|
+
}>;
|
|
8237
|
+
id: "overlays";
|
|
8238
|
+
};
|
|
8239
|
+
}>, Values<{
|
|
8240
|
+
onNodeMouseEnter: {
|
|
8241
|
+
type: "onNodeMouseEnter";
|
|
8242
|
+
params: {
|
|
8243
|
+
node: Types.Node;
|
|
7255
8244
|
};
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
8245
|
+
};
|
|
8246
|
+
onNodeMouseLeave: {
|
|
8247
|
+
type: "onNodeMouseLeave";
|
|
8248
|
+
params: {
|
|
8249
|
+
node: Types.Node;
|
|
7259
8250
|
};
|
|
7260
8251
|
};
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
8252
|
+
onEdgeMouseEnter: {
|
|
8253
|
+
type: "onEdgeMouseEnter";
|
|
8254
|
+
params: {
|
|
8255
|
+
edge: Types.Edge;
|
|
7264
8256
|
};
|
|
7265
|
-
|
|
7266
|
-
|
|
8257
|
+
};
|
|
8258
|
+
onEdgeMouseLeave: {
|
|
8259
|
+
type: "onEdgeMouseLeave";
|
|
8260
|
+
params: {
|
|
8261
|
+
edge: Types.Edge;
|
|
7267
8262
|
};
|
|
7268
8263
|
};
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
7275
|
-
id: "hotkey";
|
|
7276
|
-
};
|
|
7277
|
-
overlaysActorLogic: {
|
|
7278
|
-
src: "overlaysActorLogic";
|
|
7279
|
-
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
7280
|
-
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
7281
|
-
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
7282
|
-
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
7283
|
-
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
7284
|
-
}, Values<{
|
|
7285
|
-
elementDetails: {
|
|
7286
|
-
src: "elementDetails";
|
|
7287
|
-
logic: ElementDetailsLogic;
|
|
7288
|
-
id: `elementDetails-${number}`;
|
|
8264
|
+
"trigger:OnChange": {
|
|
8265
|
+
type: "trigger:OnChange";
|
|
8266
|
+
params: {
|
|
8267
|
+
change: ViewChange;
|
|
8268
|
+
};
|
|
7289
8269
|
};
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
8270
|
+
"layout.align": {
|
|
8271
|
+
type: "layout.align";
|
|
8272
|
+
params: {
|
|
8273
|
+
mode: AlignmentMode;
|
|
8274
|
+
};
|
|
7294
8275
|
};
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
8276
|
+
"notations.highlight": {
|
|
8277
|
+
type: "notations.highlight";
|
|
8278
|
+
params: {
|
|
8279
|
+
notation: ElementNotation;
|
|
8280
|
+
kind?: string;
|
|
8281
|
+
};
|
|
7299
8282
|
};
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
8283
|
+
"xyflow:fitDiagram": {
|
|
8284
|
+
type: "xyflow:fitDiagram";
|
|
8285
|
+
params: {
|
|
8286
|
+
duration?: number;
|
|
8287
|
+
bounds?: BBox;
|
|
8288
|
+
} | undefined;
|
|
7304
8289
|
};
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
type: "closeLastOverlay";
|
|
8290
|
+
closeAllOverlays: {
|
|
8291
|
+
type: "closeAllOverlays";
|
|
7308
8292
|
params: NonReducibleUnknown;
|
|
7309
8293
|
};
|
|
7310
|
-
|
|
7311
|
-
type: "
|
|
8294
|
+
"trigger:NavigateTo": {
|
|
8295
|
+
type: "trigger:NavigateTo";
|
|
7312
8296
|
params: {
|
|
7313
|
-
|
|
8297
|
+
viewId: ViewId;
|
|
7314
8298
|
};
|
|
7315
8299
|
};
|
|
7316
|
-
|
|
7317
|
-
type: "
|
|
7318
|
-
params:
|
|
8300
|
+
"trigger:OpenSource": {
|
|
8301
|
+
type: "trigger:OpenSource";
|
|
8302
|
+
params: OpenSourceParams;
|
|
7319
8303
|
};
|
|
7320
|
-
|
|
7321
|
-
type: "
|
|
8304
|
+
"assign lastClickedNode": {
|
|
8305
|
+
type: "assign lastClickedNode";
|
|
7322
8306
|
params: NonReducibleUnknown;
|
|
7323
8307
|
};
|
|
7324
|
-
|
|
7325
|
-
type: "
|
|
8308
|
+
"open source of focused or last clicked node": {
|
|
8309
|
+
type: "open source of focused or last clicked node";
|
|
7326
8310
|
params: NonReducibleUnknown;
|
|
7327
8311
|
};
|
|
7328
|
-
|
|
7329
|
-
type: "
|
|
8312
|
+
"xyflow:fitFocusedBounds": {
|
|
8313
|
+
type: "xyflow:fitFocusedBounds";
|
|
8314
|
+
params: unknown;
|
|
8315
|
+
};
|
|
8316
|
+
"xyflow:setViewportCenter": {
|
|
8317
|
+
type: "xyflow:setViewportCenter";
|
|
8318
|
+
params: {
|
|
8319
|
+
x: number;
|
|
8320
|
+
y: number;
|
|
8321
|
+
};
|
|
8322
|
+
};
|
|
8323
|
+
"xyflow:setViewport": {
|
|
8324
|
+
type: "xyflow:setViewport";
|
|
8325
|
+
params: {
|
|
8326
|
+
viewport: Viewport;
|
|
8327
|
+
duration?: number;
|
|
8328
|
+
};
|
|
8329
|
+
};
|
|
8330
|
+
"xyflow:alignNodeFromToAfterNavigate": {
|
|
8331
|
+
type: "xyflow:alignNodeFromToAfterNavigate";
|
|
8332
|
+
params: {
|
|
8333
|
+
fromNode: NodeId;
|
|
8334
|
+
toPosition: XYPoint;
|
|
8335
|
+
};
|
|
8336
|
+
};
|
|
8337
|
+
updateFeatures: {
|
|
8338
|
+
type: "updateFeatures";
|
|
7330
8339
|
params: NonReducibleUnknown;
|
|
7331
8340
|
};
|
|
7332
|
-
|
|
7333
|
-
type: "
|
|
8341
|
+
startSyncLayout: {
|
|
8342
|
+
type: "startSyncLayout";
|
|
7334
8343
|
params: NonReducibleUnknown;
|
|
7335
8344
|
};
|
|
7336
|
-
|
|
7337
|
-
type: "
|
|
8345
|
+
stopSyncLayout: {
|
|
8346
|
+
type: "stopSyncLayout";
|
|
7338
8347
|
params: NonReducibleUnknown;
|
|
7339
8348
|
};
|
|
7340
8349
|
}>, Values<{
|
|
7341
|
-
|
|
7342
|
-
type: "
|
|
8350
|
+
isReady: {
|
|
8351
|
+
type: "isReady";
|
|
7343
8352
|
params: unknown;
|
|
7344
8353
|
};
|
|
7345
|
-
"
|
|
7346
|
-
type: "
|
|
8354
|
+
"enabled: FitView": {
|
|
8355
|
+
type: "enabled: FitView";
|
|
7347
8356
|
params: unknown;
|
|
7348
8357
|
};
|
|
7349
|
-
"
|
|
7350
|
-
type: "
|
|
8358
|
+
"enabled: FocusMode": {
|
|
8359
|
+
type: "enabled: FocusMode";
|
|
7351
8360
|
params: unknown;
|
|
7352
8361
|
};
|
|
7353
|
-
"
|
|
7354
|
-
type: "
|
|
8362
|
+
"enabled: Readonly": {
|
|
8363
|
+
type: "enabled: Readonly";
|
|
7355
8364
|
params: unknown;
|
|
7356
8365
|
};
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
seq: number;
|
|
7361
|
-
overlays: never[];
|
|
8366
|
+
"not readonly": {
|
|
8367
|
+
type: "not readonly";
|
|
8368
|
+
params: unknown;
|
|
7362
8369
|
};
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
readonly actions: "openElementDetails";
|
|
7367
|
-
readonly target: ".active";
|
|
7368
|
-
readonly reenter: false;
|
|
7369
|
-
};
|
|
7370
|
-
readonly 'open.relationshipDetails': {
|
|
7371
|
-
readonly actions: "openRelationshipDetails";
|
|
7372
|
-
readonly target: ".active";
|
|
7373
|
-
readonly reenter: false;
|
|
7374
|
-
};
|
|
7375
|
-
readonly 'open.relationshipsBrowser': {
|
|
7376
|
-
readonly actions: "openRelationshipsBrowser";
|
|
7377
|
-
readonly target: ".active";
|
|
7378
|
-
readonly reenter: false;
|
|
7379
|
-
};
|
|
8370
|
+
"is dynamic view": {
|
|
8371
|
+
type: "is dynamic view";
|
|
8372
|
+
params: unknown;
|
|
7380
8373
|
};
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
readonly guard: "close specific overlay?";
|
|
7389
|
-
readonly actions: {
|
|
7390
|
-
readonly type: "closeSpecificOverlay";
|
|
7391
|
-
readonly params: ({ event }: {
|
|
7392
|
-
context: OverlaysContext;
|
|
7393
|
-
event: {
|
|
7394
|
-
type: "close";
|
|
7395
|
-
actorId?: string | undefined;
|
|
7396
|
-
};
|
|
7397
|
-
}) => {
|
|
7398
|
-
actorId: string;
|
|
7399
|
-
};
|
|
7400
|
-
};
|
|
7401
|
-
readonly target: "closing";
|
|
7402
|
-
}, {
|
|
7403
|
-
readonly actions: "closeLastOverlay";
|
|
7404
|
-
readonly target: "closing";
|
|
7405
|
-
}];
|
|
7406
|
-
readonly 'close.all': {
|
|
7407
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
7408
|
-
readonly target: "idle";
|
|
7409
|
-
};
|
|
7410
|
-
};
|
|
7411
|
-
};
|
|
7412
|
-
readonly closing: {
|
|
7413
|
-
readonly always: readonly [{
|
|
7414
|
-
readonly guard: "has overlays?";
|
|
7415
|
-
readonly target: "active";
|
|
7416
|
-
}, {
|
|
7417
|
-
readonly actions: "stopListeningToEsc";
|
|
7418
|
-
readonly target: "idle";
|
|
7419
|
-
}];
|
|
7420
|
-
};
|
|
8374
|
+
"is another view": {
|
|
8375
|
+
type: "is another view";
|
|
8376
|
+
params: unknown;
|
|
8377
|
+
};
|
|
8378
|
+
"click: selected node": {
|
|
8379
|
+
type: "click: selected node";
|
|
8380
|
+
params: unknown;
|
|
7421
8381
|
};
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
readonly actions: ActionFunction<DiagramContext, HotKeyEvent, Events, undefined, never, never, never, never, never>;
|
|
8382
|
+
"click: same node": {
|
|
8383
|
+
type: "click: same node";
|
|
8384
|
+
params: unknown;
|
|
8385
|
+
};
|
|
8386
|
+
"click: focused node": {
|
|
8387
|
+
type: "click: focused node";
|
|
8388
|
+
params: unknown;
|
|
8389
|
+
};
|
|
8390
|
+
"click: node has connections": {
|
|
8391
|
+
type: "click: node has connections";
|
|
8392
|
+
params: unknown;
|
|
8393
|
+
};
|
|
8394
|
+
}>, never, EventObject>;
|
|
7436
8395
|
};
|
|
7437
|
-
readonly '
|
|
8396
|
+
readonly 'notations.unhighlight': {
|
|
7438
8397
|
readonly actions: ActionFunction<DiagramContext, {
|
|
7439
|
-
type: "
|
|
7440
|
-
direction: "next" | "previous";
|
|
8398
|
+
type: "notations.unhighlight";
|
|
7441
8399
|
}, Events, undefined, Values<{
|
|
7442
8400
|
syncManualLayoutActorLogic: {
|
|
7443
8401
|
src: "syncManualLayoutActorLogic";
|
|
@@ -7449,7 +8407,7 @@ export declare function useDiagram(): {
|
|
|
7449
8407
|
}, {
|
|
7450
8408
|
type: "same view";
|
|
7451
8409
|
params: unknown;
|
|
7452
|
-
}, "timeout", "
|
|
8410
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
7453
8411
|
readonly initial: "idle";
|
|
7454
8412
|
readonly context: ({ input }: {
|
|
7455
8413
|
spawn: {
|
|
@@ -7691,155 +8649,7 @@ export declare function useDiagram(): {
|
|
|
7691
8649
|
}>;
|
|
7692
8650
|
id: "overlays";
|
|
7693
8651
|
};
|
|
7694
|
-
}>,
|
|
7695
|
-
onNodeMouseEnter: {
|
|
7696
|
-
type: "onNodeMouseEnter";
|
|
7697
|
-
params: {
|
|
7698
|
-
node: Types.Node;
|
|
7699
|
-
};
|
|
7700
|
-
};
|
|
7701
|
-
onNodeMouseLeave: {
|
|
7702
|
-
type: "onNodeMouseLeave";
|
|
7703
|
-
params: {
|
|
7704
|
-
node: Types.Node;
|
|
7705
|
-
};
|
|
7706
|
-
};
|
|
7707
|
-
onEdgeMouseEnter: {
|
|
7708
|
-
type: "onEdgeMouseEnter";
|
|
7709
|
-
params: {
|
|
7710
|
-
edge: Types.Edge;
|
|
7711
|
-
};
|
|
7712
|
-
};
|
|
7713
|
-
onEdgeMouseLeave: {
|
|
7714
|
-
type: "onEdgeMouseLeave";
|
|
7715
|
-
params: {
|
|
7716
|
-
edge: Types.Edge;
|
|
7717
|
-
};
|
|
7718
|
-
};
|
|
7719
|
-
"xyflow:fitDiagram": {
|
|
7720
|
-
type: "xyflow:fitDiagram";
|
|
7721
|
-
params: {
|
|
7722
|
-
duration?: number;
|
|
7723
|
-
bounds?: BBox;
|
|
7724
|
-
} | undefined;
|
|
7725
|
-
};
|
|
7726
|
-
closeAllOverlays: {
|
|
7727
|
-
type: "closeAllOverlays";
|
|
7728
|
-
params: NonReducibleUnknown;
|
|
7729
|
-
};
|
|
7730
|
-
"trigger:OnChange": {
|
|
7731
|
-
type: "trigger:OnChange";
|
|
7732
|
-
params: {
|
|
7733
|
-
change: ViewChange;
|
|
7734
|
-
};
|
|
7735
|
-
};
|
|
7736
|
-
"layout.align": {
|
|
7737
|
-
type: "layout.align";
|
|
7738
|
-
params: {
|
|
7739
|
-
mode: AlignmentMode;
|
|
7740
|
-
};
|
|
7741
|
-
};
|
|
7742
|
-
"trigger:NavigateTo": {
|
|
7743
|
-
type: "trigger:NavigateTo";
|
|
7744
|
-
params: {
|
|
7745
|
-
viewId: ViewId;
|
|
7746
|
-
};
|
|
7747
|
-
};
|
|
7748
|
-
"trigger:OpenSource": {
|
|
7749
|
-
type: "trigger:OpenSource";
|
|
7750
|
-
params: OpenSourceParams;
|
|
7751
|
-
};
|
|
7752
|
-
"assign lastClickedNode": {
|
|
7753
|
-
type: "assign lastClickedNode";
|
|
7754
|
-
params: NonReducibleUnknown;
|
|
7755
|
-
};
|
|
7756
|
-
"open source of focused or last clicked node": {
|
|
7757
|
-
type: "open source of focused or last clicked node";
|
|
7758
|
-
params: NonReducibleUnknown;
|
|
7759
|
-
};
|
|
7760
|
-
"xyflow:fitFocusedBounds": {
|
|
7761
|
-
type: "xyflow:fitFocusedBounds";
|
|
7762
|
-
params: unknown;
|
|
7763
|
-
};
|
|
7764
|
-
"xyflow:setViewportCenter": {
|
|
7765
|
-
type: "xyflow:setViewportCenter";
|
|
7766
|
-
params: {
|
|
7767
|
-
x: number;
|
|
7768
|
-
y: number;
|
|
7769
|
-
};
|
|
7770
|
-
};
|
|
7771
|
-
"xyflow:setViewport": {
|
|
7772
|
-
type: "xyflow:setViewport";
|
|
7773
|
-
params: {
|
|
7774
|
-
viewport: Viewport;
|
|
7775
|
-
duration?: number;
|
|
7776
|
-
};
|
|
7777
|
-
};
|
|
7778
|
-
"xyflow:alignNodeFromToAfterNavigate": {
|
|
7779
|
-
type: "xyflow:alignNodeFromToAfterNavigate";
|
|
7780
|
-
params: {
|
|
7781
|
-
fromNode: NodeId;
|
|
7782
|
-
toPosition: XYPoint;
|
|
7783
|
-
};
|
|
7784
|
-
};
|
|
7785
|
-
updateFeatures: {
|
|
7786
|
-
type: "updateFeatures";
|
|
7787
|
-
params: NonReducibleUnknown;
|
|
7788
|
-
};
|
|
7789
|
-
startSyncLayout: {
|
|
7790
|
-
type: "startSyncLayout";
|
|
7791
|
-
params: NonReducibleUnknown;
|
|
7792
|
-
};
|
|
7793
|
-
stopSyncLayout: {
|
|
7794
|
-
type: "stopSyncLayout";
|
|
7795
|
-
params: NonReducibleUnknown;
|
|
7796
|
-
};
|
|
7797
|
-
}>, Values<{
|
|
7798
|
-
isReady: {
|
|
7799
|
-
type: "isReady";
|
|
7800
|
-
params: unknown;
|
|
7801
|
-
};
|
|
7802
|
-
"enabled: FitView": {
|
|
7803
|
-
type: "enabled: FitView";
|
|
7804
|
-
params: unknown;
|
|
7805
|
-
};
|
|
7806
|
-
"enabled: FocusMode": {
|
|
7807
|
-
type: "enabled: FocusMode";
|
|
7808
|
-
params: unknown;
|
|
7809
|
-
};
|
|
7810
|
-
"enabled: Readonly": {
|
|
7811
|
-
type: "enabled: Readonly";
|
|
7812
|
-
params: unknown;
|
|
7813
|
-
};
|
|
7814
|
-
"not readonly": {
|
|
7815
|
-
type: "not readonly";
|
|
7816
|
-
params: unknown;
|
|
7817
|
-
};
|
|
7818
|
-
"is dynamic view": {
|
|
7819
|
-
type: "is dynamic view";
|
|
7820
|
-
params: unknown;
|
|
7821
|
-
};
|
|
7822
|
-
"is another view": {
|
|
7823
|
-
type: "is another view";
|
|
7824
|
-
params: unknown;
|
|
7825
|
-
};
|
|
7826
|
-
"click: selected node": {
|
|
7827
|
-
type: "click: selected node";
|
|
7828
|
-
params: unknown;
|
|
7829
|
-
};
|
|
7830
|
-
"click: same node": {
|
|
7831
|
-
type: "click: same node";
|
|
7832
|
-
params: unknown;
|
|
7833
|
-
};
|
|
7834
|
-
"click: focused node": {
|
|
7835
|
-
type: "click: focused node";
|
|
7836
|
-
params: unknown;
|
|
7837
|
-
};
|
|
7838
|
-
"click: node has connections": {
|
|
7839
|
-
type: "click: node has connections";
|
|
7840
|
-
params: unknown;
|
|
7841
|
-
};
|
|
7842
|
-
}>, never, EventObject>;
|
|
8652
|
+
}>, never, never, never, never>;
|
|
7843
8653
|
};
|
|
7844
8654
|
readonly 'walkthrough.end': {
|
|
7845
8655
|
readonly target: "idle";
|
|
@@ -7869,7 +8679,7 @@ export declare function useDiagram(): {
|
|
|
7869
8679
|
}, {
|
|
7870
8680
|
type: "same view";
|
|
7871
8681
|
params: unknown;
|
|
7872
|
-
}, "timeout", "
|
|
8682
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
7873
8683
|
readonly initial: "idle";
|
|
7874
8684
|
readonly context: ({ input }: {
|
|
7875
8685
|
spawn: {
|
|
@@ -8136,17 +8946,6 @@ export declare function useDiagram(): {
|
|
|
8136
8946
|
edge: Types.Edge;
|
|
8137
8947
|
};
|
|
8138
8948
|
};
|
|
8139
|
-
"xyflow:fitDiagram": {
|
|
8140
|
-
type: "xyflow:fitDiagram";
|
|
8141
|
-
params: {
|
|
8142
|
-
duration?: number;
|
|
8143
|
-
bounds?: BBox;
|
|
8144
|
-
} | undefined;
|
|
8145
|
-
};
|
|
8146
|
-
closeAllOverlays: {
|
|
8147
|
-
type: "closeAllOverlays";
|
|
8148
|
-
params: NonReducibleUnknown;
|
|
8149
|
-
};
|
|
8150
8949
|
"trigger:OnChange": {
|
|
8151
8950
|
type: "trigger:OnChange";
|
|
8152
8951
|
params: {
|
|
@@ -8159,6 +8958,24 @@ export declare function useDiagram(): {
|
|
|
8159
8958
|
mode: AlignmentMode;
|
|
8160
8959
|
};
|
|
8161
8960
|
};
|
|
8961
|
+
"notations.highlight": {
|
|
8962
|
+
type: "notations.highlight";
|
|
8963
|
+
params: {
|
|
8964
|
+
notation: ElementNotation;
|
|
8965
|
+
kind?: string;
|
|
8966
|
+
};
|
|
8967
|
+
};
|
|
8968
|
+
"xyflow:fitDiagram": {
|
|
8969
|
+
type: "xyflow:fitDiagram";
|
|
8970
|
+
params: {
|
|
8971
|
+
duration?: number;
|
|
8972
|
+
bounds?: BBox;
|
|
8973
|
+
} | undefined;
|
|
8974
|
+
};
|
|
8975
|
+
closeAllOverlays: {
|
|
8976
|
+
type: "closeAllOverlays";
|
|
8977
|
+
params: NonReducibleUnknown;
|
|
8978
|
+
};
|
|
8162
8979
|
"trigger:NavigateTo": {
|
|
8163
8980
|
type: "trigger:NavigateTo";
|
|
8164
8981
|
params: {
|
|
@@ -8292,7 +9109,7 @@ export declare function useDiagram(): {
|
|
|
8292
9109
|
}, {
|
|
8293
9110
|
type: "same view";
|
|
8294
9111
|
params: unknown;
|
|
8295
|
-
}, "timeout", "
|
|
9112
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8296
9113
|
readonly initial: "idle";
|
|
8297
9114
|
readonly context: ({ input }: {
|
|
8298
9115
|
spawn: {
|
|
@@ -8559,17 +9376,6 @@ export declare function useDiagram(): {
|
|
|
8559
9376
|
edge: Types.Edge;
|
|
8560
9377
|
};
|
|
8561
9378
|
};
|
|
8562
|
-
"xyflow:fitDiagram": {
|
|
8563
|
-
type: "xyflow:fitDiagram";
|
|
8564
|
-
params: {
|
|
8565
|
-
duration?: number;
|
|
8566
|
-
bounds?: BBox;
|
|
8567
|
-
} | undefined;
|
|
8568
|
-
};
|
|
8569
|
-
closeAllOverlays: {
|
|
8570
|
-
type: "closeAllOverlays";
|
|
8571
|
-
params: NonReducibleUnknown;
|
|
8572
|
-
};
|
|
8573
9379
|
"trigger:OnChange": {
|
|
8574
9380
|
type: "trigger:OnChange";
|
|
8575
9381
|
params: {
|
|
@@ -8582,6 +9388,24 @@ export declare function useDiagram(): {
|
|
|
8582
9388
|
mode: AlignmentMode;
|
|
8583
9389
|
};
|
|
8584
9390
|
};
|
|
9391
|
+
"notations.highlight": {
|
|
9392
|
+
type: "notations.highlight";
|
|
9393
|
+
params: {
|
|
9394
|
+
notation: ElementNotation;
|
|
9395
|
+
kind?: string;
|
|
9396
|
+
};
|
|
9397
|
+
};
|
|
9398
|
+
"xyflow:fitDiagram": {
|
|
9399
|
+
type: "xyflow:fitDiagram";
|
|
9400
|
+
params: {
|
|
9401
|
+
duration?: number;
|
|
9402
|
+
bounds?: BBox;
|
|
9403
|
+
} | undefined;
|
|
9404
|
+
};
|
|
9405
|
+
closeAllOverlays: {
|
|
9406
|
+
type: "closeAllOverlays";
|
|
9407
|
+
params: NonReducibleUnknown;
|
|
9408
|
+
};
|
|
8585
9409
|
"trigger:NavigateTo": {
|
|
8586
9410
|
type: "trigger:NavigateTo";
|
|
8587
9411
|
params: {
|
|
@@ -8704,7 +9528,7 @@ export declare function useDiagram(): {
|
|
|
8704
9528
|
}, {
|
|
8705
9529
|
type: "same view";
|
|
8706
9530
|
params: unknown;
|
|
8707
|
-
}, "timeout", "
|
|
9531
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8708
9532
|
readonly initial: "idle";
|
|
8709
9533
|
readonly context: ({ input }: {
|
|
8710
9534
|
spawn: {
|
|
@@ -8963,7 +9787,7 @@ export declare function useDiagram(): {
|
|
|
8963
9787
|
}, {
|
|
8964
9788
|
type: "same view";
|
|
8965
9789
|
params: unknown;
|
|
8966
|
-
}, "timeout", "
|
|
9790
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
8967
9791
|
readonly initial: "idle";
|
|
8968
9792
|
readonly context: ({ input }: {
|
|
8969
9793
|
spawn: {
|
|
@@ -9223,7 +10047,7 @@ export declare function useDiagram(): {
|
|
|
9223
10047
|
}, {
|
|
9224
10048
|
type: "same view";
|
|
9225
10049
|
params: unknown;
|
|
9226
|
-
}, "timeout", "
|
|
10050
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
9227
10051
|
readonly initial: "idle";
|
|
9228
10052
|
readonly context: ({ input }: {
|
|
9229
10053
|
spawn: {
|
|
@@ -9497,7 +10321,7 @@ export declare function useDiagram(): {
|
|
|
9497
10321
|
}, {
|
|
9498
10322
|
type: "same view";
|
|
9499
10323
|
params: unknown;
|
|
9500
|
-
}, "timeout", "
|
|
10324
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
9501
10325
|
readonly initial: "idle";
|
|
9502
10326
|
readonly context: ({ input }: {
|
|
9503
10327
|
spawn: {
|
|
@@ -9753,7 +10577,7 @@ export declare function useDiagram(): {
|
|
|
9753
10577
|
}, {
|
|
9754
10578
|
type: "same view";
|
|
9755
10579
|
params: unknown;
|
|
9756
|
-
}, "timeout", "
|
|
10580
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
9757
10581
|
readonly initial: "idle";
|
|
9758
10582
|
readonly context: ({ input }: {
|
|
9759
10583
|
spawn: {
|
|
@@ -10009,7 +10833,7 @@ export declare function useDiagram(): {
|
|
|
10009
10833
|
}, {
|
|
10010
10834
|
type: "same view";
|
|
10011
10835
|
params: unknown;
|
|
10012
|
-
}, "timeout", "
|
|
10836
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
10013
10837
|
readonly initial: "idle";
|
|
10014
10838
|
readonly context: ({ input }: {
|
|
10015
10839
|
spawn: {
|
|
@@ -10267,7 +11091,7 @@ export declare function useDiagram(): {
|
|
|
10267
11091
|
}, {
|
|
10268
11092
|
type: "same view";
|
|
10269
11093
|
params: unknown;
|
|
10270
|
-
}, "timeout", "
|
|
11094
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
10271
11095
|
readonly initial: "idle";
|
|
10272
11096
|
readonly context: ({ input }: {
|
|
10273
11097
|
spawn: {
|
|
@@ -10534,17 +11358,6 @@ export declare function useDiagram(): {
|
|
|
10534
11358
|
edge: Types.Edge;
|
|
10535
11359
|
};
|
|
10536
11360
|
};
|
|
10537
|
-
"xyflow:fitDiagram": {
|
|
10538
|
-
type: "xyflow:fitDiagram";
|
|
10539
|
-
params: {
|
|
10540
|
-
duration?: number;
|
|
10541
|
-
bounds?: BBox;
|
|
10542
|
-
} | undefined;
|
|
10543
|
-
};
|
|
10544
|
-
closeAllOverlays: {
|
|
10545
|
-
type: "closeAllOverlays";
|
|
10546
|
-
params: NonReducibleUnknown;
|
|
10547
|
-
};
|
|
10548
11361
|
"trigger:OnChange": {
|
|
10549
11362
|
type: "trigger:OnChange";
|
|
10550
11363
|
params: {
|
|
@@ -10557,6 +11370,24 @@ export declare function useDiagram(): {
|
|
|
10557
11370
|
mode: AlignmentMode;
|
|
10558
11371
|
};
|
|
10559
11372
|
};
|
|
11373
|
+
"notations.highlight": {
|
|
11374
|
+
type: "notations.highlight";
|
|
11375
|
+
params: {
|
|
11376
|
+
notation: ElementNotation;
|
|
11377
|
+
kind?: string;
|
|
11378
|
+
};
|
|
11379
|
+
};
|
|
11380
|
+
"xyflow:fitDiagram": {
|
|
11381
|
+
type: "xyflow:fitDiagram";
|
|
11382
|
+
params: {
|
|
11383
|
+
duration?: number;
|
|
11384
|
+
bounds?: BBox;
|
|
11385
|
+
} | undefined;
|
|
11386
|
+
};
|
|
11387
|
+
closeAllOverlays: {
|
|
11388
|
+
type: "closeAllOverlays";
|
|
11389
|
+
params: NonReducibleUnknown;
|
|
11390
|
+
};
|
|
10560
11391
|
"trigger:NavigateTo": {
|
|
10561
11392
|
type: "trigger:NavigateTo";
|
|
10562
11393
|
params: {
|
|
@@ -10674,7 +11505,7 @@ export declare function useDiagram(): {
|
|
|
10674
11505
|
}, {
|
|
10675
11506
|
type: "same view";
|
|
10676
11507
|
params: unknown;
|
|
10677
|
-
}, "timeout", "
|
|
11508
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
10678
11509
|
readonly initial: "idle";
|
|
10679
11510
|
readonly context: ({ input }: {
|
|
10680
11511
|
spawn: {
|
|
@@ -10933,7 +11764,7 @@ export declare function useDiagram(): {
|
|
|
10933
11764
|
}, {
|
|
10934
11765
|
type: "same view";
|
|
10935
11766
|
params: unknown;
|
|
10936
|
-
}, "timeout", "
|
|
11767
|
+
}, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
10937
11768
|
readonly initial: "idle";
|
|
10938
11769
|
readonly context: ({ input }: {
|
|
10939
11770
|
spawn: {
|
|
@@ -11193,6 +12024,8 @@ export declare function useDiagram(): {
|
|
|
11193
12024
|
walkthroughStep: (direction?: "next" | "previous") => void;
|
|
11194
12025
|
stopWalkthrough: () => void;
|
|
11195
12026
|
toggleFeature: (feature: FeatureName, forceValue?: boolean) => void;
|
|
12027
|
+
highlightNotation: (notation: ElementNotation, kind?: string) => void;
|
|
12028
|
+
unhighlightNotation: () => void;
|
|
11196
12029
|
};
|
|
11197
12030
|
export declare function useDiagramActorSnapshot<T = unknown>(selector: (state: DiagramActorSnapshot) => T, compare?: (a: NoInfer<T>, b: NoInfer<T>) => boolean): T;
|
|
11198
12031
|
export declare function useDiagramSyncLayoutState<T = unknown>(selector: (state: SyncLayoutActorSnapshot) => T, compare?: (a: NoInfer<T>, b: NoInfer<T>) => boolean): T;
|