@eventcatalog/visualiser 3.14.1 → 3.15.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/index.d.mts CHANGED
@@ -29,6 +29,12 @@ type Message = {
29
29
  draft?: boolean;
30
30
  schema?: string;
31
31
  notes?: Note[];
32
+ /** HTTP method (e.g. GET, POST, PUT, DELETE) */
33
+ method?: string;
34
+ /** API path (e.g. /pets, /users/:id) */
35
+ path?: string;
36
+ /** HTTP status codes (e.g. [200, 401, 500]) */
37
+ statusCodes?: number[];
32
38
  };
33
39
  /**
34
40
  * Note attached to a resource
@@ -51,6 +57,7 @@ type Service = {
51
57
  deprecated?: boolean;
52
58
  draft?: boolean;
53
59
  notes?: Note[];
60
+ specifications?: unknown;
54
61
  };
55
62
  /**
56
63
  * Channel type
@@ -66,6 +73,8 @@ type Channel = {
66
73
  deprecated?: boolean;
67
74
  draft?: boolean;
68
75
  notes?: Note[];
76
+ /** Delivery guarantee (e.g. at-most-once, at-least-once, exactly-once) */
77
+ deliveryGuarantee?: string;
69
78
  };
70
79
  /**
71
80
  * External System type
@@ -267,6 +276,12 @@ interface NodeGraphProps {
267
276
  resourceKey?: string;
268
277
  /** Controls whether message flow animation is enabled. When set, overrides URL params and localStorage. */
269
278
  animated?: boolean;
279
+ /** When set, the graph will zoom to this node id. */
280
+ focusNodeId?: string;
281
+ /** Optional token to force repeated focus for the same node id. */
282
+ focusRequestId?: number;
283
+ /** Optional token to trigger fit-to-screen behavior. */
284
+ fitRequestId?: number;
270
285
  onNodeClick?: (node: Node) => void;
271
286
  onBuildUrl?: (path: string) => string;
272
287
  onNavigate?: (url: string) => void;
@@ -276,7 +291,7 @@ interface NodeGraphProps {
276
291
  }>) => Promise<boolean>;
277
292
  onResetLayout?: (resourceKey: string) => Promise<boolean>;
278
293
  }
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;
294
+ 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, focusNodeId, focusRequestId, fitRequestId, onNodeClick, onBuildUrl, onNavigate, onSaveLayout, onResetLayout, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
280
295
 
281
296
  interface MermaidViewProps {
282
297
  nodes: Node[];
package/dist/index.d.ts CHANGED
@@ -29,6 +29,12 @@ type Message = {
29
29
  draft?: boolean;
30
30
  schema?: string;
31
31
  notes?: Note[];
32
+ /** HTTP method (e.g. GET, POST, PUT, DELETE) */
33
+ method?: string;
34
+ /** API path (e.g. /pets, /users/:id) */
35
+ path?: string;
36
+ /** HTTP status codes (e.g. [200, 401, 500]) */
37
+ statusCodes?: number[];
32
38
  };
33
39
  /**
34
40
  * Note attached to a resource
@@ -51,6 +57,7 @@ type Service = {
51
57
  deprecated?: boolean;
52
58
  draft?: boolean;
53
59
  notes?: Note[];
60
+ specifications?: unknown;
54
61
  };
55
62
  /**
56
63
  * Channel type
@@ -66,6 +73,8 @@ type Channel = {
66
73
  deprecated?: boolean;
67
74
  draft?: boolean;
68
75
  notes?: Note[];
76
+ /** Delivery guarantee (e.g. at-most-once, at-least-once, exactly-once) */
77
+ deliveryGuarantee?: string;
69
78
  };
70
79
  /**
71
80
  * External System type
@@ -267,6 +276,12 @@ interface NodeGraphProps {
267
276
  resourceKey?: string;
268
277
  /** Controls whether message flow animation is enabled. When set, overrides URL params and localStorage. */
269
278
  animated?: boolean;
279
+ /** When set, the graph will zoom to this node id. */
280
+ focusNodeId?: string;
281
+ /** Optional token to force repeated focus for the same node id. */
282
+ focusRequestId?: number;
283
+ /** Optional token to trigger fit-to-screen behavior. */
284
+ fitRequestId?: number;
270
285
  onNodeClick?: (node: Node) => void;
271
286
  onBuildUrl?: (path: string) => string;
272
287
  onNavigate?: (url: string) => void;
@@ -276,7 +291,7 @@ interface NodeGraphProps {
276
291
  }>) => Promise<boolean>;
277
292
  onResetLayout?: (resourceKey: string) => Promise<boolean>;
278
293
  }
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;
294
+ 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, focusNodeId, focusRequestId, fitRequestId, onNodeClick, onBuildUrl, onNavigate, onSaveLayout, onResetLayout, }: NodeGraphProps) => react_jsx_runtime.JSX.Element | null;
280
295
 
281
296
  interface MermaidViewProps {
282
297
  nodes: Node[];