@eventcatalog/visualiser 3.15.4 → 3.16.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 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$l: react__default.NamedExoticComponent<StepWalkthroughProps>;
398
+ declare const _default$n: react__default.NamedExoticComponent<StepWalkthroughProps>;
399
399
 
400
400
  interface FocusModeModalProps {
401
401
  isOpen: boolean;
@@ -412,7 +412,7 @@ interface NodeContextMenuProps {
412
412
  items: ContextMenuItem[];
413
413
  children: React.ReactNode;
414
414
  }
415
- declare const _default$k: react.NamedExoticComponent<NodeContextMenuProps>;
415
+ declare const _default$m: react.NamedExoticComponent<NodeContextMenuProps>;
416
416
 
417
417
  type DataProductNodeData = EventCatalogResource & {
418
418
  dataProduct: {
@@ -429,7 +429,17 @@ type DataProductNodeData = EventCatalogResource & {
429
429
  };
430
430
  };
431
431
  type DataProductNode = Node<DataProductNodeData, "data-product">;
432
- declare const _default$j: react.NamedExoticComponent<DataProductNode>;
432
+ declare const _default$l: react.NamedExoticComponent<DataProductNode>;
433
+
434
+ type FieldNodeData = {
435
+ name: string;
436
+ type?: string;
437
+ mode?: "simple" | "full";
438
+ };
439
+ type FieldNode = Node<FieldNodeData, "field">;
440
+ declare const _default$k: react.NamedExoticComponent<FieldNode>;
441
+
442
+ declare const _default$j: NodeConfiguration;
433
443
 
434
444
  type ActorNodeData = EventCatalogResource & {
435
445
  name: string;
@@ -571,6 +581,7 @@ declare const nodeComponents: {
571
581
  data: react.NamedExoticComponent<DataNode>;
572
582
  view: react.NamedExoticComponent<ViewNode>;
573
583
  actor: react.NamedExoticComponent<ActorNode>;
584
+ field: react.NamedExoticComponent<FieldNode>;
574
585
  custom: react.NamedExoticComponent<any>;
575
586
  domain: react.NamedExoticComponent<any>;
576
587
  entity: react.NamedExoticComponent<any>;
@@ -581,12 +592,7 @@ declare const nodeComponents: {
581
592
  dataProduct: react.NamedExoticComponent<DataProductNode>;
582
593
  externalSystem2: react.NamedExoticComponent<any>;
583
594
  };
584
- declare const nodeConfigs: {
585
- event: NodeConfiguration;
586
- data: NodeConfiguration;
587
- actor: NodeConfiguration;
588
- externalSystem: NodeConfiguration;
589
- };
595
+ declare const nodeConfigs: Record<string, NodeConfiguration>;
590
596
 
591
597
  interface EdgeData {
592
598
  message?: {
@@ -669,4 +675,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
669
675
  edges: Edge[];
670
676
  };
671
677
 
672
- 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 };
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$m 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$n 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$l: react__default.NamedExoticComponent<StepWalkthroughProps>;
398
+ declare const _default$n: react__default.NamedExoticComponent<StepWalkthroughProps>;
399
399
 
400
400
  interface FocusModeModalProps {
401
401
  isOpen: boolean;
@@ -412,7 +412,7 @@ interface NodeContextMenuProps {
412
412
  items: ContextMenuItem[];
413
413
  children: React.ReactNode;
414
414
  }
415
- declare const _default$k: react.NamedExoticComponent<NodeContextMenuProps>;
415
+ declare const _default$m: react.NamedExoticComponent<NodeContextMenuProps>;
416
416
 
417
417
  type DataProductNodeData = EventCatalogResource & {
418
418
  dataProduct: {
@@ -429,7 +429,17 @@ type DataProductNodeData = EventCatalogResource & {
429
429
  };
430
430
  };
431
431
  type DataProductNode = Node<DataProductNodeData, "data-product">;
432
- declare const _default$j: react.NamedExoticComponent<DataProductNode>;
432
+ declare const _default$l: react.NamedExoticComponent<DataProductNode>;
433
+
434
+ type FieldNodeData = {
435
+ name: string;
436
+ type?: string;
437
+ mode?: "simple" | "full";
438
+ };
439
+ type FieldNode = Node<FieldNodeData, "field">;
440
+ declare const _default$k: react.NamedExoticComponent<FieldNode>;
441
+
442
+ declare const _default$j: NodeConfiguration;
433
443
 
434
444
  type ActorNodeData = EventCatalogResource & {
435
445
  name: string;
@@ -571,6 +581,7 @@ declare const nodeComponents: {
571
581
  data: react.NamedExoticComponent<DataNode>;
572
582
  view: react.NamedExoticComponent<ViewNode>;
573
583
  actor: react.NamedExoticComponent<ActorNode>;
584
+ field: react.NamedExoticComponent<FieldNode>;
574
585
  custom: react.NamedExoticComponent<any>;
575
586
  domain: react.NamedExoticComponent<any>;
576
587
  entity: react.NamedExoticComponent<any>;
@@ -581,12 +592,7 @@ declare const nodeComponents: {
581
592
  dataProduct: react.NamedExoticComponent<DataProductNode>;
582
593
  externalSystem2: react.NamedExoticComponent<any>;
583
594
  };
584
- declare const nodeConfigs: {
585
- event: NodeConfiguration;
586
- data: NodeConfiguration;
587
- actor: NodeConfiguration;
588
- externalSystem: NodeConfiguration;
589
- };
595
+ declare const nodeConfigs: Record<string, NodeConfiguration>;
590
596
 
591
597
  interface EdgeData {
592
598
  message?: {
@@ -669,4 +675,4 @@ declare function layoutGraph(nodes: GraphNode[], edges: GraphEdge[], options?: {
669
675
  edges: Edge[];
670
676
  };
671
677
 
672
- 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 };
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$m 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$n 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 };