@eventcatalog/core 5.5.0 → 5.5.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.
Files changed (31) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/catalog-runtime.cjs +1 -1
  6. package/dist/{chunk-3TREOJOK.js → chunk-6KR5ZLEQ.js} +1 -1
  7. package/dist/{chunk-UBDTKNFS.js → chunk-EBZQJP7F.js} +1 -1
  8. package/dist/{chunk-WPFA7AGD.js → chunk-GPIKYBQ5.js} +1 -1
  9. package/dist/{chunk-RDF2OMEF.js → chunk-GZLVDQPM.js} +1 -1
  10. package/dist/{chunk-754U4T7K.js → chunk-K5QKWVI3.js} +1 -1
  11. package/dist/constants.cjs +1 -1
  12. package/dist/constants.js +1 -1
  13. package/dist/eventcatalog.cjs +2 -2
  14. package/dist/eventcatalog.js +11 -11
  15. package/dist/federation/federate.js +3 -3
  16. package/dist/generate.cjs +1 -1
  17. package/dist/generate.js +3 -3
  18. package/dist/utils/cli-logger.cjs +1 -1
  19. package/dist/utils/cli-logger.js +2 -2
  20. package/eventcatalog/src/components/SchemaExplorer/AvroSchemaViewer.tsx +5 -3
  21. package/eventcatalog/src/components/SchemaExplorer/JSONSchemaViewer.tsx +6 -5
  22. package/eventcatalog/src/components/SchemaExplorer/ProtobufSchemaViewer.tsx +6 -5
  23. package/eventcatalog/src/features/mcp/apps/generated/canvas.html +71 -71
  24. package/eventcatalog/src/features/mcp/apps/generated/viewer.html +75 -75
  25. package/eventcatalog/src/features/mcp/mcp-apps.ts +1 -1
  26. package/eventcatalog/src/features/mcp/mcp-server.ts +5 -4
  27. package/eventcatalog/src/features/mcp/schema-viewer.ts +3 -3
  28. package/eventcatalog/src/features/studio/server/canvas-mcp.ts +1 -1
  29. package/eventcatalog/src/features/tools/catalog-tools.ts +135 -74
  30. package/package.json +6 -6
  31. package/dist/{chunk-QJ7KKN2D.js → chunk-NCEZDQSW.js} +7 -7
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "5.5.0";
39
+ var version = "5.5.1";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-RDF2OMEF.js";
3
+ } from "../chunk-GZLVDQPM.js";
4
4
  import "../chunk-CPW6G62V.js";
5
- import "../chunk-WPFA7AGD.js";
5
+ import "../chunk-GPIKYBQ5.js";
6
6
  export {
7
7
  raiseEvent
8
8
  };
@@ -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.0";
172
+ var version = "5.5.1";
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-3TREOJOK.js";
3
+ } from "../chunk-6KR5ZLEQ.js";
4
4
  import "../chunk-AD7CL772.js";
5
- import "../chunk-RDF2OMEF.js";
5
+ import "../chunk-GZLVDQPM.js";
6
6
  import "../chunk-YRZK7HKX.js";
7
7
  import "../chunk-CA6WCQ2T.js";
8
8
  import "../chunk-CPW6G62V.js";
9
- import "../chunk-WPFA7AGD.js";
9
+ import "../chunk-GPIKYBQ5.js";
10
10
  import "../chunk-4G7FSRPN.js";
11
11
  export {
12
12
  log_build_default as default
@@ -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.29_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
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
 
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AD7CL772.js";
4
4
  import {
5
5
  raiseEvent
6
- } from "./chunk-RDF2OMEF.js";
6
+ } from "./chunk-GZLVDQPM.js";
7
7
  import {
8
8
  countResources,
9
9
  hashCatalogContent,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-WPFA7AGD.js";
3
+ } from "./chunk-GPIKYBQ5.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.5.0";
2
+ var version = "5.5.1";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-CPW6G62V.js";
5
5
  import {
6
6
  VERSION
7
- } from "./chunk-WPFA7AGD.js";
7
+ } from "./chunk-GPIKYBQ5.js";
8
8
 
9
9
  // src/analytics/analytics.js
10
10
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-UBDTKNFS.js";
3
+ } from "./chunk-EBZQJP7F.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.5.0";
28
+ var version = "5.5.1";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-WPFA7AGD.js";
3
+ } from "./chunk-GPIKYBQ5.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.29_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
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.0";
177
+ var version = "5.5.1";
178
178
 
179
179
  // src/constants.ts
180
180
  var VERSION = version;
