@likec4/diagram 1.27.0 → 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.
Files changed (151) hide show
  1. package/bundle/index.js +2343 -6880
  2. package/dist/LikeC4Diagram.js +3 -9
  3. package/dist/LikeC4Diagram.props.d.ts +5 -3
  4. package/dist/StaticLikeC4Diagram.js +1 -1
  5. package/dist/_virtual/set.js +5 -0
  6. package/dist/_virtual/set2.js +3 -0
  7. package/dist/base/BaseXYFlow.d.ts +2 -1
  8. package/dist/base/primitives/compound/CompoundNodeContainer.d.ts +1 -1
  9. package/dist/base/primitives/compound/CompoundNodeContainer.js +1 -2
  10. package/dist/base/primitives/edge/EdgeLabel.css.js +1 -4
  11. package/dist/base/primitives/edge/EdgeLabelContainer.js +1 -1
  12. package/dist/base/primitives/edge/EdgePath.js +0 -3
  13. package/dist/base/primitives/edge/edge.css.js +2 -0
  14. package/dist/base/primitives/element/ElementActionButtons.js +5 -10
  15. package/dist/base/primitives/element/ElementNodeContainer.css.js +5 -4
  16. package/dist/base/primitives/element/ElementShape.css.js +1 -12
  17. package/dist/base/primitives/element/ElementTitle.css.js +3 -2
  18. package/dist/base/types.js +2 -2
  19. package/dist/base/updateEdges.js +1 -9
  20. package/dist/base/updateNodes.js +1 -12
  21. package/dist/bundle/LikeC4View.js +2 -2
  22. package/dist/bundle/LikeC4View.props.d.ts +7 -7
  23. package/dist/components/Link.js +1 -1
  24. package/dist/hooks/useCurrentViewId.js +8 -2
  25. package/dist/hooks/useDiagram.d.ts +2659 -1996
  26. package/dist/hooks/useDiagram.js +16 -8
  27. package/dist/likec4diagram/DiagramXYFlow.js +10 -9
  28. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +30 -41
  29. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +1 -1
  30. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +6 -1
  31. package/dist/likec4diagram/ui/controls/LayoutDriftNotification.js +13 -5
  32. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +3 -3
  33. package/dist/likec4diagram/ui/notation/NotationPanel.js +10 -4
  34. package/dist/likec4diagram/useLayoutConstraints.d.ts +11 -10
  35. package/dist/likec4diagram/useLayoutConstraints.js +64 -61
  36. package/dist/node_modules/.pnpm/mnemonist@0.40.3_patch_hash_5c12abb43fcff6fd81e53021b89075d53249640d165a2556cc1e58d71201a13a/node_modules/mnemonist/set.js +369 -0
  37. package/dist/overlays/Overlays.js +5 -3
  38. package/dist/overlays/element-details/actor.d.ts +2769 -173
  39. package/dist/overlays/overlay/Overlay.css.d.ts +26 -2
  40. package/dist/overlays/overlay/Overlay.css.js +83 -16
  41. package/dist/overlays/overlay/Overlay.d.ts +7 -6
  42. package/dist/overlays/overlay/Overlay.js +39 -32
  43. package/dist/overlays/overlaysActor.js +2 -2
  44. package/dist/overlays/relationship-details/RelationshipDetails.js +113 -70
  45. package/dist/overlays/relationship-details/SelectEdge.d.ts +1 -1
  46. package/dist/overlays/relationship-details/SelectEdge.js +15 -9
  47. package/dist/overlays/relationship-details/_types.d.ts +4 -1
  48. package/dist/overlays/relationship-details/actor.d.ts +415 -128
  49. package/dist/overlays/relationship-details/actor.js +162 -53
  50. package/dist/overlays/relationship-details/compute.d.ts +12 -0
  51. package/dist/overlays/relationship-details/compute.js +139 -0
  52. package/dist/overlays/relationship-details/custom/ElementActions.js +27 -5
  53. package/dist/overlays/relationship-details/custom/edgeTypes.js +1 -1
  54. package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +2 -1
  55. package/dist/overlays/relationship-details/hooks.d.ts +336 -6
  56. package/dist/overlays/relationship-details/hooks.js +9 -7
  57. package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +12 -0
  58. package/dist/overlays/relationship-details/layout-to-xyflow.js +149 -0
  59. package/dist/overlays/relationship-details/layout.d.ts +22 -0
  60. package/dist/overlays/relationship-details/layout.js +314 -0
  61. package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +3 -1
  62. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +2 -2
  63. package/dist/overlays/relationships-browser/SelectElement.js +4 -4
  64. package/dist/overlays/relationships-browser/_types.d.ts +2 -0
  65. package/dist/overlays/relationships-browser/actor.d.ts +130 -14
  66. package/dist/overlays/relationships-browser/actor.js +30 -16
  67. package/dist/overlays/relationships-browser/custom/ElementActions.js +5 -3
  68. package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +3 -1
  69. package/dist/overlays/relationships-browser/custom/edgeTypes.js +1 -1
  70. package/dist/overlays/relationships-browser/hooks.d.ts +3 -1
  71. package/dist/overlays/relationships-browser/hooks.js +1 -1
  72. package/dist/overlays/relationships-browser/{-useRelationshipsView.d.ts → layout.d.ts} +2 -0
  73. package/dist/overlays/relationships-browser/{-useRelationshipsView.js → layout.js} +19 -2
  74. package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +1 -1
  75. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +3 -1
  76. package/dist/packages/core/src/compute-view/relationships-view/compute.js +1 -1
  77. package/dist/packages/core/src/model/connection/model/ConnectionModel.js +121 -0
  78. package/dist/packages/core/src/model/connection/model/find.js +39 -0
  79. package/dist/packages/core/src/model/connection/ops.js +7 -0
  80. package/dist/packages/core/src/utils/const.js +3 -0
  81. package/dist/packages/core/src/utils/fqn.js +9 -1
  82. package/dist/packages/core/src/utils/iterable/find.js +21 -0
  83. package/dist/packages/core/src/utils/iterable/some.js +21 -0
  84. package/dist/packages/core/src/utils/set.js +48 -0
  85. package/dist/packages/core/src/utils/string-hash.js +13 -0
  86. package/dist/state/DiagramActorProvider.d.ts +4 -2
  87. package/dist/state/DiagramActorProvider.js +30 -37
  88. package/dist/state/assign.js +2 -2
  89. package/dist/state/diagram-machine.d.ts +1731 -1040
  90. package/dist/state/diagram-machine.js +126 -60
  91. package/dist/state/syncManualLayoutActor.d.ts +1 -1
  92. package/dist/styles.css.js +1 -1
  93. package/package.json +11 -11
  94. package/src/LikeC4Diagram.props.ts +7 -3
  95. package/src/LikeC4Diagram.tsx +2 -8
  96. package/src/StaticLikeC4Diagram.tsx +1 -1
  97. package/src/base/BaseXYFlow.tsx +2 -1
  98. package/src/base/primitives/compound/CompoundNodeContainer.tsx +1 -3
  99. package/src/base/primitives/edge/EdgeLabel.css.ts +1 -4
  100. package/src/base/primitives/edge/EdgeLabelContainer.tsx +1 -1
  101. package/src/base/primitives/edge/EdgePath.tsx +0 -3
  102. package/src/base/primitives/edge/edge.css.ts +2 -0
  103. package/src/base/primitives/element/ElementActionButtons.tsx +6 -7
  104. package/src/base/primitives/element/ElementNodeContainer.css.ts +5 -4
  105. package/src/base/primitives/element/ElementShape.css.ts +1 -12
  106. package/src/base/primitives/element/ElementTitle.css.ts +3 -2
  107. package/src/base/types.ts +2 -7
  108. package/src/base/updateEdges.ts +8 -8
  109. package/src/base/updateNodes.ts +11 -11
  110. package/src/bundle/LikeC4View.props.ts +7 -7
  111. package/src/bundle/LikeC4View.tsx +2 -2
  112. package/src/components/Link.tsx +3 -1
  113. package/src/hooks/useCurrentViewId.ts +4 -2
  114. package/src/hooks/useDiagram.ts +18 -9
  115. package/src/likec4diagram/DiagramXYFlow.tsx +11 -9
  116. package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +39 -48
  117. package/src/likec4diagram/custom/nodes/toolbar/Toolbar.tsx +2 -2
  118. package/src/likec4diagram/custom/nodes/toolbar/styles.css.ts +5 -0
  119. package/src/likec4diagram/ui/controls/LayoutDriftNotification.tsx +8 -4
  120. package/src/likec4diagram/ui/notation/NotationPanel.css.ts +2 -2
  121. package/src/likec4diagram/ui/notation/NotationPanel.tsx +8 -6
  122. package/src/likec4diagram/useLayoutConstraints.ts +84 -89
  123. package/src/overlays/Overlays.tsx +5 -3
  124. package/src/overlays/overlay/Overlay.css.ts +83 -15
  125. package/src/overlays/overlay/Overlay.tsx +52 -41
  126. package/src/overlays/overlaysActor.ts +1 -1
  127. package/src/overlays/relationship-details/RelationshipDetails.tsx +131 -68
  128. package/src/overlays/relationship-details/SelectEdge.tsx +19 -12
  129. package/src/overlays/relationship-details/_types.ts +3 -1
  130. package/src/overlays/relationship-details/actor.ts +217 -68
  131. package/src/overlays/relationship-details/compute.ts +186 -0
  132. package/src/overlays/relationship-details/custom/ElementActions.tsx +27 -18
  133. package/src/overlays/relationship-details/custom/edgeTypes.tsx +1 -1
  134. package/src/overlays/relationship-details/hooks.ts +10 -8
  135. package/src/overlays/relationship-details/layout-to-xyflow.ts +195 -0
  136. package/src/overlays/relationship-details/layout.ts +470 -0
  137. package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +2 -2
  138. package/src/overlays/relationships-browser/SelectElement.tsx +5 -5
  139. package/src/overlays/relationships-browser/_types.ts +2 -0
  140. package/src/overlays/relationships-browser/actor.ts +39 -14
  141. package/src/overlays/relationships-browser/custom/ElementActions.tsx +5 -3
  142. package/src/overlays/relationships-browser/custom/edgeTypes.tsx +1 -1
  143. package/src/overlays/relationships-browser/hooks.ts +2 -2
  144. package/src/overlays/relationships-browser/{-useRelationshipsView.ts → layout.ts} +23 -13
  145. package/src/overlays/relationships-browser/useViewToNodesEdges.ts +3 -1
  146. package/src/state/DiagramActorProvider.tsx +40 -50
  147. package/src/state/assign.ts +2 -2
  148. package/src/state/diagram-machine.ts +151 -75
  149. package/dist/overlays/relationship-details/useLayoutedDetails.d.ts +0 -19
  150. package/dist/overlays/relationship-details/useLayoutedDetails.js +0 -267
  151. package/src/overlays/relationship-details/useLayoutedDetails.ts +0 -376
@@ -1,10 +1,10 @@
1
- import { BBox, DiagramView, EdgeId, Fqn, NodeId, StepEdgeId, ViewChange, ViewId, XYPoint, NonEmptyArray, Point, Color, RelationshipLineType, RelationshipArrowType } from '@likec4/core';
1
+ import { BBox, DiagramView, EdgeId, ElementNotation, Fqn, NodeId, StepEdgeId, ViewChange, ViewId, XYPoint, NonEmptyArray, Point, Color, RelationshipLineType, RelationshipArrowType } from '@likec4/core';
2
2
  import { ReactFlowInstance, useStoreApi } from '@xyflow/react';
3
3
  import { EdgeChange, NodeChange, Rect, Viewport, EdgeMarkerType, HandleType, XYPosition } from '@xyflow/system';
4
4
  import { ActorLogicFrom, ActorRef, AnyEventObject, Snapshot, StateMachine, ActorRefFromLogic, NonReducibleUnknown, EventObject, MetaObject, AnyActorLogic, ConditionalRequired, InputFrom, RequiredLogicInput, IsNotNever, MachineSnapshot, AnyActorRef, StateValue, ActionFunction, CallbackActorLogic, Values, RequiredActorOptions, GetConcreteByKey, CancelAction, StopAction } from 'xstate';
5
5
  import { Base } from '../base/types';
6
6
  import { EnabledFeatures, FeatureName } from '../context/DiagramFeatures';
7
- import { OpenSourceParams } from '../LikeC4Diagram.props';
7
+ import { OpenSourceParams, PaddingWithUnit } from '../LikeC4Diagram.props';
8
8
  import { Types } from '../likec4diagram/types';
9
9
  import { AlignmentMode } from './aligners';
10
10
  import { HotKeyEvent } from './hotkeyActor';
@@ -23,18 +23,22 @@ export interface NavigationHistory {
23
23
  }
24
24
  export interface Input {
25
25
  view: DiagramView;
26
- xynodes: Types.Node[];
27
- xyedges: Types.Edge[];
28
26
  xystore: XYStoreApi;
29
27
  zoomable: boolean;
30
28
  pannable: boolean;
31
- fitViewPadding: number;
29
+ fitViewPadding: PaddingWithUnit;
30
+ nodesSelectable: boolean;
32
31
  }
33
32
  type ToggledFeatures = Partial<EnabledFeatures>;
