@likec4/diagram 1.31.0 → 1.32.1

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 (269) hide show
  1. package/bundle/{chunk-BBzMXzCg.js → chunk-DlHyKoeo.js} +1700 -1206
  2. package/bundle/custom.js +51 -47
  3. package/bundle/index.js +5495 -5428
  4. package/dist/LikeC4CustomColors.d.ts +2 -7
  5. package/dist/LikeC4CustomColors.js +17 -6
  6. package/dist/LikeC4Diagram.d.ts +3 -2
  7. package/dist/LikeC4Diagram.js +10 -14
  8. package/dist/LikeC4Diagram.props.d.ts +41 -24
  9. package/dist/LikeC4ModelProvider.d.ts +5 -4
  10. package/dist/StaticLikeC4Diagram.d.ts +3 -2
  11. package/dist/StaticLikeC4Diagram.js +2 -2
  12. package/dist/base/BaseXYFlow.js +5 -5
  13. package/dist/base/const.d.ts +1 -1
  14. package/dist/base/const.js +1 -1
  15. package/dist/base/index.d.ts +2 -1
  16. package/dist/base/primitives/compound/CompoundActionButton.js +2 -1
  17. package/dist/base/primitives/compound/CompoundDetailsButton.js +2 -1
  18. package/dist/base/primitives/compound/CompoundTitle.d.ts +1 -1
  19. package/dist/base/primitives/compound/CompoundTitle.js +2 -1
  20. package/dist/base/primitives/edge/EdgeContainer.d.ts +1 -1
  21. package/dist/base/primitives/edge/EdgeLabel.css.js +1 -0
  22. package/dist/base/primitives/edge/EdgeLabel.d.ts +3 -3
  23. package/dist/base/primitives/edge/EdgeLabel.js +6 -4
  24. package/dist/base/primitives/edge/EdgeLabelContainer.d.ts +1 -1
  25. package/dist/base/primitives/edge/EdgeMarkers.d.ts +1 -1
  26. package/dist/base/primitives/edge/EdgePath.d.ts +1 -1
  27. package/dist/base/primitives/element/ElementActionButtons.js +10 -9
  28. package/dist/base/primitives/element/ElementDetailsButton.js +2 -1
  29. package/dist/base/primitives/element/ElementShape.d.ts +1 -1
  30. package/dist/base/primitives/element/ElementTags.d.ts +14 -0
  31. package/dist/base/primitives/element/ElementTags.js +176 -0
  32. package/dist/base/primitives/element/ElementTitle.d.ts +5 -4
  33. package/dist/base/primitives/element/ElementTitle.js +6 -6
  34. package/dist/base/primitives/index.d.ts +1 -0
  35. package/dist/base/types.Base.d.ts +54 -0
  36. package/dist/base/types.Base.js +48 -0
  37. package/dist/base/types.d.ts +2 -52
  38. package/dist/bundle/LikeC4View.d.ts +2 -1
  39. package/dist/bundle/LikeC4View.js +22 -19
  40. package/dist/bundle/LikeC4View.props.d.ts +15 -4
  41. package/dist/bundle/ReactLikeC4.d.ts +4 -7
  42. package/dist/bundle/ReactLikeC4.js +10 -8
  43. package/dist/bundle/index.js +1 -1
  44. package/dist/components/ErrorFallback.d.ts +2 -0
  45. package/dist/components/ErrorFallback.js +29 -0
  46. package/dist/context/DiagramEventHandlers.d.ts +6 -5
  47. package/dist/context/DiagramFeatures.d.ts +2 -2
  48. package/dist/context/DiagramFeatures.js +3 -31
  49. package/dist/context/EnsureMantine.js +1 -1
  50. package/dist/context/IconRenderer.js +1 -4
  51. package/dist/context/RootContainer.js +5 -1
  52. package/dist/context/TagStylesContext.d.ts +7 -0
  53. package/dist/context/TagStylesContext.js +85 -0
  54. package/dist/custom/components.d.ts +1 -1
  55. package/dist/custom/customNodes.d.ts +32 -17
  56. package/dist/custom/hooks.d.ts +1 -1
  57. package/dist/hooks/index.d.ts +1 -1
  58. package/dist/hooks/useDiagram.d.ts +73 -38
  59. package/dist/hooks/useDiagram.js +7 -3
  60. package/dist/hooks/useMantinePortalProps.d.ts +2 -2
  61. package/dist/hooks/useSearchActor.d.ts +2 -0
  62. package/dist/hooks/useSearchActor.js +10 -0
  63. package/dist/hooks/useUpdateEffect.js +3 -0
  64. package/dist/hooks/useXYFlow.d.ts +39 -37
  65. package/dist/hooks/useXYFlow.js +5 -1
  66. package/dist/index.js +1 -1
  67. package/dist/likec4diagram/DiagramUI.js +7 -2
  68. package/dist/likec4diagram/DiagramXYFlow.d.ts +4 -3
  69. package/dist/likec4diagram/DiagramXYFlow.js +107 -110
  70. package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +7 -6
  71. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +8 -0
  72. package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.js +7 -5
  73. package/dist/likec4diagram/custom/index.d.ts +7 -6
  74. package/dist/likec4diagram/custom/nodes/nodes.js +39 -26
  75. package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +7 -7
  76. package/dist/likec4diagram/types.d.ts +5 -5
  77. package/dist/likec4diagram/ui/controls/Controls.js +12 -4
  78. package/dist/likec4diagram/ui/notation/NotationPanel.js +1 -1
  79. package/dist/likec4diagram/useViewToNodesEdges.d.ts +5 -3
  80. package/dist/likec4diagram/useViewToNodesEdges.js +20 -30
  81. package/dist/likec4model/LikeC4ModelContext.d.ts +2 -2
  82. package/dist/likec4model/index.d.ts +1 -1
  83. package/dist/likec4model/useLikeC4ElementsTree.js +1 -1
  84. package/dist/likec4model/useLikeC4Model.d.ts +23 -10
  85. package/dist/likec4model/useLikeC4Model.js +22 -7
  86. package/dist/overlays/Overlays.js +4 -27
  87. package/dist/overlays/element-details/ElementDetailsCard.d.ts +1 -1
  88. package/dist/overlays/element-details/ElementDetailsCard.js +19 -12
  89. package/dist/overlays/element-details/TabPanelDeployments.d.ts +1 -1
  90. package/dist/overlays/element-details/TabPanelDeployments.js +1 -1
  91. package/dist/overlays/element-details/TabPanelRelationships.d.ts +1 -1
  92. package/dist/overlays/element-details/TabPanelStructure.d.ts +1 -1
  93. package/dist/overlays/element-details/actor.d.ts +288 -286
  94. package/dist/overlays/overlay/Overlay.css.d.ts +57 -2
  95. package/dist/overlays/overlay/Overlay.css.js +76 -39
  96. package/dist/overlays/overlay/Overlay.d.ts +12 -0
  97. package/dist/overlays/overlay/Overlay.js +58 -27
  98. package/dist/overlays/overlaysActor.d.ts +1 -1
  99. package/dist/overlays/relationship-details/RelationshipDetails.d.ts +3 -2
  100. package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
  101. package/dist/overlays/relationship-details/_types.d.ts +2 -2
  102. package/dist/overlays/relationship-details/actor.js +7 -7
  103. package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +3 -2
  104. package/dist/overlays/relationship-details/custom/nodeTypes.js +4 -0
  105. package/dist/overlays/relationship-details/hooks.d.ts +10 -9
  106. package/dist/overlays/relationship-details/layout-to-xyflow.js +1 -0
  107. package/dist/overlays/relationship-details/layout.js +3 -1
  108. package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +3 -2
  109. package/dist/overlays/relationships-browser/SelectElement.js +1 -1
  110. package/dist/overlays/relationships-browser/_types.d.ts +2 -2
  111. package/dist/overlays/relationships-browser/actor.d.ts +1 -1
  112. package/dist/overlays/relationships-browser/actor.js +7 -7
  113. package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +3 -2
  114. package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +8 -5
  115. package/dist/overlays/relationships-browser/custom/nodeTypes.js +4 -0
  116. package/dist/overlays/relationships-browser/layout.d.ts +2 -2
  117. package/dist/overlays/relationships-browser/layout.js +10 -6
  118. package/dist/overlays/relationships-browser/useViewToNodesEdges.js +4 -3
  119. package/dist/search/Search.d.ts +4 -0
  120. package/dist/search/Search.js +173 -0
  121. package/dist/{likec4diagram/ui/search → search/components}/ElementsColumn.css.js +0 -1
  122. package/dist/search/components/ElementsColumn.d.ts +2 -0
  123. package/dist/{likec4diagram/ui/search → search/components}/ElementsColumn.js +26 -25
  124. package/dist/search/components/PickView.d.ts +4 -0
  125. package/dist/search/components/PickView.js +135 -0
  126. package/dist/search/components/SearchByTags.d.ts +1 -0
  127. package/dist/search/components/SearchByTags.js +119 -0
  128. package/dist/search/components/SearchInput.d.ts +2 -0
  129. package/dist/{likec4diagram/ui/search → search/components}/SearchInput.js +61 -40
  130. package/dist/{likec4diagram/ui/search → search/components}/ViewsColum.d.ts +3 -2
  131. package/dist/{likec4diagram/ui/search → search/components}/ViewsColum.js +25 -17
  132. package/dist/{likec4diagram/ui/search → search/components}/_shared.css.js +26 -35
  133. package/dist/{likec4diagram/ui/search/LikeC4Search.css.d.ts → search/components/styles.css.d.ts} +0 -2
  134. package/dist/search/components/styles.css.js +60 -0
  135. package/dist/search/components/utils.d.ts +5 -0
  136. package/dist/search/components/utils.js +58 -0
  137. package/dist/search/hooks.d.ts +10 -0
  138. package/dist/search/hooks.js +35 -0
  139. package/dist/search/searchActor.d.ts +90 -0
  140. package/dist/search/searchActor.js +75 -0
  141. package/dist/state/DiagramActorProvider.d.ts +9 -7
  142. package/dist/state/DiagramActorProvider.js +24 -18
  143. package/dist/state/assign.d.ts +0 -1
  144. package/dist/state/assign.js +9 -19
  145. package/dist/state/diagram-machine.d.ts +645 -183
  146. package/dist/state/diagram-machine.js +127 -60
  147. package/dist/state/syncManualLayoutActor.d.ts +2 -2
  148. package/dist/state/types.d.ts +2 -0
  149. package/dist/state/utils.d.ts +2 -0
  150. package/dist/state/utils.js +3 -0
  151. package/dist/styles-min.css +1 -1
  152. package/dist/styles-xyflow.css +1 -1
  153. package/dist/styles.css +1 -1
  154. package/dist/styles.css2.js +1 -1
  155. package/package.json +20 -19
  156. package/panda.buildinfo.json +171 -148
  157. package/src/LikeC4CustomColors.tsx +21 -6
  158. package/src/LikeC4Diagram.props.ts +48 -32
  159. package/src/LikeC4Diagram.tsx +19 -20
  160. package/src/LikeC4ModelProvider.tsx +6 -5
  161. package/src/StaticLikeC4Diagram.tsx +8 -6
  162. package/src/base/const.ts +1 -1
  163. package/src/base/index.ts +2 -1
  164. package/src/base/primitives/compound/CompoundActionButton.tsx +2 -1
  165. package/src/base/primitives/compound/CompoundDetailsButton.tsx +2 -1
  166. package/src/base/primitives/compound/CompoundTitle.tsx +3 -2
  167. package/src/base/primitives/edge/EdgeContainer.tsx +2 -1
  168. package/src/base/primitives/edge/EdgeLabel.css.ts +1 -0
  169. package/src/base/primitives/edge/EdgeLabel.tsx +20 -15
  170. package/src/base/primitives/edge/EdgeLabelContainer.tsx +1 -1
  171. package/src/base/primitives/edge/EdgeMarkers.tsx +2 -1
  172. package/src/base/primitives/edge/EdgePath.tsx +1 -1
  173. package/src/base/primitives/element/ElementActionButtons.tsx +11 -10
  174. package/src/base/primitives/element/ElementDetailsButton.tsx +2 -1
  175. package/src/base/primitives/element/ElementShape.tsx +2 -1
  176. package/src/base/primitives/element/ElementTags.tsx +182 -0
  177. package/src/base/primitives/element/ElementTitle.tsx +21 -15
  178. package/src/base/primitives/index.ts +1 -0
  179. package/src/base/types.Base.ts +104 -0
  180. package/src/base/types.ts +2 -99
  181. package/src/bundle/LikeC4View.props.ts +17 -4
  182. package/src/bundle/LikeC4View.tsx +27 -36
  183. package/src/bundle/ReactLikeC4.tsx +16 -36
  184. package/src/components/ErrorFallback.tsx +30 -0
  185. package/src/context/DiagramEventHandlers.tsx +5 -4
  186. package/src/context/DiagramFeatures.tsx +3 -22
  187. package/src/context/EnsureMantine.tsx +1 -1
  188. package/src/context/IconRenderer.tsx +1 -4
  189. package/src/context/RootContainer.tsx +9 -3
  190. package/src/context/TagStylesContext.tsx +96 -0
  191. package/src/custom/components.ts +2 -0
  192. package/src/custom/customNodes.tsx +29 -14
  193. package/src/custom/hooks.ts +2 -0
  194. package/src/hooks/index.ts +1 -1
  195. package/src/hooks/useCurrentViewId.ts +1 -4
  196. package/src/hooks/useDiagram.ts +104 -12
  197. package/src/hooks/useMantinePortalProps.ts +10 -1
  198. package/src/hooks/useSearchActor.ts +11 -0
  199. package/src/hooks/useUpdateEffect.ts +7 -4
  200. package/src/hooks/useXYFlow.ts +5 -0
  201. package/src/likec4diagram/DiagramUI.tsx +5 -0
  202. package/src/likec4diagram/DiagramXYFlow.tsx +118 -121
  203. package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +9 -0
  204. package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.tsx +10 -9
  205. package/src/likec4diagram/custom/nodes/nodes.tsx +45 -43
  206. package/src/likec4diagram/custom/nodes/toolbar/_shared.tsx +11 -3
  207. package/src/likec4diagram/types.ts +5 -3
  208. package/src/likec4diagram/ui/controls/Controls.tsx +11 -4
  209. package/src/likec4diagram/ui/notation/NotationPanel.tsx +2 -2
  210. package/src/likec4diagram/useViewToNodesEdges.ts +34 -36
  211. package/src/likec4model/LikeC4ModelContext.ts +2 -2
  212. package/src/likec4model/index.ts +2 -0
  213. package/src/likec4model/useLikeC4ElementsTree.ts +1 -1
  214. package/src/likec4model/useLikeC4Model.ts +32 -16
  215. package/src/overlays/Overlays.tsx +5 -32
  216. package/src/overlays/element-details/ElementDetailsCard.tsx +25 -18
  217. package/src/overlays/element-details/TabPanelDeployments.tsx +3 -2
  218. package/src/overlays/element-details/TabPanelRelationships.tsx +2 -1
  219. package/src/overlays/element-details/TabPanelStructure.tsx +1 -1
  220. package/src/overlays/element-details/actor.ts +2 -2
  221. package/src/overlays/overlay/Overlay.css.ts +75 -38
  222. package/src/overlays/overlay/Overlay.tsx +61 -29
  223. package/src/overlays/overlaysActor.ts +1 -1
  224. package/src/overlays/relationship-details/RelationshipDetails.tsx +4 -4
  225. package/src/overlays/relationship-details/_types.ts +2 -1
  226. package/src/overlays/relationship-details/custom/nodeTypes.tsx +4 -0
  227. package/src/overlays/relationship-details/layout-to-xyflow.ts +1 -0
  228. package/src/overlays/relationship-details/layout.ts +3 -1
  229. package/src/overlays/relationships-browser/SelectElement.tsx +1 -1
  230. package/src/overlays/relationships-browser/_types.ts +2 -1
  231. package/src/overlays/relationships-browser/custom/nodeTypes.tsx +4 -0
  232. package/src/overlays/relationships-browser/layout.ts +12 -7
  233. package/src/overlays/relationships-browser/useViewToNodesEdges.ts +4 -4
  234. package/src/search/Search.tsx +220 -0
  235. package/src/{likec4diagram/ui/search → search/components}/ElementsColumn.css.ts +0 -29
  236. package/src/{likec4diagram/ui/search → search/components}/ElementsColumn.tsx +28 -29
  237. package/src/search/components/PickView.tsx +134 -0
  238. package/src/search/components/SearchByTags.tsx +112 -0
  239. package/src/{likec4diagram/ui/search → search/components}/SearchInput.tsx +72 -42
  240. package/src/{likec4diagram/ui/search → search/components}/ViewsColum.tsx +29 -22
  241. package/src/{likec4diagram/ui/search → search/components}/_shared.css.ts +26 -37
  242. package/src/{likec4diagram/ui/search/LikeC4Search.css.ts → search/components/styles.css.ts} +9 -36
  243. package/src/search/components/utils.ts +64 -0
  244. package/src/search/hooks.ts +38 -0
  245. package/src/search/searchActor.ts +99 -0
  246. package/src/state/DiagramActorProvider.tsx +37 -25
  247. package/src/state/assign.ts +10 -10
  248. package/src/state/diagram-machine.ts +123 -58
  249. package/src/state/syncManualLayoutActor.ts +1 -1
  250. package/src/state/types.ts +2 -0
  251. package/src/state/utils.ts +4 -0
  252. package/dist/base/types.js +0 -54
  253. package/dist/likec4diagram/ui/search/ElementsColumn.d.ts +0 -1
  254. package/dist/likec4diagram/ui/search/LikeC4Search.css.js +0 -87
  255. package/dist/likec4diagram/ui/search/LikeC4Search.d.ts +0 -2
  256. package/dist/likec4diagram/ui/search/LikeC4Search.js +0 -267
  257. package/dist/likec4diagram/ui/search/SearchInput.d.ts +0 -1
  258. package/dist/likec4diagram/ui/search/state.d.ts +0 -19
  259. package/dist/likec4diagram/ui/search/state.js +0 -63
  260. package/dist/likec4diagram/ui/search/utils.d.ts +0 -3
  261. package/dist/likec4diagram/ui/search/utils.js +0 -20
  262. package/src/likec4diagram/ui/search/LikeC4Search.tsx +0 -301
  263. package/src/likec4diagram/ui/search/state.ts +0 -78
  264. package/src/likec4diagram/ui/search/utils.ts +0 -20
  265. /package/dist/{likec4diagram/ui/search → search/components}/ElementsColumn.css.d.ts +0 -0
  266. /package/dist/{likec4diagram/ui/search → search/components}/ViewsColumn.css.d.ts +0 -0
  267. /package/dist/{likec4diagram/ui/search → search/components}/ViewsColumn.css.js +0 -0
  268. /package/dist/{likec4diagram/ui/search → search/components}/_shared.css.d.ts +0 -0
  269. /package/src/{likec4diagram/ui/search → search/components}/ViewsColumn.css.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { BBox, DiagramView, EdgeId, ElementNotation, Fqn, NodeId, StepEdgeId, ViewChange, ViewId, XYPoint, NonEmptyArray, Point, Color, RelationshipLineType, RelationshipArrowType } from '@likec4/core';