@@ -7,12 +7,12 @@ import {
7
7
  import "./chunk-CA4U2JP7.js";
8
8
  import {
9
9
  log_build_default
10
- } from "./chunk-3TREOJOK.js";
10
+ } from "./chunk-6KR5ZLEQ.js";
11
11
  import {
12
12
  getLicenseStatus,
13
13
  printLicenseStatus
14
14
  } from "./chunk-AD7CL772.js";
15
- import "./chunk-RDF2OMEF.js";
15
+ import "./chunk-GZLVDQPM.js";
16
16
  import "./chunk-YRZK7HKX.js";
17
17
  import "./chunk-CA6WCQ2T.js";
18
18
  import "./chunk-CPW6G62V.js";
@@ -20,17 +20,17 @@ import {
20
20
  FederationConflictError,
21
21
  FederationDiagnosticError,
22
22
  federateCatalog
23
- } from "./chunk-QJ7KKN2D.js";
24
- import "./chunk-WRNH5C3U.js";
25
- import "./chunk-5EPNFDT5.js";
26
- import "./chunk-A2RZR3U4.js";
27
- import "./chunk-SDZQJTJW.js";
28
- import "./chunk-352FGP6W.js";
23
+ } from "./chunk-NCEZDQSW.js";
29
24
  import "./chunk-R7Z5ALYI.js";
30
25
  import {
31
26
  getFederationDiagnosticCounts,
32
27
  getVisibleFederationDiagnostics
33
28
  } from "./chunk-JJPB6EOZ.js";
29
+ import "./chunk-WRNH5C3U.js";
30
+ import "./chunk-5EPNFDT5.js";
31
+ import "./chunk-A2RZR3U4.js";
32
+ import "./chunk-SDZQJTJW.js";
33
+ import "./chunk-352FGP6W.js";
34
34
  import {
35
35
  getProjectOutDir,
36
36
  isAuthEnabled,
@@ -39,10 +39,10 @@ import {
39
39
  } from "./chunk-NKNOXQ62.js";
40
40
  import {
41
41
  generate
42
- } from "./chunk-754U4T7K.js";
42
+ } from "./chunk-K5QKWVI3.js";
43
43
  import {
44
44
  logger
45
- } from "./chunk-UBDTKNFS.js";
45
+ } from "./chunk-EBZQJP7F.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-WPFA7AGD.js";
82
+ } from "./chunk-GPIKYBQ5.js";
83
83
  import {
84
84
  getEventCatalogConfigFile,
85
85
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-QJ7KKN2D.js";
5
+ } from "../chunk-NCEZDQSW.js";
6
+ import "../chunk-R7Z5ALYI.js";
7
+ import "../chunk-JJPB6EOZ.js";
6
8
  import "../chunk-WRNH5C3U.js";
7
9
  import "../chunk-5EPNFDT5.js";
8
10
  import "../chunk-A2RZR3U4.js";
9
11
  import "../chunk-SDZQJTJW.js";
10
12
  import "../chunk-352FGP6W.js";
11
- import "../chunk-R7Z5ALYI.js";
12
- import "../chunk-JJPB6EOZ.js";
13
13
  import "../chunk-4G7FSRPN.js";
14
14
  export {
15
15
  FederationConflictError,
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.0";
108
+ var version = "5.5.1";
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-754U4T7K.js";
4
- import "./chunk-UBDTKNFS.js";
5
- import "./chunk-WPFA7AGD.js";
3
+ } from "./chunk-K5QKWVI3.js";
4
+ import "./chunk-EBZQJP7F.js";
5
+ import "./chunk-GPIKYBQ5.js";
6
6
  import "./chunk-4G7FSRPN.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "5.5.0";
39
+ var version = "5.5.1";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-UBDTKNFS.js";
4
- import "../chunk-WPFA7AGD.js";
3
+ } from "../chunk-EBZQJP7F.js";
4
+ import "../chunk-GPIKYBQ5.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -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 pt-0.5">
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))] w-4 text-center"
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
- <span className="font-mono text-xs">{isExpanded ? '▼' : '▶'}</span>
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))] pt-0.5 focus:outline-hidden w-3 text-center flex-shrink-0"
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
- <span className={`icon-collapsed font-mono text-xs ${isExpanded ? 'hidden' : ''}`}>&gt;</span>
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-3 h-4 flex-shrink-0" />
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))] pt-0.5 focus:outline-hidden w-3 text-center flex-shrink-0"
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
- <span className={`icon-collapsed font-mono text-xs ${isExpanded ? 'hidden' : ''}`}>&gt;</span>
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-3 h-4 flex-shrink-0" />
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"