34
33
  export interface Context extends Input {
34
+ xynodes: Types.Node[];
35
+ xyedges: Types.Edge[];
35
36
  features: EnabledFeatures;
36
37
  toggledFeatures: ToggledFeatures;
37
- initialized: boolean;
38
+ initialized: {
39
+ xydata: boolean;
40
+ xyflow: boolean;
41
+ };
38
42
  viewport: Viewport;
39
43
  viewportChangedManually: boolean;
40
44
  lastOnNavigate: null | {
@@ -57,7 +61,7 @@ export interface Context extends Input {
57
61
  };
58
62
  viewportBeforeFocus: null | Viewport;
59
63
  xyflow: ReactFlowInstance<Types.Node, Types.Edge> | null;
60
- syncLayoutActorRef: ActorRef<Snapshot<unknown>, SyncLayoutEvents, AnyEventObject>;
64
+ syncLayoutActorRef: null | ActorRef<Snapshot<unknown>, SyncLayoutEvents, AnyEventObject>;
61
65
  activeWalkthrough: null | {
62
66
  stepId: StepEdgeId;
63
67
  parallelPrefix: string | null;
@@ -115,7 +119,7 @@ export type Events = HotKeyEvent | {
115
119
  xyedges: Types.Edge[];
116
120
  } | {
117
121
  type: 'update.inputs';
118
- inputs: Partial<Omit<Input, 'view'>>;
122
+ inputs: Partial<Omit<Input, 'view' | 'xystore'>>;
119
123
  } | {
120
124
  type: 'update.features';
121
125
  features: EnabledFeatures;
@@ -131,7 +135,12 @@ export type Events = HotKeyEvent | {
131
135
  fromNode?: NodeId | undefined;
132
136
  } | {
133
137
  type: 'open.relationshipDetails';
134
- edgeId: EdgeId;
138
+ params: {
139
+ edgeId: EdgeId;
140
+ } | {
141
+ source: Fqn;
142
+ target: Fqn;
143
+ };
135
144
  } | {
136
145
  type: 'open.relationshipsBrowser';
137
146
  fqn: Fqn;
@@ -163,6 +172,12 @@ export type Events = HotKeyEvent | {
163
172
  direction: 'next' | 'previous';
164
173
  } | {
165
174
  type: 'walkthrough.end';
175
+ } | {
176
+ type: 'notations.highlight';
177
+ notation: ElementNotation;
178
+ kind?: string;
179
+ } | {
180
+ type: 'notations.unhighlight';
166
181
  } | {
167
182
  type: 'toggle.feature';
168
183
  feature: FeatureName;
@@ -181,7 +196,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
181
196
  }, {
182
197
  type: "same view";
183
198
  params: unknown;
184
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
199
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
185
200
  readonly initial: "idle";
186
201
  readonly context: ({ input }: {
187
202
  spawn: {
@@ -424,7 +439,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
424
439
  }, {
425
440
  type: "same view";
426
441
  params: unknown;
427
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
442
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
428
443
  readonly initial: "idle";
429
444
  readonly context: ({ input }: {
430
445
  spawn: {
@@ -691,17 +706,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
691
706
  edge: Types.Edge;
692
707
  };
693
708
  };
694
- "xyflow:fitDiagram": {
695
- type: "xyflow:fitDiagram";
696
- params: {
697
- duration?: number;
698
- bounds?: BBox;
699
- } | undefined;
700
- };
701
- closeAllOverlays: {
702
- type: "closeAllOverlays";
703
- params: NonReducibleUnknown;
704
- };
705
709
  "trigger:OnChange": {
706
710
  type: "trigger:OnChange";
707
711
  params: {
@@ -714,6 +718,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
714
718
  mode: AlignmentMode;
715
719
  };
716
720
  };
721
+ "notations.highlight": {
722
+ type: "notations.highlight";
723
+ params: {
724
+ notation: ElementNotation;
725
+ kind?: string;
726
+ };
727
+ };
728
+ "xyflow:fitDiagram": {
729
+ type: "xyflow:fitDiagram";
730
+ params: {
731
+ duration?: number;
732
+ bounds?: BBox;
733
+ } | undefined;
734
+ };
735
+ closeAllOverlays: {
736
+ type: "closeAllOverlays";
737
+ params: NonReducibleUnknown;
738
+ };
717
739
  "trigger:NavigateTo": {
718
740
  type: "trigger:NavigateTo";
719
741
  params: {
@@ -761,11 +783,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
761
783
  type: "updateFeatures";
762
784
  params: NonReducibleUnknown;
763
785
  };
786
+ startSyncLayout: {
787
+ type: "startSyncLayout";
788
+ params: NonReducibleUnknown;
789
+ };
764
790
  stopSyncLayout: {
765
791
  type: "stopSyncLayout";
766
792
  params: NonReducibleUnknown;
767
793
  };
768
794
  }>, Values<{
795
+ isReady: {
796
+ type: "isReady";
797
+ params: unknown;
798
+ };
769
799
  "enabled: FitView": {
770
800
  type: "enabled: FitView";
771
801
  params: unknown;
@@ -806,7 +836,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
806
836
  type: "click: node has connections";
807
837
  params: unknown;
808
838
  };
809
- }>, never, "initializing" | "navigating" | {
839
+ }>, never, "isReady" | "initializing" | "navigating" | {
810
840
  ready: "idle" | "walkthrough" | "focused";
811
841
  }, string, Input, NonReducibleUnknown, EventObject, MetaObject, {
812
842
  readonly initial: "initializing";
@@ -822,7 +852,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
822
852
  }, {
823
853
  type: "same view";
824
854
  params: unknown;
825
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
855
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
826
856
  readonly initial: "idle";
827
857
  readonly context: ({ input }: {
828
858
  spawn: {
@@ -919,7 +949,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
919
949
  }, {
920
950
  type: "same view";
921
951
  params: unknown;
922
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
952
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
923
953
  readonly initial: "idle";
924
954
  readonly context: ({ input }: {
925
955
  spawn: {
@@ -1342,7 +1372,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1342
1372
  }, {
1343
1373
  type: "same view";
1344
1374
  params: unknown;
1345
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1375
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1346
1376
  readonly initial: "idle";
1347
1377
  readonly context: ({ input }: {
1348
1378
  spawn: {
@@ -1595,6 +1625,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1595
1625
  input: Input;
1596
1626
  self: ActorRef< MachineSnapshot<Context, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
1597
1627
  }) => {
1628
+ xyedges: never[];
1629
+ xynodes: never[];
1598
1630
  features: {
1599
1631
  enableControls: boolean;
1600
1632
  enableReadOnly: boolean;
@@ -1614,7 +1646,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1614
1646
  enableVscode: boolean;
1615
1647
  };
1616
1648
  toggledFeatures: Partial<EnabledFeatures>;
1617
- initialized: false;
1649
+ initialized: {
1650
+ xydata: false;
1651
+ xyflow: false;
1652
+ };
1618
1653
  viewportChangedManually: false;
1619
1654
  lastOnNavigate: null;
1620
1655
  lastClickedNode: null;
@@ -1631,114 +1666,20 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1631
1666
  zoom: number;
1632
1667
  };
1633
1668
  xyflow: null;
1634
- syncLayoutActorRef: ActorRefFromLogic<StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
1635
- type: "trigger:OnChange";
1636
- params: {
1637
- change: ViewChange;
1638
- };
1639
- }, {
1640
- type: "same view";
1641
- params: unknown;
1642
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1643
- readonly initial: "idle";
1644
- readonly context: ({ input }: {
1645
- spawn: {
1646
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
1647
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
1648
- id?: never;
1649
- systemId?: string;
1650
- input?: InputFrom<TLogic>;
1651
- syncSnapshot?: boolean;
1652
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
1653
- };
1654
- input: Input;
1655
- self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
1656
- }) => {
1657
- parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
1658
- viewId: ViewId;
1659
- };
1660
- readonly states: {
1661
- readonly idle: {
1662
- readonly tags: "ready";
1663
- readonly on: {
1664
- readonly sync: {
1665
- readonly target: "pending";
1666
- };
1667
- };
1668
- };
1669
- readonly paused: {
1670
- readonly tags: "pending";
1671
- readonly on: {
1672
- readonly sync: {
1673
- readonly target: "pending";
1674
- };
1675
- };
1676
- };
1677
- readonly pending: {
1678
- readonly tags: "pending";
1679
- readonly on: {
1680
- readonly sync: {
1681
- readonly target: "pending";
1682
- readonly reenter: true;
1683
- };
1684
- readonly cancel: {
1685
- readonly target: "paused";
1686
- };
1687
- };
1688
- readonly after: {
1689
- readonly timeout: readonly [{
1690
- readonly guard: "same view";
1691
- readonly actions: {
1692
- readonly type: "trigger:OnChange";
1693
- readonly params: ({ context }: {
1694
- context: Readonly< Input>;
1695
- event: SyncLayoutEvents;
1696
- }) => {
1697
- change: ViewChange.SaveManualLayout;
1698
- };
1699
- };
1700
- readonly target: "synced";
1701
- }, {
1702
- readonly target: "stopped";
1703
- }];
1704
- };
1705
- };
1706
- readonly synced: {
1707
- readonly tags: "ready";
1708
- readonly on: {
1709
- readonly sync: {
1710
- readonly target: "pending";
1711
- };
1712
- };
1713
- };
1714
- readonly stopped: {
1715
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
1716
- readonly type: "final";
1717
- };
1718
- };
1719
- readonly on: {
1720
- readonly synced: {
1721
- readonly target: ".synced";
1722
- };
1723
- readonly stop: {
1724
- readonly target: ".stopped";
1725
- };
1726
- };
1727
- }>>;
1669
+ syncLayoutActorRef: null;
1728
1670
  activeWalkthrough: null;
1729
1671
  view: DiagramView;
1730
- xynodes: Types.Node[];
1731
- xyedges: Types.Edge[];
1732
1672
  xystore: XYStoreApi;
1733
1673
  zoomable: boolean;
1734
1674
  pannable: boolean;
1735
- fitViewPadding: number;
1675
+ fitViewPadding: PaddingWithUnit;
1676
+ nodesSelectable: boolean;
1736
1677
  };
1737
1678
  readonly states: {
1738
1679
  readonly initializing: {
1739
1680
  readonly on: {
1740
1681
  readonly 'xyflow.init': {
1741
- readonly actions: readonly [ ActionFunction<Context, {
1682
+ readonly actions: ActionFunction<Context, {
1742
1683
  type: "xyflow.init";
1743
1684
  instance: ReactFlowInstance<Types.Node, Types.Edge>;
1744
1685
  }, Events, undefined, Values<{
@@ -1752,7 +1693,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1752
1693
  }, {
1753
1694
  type: "same view";
1754
1695
  params: unknown;
1755
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1696
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1756
1697
  readonly initial: "idle";
1757
1698
  readonly context: ({ input }: {
1758
1699
  spawn: {
@@ -1994,9 +1935,15 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1994
1935
  }>;
1995
1936
  id: "overlays";
1996
1937
  };
1997
- }>, never, never, never, never>, ActionFunction<Context, {
1998
- type: "xyflow.init";
1999
- instance: ReactFlowInstance<Types.Node, Types.Edge>;
1938
+ }>, never, never, never, never>;
1939
+ readonly target: "isReady";
1940
+ };
1941
+ readonly 'update.view': {
1942
+ readonly actions: ActionFunction<Context, {
1943
+ type: "update.view";
1944
+ view: DiagramView;
1945
+ xynodes: Types.Node[];
1946
+ xyedges: Types.Edge[];
2000
1947
  }, Events, undefined, Values<{
2001
1948
  syncManualLayoutActorLogic: {
2002
1949
  src: "syncManualLayoutActorLogic";
@@ -2008,7 +1955,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2008
1955
  }, {
2009
1956
  type: "same view";
2010
1957
  params: unknown;
2011
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
1958
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2012
1959
  readonly initial: "idle";
2013
1960
  readonly context: ({ input }: {
2014
1961
  spawn: {
@@ -2250,150 +2197,277 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2250
2197
  }>;
2251
2198
  id: "overlays";
2252
2199
  };
2253
- }>, Values<{
2254
- onNodeMouseEnter: {
2255
- type: "onNodeMouseEnter";
2200
+ }>, never, never, never, never>;
2201
+ readonly target: "isReady";
2202
+ };
2203
+ };
2204
+ };
2205
+ readonly isReady: {
2206
+ readonly always: readonly [{
2207
+ readonly guard: "isReady";
2208
+ readonly actions: readonly [{
2209
+ readonly type: "xyflow:fitDiagram";
2210
+ readonly params: {
2211
+ readonly duration: 0;
2212
+ };
2213
+ }, "startSyncLayout", ActionFunction<Context, Events, Events, undefined, Values<{
2214
+ syncManualLayoutActorLogic: {
2215
+ src: "syncManualLayoutActorLogic";
2216
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
2217
+ type: "trigger:OnChange";
2256
2218
  params: {
2257
- node: Types.Node;
2219
+ change: ViewChange;
2258
2220
  };
2259
- };
2260
- onNodeMouseLeave: {
2261
- type: "onNodeMouseLeave";
2262
- params: {
2263
- node: Types.Node;
2221
+ }, {
2222
+ type: "same view";
2223
+ params: unknown;
2224
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2225
+ readonly initial: "idle";
2226
+ readonly context: ({ input }: {
2227
+ spawn: {
2228
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
2229
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
2230
+ id?: never;
2231
+ systemId?: string;
2232
+ input?: InputFrom<TLogic>;
2233
+ syncSnapshot?: boolean;
2234
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
2235
+ };
2236
+ input: Input;
2237
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
2238
+ }) => {
2239
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
2240
+ viewId: ViewId;
2264
2241
  };
2265
- };
2266
- onEdgeMouseEnter: {
2267
- type: "onEdgeMouseEnter";
2268
- params: {
2269
- edge: Types.Edge;
2242
+ readonly states: {
2243
+ readonly idle: {
2244
+ readonly tags: "ready";
2245
+ readonly on: {
2246
+ readonly sync: {
2247
+ readonly target: "pending";
2248
+ };
2249
+ };
2250
+ };
2251
+ readonly paused: {
2252
+ readonly tags: "pending";
2253
+ readonly on: {
2254
+ readonly sync: {
2255
+ readonly target: "pending";
2256
+ };
2257
+ };
2258
+ };
2259
+ readonly pending: {
2260
+ readonly tags: "pending";
2261
+ readonly on: {
2262
+ readonly sync: {
2263
+ readonly target: "pending";
2264
+ readonly reenter: true;
2265
+ };
2266
+ readonly cancel: {
2267
+ readonly target: "paused";
2268
+ };
2269
+ };
2270
+ readonly after: {
2271
+ readonly timeout: readonly [{
2272
+ readonly guard: "same view";
2273
+ readonly actions: {
2274
+ readonly type: "trigger:OnChange";
2275
+ readonly params: ({ context }: {
2276
+ context: Readonly< Input>;
2277
+ event: SyncLayoutEvents;
2278
+ }) => {
2279
+ change: ViewChange.SaveManualLayout;
2280
+ };
2281
+ };
2282
+ readonly target: "synced";
2283
+ }, {
2284
+ readonly target: "stopped";
2285
+ }];
2286
+ };
2287
+ };
2288
+ readonly synced: {
2289
+ readonly tags: "ready";
2290
+ readonly on: {
2291
+ readonly sync: {
2292
+ readonly target: "pending";
2293
+ };
2294
+ };
2295
+ };
2296
+ readonly stopped: {
2297
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
2298
+ readonly type: "final";
2299
+ };
2270
2300
  };
2271
- };
2272
- onEdgeMouseLeave: {
2273
- type: "onEdgeMouseLeave";
2274
- params: {
2275
- edge: Types.Edge;
2301
+ readonly on: {
2302
+ readonly synced: {
2303
+ readonly target: ".synced";
2304
+ };
2305
+ readonly stop: {
2306
+ readonly target: ".stopped";
2307
+ };
2276
2308
  };
2277
- };
2278
- "xyflow:fitDiagram": {
2279
- type: "xyflow:fitDiagram";
2280
- params: {
2281
- duration?: number;
2282
- bounds?: BBox;
2283
- } | undefined;
2284
- };
2285
- closeAllOverlays: {
2286
- type: "closeAllOverlays";
2287
- params: NonReducibleUnknown;
2288
- };
2289
- "trigger:OnChange": {
2290
- type: "trigger:OnChange";
2291
- params: {
2292
- change: ViewChange;
2309
+ }>;
2310
+ id: "syncLayout";
2311
+ };
2312
+ hotkeyActorLogic: {
2313
+ src: "hotkeyActorLogic";
2314
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
2315
+ id: "hotkey";
2316
+ };
2317
+ overlaysActorLogic: {
2318
+ src: "overlaysActorLogic";
2319
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
2320
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
2321
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
2322
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
2323
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
2324
+ }, Values<{
2325
+ elementDetails: {
2326
+ src: "elementDetails";
2327
+ logic: ElementDetailsLogic;
2328
+ id: `elementDetails-${number}`;
2329
+ };
2330
+ relationshipsBrowser: {
2331
+ src: "relationshipsBrowser";
2332
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
2333
+ id: `relationshipsBrowser-${number}`;
2334
+ };
2335
+ relationshipDetails: {
2336
+ src: "relationshipDetails";
2337
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
2338
+ id: `relationshipDetails-${number}`;
2339
+ };
2340
+ hotkey: {
2341
+ src: "hotkey";
2342
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
2343
+ id: "hotkey";
2344
+ };
2345
+ }>, Values<{
2346
+ closeLastOverlay: {
2347
+ type: "closeLastOverlay";
2348
+ params: NonReducibleUnknown;
2349
+ };
2350
+ closeSpecificOverlay: {
2351
+ type: "closeSpecificOverlay";
2352
+ params: {
2353
+ actorId: string;
2354
+ };
2293
2355
  };
2294
- };
2295
- "layout.align": {
2296
- type: "layout.align";
2297
- params: {
2298
- mode: AlignmentMode;
2356
+ closeAllOverlays: {
2357
+ type: "closeAllOverlays";
2358
+ params: NonReducibleUnknown;
2299
2359
  };
2300
- };
2301
- "trigger:NavigateTo": {
2302
- type: "trigger:NavigateTo";
2303
- params: {
2304
- viewId: ViewId;
2360
+ openElementDetails: {
2361
+ type: "openElementDetails";
2362
+ params: NonReducibleUnknown;
2305
2363
  };
2306
- };
2307
- "trigger:OpenSource": {
2308
- type: "trigger:OpenSource";
2309
- params: OpenSourceParams;
2310
- };
2311
- "assign lastClickedNode": {
2312
- type: "assign lastClickedNode";
2313
- params: NonReducibleUnknown;
2314
- };
2315
- "open source of focused or last clicked node": {
2316
- type: "open source of focused or last clicked node";
2317
- params: NonReducibleUnknown;
2318
- };
2319
- "xyflow:fitFocusedBounds": {
2320
- type: "xyflow:fitFocusedBounds";
2321
- params: unknown;
2322
- };
2323
- "xyflow:setViewportCenter": {
2324
- type: "xyflow:setViewportCenter";
2325
- params: {
2326
- x: number;
2327
- y: number;
2364
+ openRelationshipDetails: {
2365
+ type: "openRelationshipDetails";
2366
+ params: NonReducibleUnknown;
2328
2367
  };
2329
- };
2330
- "xyflow:setViewport": {
2331
- type: "xyflow:setViewport";
2332
- params: {
2333
- viewport: Viewport;
2334
- duration?: number;
2368
+ openRelationshipsBrowser: {
2369
+ type: "openRelationshipsBrowser";
2370
+ params: NonReducibleUnknown;
2335
2371
  };
2336
- };
2337
- "xyflow:alignNodeFromToAfterNavigate": {
2338
- type: "xyflow:alignNodeFromToAfterNavigate";
2339
- params: {
2340
- fromNode: NodeId;
2341
- toPosition: XYPoint;
2372
+ listenToEsc: {
2373
+ type: "listenToEsc";
2374
+ params: NonReducibleUnknown;
2342
2375
  };
2343
- };
2344
- updateFeatures: {
2345
- type: "updateFeatures";
2346
- params: NonReducibleUnknown;
2347
- };
2348
- stopSyncLayout: {
2349
- type: "stopSyncLayout";
2350
- params: NonReducibleUnknown;
2351
- };
2352
- }>, Values<{
2353
- "enabled: FitView": {
2354
- type: "enabled: FitView";
2355
- params: unknown;
2356
- };
2357
- "enabled: FocusMode": {
2358
- type: "enabled: FocusMode";
2359
- params: unknown;
2360
- };
2361
- "enabled: Readonly": {
2362
- type: "enabled: Readonly";
2363
- params: unknown;
2364
- };
2365
- "not readonly": {
2366
- type: "not readonly";
2367
- params: unknown;
2368
- };
2369
- "is dynamic view": {
2370
- type: "is dynamic view";
2371
- params: unknown;
2372
- };
2373
- "is another view": {
2374
- type: "is another view";
2375
- params: unknown;
2376
- };
2377
- "click: selected node": {
2378
- type: "click: selected node";
2379
- params: unknown;
2380
- };
2381
- "click: same node": {
2382
- type: "click: same node";
2383
- params: unknown;
2384
- };
2385
- "click: focused node": {
2386
- type: "click: focused node";
2387
- params: unknown;
2388
- };
2389
- "click: node has connections": {
2390
- type: "click: node has connections";
2391
- params: unknown;
2392
- };
2393
- }>, never, EventObject>];
2394
- readonly target: "ready";
2395
- };
2396
- };
2376
+ stopListeningToEsc: {
2377
+ type: "stopListeningToEsc";
2378
+ params: NonReducibleUnknown;
2379
+ };
2380
+ }>, Values<{
2381
+ "has overlays?": {
2382
+ type: "has overlays?";
2383
+ params: unknown;
2384
+ };
2385
+ "close specific overlay?": {
2386
+ type: "close specific overlay?";
2387
+ params: unknown;
2388
+ };
2389
+ "last: is relationshipDetails?": {
2390
+ type: "last: is relationshipDetails?";
2391
+ params: unknown;
2392
+ };
2393
+ "last: is relationshipsBrowser?": {
2394
+ type: "last: is relationshipsBrowser?";
2395
+ params: unknown;
2396
+ };
2397
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
2398
+ readonly id: "overlays";
2399
+ readonly context: () => {
2400
+ seq: number;
2401
+ overlays: never[];
2402
+ };
2403
+ readonly initial: "idle";
2404
+ readonly on: {
2405
+ readonly 'open.elementDetails': {
2406
+ readonly actions: "openElementDetails";
2407
+ readonly target: ".active";
2408
+ readonly reenter: false;
2409
+ };
2410
+ readonly 'open.relationshipDetails': {
2411
+ readonly actions: "openRelationshipDetails";
2412
+ readonly target: ".active";
2413
+ readonly reenter: false;
2414
+ };
2415
+ readonly 'open.relationshipsBrowser': {
2416
+ readonly actions: "openRelationshipsBrowser";
2417
+ readonly target: ".active";
2418
+ readonly reenter: false;
2419
+ };
2420
+ };
2421
+ readonly states: {
2422
+ readonly idle: {};
2423
+ readonly active: {
2424
+ readonly entry: "listenToEsc";
2425
+ readonly exit: "stopListeningToEsc";
2426
+ readonly on: {
2427
+ readonly close: readonly [{
2428
+ readonly guard: "close specific overlay?";
2429
+ readonly actions: {
2430
+ readonly type: "closeSpecificOverlay";
2431
+ readonly params: ({ event }: {
2432
+ context: OverlaysContext;
2433
+ event: {
2434
+ type: "close";
2435
+ actorId?: string | undefined;
2436
+ };
2437
+ }) => {
2438
+ actorId: string;
2439
+ };
2440
+ };
2441
+ readonly target: "closing";
2442
+ }, {
2443
+ readonly actions: "closeLastOverlay";
2444
+ readonly target: "closing";
2445
+ }];
2446
+ readonly 'close.all': {
2447
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
2448
+ readonly target: "idle";
2449
+ };
2450
+ };
2451
+ };
2452
+ readonly closing: {
2453
+ readonly always: readonly [{
2454
+ readonly guard: "has overlays?";
2455
+ readonly target: "active";
2456
+ }, {
2457
+ readonly actions: "stopListeningToEsc";
2458
+ readonly target: "idle";
2459
+ }];
2460
+ };
2461
+ };
2462
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
2463
+ }>;
2464
+ id: "overlays";
2465
+ };
2466
+ }>, never, never, never, never>];
2467
+ readonly target: "ready";
2468
+ }, {
2469
+ readonly target: "initializing";
2470
+ }];
2397
2471
  };
2398
2472
  readonly ready: {
2399
2473
  readonly initial: "idle";
@@ -2415,7 +2489,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2415
2489
  }, {
2416
2490
  type: "same view";
2417
2491
  params: unknown;
2418
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2492
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2419
2493
  readonly initial: "idle";
2420
2494
  readonly context: ({ input }: {
2421
2495
  spawn: {
@@ -2673,7 +2747,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2673
2747
  }, {
2674
2748
  type: "same view";
2675
2749
  params: unknown;
2676
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2750
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2677
2751
  readonly initial: "idle";
2678
2752
  readonly context: ({ input }: {
2679
2753
  spawn: {
@@ -2931,7 +3005,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2931
3005
  }, {
2932
3006
  type: "same view";
2933
3007
  params: unknown;
2934
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
3008
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2935
3009
  readonly initial: "idle";
2936
3010
  readonly context: ({ input }: {
2937
3011
  spawn: {
@@ -3207,7 +3281,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3207
3281
  }, {
3208
3282
  type: "same view";
3209
3283
  params: unknown;
3210
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
3284
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
3211
3285
  readonly initial: "idle";
3212
3286
  readonly context: ({ input }: {
3213
3287
  spawn: {
@@ -3479,7 +3553,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3479
3553
  readonly 'open.relationshipDetails': {
3480
3554
  readonly actions: ActionFunction<Context, {
3481
3555
  type: "open.relationshipDetails";
3482
- edgeId: EdgeId;
3556
+ params: {
3557
+ edgeId: EdgeId;
3558
+ } | {
3559
+ source: Fqn;
3560
+ target: Fqn;
3561
+ };
3483
3562
  }, Events, undefined, never, never, never, never, never>;
3484
3563
  };
3485
3564
  readonly 'open.source': {
@@ -3515,7 +3594,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3515
3594
  }, {
3516
3595
  type: "same view";
3517
3596
  params: unknown;
3518
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
3597
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
3519
3598
  readonly initial: "idle";
3520
3599
  readonly context: ({ input }: {
3521
3600
  spawn: {
@@ -4003,129 +4082,404 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4003
4082
  };
4004
4083
  };
4005
4084
  };
4006
- readonly 'saveManualLayout.*': {
4007
- readonly guard: "not readonly";
4008
- readonly actions: ActionFunction<Context, {
4009
- type: "saveManualLayout.schedule";
4010
- } | {
4011
- type: "saveManualLayout.cancel";
4012
- }, Events, undefined, never, never, never, never, never>;
4085
+ readonly 'notations.highlight': {
4086
+ readonly actions: {
4087
+ readonly type: "notations.highlight";
4088
+ readonly params: (data: {
4089
+ context: Context;
4090
+ event: {
4091
+ type: "notations.highlight";
4092
+ notation: ElementNotation;
4093
+ kind?: string;
4094
+ };
4095
+ }) => {
4096
+ type: "notations.highlight";
4097
+ notation: ElementNotation;
4098
+ kind?: string;
4099
+ };
4100
+ };
4013
4101
  };
4014
- };
4015
- readonly exit: readonly [ CancelAction<Context, Events, undefined, Events>];
4016
- readonly states: {
4017
- readonly idle: {
4018
- readonly id: "idle";
4019
- readonly on: {
4020
- readonly 'xyflow.nodeClick': readonly [{
4021
- readonly guard: any;
4022
- readonly actions: readonly [ ActionFunction<Context, {
4023
- type: "xyflow.nodeClick";
4024
- node: Types.Node;
4025
- }, Events, undefined, Values<{
4026
- syncManualLayoutActorLogic: {
4027
- src: "syncManualLayoutActorLogic";
4028
- logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
4029
- type: "trigger:OnChange";
4030
- params: {
4031
- change: ViewChange;
4032
- };
4033
- }, {
4034
- type: "same view";
4035
- params: unknown;
4036
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4037
- readonly initial: "idle";
4038
- readonly context: ({ input }: {
4039
- spawn: {
4040
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
4041
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
4042
- id?: never;
4043
- systemId?: string;
4044
- input?: InputFrom<TLogic>;
4045
- syncSnapshot?: boolean;
4046
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
4102
+ readonly 'notations.unhighlight': {
4103
+ readonly actions: ActionFunction<Context, {
4104
+ type: "notations.unhighlight";
4105
+ }, Events, undefined, Values<{
4106
+ syncManualLayoutActorLogic: {
4107
+ src: "syncManualLayoutActorLogic";
4108
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
4109
+ type: "trigger:OnChange";
4110
+ params: {
4111
+ change: ViewChange;
4112
+ };
4113
+ }, {
4114
+ type: "same view";
4115
+ params: unknown;
4116
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4117
+ readonly initial: "idle";
4118
+ readonly context: ({ input }: {
4119
+ spawn: {
4120
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
4121
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
4122
+ id?: never;
4123
+ systemId?: string;
4124
+ input?: InputFrom<TLogic>;
4125
+ syncSnapshot?: boolean;
4126
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
4127
+ };
4128
+ input: Input;
4129
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
4130
+ }) => {
4131
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
4132
+ viewId: ViewId;
4133
+ };
4134
+ readonly states: {
4135
+ readonly idle: {
4136
+ readonly tags: "ready";
4137
+ readonly on: {
4138
+ readonly sync: {
4139
+ readonly target: "pending";
4047
4140
  };
4048
- input: Input;
4049
- self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
4050
- }) => {
4051
- parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
4052
- viewId: ViewId;
4053
4141
  };
4054
- readonly states: {
4055
- readonly idle: {
4056
- readonly tags: "ready";
4057
- readonly on: {
4058
- readonly sync: {
4059
- readonly target: "pending";
4060
- };
4061
- };
4062
- };
4063
- readonly paused: {
4064
- readonly tags: "pending";
4065
- readonly on: {
4066
- readonly sync: {
4067
- readonly target: "pending";
4068
- };
4069
- };
4070
- };
4071
- readonly pending: {
4072
- readonly tags: "pending";
4073
- readonly on: {
4074
- readonly sync: {
4075
- readonly target: "pending";
4076
- readonly reenter: true;
4077
- };
4078
- readonly cancel: {
4079
- readonly target: "paused";
4080
- };
4081
- };
4082
- readonly after: {
4083
- readonly timeout: readonly [{
4084
- readonly guard: "same view";
4085
- readonly actions: {
4086
- readonly type: "trigger:OnChange";
4087
- readonly params: ({ context }: {
4088
- context: Readonly< Input>;
4089
- event: SyncLayoutEvents;
4090
- }) => {
4091
- change: ViewChange.SaveManualLayout;
4092
- };
4093
- };
4094
- readonly target: "synced";
4095
- }, {
4096
- readonly target: "stopped";
4097
- }];
4098
- };
4099
- };
4100
- readonly synced: {
4101
- readonly tags: "ready";
4102
- readonly on: {
4103
- readonly sync: {
4104
- readonly target: "pending";
4105
- };
4106
- };
4107
- };
4108
- readonly stopped: {
4109
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
4110
- readonly type: "final";
4142
+ };
4143
+ readonly paused: {
4144
+ readonly tags: "pending";
4145
+ readonly on: {
4146
+ readonly sync: {
4147
+ readonly target: "pending";
4111
4148
  };
4112
4149
  };
4150
+ };
4151
+ readonly pending: {
4152
+ readonly tags: "pending";
4113
4153
  readonly on: {
4114
- readonly synced: {
4115
- readonly target: ".synced";
4154
+ readonly sync: {
4155
+ readonly target: "pending";
4156
+ readonly reenter: true;
4116
4157
  };
4117
- readonly stop: {
4118
- readonly target: ".stopped";
4158
+ readonly cancel: {
4159
+ readonly target: "paused";
4119
4160
  };
4120
4161
  };
4121
- }>;
4122
- id: "syncLayout";
4123
- };
4124
- hotkeyActorLogic: {
4125
- src: "hotkeyActorLogic";
4126
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
4127
- id: "hotkey";
4128
- };
4162
+ readonly after: {
4163
+ readonly timeout: readonly [{
4164
+ readonly guard: "same view";
4165
+ readonly actions: {
4166
+ readonly type: "trigger:OnChange";
4167
+ readonly params: ({ context }: {
4168
+ context: Readonly< Input>;
4169
+ event: SyncLayoutEvents;
4170
+ }) => {
4171
+ change: ViewChange.SaveManualLayout;
4172
+ };
4173
+ };
4174
+ readonly target: "synced";
4175
+ }, {
4176
+ readonly target: "stopped";
4177
+ }];
4178
+ };
4179
+ };
4180
+ readonly synced: {
4181
+ readonly tags: "ready";
4182
+ readonly on: {
4183
+ readonly sync: {
4184
+ readonly target: "pending";
4185
+ };
4186
+ };
4187
+ };
4188
+ readonly stopped: {
4189
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
4190
+ readonly type: "final";
4191
+ };
4192
+ };
4193
+ readonly on: {
4194
+ readonly synced: {
4195
+ readonly target: ".synced";
4196
+ };
4197
+ readonly stop: {
4198
+ readonly target: ".stopped";
4199
+ };
4200
+ };
4201
+ }>;
4202
+ id: "syncLayout";
4203
+ };
4204
+ hotkeyActorLogic: {
4205
+ src: "hotkeyActorLogic";
4206
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
4207
+ id: "hotkey";
4208
+ };
4209
+ overlaysActorLogic: {
4210
+ src: "overlaysActorLogic";
4211
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
4212
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
4213
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
4214
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
4215
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
4216
+ }, Values<{
4217
+ elementDetails: {
4218
+ src: "elementDetails";
4219
+ logic: ElementDetailsLogic;
4220
+ id: `elementDetails-${number}`;
4221
+ };
4222
+ relationshipsBrowser: {
4223
+ src: "relationshipsBrowser";
4224
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
4225
+ id: `relationshipsBrowser-${number}`;
4226
+ };
4227
+ relationshipDetails: {
4228
+ src: "relationshipDetails";
4229
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
4230
+ id: `relationshipDetails-${number}`;
4231
+ };
4232
+ hotkey: {
4233
+ src: "hotkey";
4234
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
4235
+ id: "hotkey";
4236
+ };
4237
+ }>, Values<{
4238
+ closeLastOverlay: {
4239
+ type: "closeLastOverlay";
4240
+ params: NonReducibleUnknown;
4241
+ };
4242
+ closeSpecificOverlay: {
4243
+ type: "closeSpecificOverlay";
4244
+ params: {
4245
+ actorId: string;
4246
+ };
4247
+ };
4248
+ closeAllOverlays: {
4249
+ type: "closeAllOverlays";
4250
+ params: NonReducibleUnknown;
4251
+ };
4252
+ openElementDetails: {
4253
+ type: "openElementDetails";
4254
+ params: NonReducibleUnknown;
4255
+ };
4256
+ openRelationshipDetails: {
4257
+ type: "openRelationshipDetails";
4258
+ params: NonReducibleUnknown;
4259
+ };
4260
+ openRelationshipsBrowser: {
4261
+ type: "openRelationshipsBrowser";
4262
+ params: NonReducibleUnknown;
4263
+ };
4264
+ listenToEsc: {
4265
+ type: "listenToEsc";
4266
+ params: NonReducibleUnknown;
4267
+ };
4268
+ stopListeningToEsc: {
4269
+ type: "stopListeningToEsc";
4270
+ params: NonReducibleUnknown;
4271
+ };
4272
+ }>, Values<{
4273
+ "has overlays?": {
4274
+ type: "has overlays?";
4275
+ params: unknown;
4276
+ };
4277
+ "close specific overlay?": {
4278
+ type: "close specific overlay?";
4279
+ params: unknown;
4280
+ };
4281
+ "last: is relationshipDetails?": {
4282
+ type: "last: is relationshipDetails?";
4283
+ params: unknown;
4284
+ };
4285
+ "last: is relationshipsBrowser?": {
4286
+ type: "last: is relationshipsBrowser?";
4287
+ params: unknown;
4288
+ };
4289
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
4290
+ readonly id: "overlays";
4291
+ readonly context: () => {
4292
+ seq: number;
4293
+ overlays: never[];
4294
+ };
4295
+ readonly initial: "idle";
4296
+ readonly on: {
4297
+ readonly 'open.elementDetails': {
4298
+ readonly actions: "openElementDetails";
4299
+ readonly target: ".active";
4300
+ readonly reenter: false;
4301
+ };
4302
+ readonly 'open.relationshipDetails': {
4303
+ readonly actions: "openRelationshipDetails";
4304
+ readonly target: ".active";
4305
+ readonly reenter: false;
4306
+ };
4307
+ readonly 'open.relationshipsBrowser': {
4308
+ readonly actions: "openRelationshipsBrowser";
4309
+ readonly target: ".active";
4310
+ readonly reenter: false;
4311
+ };
4312
+ };
4313
+ readonly states: {
4314
+ readonly idle: {};
4315
+ readonly active: {
4316
+ readonly entry: "listenToEsc";
4317
+ readonly exit: "stopListeningToEsc";
4318
+ readonly on: {
4319
+ readonly close: readonly [{
4320
+ readonly guard: "close specific overlay?";
4321
+ readonly actions: {
4322
+ readonly type: "closeSpecificOverlay";
4323
+ readonly params: ({ event }: {
4324
+ context: OverlaysContext;
4325
+ event: {
4326
+ type: "close";
4327
+ actorId?: string | undefined;
4328
+ };
4329
+ }) => {
4330
+ actorId: string;
4331
+ };
4332
+ };
4333
+ readonly target: "closing";
4334
+ }, {
4335
+ readonly actions: "closeLastOverlay";
4336
+ readonly target: "closing";
4337
+ }];
4338
+ readonly 'close.all': {
4339
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
4340
+ readonly target: "idle";
4341
+ };
4342
+ };
4343
+ };
4344
+ readonly closing: {
4345
+ readonly always: readonly [{
4346
+ readonly guard: "has overlays?";
4347
+ readonly target: "active";
4348
+ }, {
4349
+ readonly actions: "stopListeningToEsc";
4350
+ readonly target: "idle";
4351
+ }];
4352
+ };
4353
+ };
4354
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
4355
+ }>;
4356
+ id: "overlays";
4357
+ };
4358
+ }>, never, never, never, never>;
4359
+ };
4360
+ readonly 'saveManualLayout.*': {
4361
+ readonly guard: "not readonly";
4362
+ readonly actions: ActionFunction<Context, {
4363
+ type: "saveManualLayout.schedule";
4364
+ } | {
4365
+ type: "saveManualLayout.cancel";
4366
+ }, Events, undefined, never, never, never, never, never>;
4367
+ };
4368
+ };
4369
+ readonly exit: readonly [ CancelAction<Context, Events, undefined, Events>];
4370
+ readonly states: {
4371
+ readonly idle: {
4372
+ readonly id: "idle";
4373
+ readonly on: {
4374
+ readonly 'xyflow.nodeClick': readonly [{
4375
+ readonly guard: any;
4376
+ readonly actions: readonly [ ActionFunction<Context, {
4377
+ type: "xyflow.nodeClick";
4378
+ node: Types.Node;
4379
+ }, Events, undefined, Values<{
4380
+ syncManualLayoutActorLogic: {
4381
+ src: "syncManualLayoutActorLogic";
4382
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
4383
+ type: "trigger:OnChange";
4384
+ params: {
4385
+ change: ViewChange;
4386
+ };
4387
+ }, {
4388
+ type: "same view";
4389
+ params: unknown;
4390
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4391
+ readonly initial: "idle";
4392
+ readonly context: ({ input }: {
4393
+ spawn: {
4394
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
4395
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
4396
+ id?: never;
4397
+ systemId?: string;
4398
+ input?: InputFrom<TLogic>;
4399
+ syncSnapshot?: boolean;
4400
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
4401
+ };
4402
+ input: Input;
4403
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
4404
+ }) => {
4405
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
4406
+ viewId: ViewId;
4407
+ };
4408
+ readonly states: {
4409
+ readonly idle: {
4410
+ readonly tags: "ready";
4411
+ readonly on: {
4412
+ readonly sync: {
4413
+ readonly target: "pending";
4414
+ };
4415
+ };
4416
+ };
4417
+ readonly paused: {
4418
+ readonly tags: "pending";
4419
+ readonly on: {
4420
+ readonly sync: {
4421
+ readonly target: "pending";
4422
+ };
4423
+ };
4424
+ };
4425
+ readonly pending: {
4426
+ readonly tags: "pending";
4427
+ readonly on: {
4428
+ readonly sync: {
4429
+ readonly target: "pending";
4430
+ readonly reenter: true;
4431
+ };
4432
+ readonly cancel: {
4433
+ readonly target: "paused";
4434
+ };
4435
+ };
4436
+ readonly after: {
4437
+ readonly timeout: readonly [{
4438
+ readonly guard: "same view";
4439
+ readonly actions: {
4440
+ readonly type: "trigger:OnChange";
4441
+ readonly params: ({ context }: {
4442
+ context: Readonly< Input>;
4443
+ event: SyncLayoutEvents;
4444
+ }) => {
4445
+ change: ViewChange.SaveManualLayout;
4446
+ };
4447
+ };
4448
+ readonly target: "synced";
4449
+ }, {
4450
+ readonly target: "stopped";
4451
+ }];
4452
+ };
4453
+ };
4454
+ readonly synced: {
4455
+ readonly tags: "ready";
4456
+ readonly on: {
4457
+ readonly sync: {
4458
+ readonly target: "pending";
4459
+ };
4460
+ };
4461
+ };
4462
+ readonly stopped: {
4463
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
4464
+ readonly type: "final";
4465
+ };
4466
+ };
4467
+ readonly on: {
4468
+ readonly synced: {
4469
+ readonly target: ".synced";
4470
+ };
4471
+ readonly stop: {
4472
+ readonly target: ".stopped";
4473
+ };
4474
+ };
4475
+ }>;
4476
+ id: "syncLayout";
4477
+ };
4478
+ hotkeyActorLogic: {
4479
+ src: "hotkeyActorLogic";
4480
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
4481
+ id: "hotkey";
4482
+ };
4129
4483
  overlaysActorLogic: {
4130
4484
  src: "overlaysActorLogic";
4131
4485
  logic: StateMachine<OverlaysContext, OverlayActorEvent, {
@@ -4294,7 +4648,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4294
4648
  }, {
4295
4649
  type: "same view";
4296
4650
  params: unknown;
4297
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4651
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4298
4652
  readonly initial: "idle";
4299
4653
  readonly context: ({ input }: {
4300
4654
  spawn: {
@@ -4569,7 +4923,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4569
4923
  }, {
4570
4924
  type: "same view";
4571
4925
  params: unknown;
4572
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4926
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4573
4927
  readonly initial: "idle";
4574
4928
  readonly context: ({ input }: {
4575
4929
  spawn: {
@@ -4828,7 +5182,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4828
5182
  }, {
4829
5183
  type: "same view";
4830
5184
  params: unknown;
4831
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5185
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4832
5186
  readonly initial: "idle";
4833
5187
  readonly context: ({ input }: {
4834
5188
  spawn: {
@@ -5081,7 +5435,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5081
5435
  }, {
5082
5436
  type: "same view";
5083
5437
  params: unknown;
5084
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5438
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5085
5439
  readonly initial: "idle";
5086
5440
  readonly context: ({ input }: {
5087
5441
  spawn: {
@@ -5335,7 +5689,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5335
5689
  }, {
5336
5690
  type: "same view";
5337
5691
  params: unknown;
5338
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5692
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5339
5693
  readonly initial: "idle";
5340
5694
  readonly context: ({ input }: {
5341
5695
  spawn: {
@@ -5590,16 +5944,35 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5590
5944
  node: Types.Node;
5591
5945
  };
5592
5946
  };
5593
- onEdgeMouseEnter: {
5594
- type: "onEdgeMouseEnter";
5947
+ onEdgeMouseEnter: {
5948
+ type: "onEdgeMouseEnter";
5949
+ params: {
5950
+ edge: Types.Edge;
5951
+ };
5952
+ };
5953
+ onEdgeMouseLeave: {
5954
+ type: "onEdgeMouseLeave";
5955
+ params: {
5956
+ edge: Types.Edge;
5957
+ };
5958
+ };
5959
+ "trigger:OnChange": {
5960
+ type: "trigger:OnChange";
5961
+ params: {
5962
+ change: ViewChange;
5963
+ };
5964
+ };
5965
+ "layout.align": {
5966
+ type: "layout.align";
5595
5967
  params: {
5596
- edge: Types.Edge;
5968
+ mode: AlignmentMode;
5597
5969
  };
5598
5970
  };
5599
- onEdgeMouseLeave: {
5600
- type: "onEdgeMouseLeave";
5971
+ "notations.highlight": {
5972
+ type: "notations.highlight";
5601
5973
  params: {
5602
- edge: Types.Edge;
5974
+ notation: ElementNotation;
5975
+ kind?: string;
5603
5976
  };
5604
5977
  };
5605
5978
  "xyflow:fitDiagram": {
@@ -5613,18 +5986,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5613
5986
  type: "closeAllOverlays";
5614
5987
  params: NonReducibleUnknown;
5615
5988
  };
5616
- "trigger:OnChange": {
5617
- type: "trigger:OnChange";
5618
- params: {
5619
- change: ViewChange;
5620
- };
5621
- };
5622
- "layout.align": {
5623
- type: "layout.align";
5624
- params: {
5625
- mode: AlignmentMode;
5626
- };
5627
- };
5628
5989
  "trigger:NavigateTo": {
5629
5990
  type: "trigger:NavigateTo";
5630
5991
  params: {
@@ -5672,11 +6033,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5672
6033
  type: "updateFeatures";
5673
6034
  params: NonReducibleUnknown;
5674
6035
  };
6036
+ startSyncLayout: {
6037
+ type: "startSyncLayout";
6038
+ params: NonReducibleUnknown;
6039
+ };
5675
6040
  stopSyncLayout: {
5676
6041
  type: "stopSyncLayout";
5677
6042
  params: NonReducibleUnknown;
5678
6043
  };
5679
6044
  }>, Values<{
6045
+ isReady: {
6046
+ type: "isReady";
6047
+ params: unknown;
6048
+ };
5680
6049
  "enabled: FitView": {
5681
6050
  type: "enabled: FitView";
5682
6051
  params: unknown;
@@ -5737,7 +6106,269 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5737
6106
  }, {
5738
6107
  type: "same view";
5739
6108
  params: unknown;
5740
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6109
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6110
+ readonly initial: "idle";
6111
+ readonly context: ({ input }: {
6112
+ spawn: {
6113
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
6114
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
6115
+ id?: never;
6116
+ systemId?: string;
6117
+ input?: InputFrom<TLogic>;
6118
+ syncSnapshot?: boolean;
6119
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
6120
+ };
6121
+ input: Input;
6122
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
6123
+ }) => {
6124
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
6125
+ viewId: ViewId;
6126
+ };
6127
+ readonly states: {
6128
+ readonly idle: {
6129
+ readonly tags: "ready";
6130
+ readonly on: {
6131
+ readonly sync: {
6132
+ readonly target: "pending";
6133
+ };
6134
+ };
6135
+ };
6136
+ readonly paused: {
6137
+ readonly tags: "pending";
6138
+ readonly on: {
6139
+ readonly sync: {
6140
+ readonly target: "pending";
6141
+ };
6142
+ };
6143
+ };
6144
+ readonly pending: {
6145
+ readonly tags: "pending";
6146
+ readonly on: {
6147
+ readonly sync: {
6148
+ readonly target: "pending";
6149
+ readonly reenter: true;
6150
+ };
6151
+ readonly cancel: {
6152
+ readonly target: "paused";
6153
+ };
6154
+ };
6155
+ readonly after: {
6156
+ readonly timeout: readonly [{
6157
+ readonly guard: "same view";
6158
+ readonly actions: {
6159
+ readonly type: "trigger:OnChange";
6160
+ readonly params: ({ context }: {
6161
+ context: Readonly< Input>;
6162
+ event: SyncLayoutEvents;
6163
+ }) => {
6164
+ change: ViewChange.SaveManualLayout;
6165
+ };
6166
+ };
6167
+ readonly target: "synced";
6168
+ }, {
6169
+ readonly target: "stopped";
6170
+ }];
6171
+ };
6172
+ };
6173
+ readonly synced: {
6174
+ readonly tags: "ready";
6175
+ readonly on: {
6176
+ readonly sync: {
6177
+ readonly target: "pending";
6178
+ };
6179
+ };
6180
+ };
6181
+ readonly stopped: {
6182
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
6183
+ readonly type: "final";
6184
+ };
6185
+ };
6186
+ readonly on: {
6187
+ readonly synced: {
6188
+ readonly target: ".synced";
6189
+ };
6190
+ readonly stop: {
6191
+ readonly target: ".stopped";
6192
+ };
6193
+ };
6194
+ }>;
6195
+ id: "syncLayout";
6196
+ };
6197
+ hotkeyActorLogic: {
6198
+ src: "hotkeyActorLogic";
6199
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
6200
+ id: "hotkey";
6201
+ };
6202
+ overlaysActorLogic: {
6203
+ src: "overlaysActorLogic";
6204
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
6205
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
6206
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
6207
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
6208
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
6209
+ }, Values<{
6210
+ elementDetails: {
6211
+ src: "elementDetails";
6212
+ logic: ElementDetailsLogic;
6213
+ id: `elementDetails-${number}`;
6214
+ };
6215
+ relationshipsBrowser: {
6216
+ src: "relationshipsBrowser";
6217
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
6218
+ id: `relationshipsBrowser-${number}`;
6219
+ };
6220
+ relationshipDetails: {
6221
+ src: "relationshipDetails";
6222
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
6223
+ id: `relationshipDetails-${number}`;
6224
+ };
6225
+ hotkey: {
6226
+ src: "hotkey";
6227
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
6228
+ id: "hotkey";
6229
+ };
6230
+ }>, Values<{
6231
+ closeLastOverlay: {
6232
+ type: "closeLastOverlay";
6233
+ params: NonReducibleUnknown;
6234
+ };
6235
+ closeSpecificOverlay: {
6236
+ type: "closeSpecificOverlay";
6237
+ params: {
6238
+ actorId: string;
6239
+ };
6240
+ };
6241
+ closeAllOverlays: {
6242
+ type: "closeAllOverlays";
6243
+ params: NonReducibleUnknown;
6244
+ };
6245
+ openElementDetails: {
6246
+ type: "openElementDetails";
6247
+ params: NonReducibleUnknown;
6248
+ };
6249
+ openRelationshipDetails: {
6250
+ type: "openRelationshipDetails";
6251
+ params: NonReducibleUnknown;
6252
+ };
6253
+ openRelationshipsBrowser: {
6254
+ type: "openRelationshipsBrowser";
6255
+ params: NonReducibleUnknown;
6256
+ };
6257
+ listenToEsc: {
6258
+ type: "listenToEsc";
6259
+ params: NonReducibleUnknown;
6260
+ };
6261
+ stopListeningToEsc: {
6262
+ type: "stopListeningToEsc";
6263
+ params: NonReducibleUnknown;
6264
+ };
6265
+ }>, Values<{
6266
+ "has overlays?": {
6267
+ type: "has overlays?";
6268
+ params: unknown;
6269
+ };
6270
+ "close specific overlay?": {
6271
+ type: "close specific overlay?";
6272
+ params: unknown;
6273
+ };
6274
+ "last: is relationshipDetails?": {
6275
+ type: "last: is relationshipDetails?";
6276
+ params: unknown;
6277
+ };
6278
+ "last: is relationshipsBrowser?": {
6279
+ type: "last: is relationshipsBrowser?";
6280
+ params: unknown;
6281
+ };
6282
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
6283
+ readonly id: "overlays";
6284
+ readonly context: () => {
6285
+ seq: number;
6286
+ overlays: never[];
6287
+ };
6288
+ readonly initial: "idle";
6289
+ readonly on: {
6290
+ readonly 'open.elementDetails': {
6291
+ readonly actions: "openElementDetails";
6292
+ readonly target: ".active";
6293
+ readonly reenter: false;
6294
+ };
6295
+ readonly 'open.relationshipDetails': {
6296
+ readonly actions: "openRelationshipDetails";
6297
+ readonly target: ".active";
6298
+ readonly reenter: false;
6299
+ };
6300
+ readonly 'open.relationshipsBrowser': {
6301
+ readonly actions: "openRelationshipsBrowser";
6302
+ readonly target: ".active";
6303
+ readonly reenter: false;
6304
+ };
6305
+ };
6306
+ readonly states: {
6307
+ readonly idle: {};
6308
+ readonly active: {
6309
+ readonly entry: "listenToEsc";
6310
+ readonly exit: "stopListeningToEsc";
6311
+ readonly on: {
6312
+ readonly close: readonly [{
6313
+ readonly guard: "close specific overlay?";
6314
+ readonly actions: {
6315
+ readonly type: "closeSpecificOverlay";
6316
+ readonly params: ({ event }: {
6317
+ context: OverlaysContext;
6318
+ event: {
6319
+ type: "close";
6320
+ actorId?: string | undefined;
6321
+ };
6322
+ }) => {
6323
+ actorId: string;
6324
+ };
6325
+ };
6326
+ readonly target: "closing";
6327
+ }, {
6328
+ readonly actions: "closeLastOverlay";
6329
+ readonly target: "closing";
6330
+ }];
6331
+ readonly 'close.all': {
6332
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
6333
+ readonly target: "idle";
6334
+ };
6335
+ };
6336
+ };
6337
+ readonly closing: {
6338
+ readonly always: readonly [{
6339
+ readonly guard: "has overlays?";
6340
+ readonly target: "active";
6341
+ }, {
6342
+ readonly actions: "stopListeningToEsc";
6343
+ readonly target: "idle";
6344
+ }];
6345
+ };
6346
+ };
6347
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
6348
+ }>;
6349
+ id: "overlays";
6350
+ };
6351
+ }>, never, never, never, never>, ActionFunction<Context, {
6352
+ type: "xyflow.nodeClick";
6353
+ node: Types.Node;
6354
+ }, Events, undefined, never, never, never, never, never>];
6355
+ }];
6356
+ readonly 'focus.node': {
6357
+ readonly actions: readonly [ ActionFunction<Context, {
6358
+ type: "focus.node";
6359
+ nodeId: NodeId;
6360
+ }, Events, undefined, Values<{
6361
+ syncManualLayoutActorLogic: {
6362
+ src: "syncManualLayoutActorLogic";
6363
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
6364
+ type: "trigger:OnChange";
6365
+ params: {
6366
+ change: ViewChange;
6367
+ };
6368
+ }, {
6369
+ type: "same view";
6370
+ params: unknown;
6371
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
5741
6372
  readonly initial: "idle";
5742
6373
  readonly context: ({ input }: {
5743
6374
  spawn: {
@@ -5979,16 +6610,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5979
6610
  }>;
5980
6611
  id: "overlays";
5981
6612
  };
5982
- }>, never, never, never, never>, ActionFunction<Context, {
5983
- type: "xyflow.nodeClick";
5984
- node: Types.Node;
5985
- }, Events, undefined, never, never, never, never, never>];
5986
- }];
5987
- readonly 'focus.node': {
5988
- readonly actions: readonly [ ActionFunction<Context, {
5989
- type: "focus.node";
5990
- nodeId: NodeId;
5991
- }, Events, undefined, Values<{
6613
+ }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
5992
6614
  syncManualLayoutActorLogic: {
5993
6615
  src: "syncManualLayoutActorLogic";
5994
6616
  logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
@@ -5999,7 +6621,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5999
6621
  }, {
6000
6622
  type: "same view";
6001
6623
  params: unknown;
6002
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6624
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6003
6625
  readonly initial: "idle";
6004
6626
  readonly context: ({ input }: {
6005
6627
  spawn: {
@@ -6241,7 +6863,15 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6241
6863
  }>;
6242
6864
  id: "overlays";
6243
6865
  };
6244
- }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
6866
+ }>, never, never, never, never>, "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
6867
+ };
6868
+ readonly 'key.esc': {
6869
+ readonly target: "idle";
6870
+ };
6871
+ readonly 'xyflow.paneClick': {
6872
+ readonly actions: ActionFunction<Context, {
6873
+ type: "xyflow.paneClick";
6874
+ }, Events, undefined, Values<{
6245
6875
  syncManualLayoutActorLogic: {
6246
6876
  src: "syncManualLayoutActorLogic";
6247
6877
  logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
@@ -6252,7 +6882,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6252
6882
  }, {
6253
6883
  type: "same view";
6254
6884
  params: unknown;
6255
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6885
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6256
6886
  readonly initial: "idle";
6257
6887
  readonly context: ({ input }: {
6258
6888
  spawn: {
@@ -6494,14 +7124,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6494
7124
  }>;
6495
7125
  id: "overlays";
6496
7126
  };
6497
- }>, never, never, never, never>, "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
6498
- };
6499
- readonly 'key.esc': {
7127
+ }>, never, never, never, never>;
6500
7128
  readonly target: "idle";
6501
7129
  };
6502
- readonly 'xyflow.paneClick': {
7130
+ readonly 'notations.unhighlight': {
6503
7131
  readonly actions: ActionFunction<Context, {
6504
- type: "xyflow.paneClick";
7132
+ type: "notations.unhighlight";
6505
7133
  }, Events, undefined, Values<{
6506
7134
  syncManualLayoutActorLogic: {
6507
7135
  src: "syncManualLayoutActorLogic";
@@ -6513,7 +7141,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6513
7141
  }, {
6514
7142
  type: "same view";
6515
7143
  params: unknown;
6516
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7144
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6517
7145
  readonly initial: "idle";
6518
7146
  readonly context: ({ input }: {
6519
7147
  spawn: {
@@ -6756,7 +7384,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6756
7384
  id: "overlays";
6757
7385
  };
6758
7386
  }>, never, never, never, never>;
6759
- readonly target: "idle";
6760
7387
  };
6761
7388
  };
6762
7389
  };
@@ -6772,7 +7399,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6772
7399
  }, {
6773
7400
  type: "same view";
6774
7401
  params: unknown;
6775
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7402
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
6776
7403
  readonly initial: "idle";
6777
7404
  readonly context: ({ input }: {
6778
7405
  spawn: {
@@ -7025,7 +7652,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7025
7652
  }, {
7026
7653
  type: "same view";
7027
7654
  params: unknown;
7028
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7655
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7029
7656
  readonly initial: "idle";
7030
7657
  readonly context: ({ input }: {
7031
7658
  spawn: {
@@ -7278,7 +7905,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7278
7905
  }, {
7279
7906
  type: "same view";
7280
7907
  params: unknown;
7281
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7908
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7282
7909
  readonly initial: "idle";
7283
7910
  readonly context: ({ input }: {
7284
7911
  spawn: {
@@ -7546,7 +8173,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7546
8173
  }, {
7547
8174
  type: "same view";
7548
8175
  params: unknown;
7549
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8176
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7550
8177
  readonly initial: "idle";
7551
8178
  readonly context: ({ input }: {
7552
8179
  spawn: {
@@ -7813,17 +8440,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7813
8440
  edge: Types.Edge;
7814
8441
  };
7815
8442
  };
7816
- "xyflow:fitDiagram": {
7817
- type: "xyflow:fitDiagram";
7818
- params: {
7819
- duration?: number;
7820
- bounds?: BBox;
7821
- } | undefined;
7822
- };
7823
- closeAllOverlays: {
7824
- type: "closeAllOverlays";
7825
- params: NonReducibleUnknown;
7826
- };
7827
8443
  "trigger:OnChange": {
7828
8444
  type: "trigger:OnChange";
7829
8445
  params: {
@@ -7836,6 +8452,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7836
8452
  mode: AlignmentMode;
7837
8453
  };
7838
8454
  };
8455
+ "notations.highlight": {
8456
+ type: "notations.highlight";
8457
+ params: {
8458
+ notation: ElementNotation;
8459
+ kind?: string;
8460
+ };
8461
+ };
8462
+ "xyflow:fitDiagram": {
8463
+ type: "xyflow:fitDiagram";
8464
+ params: {
8465
+ duration?: number;
8466
+ bounds?: BBox;
8467
+ } | undefined;
8468
+ };
8469
+ closeAllOverlays: {
8470
+ type: "closeAllOverlays";
8471
+ params: NonReducibleUnknown;
8472
+ };
7839
8473
  "trigger:NavigateTo": {
7840
8474
  type: "trigger:NavigateTo";
7841
8475
  params: {
@@ -7883,11 +8517,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7883
8517
  type: "updateFeatures";
7884
8518
  params: NonReducibleUnknown;
7885
8519
  };
8520
+ startSyncLayout: {
8521
+ type: "startSyncLayout";
8522
+ params: NonReducibleUnknown;
8523
+ };
7886
8524
  stopSyncLayout: {
7887
8525
  type: "stopSyncLayout";
7888
8526
  params: NonReducibleUnknown;
7889
8527
  };
7890
8528
  }>, Values<{
8529
+ isReady: {
8530
+ type: "isReady";
8531
+ params: unknown;
8532
+ };
7891
8533
  "enabled: FitView": {
7892
8534
  type: "enabled: FitView";
7893
8535
  params: unknown;
@@ -7928,7 +8570,265 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7928
8570
  type: "click: node has connections";
7929
8571
  params: unknown;
7930
8572
  };
7931
- }>, never, EventObject>;
8573
+ }>, never, EventObject>;
8574
+ };
8575
+ readonly 'notations.unhighlight': {
8576
+ readonly actions: ActionFunction<Context, {
8577
+ type: "notations.unhighlight";
8578
+ }, Events, undefined, Values<{
8579
+ syncManualLayoutActorLogic: {
8580
+ src: "syncManualLayoutActorLogic";
8581
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
8582
+ type: "trigger:OnChange";
8583
+ params: {
8584
+ change: ViewChange;
8585
+ };
8586
+ }, {
8587
+ type: "same view";
8588
+ params: unknown;
8589
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8590
+ readonly initial: "idle";
8591
+ readonly context: ({ input }: {
8592
+ spawn: {
8593
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8594
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8595
+ id?: never;
8596
+ systemId?: string;
8597
+ input?: InputFrom<TLogic>;
8598
+ syncSnapshot?: boolean;
8599
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8600
+ };
8601
+ input: Input;
8602
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
8603
+ }) => {
8604
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
8605
+ viewId: ViewId;
8606
+ };
8607
+ readonly states: {
8608
+ readonly idle: {
8609
+ readonly tags: "ready";
8610
+ readonly on: {
8611
+ readonly sync: {
8612
+ readonly target: "pending";
8613
+ };
8614
+ };
8615
+ };
8616
+ readonly paused: {
8617
+ readonly tags: "pending";
8618
+ readonly on: {
8619
+ readonly sync: {
8620
+ readonly target: "pending";
8621
+ };
8622
+ };
8623
+ };
8624
+ readonly pending: {
8625
+ readonly tags: "pending";
8626
+ readonly on: {
8627
+ readonly sync: {
8628
+ readonly target: "pending";
8629
+ readonly reenter: true;
8630
+ };
8631
+ readonly cancel: {
8632
+ readonly target: "paused";
8633
+ };
8634
+ };
8635
+ readonly after: {
8636
+ readonly timeout: readonly [{
8637
+ readonly guard: "same view";
8638
+ readonly actions: {
8639
+ readonly type: "trigger:OnChange";
8640
+ readonly params: ({ context }: {
8641
+ context: Readonly< Input>;
8642
+ event: SyncLayoutEvents;
8643
+ }) => {
8644
+ change: ViewChange.SaveManualLayout;
8645
+ };
8646
+ };
8647
+ readonly target: "synced";
8648
+ }, {
8649
+ readonly target: "stopped";
8650
+ }];
8651
+ };
8652
+ };
8653
+ readonly synced: {
8654
+ readonly tags: "ready";
8655
+ readonly on: {
8656
+ readonly sync: {
8657
+ readonly target: "pending";
8658
+ };
8659
+ };
8660
+ };
8661
+ readonly stopped: {
8662
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
8663
+ readonly type: "final";
8664
+ };
8665
+ };
8666
+ readonly on: {
8667
+ readonly synced: {
8668
+ readonly target: ".synced";
8669
+ };
8670
+ readonly stop: {
8671
+ readonly target: ".stopped";
8672
+ };
8673
+ };
8674
+ }>;
8675
+ id: "syncLayout";
8676
+ };
8677
+ hotkeyActorLogic: {
8678
+ src: "hotkeyActorLogic";
8679
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8680
+ id: "hotkey";
8681
+ };
8682
+ overlaysActorLogic: {
8683
+ src: "overlaysActorLogic";
8684
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8685
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8686
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8687
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8688
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8689
+ }, Values<{
8690
+ elementDetails: {
8691
+ src: "elementDetails";
8692
+ logic: ElementDetailsLogic;
8693
+ id: `elementDetails-${number}`;
8694
+ };
8695
+ relationshipsBrowser: {
8696
+ src: "relationshipsBrowser";
8697
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8698
+ id: `relationshipsBrowser-${number}`;
8699
+ };
8700
+ relationshipDetails: {
8701
+ src: "relationshipDetails";
8702
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8703
+ id: `relationshipDetails-${number}`;
8704
+ };
8705
+ hotkey: {
8706
+ src: "hotkey";
8707
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8708
+ id: "hotkey";
8709
+ };
8710
+ }>, Values<{
8711
+ closeLastOverlay: {
8712
+ type: "closeLastOverlay";
8713
+ params: NonReducibleUnknown;
8714
+ };
8715
+ closeSpecificOverlay: {
8716
+ type: "closeSpecificOverlay";
8717
+ params: {
8718
+ actorId: string;
8719
+ };
8720
+ };
8721
+ closeAllOverlays: {
8722
+ type: "closeAllOverlays";
8723
+ params: NonReducibleUnknown;
8724
+ };
8725
+ openElementDetails: {
8726
+ type: "openElementDetails";
8727
+ params: NonReducibleUnknown;
8728
+ };
8729
+ openRelationshipDetails: {
8730
+ type: "openRelationshipDetails";
8731
+ params: NonReducibleUnknown;
8732
+ };
8733
+ openRelationshipsBrowser: {
8734
+ type: "openRelationshipsBrowser";
8735
+ params: NonReducibleUnknown;
8736
+ };
8737
+ listenToEsc: {
8738
+ type: "listenToEsc";
8739
+ params: NonReducibleUnknown;
8740
+ };
8741
+ stopListeningToEsc: {
8742
+ type: "stopListeningToEsc";
8743
+ params: NonReducibleUnknown;
8744
+ };
8745
+ }>, Values<{
8746
+ "has overlays?": {
8747
+ type: "has overlays?";
8748
+ params: unknown;
8749
+ };
8750
+ "close specific overlay?": {
8751
+ type: "close specific overlay?";
8752
+ params: unknown;
8753
+ };
8754
+ "last: is relationshipDetails?": {
8755
+ type: "last: is relationshipDetails?";
8756
+ params: unknown;
8757
+ };
8758
+ "last: is relationshipsBrowser?": {
8759
+ type: "last: is relationshipsBrowser?";
8760
+ params: unknown;
8761
+ };
8762
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
8763
+ readonly id: "overlays";
8764
+ readonly context: () => {
8765
+ seq: number;
8766
+ overlays: never[];
8767
+ };
8768
+ readonly initial: "idle";
8769
+ readonly on: {
8770
+ readonly 'open.elementDetails': {
8771
+ readonly actions: "openElementDetails";
8772
+ readonly target: ".active";
8773
+ readonly reenter: false;
8774
+ };
8775
+ readonly 'open.relationshipDetails': {
8776
+ readonly actions: "openRelationshipDetails";
8777
+ readonly target: ".active";
8778
+ readonly reenter: false;
8779
+ };
8780
+ readonly 'open.relationshipsBrowser': {
8781
+ readonly actions: "openRelationshipsBrowser";
8782
+ readonly target: ".active";
8783
+ readonly reenter: false;
8784
+ };
8785
+ };
8786
+ readonly states: {
8787
+ readonly idle: {};
8788
+ readonly active: {
8789
+ readonly entry: "listenToEsc";
8790
+ readonly exit: "stopListeningToEsc";
8791
+ readonly on: {
8792
+ readonly close: readonly [{
8793
+ readonly guard: "close specific overlay?";
8794
+ readonly actions: {
8795
+ readonly type: "closeSpecificOverlay";
8796
+ readonly params: ({ event }: {
8797
+ context: OverlaysContext;
8798
+ event: {
8799
+ type: "close";
8800
+ actorId?: string | undefined;
8801
+ };
8802
+ }) => {
8803
+ actorId: string;
8804
+ };
8805
+ };
8806
+ readonly target: "closing";
8807
+ }, {
8808
+ readonly actions: "closeLastOverlay";
8809
+ readonly target: "closing";
8810
+ }];
8811
+ readonly 'close.all': {
8812
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8813
+ readonly target: "idle";
8814
+ };
8815
+ };
8816
+ };
8817
+ readonly closing: {
8818
+ readonly always: readonly [{
8819
+ readonly guard: "has overlays?";
8820
+ readonly target: "active";
8821
+ }, {
8822
+ readonly actions: "stopListeningToEsc";
8823
+ readonly target: "idle";
8824
+ }];
8825
+ };
8826
+ };
8827
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8828
+ }>;
8829
+ id: "overlays";
8830
+ };
8831
+ }>, never, never, never, never>;
7932
8832
  };
7933
8833
  readonly 'walkthrough.end': {
7934
8834
  readonly target: "idle";
@@ -7958,7 +8858,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7958
8858
  }, {
7959
8859
  type: "same view";
7960
8860
  params: unknown;
7961
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8861
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7962
8862
  readonly initial: "idle";
7963
8863
  readonly context: ({ input }: {
7964
8864
  spawn: {
@@ -7986,629 +8886,390 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7986
8886
  };
7987
8887
  };
7988
8888
  readonly paused: {
7989
- readonly tags: "pending";
7990
- readonly on: {
7991
- readonly sync: {
7992
- readonly target: "pending";
7993
- };
7994
- };
7995
- };
7996
- readonly pending: {
7997
- readonly tags: "pending";
7998
- readonly on: {
7999
- readonly sync: {
8000
- readonly target: "pending";
8001
- readonly reenter: true;
8002
- };
8003
- readonly cancel: {
8004
- readonly target: "paused";
8005
- };
8006
- };
8007
- readonly after: {
8008
- readonly timeout: readonly [{
8009
- readonly guard: "same view";
8010
- readonly actions: {
8011
- readonly type: "trigger:OnChange";
8012
- readonly params: ({ context }: {
8013
- context: Readonly< Input>;
8014
- event: SyncLayoutEvents;
8015
- }) => {
8016
- change: ViewChange.SaveManualLayout;
8017
- };
8018
- };
8019
- readonly target: "synced";
8020
- }, {
8021
- readonly target: "stopped";
8022
- }];
8023
- };
8024
- };
8025
- readonly synced: {
8026
- readonly tags: "ready";
8027
- readonly on: {
8028
- readonly sync: {
8029
- readonly target: "pending";
8030
- };
8031
- };
8032
- };
8033
- readonly stopped: {
8034
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
8035
- readonly type: "final";
8036
- };
8037
- };
8038
- readonly on: {
8039
- readonly synced: {
8040
- readonly target: ".synced";
8041
- };
8042
- readonly stop: {
8043
- readonly target: ".stopped";
8044
- };
8045
- };
8046
- }>;
8047
- id: "syncLayout";
8048
- };
8049
- hotkeyActorLogic: {
8050
- src: "hotkeyActorLogic";
8051
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8052
- id: "hotkey";
8053
- };
8054
- overlaysActorLogic: {
8055
- src: "overlaysActorLogic";
8056
- logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8057
- [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8058
- [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8059
- [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8060
- hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8061
- }, Values<{
8062
- elementDetails: {
8063
- src: "elementDetails";
8064
- logic: ElementDetailsLogic;
8065
- id: `elementDetails-${number}`;
8066
- };
8067
- relationshipsBrowser: {
8068
- src: "relationshipsBrowser";
8069
- logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8070
- id: `relationshipsBrowser-${number}`;
8071
- };
8072
- relationshipDetails: {
8073
- src: "relationshipDetails";
8074
- logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8075
- id: `relationshipDetails-${number}`;
8076
- };
8077
- hotkey: {
8078
- src: "hotkey";
8079
- logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8080
- id: "hotkey";
8081
- };
8082
- }>, Values<{
8083
- closeLastOverlay: {
8084
- type: "closeLastOverlay";
8085
- params: NonReducibleUnknown;
8086
- };
8087
- closeSpecificOverlay: {
8088
- type: "closeSpecificOverlay";
8089
- params: {
8090
- actorId: string;
8091
- };
8092
- };
8093
- closeAllOverlays: {
8094
- type: "closeAllOverlays";
8095
- params: NonReducibleUnknown;
8096
- };
8097
- openElementDetails: {
8098
- type: "openElementDetails";
8099
- params: NonReducibleUnknown;
8100
- };
8101
- openRelationshipDetails: {
8102
- type: "openRelationshipDetails";
8103
- params: NonReducibleUnknown;
8104
- };
8105
- openRelationshipsBrowser: {
8106
- type: "openRelationshipsBrowser";
8107
- params: NonReducibleUnknown;
8108
- };
8109
- listenToEsc: {
8110
- type: "listenToEsc";
8111
- params: NonReducibleUnknown;
8112
- };
8113
- stopListeningToEsc: {
8114
- type: "stopListeningToEsc";
8115
- params: NonReducibleUnknown;
8116
- };
8117
- }>, Values<{
8118
- "has overlays?": {
8119
- type: "has overlays?";
8120
- params: unknown;
8121
- };
8122
- "close specific overlay?": {
8123
- type: "close specific overlay?";
8124
- params: unknown;
8125
- };
8126
- "last: is relationshipDetails?": {
8127
- type: "last: is relationshipDetails?";
8128
- params: unknown;
8129
- };
8130
- "last: is relationshipsBrowser?": {
8131
- type: "last: is relationshipsBrowser?";
8132
- params: unknown;
8133
- };
8134
- }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
8135
- readonly id: "overlays";
8136
- readonly context: () => {
8137
- seq: number;
8138
- overlays: never[];
8139
- };
8140
- readonly initial: "idle";
8141
- readonly on: {
8142
- readonly 'open.elementDetails': {
8143
- readonly actions: "openElementDetails";
8144
- readonly target: ".active";
8145
- readonly reenter: false;
8146
- };
8147
- readonly 'open.relationshipDetails': {
8148
- readonly actions: "openRelationshipDetails";
8149
- readonly target: ".active";
8150
- readonly reenter: false;
8151
- };
8152
- readonly 'open.relationshipsBrowser': {
8153
- readonly actions: "openRelationshipsBrowser";
8154
- readonly target: ".active";
8155
- readonly reenter: false;
8889
+ readonly tags: "pending";
8890
+ readonly on: {
8891
+ readonly sync: {
8892
+ readonly target: "pending";
8893
+ };
8894
+ };
8156
8895
  };
8157
- };
8158
- readonly states: {
8159
- readonly idle: {};
8160
- readonly active: {
8161
- readonly entry: "listenToEsc";
8162
- readonly exit: "stopListeningToEsc";
8896
+ readonly pending: {
8897
+ readonly tags: "pending";
8163
8898
  readonly on: {
8164
- readonly close: readonly [{
8165
- readonly guard: "close specific overlay?";
8899
+ readonly sync: {
8900
+ readonly target: "pending";
8901
+ readonly reenter: true;
8902
+ };
8903
+ readonly cancel: {
8904
+ readonly target: "paused";
8905
+ };
8906
+ };
8907
+ readonly after: {
8908
+ readonly timeout: readonly [{
8909
+ readonly guard: "same view";
8166
8910
  readonly actions: {
8167
- readonly type: "closeSpecificOverlay";
8168
- readonly params: ({ event }: {
8169
- context: OverlaysContext;
8170
- event: {
8171
- type: "close";
8172
- actorId?: string | undefined;
8173
- };
8911
+ readonly type: "trigger:OnChange";
8912
+ readonly params: ({ context }: {
8913
+ context: Readonly< Input>;
8914
+ event: SyncLayoutEvents;
8174
8915
  }) => {
8175
- actorId: string;
8916
+ change: ViewChange.SaveManualLayout;
8176
8917
  };
8177
8918
  };
8178
- readonly target: "closing";
8919
+ readonly target: "synced";
8179
8920
  }, {
8180
- readonly actions: "closeLastOverlay";
8181
- readonly target: "closing";
8921
+ readonly target: "stopped";
8182
8922
  }];
8183
- readonly 'close.all': {
8184
- readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8185
- readonly target: "idle";
8186
- };
8187
8923
  };
8188
8924
  };
8189
- readonly closing: {
8190
- readonly always: readonly [{
8191
- readonly guard: "has overlays?";
8192
- readonly target: "active";
8193
- }, {
8194
- readonly actions: "stopListeningToEsc";
8195
- readonly target: "idle";
8196
- }];
8197
- };
8198
- };
8199
- readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8200
- }>;
8201
- id: "overlays";
8202
- };
8203
- }>, Values<{
8204
- onNodeMouseEnter: {
8205
- type: "onNodeMouseEnter";
8206
- params: {
8207
- node: Types.Node;
8208
- };
8209
- };
8210
- onNodeMouseLeave: {
8211
- type: "onNodeMouseLeave";
8212
- params: {
8213
- node: Types.Node;
8214
- };
8215
- };
8216
- onEdgeMouseEnter: {
8217
- type: "onEdgeMouseEnter";
8218
- params: {
8219
- edge: Types.Edge;
8220
- };
8221
- };
8222
- onEdgeMouseLeave: {
8223
- type: "onEdgeMouseLeave";
8224
- params: {
8225
- edge: Types.Edge;
8226
- };
8227
- };
8228
- "xyflow:fitDiagram": {
8229
- type: "xyflow:fitDiagram";
8230
- params: {
8231
- duration?: number;
8232
- bounds?: BBox;
8233
- } | undefined;
8234
- };
8235
- closeAllOverlays: {
8236
- type: "closeAllOverlays";
8237
- params: NonReducibleUnknown;
8238
- };
8239
- "trigger:OnChange": {
8240
- type: "trigger:OnChange";
8241
- params: {
8242
- change: ViewChange;
8243
- };
8244
- };
8245
- "layout.align": {
8246
- type: "layout.align";
8247
- params: {
8248
- mode: AlignmentMode;
8249
- };
8250
- };
8251
- "trigger:NavigateTo": {
8252
- type: "trigger:NavigateTo";
8253
- params: {
8254
- viewId: ViewId;
8255
- };
8256
- };
8257
- "trigger:OpenSource": {
8258
- type: "trigger:OpenSource";
8259
- params: OpenSourceParams;
8260
- };
8261
- "assign lastClickedNode": {
8262
- type: "assign lastClickedNode";
8263
- params: NonReducibleUnknown;
8264
- };
8265
- "open source of focused or last clicked node": {
8266
- type: "open source of focused or last clicked node";
8267
- params: NonReducibleUnknown;
8268
- };
8269
- "xyflow:fitFocusedBounds": {
8270
- type: "xyflow:fitFocusedBounds";
8271
- params: unknown;
8272
- };
8273
- "xyflow:setViewportCenter": {
8274
- type: "xyflow:setViewportCenter";
8275
- params: {
8276
- x: number;
8277
- y: number;
8278
- };
8279
- };
8280
- "xyflow:setViewport": {
8281
- type: "xyflow:setViewport";
8282
- params: {
8283
- viewport: Viewport;
8284
- duration?: number;
8285
- };
8286
- };
8287
- "xyflow:alignNodeFromToAfterNavigate": {
8288
- type: "xyflow:alignNodeFromToAfterNavigate";
8289
- params: {
8290
- fromNode: NodeId;
8291
- toPosition: XYPoint;
8292
- };
8293
- };
8294
- updateFeatures: {
8295
- type: "updateFeatures";
8296
- params: NonReducibleUnknown;
8297
- };
8298
- stopSyncLayout: {
8299
- type: "stopSyncLayout";
8300
- params: NonReducibleUnknown;
8301
- };
8302
- }>, Values<{
8303
- "enabled: FitView": {
8304
- type: "enabled: FitView";
8305
- params: unknown;
8306
- };
8307
- "enabled: FocusMode": {
8308
- type: "enabled: FocusMode";
8309
- params: unknown;
8310
- };
8311
- "enabled: Readonly": {
8312
- type: "enabled: Readonly";
8313
- params: unknown;
8314
- };
8315
- "not readonly": {
8316
- type: "not readonly";
8317
- params: unknown;
8318
- };
8319
- "is dynamic view": {
8320
- type: "is dynamic view";
8321
- params: unknown;
8322
- };
8323
- "is another view": {
8324
- type: "is another view";
8325
- params: unknown;
8326
- };
8327
- "click: selected node": {
8328
- type: "click: selected node";
8329
- params: unknown;
8330
- };
8331
- "click: same node": {
8332
- type: "click: same node";
8333
- params: unknown;
8334
- };
8335
- "click: focused node": {
8336
- type: "click: focused node";
8337
- params: unknown;
8338
- };
8339
- "click: node has connections": {
8340
- type: "click: node has connections";
8341
- params: unknown;
8342
- };
8343
- }>, never, EventObject>;
8344
- };
8345
- };
8346
- };
8347
- readonly navigating: {
8348
- readonly id: "navigating";
8349
- readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
8350
- readonly type: "trigger:NavigateTo";
8351
- readonly params: ({ context }: {
8352
- context: Context;
8353
- event: Events;
8354
- }) => {
8355
- viewId: ViewId;
8356
- };
8357
- }];
8358
- readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
8359
- syncManualLayoutActorLogic: {
8360
- src: "syncManualLayoutActorLogic";
8361
- logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
8362
- type: "trigger:OnChange";
8363
- params: {
8364
- change: ViewChange;
8365
- };
8366
- }, {
8367
- type: "same view";
8368
- params: unknown;
8369
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8370
- readonly initial: "idle";
8371
- readonly context: ({ input }: {
8372
- spawn: {
8373
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8374
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8375
- id?: never;
8376
- systemId?: string;
8377
- input?: InputFrom<TLogic>;
8378
- syncSnapshot?: boolean;
8379
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8380
- };
8381
- input: Input;
8382
- self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
8383
- }) => {
8384
- parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
8385
- viewId: ViewId;
8386
- };
8387
- readonly states: {
8388
- readonly idle: {
8389
- readonly tags: "ready";
8390
- readonly on: {
8391
- readonly sync: {
8392
- readonly target: "pending";
8925
+ readonly synced: {
8926
+ readonly tags: "ready";
8927
+ readonly on: {
8928
+ readonly sync: {
8929
+ readonly target: "pending";
8930
+ };
8931
+ };
8932
+ };
8933
+ readonly stopped: {
8934
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
8935
+ readonly type: "final";
8393
8936
  };
8394
8937
  };
8395
- };
8396
- readonly paused: {
8397
- readonly tags: "pending";
8398
8938
  readonly on: {
8399
- readonly sync: {
8400
- readonly target: "pending";
8939
+ readonly synced: {
8940
+ readonly target: ".synced";
8941
+ };
8942
+ readonly stop: {
8943
+ readonly target: ".stopped";
8401
8944
  };
8402
8945
  };
8403
- };
8404
- readonly pending: {
8405
- readonly tags: "pending";
8946
+ }>;
8947
+ id: "syncLayout";
8948
+ };
8949
+ hotkeyActorLogic: {
8950
+ src: "hotkeyActorLogic";
8951
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8952
+ id: "hotkey";
8953
+ };
8954
+ overlaysActorLogic: {
8955
+ src: "overlaysActorLogic";
8956
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8957
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8958
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8959
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8960
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8961
+ }, Values<{
8962
+ elementDetails: {
8963
+ src: "elementDetails";
8964
+ logic: ElementDetailsLogic;
8965
+ id: `elementDetails-${number}`;
8966
+ };
8967
+ relationshipsBrowser: {
8968
+ src: "relationshipsBrowser";
8969
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8970
+ id: `relationshipsBrowser-${number}`;
8971
+ };
8972
+ relationshipDetails: {
8973
+ src: "relationshipDetails";
8974
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8975
+ id: `relationshipDetails-${number}`;
8976
+ };
8977
+ hotkey: {
8978
+ src: "hotkey";
8979
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8980
+ id: "hotkey";
8981
+ };
8982
+ }>, Values<{
8983
+ closeLastOverlay: {
8984
+ type: "closeLastOverlay";
8985
+ params: NonReducibleUnknown;
8986
+ };
8987
+ closeSpecificOverlay: {
8988
+ type: "closeSpecificOverlay";
8989
+ params: {
8990
+ actorId: string;
8991
+ };
8992
+ };
8993
+ closeAllOverlays: {
8994
+ type: "closeAllOverlays";
8995
+ params: NonReducibleUnknown;
8996
+ };
8997
+ openElementDetails: {
8998
+ type: "openElementDetails";
8999
+ params: NonReducibleUnknown;
9000
+ };
9001
+ openRelationshipDetails: {
9002
+ type: "openRelationshipDetails";
9003
+ params: NonReducibleUnknown;
9004
+ };
9005
+ openRelationshipsBrowser: {
9006
+ type: "openRelationshipsBrowser";
9007
+ params: NonReducibleUnknown;
9008
+ };
9009
+ listenToEsc: {
9010
+ type: "listenToEsc";
9011
+ params: NonReducibleUnknown;
9012
+ };
9013
+ stopListeningToEsc: {
9014
+ type: "stopListeningToEsc";
9015
+ params: NonReducibleUnknown;
9016
+ };
9017
+ }>, Values<{
9018
+ "has overlays?": {
9019
+ type: "has overlays?";
9020
+ params: unknown;
9021
+ };
9022
+ "close specific overlay?": {
9023
+ type: "close specific overlay?";
9024
+ params: unknown;
9025
+ };
9026
+ "last: is relationshipDetails?": {
9027
+ type: "last: is relationshipDetails?";
9028
+ params: unknown;
9029
+ };
9030
+ "last: is relationshipsBrowser?": {
9031
+ type: "last: is relationshipsBrowser?";
9032
+ params: unknown;
9033
+ };
9034
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
9035
+ readonly id: "overlays";
9036
+ readonly context: () => {
9037
+ seq: number;
9038
+ overlays: never[];
9039
+ };
9040
+ readonly initial: "idle";
8406
9041
  readonly on: {
8407
- readonly sync: {
8408
- readonly target: "pending";
8409
- readonly reenter: true;
9042
+ readonly 'open.elementDetails': {
9043
+ readonly actions: "openElementDetails";
9044
+ readonly target: ".active";
9045
+ readonly reenter: false;
8410
9046
  };
8411
- readonly cancel: {
8412
- readonly target: "paused";
9047
+ readonly 'open.relationshipDetails': {
9048
+ readonly actions: "openRelationshipDetails";
9049
+ readonly target: ".active";
9050
+ readonly reenter: false;
9051
+ };
9052
+ readonly 'open.relationshipsBrowser': {
9053
+ readonly actions: "openRelationshipsBrowser";
9054
+ readonly target: ".active";
9055
+ readonly reenter: false;
8413
9056
  };
8414
9057
  };
8415
- readonly after: {
8416
- readonly timeout: readonly [{
8417
- readonly guard: "same view";
8418
- readonly actions: {
8419
- readonly type: "trigger:OnChange";
8420
- readonly params: ({ context }: {
8421
- context: Readonly< Input>;
8422
- event: SyncLayoutEvents;
8423
- }) => {
8424
- change: ViewChange.SaveManualLayout;
9058
+ readonly states: {
9059
+ readonly idle: {};
9060
+ readonly active: {
9061
+ readonly entry: "listenToEsc";
9062
+ readonly exit: "stopListeningToEsc";
9063
+ readonly on: {
9064
+ readonly close: readonly [{
9065
+ readonly guard: "close specific overlay?";
9066
+ readonly actions: {
9067
+ readonly type: "closeSpecificOverlay";
9068
+ readonly params: ({ event }: {
9069
+ context: OverlaysContext;
9070
+ event: {
9071
+ type: "close";
9072
+ actorId?: string | undefined;
9073
+ };
9074
+ }) => {
9075
+ actorId: string;
9076
+ };
9077
+ };
9078
+ readonly target: "closing";
9079
+ }, {
9080
+ readonly actions: "closeLastOverlay";
9081
+ readonly target: "closing";
9082
+ }];
9083
+ readonly 'close.all': {
9084
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
9085
+ readonly target: "idle";
8425
9086
  };
8426
9087
  };
8427
- readonly target: "synced";
8428
- }, {
8429
- readonly target: "stopped";
8430
- }];
8431
- };
8432
- };
8433
- readonly synced: {
8434
- readonly tags: "ready";
8435
- readonly on: {
8436
- readonly sync: {
8437
- readonly target: "pending";
9088
+ };
9089
+ readonly closing: {
9090
+ readonly always: readonly [{
9091
+ readonly guard: "has overlays?";
9092
+ readonly target: "active";
9093
+ }, {
9094
+ readonly actions: "stopListeningToEsc";
9095
+ readonly target: "idle";
9096
+ }];
8438
9097
  };
8439
9098
  };
8440
- };
8441
- readonly stopped: {
8442
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
8443
- readonly type: "final";
8444
- };
9099
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
9100
+ }>;
9101
+ id: "overlays";
8445
9102
  };
8446
- readonly on: {
8447
- readonly synced: {
8448
- readonly target: ".synced";
8449
- };
8450
- readonly stop: {
8451
- readonly target: ".stopped";
9103
+ }>, Values<{
9104
+ onNodeMouseEnter: {
9105
+ type: "onNodeMouseEnter";
9106
+ params: {
9107
+ node: Types.Node;
8452
9108
  };
8453
9109
  };
8454
- }>;
8455
- id: "syncLayout";
8456
- };
8457
- hotkeyActorLogic: {
8458
- src: "hotkeyActorLogic";
8459
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8460
- id: "hotkey";
8461
- };
8462
- overlaysActorLogic: {
8463
- src: "overlaysActorLogic";
8464
- logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8465
- [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8466
- [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8467
- [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8468
- hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8469
- }, Values<{
8470
- elementDetails: {
8471
- src: "elementDetails";
8472
- logic: ElementDetailsLogic;
8473
- id: `elementDetails-${number}`;
8474
- };
8475
- relationshipsBrowser: {
8476
- src: "relationshipsBrowser";
8477
- logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8478
- id: `relationshipsBrowser-${number}`;
9110
+ onNodeMouseLeave: {
9111
+ type: "onNodeMouseLeave";
9112
+ params: {
9113
+ node: Types.Node;
9114
+ };
8479
9115
  };
8480
- relationshipDetails: {
8481
- src: "relationshipDetails";
8482
- logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8483
- id: `relationshipDetails-${number}`;
9116
+ onEdgeMouseEnter: {
9117
+ type: "onEdgeMouseEnter";
9118
+ params: {
9119
+ edge: Types.Edge;
9120
+ };
8484
9121
  };
8485
- hotkey: {
8486
- src: "hotkey";
8487
- logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8488
- id: "hotkey";
9122
+ onEdgeMouseLeave: {
9123
+ type: "onEdgeMouseLeave";
9124
+ params: {
9125
+ edge: Types.Edge;
9126
+ };
8489
9127
  };
8490
- }>, Values<{
8491
- closeLastOverlay: {
8492
- type: "closeLastOverlay";
8493
- params: NonReducibleUnknown;
9128
+ "trigger:OnChange": {
9129
+ type: "trigger:OnChange";
9130
+ params: {
9131
+ change: ViewChange;
9132
+ };
8494
9133
  };
8495
- closeSpecificOverlay: {
8496
- type: "closeSpecificOverlay";
9134
+ "layout.align": {
9135
+ type: "layout.align";
8497
9136
  params: {
8498
- actorId: string;
9137
+ mode: AlignmentMode;
8499
9138
  };
8500
9139
  };
9140
+ "notations.highlight": {
9141
+ type: "notations.highlight";
9142
+ params: {
9143
+ notation: ElementNotation;
9144
+ kind?: string;
9145
+ };
9146
+ };
9147
+ "xyflow:fitDiagram": {
9148
+ type: "xyflow:fitDiagram";
9149
+ params: {
9150
+ duration?: number;
9151
+ bounds?: BBox;
9152
+ } | undefined;
9153
+ };
8501
9154
  closeAllOverlays: {
8502
9155
  type: "closeAllOverlays";
8503
9156
  params: NonReducibleUnknown;
8504
9157
  };
8505
- openElementDetails: {
8506
- type: "openElementDetails";
9158
+ "trigger:NavigateTo": {
9159
+ type: "trigger:NavigateTo";
9160
+ params: {
9161
+ viewId: ViewId;
9162
+ };
9163
+ };
9164
+ "trigger:OpenSource": {
9165
+ type: "trigger:OpenSource";
9166
+ params: OpenSourceParams;
9167
+ };
9168
+ "assign lastClickedNode": {
9169
+ type: "assign lastClickedNode";
8507
9170
  params: NonReducibleUnknown;
8508
9171
  };
8509
- openRelationshipDetails: {
8510
- type: "openRelationshipDetails";
9172
+ "open source of focused or last clicked node": {
9173
+ type: "open source of focused or last clicked node";
8511
9174
  params: NonReducibleUnknown;
8512
9175
  };
8513
- openRelationshipsBrowser: {
8514
- type: "openRelationshipsBrowser";
9176
+ "xyflow:fitFocusedBounds": {
9177
+ type: "xyflow:fitFocusedBounds";
9178
+ params: unknown;
9179
+ };
9180
+ "xyflow:setViewportCenter": {
9181
+ type: "xyflow:setViewportCenter";
9182
+ params: {
9183
+ x: number;
9184
+ y: number;
9185
+ };
9186
+ };
9187
+ "xyflow:setViewport": {
9188
+ type: "xyflow:setViewport";
9189
+ params: {
9190
+ viewport: Viewport;
9191
+ duration?: number;
9192
+ };
9193
+ };
9194
+ "xyflow:alignNodeFromToAfterNavigate": {
9195
+ type: "xyflow:alignNodeFromToAfterNavigate";
9196
+ params: {
9197
+ fromNode: NodeId;
9198
+ toPosition: XYPoint;
9199
+ };
9200
+ };
9201
+ updateFeatures: {
9202
+ type: "updateFeatures";
8515
9203
  params: NonReducibleUnknown;
8516
9204
  };
8517
- listenToEsc: {
8518
- type: "listenToEsc";
9205
+ startSyncLayout: {
9206
+ type: "startSyncLayout";
8519
9207
  params: NonReducibleUnknown;
8520
9208
  };
8521
- stopListeningToEsc: {
8522
- type: "stopListeningToEsc";
9209
+ stopSyncLayout: {
9210
+ type: "stopSyncLayout";
8523
9211
  params: NonReducibleUnknown;
8524
9212
  };
8525
9213
  }>, Values<{
8526
- "has overlays?": {
8527
- type: "has overlays?";
9214
+ isReady: {
9215
+ type: "isReady";
8528
9216
  params: unknown;
8529
9217
  };
8530
- "close specific overlay?": {
8531
- type: "close specific overlay?";
9218
+ "enabled: FitView": {
9219
+ type: "enabled: FitView";
8532
9220
  params: unknown;
8533
9221
  };
8534
- "last: is relationshipDetails?": {
8535
- type: "last: is relationshipDetails?";
9222
+ "enabled: FocusMode": {
9223
+ type: "enabled: FocusMode";
8536
9224
  params: unknown;
8537
9225
  };
8538
- "last: is relationshipsBrowser?": {
8539
- type: "last: is relationshipsBrowser?";
9226
+ "enabled: Readonly": {
9227
+ type: "enabled: Readonly";
8540
9228
  params: unknown;
8541
9229
  };
8542
- }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
8543
- readonly id: "overlays";
8544
- readonly context: () => {
8545
- seq: number;
8546
- overlays: never[];
9230
+ "not readonly": {
9231
+ type: "not readonly";
9232
+ params: unknown;
8547
9233
  };
8548
- readonly initial: "idle";
8549
- readonly on: {
8550
- readonly 'open.elementDetails': {
8551
- readonly actions: "openElementDetails";
8552
- readonly target: ".active";
8553
- readonly reenter: false;
8554
- };
8555
- readonly 'open.relationshipDetails': {
8556
- readonly actions: "openRelationshipDetails";
8557
- readonly target: ".active";
8558
- readonly reenter: false;
8559
- };
8560
- readonly 'open.relationshipsBrowser': {
8561
- readonly actions: "openRelationshipsBrowser";
8562
- readonly target: ".active";
8563
- readonly reenter: false;
8564
- };
9234
+ "is dynamic view": {
9235
+ type: "is dynamic view";
9236
+ params: unknown;
8565
9237
  };
8566
- readonly states: {
8567
- readonly idle: {};
8568
- readonly active: {
8569
- readonly entry: "listenToEsc";
8570
- readonly exit: "stopListeningToEsc";
8571
- readonly on: {
8572
- readonly close: readonly [{
8573
- readonly guard: "close specific overlay?";
8574
- readonly actions: {
8575
- readonly type: "closeSpecificOverlay";
8576
- readonly params: ({ event }: {
8577
- context: OverlaysContext;
8578
- event: {
8579
- type: "close";
8580
- actorId?: string | undefined;
8581
- };
8582
- }) => {
8583
- actorId: string;
8584
- };
8585
- };
8586
- readonly target: "closing";
8587
- }, {
8588
- readonly actions: "closeLastOverlay";
8589
- readonly target: "closing";
8590
- }];
8591
- readonly 'close.all': {
8592
- readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8593
- readonly target: "idle";
8594
- };
8595
- };
8596
- };
8597
- readonly closing: {
8598
- readonly always: readonly [{
8599
- readonly guard: "has overlays?";
8600
- readonly target: "active";
8601
- }, {
8602
- readonly actions: "stopListeningToEsc";
8603
- readonly target: "idle";
8604
- }];
8605
- };
9238
+ "is another view": {
9239
+ type: "is another view";
9240
+ params: unknown;
8606
9241
  };
8607
- readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8608
- }>;
8609
- id: "overlays";
9242
+ "click: selected node": {
9243
+ type: "click: selected node";
9244
+ params: unknown;
9245
+ };
9246
+ "click: same node": {
9247
+ type: "click: same node";
9248
+ params: unknown;
9249
+ };
9250
+ "click: focused node": {
9251
+ type: "click: focused node";
9252
+ params: unknown;
9253
+ };
9254
+ "click: node has connections": {
9255
+ type: "click: node has connections";
9256
+ params: unknown;
9257
+ };
9258
+ }>, never, EventObject>;
8610
9259
  };
8611
- }>, never, never, never, never>;
9260
+ };
9261
+ };
9262
+ readonly navigating: {
9263
+ readonly id: "navigating";
9264
+ readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
9265
+ readonly type: "trigger:NavigateTo";
9266
+ readonly params: ({ context }: {
9267
+ context: Context;
9268
+ event: Events;
9269
+ }) => {
9270
+ viewId: ViewId;
9271
+ };
9272
+ }];
8612
9273
  readonly on: {
8613
9274
  readonly 'update.view': {
8614
9275
  readonly actions: ActionFunction<Context, {
@@ -8627,7 +9288,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8627
9288
  }, {
8628
9289
  type: "same view";
8629
9290
  params: unknown;
8630
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9291
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8631
9292
  readonly initial: "idle";
8632
9293
  readonly context: ({ input }: {
8633
9294
  spawn: {
@@ -8894,17 +9555,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8894
9555
  edge: Types.Edge;
8895
9556
  };
8896
9557
  };
8897
- "xyflow:fitDiagram": {
8898
- type: "xyflow:fitDiagram";
8899
- params: {
8900
- duration?: number;
8901
- bounds?: BBox;
8902
- } | undefined;
8903
- };
8904
- closeAllOverlays: {
8905
- type: "closeAllOverlays";
8906
- params: NonReducibleUnknown;
8907
- };
8908
9558
  "trigger:OnChange": {
8909
9559
  type: "trigger:OnChange";
8910
9560
  params: {
@@ -8917,6 +9567,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8917
9567
  mode: AlignmentMode;
8918
9568
  };
8919
9569
  };
9570
+ "notations.highlight": {
9571
+ type: "notations.highlight";
9572
+ params: {
9573
+ notation: ElementNotation;
9574
+ kind?: string;
9575
+ };
9576
+ };
9577
+ "xyflow:fitDiagram": {
9578
+ type: "xyflow:fitDiagram";
9579
+ params: {
9580
+ duration?: number;
9581
+ bounds?: BBox;
9582
+ } | undefined;
9583
+ };
9584
+ closeAllOverlays: {
9585
+ type: "closeAllOverlays";
9586
+ params: NonReducibleUnknown;
9587
+ };
8920
9588
  "trigger:NavigateTo": {
8921
9589
  type: "trigger:NavigateTo";
8922
9590
  params: {
@@ -8964,11 +9632,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8964
9632
  type: "updateFeatures";
8965
9633
  params: NonReducibleUnknown;
8966
9634
  };
9635
+ startSyncLayout: {
9636
+ type: "startSyncLayout";
9637
+ params: NonReducibleUnknown;
9638
+ };
8967
9639
  stopSyncLayout: {
8968
9640
  type: "stopSyncLayout";
8969
9641
  params: NonReducibleUnknown;
8970
9642
  };
8971
9643
  }>, Values<{
9644
+ isReady: {
9645
+ type: "isReady";
9646
+ params: unknown;
9647
+ };
8972
9648
  "enabled: FitView": {
8973
9649
  type: "enabled: FitView";
8974
9650
  params: unknown;
@@ -9031,7 +9707,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9031
9707
  }, {
9032
9708
  type: "same view";
9033
9709
  params: unknown;
9034
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9710
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9035
9711
  readonly initial: "idle";
9036
9712
  readonly context: ({ input }: {
9037
9713
  spawn: {
@@ -9290,7 +9966,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9290
9966
  }, {
9291
9967
  type: "same view";
9292
9968
  params: unknown;
9293
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9969
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9294
9970
  readonly initial: "idle";
9295
9971
  readonly context: ({ input }: {
9296
9972
  spawn: {
@@ -9550,7 +10226,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9550
10226
  }, {
9551
10227
  type: "same view";
9552
10228
  params: unknown;
9553
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10229
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9554
10230
  readonly initial: "idle";
9555
10231
  readonly context: ({ input }: {
9556
10232
  spawn: {
@@ -9824,7 +10500,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9824
10500
  }, {
9825
10501
  type: "same view";
9826
10502
  params: unknown;
9827
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10503
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9828
10504
  readonly initial: "idle";
9829
10505
  readonly context: ({ input }: {
9830
10506
  spawn: {
@@ -10080,7 +10756,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10080
10756
  }, {
10081
10757
  type: "same view";
10082
10758
  params: unknown;
10083
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10759
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10084
10760
  readonly initial: "idle";
10085
10761
  readonly context: ({ input }: {
10086
10762
  spawn: {
@@ -10336,7 +11012,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10336
11012
  }, {
10337
11013
  type: "same view";
10338
11014
  params: unknown;
10339
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11015
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10340
11016
  readonly initial: "idle";
10341
11017
  readonly context: ({ input }: {
10342
11018
  spawn: {
@@ -10594,7 +11270,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10594
11270
  }, {
10595
11271
  type: "same view";
10596
11272
  params: unknown;
10597
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11273
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10598
11274
  readonly initial: "idle";
10599
11275
  readonly context: ({ input }: {
10600
11276
  spawn: {
@@ -10861,17 +11537,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10861
11537
  edge: Types.Edge;
10862
11538
  };
10863
11539
  };
10864
- "xyflow:fitDiagram": {
10865
- type: "xyflow:fitDiagram";
10866
- params: {
10867
- duration?: number;
10868
- bounds?: BBox;
10869
- } | undefined;
10870
- };
10871
- closeAllOverlays: {
10872
- type: "closeAllOverlays";
10873
- params: NonReducibleUnknown;
10874
- };
10875
11540
  "trigger:OnChange": {
10876
11541
  type: "trigger:OnChange";
10877
11542
  params: {
@@ -10884,6 +11549,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10884
11549
  mode: AlignmentMode;
10885
11550
  };
10886
11551
  };
11552
+ "notations.highlight": {
11553
+ type: "notations.highlight";
11554
+ params: {
11555
+ notation: ElementNotation;
11556
+ kind?: string;
11557
+ };
11558
+ };
11559
+ "xyflow:fitDiagram": {
11560
+ type: "xyflow:fitDiagram";
11561
+ params: {
11562
+ duration?: number;
11563
+ bounds?: BBox;
11564
+ } | undefined;
11565
+ };
11566
+ closeAllOverlays: {
11567
+ type: "closeAllOverlays";
11568
+ params: NonReducibleUnknown;
11569
+ };
10887
11570
  "trigger:NavigateTo": {
10888
11571
  type: "trigger:NavigateTo";
10889
11572
  params: {
@@ -10931,11 +11614,19 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10931
11614
  type: "updateFeatures";
10932
11615
  params: NonReducibleUnknown;
10933
11616
  };
11617
+ startSyncLayout: {
11618
+ type: "startSyncLayout";
11619
+ params: NonReducibleUnknown;
11620
+ };
10934
11621
  stopSyncLayout: {
10935
11622
  type: "stopSyncLayout";
10936
11623
  params: NonReducibleUnknown;
10937
11624
  };
10938
11625
  }>, Values<{
11626
+ isReady: {
11627
+ type: "isReady";
11628
+ params: unknown;
11629
+ };
10939
11630
  "enabled: FitView": {
10940
11631
  type: "enabled: FitView";
10941
11632
  params: unknown;
@@ -10981,7 +11672,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10981
11672
  readonly 'update.inputs': {
10982
11673
  readonly actions: ActionFunction<Context, {
10983
11674
  type: "update.inputs";
10984
- inputs: Partial<Omit<Input, "view">>;
11675
+ inputs: Partial<Omit<Input, "view" | "xystore">>;
10985
11676
  }, Events, undefined, Values<{
10986
11677
  syncManualLayoutActorLogic: {
10987
11678
  src: "syncManualLayoutActorLogic";
@@ -10993,7 +11684,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10993
11684
  }, {
10994
11685
  type: "same view";
10995
11686
  params: unknown;
10996
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11687
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
10997
11688
  readonly initial: "idle";
10998
11689
  readonly context: ({ input }: {
10999
11690
  spawn: {
@@ -11252,7 +11943,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
11252
11943
  }, {
11253
11944
  type: "same view";
11254
11945
  params: unknown;
11255
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11946
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11256
11947
  readonly initial: "idle";
11257
11948
  readonly context: ({ input }: {
11258
11949
  spawn: {