1
+ import { DiagramView, EdgeId, Fqn, NodeId, NodeNotation as ElementNotation, StepEdgeId, ViewChange, ViewId, XYPoint, BBox, NonEmptyArray, Point, Color, RelationshipArrowType, RelationshipLineType } 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 { PartialDeep } from 'type-fest';
@@ -11,6 +11,7 @@ import { AlignmentMode } from './aligners';
11
11
  import { HotKeyEvent, HotkeyActorLogic } from './hotkeyActor';
12
12
  import { Events as SyncLayoutEvents, SyncLayoutActorLogic } from './syncManualLayoutActor';
13
13
  import { OverlaysActorLogic } from '../overlays/overlaysActor';
14
+ import { SearchActorLogic } from '../search/searchActor';
14
15
  import { ReactNode, CSSProperties } from 'react';
15
16
  export type XYStoreApi = ReturnType<typeof useStoreApi<Types.Node, Types.Edge>>;
16
17
  export interface NavigationHistory {
@@ -144,6 +145,9 @@ export type Events = HotKeyEvent | {
144
145
  } | {
145
146
  type: 'open.relationshipsBrowser';
146
147
  fqn: Fqn;
148
+ } | {
149
+ type: 'open.search';
150
+ search?: string;
147
151
  } | {
148
152
  type: 'navigate.to';
149
153
  viewId: ViewId;
@@ -178,6 +182,11 @@ export type Events = HotKeyEvent | {
178
182
  kind?: string;
179
183
  } | {
180
184
  type: 'notations.unhighlight';
185
+ } | {
186
+ type: 'tag.highlight';
187
+ tag: string;
188
+ } | {
189
+ type: 'tag.unhighlight';
181
190
  } | {
182
191
  type: 'toggle.feature';
183
192
  feature: FeatureName;
@@ -191,6 +200,7 @@ declare const _diagramMachine: StateMachine<Context, Events, {
191
200
  syncLayout?: ActorRefFromLogic<SyncLayoutActorLogic>;
192
201
  hotkey?: ActorRefFromLogic<HotkeyActorLogic>;
193
202
  overlays?: ActorRefFromLogic<OverlaysActorLogic>;
203
+ search?: ActorRefFromLogic<SearchActorLogic>;
194
204
  }, Values<{
195
205
  syncManualLayoutActorLogic: {
196
206
  src: "syncManualLayoutActorLogic";
@@ -207,6 +217,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
207
217
  logic: OverlaysActorLogic;
208
218
  id: "overlays";
209
219
  };
220
+ searchActorLogic: {
221
+ src: "searchActorLogic";
222
+ logic: SearchActorLogic;
223
+ id: "search";
224
+ };
210
225
  }>, Values<{
211
226
  onNodeMouseEnter: {
212
227
  type: "onNodeMouseEnter";
@@ -251,6 +266,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
251
266
  kind?: string;
252
267
  };
253
268
  };
269
+ "tag.highlight": {
270
+ type: "tag.highlight";
271
+ params: NonReducibleUnknown;
272
+ };
254
273
  "xyflow:fitDiagram": {
255
274
  type: "xyflow:fitDiagram";
256
275
  params: {
@@ -305,10 +324,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
305
324
  toPosition: XYPoint;
306
325
  };
307
326
  };
327
+ "ensure overlays actor state": {
328
+ type: "ensure overlays actor state";
329
+ params: NonReducibleUnknown;
330
+ };
331
+ "ensure search actor state": {
332
+ type: "ensure search actor state";
333
+ params: NonReducibleUnknown;
334
+ };
308
335
  updateFeatures: {
309
336
  type: "updateFeatures";
310
337
  params: NonReducibleUnknown;
311
338
  };
339
+ closeSearch: {
340
+ type: "closeSearch";
341
+ params: NonReducibleUnknown;
342
+ };
312
343
  startSyncLayout: {
313
344
  type: "startSyncLayout";
314
345
  params: NonReducibleUnknown;
@@ -317,6 +348,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
317
348
  type: "stopSyncLayout";
318
349
  params: NonReducibleUnknown;
319
350
  };
351
+ "focus on nodes and edges": {
352
+ type: "focus on nodes and edges";
353
+ params: NonReducibleUnknown;
354
+ };
355
+ "undim everything": {
356
+ type: "undim everything";
357
+ params: NonReducibleUnknown;
358
+ };
359
+ "update active walkthrough": {
360
+ type: "update active walkthrough";
361
+ params: NonReducibleUnknown;
362
+ };
320
363
  }>, Values<{
321
364
  isReady: {
322
365
  type: "isReady";
@@ -338,6 +381,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
338
381
  type: "enabled: RelationshipDetails";
339
382
  params: unknown;
340
383
  };
384
+ "enabled: Search": {
385
+ type: "enabled: Search";
386
+ params: unknown;
387
+ };
341
388
  "not readonly": {
342
389
  type: "not readonly";
343
390
  params: unknown;
@@ -374,9 +421,9 @@ declare const _diagramMachine: StateMachine<Context, Events, {
374
421
  ready: "idle" | "walkthrough" | "focused";
375
422
  }, string, Input, NonReducibleUnknown, EventObject, MetaObject, {
376
423
  readonly initial: "initializing";
377
- readonly context: ({ input, self, spawn }: {
424
+ readonly context: ({ input }: {
378
425
  spawn: {
379
- <TSrc extends "syncManualLayoutActorLogic" | "hotkeyActorLogic" | "overlaysActorLogic">(logic: TSrc, ...[options]: ({
426
+ <TSrc extends "syncManualLayoutActorLogic" | "hotkeyActorLogic" | "overlaysActorLogic" | "searchActorLogic">(logic: TSrc, ...[options]: ({
380
427
  src: "syncManualLayoutActorLogic";
381
428
  logic: SyncLayoutActorLogic;
382
429
  id: "syncLayout";
@@ -421,7 +468,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
421
468
  systemId?: string;
422
469
  input?: InputFrom<T_2["logic"]>;
423
470
  syncSnapshot?: boolean;
424
- } & { [K_2 in RequiredActorOptions<T_2>]: unknown; }], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never)): ActorRefFromLogic< GetConcreteByKey<Values<{
471
+ } & { [K_2 in RequiredActorOptions<T_2>]: unknown; }], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never) | ({
472
+ src: "searchActorLogic";
473
+ logic: SearchActorLogic;
474
+ id: "search";
475
+ } extends infer T_3 ? T_3 extends {
476
+ src: "searchActorLogic";
477
+ logic: SearchActorLogic;
478
+ id: "search";
479
+ } ? T_3 extends {
480
+ src: TSrc;
481
+ } ? ConditionalRequired<[options?: {
482
+ id?: T_3["id"];
483
+ systemId?: string;
484
+ input?: InputFrom<T_3["logic"]>;
485
+ syncSnapshot?: boolean;
486
+ } & { [K_3 in RequiredActorOptions<T_3>]: unknown; }], IsNotNever<RequiredActorOptions<T_3>>> : never : never : never)): ActorRefFromLogic< GetConcreteByKey<Values<{
425
487
  syncManualLayoutActorLogic: {
426
488
  src: "syncManualLayoutActorLogic";
427
489
  logic: SyncLayoutActorLogic;
@@ -437,6 +499,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
437
499
  logic: OverlaysActorLogic;
438
500
  id: "overlays";
439
501
  };
502
+ searchActorLogic: {
503
+ src: "searchActorLogic";
504
+ logic: SearchActorLogic;
505
+ id: "search";
506
+ };
440
507
  }>, "src", TSrc>["logic"]>;
441
508
  <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
442
509
  id?: never;
@@ -447,57 +514,7 @@ declare const _diagramMachine: StateMachine<Context, Events, {
447
514
  };
448
515
  input: Input;
449
516
  self: ActorRef< MachineSnapshot<Context, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
450
- }) => {
451
- xyedges: never[];
452
- xynodes: never[];
453
- features: {
454
- enableControls: boolean;
455
- enableReadOnly: boolean;
456
- enableFocusMode: boolean;
457
- enableNavigateTo: boolean;
458
- enableElementDetails: boolean;
459
- enableRelationshipDetails: boolean;
460
- enableRelationshipBrowser: boolean;
461
- enableSearch: boolean;
462
- enableNavigationButtons: boolean;
463
- enableNotations: boolean;
464
- enableDynamicViewWalkthrough: boolean;
465
- enableEdgeEditing: boolean;
466
- enableViewTitle: boolean;
467
- enableFitView: boolean;
468
- enableLikeC4Model: boolean;
469
- enableVscode: boolean;
470
- };
471
- toggledFeatures: Partial<EnabledFeatures>;
472
- initialized: {
473
- xydata: false;
474
- xyflow: false;
475
- };
476
- viewportChangedManually: false;
477
- lastOnNavigate: null;
478
- lastClickedNode: null;
479
- focusedNode: null;
480
- activeElementDetails: null;
481
- viewportBeforeFocus: null;
482
- navigationHistory: {
483
- currentIndex: number;
484
- history: never[];
485
- };
486
- viewport: {
487
- x: number;
488
- y: number;
489
- zoom: number;
490
- };
491
- xyflow: null;
492
- syncLayoutActorRef: null;
493
- activeWalkthrough: null;
494
- view: DiagramView;
495
- xystore: XYStoreApi;
496
- zoomable: boolean;
497
- pannable: boolean;
498
- fitViewPadding: PaddingWithUnit;
499
- nodesSelectable: boolean;
500
- };
517
+ }) => Context;
501
518
  readonly states: {
502
519
  readonly initializing: {
503
520
  readonly on: {
@@ -521,6 +538,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
521
538
  logic: OverlaysActorLogic;
522
539
  id: "overlays";
523
540
  };
541
+ searchActorLogic: {
542
+ src: "searchActorLogic";
543
+ logic: SearchActorLogic;
544
+ id: "search";
545
+ };
524
546
  }>, never, never, never, never>;
525
547
  readonly target: "isReady";
526
548
  };
@@ -546,6 +568,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
546
568
  logic: OverlaysActorLogic;
547
569
  id: "overlays";
548
570
  };
571
+ searchActorLogic: {
572
+ src: "searchActorLogic";
573
+ logic: SearchActorLogic;
574
+ id: "search";
575
+ };
549
576
  }>, never, never, never, never>;
550
577
  readonly target: "isReady";
551
578
  };
@@ -575,6 +602,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
575
602
  logic: OverlaysActorLogic;
576
603
  id: "overlays";
577
604
  };
605
+ searchActorLogic: {
606
+ src: "searchActorLogic";
607
+ logic: SearchActorLogic;
608
+ id: "search";
609
+ };
578
610
  }>, never, never, never, never>, "startSyncLayout"];
