@likec4/diagram 1.39.5 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/bundle/{chunk-CW_KClZe.js → chunk-CDr-4Ymp.js} +936 -903
  2. package/bundle/custom.js +61 -60
  3. package/bundle/index.js +2667 -539
  4. package/dist/LikeC4Diagram.d.ts +1 -1
  5. package/dist/LikeC4Diagram.js +7 -4
  6. package/dist/LikeC4Diagram.props.d.ts +6 -1
  7. package/dist/base/const.d.ts +9 -0
  8. package/dist/base/const.js +10 -1
  9. package/dist/base/index.d.ts +1 -0
  10. package/dist/base/primitives/edge/EdgeLabel.js +2 -1
  11. package/dist/base/primitives/edge/EdgeLabelContainer.js +10 -4
  12. package/dist/base/primitives/edge/EdgePath.js +17 -8
  13. package/dist/base/primitives/edge/edge.css.d.ts +0 -1
  14. package/dist/base/primitives/edge/edge.css.js +6 -14
  15. package/dist/base/primitives/element/ElementActionButtons.js +1 -3
  16. package/dist/base/primitives/element/ElementNodeContainer.d.ts +0 -6
  17. package/dist/base/primitives/element/ElementNodeContainer.js +3 -26
  18. package/dist/base/primitives/element/ElementTitle.js +2 -2
  19. package/dist/base/types.d.ts +3 -3
  20. package/dist/bundle/LikeC4View.js +4 -12
  21. package/dist/bundle/LikeC4View.props.d.ts +12 -3
  22. package/dist/bundle/custom.js +1 -1
  23. package/dist/custom/customNodes.d.ts +6 -0
  24. package/dist/custom/customNodes.js +2 -1
  25. package/dist/custom/index.js +1 -1
  26. package/dist/hooks/useDiagram.d.ts +5 -1
  27. package/dist/hooks/useDiagram.js +3 -0
  28. package/dist/hooks/useXYFlow.d.ts +4 -439
  29. package/dist/likec4diagram/DiagramUI.js +1 -1
  30. package/dist/likec4diagram/DiagramXYFlow.js +8 -4
  31. package/dist/likec4diagram/convert-to-xyflow.d.ts +14 -0
  32. package/dist/likec4diagram/convert-to-xyflow.js +29 -0
  33. package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +3 -3
  34. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +0 -1
  35. package/dist/likec4diagram/custom/edges/SequenceStepEdge.d.ts +3 -0
  36. package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +71 -0
  37. package/dist/likec4diagram/custom/index.js +7 -2
  38. package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +2 -1
  39. package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.ts +4 -0
  40. package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +157 -0
  41. package/dist/likec4diagram/custom/nodes/index.d.ts +1 -0
  42. package/dist/likec4diagram/custom/nodes/nodes.d.ts +1 -2
  43. package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +31 -27
  44. package/dist/likec4diagram/types.d.ts +41 -7
  45. package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +11 -0
  46. package/dist/likec4diagram/{useViewToNodesEdges.js → xyflow-diagram/diagram-view.js} +4 -13
  47. package/dist/likec4diagram/xyflow-sequence/_types.d.ts +41 -0
  48. package/dist/likec4diagram/xyflow-sequence/const.d.ts +17 -0
  49. package/dist/likec4diagram/xyflow-sequence/const.js +16 -0
  50. package/dist/likec4diagram/xyflow-sequence/layouter.d.ts +46 -0
  51. package/dist/likec4diagram/xyflow-sequence/layouter.js +408 -0
  52. package/dist/likec4diagram/xyflow-sequence/sequence-view.d.ts +7 -0
  53. package/dist/likec4diagram/xyflow-sequence/sequence-view.js +273 -0
  54. package/dist/likec4diagram/xyflow-sequence/utils.d.ts +14 -0
  55. package/dist/likec4diagram/xyflow-sequence/utils.js +92 -0
  56. package/dist/navigationpanel/NavigationPanelControls.js +2 -2
  57. package/dist/navigationpanel/controls/ViewDetailsCard.js +5 -2
  58. package/dist/navigationpanel/dropdown/ProjectsMenu.js +53 -44
  59. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.d.ts +1 -2
  60. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +10 -41
  61. package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +292 -0
  62. package/dist/navigationpanel/walkthrough/DynamicViewControls.js +119 -0
  63. package/dist/navigationpanel/walkthrough/index.d.ts +2 -1
  64. package/dist/overlays/relationship-details/RelationshipDetails.js +4 -1
  65. package/dist/state/DiagramActorProvider.d.ts +3 -2
  66. package/dist/state/DiagramActorProvider.js +19 -11
  67. package/dist/state/assign.js +11 -4
  68. package/dist/state/diagram-machine.d.ts +224 -194
  69. package/dist/state/diagram-machine.js +170 -63
  70. package/dist/state/utils.d.ts +7 -1
  71. package/dist/state/utils.js +67 -7
  72. package/dist/styles-min.css +1 -1
  73. package/dist/styles.css +1 -1
  74. package/dist/styles.css2.js +1 -1
  75. package/package.json +8 -7
  76. package/panda.buildinfo.json +30 -9
  77. package/src/LikeC4Diagram.props.ts +14 -1
  78. package/src/LikeC4Diagram.tsx +7 -4
  79. package/src/base/const.ts +12 -0
  80. package/src/base/index.ts +2 -0
  81. package/src/base/primitives/edge/EdgeLabel.tsx +23 -19
  82. package/src/base/primitives/edge/EdgeLabelContainer.tsx +12 -7
  83. package/src/base/primitives/edge/EdgePath.tsx +25 -14
  84. package/src/base/primitives/edge/edge.css.ts +5 -14
  85. package/src/base/primitives/element/ElementActionButtons.tsx +1 -3
  86. package/src/base/primitives/element/ElementNodeContainer.tsx +3 -30
  87. package/src/base/primitives/element/ElementTitle.tsx +2 -3
  88. package/src/base/types.ts +7 -5
  89. package/src/bundle/LikeC4View.props.ts +14 -3
  90. package/src/bundle/LikeC4View.tsx +4 -14
  91. package/src/bundle/ReactLikeC4.tsx +1 -2
  92. package/src/custom/customNodes.ts +7 -0
  93. package/src/hooks/useDiagram.ts +10 -0
  94. package/src/likec4diagram/DiagramUI.tsx +1 -1
  95. package/src/likec4diagram/DiagramXYFlow.tsx +10 -5
  96. package/src/likec4diagram/convert-to-xyflow.ts +45 -0
  97. package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +0 -1
  98. package/src/likec4diagram/custom/edges/SequenceStepEdge.tsx +65 -0
  99. package/src/likec4diagram/custom/index.ts +7 -1
  100. package/src/likec4diagram/custom/nodes/ElementActions.tsx +4 -2
  101. package/src/likec4diagram/custom/nodes/SequenceActorNode.tsx +175 -0
  102. package/src/likec4diagram/custom/nodes/index.ts +1 -0
  103. package/src/likec4diagram/custom/nodes/nodes.tsx +1 -1
  104. package/src/likec4diagram/relationship-popover/RelationshipPopover.tsx +36 -30
  105. package/src/likec4diagram/types.ts +96 -13
  106. package/src/likec4diagram/{useViewToNodesEdges.ts → xyflow-diagram/diagram-view.ts} +7 -28
  107. package/src/likec4diagram/xyflow-sequence/_types.ts +45 -0
  108. package/src/likec4diagram/xyflow-sequence/const.ts +37 -0
  109. package/src/likec4diagram/xyflow-sequence/layouter.ts +567 -0
  110. package/src/likec4diagram/xyflow-sequence/sequence-view.ts +337 -0
  111. package/src/likec4diagram/xyflow-sequence/utils.ts +112 -0
  112. package/src/navigationpanel/NavigationPanelControls.tsx +2 -2
  113. package/src/navigationpanel/controls/ViewDetailsCard.tsx +5 -2
  114. package/src/navigationpanel/dropdown/ProjectsMenu.tsx +5 -1
  115. package/src/navigationpanel/walkthrough/ActiveWalkthroughControls.tsx +5 -40
  116. package/src/navigationpanel/walkthrough/DynamicViewControls.tsx +125 -0
  117. package/src/navigationpanel/walkthrough/index.tsx +2 -1
  118. package/src/overlays/relationship-details/RelationshipDetails.tsx +5 -2
  119. package/src/state/DiagramActorProvider.tsx +21 -10
  120. package/src/state/assign.ts +18 -5
  121. package/src/state/diagram-machine.ts +207 -75
  122. package/src/state/utils.ts +81 -7
  123. package/dist/likec4diagram/useViewToNodesEdges.d.ts +0 -12
