@likec4/diagram 1.27.1 → 1.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/bundle/index.js +2147 -6730
  2. package/dist/LikeC4Diagram.js +1 -1
  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 +0 -1
  10. package/dist/base/primitives/element/ElementActionButtons.js +5 -10
  11. package/dist/base/primitives/element/ElementNodeContainer.css.js +4 -4
  12. package/dist/base/updateEdges.js +1 -9
  13. package/dist/base/updateNodes.js +1 -12
  14. package/dist/bundle/LikeC4View.js +2 -2
  15. package/dist/bundle/LikeC4View.props.d.ts +7 -7
  16. package/dist/hooks/useCurrentViewId.js +8 -2
  17. package/dist/hooks/useDiagram.d.ts +1517 -684
  18. package/dist/hooks/useDiagram.js +16 -8
  19. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +3 -3
  20. package/dist/likec4diagram/ui/notation/NotationPanel.js +10 -4
  21. package/dist/node_modules/.pnpm/mnemonist@0.40.3_patch_hash_5c12abb43fcff6fd81e53021b89075d53249640d165a2556cc1e58d71201a13a/node_modules/mnemonist/set.js +369 -0
  22. package/dist/overlays/Overlays.js +3 -1
  23. package/dist/overlays/element-details/actor.d.ts +2769 -173
  24. package/dist/overlays/overlay/Overlay.css.d.ts +26 -2
  25. package/dist/overlays/overlay/Overlay.css.js +66 -18
  26. package/dist/overlays/overlay/Overlay.d.ts +7 -6
  27. package/dist/overlays/overlay/Overlay.js +12 -8
  28. package/dist/overlays/overlaysActor.js +2 -2
  29. package/dist/overlays/relationship-details/RelationshipDetails.js +113 -70
  30. package/dist/overlays/relationship-details/SelectEdge.d.ts +1 -1
  31. package/dist/overlays/relationship-details/SelectEdge.js +15 -9
  32. package/dist/overlays/relationship-details/_types.d.ts +4 -1
  33. package/dist/overlays/relationship-details/actor.d.ts +415 -128
  34. package/dist/overlays/relationship-details/actor.js +162 -53
  35. package/dist/overlays/relationship-details/compute.d.ts +12 -0
  36. package/dist/overlays/relationship-details/compute.js +139 -0
  37. package/dist/overlays/relationship-details/custom/ElementActions.js +27 -5
  38. package/dist/overlays/relationship-details/custom/edgeTypes.js +1 -1
  39. package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +2 -1
  40. package/dist/overlays/relationship-details/hooks.d.ts +336 -6
  41. package/dist/overlays/relationship-details/hooks.js +9 -7
  42. package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +12 -0
  43. package/dist/overlays/relationship-details/layout-to-xyflow.js +149 -0
  44. package/dist/overlays/relationship-details/layout.d.ts +22 -0
  45. package/dist/overlays/relationship-details/layout.js +314 -0
  46. package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +3 -1
  47. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +2 -2
  48. package/dist/overlays/relationships-browser/_types.d.ts +2 -0
  49. package/dist/overlays/relationships-browser/actor.d.ts +130 -14
  50. package/dist/overlays/relationships-browser/actor.js +30 -16
  51. package/dist/overlays/relationships-browser/custom/ElementActions.js +5 -3
  52. package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +3 -1
  53. package/dist/overlays/relationships-browser/custom/edgeTypes.js +1 -1
  54. package/dist/overlays/relationships-browser/hooks.d.ts +3 -1
  55. package/dist/overlays/relationships-browser/hooks.js +1 -1
  56. package/dist/overlays/relationships-browser/{-useRelationshipsView.d.ts → layout.d.ts} +2 -0
  57. package/dist/overlays/relationships-browser/{-useRelationshipsView.js → layout.js} +19 -2
  58. package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +1 -1
  59. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +3 -1
  60. package/dist/packages/core/src/compute-view/relationships-view/compute.js +1 -1
  61. package/dist/packages/core/src/model/connection/model/ConnectionModel.js +121 -0
  62. package/dist/packages/core/src/model/connection/model/find.js +39 -0
  63. package/dist/packages/core/src/model/connection/ops.js +7 -0
  64. package/dist/packages/core/src/utils/const.js +3 -0
  65. package/dist/packages/core/src/utils/fqn.js +9 -1
  66. package/dist/packages/core/src/utils/iterable/find.js +21 -0
  67. package/dist/packages/core/src/utils/iterable/some.js +21 -0
  68. package/dist/packages/core/src/utils/set.js +48 -0
  69. package/dist/packages/core/src/utils/string-hash.js +13 -0
  70. package/dist/state/diagram-machine.d.ts +1552 -703
  71. package/dist/state/diagram-machine.js +39 -3
  72. package/dist/state/syncManualLayoutActor.d.ts +1 -1
  73. package/dist/styles.css.js +1 -1
  74. package/package.json +11 -11
  75. package/src/LikeC4Diagram.props.ts +7 -3
  76. package/src/LikeC4Diagram.tsx +1 -1
  77. package/src/StaticLikeC4Diagram.tsx +1 -1
  78. package/src/base/BaseXYFlow.tsx +2 -1
  79. package/src/base/primitives/compound/CompoundNodeContainer.tsx +0 -2
  80. package/src/base/primitives/element/ElementActionButtons.tsx +6 -7
  81. package/src/base/primitives/element/ElementNodeContainer.css.ts +4 -4
  82. package/src/base/updateEdges.ts +8 -8
  83. package/src/base/updateNodes.ts +11 -11
  84. package/src/bundle/LikeC4View.props.ts +7 -7
  85. package/src/bundle/LikeC4View.tsx +2 -2
  86. package/src/hooks/useCurrentViewId.ts +4 -2
  87. package/src/hooks/useDiagram.ts +18 -9
  88. package/src/likec4diagram/ui/notation/NotationPanel.css.ts +2 -2
  89. package/src/likec4diagram/ui/notation/NotationPanel.tsx +8 -6
  90. package/src/overlays/Overlays.tsx +3 -1
  91. package/src/overlays/overlay/Overlay.css.ts +67 -17
  92. package/src/overlays/overlay/Overlay.tsx +26 -21
  93. package/src/overlays/overlaysActor.ts +1 -1
  94. package/src/overlays/relationship-details/RelationshipDetails.tsx +131 -68
  95. package/src/overlays/relationship-details/SelectEdge.tsx +19 -12
  96. package/src/overlays/relationship-details/_types.ts +3 -1
  97. package/src/overlays/relationship-details/actor.ts +217 -68
  98. package/src/overlays/relationship-details/compute.ts +186 -0
  99. package/src/overlays/relationship-details/custom/ElementActions.tsx +27 -18
  100. package/src/overlays/relationship-details/custom/edgeTypes.tsx +1 -1
  101. package/src/overlays/relationship-details/hooks.ts +10 -8
  102. package/src/overlays/relationship-details/layout-to-xyflow.ts +195 -0
  103. package/src/overlays/relationship-details/layout.ts +470 -0
  104. package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +2 -2
  105. package/src/overlays/relationships-browser/_types.ts +2 -0
  106. package/src/overlays/relationships-browser/actor.ts +39 -14
  107. package/src/overlays/relationships-browser/custom/ElementActions.tsx +5 -3
  108. package/src/overlays/relationships-browser/custom/edgeTypes.tsx +1 -1
  109. package/src/overlays/relationships-browser/hooks.ts +2 -2
  110. package/src/overlays/relationships-browser/{-useRelationshipsView.ts → layout.ts} +23 -13
  111. package/src/overlays/relationships-browser/useViewToNodesEdges.ts +3 -1
  112. package/src/state/diagram-machine.ts +51 -6
  113. package/dist/overlays/relationship-details/useLayoutedDetails.d.ts +0 -19
  114. package/dist/overlays/relationship-details/useLayoutedDetails.js +0 -267
  115. 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';
@@ -26,7 +26,7 @@ export interface Input {
26
26
  xystore: XYStoreApi;
27
27
  zoomable: boolean;
28
28
  pannable: boolean;
29
- fitViewPadding: number;
29
+ fitViewPadding: PaddingWithUnit;
30
30
  nodesSelectable: boolean;
31
31
  }
32
32
  type ToggledFeatures = Partial<EnabledFeatures>;