579
611
  readonly target: "ready";
580
612
  }, {
@@ -606,6 +638,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
606
638
  logic: OverlaysActorLogic;
607
639
  id: "overlays";
608
640
  };
641
+ searchActorLogic: {
642
+ src: "searchActorLogic";
643
+ logic: SearchActorLogic;
644
+ id: "search";
645
+ };
609
646
  }>, never, never, never, never>;
610
647
  readonly target: "#navigating";
611
648
  };
@@ -627,6 +664,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
627
664
  logic: OverlaysActorLogic;
628
665
  id: "overlays";
629
666
  };
667
+ searchActorLogic: {
668
+ src: "searchActorLogic";
669
+ logic: SearchActorLogic;
670
+ id: "search";
671
+ };
630
672
  }>, never, never, never, never>;
631
673
  readonly target: "#navigating";
632
674
  };
@@ -648,6 +690,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
648
690
  logic: OverlaysActorLogic;
649
691
  id: "overlays";
650
692
  };
693
+ searchActorLogic: {
694
+ src: "searchActorLogic";
695
+ logic: SearchActorLogic;
696
+ id: "search";
697
+ };
651
698
  }>, never, never, never, never>;
652
699
  readonly target: "#navigating";
653
700
  };
@@ -687,6 +734,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
687
734
  logic: OverlaysActorLogic;
