@eventcatalog/visualiser 3.16.1 → 3.17.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/LICENSE +28 -0
- package/dist/index.d.mts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +1278 -625
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1075 -423
- package/dist/index.mjs.map +1 -1
- package/dist/styles-core.css +23 -0
- package/dist/styles.css +23 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-2026 boyney123
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Note: Source code within `packages/core/eventcatalog/src/enterprise/` is
|
|
26
|
+
licensed under the EventCatalog Commercial License and is NOT covered by the
|
|
27
|
+
MIT License above. See `packages/core/eventcatalog/src/enterprise/LICENSE`
|
|
28
|
+
for the full terms.
|
package/dist/index.d.mts
CHANGED
|
@@ -395,7 +395,7 @@ interface StepWalkthroughProps {
|
|
|
395
395
|
onStepChange: (nodeId: string | null, highlightPaths?: string[], shouldZoomOut?: boolean) => void;
|
|
396
396
|
mode?: "full" | "simple";
|
|
397
397
|
}
|
|
398
|
-
declare const _default$
|
|
398
|
+
declare const _default$p: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
399
399
|
|
|
400
400
|
interface FocusModeModalProps {
|
|
401
401
|
isOpen: boolean;
|
|
@@ -412,7 +412,35 @@ interface NodeContextMenuProps {
|
|
|
412
412
|
items: ContextMenuItem[];
|
|
413
413
|
children: React.ReactNode;
|
|
414
414
|
}
|
|
415
|
-
declare const _default$
|
|
415
|
+
declare const _default$o: react.NamedExoticComponent<NodeContextMenuProps>;
|
|
416
|
+
|
|
417
|
+
type MessageGroupNodeData = {
|
|
418
|
+
mode?: string;
|
|
419
|
+
groupName: string;
|
|
420
|
+
direction: "sends" | "receives";
|
|
421
|
+
messageCount: number;
|
|
422
|
+
messageTypes: string[];
|
|
423
|
+
messages: Array<{
|
|
424
|
+
message: any;
|
|
425
|
+
channels: any[];
|
|
426
|
+
}>;
|
|
427
|
+
service: {
|
|
428
|
+
id: string;
|
|
429
|
+
version: string;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
type MessageGroupNode = Node<MessageGroupNodeData, "messageGroup">;
|
|
433
|
+
declare const _default$n: react.NamedExoticComponent<MessageGroupNode>;
|
|
434
|
+
|
|
435
|
+
type MessageGroupExpandedNodeData = {
|
|
436
|
+
groupName: string;
|
|
437
|
+
direction: "sends" | "receives";
|
|
438
|
+
messageCount: number;
|
|
439
|
+
onCollapse?: string;
|
|
440
|
+
};
|
|
441
|
+
declare const _default$m: react.NamedExoticComponent<{
|
|
442
|
+
data: MessageGroupExpandedNodeData;
|
|
443
|
+
}>;
|
|
416
444
|
|
|
417
445
|
type DataProductNodeData = EventCatalogResource & {
|
|
418
446
|
dataProduct: {
|
|
@@ -591,6 +619,10 @@ declare const nodeComponents: {
|
|
|
591
619
|
user: react.NamedExoticComponent<any>;
|
|
592
620
|
dataProduct: react.NamedExoticComponent<DataProductNode>;
|
|
593
621
|
externalSystem2: react.NamedExoticComponent<any>;
|
|
622
|
+
messageGroup: react.NamedExoticComponent<MessageGroupNode>;
|
|
623
|
+
messageGroupExpanded: react.NamedExoticComponent<{
|
|
624
|
+
data: MessageGroupExpandedNodeData;
|
|
625
|
+
}>;
|
|
594
626
|
};
|
|
595
627
|
declare const nodeConfigs: Record<string, NodeConfiguration>;
|
|
596
628
|
|
|
@@ -675,4 +707,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
|
|
|
675
707
|
edges: Edge[];
|
|
676
708
|
};
|
|
677
709
|
|
|
678
|
-
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$l 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$k as Field, type FieldNode as FieldNodeType, _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$
|
|
710
|
+
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$l 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$k as Field, type FieldNode as FieldNodeType, _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$m as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$n as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$o as NodeContextMenu, NodeGraph, type NodeGraphProps, 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$p 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, _default$j as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getNodesAndEdgesFromDagre, layoutGraph, nodeComponents, nodeConfigs, normalizeOwners };
|
package/dist/index.d.ts
CHANGED
|
@@ -395,7 +395,7 @@ interface StepWalkthroughProps {
|
|
|
395
395
|
onStepChange: (nodeId: string | null, highlightPaths?: string[], shouldZoomOut?: boolean) => void;
|
|
396
396
|
mode?: "full" | "simple";
|
|
397
397
|
}
|
|
398
|
-
declare const _default$
|
|
398
|
+
declare const _default$p: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
399
399
|
|
|
400
400
|
interface FocusModeModalProps {
|
|
401
401
|
isOpen: boolean;
|
|
@@ -412,7 +412,35 @@ interface NodeContextMenuProps {
|
|
|
412
412
|
items: ContextMenuItem[];
|
|
413
413
|
children: React.ReactNode;
|
|
414
414
|
}
|
|
415
|
-
declare const _default$
|
|
415
|
+
declare const _default$o: react.NamedExoticComponent<NodeContextMenuProps>;
|
|
416
|
+
|
|
417
|
+
type MessageGroupNodeData = {
|
|
418
|
+
mode?: string;
|
|
419
|
+
groupName: string;
|
|
420
|
+
direction: "sends" | "receives";
|
|
421
|
+
messageCount: number;
|
|
422
|
+
messageTypes: string[];
|
|
423
|
+
messages: Array<{
|
|
424
|
+
message: any;
|
|
425
|
+
channels: any[];
|
|
426
|
+
}>;
|
|
427
|
+
service: {
|
|
428
|
+
id: string;
|
|
429
|
+
version: string;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
type MessageGroupNode = Node<MessageGroupNodeData, "messageGroup">;
|
|
433
|
+
declare const _default$n: react.NamedExoticComponent<MessageGroupNode>;
|
|
434
|
+
|
|
435
|
+
type MessageGroupExpandedNodeData = {
|
|
436
|
+
groupName: string;
|
|
437
|
+
direction: "sends" | "receives";
|
|
438
|
+
messageCount: number;
|
|
439
|
+
onCollapse?: string;
|
|
440
|
+
};
|
|
441
|
+
declare const _default$m: react.NamedExoticComponent<{
|
|
442
|
+
data: MessageGroupExpandedNodeData;
|
|
443
|
+
}>;
|
|
416
444
|
|
|
417
445
|
type DataProductNodeData = EventCatalogResource & {
|
|
418
446
|
dataProduct: {
|
|
@@ -591,6 +619,10 @@ declare const nodeComponents: {
|
|
|
591
619
|
user: react.NamedExoticComponent<any>;
|
|
592
620
|
dataProduct: react.NamedExoticComponent<DataProductNode>;
|
|
593
621
|
externalSystem2: react.NamedExoticComponent<any>;
|
|
622
|
+
messageGroup: react.NamedExoticComponent<MessageGroupNode>;
|
|
623
|
+
messageGroupExpanded: react.NamedExoticComponent<{
|
|
624
|
+
data: MessageGroupExpandedNodeData;
|
|
625
|
+
}>;
|
|
594
626
|
};
|
|
595
627
|
declare const nodeConfigs: Record<string, NodeConfiguration>;
|
|
596
628
|
|
|
@@ -675,4 +707,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
|
|
|
675
707
|
edges: Edge[];
|
|
676
708
|
};
|
|
677
709
|
|
|
678
|
-
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$l 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$k as Field, type FieldNode as FieldNodeType, _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$
|
|
710
|
+
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$l 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$k as Field, type FieldNode as FieldNodeType, _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$m as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$n as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$o as NodeContextMenu, NodeGraph, type NodeGraphProps, 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$p 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, _default$j as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getNodesAndEdgesFromDagre, layoutGraph, nodeComponents, nodeConfigs, normalizeOwners };
|