@@ -135,7 +135,12 @@ export type Events = HotKeyEvent | {
135
135
  fromNode?: NodeId | undefined;
136
136
  } | {
137
137
  type: 'open.relationshipDetails';
138
- edgeId: EdgeId;
138
+ params: {
139
+ edgeId: EdgeId;
140
+ } | {
141
+ source: Fqn;
142
+ target: Fqn;
143
+ };
139
144
  } | {
140
145
  type: 'open.relationshipsBrowser';
141
146
  fqn: Fqn;
@@ -167,6 +172,12 @@ export type Events = HotKeyEvent | {
167
172
  direction: 'next' | 'previous';
168
173
  } | {
169
174
  type: 'walkthrough.end';
175
+ } | {
176
+ type: 'notations.highlight';
177
+ notation: ElementNotation;
178
+ kind?: string;
179
+ } | {
180
+ type: 'notations.unhighlight';
170
181
  } | {
171
182
  type: 'toggle.feature';
172
183
  feature: FeatureName;
@@ -185,7 +196,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
185
196
  }, {
186
197
  type: "same view";
187
198
  params: unknown;
188
- }, "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, {
189
200
  readonly initial: "idle";
190
201
  readonly context: ({ input }: {
191
202
  spawn: {
@@ -428,7 +439,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
428
439
  }, {
429
440
  type: "same view";
430
441
  params: unknown;
431
- }, "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, {
432
443
  readonly initial: "idle";
433
444
  readonly context: ({ input }: {
434
445
  spawn: {
@@ -695,17 +706,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
695
706
  edge: Types.Edge;
696
707
  };
697
708
  };
698
- "xyflow:fitDiagram": {
699
- type: "xyflow:fitDiagram";
700
- params: {
701
- duration?: number;
702
- bounds?: BBox;
703
- } | undefined;
704
- };
705
- closeAllOverlays: {
706
- type: "closeAllOverlays";
707
- params: NonReducibleUnknown;
708
- };
709
709
  "trigger:OnChange": {
710
710
  type: "trigger:OnChange";
711
711
  params: {
@@ -718,6 +718,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
718
718
  mode: AlignmentMode;
719
719
  };
720
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
+ };
721
739
  "trigger:NavigateTo": {
722
740
  type: "trigger:NavigateTo";
723
741
  params: {
@@ -834,7 +852,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
834
852
  }, {
835
853
  type: "same view";
836
854
  params: unknown;
837
- }, "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, {
838
856
  readonly initial: "idle";
839
857
  readonly context: ({ input }: {
840
858
  spawn: {
@@ -931,7 +949,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
931
949
  }, {
932
950
  type: "same view";
933
951
  params: unknown;
934
- }, "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, {
935
953
  readonly initial: "idle";
936
954
  readonly context: ({ input }: {
937
955
  spawn: {
@@ -1354,7 +1372,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1354
1372
  }, {
1355
1373
  type: "same view";
1356
1374
  params: unknown;
1357
- }, "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, {
1358
1376
  readonly initial: "idle";
1359
1377
  readonly context: ({ input }: {
1360
1378
  spawn: {
@@ -1654,7 +1672,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1654
1672
  xystore: XYStoreApi;
1655
1673
  zoomable: boolean;
1656
1674
  pannable: boolean;
1657
- fitViewPadding: number;
1675
+ fitViewPadding: PaddingWithUnit;
1658
1676
  nodesSelectable: boolean;
1659
1677
  };
1660
1678
  readonly states: {
@@ -1675,7 +1693,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1675
1693
  }, {
1676
1694
  type: "same view";
1677
1695
  params: unknown;
1678
- }, "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, {
1679
1697
  readonly initial: "idle";
1680
1698
  readonly context: ({ input }: {
1681
1699
  spawn: {
@@ -1937,7 +1955,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
1937
1955
  }, {
1938
1956
  type: "same view";
1939
1957
  params: unknown;
1940
- }, "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, {
1941
1959
  readonly initial: "idle";
1942
1960
  readonly context: ({ input }: {
1943
1961
  spawn: {
@@ -2203,7 +2221,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2203
2221
  }, {
2204
2222
  type: "same view";
2205
2223
  params: unknown;
2206
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2224
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
2207
2225
  readonly initial: "idle";
2208
2226
  readonly context: ({ input }: {
2209
2227
  spawn: {
@@ -2471,7 +2489,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2471
2489
  }, {
2472
2490
  type: "same view";
2473
2491
  params: unknown;
2474
- }, "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, {
2475
2493
  readonly initial: "idle";
2476
2494
  readonly context: ({ input }: {
2477
2495
  spawn: {
@@ -2729,7 +2747,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2729
2747
  }, {
2730
2748
  type: "same view";
2731
2749
  params: unknown;
2732
- }, "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, {
2733
2751
  readonly initial: "idle";
2734
2752
  readonly context: ({ input }: {
2735
2753
  spawn: {
@@ -2987,7 +3005,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
2987
3005
  }, {
2988
3006
  type: "same view";
2989
3007
  params: unknown;
2990
- }, "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, {
2991
3009
  readonly initial: "idle";
2992
3010
  readonly context: ({ input }: {
2993
3011
  spawn: {
@@ -3263,7 +3281,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3263
3281
  }, {
3264
3282
  type: "same view";
3265
3283
  params: unknown;
3266
- }, "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, {
3267
3285
  readonly initial: "idle";
3268
3286
  readonly context: ({ input }: {
3269
3287
  spawn: {
@@ -3535,7 +3553,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3535
3553
  readonly 'open.relationshipDetails': {
3536
3554
  readonly actions: ActionFunction<Context, {
3537
3555
  type: "open.relationshipDetails";
3538
- edgeId: EdgeId;
3556
+ params: {
3557
+ edgeId: EdgeId;
3558
+ } | {
3559
+ source: Fqn;
3560
+ target: Fqn;
3561
+ };
3539
3562
  }, Events, undefined, never, never, never, never, never>;
3540
3563
  };
3541
3564
  readonly 'open.source': {
@@ -3571,7 +3594,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
3571
3594
  }, {
3572
3595
  type: "same view";
3573
3596
  params: unknown;
3574
- }, "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, {
3575
3598
  readonly initial: "idle";
3576
3599
  readonly context: ({ input }: {
3577
3600
  spawn: {
@@ -4059,155 +4082,430 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4059
4082
  };
4060
4083
  };
4061
4084
  };
4062
- readonly 'saveManualLayout.*': {
4063
- readonly guard: "not readonly";
4064
- readonly actions: ActionFunction<Context, {
4065
- type: "saveManualLayout.schedule";
4066
- } | {
4067
- type: "saveManualLayout.cancel";
4068
- }, 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
+ };
4069
4101
  };
4070
- };
4071
- readonly exit: readonly [ CancelAction<Context, Events, undefined, Events>];
4072
- readonly states: {
4073
- readonly idle: {
4074
- readonly id: "idle";
4075
- readonly on: {
4076
- readonly 'xyflow.nodeClick': readonly [{
4077
- readonly guard: any;
4078
- readonly actions: readonly [ ActionFunction<Context, {
4079
- type: "xyflow.nodeClick";
4080
- node: Types.Node;
4081
- }, Events, undefined, Values<{
4082
- syncManualLayoutActorLogic: {
4083
- src: "syncManualLayoutActorLogic";
4084
- logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
4085
- type: "trigger:OnChange";
4086
- params: {
4087
- change: ViewChange;
4088
- };
4089
- }, {
4090
- type: "same view";
4091
- params: unknown;
4092
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
4093
- readonly initial: "idle";
4094
- readonly context: ({ input }: {
4095
- spawn: {
4096
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
4097
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
4098
- id?: never;
4099
- systemId?: string;
4100
- input?: InputFrom<TLogic>;
4101
- syncSnapshot?: boolean;
4102
- } & { [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";
4103
4140
  };
4104
- input: Input;
4105
- self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
4106
- }) => {
4107
- parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
4108
- viewId: ViewId;
4109
4141
  };
4110
- readonly states: {
4111
- readonly idle: {
4112
- readonly tags: "ready";
4113
- readonly on: {
4114
- readonly sync: {
4115
- readonly target: "pending";
4116
- };
4117
- };
4142
+ };
4143
+ readonly paused: {
4144
+ readonly tags: "pending";
4145
+ readonly on: {
4146
+ readonly sync: {
4147
+ readonly target: "pending";
4118
4148
  };
4119
- readonly paused: {
4120
- readonly tags: "pending";
4121
- readonly on: {
4122
- readonly sync: {
4123
- readonly target: "pending";
4124
- };
4125
- };
4149
+ };
4150
+ };
4151
+ readonly pending: {
4152
+ readonly tags: "pending";
4153
+ readonly on: {
4154
+ readonly sync: {
4155
+ readonly target: "pending";
4156
+ readonly reenter: true;
4126
4157
  };
4127
- readonly pending: {
4128
- readonly tags: "pending";
4129
- readonly on: {
4130
- readonly sync: {
4131
- readonly target: "pending";
4132
- readonly reenter: true;
4133
- };
4134
- readonly cancel: {
4135
- readonly target: "paused";
4136
- };
4137
- };
4138
- readonly after: {
4139
- readonly timeout: readonly [{
4140
- readonly guard: "same view";
4141
- readonly actions: {
4142
- readonly type: "trigger:OnChange";
4143
- readonly params: ({ context }: {
4144
- context: Readonly< Input>;
4145
- event: SyncLayoutEvents;
4146
- }) => {
4147
- change: ViewChange.SaveManualLayout;
4148
- };
4149
- };
4150
- readonly target: "synced";
4151
- }, {
4152
- readonly target: "stopped";
4153
- }];
4154
- };
4158
+ readonly cancel: {
4159
+ readonly target: "paused";
4155
4160
  };
4156
- readonly synced: {
4157
- readonly tags: "ready";
4158
- readonly on: {
4159
- readonly sync: {
4160
- readonly target: "pending";
4161
+ };
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;
4161
4172
  };
4162
4173
  };
4163
- };
4164
- readonly stopped: {
4165
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
4166
- readonly type: "final";
4167
- };
4174
+ readonly target: "synced";
4175
+ }, {
4176
+ readonly target: "stopped";
4177
+ }];
4168
4178
  };
4179
+ };
4180
+ readonly synced: {
4181
+ readonly tags: "ready";
4169
4182
  readonly on: {
4170
- readonly synced: {
4171
- readonly target: ".synced";
4172
- };
4173
- readonly stop: {
4174
- readonly target: ".stopped";
4183
+ readonly sync: {
4184
+ readonly target: "pending";
4175
4185
  };
4176
4186
  };
4177
- }>;
4178
- id: "syncLayout";
4187
+ };
4188
+ readonly stopped: {
4189
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
4190
+ readonly type: "final";
4191
+ };
4179
4192
  };
4180
- hotkeyActorLogic: {
4181
- src: "hotkeyActorLogic";
4182
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
4183
- id: "hotkey";
4193
+ readonly on: {
4194
+ readonly synced: {
4195
+ readonly target: ".synced";
4196
+ };
4197
+ readonly stop: {
4198
+ readonly target: ".stopped";
4199
+ };
4184
4200
  };
4185
- overlaysActorLogic: {
4186
- src: "overlaysActorLogic";
4187
- logic: StateMachine<OverlaysContext, OverlayActorEvent, {
4188
- [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
4189
- [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
4190
- [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
4191
- hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
4192
- }, Values<{
4193
- elementDetails: {
4194
- src: "elementDetails";
4195
- logic: ElementDetailsLogic;
4196
- id: `elementDetails-${number}`;
4197
- };
4198
- relationshipsBrowser: {
4199
- src: "relationshipsBrowser";
4200
- logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
4201
- id: `relationshipsBrowser-${number}`;
4202
- };
4203
- relationshipDetails: {
4204
- src: "relationshipDetails";
4205
- logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
4206
- id: `relationshipDetails-${number}`;
4207
- };
4208
- hotkey: {
4209
- src: "hotkey";
4210
- logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
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
+ };
4483
+ overlaysActorLogic: {
4484
+ src: "overlaysActorLogic";
4485
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
4486
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
4487
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
4488
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
4489
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
4490
+ }, Values<{
4491
+ elementDetails: {
4492
+ src: "elementDetails";
4493
+ logic: ElementDetailsLogic;
4494
+ id: `elementDetails-${number}`;
4495
+ };
4496
+ relationshipsBrowser: {
4497
+ src: "relationshipsBrowser";
4498
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
4499
+ id: `relationshipsBrowser-${number}`;
4500
+ };
4501
+ relationshipDetails: {
4502
+ src: "relationshipDetails";
4503
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
4504
+ id: `relationshipDetails-${number}`;
4505
+ };
4506
+ hotkey: {
4507
+ src: "hotkey";
4508
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
4211
4509
  id: "hotkey";
4212
4510
  };
4213
4511
  }>, Values<{
@@ -4350,7 +4648,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4350
4648
  }, {
4351
4649
  type: "same view";
4352
4650
  params: unknown;
4353
- }, "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, {
4354
4652
  readonly initial: "idle";
4355
4653
  readonly context: ({ input }: {
4356
4654
  spawn: {
@@ -4625,7 +4923,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4625
4923
  }, {
4626
4924
  type: "same view";
4627
4925
  params: unknown;
4628
- }, "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, {
4629
4927
  readonly initial: "idle";
4630
4928
  readonly context: ({ input }: {
4631
4929
  spawn: {
@@ -4884,7 +5182,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
4884
5182
  }, {
4885
5183
  type: "same view";
4886
5184
  params: unknown;
4887
- }, "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, {
4888
5186
  readonly initial: "idle";
4889
5187
  readonly context: ({ input }: {
4890
5188
  spawn: {
@@ -5137,7 +5435,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5137
5435
  }, {
5138
5436
  type: "same view";
5139
5437
  params: unknown;
5140
- }, "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, {
5141
5439
  readonly initial: "idle";
5142
5440
  readonly context: ({ input }: {
5143
5441
  spawn: {
@@ -5391,7 +5689,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5391
5689
  }, {
5392
5690
  type: "same view";
5393
5691
  params: unknown;
5394
- }, "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, {
5395
5693
  readonly initial: "idle";
5396
5694
  readonly context: ({ input }: {
5397
5695
  spawn: {
@@ -5649,13 +5947,32 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5649
5947
  onEdgeMouseEnter: {
5650
5948
  type: "onEdgeMouseEnter";
5651
5949
  params: {
5652
- edge: Types.Edge;
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";
5967
+ params: {
5968
+ mode: AlignmentMode;
5653
5969
  };
5654
5970
  };
5655
- onEdgeMouseLeave: {
5656
- type: "onEdgeMouseLeave";
5971
+ "notations.highlight": {
5972
+ type: "notations.highlight";
5657
5973
  params: {
5658
- edge: Types.Edge;
5974
+ notation: ElementNotation;
5975
+ kind?: string;
5659
5976
  };
5660
5977
  };
5661
5978
  "xyflow:fitDiagram": {
@@ -5669,18 +5986,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5669
5986
  type: "closeAllOverlays";
5670
5987
  params: NonReducibleUnknown;
5671
5988
  };
5672
- "trigger:OnChange": {
5673
- type: "trigger:OnChange";
5674
- params: {
5675
- change: ViewChange;
5676
- };
5677
- };
5678
- "layout.align": {
5679
- type: "layout.align";
5680
- params: {
5681
- mode: AlignmentMode;
5682
- };
5683
- };
5684
5989
  "trigger:NavigateTo": {
5685
5990
  type: "trigger:NavigateTo";
5686
5991
  params: {
@@ -5801,7 +6106,269 @@ export declare const diagramMachine: StateMachine<Context, Events, {
5801
6106
  }, {
5802
6107
  type: "same view";
5803
6108
  params: unknown;
5804
- }, "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, {
5805
6372
  readonly initial: "idle";
5806
6373
  readonly context: ({ input }: {
5807
6374
  spawn: {
@@ -6043,16 +6610,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6043
6610
  }>;
6044
6611
  id: "overlays";
6045
6612
  };
6046
- }>, never, never, never, never>, ActionFunction<Context, {
6047
- type: "xyflow.nodeClick";
6048
- node: Types.Node;
6049
- }, Events, undefined, never, never, never, never, never>];
6050
- }];
6051
- readonly 'focus.node': {
6052
- readonly actions: readonly [ ActionFunction<Context, {
6053
- type: "focus.node";
6054
- nodeId: NodeId;
6055
- }, Events, undefined, Values<{
6613
+ }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
6056
6614
  syncManualLayoutActorLogic: {
6057
6615
  src: "syncManualLayoutActorLogic";
6058
6616
  logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
@@ -6063,7 +6621,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6063
6621
  }, {
6064
6622
  type: "same view";
6065
6623
  params: unknown;
6066
- }, "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, {
6067
6625
  readonly initial: "idle";
6068
6626
  readonly context: ({ input }: {
6069
6627
  spawn: {
@@ -6305,7 +6863,15 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6305
6863
  }>;
6306
6864
  id: "overlays";
6307
6865
  };
6308
- }>, 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<{
6309
6875
  syncManualLayoutActorLogic: {
6310
6876
  src: "syncManualLayoutActorLogic";
6311
6877
  logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
@@ -6316,7 +6882,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6316
6882
  }, {
6317
6883
  type: "same view";
6318
6884
  params: unknown;
6319
- }, "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, {
6320
6886
  readonly initial: "idle";
6321
6887
  readonly context: ({ input }: {
6322
6888
  spawn: {
@@ -6558,14 +7124,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6558
7124
  }>;
6559
7125
  id: "overlays";
6560
7126
  };
6561
- }>, never, never, never, never>, "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
6562
- };
6563
- readonly 'key.esc': {
7127
+ }>, never, never, never, never>;
6564
7128
  readonly target: "idle";
6565
7129
  };
6566
- readonly 'xyflow.paneClick': {
7130
+ readonly 'notations.unhighlight': {
6567
7131
  readonly actions: ActionFunction<Context, {
6568
- type: "xyflow.paneClick";
7132
+ type: "notations.unhighlight";
6569
7133
  }, Events, undefined, Values<{
6570
7134
  syncManualLayoutActorLogic: {
6571
7135
  src: "syncManualLayoutActorLogic";
@@ -6577,7 +7141,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6577
7141
  }, {
6578
7142
  type: "same view";
6579
7143
  params: unknown;
6580
- }, "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, {
6581
7145
  readonly initial: "idle";
6582
7146
  readonly context: ({ input }: {
6583
7147
  spawn: {
@@ -6758,74 +7322,326 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6758
7322
  };
6759
7323
  readonly initial: "idle";
6760
7324
  readonly on: {
6761
- readonly 'open.elementDetails': {
6762
- readonly actions: "openElementDetails";
6763
- readonly target: ".active";
6764
- readonly reenter: false;
6765
- };
6766
- readonly 'open.relationshipDetails': {
6767
- readonly actions: "openRelationshipDetails";
6768
- readonly target: ".active";
6769
- readonly reenter: false;
6770
- };
6771
- readonly 'open.relationshipsBrowser': {
6772
- readonly actions: "openRelationshipsBrowser";
6773
- readonly target: ".active";
6774
- readonly reenter: false;
6775
- };
6776
- };
6777
- readonly states: {
6778
- readonly idle: {};
6779
- readonly active: {
6780
- readonly entry: "listenToEsc";
6781
- readonly exit: "stopListeningToEsc";
6782
- readonly on: {
6783
- readonly close: readonly [{
6784
- readonly guard: "close specific overlay?";
6785
- readonly actions: {
6786
- readonly type: "closeSpecificOverlay";
6787
- readonly params: ({ event }: {
6788
- context: OverlaysContext;
6789
- event: {
6790
- type: "close";
6791
- actorId?: string | undefined;
6792
- };
6793
- }) => {
6794
- actorId: string;
6795
- };
7325
+ readonly 'open.elementDetails': {
7326
+ readonly actions: "openElementDetails";
7327
+ readonly target: ".active";
7328
+ readonly reenter: false;
7329
+ };
7330
+ readonly 'open.relationshipDetails': {
7331
+ readonly actions: "openRelationshipDetails";
7332
+ readonly target: ".active";
7333
+ readonly reenter: false;
7334
+ };
7335
+ readonly 'open.relationshipsBrowser': {
7336
+ readonly actions: "openRelationshipsBrowser";
7337
+ readonly target: ".active";
7338
+ readonly reenter: false;
7339
+ };
7340
+ };
7341
+ readonly states: {
7342
+ readonly idle: {};
7343
+ readonly active: {
7344
+ readonly entry: "listenToEsc";
7345
+ readonly exit: "stopListeningToEsc";
7346
+ readonly on: {
7347
+ readonly close: readonly [{
7348
+ readonly guard: "close specific overlay?";
7349
+ readonly actions: {
7350
+ readonly type: "closeSpecificOverlay";
7351
+ readonly params: ({ event }: {
7352
+ context: OverlaysContext;
7353
+ event: {
7354
+ type: "close";
7355
+ actorId?: string | undefined;
7356
+ };
7357
+ }) => {
7358
+ actorId: string;
7359
+ };
7360
+ };
7361
+ readonly target: "closing";
7362
+ }, {
7363
+ readonly actions: "closeLastOverlay";
7364
+ readonly target: "closing";
7365
+ }];
7366
+ readonly 'close.all': {
7367
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
7368
+ readonly target: "idle";
7369
+ };
7370
+ };
7371
+ };
7372
+ readonly closing: {
7373
+ readonly always: readonly [{
7374
+ readonly guard: "has overlays?";
7375
+ readonly target: "active";
7376
+ }, {
7377
+ readonly actions: "stopListeningToEsc";
7378
+ readonly target: "idle";
7379
+ }];
7380
+ };
7381
+ };
7382
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
7383
+ }>;
7384
+ id: "overlays";
7385
+ };
7386
+ }>, never, never, never, never>;
7387
+ };
7388
+ };
7389
+ };
7390
+ readonly walkthrough: {
7391
+ readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
7392
+ syncManualLayoutActorLogic: {
7393
+ src: "syncManualLayoutActorLogic";
7394
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
7395
+ type: "trigger:OnChange";
7396
+ params: {
7397
+ change: ViewChange;
7398
+ };
7399
+ }, {
7400
+ type: "same view";
7401
+ params: unknown;
7402
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7403
+ readonly initial: "idle";
7404
+ readonly context: ({ input }: {
7405
+ spawn: {
7406
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
7407
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
7408
+ id?: never;
7409
+ systemId?: string;
7410
+ input?: InputFrom<TLogic>;
7411
+ syncSnapshot?: boolean;
7412
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
7413
+ };
7414
+ input: Input;
7415
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
7416
+ }) => {
7417
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
7418
+ viewId: ViewId;
7419
+ };
7420
+ readonly states: {
7421
+ readonly idle: {
7422
+ readonly tags: "ready";
7423
+ readonly on: {
7424
+ readonly sync: {
7425
+ readonly target: "pending";
7426
+ };
7427
+ };
7428
+ };
7429
+ readonly paused: {
7430
+ readonly tags: "pending";
7431
+ readonly on: {
7432
+ readonly sync: {
7433
+ readonly target: "pending";
7434
+ };
7435
+ };
7436
+ };
7437
+ readonly pending: {
7438
+ readonly tags: "pending";
7439
+ readonly on: {
7440
+ readonly sync: {
7441
+ readonly target: "pending";
7442
+ readonly reenter: true;
7443
+ };
7444
+ readonly cancel: {
7445
+ readonly target: "paused";
7446
+ };
7447
+ };
7448
+ readonly after: {
7449
+ readonly timeout: readonly [{
7450
+ readonly guard: "same view";
7451
+ readonly actions: {
7452
+ readonly type: "trigger:OnChange";
7453
+ readonly params: ({ context }: {
7454
+ context: Readonly< Input>;
7455
+ event: SyncLayoutEvents;
7456
+ }) => {
7457
+ change: ViewChange.SaveManualLayout;
7458
+ };
7459
+ };
7460
+ readonly target: "synced";
7461
+ }, {
7462
+ readonly target: "stopped";
7463
+ }];
7464
+ };
7465
+ };
7466
+ readonly synced: {
7467
+ readonly tags: "ready";
7468
+ readonly on: {
7469
+ readonly sync: {
7470
+ readonly target: "pending";
7471
+ };
7472
+ };
7473
+ };
7474
+ readonly stopped: {
7475
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
7476
+ readonly type: "final";
7477
+ };
7478
+ };
7479
+ readonly on: {
7480
+ readonly synced: {
7481
+ readonly target: ".synced";
7482
+ };
7483
+ readonly stop: {
7484
+ readonly target: ".stopped";
7485
+ };
7486
+ };
7487
+ }>;
7488
+ id: "syncLayout";
7489
+ };
7490
+ hotkeyActorLogic: {
7491
+ src: "hotkeyActorLogic";
7492
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
7493
+ id: "hotkey";
7494
+ };
7495
+ overlaysActorLogic: {
7496
+ src: "overlaysActorLogic";
7497
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
7498
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
7499
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
7500
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
7501
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
7502
+ }, Values<{
7503
+ elementDetails: {
7504
+ src: "elementDetails";
7505
+ logic: ElementDetailsLogic;
7506
+ id: `elementDetails-${number}`;
7507
+ };
7508
+ relationshipsBrowser: {
7509
+ src: "relationshipsBrowser";
7510
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
7511
+ id: `relationshipsBrowser-${number}`;
7512
+ };
7513
+ relationshipDetails: {
7514
+ src: "relationshipDetails";
7515
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
7516
+ id: `relationshipDetails-${number}`;
7517
+ };
7518
+ hotkey: {
7519
+ src: "hotkey";
7520
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
7521
+ id: "hotkey";
7522
+ };
7523
+ }>, Values<{
7524
+ closeLastOverlay: {
7525
+ type: "closeLastOverlay";
7526
+ params: NonReducibleUnknown;
7527
+ };
7528
+ closeSpecificOverlay: {
7529
+ type: "closeSpecificOverlay";
7530
+ params: {
7531
+ actorId: string;
7532
+ };
7533
+ };
7534
+ closeAllOverlays: {
7535
+ type: "closeAllOverlays";
7536
+ params: NonReducibleUnknown;
7537
+ };
7538
+ openElementDetails: {
7539
+ type: "openElementDetails";
7540
+ params: NonReducibleUnknown;
7541
+ };
7542
+ openRelationshipDetails: {
7543
+ type: "openRelationshipDetails";
7544
+ params: NonReducibleUnknown;
7545
+ };
7546
+ openRelationshipsBrowser: {
7547
+ type: "openRelationshipsBrowser";
7548
+ params: NonReducibleUnknown;
7549
+ };
7550
+ listenToEsc: {
7551
+ type: "listenToEsc";
7552
+ params: NonReducibleUnknown;
7553
+ };
7554
+ stopListeningToEsc: {
7555
+ type: "stopListeningToEsc";
7556
+ params: NonReducibleUnknown;
7557
+ };
7558
+ }>, Values<{
7559
+ "has overlays?": {
7560
+ type: "has overlays?";
7561
+ params: unknown;
7562
+ };
7563
+ "close specific overlay?": {
7564
+ type: "close specific overlay?";
7565
+ params: unknown;
7566
+ };
7567
+ "last: is relationshipDetails?": {
7568
+ type: "last: is relationshipDetails?";
7569
+ params: unknown;
7570
+ };
7571
+ "last: is relationshipsBrowser?": {
7572
+ type: "last: is relationshipsBrowser?";
7573
+ params: unknown;
7574
+ };
7575
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
7576
+ readonly id: "overlays";
7577
+ readonly context: () => {
7578
+ seq: number;
7579
+ overlays: never[];
7580
+ };
7581
+ readonly initial: "idle";
7582
+ readonly on: {
7583
+ readonly 'open.elementDetails': {
7584
+ readonly actions: "openElementDetails";
7585
+ readonly target: ".active";
7586
+ readonly reenter: false;
7587
+ };
7588
+ readonly 'open.relationshipDetails': {
7589
+ readonly actions: "openRelationshipDetails";
7590
+ readonly target: ".active";
7591
+ readonly reenter: false;
7592
+ };
7593
+ readonly 'open.relationshipsBrowser': {
7594
+ readonly actions: "openRelationshipsBrowser";
7595
+ readonly target: ".active";
7596
+ readonly reenter: false;
7597
+ };
7598
+ };
7599
+ readonly states: {
7600
+ readonly idle: {};
7601
+ readonly active: {
7602
+ readonly entry: "listenToEsc";
7603
+ readonly exit: "stopListeningToEsc";
7604
+ readonly on: {
7605
+ readonly close: readonly [{
7606
+ readonly guard: "close specific overlay?";
7607
+ readonly actions: {
7608
+ readonly type: "closeSpecificOverlay";
7609
+ readonly params: ({ event }: {
7610
+ context: OverlaysContext;
7611
+ event: {
7612
+ type: "close";
7613
+ actorId?: string | undefined;
6796
7614
  };
6797
- readonly target: "closing";
6798
- }, {
6799
- readonly actions: "closeLastOverlay";
6800
- readonly target: "closing";
6801
- }];
6802
- readonly 'close.all': {
6803
- readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
6804
- readonly target: "idle";
7615
+ }) => {
7616
+ actorId: string;
6805
7617
  };
6806
7618
  };
6807
- };
6808
- readonly closing: {
6809
- readonly always: readonly [{
6810
- readonly guard: "has overlays?";
6811
- readonly target: "active";
6812
- }, {
6813
- readonly actions: "stopListeningToEsc";
6814
- readonly target: "idle";
6815
- }];
7619
+ readonly target: "closing";
7620
+ }, {
7621
+ readonly actions: "closeLastOverlay";
7622
+ readonly target: "closing";
7623
+ }];
7624
+ readonly 'close.all': {
7625
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
7626
+ readonly target: "idle";
6816
7627
  };
6817
7628
  };
6818
- readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
6819
- }>;
6820
- id: "overlays";
7629
+ };
7630
+ readonly closing: {
7631
+ readonly always: readonly [{
7632
+ readonly guard: "has overlays?";
7633
+ readonly target: "active";
7634
+ }, {
7635
+ readonly actions: "stopListeningToEsc";
7636
+ readonly target: "idle";
7637
+ }];
7638
+ };
6821
7639
  };
6822
- }>, never, never, never, never>;
6823
- readonly target: "idle";
7640
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
7641
+ }>;
7642
+ id: "overlays";
6824
7643
  };
6825
- };
6826
- };
6827
- readonly walkthrough: {
6828
- readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
7644
+ }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
6829
7645
  syncManualLayoutActorLogic: {
6830
7646
  src: "syncManualLayoutActorLogic";
6831
7647
  logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
@@ -6836,7 +7652,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
6836
7652
  }, {
6837
7653
  type: "same view";
6838
7654
  params: unknown;
6839
- }, "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, {
6840
7656
  readonly initial: "idle";
6841
7657
  readonly context: ({ input }: {
6842
7658
  spawn: {
@@ -7089,7 +7905,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7089
7905
  }, {
7090
7906
  type: "same view";
7091
7907
  params: unknown;
7092
- }, "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, {
7093
7909
  readonly initial: "idle";
7094
7910
  readonly context: ({ input }: {
7095
7911
  spawn: {
@@ -7302,303 +8118,463 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7302
8118
  type: "close";
7303
8119
  actorId?: string | undefined;
7304
8120
  };
7305
- }) => {
7306
- actorId: string;
8121
+ }) => {
8122
+ actorId: string;
8123
+ };
8124
+ };
8125
+ readonly target: "closing";
8126
+ }, {
8127
+ readonly actions: "closeLastOverlay";
8128
+ readonly target: "closing";
8129
+ }];
8130
+ readonly 'close.all': {
8131
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8132
+ readonly target: "idle";
8133
+ };
8134
+ };
8135
+ };
8136
+ readonly closing: {
8137
+ readonly always: readonly [{
8138
+ readonly guard: "has overlays?";
8139
+ readonly target: "active";
8140
+ }, {
8141
+ readonly actions: "stopListeningToEsc";
8142
+ readonly target: "idle";
8143
+ }];
8144
+ };
8145
+ };
8146
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8147
+ }>;
8148
+ id: "overlays";
8149
+ };
8150
+ }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
8151
+ readonly on: {
8152
+ readonly 'key.esc': {
8153
+ readonly target: "idle";
8154
+ };
8155
+ readonly 'key.arrow.left': {
8156
+ readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
8157
+ };
8158
+ readonly 'key.arrow.right': {
8159
+ readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
8160
+ };
8161
+ readonly 'walkthrough.step': {
8162
+ readonly actions: ActionFunction<Context, {
8163
+ type: "walkthrough.step";
8164
+ direction: "next" | "previous";
8165
+ }, Events, undefined, Values<{
8166
+ syncManualLayoutActorLogic: {
8167
+ src: "syncManualLayoutActorLogic";
8168
+ logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
8169
+ type: "trigger:OnChange";
8170
+ params: {
8171
+ change: ViewChange;
8172
+ };
8173
+ }, {
8174
+ type: "same view";
8175
+ params: unknown;
8176
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8177
+ readonly initial: "idle";
8178
+ readonly context: ({ input }: {
8179
+ spawn: {
8180
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8181
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8182
+ id?: never;
8183
+ systemId?: string;
8184
+ input?: InputFrom<TLogic>;
8185
+ syncSnapshot?: boolean;
8186
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8187
+ };
8188
+ input: Input;
8189
+ self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
8190
+ }) => {
8191
+ parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
8192
+ viewId: ViewId;
8193
+ };
8194
+ readonly states: {
8195
+ readonly idle: {
8196
+ readonly tags: "ready";
8197
+ readonly on: {
8198
+ readonly sync: {
8199
+ readonly target: "pending";
8200
+ };
8201
+ };
8202
+ };
8203
+ readonly paused: {
8204
+ readonly tags: "pending";
8205
+ readonly on: {
8206
+ readonly sync: {
8207
+ readonly target: "pending";
8208
+ };
8209
+ };
8210
+ };
8211
+ readonly pending: {
8212
+ readonly tags: "pending";
8213
+ readonly on: {
8214
+ readonly sync: {
8215
+ readonly target: "pending";
8216
+ readonly reenter: true;
8217
+ };
8218
+ readonly cancel: {
8219
+ readonly target: "paused";
8220
+ };
8221
+ };
8222
+ readonly after: {
8223
+ readonly timeout: readonly [{
8224
+ readonly guard: "same view";
8225
+ readonly actions: {
8226
+ readonly type: "trigger:OnChange";
8227
+ readonly params: ({ context }: {
8228
+ context: Readonly< Input>;
8229
+ event: SyncLayoutEvents;
8230
+ }) => {
8231
+ change: ViewChange.SaveManualLayout;
8232
+ };
8233
+ };
8234
+ readonly target: "synced";
8235
+ }, {
8236
+ readonly target: "stopped";
8237
+ }];
8238
+ };
8239
+ };
8240
+ readonly synced: {
8241
+ readonly tags: "ready";
8242
+ readonly on: {
8243
+ readonly sync: {
8244
+ readonly target: "pending";
7307
8245
  };
7308
8246
  };
7309
- readonly target: "closing";
7310
- }, {
7311
- readonly actions: "closeLastOverlay";
7312
- readonly target: "closing";
7313
- }];
7314
- readonly 'close.all': {
7315
- readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
7316
- readonly target: "idle";
8247
+ };
8248
+ readonly stopped: {
8249
+ readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
8250
+ readonly type: "final";
7317
8251
  };
7318
8252
  };
7319
- };
7320
- readonly closing: {
7321
- readonly always: readonly [{
7322
- readonly guard: "has overlays?";
7323
- readonly target: "active";
7324
- }, {
7325
- readonly actions: "stopListeningToEsc";
7326
- readonly target: "idle";
7327
- }];
7328
- };
7329
- };
7330
- readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
7331
- }>;
7332
- id: "overlays";
7333
- };
7334
- }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
7335
- syncManualLayoutActorLogic: {
7336
- src: "syncManualLayoutActorLogic";
7337
- logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
7338
- type: "trigger:OnChange";
7339
- params: {
7340
- change: ViewChange;
7341
- };
7342
- }, {
7343
- type: "same view";
7344
- params: unknown;
7345
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7346
- readonly initial: "idle";
7347
- readonly context: ({ input }: {
7348
- spawn: {
7349
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
7350
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
7351
- id?: never;
7352
- systemId?: string;
7353
- input?: InputFrom<TLogic>;
7354
- syncSnapshot?: boolean;
7355
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
7356
- };
7357
- input: Input;
7358
- self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
7359
- }) => {
7360
- parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
7361
- viewId: ViewId;
7362
- };
7363
- readonly states: {
7364
- readonly idle: {
7365
- readonly tags: "ready";
7366
8253
  readonly on: {
7367
- readonly sync: {
7368
- readonly target: "pending";
8254
+ readonly synced: {
8255
+ readonly target: ".synced";
8256
+ };
8257
+ readonly stop: {
8258
+ readonly target: ".stopped";
7369
8259
  };
7370
8260
  };
7371
- };
7372
- readonly paused: {
7373
- readonly tags: "pending";
7374
- readonly on: {
7375
- readonly sync: {
7376
- readonly target: "pending";
8261
+ }>;
8262
+ id: "syncLayout";
8263
+ };
8264
+ hotkeyActorLogic: {
8265
+ src: "hotkeyActorLogic";
8266
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8267
+ id: "hotkey";
8268
+ };
8269
+ overlaysActorLogic: {
8270
+ src: "overlaysActorLogic";
8271
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8272
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8273
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8274
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8275
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8276
+ }, Values<{
8277
+ elementDetails: {
8278
+ src: "elementDetails";
8279
+ logic: ElementDetailsLogic;
8280
+ id: `elementDetails-${number}`;
8281
+ };
8282
+ relationshipsBrowser: {
8283
+ src: "relationshipsBrowser";
8284
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8285
+ id: `relationshipsBrowser-${number}`;
8286
+ };
8287
+ relationshipDetails: {
8288
+ src: "relationshipDetails";
8289
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8290
+ id: `relationshipDetails-${number}`;
8291
+ };
8292
+ hotkey: {
8293
+ src: "hotkey";
8294
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8295
+ id: "hotkey";
8296
+ };
8297
+ }>, Values<{
8298
+ closeLastOverlay: {
8299
+ type: "closeLastOverlay";
8300
+ params: NonReducibleUnknown;
8301
+ };
8302
+ closeSpecificOverlay: {
8303
+ type: "closeSpecificOverlay";
8304
+ params: {
8305
+ actorId: string;
7377
8306
  };
7378
8307
  };
7379
- };
7380
- readonly pending: {
7381
- readonly tags: "pending";
8308
+ closeAllOverlays: {
8309
+ type: "closeAllOverlays";
8310
+ params: NonReducibleUnknown;
8311
+ };
8312
+ openElementDetails: {
8313
+ type: "openElementDetails";
8314
+ params: NonReducibleUnknown;
8315
+ };
8316
+ openRelationshipDetails: {
8317
+ type: "openRelationshipDetails";
8318
+ params: NonReducibleUnknown;
8319
+ };
8320
+ openRelationshipsBrowser: {
8321
+ type: "openRelationshipsBrowser";
8322
+ params: NonReducibleUnknown;
8323
+ };
8324
+ listenToEsc: {
8325
+ type: "listenToEsc";
8326
+ params: NonReducibleUnknown;
8327
+ };
8328
+ stopListeningToEsc: {
8329
+ type: "stopListeningToEsc";
8330
+ params: NonReducibleUnknown;
8331
+ };
8332
+ }>, Values<{
8333
+ "has overlays?": {
8334
+ type: "has overlays?";
8335
+ params: unknown;
8336
+ };
8337
+ "close specific overlay?": {
8338
+ type: "close specific overlay?";
8339
+ params: unknown;
8340
+ };
8341
+ "last: is relationshipDetails?": {
8342
+ type: "last: is relationshipDetails?";
8343
+ params: unknown;
8344
+ };
8345
+ "last: is relationshipsBrowser?": {
8346
+ type: "last: is relationshipsBrowser?";
8347
+ params: unknown;
8348
+ };
8349
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
8350
+ readonly id: "overlays";
8351
+ readonly context: () => {
8352
+ seq: number;
8353
+ overlays: never[];
8354
+ };
8355
+ readonly initial: "idle";
7382
8356
  readonly on: {
7383
- readonly sync: {
7384
- readonly target: "pending";
7385
- readonly reenter: true;
8357
+ readonly 'open.elementDetails': {
8358
+ readonly actions: "openElementDetails";
8359
+ readonly target: ".active";
8360
+ readonly reenter: false;
7386
8361
  };
7387
- readonly cancel: {
7388
- readonly target: "paused";
8362
+ readonly 'open.relationshipDetails': {
8363
+ readonly actions: "openRelationshipDetails";
8364
+ readonly target: ".active";
8365
+ readonly reenter: false;
8366
+ };
8367
+ readonly 'open.relationshipsBrowser': {
8368
+ readonly actions: "openRelationshipsBrowser";
8369
+ readonly target: ".active";
8370
+ readonly reenter: false;
7389
8371
  };
7390
8372
  };
7391
- readonly after: {
7392
- readonly timeout: readonly [{
7393
- readonly guard: "same view";
7394
- readonly actions: {
7395
- readonly type: "trigger:OnChange";
7396
- readonly params: ({ context }: {
7397
- context: Readonly< Input>;
7398
- event: SyncLayoutEvents;
7399
- }) => {
7400
- change: ViewChange.SaveManualLayout;
8373
+ readonly states: {
8374
+ readonly idle: {};
8375
+ readonly active: {
8376
+ readonly entry: "listenToEsc";
8377
+ readonly exit: "stopListeningToEsc";
8378
+ readonly on: {
8379
+ readonly close: readonly [{
8380
+ readonly guard: "close specific overlay?";
8381
+ readonly actions: {
8382
+ readonly type: "closeSpecificOverlay";
8383
+ readonly params: ({ event }: {
8384
+ context: OverlaysContext;
8385
+ event: {
8386
+ type: "close";
8387
+ actorId?: string | undefined;
8388
+ };
8389
+ }) => {
8390
+ actorId: string;
8391
+ };
8392
+ };
8393
+ readonly target: "closing";
8394
+ }, {
8395
+ readonly actions: "closeLastOverlay";
8396
+ readonly target: "closing";
8397
+ }];
8398
+ readonly 'close.all': {
8399
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8400
+ readonly target: "idle";
7401
8401
  };
7402
8402
  };
7403
- readonly target: "synced";
7404
- }, {
7405
- readonly target: "stopped";
7406
- }];
7407
- };
7408
- };
7409
- readonly synced: {
7410
- readonly tags: "ready";
7411
- readonly on: {
7412
- readonly sync: {
7413
- readonly target: "pending";
8403
+ };
8404
+ readonly closing: {
8405
+ readonly always: readonly [{
8406
+ readonly guard: "has overlays?";
8407
+ readonly target: "active";
8408
+ }, {
8409
+ readonly actions: "stopListeningToEsc";
8410
+ readonly target: "idle";
8411
+ }];
7414
8412
  };
7415
8413
  };
8414
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8415
+ }>;
8416
+ id: "overlays";
8417
+ };
8418
+ }>, Values<{
8419
+ onNodeMouseEnter: {
8420
+ type: "onNodeMouseEnter";
8421
+ params: {
8422
+ node: Types.Node;
7416
8423
  };
7417
- readonly stopped: {
7418
- readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
7419
- readonly type: "final";
8424
+ };
8425
+ onNodeMouseLeave: {
8426
+ type: "onNodeMouseLeave";
8427
+ params: {
8428
+ node: Types.Node;
7420
8429
  };
7421
8430
  };
7422
- readonly on: {
7423
- readonly synced: {
7424
- readonly target: ".synced";
8431
+ onEdgeMouseEnter: {
8432
+ type: "onEdgeMouseEnter";
8433
+ params: {
8434
+ edge: Types.Edge;
7425
8435
  };
7426
- readonly stop: {
7427
- readonly target: ".stopped";
8436
+ };
8437
+ onEdgeMouseLeave: {
8438
+ type: "onEdgeMouseLeave";
8439
+ params: {
8440
+ edge: Types.Edge;
7428
8441
  };
7429
8442
  };
7430
- }>;
7431
- id: "syncLayout";
7432
- };
7433
- hotkeyActorLogic: {
7434
- src: "hotkeyActorLogic";
7435
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
7436
- id: "hotkey";
7437
- };
7438
- overlaysActorLogic: {
7439
- src: "overlaysActorLogic";
7440
- logic: StateMachine<OverlaysContext, OverlayActorEvent, {
7441
- [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
7442
- [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
7443
- [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
7444
- hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
7445
- }, Values<{
7446
- elementDetails: {
7447
- src: "elementDetails";
7448
- logic: ElementDetailsLogic;
7449
- id: `elementDetails-${number}`;
8443
+ "trigger:OnChange": {
8444
+ type: "trigger:OnChange";
8445
+ params: {
8446
+ change: ViewChange;
8447
+ };
7450
8448
  };
7451
- relationshipsBrowser: {
7452
- src: "relationshipsBrowser";
7453
- logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
7454
- id: `relationshipsBrowser-${number}`;
8449
+ "layout.align": {
8450
+ type: "layout.align";
8451
+ params: {
8452
+ mode: AlignmentMode;
8453
+ };
7455
8454
  };
7456
- relationshipDetails: {
7457
- src: "relationshipDetails";
7458
- logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
7459
- id: `relationshipDetails-${number}`;
8455
+ "notations.highlight": {
8456
+ type: "notations.highlight";
8457
+ params: {
8458
+ notation: ElementNotation;
8459
+ kind?: string;
8460
+ };
7460
8461
  };
7461
- hotkey: {
7462
- src: "hotkey";
7463
- logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
7464
- id: "hotkey";
8462
+ "xyflow:fitDiagram": {
8463
+ type: "xyflow:fitDiagram";
8464
+ params: {
8465
+ duration?: number;
8466
+ bounds?: BBox;
8467
+ } | undefined;
7465
8468
  };
7466
- }>, Values<{
7467
- closeLastOverlay: {
7468
- type: "closeLastOverlay";
8469
+ closeAllOverlays: {
8470
+ type: "closeAllOverlays";
7469
8471
  params: NonReducibleUnknown;
7470
8472
  };
7471
- closeSpecificOverlay: {
7472
- type: "closeSpecificOverlay";
8473
+ "trigger:NavigateTo": {
8474
+ type: "trigger:NavigateTo";
7473
8475
  params: {
7474
- actorId: string;
8476
+ viewId: ViewId;
7475
8477
  };
7476
8478
  };
7477
- closeAllOverlays: {
7478
- type: "closeAllOverlays";
7479
- params: NonReducibleUnknown;
8479
+ "trigger:OpenSource": {
8480
+ type: "trigger:OpenSource";
8481
+ params: OpenSourceParams;
7480
8482
  };
7481
- openElementDetails: {
7482
- type: "openElementDetails";
8483
+ "assign lastClickedNode": {
8484
+ type: "assign lastClickedNode";
7483
8485
  params: NonReducibleUnknown;
7484
8486
  };
7485
- openRelationshipDetails: {
7486
- type: "openRelationshipDetails";
8487
+ "open source of focused or last clicked node": {
8488
+ type: "open source of focused or last clicked node";
7487
8489
  params: NonReducibleUnknown;
7488
8490
  };
7489
- openRelationshipsBrowser: {
7490
- type: "openRelationshipsBrowser";
8491
+ "xyflow:fitFocusedBounds": {
8492
+ type: "xyflow:fitFocusedBounds";
8493
+ params: unknown;
8494
+ };
8495
+ "xyflow:setViewportCenter": {
8496
+ type: "xyflow:setViewportCenter";
8497
+ params: {
8498
+ x: number;
8499
+ y: number;
8500
+ };
8501
+ };
8502
+ "xyflow:setViewport": {
8503
+ type: "xyflow:setViewport";
8504
+ params: {
8505
+ viewport: Viewport;
8506
+ duration?: number;
8507
+ };
8508
+ };
8509
+ "xyflow:alignNodeFromToAfterNavigate": {
8510
+ type: "xyflow:alignNodeFromToAfterNavigate";
8511
+ params: {
8512
+ fromNode: NodeId;
8513
+ toPosition: XYPoint;
8514
+ };
8515
+ };
8516
+ updateFeatures: {
8517
+ type: "updateFeatures";
7491
8518
  params: NonReducibleUnknown;
7492
8519
  };
7493
- listenToEsc: {
7494
- type: "listenToEsc";
8520
+ startSyncLayout: {
8521
+ type: "startSyncLayout";
7495
8522
  params: NonReducibleUnknown;
7496
8523
  };
7497
- stopListeningToEsc: {
7498
- type: "stopListeningToEsc";
8524
+ stopSyncLayout: {
8525
+ type: "stopSyncLayout";
7499
8526
  params: NonReducibleUnknown;
7500
8527
  };
7501
8528
  }>, Values<{
7502
- "has overlays?": {
7503
- type: "has overlays?";
8529
+ isReady: {
8530
+ type: "isReady";
7504
8531
  params: unknown;
7505
8532
  };
7506
- "close specific overlay?": {
7507
- type: "close specific overlay?";
8533
+ "enabled: FitView": {
8534
+ type: "enabled: FitView";
7508
8535
  params: unknown;
7509
8536
  };
7510
- "last: is relationshipDetails?": {
7511
- type: "last: is relationshipDetails?";
8537
+ "enabled: FocusMode": {
8538
+ type: "enabled: FocusMode";
7512
8539
  params: unknown;
7513
8540
  };
7514
- "last: is relationshipsBrowser?": {
7515
- type: "last: is relationshipsBrowser?";
8541
+ "enabled: Readonly": {
8542
+ type: "enabled: Readonly";
7516
8543
  params: unknown;
7517
8544
  };
7518
- }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
7519
- readonly id: "overlays";
7520
- readonly context: () => {
7521
- seq: number;
7522
- overlays: never[];
8545
+ "not readonly": {
8546
+ type: "not readonly";
8547
+ params: unknown;
7523
8548
  };
7524
- readonly initial: "idle";
7525
- readonly on: {
7526
- readonly 'open.elementDetails': {
7527
- readonly actions: "openElementDetails";
7528
- readonly target: ".active";
7529
- readonly reenter: false;
7530
- };
7531
- readonly 'open.relationshipDetails': {
7532
- readonly actions: "openRelationshipDetails";
7533
- readonly target: ".active";
7534
- readonly reenter: false;
7535
- };
7536
- readonly 'open.relationshipsBrowser': {
7537
- readonly actions: "openRelationshipsBrowser";
7538
- readonly target: ".active";
7539
- readonly reenter: false;
7540
- };
8549
+ "is dynamic view": {
8550
+ type: "is dynamic view";
8551
+ params: unknown;
7541
8552
  };
7542
- readonly states: {
7543
- readonly idle: {};
7544
- readonly active: {
7545
- readonly entry: "listenToEsc";
7546
- readonly exit: "stopListeningToEsc";
7547
- readonly on: {
7548
- readonly close: readonly [{
7549
- readonly guard: "close specific overlay?";
7550
- readonly actions: {
7551
- readonly type: "closeSpecificOverlay";
7552
- readonly params: ({ event }: {
7553
- context: OverlaysContext;
7554
- event: {
7555
- type: "close";
7556
- actorId?: string | undefined;
7557
- };
7558
- }) => {
7559
- actorId: string;
7560
- };
7561
- };
7562
- readonly target: "closing";
7563
- }, {
7564
- readonly actions: "closeLastOverlay";
7565
- readonly target: "closing";
7566
- }];
7567
- readonly 'close.all': {
7568
- readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
7569
- readonly target: "idle";
7570
- };
7571
- };
7572
- };
7573
- readonly closing: {
7574
- readonly always: readonly [{
7575
- readonly guard: "has overlays?";
7576
- readonly target: "active";
7577
- }, {
7578
- readonly actions: "stopListeningToEsc";
7579
- readonly target: "idle";
7580
- }];
7581
- };
8553
+ "is another view": {
8554
+ type: "is another view";
8555
+ params: unknown;
8556
+ };
8557
+ "click: selected node": {
8558
+ type: "click: selected node";
8559
+ params: unknown;
7582
8560
  };
7583
- readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
7584
- }>;
7585
- id: "overlays";
7586
- };
7587
- }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
7588
- readonly on: {
7589
- readonly 'key.esc': {
7590
- readonly target: "idle";
7591
- };
7592
- readonly 'key.arrow.left': {
7593
- readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
7594
- };
7595
- readonly 'key.arrow.right': {
7596
- readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
8561
+ "click: same node": {
8562
+ type: "click: same node";
8563
+ params: unknown;
8564
+ };
8565
+ "click: focused node": {
8566
+ type: "click: focused node";
8567
+ params: unknown;
8568
+ };
8569
+ "click: node has connections": {
8570
+ type: "click: node has connections";
8571
+ params: unknown;
8572
+ };
8573
+ }>, never, EventObject>;
7597
8574
  };
7598
- readonly 'walkthrough.step': {
8575
+ readonly 'notations.unhighlight': {
7599
8576
  readonly actions: ActionFunction<Context, {
7600
- type: "walkthrough.step";
7601
- direction: "next" | "previous";
8577
+ type: "notations.unhighlight";
7602
8578
  }, Events, undefined, Values<{
7603
8579
  syncManualLayoutActorLogic: {
7604
8580
  src: "syncManualLayoutActorLogic";
@@ -7610,7 +8586,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7610
8586
  }, {
7611
8587
  type: "same view";
7612
8588
  params: unknown;
7613
- }, "timeout", "stopped" | "idle" | "synced" | "pending" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8589
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
7614
8590
  readonly initial: "idle";
7615
8591
  readonly context: ({ input }: {
7616
8592
  spawn: {
@@ -7852,155 +8828,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
7852
8828
  }>;
7853
8829
  id: "overlays";
7854
8830
  };
7855
- }>, Values<{
7856
- onNodeMouseEnter: {
7857
- type: "onNodeMouseEnter";
7858
- params: {
7859
- node: Types.Node;
7860
- };
7861
- };
7862
- onNodeMouseLeave: {
7863
- type: "onNodeMouseLeave";
7864
- params: {
7865
- node: Types.Node;
7866
- };
7867
- };
7868
- onEdgeMouseEnter: {
7869
- type: "onEdgeMouseEnter";
7870
- params: {
7871
- edge: Types.Edge;
7872
- };
7873
- };
7874
- onEdgeMouseLeave: {
7875
- type: "onEdgeMouseLeave";
7876
- params: {
7877
- edge: Types.Edge;
7878
- };
7879
- };
7880
- "xyflow:fitDiagram": {
7881
- type: "xyflow:fitDiagram";
7882
- params: {
7883
- duration?: number;
7884
- bounds?: BBox;
7885
- } | undefined;
7886
- };
7887
- closeAllOverlays: {
7888
- type: "closeAllOverlays";
7889
- params: NonReducibleUnknown;
7890
- };
7891
- "trigger:OnChange": {
7892
- type: "trigger:OnChange";
7893
- params: {
7894
- change: ViewChange;
7895
- };
7896
- };
7897
- "layout.align": {
7898
- type: "layout.align";
7899
- params: {
7900
- mode: AlignmentMode;
7901
- };
7902
- };
7903
- "trigger:NavigateTo": {
7904
- type: "trigger:NavigateTo";
7905
- params: {
7906
- viewId: ViewId;
7907
- };
7908
- };
7909
- "trigger:OpenSource": {
7910
- type: "trigger:OpenSource";
7911
- params: OpenSourceParams;
7912
- };
7913
- "assign lastClickedNode": {
7914
- type: "assign lastClickedNode";
7915
- params: NonReducibleUnknown;
7916
- };
7917
- "open source of focused or last clicked node": {
7918
- type: "open source of focused or last clicked node";
7919
- params: NonReducibleUnknown;
7920
- };
7921
- "xyflow:fitFocusedBounds": {
7922
- type: "xyflow:fitFocusedBounds";
7923
- params: unknown;
7924
- };
7925
- "xyflow:setViewportCenter": {
7926
- type: "xyflow:setViewportCenter";
7927
- params: {
7928
- x: number;
7929
- y: number;
7930
- };
7931
- };
7932
- "xyflow:setViewport": {
7933
- type: "xyflow:setViewport";
7934
- params: {
7935
- viewport: Viewport;
7936
- duration?: number;
7937
- };
7938
- };
7939
- "xyflow:alignNodeFromToAfterNavigate": {
7940
- type: "xyflow:alignNodeFromToAfterNavigate";
7941
- params: {
7942
- fromNode: NodeId;
7943
- toPosition: XYPoint;
7944
- };
7945
- };
7946
- updateFeatures: {
7947
- type: "updateFeatures";
7948
- params: NonReducibleUnknown;
7949
- };
7950
- startSyncLayout: {
7951
- type: "startSyncLayout";
7952
- params: NonReducibleUnknown;
7953
- };
7954
- stopSyncLayout: {
7955
- type: "stopSyncLayout";
7956
- params: NonReducibleUnknown;
7957
- };
7958
- }>, Values<{
7959
- isReady: {
7960
- type: "isReady";
7961
- params: unknown;
7962
- };
7963
- "enabled: FitView": {
7964
- type: "enabled: FitView";
7965
- params: unknown;
7966
- };
7967
- "enabled: FocusMode": {
7968
- type: "enabled: FocusMode";
7969
- params: unknown;
7970
- };
7971
- "enabled: Readonly": {
7972
- type: "enabled: Readonly";
7973
- params: unknown;
7974
- };
7975
- "not readonly": {
7976
- type: "not readonly";
7977
- params: unknown;
7978
- };
7979
- "is dynamic view": {
7980
- type: "is dynamic view";
7981
- params: unknown;
7982
- };
7983
- "is another view": {
7984
- type: "is another view";
7985
- params: unknown;
7986
- };
7987
- "click: selected node": {
7988
- type: "click: selected node";
7989
- params: unknown;
7990
- };
7991
- "click: same node": {
7992
- type: "click: same node";
7993
- params: unknown;
7994
- };
7995
- "click: focused node": {
7996
- type: "click: focused node";
7997
- params: unknown;
7998
- };
7999
- "click: node has connections": {
8000
- type: "click: node has connections";
8001
- params: unknown;
8002
- };
8003
- }>, never, EventObject>;
8831
+ }>, never, never, never, never>;
8004
8832
  };
8005
8833
  readonly 'walkthrough.end': {
8006
8834
  readonly target: "idle";
@@ -8030,7 +8858,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8030
8858
  }, {
8031
8859
  type: "same view";
8032
8860
  params: unknown;
8033
- }, "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, {
8034
8862
  readonly initial: "idle";
8035
8863
  readonly context: ({ input }: {
8036
8864
  spawn: {
@@ -8297,17 +9125,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8297
9125
  edge: Types.Edge;
8298
9126
  };
8299
9127
  };
8300
- "xyflow:fitDiagram": {
8301
- type: "xyflow:fitDiagram";
8302
- params: {
8303
- duration?: number;
8304
- bounds?: BBox;
8305
- } | undefined;
8306
- };
8307
- closeAllOverlays: {
8308
- type: "closeAllOverlays";
8309
- params: NonReducibleUnknown;
8310
- };
8311
9128
  "trigger:OnChange": {
8312
9129
  type: "trigger:OnChange";
8313
9130
  params: {
@@ -8320,6 +9137,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8320
9137
  mode: AlignmentMode;
8321
9138
  };
8322
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
+ };
9154
+ closeAllOverlays: {
9155
+ type: "closeAllOverlays";
9156
+ params: NonReducibleUnknown;
9157
+ };
8323
9158
  "trigger:NavigateTo": {
8324
9159
  type: "trigger:NavigateTo";
8325
9160
  params: {
@@ -8453,7 +9288,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8453
9288
  }, {
8454
9289
  type: "same view";
8455
9290
  params: unknown;
8456
- }, "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, {
8457
9292
  readonly initial: "idle";
8458
9293
  readonly context: ({ input }: {
8459
9294
  spawn: {
@@ -8720,17 +9555,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8720
9555
  edge: Types.Edge;
8721
9556
  };
8722
9557
  };
8723
- "xyflow:fitDiagram": {
8724
- type: "xyflow:fitDiagram";
8725
- params: {
8726
- duration?: number;
8727
- bounds?: BBox;
8728
- } | undefined;
8729
- };
8730
- closeAllOverlays: {
8731
- type: "closeAllOverlays";
8732
- params: NonReducibleUnknown;
8733
- };
8734
9558
  "trigger:OnChange": {
8735
9559
  type: "trigger:OnChange";
8736
9560
  params: {
@@ -8743,6 +9567,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8743
9567
  mode: AlignmentMode;
8744
9568
  };
8745
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
+ };
8746
9588
  "trigger:NavigateTo": {
8747
9589
  type: "trigger:NavigateTo";
8748
9590
  params: {
@@ -8865,7 +9707,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
8865
9707
  }, {
8866
9708
  type: "same view";
8867
9709
  params: unknown;
8868
- }, "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, {
8869
9711
  readonly initial: "idle";
8870
9712
  readonly context: ({ input }: {
8871
9713
  spawn: {
@@ -9124,7 +9966,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9124
9966
  }, {
9125
9967
  type: "same view";
9126
9968
  params: unknown;
9127
- }, "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, {
9128
9970
  readonly initial: "idle";
9129
9971
  readonly context: ({ input }: {
9130
9972
  spawn: {
@@ -9384,7 +10226,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9384
10226
  }, {
9385
10227
  type: "same view";
9386
10228
  params: unknown;
9387
- }, "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, {
9388
10230
  readonly initial: "idle";
9389
10231
  readonly context: ({ input }: {
9390
10232
  spawn: {
@@ -9658,7 +10500,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9658
10500
  }, {
9659
10501
  type: "same view";
9660
10502
  params: unknown;
9661
- }, "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, {
9662
10504
  readonly initial: "idle";
9663
10505
  readonly context: ({ input }: {
9664
10506
  spawn: {
@@ -9914,7 +10756,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
9914
10756
  }, {
9915
10757
  type: "same view";
9916
10758
  params: unknown;
9917
- }, "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, {
9918
10760
  readonly initial: "idle";
9919
10761
  readonly context: ({ input }: {
9920
10762
  spawn: {
@@ -10170,7 +11012,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10170
11012
  }, {
10171
11013
  type: "same view";
10172
11014
  params: unknown;
10173
- }, "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, {
10174
11016
  readonly initial: "idle";
10175
11017
  readonly context: ({ input }: {
10176
11018
  spawn: {
@@ -10428,7 +11270,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10428
11270
  }, {
10429
11271
  type: "same view";
10430
11272
  params: unknown;
10431
- }, "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, {
10432
11274
  readonly initial: "idle";
10433
11275
  readonly context: ({ input }: {
10434
11276
  spawn: {
@@ -10695,17 +11537,6 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10695
11537
  edge: Types.Edge;
10696
11538
  };
10697
11539
  };
10698
- "xyflow:fitDiagram": {
10699
- type: "xyflow:fitDiagram";
10700
- params: {
10701
- duration?: number;
10702
- bounds?: BBox;
10703
- } | undefined;
10704
- };
10705
- closeAllOverlays: {
10706
- type: "closeAllOverlays";
10707
- params: NonReducibleUnknown;
10708
- };
10709
11540
  "trigger:OnChange": {
10710
11541
  type: "trigger:OnChange";
10711
11542
  params: {
@@ -10718,6 +11549,24 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10718
11549
  mode: AlignmentMode;
10719
11550
  };
10720
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
+ };
10721
11570
  "trigger:NavigateTo": {
10722
11571
  type: "trigger:NavigateTo";
10723
11572
  params: {
@@ -10835,7 +11684,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
10835
11684
  }, {
10836
11685
  type: "same view";
10837
11686
  params: unknown;
10838
- }, "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, {
10839
11688
  readonly initial: "idle";
10840
11689
  readonly context: ({ input }: {
10841
11690
  spawn: {
@@ -11094,7 +11943,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
11094
11943
  }, {
11095
11944
  type: "same view";
11096
11945
  params: unknown;
11097
- }, "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, {
11098
11947
  readonly initial: "idle";
11099
11948
  readonly context: ({ input }: {
11100
11949
  spawn: {