688
735
  id: "overlays";
689
736
  };
737
+ searchActorLogic: {
738
+ src: "searchActorLogic";
739
+ logic: SearchActorLogic;
740
+ id: "search";
741
+ };
690
742
  }>, never, never, never, never>, ActionFunction<Context, {
691
743
  type: "layout.resetEdgeControlPoints";
692
744
  }, Events, undefined, never, never, never, never, never>];
@@ -763,6 +815,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
763
815
  logic: OverlaysActorLogic;
764
816
  id: "overlays";
765
817
  };
818
+ searchActorLogic: {
819
+ src: "searchActorLogic";
820
+ logic: SearchActorLogic;
821
+ id: "search";
822
+ };
766
823
  }>, never, never, never, never>;
767
824
  };
768
825
  readonly 'xyflow.nodeMouseEnter': {
@@ -837,13 +894,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
837
894
  label: string | null;
838
895
  points: NonEmptyArray<Point>;
839
896
  color: Color | undefined;
897
+ head: RelationshipArrowType | undefined;
840
898
  line: RelationshipLineType | undefined;
841
899
  dir: "forward" | "back" | "both" | undefined;
842
- tail: RelationshipArrowType | undefined;
843
- head: RelationshipArrowType | undefined;
844
900
  technology: string | undefined;
901
+ tail: RelationshipArrowType | undefined;
845
902
  labelBBox: BBox | null | undefined;
846
- navigateTo: ViewId<string> | undefined;
903
+ navigateTo: ViewId<string> | null | undefined;
847
904
  notes: string | undefined;
848
905
  labelXY: XYPosition | null;
849
906
  controlPoints: XYPosition[] | undefined | null;
@@ -887,13 +944,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
887
944
  label: string | null;
888
945
  points: NonEmptyArray<Point>;
889
946
  color: Color | undefined;
947
+ head: RelationshipArrowType | undefined;
890
948
  line: RelationshipLineType | undefined;
891
949
  dir: "forward" | "back" | "both" | undefined;
892
- tail: RelationshipArrowType | undefined;
893
- head: RelationshipArrowType | undefined;
894
950
  technology: string | undefined;
951
+ tail: RelationshipArrowType | undefined;
895
952
  labelBBox: BBox | null | undefined;
896
- navigateTo: ViewId<string> | undefined;
953
+ navigateTo: ViewId<string> | null | undefined;
897
954
  notes: string | undefined;
898
955
  labelXY: XYPosition | null;
899
956
  controlPoints: XYPosition[] | undefined | null;
@@ -944,13 +1001,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
944
1001
  label: string | null;
945
1002
  points: NonEmptyArray<Point>;
946
1003
  color: Color | undefined;
1004
+ head: RelationshipArrowType | undefined;
947
1005
  line: RelationshipLineType | undefined;
948
1006
  dir: "forward" | "back" | "both" | undefined;
949
- tail: RelationshipArrowType | undefined;
950
- head: RelationshipArrowType | undefined;
951
1007
  technology: string | undefined;
1008
+ tail: RelationshipArrowType | undefined;
952
1009
  labelBBox: BBox | null | undefined;
953
- navigateTo: ViewId<string> | undefined;
1010
+ navigateTo: ViewId<string> | null | undefined;
954
1011
  notes: string | undefined;
955
1012
  labelXY: XYPosition | null;
956
1013
  controlPoints: XYPosition[] | undefined | null;
@@ -994,13 +1051,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
994
1051
  label: string | null;
995
1052
  points: NonEmptyArray<Point>;
996
1053
  color: Color | undefined;
1054
+ head: RelationshipArrowType | undefined;
997
1055
  line: RelationshipLineType | undefined;
998
1056
  dir: "forward" | "back" | "both" | undefined;
999
- tail: RelationshipArrowType | undefined;
1000
- head: RelationshipArrowType | undefined;
1001
1057
  technology: string | undefined;
1058
+ tail: RelationshipArrowType | undefined;
1002
1059
  labelBBox: BBox | null | undefined;
1003
- navigateTo: ViewId<string> | undefined;
1060
+ navigateTo: ViewId<string> | null | undefined;
1004
1061
  notes: string | undefined;
1005
1062
  labelXY: XYPosition | null;
1006
1063
  controlPoints: XYPosition[] | undefined | null;
@@ -1027,25 +1084,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1027
1084
  };
1028
1085
  };
1029
1086
  readonly 'notations.unhighlight': {
1030
- readonly actions: ActionFunction<Context, {
1031
- type: "notations.unhighlight";
1032
- }, Events, undefined, Values<{
1033
- syncManualLayoutActorLogic: {
1034
- src: "syncManualLayoutActorLogic";
1035
- logic: SyncLayoutActorLogic;
1036
- id: "syncLayout";
1037
- };
1038
- hotkeyActorLogic: {
1039
- src: "hotkeyActorLogic";
1040
- logic: HotkeyActorLogic;
1041
- id: "hotkey";
1042
- };
1043
- overlaysActorLogic: {
1044
- src: "overlaysActorLogic";
1045
- logic: OverlaysActorLogic;
1046
- id: "overlays";
1047
- };
1048
- }>, never, never, never, never>;
1087
+ readonly actions: "undim everything";
1088
+ };
1089
+ readonly 'tag.highlight': {
1090
+ readonly actions: "tag.highlight";
1091
+ };
1092
+ readonly 'tag.unhighlight': {
1093
+ readonly actions: "undim everything";
1049
1094
  };
