@eventcatalog/visualiser 3.21.0 → 3.22.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 +116 -17
- package/dist/index.d.ts +116 -17
- package/dist/index.js +2629 -1878
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2236 -1482
- package/dist/index.mjs.map +1 -1
- package/dist/styles-core.css +141 -0
- package/dist/styles.css +138 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -74,6 +74,50 @@ type Service = {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Agent type
|
|
79
|
+
*/
|
|
80
|
+
type Agent$1 = {
|
|
81
|
+
name: string;
|
|
82
|
+
version: string;
|
|
83
|
+
summary: string;
|
|
84
|
+
owners?: string[];
|
|
85
|
+
sends?: string[];
|
|
86
|
+
receives?: string[];
|
|
87
|
+
deprecated?: boolean;
|
|
88
|
+
draft?: boolean;
|
|
89
|
+
notes?: Note[];
|
|
90
|
+
model?: {
|
|
91
|
+
provider?: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
version?: string;
|
|
94
|
+
};
|
|
95
|
+
tools?: Array<{
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
icon?: string;
|
|
99
|
+
url?: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
}>;
|
|
102
|
+
styles?: {
|
|
103
|
+
icon?: string;
|
|
104
|
+
node?: {
|
|
105
|
+
color?: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Tool used by an agent
|
|
112
|
+
*/
|
|
113
|
+
type AgentTool$1 = {
|
|
114
|
+
id?: string;
|
|
115
|
+
name: string;
|
|
116
|
+
type: string;
|
|
117
|
+
icon?: string;
|
|
118
|
+
url?: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
};
|
|
77
121
|
/**
|
|
78
122
|
* Channel type
|
|
79
123
|
*/
|
|
@@ -164,7 +208,7 @@ interface BaseNodeData {
|
|
|
164
208
|
/**
|
|
165
209
|
* Node types supported by the visualizer
|
|
166
210
|
*/
|
|
167
|
-
type NodeType = "service" | "services" | "event" | "events" | "command" | "commands" | "query" | "queries" | "domain" | "domains" | "flow" | "flows" | "channel" | "channels" | "entity" | "entities" | "step" | "user" | "custom" | "externalSystem" | "external-system" | "data" | "container" | "view" | "actor" | "data-product" | "data-products" | "note";
|
|
211
|
+
type NodeType = "agent" | "agents" | "agentTool" | "agent-tool" | "service" | "services" | "event" | "events" | "command" | "commands" | "query" | "queries" | "domain" | "domains" | "flow" | "flows" | "channel" | "channels" | "entity" | "entities" | "step" | "user" | "custom" | "externalSystem" | "external-system" | "data" | "container" | "view" | "actor" | "data-product" | "data-products" | "note";
|
|
168
212
|
/**
|
|
169
213
|
* Edge types supported by the visualizer
|
|
170
214
|
*/
|
|
@@ -248,12 +292,12 @@ interface VisualizerLink {
|
|
|
248
292
|
*/
|
|
249
293
|
interface GraphNode {
|
|
250
294
|
id: string;
|
|
251
|
-
type: "domain" | "service" | "event" | "command" | "query" | "channel" | "entity" | "container" | "data" | "data-product" | "flow" | "actor" | "external-system" | "step" | "user" | "team" | "diagram";
|
|
295
|
+
type: "domain" | "agent" | "agent-tool" | "agentTool" | "service" | "event" | "command" | "query" | "channel" | "entity" | "container" | "data" | "data-product" | "flow" | "actor" | "external-system" | "step" | "user" | "team" | "diagram";
|
|
252
296
|
label: string;
|
|
253
297
|
parentId?: string;
|
|
254
298
|
metadata: Record<string, unknown>;
|
|
255
299
|
}
|
|
256
|
-
type GraphEdgeType = "sends" | "receives" | "publishes" | "subscribes" | "writes-to" | "reads-from" | "reads-writes" | "contains" | "owns" | "member-of" | "routes-to" | "flow-step";
|
|
300
|
+
type GraphEdgeType = "sends" | "receives" | "publishes" | "subscribes" | "writes-to" | "reads-from" | "reads-writes" | "contains" | "owns" | "member-of" | "routes-to" | "calls" | "flow-step";
|
|
257
301
|
interface GraphEdge {
|
|
258
302
|
id: string;
|
|
259
303
|
source: string;
|
|
@@ -337,6 +381,8 @@ interface ResourceData {
|
|
|
337
381
|
}
|
|
338
382
|
type MessageData = ResourceData;
|
|
339
383
|
type ServiceData = ResourceData;
|
|
384
|
+
type AgentData = ResourceData;
|
|
385
|
+
type AgentToolData$1 = ResourceData;
|
|
340
386
|
type DomainData = ResourceData;
|
|
341
387
|
type EntityData = ResourceData;
|
|
342
388
|
interface NodeDataContent extends Record<string, unknown> {
|
|
@@ -346,6 +392,12 @@ interface NodeDataContent extends Record<string, unknown> {
|
|
|
346
392
|
service?: {
|
|
347
393
|
data?: ServiceData;
|
|
348
394
|
} & ServiceData;
|
|
395
|
+
agent?: {
|
|
396
|
+
data?: AgentData;
|
|
397
|
+
} & AgentData;
|
|
398
|
+
agentTool?: {
|
|
399
|
+
data?: AgentToolData$1;
|
|
400
|
+
} & AgentToolData$1;
|
|
349
401
|
domain?: {
|
|
350
402
|
data?: DomainData;
|
|
351
403
|
} & DomainData;
|
|
@@ -434,7 +486,7 @@ interface StepWalkthroughProps {
|
|
|
434
486
|
onStepChange: (nodeId: string | null, highlightPaths?: string[], shouldZoomOut?: boolean) => void;
|
|
435
487
|
mode?: "full" | "simple";
|
|
436
488
|
}
|
|
437
|
-
declare const _default$
|
|
489
|
+
declare const _default$t: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
438
490
|
|
|
439
491
|
interface FocusModeModalProps {
|
|
440
492
|
isOpen: boolean;
|
|
@@ -451,7 +503,7 @@ interface NodeContextMenuProps {
|
|
|
451
503
|
items: ContextMenuItem[];
|
|
452
504
|
children: React.ReactNode;
|
|
453
505
|
}
|
|
454
|
-
declare const _default$
|
|
506
|
+
declare const _default$s: react.NamedExoticComponent<NodeContextMenuProps>;
|
|
455
507
|
|
|
456
508
|
type MessageGroupNodeData = {
|
|
457
509
|
mode?: string;
|
|
@@ -469,7 +521,7 @@ type MessageGroupNodeData = {
|
|
|
469
521
|
};
|
|
470
522
|
};
|
|
471
523
|
type MessageGroupNode = Node<MessageGroupNodeData, "messageGroup">;
|
|
472
|
-
declare const _default$
|
|
524
|
+
declare const _default$r: react.NamedExoticComponent<MessageGroupNode>;
|
|
473
525
|
|
|
474
526
|
type MessageGroupExpandedNodeData = {
|
|
475
527
|
groupName: string;
|
|
@@ -477,7 +529,7 @@ type MessageGroupExpandedNodeData = {
|
|
|
477
529
|
messageCount: number;
|
|
478
530
|
onCollapse?: string;
|
|
479
531
|
};
|
|
480
|
-
declare const _default$
|
|
532
|
+
declare const _default$q: react.NamedExoticComponent<{
|
|
481
533
|
data: MessageGroupExpandedNodeData;
|
|
482
534
|
}>;
|
|
483
535
|
|
|
@@ -503,13 +555,13 @@ type DataProductNodeData = EventCatalogResource & {
|
|
|
503
555
|
};
|
|
504
556
|
};
|
|
505
557
|
type DataProductNode = Node<DataProductNodeData, "data-product">;
|
|
506
|
-
declare const _default$
|
|
558
|
+
declare const _default$p: react.NamedExoticComponent<DataProductNode>;
|
|
507
559
|
|
|
508
560
|
type FlowExpandedNodeData = {
|
|
509
561
|
flowName?: string;
|
|
510
562
|
version?: string;
|
|
511
563
|
};
|
|
512
|
-
declare const _default$
|
|
564
|
+
declare const _default$o: react.NamedExoticComponent<{
|
|
513
565
|
data: FlowExpandedNodeData;
|
|
514
566
|
}>;
|
|
515
567
|
|
|
@@ -519,9 +571,9 @@ type FieldNodeData = {
|
|
|
519
571
|
mode?: "simple" | "full";
|
|
520
572
|
};
|
|
521
573
|
type FieldNode = Node<FieldNodeData, "field">;
|
|
522
|
-
declare const _default$
|
|
574
|
+
declare const _default$n: react.NamedExoticComponent<FieldNode>;
|
|
523
575
|
|
|
524
|
-
declare const _default$
|
|
576
|
+
declare const _default$m: NodeConfiguration;
|
|
525
577
|
|
|
526
578
|
type ActorNodeData = EventCatalogResource & {
|
|
527
579
|
name: string;
|
|
@@ -531,9 +583,9 @@ type ActorNodeData = EventCatalogResource & {
|
|
|
531
583
|
notes?: Note[];
|
|
532
584
|
};
|
|
533
585
|
type ActorNode = Node<ActorNodeData, "actor">;
|
|
534
|
-
declare const _default$
|
|
586
|
+
declare const _default$l: react.NamedExoticComponent<ActorNode>;
|
|
535
587
|
|
|
536
|
-
declare const _default$
|
|
588
|
+
declare const _default$k: NodeConfiguration;
|
|
537
589
|
|
|
538
590
|
type ViewNodeData = EventCatalogResource & {
|
|
539
591
|
view: View;
|
|
@@ -545,7 +597,7 @@ type DataNodeData = EventCatalogResource & {
|
|
|
545
597
|
};
|
|
546
598
|
type DataNode = Node<DataNodeData, "data">;
|
|
547
599
|
|
|
548
|
-
declare const _default$
|
|
600
|
+
declare const _default$j: NodeConfiguration;
|
|
549
601
|
|
|
550
602
|
type ExternalSystemNodeData = EventCatalogResource & {
|
|
551
603
|
externalSystem: ExternalSystem & {
|
|
@@ -555,7 +607,7 @@ type ExternalSystemNodeData = EventCatalogResource & {
|
|
|
555
607
|
};
|
|
556
608
|
type ExternalSystemNode = Node<ExternalSystemNodeData, "external-system">;
|
|
557
609
|
|
|
558
|
-
declare const _default$
|
|
610
|
+
declare const _default$i: NodeConfiguration;
|
|
559
611
|
|
|
560
612
|
type NoteNodeData = {
|
|
561
613
|
id: string;
|
|
@@ -570,13 +622,55 @@ interface NoteNodeProps extends NoteNode {
|
|
|
570
622
|
showResizer?: boolean;
|
|
571
623
|
readOnly?: boolean;
|
|
572
624
|
}
|
|
573
|
-
declare const _default$
|
|
625
|
+
declare const _default$h: react__default.NamedExoticComponent<NoteNodeProps>;
|
|
574
626
|
|
|
575
627
|
type ChannelNodeData = EventCatalogResource & {
|
|
576
628
|
channel: Channel;
|
|
577
629
|
};
|
|
578
630
|
type ChannelNode = Node<ChannelNodeData, "channel">;
|
|
579
631
|
|
|
632
|
+
type AgentToolData = EventCatalogResource & {
|
|
633
|
+
agentTool: {
|
|
634
|
+
id?: string;
|
|
635
|
+
name: string;
|
|
636
|
+
type: string;
|
|
637
|
+
icon?: string;
|
|
638
|
+
url?: string;
|
|
639
|
+
description?: string;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
type AgentToolNode = Node<AgentToolData, "agentTool">;
|
|
643
|
+
declare function AgentTool(props: AgentToolNode): react_jsx_runtime.JSX.Element;
|
|
644
|
+
declare const _default$g: react.MemoExoticComponent<typeof AgentTool>;
|
|
645
|
+
|
|
646
|
+
type AgentNodeData = EventCatalogResource & {
|
|
647
|
+
agent: {
|
|
648
|
+
id: string;
|
|
649
|
+
version: string;
|
|
650
|
+
name: string;
|
|
651
|
+
summary?: string;
|
|
652
|
+
owners?: any[];
|
|
653
|
+
deprecated?: boolean;
|
|
654
|
+
draft?: boolean;
|
|
655
|
+
notes?: Note[];
|
|
656
|
+
model?: {
|
|
657
|
+
provider?: string;
|
|
658
|
+
name?: string;
|
|
659
|
+
version?: string;
|
|
660
|
+
};
|
|
661
|
+
styles?: {
|
|
662
|
+
icon?: string;
|
|
663
|
+
node?: {
|
|
664
|
+
color?: string;
|
|
665
|
+
label?: string;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
type AgentNode = Node<AgentNodeData, "agent">;
|
|
671
|
+
declare function Agent(props: AgentNode): react_jsx_runtime.JSX.Element;
|
|
672
|
+
declare const _default$f: react.MemoExoticComponent<typeof Agent>;
|
|
673
|
+
|
|
580
674
|
type ServiceNodeData = EventCatalogResource & {
|
|
581
675
|
service: Service;
|
|
582
676
|
};
|
|
@@ -644,6 +738,8 @@ declare const _default$3: react.NamedExoticComponent<any>;
|
|
|
644
738
|
declare const _default$2: react.NamedExoticComponent<any>;
|
|
645
739
|
|
|
646
740
|
declare const SERVICE: string[];
|
|
741
|
+
declare const AGENT: string[];
|
|
742
|
+
declare const AGENT_TOOL: string[];
|
|
647
743
|
declare const EVENT: string[];
|
|
648
744
|
declare const QUERY: string[];
|
|
649
745
|
declare const COMMAND: string[];
|
|
@@ -658,6 +754,9 @@ declare const nodeComponents: {
|
|
|
658
754
|
command: react.NamedExoticComponent<CommandNode>;
|
|
659
755
|
query: react.NamedExoticComponent<QueryNode>;
|
|
660
756
|
service: react.NamedExoticComponent<ServiceNode>;
|
|
757
|
+
agent: react.MemoExoticComponent<(props: AgentNode) => react_jsx_runtime.JSX.Element>;
|
|
758
|
+
agentTool: react.MemoExoticComponent<(props: AgentToolNode) => react_jsx_runtime.JSX.Element>;
|
|
759
|
+
"agent-tool": react.MemoExoticComponent<(props: AgentToolNode) => react_jsx_runtime.JSX.Element>;
|
|
661
760
|
channel: react.NamedExoticComponent<ChannelNode>;
|
|
662
761
|
note: react.NamedExoticComponent<NoteNodeProps>;
|
|
663
762
|
externalSystem: react.NamedExoticComponent<ExternalSystemNode>;
|
|
@@ -765,4 +864,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
|
|
|
765
864
|
edges: Edge[];
|
|
766
865
|
};
|
|
767
866
|
|
|
768
|
-
export { ACTOR, _default$
|
|
867
|
+
export { ACTOR, AGENT, AGENT_TOOL, _default$l as Actor, type ActorNode, type Agent$1 as Agent, _default$f as AgentNode, type AgentTool$1 as AgentTool, _default$g as AgentToolNode, type AgentToolNode as AgentToolNodeType, 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$p 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$n as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$o as FlowExpandedNode, _default$6 as FlowNode, FocusModeModal, type GraphEdge, type GraphEdgeType, type GraphNode, _default$5 as GroupNode, MESSAGE, type MermaidExportOptions, MermaidView, type Message, _default$q as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$r as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$s as NodeContextMenu, NodeGraph, type NodeGraphProps, type NodeType, _default$h as Note, type NoteNode, NotesIndicator, OwnerIndicator, QUERY, _default$d as Query, type QueryNode, type RegisteredNode, SERVICE, _default$e as Service, type ServiceNode, type Service as ServiceType, _default$4 as StepNode, _default$t as StepWalkthrough, _default$3 as UserNode, VIEW, type View, type ViewNode, VisualiserSearch, type VisualizerCallbacks, type VisualizerLink, type VisualizerMode, _default$k as actorConfig, buildNodeData, calculatedNodes, convertToMermaid, createDagreGraph, createEdge, createNode, _default$j as dataNodeConfig, edgeTypes, _default$a as eventConfig, exportNodeGraphForStudio, _default$i as externalSystemConfig, _default$m as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getNodesAndEdgesFromDagre, layoutGraph, nodeComponents, nodeConfigs, normalizeOwners };
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,50 @@ type Service = {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Agent type
|
|
79
|
+
*/
|
|
80
|
+
type Agent$1 = {
|
|
81
|
+
name: string;
|
|
82
|
+
version: string;
|
|
83
|
+
summary: string;
|
|
84
|
+
owners?: string[];
|
|
85
|
+
sends?: string[];
|
|
86
|
+
receives?: string[];
|
|
87
|
+
deprecated?: boolean;
|
|
88
|
+
draft?: boolean;
|
|
89
|
+
notes?: Note[];
|
|
90
|
+
model?: {
|
|
91
|
+
provider?: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
version?: string;
|
|
94
|
+
};
|
|
95
|
+
tools?: Array<{
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
icon?: string;
|
|
99
|
+
url?: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
}>;
|
|
102
|
+
styles?: {
|
|
103
|
+
icon?: string;
|
|
104
|
+
node?: {
|
|
105
|
+
color?: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Tool used by an agent
|
|
112
|
+
*/
|
|
113
|
+
type AgentTool$1 = {
|
|
114
|
+
id?: string;
|
|
115
|
+
name: string;
|
|
116
|
+
type: string;
|
|
117
|
+
icon?: string;
|
|
118
|
+
url?: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
};
|
|
77
121
|
/**
|
|
78
122
|
* Channel type
|
|
79
123
|
*/
|
|
@@ -164,7 +208,7 @@ interface BaseNodeData {
|
|
|
164
208
|
/**
|
|
165
209
|
* Node types supported by the visualizer
|
|
166
210
|
*/
|
|
167
|
-
type NodeType = "service" | "services" | "event" | "events" | "command" | "commands" | "query" | "queries" | "domain" | "domains" | "flow" | "flows" | "channel" | "channels" | "entity" | "entities" | "step" | "user" | "custom" | "externalSystem" | "external-system" | "data" | "container" | "view" | "actor" | "data-product" | "data-products" | "note";
|
|
211
|
+
type NodeType = "agent" | "agents" | "agentTool" | "agent-tool" | "service" | "services" | "event" | "events" | "command" | "commands" | "query" | "queries" | "domain" | "domains" | "flow" | "flows" | "channel" | "channels" | "entity" | "entities" | "step" | "user" | "custom" | "externalSystem" | "external-system" | "data" | "container" | "view" | "actor" | "data-product" | "data-products" | "note";
|
|
168
212
|
/**
|
|
169
213
|
* Edge types supported by the visualizer
|
|
170
214
|
*/
|
|
@@ -248,12 +292,12 @@ interface VisualizerLink {
|
|
|
248
292
|
*/
|
|
249
293
|
interface GraphNode {
|
|
250
294
|
id: string;
|
|
251
|
-
type: "domain" | "service" | "event" | "command" | "query" | "channel" | "entity" | "container" | "data" | "data-product" | "flow" | "actor" | "external-system" | "step" | "user" | "team" | "diagram";
|
|
295
|
+
type: "domain" | "agent" | "agent-tool" | "agentTool" | "service" | "event" | "command" | "query" | "channel" | "entity" | "container" | "data" | "data-product" | "flow" | "actor" | "external-system" | "step" | "user" | "team" | "diagram";
|
|
252
296
|
label: string;
|
|
253
297
|
parentId?: string;
|
|
254
298
|
metadata: Record<string, unknown>;
|
|
255
299
|
}
|
|
256
|
-
type GraphEdgeType = "sends" | "receives" | "publishes" | "subscribes" | "writes-to" | "reads-from" | "reads-writes" | "contains" | "owns" | "member-of" | "routes-to" | "flow-step";
|
|
300
|
+
type GraphEdgeType = "sends" | "receives" | "publishes" | "subscribes" | "writes-to" | "reads-from" | "reads-writes" | "contains" | "owns" | "member-of" | "routes-to" | "calls" | "flow-step";
|
|
257
301
|
interface GraphEdge {
|
|
258
302
|
id: string;
|
|
259
303
|
source: string;
|
|
@@ -337,6 +381,8 @@ interface ResourceData {
|
|
|
337
381
|
}
|
|
338
382
|
type MessageData = ResourceData;
|
|
339
383
|
type ServiceData = ResourceData;
|
|
384
|
+
type AgentData = ResourceData;
|
|
385
|
+
type AgentToolData$1 = ResourceData;
|
|
340
386
|
type DomainData = ResourceData;
|
|
341
387
|
type EntityData = ResourceData;
|
|
342
388
|
interface NodeDataContent extends Record<string, unknown> {
|
|
@@ -346,6 +392,12 @@ interface NodeDataContent extends Record<string, unknown> {
|
|
|
346
392
|
service?: {
|
|
347
393
|
data?: ServiceData;
|
|
348
394
|
} & ServiceData;
|
|
395
|
+
agent?: {
|
|
396
|
+
data?: AgentData;
|
|
397
|
+
} & AgentData;
|
|
398
|
+
agentTool?: {
|
|
399
|
+
data?: AgentToolData$1;
|
|
400
|
+
} & AgentToolData$1;
|
|
349
401
|
domain?: {
|
|
350
402
|
data?: DomainData;
|
|
351
403
|
} & DomainData;
|
|
@@ -434,7 +486,7 @@ interface StepWalkthroughProps {
|
|
|
434
486
|
onStepChange: (nodeId: string | null, highlightPaths?: string[], shouldZoomOut?: boolean) => void;
|
|
435
487
|
mode?: "full" | "simple";
|
|
436
488
|
}
|
|
437
|
-
declare const _default$
|
|
489
|
+
declare const _default$t: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
438
490
|
|
|
439
491
|
interface FocusModeModalProps {
|
|
440
492
|
isOpen: boolean;
|
|
@@ -451,7 +503,7 @@ interface NodeContextMenuProps {
|
|
|
451
503
|
items: ContextMenuItem[];
|
|
452
504
|
children: React.ReactNode;
|
|
453
505
|
}
|
|
454
|
-
declare const _default$
|
|
506
|
+
declare const _default$s: react.NamedExoticComponent<NodeContextMenuProps>;
|
|
455
507
|
|
|
456
508
|
type MessageGroupNodeData = {
|
|
457
509
|
mode?: string;
|
|
@@ -469,7 +521,7 @@ type MessageGroupNodeData = {
|
|
|
469
521
|
};
|
|
470
522
|
};
|
|
471
523
|
type MessageGroupNode = Node<MessageGroupNodeData, "messageGroup">;
|
|
472
|
-
declare const _default$
|
|
524
|
+
declare const _default$r: react.NamedExoticComponent<MessageGroupNode>;
|
|
473
525
|
|
|
474
526
|
type MessageGroupExpandedNodeData = {
|
|
475
527
|
groupName: string;
|
|
@@ -477,7 +529,7 @@ type MessageGroupExpandedNodeData = {
|
|
|
477
529
|
messageCount: number;
|
|
478
530
|
onCollapse?: string;
|
|
479
531
|
};
|
|
480
|
-
declare const _default$
|
|
532
|
+
declare const _default$q: react.NamedExoticComponent<{
|
|
481
533
|
data: MessageGroupExpandedNodeData;
|
|
482
534
|
}>;
|
|
483
535
|
|
|
@@ -503,13 +555,13 @@ type DataProductNodeData = EventCatalogResource & {
|
|
|
503
555
|
};
|
|
504
556
|
};
|
|
505
557
|
type DataProductNode = Node<DataProductNodeData, "data-product">;
|
|
506
|
-
declare const _default$
|
|
558
|
+
declare const _default$p: react.NamedExoticComponent<DataProductNode>;
|
|
507
559
|
|
|
508
560
|
type FlowExpandedNodeData = {
|
|
509
561
|
flowName?: string;
|
|
510
562
|
version?: string;
|
|
511
563
|
};
|
|
512
|
-
declare const _default$
|
|
564
|
+
declare const _default$o: react.NamedExoticComponent<{
|
|
513
565
|
data: FlowExpandedNodeData;
|
|
514
566
|
}>;
|
|
515
567
|
|
|
@@ -519,9 +571,9 @@ type FieldNodeData = {
|
|
|
519
571
|
mode?: "simple" | "full";
|
|
520
572
|
};
|
|
521
573
|
type FieldNode = Node<FieldNodeData, "field">;
|
|
522
|
-
declare const _default$
|
|
574
|
+
declare const _default$n: react.NamedExoticComponent<FieldNode>;
|
|
523
575
|
|
|
524
|
-
declare const _default$
|
|
576
|
+
declare const _default$m: NodeConfiguration;
|
|
525
577
|
|
|
526
578
|
type ActorNodeData = EventCatalogResource & {
|
|
527
579
|
name: string;
|
|
@@ -531,9 +583,9 @@ type ActorNodeData = EventCatalogResource & {
|
|
|
531
583
|
notes?: Note[];
|
|
532
584
|
};
|
|
533
585
|
type ActorNode = Node<ActorNodeData, "actor">;
|
|
534
|
-
declare const _default$
|
|
586
|
+
declare const _default$l: react.NamedExoticComponent<ActorNode>;
|
|
535
587
|
|
|
536
|
-
declare const _default$
|
|
588
|
+
declare const _default$k: NodeConfiguration;
|
|
537
589
|
|
|
538
590
|
type ViewNodeData = EventCatalogResource & {
|
|
539
591
|
view: View;
|
|
@@ -545,7 +597,7 @@ type DataNodeData = EventCatalogResource & {
|
|
|
545
597
|
};
|
|
546
598
|
type DataNode = Node<DataNodeData, "data">;
|
|
547
599
|
|
|
548
|
-
declare const _default$
|
|
600
|
+
declare const _default$j: NodeConfiguration;
|
|
549
601
|
|
|
550
602
|
type ExternalSystemNodeData = EventCatalogResource & {
|
|
551
603
|
externalSystem: ExternalSystem & {
|
|
@@ -555,7 +607,7 @@ type ExternalSystemNodeData = EventCatalogResource & {
|
|
|
555
607
|
};
|
|
556
608
|
type ExternalSystemNode = Node<ExternalSystemNodeData, "external-system">;
|
|
557
609
|
|
|
558
|
-
declare const _default$
|
|
610
|
+
declare const _default$i: NodeConfiguration;
|
|
559
611
|
|
|
560
612
|
type NoteNodeData = {
|
|
561
613
|
id: string;
|
|
@@ -570,13 +622,55 @@ interface NoteNodeProps extends NoteNode {
|
|
|
570
622
|
showResizer?: boolean;
|
|
571
623
|
readOnly?: boolean;
|
|
572
624
|
}
|
|
573
|
-
declare const _default$
|
|
625
|
+
declare const _default$h: react__default.NamedExoticComponent<NoteNodeProps>;
|
|
574
626
|
|
|
575
627
|
type ChannelNodeData = EventCatalogResource & {
|
|
576
628
|
channel: Channel;
|
|
577
629
|
};
|
|
578
630
|
type ChannelNode = Node<ChannelNodeData, "channel">;
|
|
579
631
|
|
|
632
|
+
type AgentToolData = EventCatalogResource & {
|
|
633
|
+
agentTool: {
|
|
634
|
+
id?: string;
|
|
635
|
+
name: string;
|
|
636
|
+
type: string;
|
|
637
|
+
icon?: string;
|
|
638
|
+
url?: string;
|
|
639
|
+
description?: string;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
type AgentToolNode = Node<AgentToolData, "agentTool">;
|
|
643
|
+
declare function AgentTool(props: AgentToolNode): react_jsx_runtime.JSX.Element;
|
|
644
|
+
declare const _default$g: react.MemoExoticComponent<typeof AgentTool>;
|
|
645
|
+
|
|
646
|
+
type AgentNodeData = EventCatalogResource & {
|
|
647
|
+
agent: {
|
|
648
|
+
id: string;
|
|
649
|
+
version: string;
|
|
650
|
+
name: string;
|
|
651
|
+
summary?: string;
|
|
652
|
+
owners?: any[];
|
|
653
|
+
deprecated?: boolean;
|
|
654
|
+
draft?: boolean;
|
|
655
|
+
notes?: Note[];
|
|
656
|
+
model?: {
|
|
657
|
+
provider?: string;
|
|
658
|
+
name?: string;
|
|
659
|
+
version?: string;
|
|
660
|
+
};
|
|
661
|
+
styles?: {
|
|
662
|
+
icon?: string;
|
|
663
|
+
node?: {
|
|
664
|
+
color?: string;
|
|
665
|
+
label?: string;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
type AgentNode = Node<AgentNodeData, "agent">;
|
|
671
|
+
declare function Agent(props: AgentNode): react_jsx_runtime.JSX.Element;
|
|
672
|
+
declare const _default$f: react.MemoExoticComponent<typeof Agent>;
|
|
673
|
+
|
|
580
674
|
type ServiceNodeData = EventCatalogResource & {
|
|
581
675
|
service: Service;
|
|
582
676
|
};
|
|
@@ -644,6 +738,8 @@ declare const _default$3: react.NamedExoticComponent<any>;
|
|
|
644
738
|
declare const _default$2: react.NamedExoticComponent<any>;
|
|
645
739
|
|
|
646
740
|
declare const SERVICE: string[];
|
|
741
|
+
declare const AGENT: string[];
|
|
742
|
+
declare const AGENT_TOOL: string[];
|
|
647
743
|
declare const EVENT: string[];
|
|
648
744
|
declare const QUERY: string[];
|
|
649
745
|
declare const COMMAND: string[];
|
|
@@ -658,6 +754,9 @@ declare const nodeComponents: {
|
|
|
658
754
|
command: react.NamedExoticComponent<CommandNode>;
|
|
659
755
|
query: react.NamedExoticComponent<QueryNode>;
|
|
660
756
|
service: react.NamedExoticComponent<ServiceNode>;
|
|
757
|
+
agent: react.MemoExoticComponent<(props: AgentNode) => react_jsx_runtime.JSX.Element>;
|
|
758
|
+
agentTool: react.MemoExoticComponent<(props: AgentToolNode) => react_jsx_runtime.JSX.Element>;
|
|
759
|
+
"agent-tool": react.MemoExoticComponent<(props: AgentToolNode) => react_jsx_runtime.JSX.Element>;
|
|
661
760
|
channel: react.NamedExoticComponent<ChannelNode>;
|
|
662
761
|
note: react.NamedExoticComponent<NoteNodeProps>;
|
|
663
762
|
externalSystem: react.NamedExoticComponent<ExternalSystemNode>;
|
|
@@ -765,4 +864,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
|
|
|
765
864
|
edges: Edge[];
|
|
766
865
|
};
|
|
767
866
|
|
|
768
|
-
export { ACTOR, _default$
|
|
867
|
+
export { ACTOR, AGENT, AGENT_TOOL, _default$l as Actor, type ActorNode, type Agent$1 as Agent, _default$f as AgentNode, type AgentTool$1 as AgentTool, _default$g as AgentToolNode, type AgentToolNode as AgentToolNodeType, 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$p 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$n as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$o as FlowExpandedNode, _default$6 as FlowNode, FocusModeModal, type GraphEdge, type GraphEdgeType, type GraphNode, _default$5 as GroupNode, MESSAGE, type MermaidExportOptions, MermaidView, type Message, _default$q as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$r as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$s as NodeContextMenu, NodeGraph, type NodeGraphProps, type NodeType, _default$h as Note, type NoteNode, NotesIndicator, OwnerIndicator, QUERY, _default$d as Query, type QueryNode, type RegisteredNode, SERVICE, _default$e as Service, type ServiceNode, type Service as ServiceType, _default$4 as StepNode, _default$t as StepWalkthrough, _default$3 as UserNode, VIEW, type View, type ViewNode, VisualiserSearch, type VisualizerCallbacks, type VisualizerLink, type VisualizerMode, _default$k as actorConfig, buildNodeData, calculatedNodes, convertToMermaid, createDagreGraph, createEdge, createNode, _default$j as dataNodeConfig, edgeTypes, _default$a as eventConfig, exportNodeGraphForStudio, _default$i as externalSystemConfig, _default$m as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getNodesAndEdgesFromDagre, layoutGraph, nodeComponents, nodeConfigs, normalizeOwners };
|