@@ -1,5 +1,5 @@
1
1
  import { BBox } from '@likec4/core';
2
- import { DiagramEdge, DiagramNode, DiagramView, EdgeId, Fqn, NodeId, NodeNotation as ElementNotation, StepEdgeId, ViewId, XYPoint } from '@likec4/core/types';
2
+ import { DiagramEdge, DiagramNode, DiagramView, DynamicViewDisplayVariant, EdgeId, Fqn, NodeId, NodeNotation as ElementNotation, StepEdgeId, ViewId, XYPoint } from '@likec4/core/types';
3
3
  import { ReactFlowInstance, useStoreApi } from '@xyflow/react';
4
4
  import { EdgeChange, NodeChange, Rect, Viewport } from '@xyflow/system';
5
5
  import { MouseEvent } from 'react';
@@ -29,6 +29,7 @@ export interface Input {
29
29
  pannable: boolean;
30
30
  fitViewPadding: ViewPadding;
31
31
  nodesSelectable: boolean;
32
+ dynamicViewVariant?: DynamicViewDisplayVariant | undefined;
32
33
  }
33
34
  export type ToggledFeatures = Partial<EnabledFeatures>;
34
35
  export interface Context extends Input {
@@ -63,6 +64,7 @@ export interface Context extends Input {
63
64
  viewportBeforeFocus: null | Viewport;
64
65
  xyflow: ReactFlowInstance<Types.Node, Types.Edge> | null;
65
66
  syncLayoutActorRef: null | ActorRef<Snapshot<unknown>, SyncLayoutEvents, AnyEventObject>;
67
+ dynamicViewVariant: DynamicViewDisplayVariant;
66
68
  activeWalkthrough: null | {
67
69
  stepId: StepEdgeId;
68
70
  parallelPrefix: string | null;
@@ -125,7 +127,7 @@ export type Events = HotKeyEvent | {
125
127
  xyedges: Types.Edge[];
126
128
  } | {
127
129
  type: 'update.inputs';
128
- inputs: Partial<Omit<Input, 'view' | 'xystore'>>;
130
+ inputs: Partial<Omit<Input, 'view' | 'xystore' | 'dynamicViewVariant'>>;
129
131
  } | {
130
132
  type: 'update.features';
131
133
  features: EnabledFeatures;
@@ -173,6 +175,9 @@ export type Events = HotKeyEvent | {
173
175
  } | {
174
176
  type: 'focus.node';
175
177
  nodeId: NodeId;
178
+ } | {
179
+ type: 'switch.dynamicViewVariant';
180
+ variant: DynamicViewDisplayVariant;
176
181
  } | {
177
182
  type: 'walkthrough.start';
178
183
  stepId?: StepEdgeId;
@@ -324,6 +329,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
324
329
  type: "assign lastClickedNode";
325
330
  params: NonReducibleUnknown;
326
331
  };
332
+ "assign: focusedNode": {
333
+ type: "assign: focusedNode";
334
+ params: NonReducibleUnknown;
335
+ };
327
336
  "reset lastClickedNode": {
328
337
  type: "reset lastClickedNode";
329
338
  params: NonReducibleUnknown;
@@ -397,6 +406,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
397
406
  type: "update active walkthrough";
398
407
  params: NonReducibleUnknown;
399
408
  };
409
+ "open element details": {
410
+ type: "open element details";
411
+ params: {
412
+ fqn: Fqn;
413
+ fromNode?: NodeId | undefined;
414
+ } | undefined;
415
+ };
400
416
  "emit: walkthroughStarted": {
401
417
  type: "emit: walkthroughStarted";
402
418
  params: NonReducibleUnknown;
@@ -425,6 +441,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
425
441
  type: "emit: edgeClick";
426
442
  params: NonReducibleUnknown;
427
443
  };
444
+ "assign: dynamicViewVariant": {
445
+ type: "assign: dynamicViewVariant";
446
+ params: NonReducibleUnknown;
447
+ };
428
448
  }>, Values<{
429
449
  isReady: {
430
450
  type: "isReady";
@@ -450,6 +470,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
450
470
  type: "enabled: Search";
451
471
  params: unknown;
452
472
  };
473
+ "enabled: ElementDetails": {
474
+ type: "enabled: ElementDetails";
475
+ params: unknown;
476
+ };
453
477
  "not readonly": {
454
478
  type: "not readonly";
455
479
  params: unknown;
@@ -462,6 +486,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
462
486
  type: "is another view";
463
487
  params: unknown;
464
488
  };
489
+ "click: node has modelFqn": {
490
+ type: "click: node has modelFqn";
491
+ params: unknown;
492
+ };
465
493
  "click: selected node": {
466
494
  type: "click: selected node";
467
495
  params: unknown;
@@ -819,11 +847,8 @@ declare const _diagramMachine: StateMachine<Context, Events, {
819
847
  }, Events, undefined, never, never, never, never, never>];
820
848
  };
821
849
  readonly 'open.elementDetails': {
822
- readonly actions: ActionFunction<Context, {
823
- type: "open.elementDetails";
824
- fqn: Fqn;
825
- fromNode?: NodeId | undefined;
826
- }, Events, undefined, never, never, never, never, never>;
850
+ readonly guard: "enabled: ElementDetails";
851
+ readonly actions: "open element details";
827
852
  };
828
853
  readonly 'open.relationshipsBrowser': {
829
854
  readonly actions: ActionFunction<Context, {
@@ -972,32 +997,11 @@ declare const _diagramMachine: StateMachine<Context, Events, {
972
997
  readonly on: {
973
998
  readonly 'xyflow.nodeClick': readonly [{
974
999
  readonly guard: any;
975
- readonly actions: readonly [ ActionFunction<Context, {
976
- type: "xyflow.nodeClick";
977
- node: Types.Node;
978
- }, Events, undefined, Values<{
979
- syncManualLayoutActorLogic: {
980
- src: "syncManualLayoutActorLogic";
981
- logic: SyncLayoutActorLogic;
982
- id: "syncLayout";
983
- };
984
- hotkeyActorLogic: {
985
- src: "hotkeyActorLogic";
986
- logic: HotkeyActorLogic;
987
- id: "hotkey";
988
- };
989
- overlaysActorLogic: {
990
- src: "overlaysActorLogic";
991
- logic: OverlaysActorLogic;
992
- id: "overlays";
993
- };
994
- searchActorLogic: {
995
- src: "searchActorLogic";
996
- logic: SearchActorLogic;
997
- id: "search";
998
- };
999
- }>, never, never, never, never>, "emit: nodeClick"];
1000
+ readonly actions: readonly ["assign lastClickedNode", "assign: focusedNode", "emit: nodeClick"];
1000
1001
  readonly target: "focused";
1002
+ }, {
1003
+ readonly guard: any;
1004
+ readonly actions: readonly ["assign lastClickedNode", "open source of focused or last clicked node", "open element details", "emit: nodeClick"];
1001
1005
  }, {
1002
1006
  readonly actions: readonly ["assign lastClickedNode", "open source of focused or last clicked node", "emit: nodeClick"];
1003
1007
  }];
@@ -1019,31 +1023,7 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1019
1023
  };
1020
1024
  readonly 'focus.node': {
1021
1025
  readonly guard: "enabled: FocusMode";
1022
- readonly actions: ActionFunction<Context, {
1023
- type: "focus.node";
1024
- nodeId: NodeId;
1025
- }, Events, undefined, Values<{
1026
- syncManualLayoutActorLogic: {
1027
- src: "syncManualLayoutActorLogic";
1028
- logic: SyncLayoutActorLogic;
1029
- id: "syncLayout";
1030
- };
1031
- hotkeyActorLogic: {
1032
- src: "hotkeyActorLogic";
1033
- logic: HotkeyActorLogic;
1034
- id: "hotkey";
1035
- };
1036
- overlaysActorLogic: {
1037
- src: "overlaysActorLogic";
1038
- logic: OverlaysActorLogic;
1039
- id: "overlays";
1040
- };
1041
- searchActorLogic: {
1042
- src: "searchActorLogic";
1043
- logic: SearchActorLogic;
1044
- id: "search";
1045
- };
1046
- }>, never, never, never, never>;
1026
+ readonly actions: "assign: focusedNode";
1047
1027
  readonly target: "focused";
1048
1028
  };
1049
1029
  readonly 'xyflow.edgeClick': {
@@ -1181,6 +1161,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1181
1161
  type: "assign lastClickedNode";
1182
1162
  params: NonReducibleUnknown;
1183
1163
  };
1164
+ "assign: focusedNode": {
1165
+ type: "assign: focusedNode";
1166
+ params: NonReducibleUnknown;
1167
+ };
1184
1168
  "reset lastClickedNode": {
1185
1169
  type: "reset lastClickedNode";
1186
1170
  params: NonReducibleUnknown;
@@ -1254,6 +1238,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1254
1238
  type: "update active walkthrough";
1255
1239
  params: NonReducibleUnknown;
1256
1240
  };
1241
+ "open element details": {
1242
+ type: "open element details";
1243
+ params: {
1244
+ fqn: Fqn;
1245
+ fromNode?: NodeId | undefined;
1246
+ } | undefined;
1247
+ };
1257
1248
  "emit: walkthroughStarted": {
1258
1249
  type: "emit: walkthroughStarted";
1259
1250
  params: NonReducibleUnknown;
@@ -1282,6 +1273,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1282
1273
  type: "emit: edgeClick";
1283
1274
  params: NonReducibleUnknown;
1284
1275
  };
1276
+ "assign: dynamicViewVariant": {
1277
+ type: "assign: dynamicViewVariant";
1278
+ params: NonReducibleUnknown;
1279
+ };
1285
1280
  }>, Values<{
1286
1281
  isReady: {
1287
1282
  type: "isReady";
@@ -1307,6 +1302,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1307
1302
  type: "enabled: Search";
1308
1303
  params: unknown;
1309
1304
  };
1305
+ "enabled: ElementDetails": {
1306
+ type: "enabled: ElementDetails";
1307
+ params: unknown;
1308
+ };
1310
1309
  "not readonly": {
1311
1310
  type: "not readonly";
1312
1311
  params: unknown;
@@ -1319,6 +1318,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1319
1318
  type: "is another view";
1320
1319
  params: unknown;
1321
1320
  };
1321
+ "click: node has modelFqn": {
1322
+ type: "click: node has modelFqn";
1323
+ params: unknown;
1324
+ };
1322
1325
  "click: selected node": {
1323
1326
  type: "click: selected node";
1324
1327
  params: unknown;
@@ -1342,65 +1345,20 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1342
1345
  }>, never, EmittedEvents>;
1343
1346
  readonly on: {
1344
1347
  readonly 'xyflow.nodeClick': readonly [{
1348
+ readonly guard: any;
1349
+ readonly actions: readonly ["open element details", "emit: nodeClick"];
1350
+ }, {
1345
1351
  readonly guard: "click: focused node";
1346
1352
  readonly actions: "emit: nodeClick";
1347
1353
  readonly target: "#idle";
1348
1354
  }, {
1349
- readonly actions: readonly [ ActionFunction<Context, {
1350
- type: "xyflow.nodeClick";
1351
- node: Types.Node;
1352
- }, Events, undefined, Values<{
1353
- syncManualLayoutActorLogic: {
1354
- src: "syncManualLayoutActorLogic";
1355
- logic: SyncLayoutActorLogic;
1356
- id: "syncLayout";
1357
- };
1358
- hotkeyActorLogic: {
1359
- src: "hotkeyActorLogic";
1360
- logic: HotkeyActorLogic;
1361
- id: "hotkey";
1362
- };
1363
- overlaysActorLogic: {
1364
- src: "overlaysActorLogic";
1365
- logic: OverlaysActorLogic;
1366
- id: "overlays";
1367
- };
1368
- searchActorLogic: {
1369
- src: "searchActorLogic";
1370
- logic: SearchActorLogic;
1371
- id: "search";
1372
- };
1373
- }>, never, never, never, never>, ActionFunction<Context, {
1355
+ readonly actions: readonly ["assign lastClickedNode", ActionFunction<Context, {
1374
1356
  type: "xyflow.nodeClick";
1375
1357
  node: Types.Node;
1376
1358
  }, Events, undefined, never, never, never, never, never>, "emit: nodeClick"];
1377
1359
  }];
1378
1360
  readonly 'focus.node': {
1379
- readonly actions: readonly [ ActionFunction<Context, {
1380
- type: "focus.node";
1381
- nodeId: NodeId;
1382
- }, Events, undefined, Values<{
1383
- syncManualLayoutActorLogic: {
1384
- src: "syncManualLayoutActorLogic";
1385
- logic: SyncLayoutActorLogic;
1386
- id: "syncLayout";
1387
- };
1388
- hotkeyActorLogic: {
1389
- src: "hotkeyActorLogic";
1390
- logic: HotkeyActorLogic;
1391
- id: "hotkey";
1392
- };
1393
- overlaysActorLogic: {
1394
- src: "overlaysActorLogic";
1395
- logic: OverlaysActorLogic;
1396
- id: "overlays";
1397
- };
1398
- searchActorLogic: {
1399
- src: "searchActorLogic";
1400
- logic: SearchActorLogic;
1401
- id: "search";
1402
- };
1403
- }>, never, never, never, never>, "focus on nodes and edges", "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
1361
+ readonly actions: readonly ["assign: focusedNode", "focus on nodes and edges", "open source of focused or last clicked node", "xyflow:fitFocusedBounds"];
1404
1362
  };
1405
1363
  readonly 'key.esc': {
1406
1364
  readonly target: "idle";
@@ -1461,93 +1419,6 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1461
1419
  id: "search";
1462
1420
  };
1463
1421
  }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds", "emit: walkthroughStarted"];
1464
- readonly on: {
1465
- readonly 'key.esc': {
1466
- readonly target: "idle";
1467
- };
1468
- readonly 'key.arrow.left': {
1469
- readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
1470
- };
1471
- readonly 'key.arrow.right': {
1472
- readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
1473
- };
1474
- readonly 'walkthrough.step': {
1475
- readonly actions: readonly [ ActionFunction<Context, {
1476
- type: "walkthrough.step";
1477
- direction: "next" | "previous";
1478
- }, Events, undefined, Values<{
1479
- syncManualLayoutActorLogic: {
1480
- src: "syncManualLayoutActorLogic";
1481
- logic: SyncLayoutActorLogic;
1482
- id: "syncLayout";
1483
- };
1484
- hotkeyActorLogic: {
1485
- src: "hotkeyActorLogic";
1486
- logic: HotkeyActorLogic;
1487
- id: "hotkey";
1488
- };
1489
- overlaysActorLogic: {
1490
- src: "overlaysActorLogic";
1491
- logic: OverlaysActorLogic;
1492
- id: "overlays";
1493
- };
1494
- searchActorLogic: {
1495
- src: "searchActorLogic";
1496
- logic: SearchActorLogic;
1497
- id: "search";
1498
- };
1499
- }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds", "emit: walkthroughStep"];
1500
- };
1501
- readonly 'xyflow.edgeClick': {
1502
- readonly actions: readonly [ ActionFunction<Context, {
1503
- type: "xyflow.edgeClick";
1504
- edge: Types.Edge;
1505
- }, Events, undefined, Values<{
1506
- syncManualLayoutActorLogic: {
1507
- src: "syncManualLayoutActorLogic";
1508
- logic: SyncLayoutActorLogic;
1509
- id: "syncLayout";
1510
- };
1511
- hotkeyActorLogic: {
1512
- src: "hotkeyActorLogic";
1513
- logic: HotkeyActorLogic;
1514
- id: "hotkey";
1515
- };
1516
- overlaysActorLogic: {
1517
- src: "overlaysActorLogic";
1518
- logic: OverlaysActorLogic;
1519
- id: "overlays";
1520
- };
1521
- searchActorLogic: {
1522
- src: "searchActorLogic";
1523
- logic: SearchActorLogic;
1524
- id: "search";
1525
- };
1526
- }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds", "emit: edgeClick", "emit: walkthroughStep"];
1527
- };
1528
- readonly 'notations.unhighlight': {
1529
- readonly actions: "update active walkthrough";
1530
- };
1531
- readonly 'tag.unhighlight': {
1532
- readonly actions: "update active walkthrough";
1533
- };
1534
- readonly 'walkthrough.end': {
1535
- readonly target: "idle";
1536
- };
1537
- readonly 'xyflow.paneDblClick': {
1538
- readonly target: "idle";
1539
- };
1540
- readonly 'update.view': {
1541
- readonly guard: "is another view";
1542
- readonly actions: ActionFunction<Context, {
1543
- type: "update.view";
1544
- view: DiagramView;
1545
- xynodes: Types.Node[];
1546
- xyedges: Types.Edge[];
1547
- }, Events, undefined, never, never, never, never, never>;
1548
- readonly target: "idle";
1549
- };
1550
- };
1551
1422
  readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
1552
1423
  syncManualLayoutActorLogic: {
1553
1424
  src: "syncManualLayoutActorLogic";
@@ -1630,6 +1501,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1630
1501
  type: "assign lastClickedNode";
1631
1502
  params: NonReducibleUnknown;
1632
1503
  };
1504
+ "assign: focusedNode": {
1505
+ type: "assign: focusedNode";
1506
+ params: NonReducibleUnknown;
1507
+ };
1633
1508
  "reset lastClickedNode": {
1634
1509
  type: "reset lastClickedNode";
1635
1510
  params: NonReducibleUnknown;
@@ -1703,6 +1578,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1703
1578
  type: "update active walkthrough";
1704
1579
  params: NonReducibleUnknown;
1705
1580
  };
1581
+ "open element details": {
1582
+ type: "open element details";
1583
+ params: {
1584
+ fqn: Fqn;
1585
+ fromNode?: NodeId | undefined;
1586
+ } | undefined;
1587
+ };
1706
1588
  "emit: walkthroughStarted": {
1707
1589
  type: "emit: walkthroughStarted";
1708
1590
  params: NonReducibleUnknown;
@@ -1731,6 +1613,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1731
1613
  type: "emit: edgeClick";
1732
1614
  params: NonReducibleUnknown;
1733
1615
  };
1616
+ "assign: dynamicViewVariant": {
1617
+ type: "assign: dynamicViewVariant";
1618
+ params: NonReducibleUnknown;
1619
+ };
1734
1620
  }>, Values<{
1735
1621
  isReady: {
1736
1622
  type: "isReady";
@@ -1756,6 +1642,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1756
1642
  type: "enabled: Search";
1757
1643
  params: unknown;
1758
1644
  };
1645
+ "enabled: ElementDetails": {
1646
+ type: "enabled: ElementDetails";
1647
+ params: unknown;
1648
+ };
1759
1649
  "not readonly": {
1760
1650
  type: "not readonly";
1761
1651
  params: unknown;
@@ -1768,6 +1658,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1768
1658
  type: "is another view";
1769
1659
  params: unknown;
1770
1660
  };
1661
+ "click: node has modelFqn": {
1662
+ type: "click: node has modelFqn";
1663
+ params: unknown;
1664
+ };
1771
1665
  "click: selected node": {
1772
1666
  type: "click: selected node";
1773
1667
  params: unknown;
@@ -1789,6 +1683,93 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1789
1683
  params: unknown;
1790
1684
  };
1791
1685
  }>, never, EmittedEvents>;
1686
+ readonly on: {
1687
+ readonly 'key.esc': {
1688
+ readonly target: "idle";
1689
+ };
1690
+ readonly 'key.arrow.left': {
1691
+ readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
1692
+ };
1693
+ readonly 'key.arrow.right': {
1694
+ readonly actions: ActionFunction<Context, HotKeyEvent, Events, undefined, never, never, never, never, never>;
1695
+ };
1696
+ readonly 'walkthrough.step': {
1697
+ readonly actions: readonly [ ActionFunction<Context, {
1698
+ type: "walkthrough.step";
1699
+ direction: "next" | "previous";
1700
+ }, Events, undefined, Values<{
1701
+ syncManualLayoutActorLogic: {
1702
+ src: "syncManualLayoutActorLogic";
1703
+ logic: SyncLayoutActorLogic;
1704
+ id: "syncLayout";
1705
+ };
1706
+ hotkeyActorLogic: {
1707
+ src: "hotkeyActorLogic";
1708
+ logic: HotkeyActorLogic;
1709
+ id: "hotkey";
1710
+ };
1711
+ overlaysActorLogic: {
1712
+ src: "overlaysActorLogic";
1713
+ logic: OverlaysActorLogic;
1714
+ id: "overlays";
1715
+ };
1716
+ searchActorLogic: {
1717
+ src: "searchActorLogic";
1718
+ logic: SearchActorLogic;
1719
+ id: "search";
1720
+ };
1721
+ }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds", "emit: walkthroughStep"];
1722
+ };
1723
+ readonly 'xyflow.edgeClick': {
1724
+ readonly actions: readonly [ ActionFunction<Context, {
1725
+ type: "xyflow.edgeClick";
1726
+ edge: Types.Edge;
1727
+ }, Events, undefined, Values<{
1728
+ syncManualLayoutActorLogic: {
1729
+ src: "syncManualLayoutActorLogic";
1730
+ logic: SyncLayoutActorLogic;
1731
+ id: "syncLayout";
1732
+ };
1733
+ hotkeyActorLogic: {
1734
+ src: "hotkeyActorLogic";
1735
+ logic: HotkeyActorLogic;
1736
+ id: "hotkey";
1737
+ };
1738
+ overlaysActorLogic: {
1739
+ src: "overlaysActorLogic";
1740
+ logic: OverlaysActorLogic;
1741
+ id: "overlays";
1742
+ };
1743
+ searchActorLogic: {
1744
+ src: "searchActorLogic";
1745
+ logic: SearchActorLogic;
1746
+ id: "search";
1747
+ };
1748
+ }>, never, never, never, never>, "update active walkthrough", "xyflow:fitFocusedBounds", "emit: edgeClick", "emit: walkthroughStep"];
1749
+ };
1750
+ readonly 'notations.unhighlight': {
1751
+ readonly actions: "update active walkthrough";
1752
+ };
1753
+ readonly 'tag.unhighlight': {
1754
+ readonly actions: "update active walkthrough";
1755
+ };
1756
+ readonly 'walkthrough.end': {
1757
+ readonly target: "idle";
1758
+ };
1759
+ readonly 'xyflow.paneDblClick': {
1760
+ readonly target: "idle";
1761
+ };
1762
+ readonly 'update.view': {
1763
+ readonly guard: "is another view";
1764
+ readonly actions: ActionFunction<Context, {
1765
+ type: "update.view";
1766
+ view: DiagramView;
1767
+ xynodes: Types.Node[];
1768
+ xyedges: Types.Edge[];
1769
+ }, Events, undefined, never, never, never, never, never>;
1770
+ readonly target: "idle";
1771
+ };
1772
+ };
1792
1773
  };
1793
1774
  };
1794
1775
  };
@@ -1884,6 +1865,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1884
1865
  type: "assign lastClickedNode";
1885
1866
  params: NonReducibleUnknown;
1886
1867
  };
1868
+ "assign: focusedNode": {
1869
+ type: "assign: focusedNode";
1870
+ params: NonReducibleUnknown;
1871
+ };
1887
1872
  "reset lastClickedNode": {
1888
1873
  type: "reset lastClickedNode";
1889
1874
  params: NonReducibleUnknown;
@@ -1957,6 +1942,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1957
1942
  type: "update active walkthrough";
1958
1943
  params: NonReducibleUnknown;
1959
1944
  };
1945
+ "open element details": {
1946
+ type: "open element details";
1947
+ params: {
1948
+ fqn: Fqn;
1949
+ fromNode?: NodeId | undefined;
1950
+ } | undefined;
1951
+ };
1960
1952
  "emit: walkthroughStarted": {
1961
1953
  type: "emit: walkthroughStarted";
1962
1954
  params: NonReducibleUnknown;
@@ -1985,6 +1977,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
1985
1977
  type: "emit: edgeClick";
1986
1978
  params: NonReducibleUnknown;
1987
1979
  };
1980
+ "assign: dynamicViewVariant": {
1981
+ type: "assign: dynamicViewVariant";
1982
+ params: NonReducibleUnknown;
1983
+ };
1988
1984
  }>, Values<{
1989
1985
  isReady: {
1990
1986
  type: "isReady";
@@ -2010,6 +2006,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2010
2006
  type: "enabled: Search";
2011
2007
  params: unknown;
2012
2008
  };
2009
+ "enabled: ElementDetails": {
2010
+ type: "enabled: ElementDetails";
2011
+ params: unknown;
2012
+ };
2013
2013
  "not readonly": {
2014
2014
  type: "not readonly";
2015
2015
  params: unknown;
@@ -2022,6 +2022,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2022
2022
  type: "is another view";
2023
2023
  params: unknown;
2024
2024
  };
2025
+ "click: node has modelFqn": {
2026
+ type: "click: node has modelFqn";
2027
+ params: unknown;
2028
+ };
2025
2029
  "click: selected node": {
2026
2030
  type: "click: selected node";
2027
2031
  params: unknown;
@@ -2318,6 +2322,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2318
2322
  type: "assign lastClickedNode";
2319
2323
  params: NonReducibleUnknown;
2320
2324
  };
2325
+ "assign: focusedNode": {
2326
+ type: "assign: focusedNode";
2327
+ params: NonReducibleUnknown;
2328
+ };
2321
2329
  "reset lastClickedNode": {
2322
2330
  type: "reset lastClickedNode";
2323
2331
  params: NonReducibleUnknown;
@@ -2391,6 +2399,13 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2391
2399
  type: "update active walkthrough";
2392
2400
  params: NonReducibleUnknown;
2393
2401
  };
2402
+ "open element details": {
2403
+ type: "open element details";
2404
+ params: {
2405
+ fqn: Fqn;
2406
+ fromNode?: NodeId | undefined;
2407
+ } | undefined;
2408
+ };
2394
2409
  "emit: walkthroughStarted": {
2395
2410
  type: "emit: walkthroughStarted";
2396
2411
  params: NonReducibleUnknown;
@@ -2419,6 +2434,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2419
2434
  type: "emit: edgeClick";
2420
2435
  params: NonReducibleUnknown;
2421
2436
  };
2437
+ "assign: dynamicViewVariant": {
2438
+ type: "assign: dynamicViewVariant";
2439
+ params: NonReducibleUnknown;
2440
+ };
2422
2441
  }>, Values<{
2423
2442
  isReady: {
2424
2443
  type: "isReady";
@@ -2444,6 +2463,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2444
2463
  type: "enabled: Search";
2445
2464
  params: unknown;
2446
2465
  };
2466
+ "enabled: ElementDetails": {
2467
+ type: "enabled: ElementDetails";
2468
+ params: unknown;
2469
+ };
2447
2470
  "not readonly": {
2448
2471
  type: "not readonly";
2449
2472
  params: unknown;
@@ -2456,6 +2479,10 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2456
2479
  type: "is another view";
2457
2480
  params: unknown;
2458
2481
  };
2482
+ "click: node has modelFqn": {
2483
+ type: "click: node has modelFqn";
2484
+ params: unknown;
2485
+ };
2459
2486
  "click: selected node": {
2460
2487
  type: "click: selected node";
2461
2488
  params: unknown;
@@ -2484,6 +2511,9 @@ declare const _diagramMachine: StateMachine<Context, Events, {
2484
2511
  readonly 'update.features': {
2485
2512
  readonly actions: readonly ["updateFeatures", "ensure overlays actor state", "ensure search actor state"];
2486
2513
  };
2514
+ readonly 'switch.dynamicViewVariant': {
2515
+ readonly actions: "assign: dynamicViewVariant";
2516
+ };
2487
2517
  };
2488
2518
  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<{
2489
2519
  syncManualLayoutActorLogic: {