1050
1095
  readonly 'saveManualLayout.*': {
1051
1096
  readonly guard: "not readonly";
@@ -1055,6 +1100,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1055
1100
  type: "saveManualLayout.cancel";
1056
1101
  }, Events, undefined, never, never, never, never, never>;
1057
1102
  };
1103
+ readonly 'open.search': {
1104
+ readonly guard: "enabled: Search";
1105
+ readonly actions: ActionFunction<Context, {
1106
+ type: "open.search";
1107
+ search?: string;
1108
+ }, Events, undefined, never, never, never, never, never>;
1109
+ };
1058
1110
  };
1059
1111
  readonly exit: readonly [ CancelAction<Context, Events, undefined, Events>];
1060
1112
  readonly states: {
@@ -1082,6 +1134,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1082
1134
  logic: OverlaysActorLogic;
1083
1135
  id: "overlays";
1084
1136
  };
1137
+ searchActorLogic: {
1138
+ src: "searchActorLogic";
1139
+ logic: SearchActorLogic;
1140
+ id: "search";
1141
+ };
1085
1142
  }>, never, never, never, never>];
1086
1143
  readonly target: "focused";
1087
1144
  }, {
@@ -1106,6 +1163,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1106
1163
  logic: OverlaysActorLogic;
1107
1164
  id: "overlays";
1108
1165
  };
1166
+ searchActorLogic: {
1167
+ src: "searchActorLogic";
1168
+ logic: SearchActorLogic;
1169
+ id: "search";
1170
+ };
1109
1171
  }>, never, never, never, never>];
1110
1172
  };
1111
1173
  readonly 'xyflow.paneDblClick': {
@@ -1144,6 +1206,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1144
1206
  logic: OverlaysActorLogic;
1145
1207
  id: "overlays";
1146
1208
  };
1209
+ searchActorLogic: {
1210
+ src: "searchActorLogic";
1211
+ logic: SearchActorLogic;
1212
+ id: "search";
1213
+ };
1147
1214
  }>, never, never, never, never>;
1148
1215
  readonly target: "focused";
1149
1216
  };
@@ -1163,7 +1230,7 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1163
1230
  };
1164
1231
  };
1165
1232
  readonly focused: {
1166
- readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
1233
+ readonly entry: readonly ["focus on nodes and edges", ActionFunction<Context, Events, Events, undefined, Values<{
1167
1234
  syncManualLayoutActorLogic: {
1168
1235
  src: "syncManualLayoutActorLogic";
1169
1236
  logic: SyncLayoutActorLogic;
@@ -1179,6 +1246,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1179
1246
  logic: OverlaysActorLogic;
1180
1247
  id: "overlays";
1181
1248
  };
1249
+ searchActorLogic: {
1250
+ src: "searchActorLogic";
1251
+ logic: SearchActorLogic;
1252
+ id: "search";
1253
+ };
1182
1254
  }>, never, never, never, never>, "open source of focused or last clicked node", ActionFunction<Context, Events, Events, undefined, Values<{
1183
1255
  syncManualLayoutActorLogic: {
1184
1256
  src: "syncManualLayoutActorLogic";
@@ -1195,6 +1267,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1195
1267
  logic: OverlaysActorLogic;
1196
1268
  id: "overlays";
1197
1269
  };
1270
+ searchActorLogic: {
1271
+ src: "searchActorLogic";
1272
+ logic: SearchActorLogic;
1273
+ id: "search";
1274
+ };
1198
1275
  }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
1199
1276
  readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
1200
1277
  syncManualLayoutActorLogic: {
@@ -1212,6 +1289,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1212
1289
  logic: OverlaysActorLogic;
1213
1290
  id: "overlays";
1214
1291
  };
1292
+ searchActorLogic: {
1293
+ src: "searchActorLogic";
1294
+ logic: SearchActorLogic;
1295
+ id: "search";
1296
+ };
1215
1297
  }>, Values<{
1216
1298
  onNodeMouseEnter: {
1217
1299
  type: "onNodeMouseEnter";
@@ -1256,6 +1338,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1256
1338
  kind?: string;
1257
1339
  };
1258
1340
  };
1341
+ "tag.highlight": {
1342
+ type: "tag.highlight";
1343
+ params: NonReducibleUnknown;
1344
+ };
1259
1345
  "xyflow:fitDiagram": {
1260
1346
  type: "xyflow:fitDiagram";
1261
1347
  params: {
@@ -1310,10 +1396,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1310
1396
  toPosition: XYPoint;
1311
1397
  };
1312
1398
  };
1399
+ "ensure overlays actor state": {
1400
+ type: "ensure overlays actor state";
1401
+ params: NonReducibleUnknown;
1402
+ };
1403
+ "ensure search actor state": {
1404
+ type: "ensure search actor state";
1405
+ params: NonReducibleUnknown;
1406
+ };
1313
1407
  updateFeatures: {
1314
1408
  type: "updateFeatures";
1315
1409
  params: NonReducibleUnknown;
1316
1410
  };
1411
+ closeSearch: {
1412
+ type: "closeSearch";
1413
+ params: NonReducibleUnknown;
1414
+ };
1317
1415
  startSyncLayout: {
1318
1416
  type: "startSyncLayout";
1319
1417
  params: NonReducibleUnknown;
@@ -1322,6 +1420,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1322
1420
  type: "stopSyncLayout";
1323
1421
  params: NonReducibleUnknown;
1324
1422
  };
1423
+ "focus on nodes and edges": {
1424
+ type: "focus on nodes and edges";
1425
+ params: NonReducibleUnknown;
1426
+ };
1427
+ "undim everything": {
1428
+ type: "undim everything";
1429
+ params: NonReducibleUnknown;
1430
+ };
1431
+ "update active walkthrough": {
1432
+ type: "update active walkthrough";
1433
+ params: NonReducibleUnknown;
1434
+ };
1325
1435
  }>, Values<{
1326
1436
  isReady: {
1327
1437
  type: "isReady";
@@ -1343,6 +1453,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1343
1453
  type: "enabled: RelationshipDetails";
1344
1454
  params: unknown;
1345
1455
  };
1456
+ "enabled: Search": {
1457
+ type: "enabled: Search";
1458
+ params: unknown;
1459
+ };
1346
1460
  "not readonly": {
1347
1461
  type: "not readonly";
1348
1462
  params: unknown;
@@ -1400,6 +1514,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1400
1514
  logic: OverlaysActorLogic;
1401
1515
  id: "overlays";
1402
1516
  };
1517
+ searchActorLogic: {
1518
+ src: "searchActorLogic";
1519
+ logic: SearchActorLogic;
1520
+ id: "search";
1521
+ };
1403
1522
  }>, never, never, never, never>, ActionFunction<Context, {
1404
1523
  type: "xyflow.nodeClick";
1405
1524
  node: Types.Node;
@@ -1425,23 +1544,12 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1425
1544
  logic: OverlaysActorLogic;
1426
1545
  id: "overlays";
1427
1546
  };
1428
- }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
1429
- syncManualLayoutActorLogic: {
1430
- src: "syncManualLayoutActorLogic";
1431
- logic: SyncLayoutActorLogic;
1432
- id: "syncLayout";
1433
- };
1434
- hotkeyActorLogic: {
1435
- src: "hotkeyActorLogic";
1436
- logic: HotkeyActorLogic;
1437
- id: "hotkey";
1547
+ searchActorLogic: {
1548
+ src: "searchActorLogic";
1549
+ logic: SearchActorLogic;
1550
+ id: "search";
1438
1551
  };
1439
- overlaysActorLogic: {
1440
- src: "overlaysActorLogic";
1441
- logic: OverlaysActorLogic;
1442
- id: "overlays";
1443
- };
1444
- }>, never, never, never, never>, "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
1552
+ }>, never, never, never, never>, "focus on nodes and edges", "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
1445
1553
  };
1446
1554
  readonly 'key.esc': {
1447
1555
  readonly target: "idle";
@@ -1465,29 +1573,19 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1465
1573
  logic: OverlaysActorLogic;
1466
1574
  id: "overlays";
1467
1575
  };
1576
+ searchActorLogic: {
1577
+ src: "searchActorLogic";
1578
+ logic: SearchActorLogic;
1579
+ id: "search";
1580
+ };
1468
1581
  }>, never, never, never, never>;
1469
1582
  readonly target: "idle";
1470
1583
  };
1471
1584
  readonly 'notations.unhighlight': {
1472
- readonly actions: ActionFunction<Context, {
1473
- type: "notations.unhighlight";
1474
- }, Events, undefined, Values<{
1475
- syncManualLayoutActorLogic: {
1476
- src: "syncManualLayoutActorLogic";
1477
- logic: SyncLayoutActorLogic;
1478
- id: "syncLayout";
1479
- };
1480
- hotkeyActorLogic: {
1481
- src: "hotkeyActorLogic";
1482
- logic: HotkeyActorLogic;
1483
- id: "hotkey";
1484
- };
1485
- overlaysActorLogic: {
1486
- src: "overlaysActorLogic";
1487
- logic: OverlaysActorLogic;
1488
- id: "overlays";
1489
- };
1490
- }>, never, never, never, never>;
1585
+ readonly actions: "focus on nodes and edges";
1586
+ };
1587
+ readonly 'tag.unhighlight': {
1588
+ readonly actions: "focus on nodes and edges";
1491
1589
  };
