@eventcatalog/core 5.5.0 → 5.5.2
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/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/catalog-runtime.cjs +1 -1
- package/dist/{chunk-RDF2OMEF.js → chunk-5HSYALWK.js} +1 -1
- package/dist/{chunk-754U4T7K.js → chunk-7ZEKF2LA.js} +1 -1
- package/dist/{chunk-3TREOJOK.js → chunk-CNN747RO.js} +1 -1
- package/dist/{chunk-UBDTKNFS.js → chunk-MC4F3VVM.js} +1 -1
- package/dist/{chunk-WPFA7AGD.js → chunk-WG6ZK6L3.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +2 -2
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/SchemaExplorer/AvroSchemaViewer.tsx +5 -3
- package/eventcatalog/src/components/SchemaExplorer/JSONSchemaViewer.tsx +6 -5
- package/eventcatalog/src/components/SchemaExplorer/ProtobufSchemaViewer.tsx +6 -5
- package/eventcatalog/src/features/mcp/apps/architecture-diagram/view.tsx +8 -2
- package/eventcatalog/src/features/mcp/apps/canvas/view.tsx +2 -2
- package/eventcatalog/src/features/mcp/apps/generated/canvas.html +71 -71
- package/eventcatalog/src/features/mcp/apps/generated/viewer.html +72 -72
- package/eventcatalog/src/features/mcp/apps/schema-viewer/view.tsx +2 -1
- package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +24 -5
- package/eventcatalog/src/features/mcp/mcp-apps.ts +7 -2
- package/eventcatalog/src/features/mcp/mcp-server.ts +7 -4
- package/eventcatalog/src/features/mcp/schema-viewer.ts +3 -3
- package/eventcatalog/src/features/studio/server/canvas-mcp.ts +3 -1
- package/eventcatalog/src/features/studio/tool-sync.ts +67 -3
- package/eventcatalog/src/features/tools/catalog-tools.ts +135 -74
- package/package.json +5 -5
|
@@ -169,7 +169,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
169
169
|
var import_os = __toESM(require("os"), 1);
|
|
170
170
|
|
|
171
171
|
// package.json
|
|
172
|
-
var version = "5.5.
|
|
172
|
+
var version = "5.5.2";
|
|
173
173
|
|
|
174
174
|
// src/constants.ts
|
|
175
175
|
var VERSION = version;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CNN747RO.js";
|
|
4
4
|
import "../chunk-AD7CL772.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-5HSYALWK.js";
|
|
6
6
|
import "../chunk-YRZK7HKX.js";
|
|
7
7
|
import "../chunk-CA6WCQ2T.js";
|
|
8
8
|
import "../chunk-CPW6G62V.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-WG6ZK6L3.js";
|
|
10
10
|
import "../chunk-4G7FSRPN.js";
|
|
11
11
|
export {
|
|
12
12
|
log_build_default as default
|
package/dist/catalog-runtime.cjs
CHANGED
|
@@ -36,7 +36,7 @@ __export(catalog_runtime_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(catalog_runtime_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.
|
|
39
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.31_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
|
|
40
40
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
41
41
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
42
42
|
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
|
|
25
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.
|
|
25
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.31_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
|
|
26
26
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
27
27
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
28
28
|
|
|
@@ -174,7 +174,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
174
174
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
175
175
|
|
|
176
176
|
// package.json
|
|
177
|
-
var version = "5.5.
|
|
177
|
+
var version = "5.5.2";
|
|
178
178
|
|
|
179
179
|
// src/constants.ts
|
|
180
180
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import "./chunk-CA4U2JP7.js";
|
|
8
8
|
import {
|
|
9
9
|
log_build_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CNN747RO.js";
|
|
11
11
|
import {
|
|
12
12
|
getLicenseStatus,
|
|
13
13
|
printLicenseStatus
|
|
14
14
|
} from "./chunk-AD7CL772.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5HSYALWK.js";
|
|
16
16
|
import "./chunk-YRZK7HKX.js";
|
|
17
17
|
import "./chunk-CA6WCQ2T.js";
|
|
18
18
|
import "./chunk-CPW6G62V.js";
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
} from "./chunk-NKNOXQ62.js";
|
|
40
40
|
import {
|
|
41
41
|
generate
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7ZEKF2LA.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MC4F3VVM.js";
|
|
46
46
|
import {
|
|
47
47
|
resolve_catalog_dependencies_default
|
|
48
48
|
} from "./chunk-PD7KTSYN.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-LFQJXLHG.js";
|
|
80
80
|
import {
|
|
81
81
|
VERSION
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WG6ZK6L3.js";
|
|
83
83
|
import {
|
|
84
84
|
getEventCatalogConfigFile,
|
|
85
85
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
|
@@ -105,7 +105,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
105
105
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
106
106
|
|
|
107
107
|
// package.json
|
|
108
|
-
var version = "5.5.
|
|
108
|
+
var version = "5.5.2";
|
|
109
109
|
|
|
110
110
|
// src/constants.ts
|
|
111
111
|
var VERSION = version;
|
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7ZEKF2LA.js";
|
|
4
|
+
import "./chunk-MC4F3VVM.js";
|
|
5
|
+
import "./chunk-WG6ZK6L3.js";
|
|
6
6
|
import "./chunk-4G7FSRPN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useRef } from 'react';
|
|
2
|
+
import { ChevronRightIcon } from '@heroicons/react/20/solid';
|
|
2
3
|
|
|
3
4
|
interface AvroSchemaViewerProps {
|
|
4
5
|
schema: any;
|
|
@@ -124,14 +125,15 @@ const AvroField = ({ field, level, expand, showRequired }: AvroFieldProps) => {
|
|
|
124
125
|
<div className={`avro-field-container mb-2 border-l border-[rgb(var(--ec-page-border))] ${indentClass}`}>
|
|
125
126
|
<div className="flex space-x-2">
|
|
126
127
|
{/* Collapse/Expand button */}
|
|
127
|
-
<div className="flex-shrink-0 w-4
|
|
128
|
+
<div className="flex-shrink-0 w-4">
|
|
128
129
|
{hasNested ? (
|
|
129
130
|
<button
|
|
130
131
|
onClick={() => setIsExpanded(!isExpanded)}
|
|
131
|
-
className="avro-field-toggle text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))]
|
|
132
|
+
className="avro-field-toggle flex h-5 w-4 items-center justify-center text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))]"
|
|
132
133
|
aria-expanded={isExpanded}
|
|
134
|
+
aria-label={`Toggle ${field.name}`}
|
|
133
135
|
>
|
|
134
|
-
<
|
|
136
|
+
<ChevronRightIcon className={`h-3.5 w-3.5 transition-transform ${isExpanded ? 'rotate-90' : ''}`} />
|
|
135
137
|
</button>
|
|
136
138
|
) : null}
|
|
137
139
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useMemo, useId } from 'react';
|
|
2
|
+
import { ChevronRightIcon } from '@heroicons/react/20/solid';
|
|
2
3
|
|
|
3
4
|
interface JSONSchemaViewerProps {
|
|
4
5
|
schema: any;
|
|
@@ -323,20 +324,20 @@ const SchemaProperty = ({ name, details, isRequired, level, isListItem = false,
|
|
|
323
324
|
type="button"
|
|
324
325
|
aria-expanded={isExpanded}
|
|
325
326
|
aria-controls={contentId}
|
|
327
|
+
aria-label={`Toggle ${name}`}
|
|
326
328
|
onClick={() => setIsExpanded(!isExpanded)}
|
|
327
|
-
className="property-toggle text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))]
|
|
329
|
+
className="property-toggle flex h-5 w-4 flex-shrink-0 items-center justify-center text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))] focus:outline-hidden"
|
|
328
330
|
>
|
|
329
|
-
<
|
|
330
|
-
<span className={`icon-expanded font-mono text-xs ${!isExpanded ? 'hidden' : ''}`}>v</span>
|
|
331
|
+
<ChevronRightIcon className={`h-3.5 w-3.5 transition-transform ${isExpanded ? 'rotate-90' : ''}`} />
|
|
331
332
|
</button>
|
|
332
333
|
) : (
|
|
333
|
-
<div className="w-
|
|
334
|
+
<div className="w-4 h-5 flex-shrink-0" />
|
|
334
335
|
)}
|
|
335
336
|
|
|
336
337
|
<div className="flex-grow">
|
|
337
338
|
<div className="-mx-1 rounded px-1 transition-colors hover:bg-[rgb(var(--ec-content-hover))]">
|
|
338
339
|
<div className="flex justify-between items-baseline">
|
|
339
|
-
<div>
|
|
340
|
+
<div className="text-sm">
|
|
340
341
|
<span className="font-semibold text-[rgb(var(--ec-page-text))] text-sm">{name}</span>
|
|
341
342
|
<span className="ml-1.5 text-[rgb(var(--ec-accent))] font-mono text-xs">
|
|
342
343
|
{hasVariants ? (details.variantType === 'anyOf' ? 'anyOf' : 'oneOf') : formatType(details.type)}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useMemo } from 'react';
|
|
2
|
+
import { ChevronRightIcon } from '@heroicons/react/20/solid';
|
|
2
3
|
import type { ProtobufSchema, ProtobufMessage, ProtobufEnum, ProtobufField } from '@utils/protobuf-schema';
|
|
3
4
|
import {
|
|
4
5
|
formatProtobufOptionValue,
|
|
@@ -144,20 +145,20 @@ const ProtobufFieldRow = ({ field, level, expand, showRequired, registry, packag
|
|
|
144
145
|
<button
|
|
145
146
|
type="button"
|
|
146
147
|
aria-expanded={isExpanded}
|
|
148
|
+
aria-label={`Toggle ${field.name}`}
|
|
147
149
|
onClick={() => setIsExpanded(!isExpanded)}
|
|
148
|
-
className="proto-field-toggle text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))]
|
|
150
|
+
className="proto-field-toggle flex h-5 w-4 flex-shrink-0 items-center justify-center text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))] focus:outline-hidden"
|
|
149
151
|
>
|
|
150
|
-
<
|
|
151
|
-
<span className={`icon-expanded font-mono text-xs ${!isExpanded ? 'hidden' : ''}`}>v</span>
|
|
152
|
+
<ChevronRightIcon className={`h-3.5 w-3.5 transition-transform ${isExpanded ? 'rotate-90' : ''}`} />
|
|
152
153
|
</button>
|
|
153
154
|
) : (
|
|
154
|
-
<div className="w-
|
|
155
|
+
<div className="w-4 h-5 flex-shrink-0" />
|
|
155
156
|
)}
|
|
156
157
|
|
|
157
158
|
<div className="flex-grow">
|
|
158
159
|
<div className="-mx-1 rounded px-1 transition-colors hover:bg-[rgb(var(--ec-content-hover))]">
|
|
159
160
|
<div className="flex justify-between items-baseline">
|
|
160
|
-
<div>
|
|
161
|
+
<div className="text-sm">
|
|
161
162
|
<span className="proto-field-name font-semibold text-[rgb(var(--ec-page-text))] text-sm">{field.name}</span>
|
|
162
163
|
<span
|
|
163
164
|
className="ml-1.5 text-[rgb(var(--ec-accent))] font-mono text-xs"
|
|
@@ -16,7 +16,7 @@ import type { ArchitectureDiagramPayload } from './shared';
|
|
|
16
16
|
const LEVEL_OF_DETAIL = { overview: 1, services: 2, full: 3 } as const;
|
|
17
17
|
import { NodeChat, describeNode, describeNodeForModel, type SelectedNode } from './node-chat';
|
|
18
18
|
import { parseAskLink, parseDiagramLink, withAskMenuItem, type DiagramLink } from './links';
|
|
19
|
-
import { getToolResultPayload } from '../shared/app-view';
|
|
19
|
+
import { fullscreenStyle, getToolResultPayload } from '../shared/app-view';
|
|
20
20
|
import { RESOURCE_TYPE_LABELS } from '../shared/resource-types';
|
|
21
21
|
import { VIEWER_META_KEY, VIEWER_VIEW_TOOL, type ViewerPayload } from '../viewer/shared';
|
|
22
22
|
|
|
@@ -377,7 +377,13 @@ export function ArchitectureDiagramView({ app, payload: toolPayload, hostContext
|
|
|
377
377
|
const graphId = `mcp-${resource.collection}-${resource.id}-${resource.version}`;
|
|
378
378
|
|
|
379
379
|
return (
|
|
380
|
-
<div
|
|
380
|
+
<div
|
|
381
|
+
style={{
|
|
382
|
+
...(isFullscreen ? fullscreenStyle(hostContext) : { height: INLINE_HEIGHT }),
|
|
383
|
+
display: 'flex',
|
|
384
|
+
flexDirection: 'column',
|
|
385
|
+
}}
|
|
386
|
+
>
|
|
381
387
|
<div className="ec-mcp-header">
|
|
382
388
|
<div className="ec-mcp-title">
|
|
383
389
|
{diagrams.length > 1 && (
|
|
@@ -17,7 +17,7 @@ import visualiserStyles from '@eventcatalog/visualiser/styles.css?inline';
|
|
|
17
17
|
import StudioDesigner, { type SelectedNode } from '@features/studio/components/StudioDesigner';
|
|
18
18
|
import { getAgent } from '@features/studio/agents';
|
|
19
19
|
import { CANVAS_STATUS_LOOK, STATUS } from '@eventcatalog/visualiser/studio';
|
|
20
|
-
import { getToolResultPayload, mountView, useMcpAppView } from '../shared/app-view';
|
|
20
|
+
import { fullscreenStyle, getToolResultPayload, mountView, useMcpAppView } from '../shared/app-view';
|
|
21
21
|
import {
|
|
22
22
|
CANVAS_CATALOG_TOOL,
|
|
23
23
|
CANVAS_META_KEY,
|
|
@@ -219,7 +219,7 @@ function CanvasApp() {
|
|
|
219
219
|
const agentOf = (view: CanvasView) => view.agent ?? getAgent(undefined, hostName);
|
|
220
220
|
|
|
221
221
|
return (
|
|
222
|
-
<div className="flex flex-col" style={
|
|
222
|
+
<div className="flex flex-col" style={fullscreen ? fullscreenStyle(hostContext) : { height: INLINE_HEIGHT }}>
|
|
223
223
|
<div className="flex items-center justify-between border-b px-3 py-1.5 border-[rgb(var(--ec-page-border))]">
|
|
224
224
|
<span className="flex min-w-0 items-center gap-1">
|
|
225
225
|
{canvas && (
|