@eventcatalog/visualiser 5.1.2 → 5.2.1
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/{chunk-RHE5IMXC.mjs → chunk-QQUJTD6O.mjs} +1856 -1326
- package/dist/chunk-QQUJTD6O.mjs.map +1 -0
- package/dist/index.d.mts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +1701 -1417
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/node-card.css +262 -0
- package/dist/studio.css +8 -36
- package/dist/studio.d.mts +263 -127
- package/dist/studio.mjs +1016 -1192
- package/dist/studio.mjs.map +1 -1
- package/dist/styles-core.css +283 -9
- package/dist/styles.css +283 -9
- package/package.json +2 -2
- package/dist/chunk-RHE5IMXC.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _xyflow_react from '@xyflow/react';
|
|
2
|
-
import { Node, Connection, MarkerType, Edge,
|
|
2
|
+
import { Node, Connection, MarkerType, Edge, NodeProps, EdgeProps, ReactFlowJsonObject } from '@xyflow/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { C as CopiedEdgeRoute } from './elk-layout-CpbZ6hB9.mjs';
|
|
5
5
|
import * as react from 'react';
|
|
@@ -415,6 +415,7 @@ interface NodeGraphProps {
|
|
|
415
415
|
linkTo?: "docs" | "visualiser";
|
|
416
416
|
includeKey?: boolean;
|
|
417
417
|
footerLabel?: string;
|
|
418
|
+
/** @deprecated Does nothing: nodes open their diagram when `getNodeDiagramUrl` gives one */
|
|
418
419
|
linksToVisualiser?: boolean;
|
|
419
420
|
links?: {
|
|
420
421
|
label: string;
|
|
@@ -477,6 +478,7 @@ interface NodeGraphProps {
|
|
|
477
478
|
onNodeClick?: (node: Node) => void;
|
|
478
479
|
onBuildUrl?: (path: string) => string;
|
|
479
480
|
onNavigate?: (url: string) => void;
|
|
481
|
+
getNodeDiagramUrl?: (node: Node) => string | undefined;
|
|
480
482
|
onSaveLayout?: (resourceKey: string, positions: Record<string, {
|
|
481
483
|
x: number;
|
|
482
484
|
y: number;
|
|
@@ -485,7 +487,7 @@ interface NodeGraphProps {
|
|
|
485
487
|
/** Starts a Studio canvas from what the diagram shows (the menu has "Open in Studio" when set) */
|
|
486
488
|
onOpenInStudio?: (request: OpenInStudioRequest) => void;
|
|
487
489
|
}
|
|
488
|
-
declare const NodeGraph: ({ id, nodes: nodesProp, edges: edgesProp, graph, title: titleProp, href, linkTo, hrefLabel, includeKey: includeKeyProp, footerLabel,
|
|
490
|
+
declare const NodeGraph: ({ id, nodes: nodesProp, edges: edgesProp, graph, title: titleProp, href, linkTo, hrefLabel, includeKey: includeKeyProp, footerLabel, links, syncRenderModeWithUrl, initialLevel, mode, portalId, showFlowWalkthrough, showSearch: showSearchProp, showMenu, compactSearch, hideAttribution, zoomOnScroll, designId, isChatEnabled, maxTextSize, isDevMode, resourceKey, animated: animatedProp, disableMessageAnimation, overviewGraph, hiddenMessagesGraph, preferenceScope, swimlanes, focusNodeId, focusRequestId, fitRequestId, onNodeClick, onBuildUrl, onNavigate, getNodeDiagramUrl, onSaveLayout, onResetLayout, onOpenInStudio, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
|
|
489
491
|
|
|
490
492
|
type CanvasLevel = {
|
|
491
493
|
description: string;
|
|
@@ -687,17 +689,6 @@ interface StepWalkthroughProps {
|
|
|
687
689
|
}
|
|
688
690
|
declare const _default$x: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
689
691
|
|
|
690
|
-
interface FocusModeModalProps {
|
|
691
|
-
isOpen: boolean;
|
|
692
|
-
onClose: () => void;
|
|
693
|
-
initialNodeId: string | null;
|
|
694
|
-
nodes: Node[];
|
|
695
|
-
edges: Edge[];
|
|
696
|
-
nodeTypes: NodeTypes;
|
|
697
|
-
edgeTypes: EdgeTypes;
|
|
698
|
-
}
|
|
699
|
-
declare const FocusModeModal: react__default.FC<FocusModeModalProps>;
|
|
700
|
-
|
|
701
692
|
interface NodeContextMenuProps {
|
|
702
693
|
items: ContextMenuItem[];
|
|
703
694
|
children: React.ReactNode;
|
|
@@ -1151,4 +1142,4 @@ declare const memoNode: <P extends object>(Component: ComponentType<P>) => react
|
|
|
1151
1142
|
*/
|
|
1152
1143
|
declare const pauseEdgeAnimations: (canvas: Element | null, paused: boolean) => void | undefined;
|
|
1153
1144
|
|
|
1154
|
-
export { ACTOR, AGENT, AGENT_TOOL, _default$p as Actor, type ActorNode, type Agent$1 as Agent, _default$j as AgentNode, type AgentTool$1 as AgentTool, _default$k as AgentToolNode, type AgentToolNode as AgentToolNodeType, AnimatedMessageEdge, type BaseNodeData, CHANNEL, COMMAND, type Channel, type ChannelNode, _default$g as Command, type CommandNode, _default$8 as ContextActorNode, type ContextMenuItem, _default$c as CustomNode, DATA, DIAGRAM_FIT_VIEW_OPTIONS, DIAGRAM_MENU, DIAGRAM_MENU_BUTTON, DIAGRAM_MENU_BUTTON_COMPACT, DIAGRAM_MENU_BUTTON_ICON, DIAGRAM_MENU_BUTTON_ICON_COMPACT, DIAGRAM_MENU_ITEM, DIAGRAM_MENU_ITEM_ICON, DIAGRAM_MENU_SEPARATOR, DIAGRAM_MENU_TITLE, type Data, type DataNode, _default$t as DataProductNode, DiagramBackground, DiagramMiniMap, _default$a as DomainCardNode, _default$b as DomainNode, type DslGraph, ENTITY_TARGET_HANDLE_ID, EVENT, type EdgeType, _default$d as EntityNode, type EntityProperty, _default$f as Event, type EventCatalogResource, type EventNode, type ExternalSystem, _default$2 as ExternalSystem2Node, type ExternalSystemNode, _default$r as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$s as FlowExpandedNode, type FlowGroupBy, type FlowGroupStyle, _default$6 as FlowNode,
|
|
1145
|
+
export { ACTOR, AGENT, AGENT_TOOL, _default$p as Actor, type ActorNode, type Agent$1 as Agent, _default$j as AgentNode, type AgentTool$1 as AgentTool, _default$k as AgentToolNode, type AgentToolNode as AgentToolNodeType, AnimatedMessageEdge, type BaseNodeData, CHANNEL, COMMAND, type Channel, type ChannelNode, _default$g as Command, type CommandNode, _default$8 as ContextActorNode, type ContextMenuItem, _default$c as CustomNode, DATA, DIAGRAM_FIT_VIEW_OPTIONS, DIAGRAM_MENU, DIAGRAM_MENU_BUTTON, DIAGRAM_MENU_BUTTON_COMPACT, DIAGRAM_MENU_BUTTON_ICON, DIAGRAM_MENU_BUTTON_ICON_COMPACT, DIAGRAM_MENU_ITEM, DIAGRAM_MENU_ITEM_ICON, DIAGRAM_MENU_SEPARATOR, DIAGRAM_MENU_TITLE, type Data, type DataNode, _default$t as DataProductNode, DiagramBackground, DiagramMiniMap, _default$a as DomainCardNode, _default$b as DomainNode, type DslGraph, ENTITY_TARGET_HANDLE_ID, EVENT, type EdgeType, _default$d as EntityNode, type EntityProperty, _default$f as Event, type EventCatalogResource, type EventNode, type ExternalSystem, _default$2 as ExternalSystem2Node, type ExternalSystemNode, _default$r as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$s as FlowExpandedNode, type FlowGroupBy, type FlowGroupStyle, _default$6 as FlowNode, type GraphEdge, type GraphEdgeType, type GraphNode, _default$5 as GroupNode, LabelledDefaultEdge, LabelledSmoothStepEdge, LabelledStepEdge, type LegendEntry, LegendPanel, MESSAGE, MermaidView, type Message, _default$u as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$v as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$w as NodeContextMenu, NodeGraph, type NodeGraphProps, type NodeType, _default$l as Note, type NoteNode, NotesIndicator, type OpenInStudioRequest, OwnerIndicator, QUERY, _default$h as Query, type QueryNode, type RegisteredNode, SERVICE, _default$i as Service, type ServiceNode, type Service as ServiceType, _default$4 as StepNode, _default$x as StepWalkthrough, _default$7 as SystemGroupNode, _default$9 as SystemNode, Tip, TipProvider, Toolbar, ToolbarButton, ToolbarDivider, _default$3 as UserNode, VIEW, type View, type ViewNode, VisualiserSearch, type VisualiserSnapshot, type VisualizerCallbacks, type VisualizerLink, type VisualizerMode, ZoomLevel, _default$o as actorConfig, buildNodeData, createEdge, createNode, _default$n as dataNodeConfig, diagramNodeComponents, edgeTypes, _default$e as eventConfig, exportNodeGraphForStudio, _default$m as externalSystemConfig, _default$q as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getEdgeLabelSize, getLegend, getNestedEntityProperties, getPropertyTypeLabel, isFlowGroupBy, layoutGraph, memoNode, nodeComponents, nodeConfigs, normalizeOwners, pauseEdgeAnimations };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _xyflow_react from '@xyflow/react';
|
|
2
|
-
import { Node, Connection, MarkerType, Edge,
|
|
2
|
+
import { Node, Connection, MarkerType, Edge, NodeProps, EdgeProps, ReactFlowJsonObject } from '@xyflow/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { C as CopiedEdgeRoute } from './export-mermaid-xL98eL1l.js';
|
|
5
5
|
export { M as MermaidExportOptions, c as convertToMermaid } from './export-mermaid-xL98eL1l.js';
|
|
@@ -415,6 +415,7 @@ interface NodeGraphProps {
|
|
|
415
415
|
linkTo?: "docs" | "visualiser";
|
|
416
416
|
includeKey?: boolean;
|
|
417
417
|
footerLabel?: string;
|
|
418
|
+
/** @deprecated Does nothing: nodes open their diagram when `getNodeDiagramUrl` gives one */
|
|
418
419
|
linksToVisualiser?: boolean;
|
|
419
420
|
links?: {
|
|
420
421
|
label: string;
|
|
@@ -477,6 +478,7 @@ interface NodeGraphProps {
|
|
|
477
478
|
onNodeClick?: (node: Node) => void;
|
|
478
479
|
onBuildUrl?: (path: string) => string;
|
|
479
480
|
onNavigate?: (url: string) => void;
|
|
481
|
+
getNodeDiagramUrl?: (node: Node) => string | undefined;
|
|
480
482
|
onSaveLayout?: (resourceKey: string, positions: Record<string, {
|
|
481
483
|
x: number;
|
|
482
484
|
y: number;
|
|
@@ -485,7 +487,7 @@ interface NodeGraphProps {
|
|
|
485
487
|
/** Starts a Studio canvas from what the diagram shows (the menu has "Open in Studio" when set) */
|
|
486
488
|
onOpenInStudio?: (request: OpenInStudioRequest) => void;
|
|
487
489
|
}
|
|
488
|
-
declare const NodeGraph: ({ id, nodes: nodesProp, edges: edgesProp, graph, title: titleProp, href, linkTo, hrefLabel, includeKey: includeKeyProp, footerLabel,
|
|
490
|
+
declare const NodeGraph: ({ id, nodes: nodesProp, edges: edgesProp, graph, title: titleProp, href, linkTo, hrefLabel, includeKey: includeKeyProp, footerLabel, links, syncRenderModeWithUrl, initialLevel, mode, portalId, showFlowWalkthrough, showSearch: showSearchProp, showMenu, compactSearch, hideAttribution, zoomOnScroll, designId, isChatEnabled, maxTextSize, isDevMode, resourceKey, animated: animatedProp, disableMessageAnimation, overviewGraph, hiddenMessagesGraph, preferenceScope, swimlanes, focusNodeId, focusRequestId, fitRequestId, onNodeClick, onBuildUrl, onNavigate, getNodeDiagramUrl, onSaveLayout, onResetLayout, onOpenInStudio, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
|
|
489
491
|
|
|
490
492
|
type CanvasLevel = {
|
|
491
493
|
description: string;
|
|
@@ -687,17 +689,6 @@ interface StepWalkthroughProps {
|
|
|
687
689
|
}
|
|
688
690
|
declare const _default$x: react__default.NamedExoticComponent<StepWalkthroughProps>;
|
|
689
691
|
|
|
690
|
-
interface FocusModeModalProps {
|
|
691
|
-
isOpen: boolean;
|
|
692
|
-
onClose: () => void;
|
|
693
|
-
initialNodeId: string | null;
|
|
694
|
-
nodes: Node[];
|
|
695
|
-
edges: Edge[];
|
|
696
|
-
nodeTypes: NodeTypes;
|
|
697
|
-
edgeTypes: EdgeTypes;
|
|
698
|
-
}
|
|
699
|
-
declare const FocusModeModal: react__default.FC<FocusModeModalProps>;
|
|
700
|
-
|
|
701
692
|
interface NodeContextMenuProps {
|
|
702
693
|
items: ContextMenuItem[];
|
|
703
694
|
children: React.ReactNode;
|
|
@@ -1151,4 +1142,4 @@ declare const memoNode: <P extends object>(Component: ComponentType<P>) => react
|
|
|
1151
1142
|
*/
|
|
1152
1143
|
declare const pauseEdgeAnimations: (canvas: Element | null, paused: boolean) => void | undefined;
|
|
1153
1144
|
|
|
1154
|
-
export { ACTOR, AGENT, AGENT_TOOL, _default$p as Actor, type ActorNode, type Agent$1 as Agent, _default$j as AgentNode, type AgentTool$1 as AgentTool, _default$k as AgentToolNode, type AgentToolNode as AgentToolNodeType, AnimatedMessageEdge, type BaseNodeData, CHANNEL, COMMAND, type Channel, type ChannelNode, _default$g as Command, type CommandNode, _default$8 as ContextActorNode, type ContextMenuItem, _default$c as CustomNode, DATA, DIAGRAM_FIT_VIEW_OPTIONS, DIAGRAM_MENU, DIAGRAM_MENU_BUTTON, DIAGRAM_MENU_BUTTON_COMPACT, DIAGRAM_MENU_BUTTON_ICON, DIAGRAM_MENU_BUTTON_ICON_COMPACT, DIAGRAM_MENU_ITEM, DIAGRAM_MENU_ITEM_ICON, DIAGRAM_MENU_SEPARATOR, DIAGRAM_MENU_TITLE, type Data, type DataNode, _default$t as DataProductNode, DiagramBackground, DiagramMiniMap, _default$a as DomainCardNode, _default$b as DomainNode, type DslGraph, ENTITY_TARGET_HANDLE_ID, EVENT, type EdgeType, _default$d as EntityNode, type EntityProperty, _default$f as Event, type EventCatalogResource, type EventNode, type ExternalSystem, _default$2 as ExternalSystem2Node, type ExternalSystemNode, _default$r as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$s as FlowExpandedNode, type FlowGroupBy, type FlowGroupStyle, _default$6 as FlowNode,
|
|
1145
|
+
export { ACTOR, AGENT, AGENT_TOOL, _default$p as Actor, type ActorNode, type Agent$1 as Agent, _default$j as AgentNode, type AgentTool$1 as AgentTool, _default$k as AgentToolNode, type AgentToolNode as AgentToolNodeType, AnimatedMessageEdge, type BaseNodeData, CHANNEL, COMMAND, type Channel, type ChannelNode, _default$g as Command, type CommandNode, _default$8 as ContextActorNode, type ContextMenuItem, _default$c as CustomNode, DATA, DIAGRAM_FIT_VIEW_OPTIONS, DIAGRAM_MENU, DIAGRAM_MENU_BUTTON, DIAGRAM_MENU_BUTTON_COMPACT, DIAGRAM_MENU_BUTTON_ICON, DIAGRAM_MENU_BUTTON_ICON_COMPACT, DIAGRAM_MENU_ITEM, DIAGRAM_MENU_ITEM_ICON, DIAGRAM_MENU_SEPARATOR, DIAGRAM_MENU_TITLE, type Data, type DataNode, _default$t as DataProductNode, DiagramBackground, DiagramMiniMap, _default$a as DomainCardNode, _default$b as DomainNode, type DslGraph, ENTITY_TARGET_HANDLE_ID, EVENT, type EdgeType, _default$d as EntityNode, type EntityProperty, _default$f as Event, type EventCatalogResource, type EventNode, type ExternalSystem, _default$2 as ExternalSystem2Node, type ExternalSystemNode, _default$r as Field, type FieldNode as FieldNodeType, _default$1 as FlowEdge, _default$s as FlowExpandedNode, type FlowGroupBy, type FlowGroupStyle, _default$6 as FlowNode, type GraphEdge, type GraphEdgeType, type GraphNode, _default$5 as GroupNode, LabelledDefaultEdge, LabelledSmoothStepEdge, LabelledStepEdge, type LegendEntry, LegendPanel, MESSAGE, MermaidView, type Message, _default$u as MessageGroupExpandedNode, type MessageGroupExpandedNodeData, _default$v as MessageGroupNode, type MessageGroupNodeData, type MessageGroupNode as MessageGroupNodeType, _default as MultilineEdgeLabel, type NodeCategory, type NodeConfiguration, _default$w as NodeContextMenu, NodeGraph, type NodeGraphProps, type NodeType, _default$l as Note, type NoteNode, NotesIndicator, type OpenInStudioRequest, OwnerIndicator, QUERY, _default$h as Query, type QueryNode, type RegisteredNode, SERVICE, _default$i as Service, type ServiceNode, type Service as ServiceType, _default$4 as StepNode, _default$x as StepWalkthrough, _default$7 as SystemGroupNode, _default$9 as SystemNode, Tip, TipProvider, Toolbar, ToolbarButton, ToolbarDivider, _default$3 as UserNode, VIEW, type View, type ViewNode, VisualiserSearch, type VisualiserSnapshot, type VisualizerCallbacks, type VisualizerLink, type VisualizerMode, ZoomLevel, _default$o as actorConfig, buildNodeData, createEdge, createNode, _default$n as dataNodeConfig, diagramNodeComponents, edgeTypes, _default$e as eventConfig, exportNodeGraphForStudio, _default$m as externalSystemConfig, _default$q as fieldConfig, generateIdForNode, generateIdForNodes, generatedIdForEdge, getColorFromString, getEdgeLabelForMessageAsSource, getEdgeLabelForServiceAsTarget, getEdgeLabelSize, getLegend, getNestedEntityProperties, getPropertyTypeLabel, isFlowGroupBy, layoutGraph, memoNode, nodeComponents, nodeConfigs, normalizeOwners, pauseEdgeAnimations };
|