1492
1590
  };
1493
1591
  };
@@ -1508,21 +1606,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1508
1606
  logic: OverlaysActorLogic;
1509
1607
  id: "overlays";
1510
1608
  };
1511
- }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
1512
- syncManualLayoutActorLogic: {
1513
- src: "syncManualLayoutActorLogic";
1514
- logic: SyncLayoutActorLogic;
1515
- id: "syncLayout";
1516
- };
1517
- hotkeyActorLogic: {
1518
- src: "hotkeyActorLogic";
1519
- logic: HotkeyActorLogic;
1520
- id: "hotkey";
1521
- };
1522
- overlaysActorLogic: {
1523
- src: "overlaysActorLogic";
1524
- logic: OverlaysActorLogic;
1525
- id: "overlays";
1609
+ searchActorLogic: {
1610
+ src: "searchActorLogic";
1611
+ logic: SearchActorLogic;
1612
+ id: "search";
1526
1613
  };
1527
1614
  }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
1528
1615
  syncManualLayoutActorLogic: {
@@ -1540,7 +1627,12 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1540
1627
  logic: OverlaysActorLogic;
1541
1628
  id: "overlays";
1542
1629
  };
1543
- }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
1630
+ searchActorLogic: {
1631
+ src: "searchActorLogic";
1632
+ logic: SearchActorLogic;
1633
+ id: "search";
1634
+ };
1635
+ }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds"];
1544
1636
  readonly on: {
1545
1637
  readonly 'key.esc': {
1546
1638
  readonly target: "idle";
@@ -1571,6 +1663,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1571
1663
  logic: OverlaysActorLogic;
1572
1664
  id: "overlays";
1573
1665
  };
1666
+ searchActorLogic: {
1667
+ src: "searchActorLogic";
1668
+ logic: SearchActorLogic;
1669
+ id: "search";
1670
+ };
1574
1671
  }>, Values<{
1575
1672
  onNodeMouseEnter: {
1576
1673
  type: "onNodeMouseEnter";
@@ -1615,6 +1712,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1615
1712
  kind?: string;
1616
1713
  };
1617
1714
  };
1715
+ "tag.highlight": {
1716
+ type: "tag.highlight";
1717
+ params: NonReducibleUnknown;
1718
+ };
1618
1719
  "xyflow:fitDiagram": {
1619
1720
  type: "xyflow:fitDiagram";
1620
1721
  params: {
@@ -1669,10 +1770,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1669
1770
  toPosition: XYPoint;
1670
1771
  };
1671
1772
  };
1773
+ "ensure overlays actor state": {
1774
+ type: "ensure overlays actor state";
1775
+ params: NonReducibleUnknown;
1776
+ };
1777
+ "ensure search actor state": {
1778
+ type: "ensure search actor state";
1779
+ params: NonReducibleUnknown;
1780
+ };
1672
1781
  updateFeatures: {
1673
1782
  type: "updateFeatures";
1674
1783
  params: NonReducibleUnknown;
1675
1784
  };
1785
+ closeSearch: {
1786
+ type: "closeSearch";
1787
+ params: NonReducibleUnknown;
1788
+ };
1676
1789
  startSyncLayout: {
1677
1790
  type: "startSyncLayout";
1678
1791
  params: NonReducibleUnknown;
@@ -1681,6 +1794,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1681
1794
  type: "stopSyncLayout";
1682
1795
  params: NonReducibleUnknown;
1683
1796
  };
1797
+ "focus on nodes and edges": {
1798
+ type: "focus on nodes and edges";
1799
+ params: NonReducibleUnknown;
1800
+ };
1801
+ "undim everything": {
1802
+ type: "undim everything";
1803
+ params: NonReducibleUnknown;
1804
+ };
1805
+ "update active walkthrough": {
1806
+ type: "update active walkthrough";
1807
+ params: NonReducibleUnknown;
1808
+ };
1684
1809
  }>, Values<{
1685
1810
  isReady: {
1686
1811
  type: "isReady";
@@ -1702,6 +1827,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1702
1827
  type: "enabled: RelationshipDetails";
1703
1828
  params: unknown;
1704
1829
  };
1830
+ "enabled: Search": {
1831
+ type: "enabled: Search";
1832
+ params: unknown;
1833
+ };
1705
1834
  "not readonly": {
1706
1835
  type: "not readonly";
1707
1836
  params: unknown;
@@ -1756,44 +1885,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1756
1885
  logic: OverlaysActorLogic;
1757
1886
  id: "overlays";
1758
1887
  };
1759
- }>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
1760
- syncManualLayoutActorLogic: {
1761
- src: "syncManualLayoutActorLogic";
1762
- logic: SyncLayoutActorLogic;
1763
- id: "syncLayout";
1764
- };
1765
- hotkeyActorLogic: {
1766
- src: "hotkeyActorLogic";
1767
- logic: HotkeyActorLogic;
1768
- id: "hotkey";
1888
+ searchActorLogic: {
1889
+ src: "searchActorLogic";
1890
+ logic: SearchActorLogic;
1891
+ id: "search";
1769
1892
  };
1770
- overlaysActorLogic: {
1771
- src: "overlaysActorLogic";
1772
- logic: OverlaysActorLogic;
1773
- id: "overlays";
1774
- };
1775
- }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
1893
+ }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds"];
1776
1894
  };
1777
1895
  readonly 'notations.unhighlight': {
1778
- readonly actions: ActionFunction<Context, {
1779
- type: "notations.unhighlight";
1780
- }, Events, undefined, Values<{
1781
- syncManualLayoutActorLogic: {
1782
- src: "syncManualLayoutActorLogic";
1783
- logic: SyncLayoutActorLogic;
1784
- id: "syncLayout";
1785
- };
1786
- hotkeyActorLogic: {
1787
- src: "hotkeyActorLogic";
1788
- logic: HotkeyActorLogic;
1789
- id: "hotkey";
1790
- };
1791
- overlaysActorLogic: {
1792
- src: "overlaysActorLogic";
1793
- logic: OverlaysActorLogic;
1794
- id: "overlays";
1795
- };
1796
- }>, never, never, never, never>;
1896
+ readonly actions: "update active walkthrough";
1897
+ };
1898
+ readonly 'tag.unhighlight': {
1899
+ readonly actions: "update active walkthrough";
1797
1900
  };
1798
1901
  readonly 'walkthrough.end': {
1799
1902
  readonly target: "idle";
@@ -1828,6 +1931,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1828
1931
  logic: OverlaysActorLogic;
1829
1932
  id: "overlays";
1830
1933
  };
1934
+ searchActorLogic: {
1935
+ src: "searchActorLogic";
1936
+ logic: SearchActorLogic;
1937
+ id: "search";
1938
+ };
1831
1939
  }>, Values<{
1832
1940
  onNodeMouseEnter: {
1833
1941
  type: "onNodeMouseEnter";
@@ -1872,6 +1980,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1872
1980
  kind?: string;
1873
1981
  };
1874
1982
  };
1983
+ "tag.highlight": {
1984
+ type: "tag.highlight";
1985
+ params: NonReducibleUnknown;
1986
+ };
1875
1987
  "xyflow:fitDiagram": {
1876
1988
  type: "xyflow:fitDiagram";
1877
1989
  params: {
@@ -1926,10 +2038,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1926
2038
  toPosition: XYPoint;
1927
2039
  };
1928
2040
  };
2041
+ "ensure overlays actor state": {
2042
+ type: "ensure overlays actor state";
2043
+ params: NonReducibleUnknown;
2044
+ };
2045
+ "ensure search actor state": {
2046
+ type: "ensure search actor state";
2047
+ params: NonReducibleUnknown;
2048
+ };
1929
2049
  updateFeatures: {
1930
2050
  type: "updateFeatures";
1931
2051
  params: NonReducibleUnknown;
1932
2052
  };
2053
+ closeSearch: {
2054
+ type: "closeSearch";
2055
+ params: NonReducibleUnknown;
2056
+ };
1933
2057
  startSyncLayout: {
1934
2058
  type: "startSyncLayout";
1935
2059
  params: NonReducibleUnknown;
@@ -1938,6 +2062,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1938
2062
  type: "stopSyncLayout";
1939
2063
  params: NonReducibleUnknown;
1940
2064
  };
