@eventcatalog/visualiser 3.13.0 → 3.14.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.
- package/dist/index.d.mts +213 -105
- package/dist/index.d.ts +213 -105
- package/dist/index.js +8231 -4487
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8306 -4542
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3220 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _xyflow_react from '@xyflow/react';
|
|
2
|
+
import { Node, Connection, MarkerType, Edge, NodeTypes, EdgeTypes, NodeProps, EdgeProps, ReactFlowJsonObject } from '@xyflow/react';
|
|
2
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import * as react from 'react';
|
|
4
5
|
import react__default from 'react';
|
|
@@ -9,6 +10,7 @@ import dagre from 'dagre';
|
|
|
9
10
|
*/
|
|
10
11
|
type EventCatalogResource = {
|
|
11
12
|
mode: "simple" | "full";
|
|
13
|
+
style?: string;
|
|
12
14
|
collection?: string;
|
|
13
15
|
filePath?: string;
|
|
14
16
|
id?: string;
|
|
@@ -23,22 +25,37 @@ type Message = {
|
|
|
23
25
|
owners?: string[];
|
|
24
26
|
producers?: string[];
|
|
25
27
|
consumers?: string[];
|
|
28
|
+
deprecated?: boolean;
|
|
29
|
+
draft?: boolean;
|
|
30
|
+
schema?: string;
|
|
31
|
+
notes?: Note[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Note attached to a resource
|
|
35
|
+
*/
|
|
36
|
+
type Note = {
|
|
37
|
+
content: string;
|
|
38
|
+
author?: string;
|
|
39
|
+
priority?: string;
|
|
26
40
|
};
|
|
27
41
|
/**
|
|
28
42
|
* Service type
|
|
29
43
|
*/
|
|
30
|
-
type Service
|
|
44
|
+
type Service = {
|
|
31
45
|
name: string;
|
|
32
46
|
version: string;
|
|
33
47
|
summary: string;
|
|
34
48
|
owners?: string[];
|
|
35
49
|
sends?: string[];
|
|
36
50
|
receives?: string[];
|
|
51
|
+
deprecated?: boolean;
|
|
52
|
+
draft?: boolean;
|
|
53
|
+
notes?: Note[];
|
|
37
54
|
};
|
|
38
55
|
/**
|
|
39
56
|
* Channel type
|
|
40
57
|
*/
|
|
41
|
-
type Channel
|
|
58
|
+
type Channel = {
|
|
42
59
|
name: string;
|
|
43
60
|
version: string;
|
|
44
61
|
summary: string;
|
|
@@ -46,35 +63,43 @@ type Channel$1 = {
|
|
|
46
63
|
parameters?: Record<string, string>;
|
|
47
64
|
protocols?: string[];
|
|
48
65
|
address?: string;
|
|
66
|
+
deprecated?: boolean;
|
|
67
|
+
draft?: boolean;
|
|
68
|
+
notes?: Note[];
|
|
49
69
|
};
|
|
50
70
|
/**
|
|
51
71
|
* External System type
|
|
52
72
|
*/
|
|
53
|
-
type ExternalSystem
|
|
73
|
+
type ExternalSystem = {
|
|
54
74
|
name: string;
|
|
55
75
|
version: string;
|
|
56
76
|
summary: string;
|
|
77
|
+
notes?: Note[];
|
|
57
78
|
};
|
|
58
79
|
/**
|
|
59
80
|
* Data type
|
|
60
81
|
*/
|
|
61
|
-
type Data
|
|
82
|
+
type Data = {
|
|
62
83
|
name: string;
|
|
63
84
|
version: string;
|
|
64
85
|
summary: string;
|
|
65
86
|
owners?: string[];
|
|
66
87
|
type?: string;
|
|
67
88
|
schemas?: string[];
|
|
89
|
+
deprecated?: boolean;
|
|
90
|
+
draft?: boolean;
|
|
91
|
+
notes?: Note[];
|
|
68
92
|
};
|
|
69
93
|
/**
|
|
70
94
|
* View type
|
|
71
95
|
*/
|
|
72
|
-
type View
|
|
96
|
+
type View = {
|
|
73
97
|
name: string;
|
|
74
98
|
version: string;
|
|
75
99
|
summary: string;
|
|
76
100
|
owners?: string[];
|
|
77
101
|
screenshot?: string;
|
|
102
|
+
notes?: Note[];
|
|
78
103
|
};
|
|
79
104
|
/**
|
|
80
105
|
* Generic node data structure - framework agnostic
|
|
@@ -178,14 +203,50 @@ interface VisualizerLink {
|
|
|
178
203
|
label: string;
|
|
179
204
|
url: string;
|
|
180
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* DSL Graph types – used by the playground and any consumer that wants
|
|
208
|
+
* to hand a high-level graph to the visualiser for automatic layout.
|
|
209
|
+
*/
|
|
210
|
+
interface GraphNode {
|
|
211
|
+
id: string;
|
|
212
|
+
type: "domain" | "service" | "event" | "command" | "query" | "channel" | "entity" | "container" | "data" | "data-product" | "flow" | "actor" | "external-system" | "step" | "user" | "team" | "diagram";
|
|
213
|
+
label: string;
|
|
214
|
+
parentId?: string;
|
|
215
|
+
metadata: Record<string, unknown>;
|
|
216
|
+
}
|
|
217
|
+
type GraphEdgeType = "sends" | "receives" | "publishes" | "subscribes" | "writes-to" | "reads-from" | "contains" | "owns" | "member-of" | "routes-to" | "flow-step";
|
|
218
|
+
interface GraphEdge {
|
|
219
|
+
id: string;
|
|
220
|
+
source: string;
|
|
221
|
+
target: string;
|
|
222
|
+
type: GraphEdgeType;
|
|
223
|
+
label?: string;
|
|
224
|
+
}
|
|
225
|
+
interface DslGraph {
|
|
226
|
+
nodes: GraphNode[];
|
|
227
|
+
edges: GraphEdge[];
|
|
228
|
+
visualizers?: string[];
|
|
229
|
+
activeVisualizer?: string;
|
|
230
|
+
title?: string;
|
|
231
|
+
empty?: boolean;
|
|
232
|
+
options?: {
|
|
233
|
+
legend?: boolean;
|
|
234
|
+
search?: boolean;
|
|
235
|
+
toolbar?: boolean;
|
|
236
|
+
focusMode?: boolean;
|
|
237
|
+
animated?: boolean;
|
|
238
|
+
style?: string;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
181
241
|
|
|
182
242
|
interface NodeGraphProps {
|
|
183
243
|
id: string;
|
|
184
244
|
title?: string;
|
|
185
245
|
href?: string;
|
|
186
246
|
hrefLabel?: string;
|
|
187
|
-
nodes
|
|
188
|
-
edges
|
|
247
|
+
nodes?: Node[];
|
|
248
|
+
edges?: Edge[];
|
|
249
|
+
graph?: DslGraph;
|
|
189
250
|
linkTo?: "docs" | "visualiser";
|
|
190
251
|
includeKey?: boolean;
|
|
191
252
|
footerLabel?: string;
|
|
@@ -204,6 +265,8 @@ interface NodeGraphProps {
|
|
|
204
265
|
maxTextSize?: number;
|
|
205
266
|
isDevMode?: boolean;
|
|
206
267
|
resourceKey?: string;
|
|
268
|
+
/** Controls whether message flow animation is enabled. When set, overrides URL params and localStorage. */
|
|
269
|
+
animated?: boolean;
|
|
207
270
|
onNodeClick?: (node: Node) => void;
|
|
208
271
|
onBuildUrl?: (path: string) => string;
|
|
209
272
|
onNavigate?: (url: string) => void;
|
|
@@ -213,7 +276,7 @@ interface NodeGraphProps {
|
|
|
213
276
|
}>) => Promise<boolean>;
|
|
214
277
|
onResetLayout?: (resourceKey: string) => Promise<boolean>;
|
|
215
278
|
}
|
|
216
|
-
declare const NodeGraph: ({ id, nodes, edges, title, href, linkTo, hrefLabel, includeKey, footerLabel, linksToVisualiser, links, mode, portalId, showFlowWalkthrough, showSearch, zoomOnScroll, designId, isChatEnabled, maxTextSize, isDevMode, resourceKey, onNodeClick, onBuildUrl, onNavigate, onSaveLayout, onResetLayout, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
|
|
279
|
+
declare const NodeGraph: ({ id, nodes: nodesProp, edges: edgesProp, graph, title: titleProp, href, linkTo, hrefLabel, includeKey: includeKeyProp, footerLabel, linksToVisualiser, links, mode, portalId, showFlowWalkthrough, showSearch: showSearchProp, zoomOnScroll, designId, isChatEnabled, maxTextSize, isDevMode, resourceKey, animated: animatedProp, onNodeClick, onBuildUrl, onNavigate, onSaveLayout, onResetLayout, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
|
|
217
280
|
|
|
218
281
|
interface MermaidViewProps {
|
|
219
282
|
nodes: Node[];
|
|
@@ -264,20 +327,26 @@ interface VisualiserSearchProps {
|
|
|
264
327
|
interface VisualiserSearchRef {
|
|
265
328
|
hideSuggestions: () => void;
|
|
266
329
|
}
|
|
267
|
-
declare const VisualiserSearch: react.
|
|
330
|
+
declare const VisualiserSearch: react.NamedExoticComponent<VisualiserSearchProps & react.RefAttributes<VisualiserSearchRef>>;
|
|
268
331
|
|
|
269
332
|
interface NodeData {
|
|
333
|
+
label?: string;
|
|
334
|
+
summary?: string;
|
|
270
335
|
step?: {
|
|
271
336
|
title?: string;
|
|
272
337
|
summary?: string;
|
|
273
338
|
};
|
|
274
339
|
service?: {
|
|
340
|
+
name?: string;
|
|
341
|
+
summary?: string;
|
|
275
342
|
data?: {
|
|
276
343
|
name?: string;
|
|
277
344
|
summary?: string;
|
|
278
345
|
};
|
|
279
346
|
};
|
|
280
347
|
message?: {
|
|
348
|
+
name?: string;
|
|
349
|
+
summary?: string;
|
|
281
350
|
data?: {
|
|
282
351
|
name?: string;
|
|
283
352
|
summary?: string;
|
|
@@ -311,7 +380,7 @@ interface StepWalkthroughProps {
|
|
|
311
380
|
onStepChange: (nodeId: string | null, highlightPaths?: string[], shouldZoomOut?: boolean) => void;
|
|
312
381
|
mode?: "full" | "simple";
|
|
313
382
|
}
|
|
314
|
-
declare
|
|
383
|
+
declare const _default$l: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
315
384
|
|
|
316
385
|
interface FocusModeModalProps {
|
|
317
386
|
isOpen: boolean;
|
|
@@ -328,39 +397,58 @@ interface NodeContextMenuProps {
|
|
|
328
397
|
items: ContextMenuItem[];
|
|
329
398
|
children: React.ReactNode;
|
|
330
399
|
}
|
|
331
|
-
declare
|
|
400
|
+
declare const _default$k: react.NamedExoticComponent<NodeContextMenuProps>;
|
|
332
401
|
|
|
333
|
-
type
|
|
334
|
-
|
|
402
|
+
type DataProductNodeData = EventCatalogResource & {
|
|
403
|
+
dataProduct: {
|
|
404
|
+
id: string;
|
|
405
|
+
version: string;
|
|
406
|
+
name: string;
|
|
407
|
+
summary?: string;
|
|
408
|
+
inputs?: any[];
|
|
409
|
+
outputs?: any[];
|
|
410
|
+
owners?: any[];
|
|
411
|
+
deprecated?: boolean;
|
|
412
|
+
draft?: boolean;
|
|
413
|
+
notes?: Note[];
|
|
414
|
+
};
|
|
335
415
|
};
|
|
336
|
-
type
|
|
337
|
-
declare
|
|
416
|
+
type DataProductNode = Node<DataProductNodeData, "data-product">;
|
|
417
|
+
declare const _default$j: react.NamedExoticComponent<DataProductNode>;
|
|
338
418
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
419
|
+
type ActorNodeData = EventCatalogResource & {
|
|
420
|
+
name: string;
|
|
421
|
+
summary: string;
|
|
422
|
+
deprecated?: boolean;
|
|
423
|
+
draft?: boolean;
|
|
424
|
+
notes?: Note[];
|
|
343
425
|
};
|
|
344
|
-
type
|
|
345
|
-
declare
|
|
426
|
+
type ActorNode = Node<ActorNodeData, "actor">;
|
|
427
|
+
declare const _default$i: react.NamedExoticComponent<ActorNode>;
|
|
346
428
|
|
|
347
|
-
|
|
348
|
-
|
|
429
|
+
declare const _default$h: NodeConfiguration;
|
|
430
|
+
|
|
431
|
+
type ViewNodeData = EventCatalogResource & {
|
|
432
|
+
view: View;
|
|
349
433
|
};
|
|
350
|
-
type
|
|
351
|
-
declare function Query(props: QueryNode): react_jsx_runtime.JSX.Element;
|
|
434
|
+
type ViewNode = Node<ViewNodeData, "view">;
|
|
352
435
|
|
|
353
|
-
type
|
|
354
|
-
|
|
436
|
+
type DataNodeData = EventCatalogResource & {
|
|
437
|
+
data: Data;
|
|
355
438
|
};
|
|
356
|
-
type
|
|
357
|
-
declare function Service(props: ServiceNode): react_jsx_runtime.JSX.Element;
|
|
439
|
+
type DataNode = Node<DataNodeData, "data">;
|
|
358
440
|
|
|
359
|
-
|
|
360
|
-
|
|
441
|
+
declare const _default$g: NodeConfiguration;
|
|
442
|
+
|
|
443
|
+
type ExternalSystemNodeData = EventCatalogResource & {
|
|
444
|
+
externalSystem: ExternalSystem & {
|
|
445
|
+
deprecated?: boolean;
|
|
446
|
+
draft?: boolean;
|
|
447
|
+
};
|
|
361
448
|
};
|
|
362
|
-
type
|
|
363
|
-
|
|
449
|
+
type ExternalSystemNode = Node<ExternalSystemNodeData, "external-system">;
|
|
450
|
+
|
|
451
|
+
declare const _default$f: NodeConfiguration;
|
|
364
452
|
|
|
365
453
|
type NoteNodeData = {
|
|
366
454
|
id: string;
|
|
@@ -375,69 +463,77 @@ interface NoteNodeProps extends NoteNode {
|
|
|
375
463
|
showResizer?: boolean;
|
|
376
464
|
readOnly?: boolean;
|
|
377
465
|
}
|
|
378
|
-
declare
|
|
466
|
+
declare const _default$e: react__default.NamedExoticComponent<NoteNodeProps>;
|
|
379
467
|
|
|
380
|
-
type
|
|
381
|
-
|
|
468
|
+
type ChannelNodeData = EventCatalogResource & {
|
|
469
|
+
channel: Channel;
|
|
382
470
|
};
|
|
383
|
-
type
|
|
384
|
-
declare function Data(props: DataNode): react_jsx_runtime.JSX.Element;
|
|
385
|
-
|
|
386
|
-
declare const _default$2: NodeConfiguration;
|
|
471
|
+
type ChannelNode = Node<ChannelNodeData, "channel">;
|
|
387
472
|
|
|
388
|
-
type
|
|
389
|
-
|
|
473
|
+
type ServiceNodeData = EventCatalogResource & {
|
|
474
|
+
service: Service;
|
|
390
475
|
};
|
|
391
|
-
type
|
|
392
|
-
declare function View(props: ViewNode): react_jsx_runtime.JSX.Element;
|
|
476
|
+
type ServiceNode = Node<ServiceNodeData, "service">;
|
|
393
477
|
|
|
394
|
-
type
|
|
395
|
-
|
|
396
|
-
summary: string;
|
|
478
|
+
type QueryNodeData = EventCatalogResource & {
|
|
479
|
+
message: Message;
|
|
397
480
|
};
|
|
398
|
-
type
|
|
399
|
-
declare
|
|
481
|
+
type QueryNode = Node<QueryNodeData, "query">;
|
|
482
|
+
declare const _default$d: react.NamedExoticComponent<QueryNode>;
|
|
400
483
|
|
|
401
|
-
|
|
484
|
+
type CommandNodeData = EventCatalogResource & {
|
|
485
|
+
message: Message;
|
|
486
|
+
};
|
|
487
|
+
type CommandNode = Node<CommandNodeData, "command">;
|
|
488
|
+
declare const _default$c: react.NamedExoticComponent<CommandNode>;
|
|
402
489
|
|
|
403
|
-
type
|
|
404
|
-
|
|
490
|
+
type MessageNodeData = EventCatalogResource & {
|
|
491
|
+
message: Message;
|
|
405
492
|
};
|
|
406
|
-
type
|
|
407
|
-
declare
|
|
493
|
+
type EventNode = Node<MessageNodeData, "event">;
|
|
494
|
+
declare const _default$b: react.NamedExoticComponent<EventNode>;
|
|
408
495
|
|
|
409
|
-
declare const _default: NodeConfiguration;
|
|
496
|
+
declare const _default$a: NodeConfiguration;
|
|
410
497
|
|
|
411
|
-
declare
|
|
498
|
+
declare const NotesIndicator: react.NamedExoticComponent<{
|
|
499
|
+
notes: Note[];
|
|
500
|
+
resourceName?: string;
|
|
501
|
+
}>;
|
|
412
502
|
|
|
413
|
-
|
|
503
|
+
/**
|
|
504
|
+
* Normalise owners which may arrive as string[] or {id:string}[] from Astro.
|
|
505
|
+
*/
|
|
506
|
+
declare function normalizeOwners(raw: any[] | undefined): string[];
|
|
507
|
+
/**
|
|
508
|
+
* Compact owner indicator for the bottom of a node card.
|
|
509
|
+
* Shows a small icon + primary owner name + overflow pill.
|
|
510
|
+
*
|
|
511
|
+
* @param accentColor - Tailwind color class for the pill, e.g. "bg-pink-400"
|
|
512
|
+
* @param borderColor - CSS color string for the top border
|
|
513
|
+
* @param iconClass - Tailwind text color for the icon, e.g. "text-pink-300"
|
|
514
|
+
*/
|
|
515
|
+
declare const OwnerIndicator: react.NamedExoticComponent<{
|
|
516
|
+
owners: string[];
|
|
517
|
+
accentColor?: string;
|
|
518
|
+
borderColor?: string;
|
|
519
|
+
iconClass?: string;
|
|
520
|
+
}>;
|
|
414
521
|
|
|
415
|
-
declare
|
|
522
|
+
declare const _default$9: react.NamedExoticComponent<any>;
|
|
416
523
|
|
|
417
|
-
declare
|
|
524
|
+
declare const _default$8: react.NamedExoticComponent<any>;
|
|
418
525
|
|
|
419
|
-
declare
|
|
526
|
+
declare const _default$7: react.NamedExoticComponent<any>;
|
|
420
527
|
|
|
421
|
-
declare
|
|
528
|
+
declare const _default$6: react.NamedExoticComponent<any>;
|
|
422
529
|
|
|
423
|
-
|
|
424
|
-
data: {
|
|
425
|
-
mode: "simple" | "full";
|
|
426
|
-
dataProduct: {
|
|
427
|
-
id: string;
|
|
428
|
-
version: string;
|
|
429
|
-
name: string;
|
|
430
|
-
summary?: string;
|
|
431
|
-
inputs?: any[];
|
|
432
|
-
outputs?: any[];
|
|
433
|
-
owners?: any[];
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
selected?: boolean;
|
|
437
|
-
}
|
|
438
|
-
declare function DataProductNode(props: DataProductNodeProps): react_jsx_runtime.JSX.Element;
|
|
530
|
+
declare const _default$5: react.NamedExoticComponent<NodeProps>;
|
|
439
531
|
|
|
440
|
-
declare
|
|
532
|
+
declare const _default$4: react.NamedExoticComponent<any>;
|
|
533
|
+
|
|
534
|
+
declare const _default$3: react.NamedExoticComponent<any>;
|
|
535
|
+
|
|
536
|
+
declare const _default$2: react.NamedExoticComponent<any>;
|
|
441
537
|
|
|
442
538
|
declare const SERVICE: string[];
|
|
443
539
|
declare const EVENT: string[];
|
|
@@ -450,24 +546,25 @@ declare const VIEW: string[];
|
|
|
450
546
|
declare const MESSAGE: string[];
|
|
451
547
|
|
|
452
548
|
declare const nodeComponents: {
|
|
453
|
-
event:
|
|
454
|
-
command:
|
|
455
|
-
query:
|
|
456
|
-
service:
|
|
457
|
-
channel:
|
|
458
|
-
note:
|
|
459
|
-
externalSystem:
|
|
460
|
-
data:
|
|
461
|
-
view:
|
|
462
|
-
actor:
|
|
463
|
-
custom:
|
|
464
|
-
domain:
|
|
465
|
-
entity:
|
|
466
|
-
flow:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
549
|
+
event: react.NamedExoticComponent<EventNode>;
|
|
550
|
+
command: react.NamedExoticComponent<CommandNode>;
|
|
551
|
+
query: react.NamedExoticComponent<QueryNode>;
|
|
552
|
+
service: react.NamedExoticComponent<ServiceNode>;
|
|
553
|
+
channel: react.NamedExoticComponent<ChannelNode>;
|
|
554
|
+
note: react.NamedExoticComponent<NoteNodeProps>;
|
|
555
|
+
externalSystem: react.NamedExoticComponent<ExternalSystemNode>;
|
|
556
|
+
data: react.NamedExoticComponent<DataNode>;
|
|
557
|
+
view: react.NamedExoticComponent<ViewNode>;
|
|
558
|
+
actor: react.NamedExoticComponent<ActorNode>;
|
|
559
|
+
custom: react.NamedExoticComponent<any>;
|
|
560
|
+
domain: react.NamedExoticComponent<any>;
|
|
561
|
+
entity: react.NamedExoticComponent<any>;
|
|
562
|
+
flow: react.NamedExoticComponent<any>;
|
|
563
|
+
group: react.NamedExoticComponent<_xyflow_react.NodeProps>;
|
|
564
|
+
step: react.NamedExoticComponent<any>;
|
|
565
|
+
user: react.NamedExoticComponent<any>;
|
|
566
|
+
dataProduct: react.NamedExoticComponent<DataProductNode>;
|
|
567
|
+
externalSystem2: react.NamedExoticComponent<any>;
|
|
471
568
|
};
|
|
472
569
|
declare const nodeConfigs: {
|
|
473
570
|
event: NodeConfiguration;
|
|
@@ -476,8 +573,6 @@ declare const nodeConfigs: {
|
|
|
476
573
|
externalSystem: NodeConfiguration;
|
|
477
574
|
};
|
|
478
575
|
|
|
479
|
-
declare const AnimatedMessageEdge: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, label, markerEnd, markerStart, }: any) => react_jsx_runtime.JSX.Element;
|
|
480
|
-
|
|
481
576
|
interface EdgeData {
|
|
482
577
|
message?: {
|
|
483
578
|
collection?: string;
|
|
@@ -488,14 +583,16 @@ interface EdgeData {
|
|
|
488
583
|
interface CustomEdgeProps extends Omit<EdgeProps, "data"> {
|
|
489
584
|
data?: EdgeData;
|
|
490
585
|
}
|
|
491
|
-
declare
|
|
586
|
+
declare const _default$1: react.NamedExoticComponent<CustomEdgeProps>;
|
|
492
587
|
|
|
493
|
-
declare
|
|
588
|
+
declare const AnimatedMessageEdge: react.MemoExoticComponent<({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, label, markerEnd, markerStart, }: any) => react_jsx_runtime.JSX.Element>;
|
|
589
|
+
|
|
590
|
+
declare const _default: react.NamedExoticComponent<EdgeProps>;
|
|
494
591
|
|
|
495
592
|
declare const edgeTypes: {
|
|
496
|
-
animated: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, label, markerEnd, markerStart, }: any) => react_jsx_runtime.JSX.Element
|
|
497
|
-
"flow-edge":
|
|
498
|
-
multiline:
|
|
593
|
+
animated: react.MemoExoticComponent<({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, label, markerEnd, markerStart, }: any) => react_jsx_runtime.JSX.Element>;
|
|
594
|
+
"flow-edge": react.NamedExoticComponent<CustomEdgeProps>;
|
|
595
|
+
multiline: react.NamedExoticComponent<_xyflow_react.EdgeProps>;
|
|
499
596
|
};
|
|
500
597
|
|
|
501
598
|
/**
|
|
@@ -546,4 +643,15 @@ declare const getNodesAndEdgesFromDagre: ({ nodes, edges, defaultFlow, }: {
|
|
|
546
643
|
edges: Edge[];
|
|
547
644
|
};
|
|
548
645
|
|
|
549
|
-
|
|
646
|
+
declare function buildNodeData(node: GraphNode, style?: string): Record<string, unknown>;
|
|
647
|
+
declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
|
|
648
|
+
rankdir?: string;
|
|
649
|
+
nodesep?: number;
|
|
650
|
+
ranksep?: number;
|
|
651
|
+
edgesep?: number;
|
|
652
|
+
}, style?: string): {
|
|
653
|
+
nodes: Node[];
|
|
654
|
+
edges: Edge[];
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
export { ACTOR, _default$i as Actor, type ActorNode, AnimatedMessageEdge, type BaseNodeData, CHANNEL, COMMAND, type Channel, type ChannelNode, _default$c as Command, type CommandNode, type ContextMenuItem, _default$9 as CustomNode, DATA, type Data, type DataNode, _default$j as DataProductNode, _default$8 as DomainNode, type DslGraph, EVENT, type EdgeType, _default$7 as EntityNode, _default$b as Event, type EventCatalogResource, type EventNode, type ExternalSystem, _default$2 as ExternalSystem2Node, type ExternalSystemNode, _default$1 as FlowEdge, _default$6 as FlowNode, FocusModeModal, type GraphEdge, type GraphEdgeType, type GraphNode, _default$5 as GroupNode, MESSAGE, type MermaidExportOptions, MermaidView, type Message, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$k as NodeContextMenu, NodeGraph, type NodeType, _default$e as Note, type NoteNode, NotesIndicator, OwnerIndicator, QUERY, _default$d as Query, type QueryNode, type RegisteredNode, SERVICE, type Service, type ServiceNode, _default$4 as StepNode, _default$l as StepWalkthrough, _default$3 as UserNode, VIEW, type View, type ViewNode, VisualiserSearch, type VisualizerCallbacks, type VisualizerLink, type VisualizerMode, _default$h as actorConfig, buildNodeData, calculatedNodes, convertToMermaid, createDagreGraph, createEdge, createNode, _default$g as dataNodeConfig, edgeTypes, _default$a as eventConfig, exportNodeGraphForStudio, _default$f as externalSystemConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getNodesAndEdgesFromDagre, layoutGraph, nodeComponents, nodeConfigs, normalizeOwners };
|