2065
+ "focus on nodes and edges": {
2066
+ type: "focus on nodes and edges";
2067
+ params: NonReducibleUnknown;
2068
+ };
2069
+ "undim everything": {
2070
+ type: "undim everything";
2071
+ params: NonReducibleUnknown;
2072
+ };
2073
+ "update active walkthrough": {
2074
+ type: "update active walkthrough";
2075
+ params: NonReducibleUnknown;
2076
+ };
1941
2077
  }>, Values<{
1942
2078
  isReady: {
1943
2079
  type: "isReady";
@@ -1959,6 +2095,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1959
2095
  type: "enabled: RelationshipDetails";
1960
2096
  params: unknown;
1961
2097
  };
2098
+ "enabled: Search": {
2099
+ type: "enabled: Search";
2100
+ params: unknown;
2101
+ };
1962
2102
  "not readonly": {
1963
2103
  type: "not readonly";
1964
2104
  params: unknown;
@@ -1997,15 +2137,223 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1997
2137
  };
1998
2138
  readonly navigating: {
1999
2139
  readonly id: "navigating";
2000
- readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
2001
- readonly type: "trigger:NavigateTo";
2002
- readonly params: ({ context }: {
2003
- context: Context;
2004
- event: Events;
2005
- }) => {
2006
- viewId: ViewId;
2140
+ readonly entry: readonly ["closeAllOverlays", "closeSearch", "stopSyncLayout", ActionFunction<Context, Events, Events, undefined, Values<{
2141
+ syncManualLayoutActorLogic: {
2142
+ src: "syncManualLayoutActorLogic";
2143
+ logic: SyncLayoutActorLogic;
2144
+ id: "syncLayout";
2007
2145
  };
2008
- }];
2146
+ hotkeyActorLogic: {
2147
+ src: "hotkeyActorLogic";
2148
+ logic: HotkeyActorLogic;
2149
+ id: "hotkey";
2150
+ };
2151
+ overlaysActorLogic: {
2152
+ src: "overlaysActorLogic";
2153
+ logic: OverlaysActorLogic;
2154
+ id: "overlays";
2155
+ };
2156
+ searchActorLogic: {
2157
+ src: "searchActorLogic";
2158
+ logic: SearchActorLogic;
2159
+ id: "search";
2160
+ };
2161
+ }>, Values<{
2162
+ onNodeMouseEnter: {
2163
+ type: "onNodeMouseEnter";
2164
+ params: {
2165
+ node: Types.Node;
2166
+ };
2167
+ };
2168
+ onNodeMouseLeave: {
2169
+ type: "onNodeMouseLeave";
2170
+ params: {
2171
+ node: Types.Node;
2172
+ };
2173
+ };
2174
+ onEdgeMouseEnter: {
2175
+ type: "onEdgeMouseEnter";
2176
+ params: {
2177
+ edge: Types.Edge;
2178
+ };
2179
+ };
2180
+ onEdgeMouseLeave: {
2181
+ type: "onEdgeMouseLeave";
2182
+ params: {
2183
+ edge: Types.Edge;
2184
+ };
2185
+ };
2186
+ "trigger:OnChange": {
2187
+ type: "trigger:OnChange";
2188
+ params: {
2189
+ change: ViewChange;
2190
+ };
2191
+ };
2192
+ "layout.align": {
2193
+ type: "layout.align";
2194
+ params: {
2195
+ mode: AlignmentMode;
2196
+ };
2197
+ };
2198
+ "notations.highlight": {
2199
+ type: "notations.highlight";
2200
+ params: {
2201
+ notation: ElementNotation;
2202
+ kind?: string;
2203
+ };
2204
+ };
2205
+ "tag.highlight": {
2206
+ type: "tag.highlight";
2207
+ params: NonReducibleUnknown;
2208
+ };
2209
+ "xyflow:fitDiagram": {
2210
+ type: "xyflow:fitDiagram";
2211
+ params: {
2212
+ duration?: number;
2213
+ bounds?: BBox;
2214
+ } | undefined;
2215
+ };
2216
+ closeAllOverlays: {
2217
+ type: "closeAllOverlays";
2218
+ params: NonReducibleUnknown;
2219
+ };
2220
+ "trigger:NavigateTo": {
2221
+ type: "trigger:NavigateTo";
2222
+ params: {
2223
+ viewId: ViewId;
2224
+ };
2225
+ };
2226
+ "trigger:OpenSource": {
2227
+ type: "trigger:OpenSource";
2228
+ params: OpenSourceParams;
2229
+ };
2230
+ "assign lastClickedNode": {
2231
+ type: "assign lastClickedNode";
2232
+ params: NonReducibleUnknown;
2233
+ };
2234
+ "open source of focused or last clicked node": {
2235
+ type: "open source of focused or last clicked node";
2236
+ params: NonReducibleUnknown;
2237
+ };
2238
+ "xyflow:fitFocusedBounds": {
2239
+ type: "xyflow:fitFocusedBounds";
2240
+ params: unknown;
2241
+ };
2242
+ "xyflow:setViewportCenter": {
2243
+ type: "xyflow:setViewportCenter";
2244
+ params: {
2245
+ x: number;
2246
+ y: number;
2247
+ };
2248
+ };
2249
+ "xyflow:setViewport": {
2250
+ type: "xyflow:setViewport";
2251
+ params: {
2252
+ viewport: Viewport;
2253
+ duration?: number;
2254
+ };
2255
+ };
2256
+ "xyflow:alignNodeFromToAfterNavigate": {
2257
+ type: "xyflow:alignNodeFromToAfterNavigate";
2258
+ params: {
2259
+ fromNode: NodeId;
2260
+ toPosition: XYPoint;
2261
+ };
2262
+ };
2263
+ "ensure overlays actor state": {
2264
+ type: "ensure overlays actor state";
2265
+ params: NonReducibleUnknown;
2266
+ };
2267
+ "ensure search actor state": {
2268
+ type: "ensure search actor state";
2269
+ params: NonReducibleUnknown;
2270
+ };
2271
+ updateFeatures: {
2272
+ type: "updateFeatures";
2273
+ params: NonReducibleUnknown;
2274
+ };
2275
+ closeSearch: {
2276
+ type: "closeSearch";
2277
+ params: NonReducibleUnknown;
2278
+ };
2279
+ startSyncLayout: {
2280
+ type: "startSyncLayout";
2281
+ params: NonReducibleUnknown;
2282
+ };
2283
+ stopSyncLayout: {
2284
+ type: "stopSyncLayout";
2285
+ params: NonReducibleUnknown;
2286
+ };
2287
+ "focus on nodes and edges": {
2288
+ type: "focus on nodes and edges";
2289
+ params: NonReducibleUnknown;
2290
+ };
2291
+ "undim everything": {
2292
+ type: "undim everything";
2293
+ params: NonReducibleUnknown;
2294
+ };
2295
+ "update active walkthrough": {
2296
+ type: "update active walkthrough";
2297
+ params: NonReducibleUnknown;
2298
+ };
2299
+ }>, Values<{
2300
+ isReady: {
2301
+ type: "isReady";
2302
+ params: unknown;
2303
+ };
2304
+ "enabled: FitView": {
2305
+ type: "enabled: FitView";
2306
+ params: unknown;
2307
+ };
2308
+ "enabled: FocusMode": {
2309
+ type: "enabled: FocusMode";
2310
+ params: unknown;
2311
+ };
2312
+ "enabled: Readonly": {
2313
+ type: "enabled: Readonly";
2314
+ params: unknown;
2315
+ };
2316
+ "enabled: RelationshipDetails": {
2317
+ type: "enabled: RelationshipDetails";
2318
+ params: unknown;
2319
+ };
2320
+ "enabled: Search": {
2321
+ type: "enabled: Search";
2322
+ params: unknown;
2323
+ };
2324
+ "not readonly": {
2325
+ type: "not readonly";
2326
+ params: unknown;
2327
+ };
2328
+ "is dynamic view": {
2329
+ type: "is dynamic view";
2330
+ params: unknown;
2331
+ };
2332
+ "is another view": {
2333
+ type: "is another view";
2334
+ params: unknown;
2335
+ };
2336
+ "click: selected node": {
2337
+ type: "click: selected node";
2338
+ params: unknown;
2339
+ };
2340
+ "click: same node": {
2341
+ type: "click: same node";
2342
+ params: unknown;
2343
+ };
2344
+ "click: focused node": {
2345
+ type: "click: focused node";
2346
+ params: unknown;
2347
+ };
2348
+ "click: node has connections": {
2349
+ type: "click: node has connections";
2350
+ params: unknown;
2351
+ };
2352
+ "click: selected edge": {
2353
+ type: "click: selected edge";
2354
+ params: unknown;
2355
+ };
2356
+ }>, never, EventObject>];
2009
2357
  readonly on: {
2010
2358
  readonly 'update.view': {
2011
2359
  readonly actions: ActionFunction<Context, {
@@ -2029,6 +2377,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2029
2377
  logic: OverlaysActorLogic;
2030
2378
  id: "overlays";
2031
2379
  };
2380
+ searchActorLogic: {
2381
+ src: "searchActorLogic";
2382
+ logic: SearchActorLogic;
2383
+ id: "search";
2384
+ };
2032
2385
  }>, Values<{
2033
2386
  onNodeMouseEnter: {
2034
2387
  type: "onNodeMouseEnter";
@@ -2073,6 +2426,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2073
2426
  kind?: string;
2074
2427
  };
2075
2428
  };
2429
+ "tag.highlight": {
2430
+ type: "tag.highlight";
2431
+ params: NonReducibleUnknown;
2432
+ };
2076
2433
  "xyflow:fitDiagram": {
2077
2434
  type: "xyflow:fitDiagram";
2078
2435
  params: {
@@ -2127,10 +2484,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2127
2484
  toPosition: XYPoint;
2128
2485
  };
2129
2486
  };
2487
+ "ensure overlays actor state": {
2488
+ type: "ensure overlays actor state";
2489
+ params: NonReducibleUnknown;
2490
+ };
2491
+ "ensure search actor state": {
2492
+ type: "ensure search actor state";
2493
+ params: NonReducibleUnknown;
2494
+ };
2130
2495
  updateFeatures: {
2131
2496
  type: "updateFeatures";
2132
2497
  params: NonReducibleUnknown;
2133
2498
  };
2499
+ closeSearch: {
2500
+ type: "closeSearch";
2501
+ params: NonReducibleUnknown;
2502
+ };
2134
2503
  startSyncLayout: {
2135
2504
  type: "startSyncLayout";
2136
2505
  params: NonReducibleUnknown;
@@ -2139,6 +2508,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2139
2508
  type: "stopSyncLayout";
2140
2509
  params: NonReducibleUnknown;
2141
2510
  };
2511
+ "focus on nodes and edges": {
2512
+ type: "focus on nodes and edges";
2513
+ params: NonReducibleUnknown;
2514
+ };
2515
+ "undim everything": {
2516
+ type: "undim everything";
2517
+ params: NonReducibleUnknown;
2518
+ };
2519
+ "update active walkthrough": {
2520
+ type: "update active walkthrough";
2521
+ params: NonReducibleUnknown;
2522
+ };
2142
2523
  }>, Values<{
2143
2524
  isReady: {
2144
2525
  type: "isReady";
@@ -2160,6 +2541,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2160
2541
  type: "enabled: RelationshipDetails";
2161
2542
  params: unknown;
2162
2543
  };
2544
+ "enabled: Search": {
2545
+ type: "enabled: Search";
2546
+ params: unknown;
2547
+ };
2163
2548
  "not readonly": {
2164
2549
  type: "not readonly";
2165
2550
  params: unknown;
@@ -2219,6 +2604,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2219
2604
  logic: OverlaysActorLogic;
2220
2605
  id: "overlays";
2221
2606
  };
2607
+ searchActorLogic: {
2608
+ src: "searchActorLogic";
2609
+ logic: SearchActorLogic;
2610
+ id: "search";
2611
+ };
2222
2612
  }>, never, never, never, never>;
2223
2613
  };
2224
2614
  readonly 'xyflow.applyEdgeChanges': {
@@ -2241,6 +2631,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2241
2631
  logic: OverlaysActorLogic;
2242
2632
  id: "overlays";
2243
2633
  };
2634
+ searchActorLogic: {
2635
+ src: "searchActorLogic";
2636
+ logic: SearchActorLogic;
2637
+ id: "search";
2638
+ };
2244
2639
  }>, never, never, never, never>;
2245
2640
  };
2246
2641
  readonly 'xyflow.viewportMoved': {
@@ -2264,6 +2659,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2264
2659
  logic: OverlaysActorLogic;
2265
2660
  id: "overlays";
2266
2661
  };
2662
+ searchActorLogic: {
2663
+ src: "searchActorLogic";
2664
+ logic: SearchActorLogic;
2665
+ id: "search";
2666
+ };
2267
2667
  }>, never, never, never, never>;
2268
2668
  };
2269
2669
  readonly fitDiagram: {
@@ -2301,6 +2701,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2301
2701
  logic: OverlaysActorLogic;
2302
2702
  id: "overlays";
2303
2703
  };
2704
+ searchActorLogic: {
2705
+ src: "searchActorLogic";
2706
+ logic: SearchActorLogic;
2707
+ id: "search";
2708
+ };
2304
2709
  }>, never, never, never, never>;
2305
2710
  };
2306
2711
  readonly 'update.edgeData': {
@@ -2320,6 +2725,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2320
2725
  logic: OverlaysActorLogic;
2321
2726
  id: "overlays";
2322
2727
  };
2728
+ searchActorLogic: {
2729
+ src: "searchActorLogic";
2730
+ logic: SearchActorLogic;
2731
+ id: "search";
2732
+ };
2323
2733
  }>, never, never, never, never>;
2324
2734
  };
2325
2735
  readonly 'update.view': {
@@ -2339,6 +2749,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2339
2749
  logic: OverlaysActorLogic;
2340
2750
  id: "overlays";
2341
2751
  };
2752
+ searchActorLogic: {
2753
+ src: "searchActorLogic";
2754
+ logic: SearchActorLogic;
2755
+ id: "search";
2756
+ };
2342
2757
  }>, never, never, never, never>, ActionFunction<Context, {
2343
2758
  type: "update.view";
2344
2759
  view: DiagramView;
@@ -2360,6 +2775,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2360
2775
  logic: OverlaysActorLogic;
2361
2776
  id: "overlays";
2362
2777
  };
2778
+ searchActorLogic: {
2779
+ src: "searchActorLogic";
2780
+ logic: SearchActorLogic;
2781
+ id: "search";
2782
+ };
2363
2783
  }>, Values<{
2364
2784
  onNodeMouseEnter: {
2365
2785
  type: "onNodeMouseEnter";
@@ -2404,6 +2824,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2404
2824
  kind?: string;
2405
2825
  };
2406
2826
  };
2827
+ "tag.highlight": {
2828
+ type: "tag.highlight";
2829
+ params: NonReducibleUnknown;
2830
+ };
2407
2831
  "xyflow:fitDiagram": {
2408
2832
  type: "xyflow:fitDiagram";
2409
2833
  params: {
@@ -2458,10 +2882,22 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2458
2882
  toPosition: XYPoint;
2459
2883
  };
2460
2884
  };
2885
+ "ensure overlays actor state": {
2886
+ type: "ensure overlays actor state";
2887
+ params: NonReducibleUnknown;
2888
+ };
2889
+ "ensure search actor state": {
2890
+ type: "ensure search actor state";
2891
+ params: NonReducibleUnknown;
2892
+ };
2461
2893
  updateFeatures: {
2462
2894
  type: "updateFeatures";
2463
2895
  params: NonReducibleUnknown;
2464
2896
  };
2897
+ closeSearch: {
2898
+ type: "closeSearch";
2899
+ params: NonReducibleUnknown;
2900
+ };
2465
2901
  startSyncLayout: {
2466
2902
  type: "startSyncLayout";
2467
2903
  params: NonReducibleUnknown;
@@ -2470,6 +2906,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2470
2906
  type: "stopSyncLayout";
2471
2907
  params: NonReducibleUnknown;
2472
2908
  };
2909
+ "focus on nodes and edges": {
2910
+ type: "focus on nodes and edges";
2911
+ params: NonReducibleUnknown;
2912
+ };
2913
+ "undim everything": {
2914
+ type: "undim everything";
2915
+ params: NonReducibleUnknown;
2916
+ };
2917
+ "update active walkthrough": {
2918
+ type: "update active walkthrough";
2919
+ params: NonReducibleUnknown;
2920
+ };
2473
2921
  }>, Values<{
2474
2922
  isReady: {
2475
2923
  type: "isReady";
@@ -2491,6 +2939,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2491
2939
  type: "enabled: RelationshipDetails";
2492
2940
  params: unknown;
2493
2941
  };
2942
+ "enabled: Search": {
2943
+ type: "enabled: Search";
2944
+ params: unknown;
2945
+ };
2494
2946
  "not readonly": {
2495
2947
  type: "not readonly";
2496
2948
  params: unknown;
@@ -2545,13 +2997,18 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2545
2997
  logic: OverlaysActorLogic;
2546
2998
  id: "overlays";
2547
2999
  };
3000
+ searchActorLogic: {
3001
+ src: "searchActorLogic";
3002
+ logic: SearchActorLogic;
3003
+ id: "search";
3004
+ };
2548
3005
  }>, never, never, never, never>;
2549
3006
  };
2550
3007
  readonly 'update.features': {
2551
- readonly actions: "updateFeatures";
3008
+ readonly actions: readonly ["updateFeatures", "ensure overlays actor state", "ensure search actor state"];
2552
3009
  };
2553
3010
  };
2554
- readonly exit: readonly ["stopSyncLayout", CancelAction<Context, Events, undefined, Events>, StopAction<Context, Events, undefined, Events>, ActionFunction<Context, Events, Events, undefined, Values<{
3011
+ readonly exit: readonly ["stopSyncLayout", CancelAction<Context, Events, undefined, Events>, StopAction<Context, Events, undefined, Events>, StopAction<Context, Events, undefined, Events>, StopAction<Context, Events, undefined, Events>, ActionFunction<Context, Events, Events, undefined, Values<{
2555
3012
  syncManualLayoutActorLogic: {
2556
3013
  src: "syncManualLayoutActorLogic";
2557
3014
  logic: SyncLayoutActorLogic;
@@ -2567,6 +3024,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2567
3024
  logic: OverlaysActorLogic;
2568
3025
  id: "overlays";
2569
3026
  };
3027
+ searchActorLogic: {
3028
+ src: "searchActorLogic";
3029
+ logic: SearchActorLogic;
3030
+ id: "search";
3031
+ };
2570
3032
  }>, never, never, never, never>];
2571
3033
  }>;
2572
3034
  /**