@eventcatalog/core 4.7.7 → 4.7.9

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.
@@ -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 = "4.7.7";
39
+ var version = "4.7.9";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-MQEV3YUV.js";
4
- import "../chunk-JBNUHFT4.js";
3
+ } from "../chunk-4MDL35UE.js";
4
+ import "../chunk-XJ57UM4O.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
140
140
  var import_os = __toESM(require("os"), 1);
141
141
 
142
142
  // package.json
143
- var version = "4.7.7";
143
+ var version = "4.7.9";
144
144
 
145
145
  // src/constants.ts
146
146
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-5ASZ2V3F.js";
4
- import "../chunk-MQEV3YUV.js";
3
+ } from "../chunk-LKIDMN7D.js";
4
+ import "../chunk-4MDL35UE.js";
5
5
  import "../chunk-K2XIENVT.js";
6
- import "../chunk-JBNUHFT4.js";
6
+ import "../chunk-XJ57UM4O.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-AU344G4Q.js";
3
+ } from "./chunk-LKZNEPD7.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-JBNUHFT4.js";
3
+ } from "./chunk-XJ57UM4O.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -51,6 +51,10 @@ var valueToSearchText = (value) => {
51
51
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
52
52
  return "";
53
53
  };
54
+ var getDictionarySearchFields = (dictionary) => {
55
+ if (!Array.isArray(dictionary)) return void 0;
56
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
57
+ };
54
58
  var markdownToSearchText = (content) => {
55
59
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
56
60
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -242,7 +246,8 @@ var collectSearchRecords = async ({
242
246
  date: parsed.data.date,
243
247
  decisionMakers: parsed.data.decisionMakers,
244
248
  appliesTo: parsed.data.appliesTo,
245
- badges: parsed.data.badges
249
+ badges: parsed.data.badges,
250
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
246
251
  });
247
252
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
248
253
  if (!content.trim()) {
@@ -0,0 +1,7 @@
1
+ // src/federation/entitlement.ts
2
+ import { isEventCatalogEnterpriseEnabled } from "@eventcatalog/license";
3
+ var isFederationEnabled = () => isEventCatalogEnterpriseEnabled();
4
+
5
+ export {
6
+ isFederationEnabled
7
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-MQEV3YUV.js";
3
+ } from "./chunk-4MDL35UE.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-JBNUHFT4.js";
3
+ } from "./chunk-XJ57UM4O.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-JJPB6EOZ.js";
17
17
  import {
18
18
  isFederationEnabled
19
- } from "./chunk-DDALKGTF.js";
19
+ } from "./chunk-FV56YFM4.js";
20
20
  import {
21
21
  getEventCatalogConfigFile
22
22
  } from "./chunk-6QENHZZP.js";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.7.7";
2
+ var version = "4.7.9";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "4.7.7";
28
+ var version = "4.7.9";
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-JBNUHFT4.js";
3
+ } from "./chunk-XJ57UM4O.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
144
144
  var import_picocolors = __toESM(require("picocolors"), 1);
145
145
 
146
146
  // package.json
147
- var version = "4.7.7";
147
+ var version = "4.7.9";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -412,7 +412,7 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
412
412
  })
413
413
  });
414
414
  };
415
- var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled3, isBackstagePluginEnabled }) => {
415
+ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled }) => {
416
416
  try {
417
417
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
418
418
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -421,7 +421,7 @@ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStar
421
421
  if (isEventCatalogStarterEnabled2) {
422
422
  generatorNames.push("@eventcatalog/eventcatalog-starter");
423
423
  }
424
- if (isEventCatalogScaleEnabled3) {
424
+ if (isEventCatalogScaleEnabled2) {
425
425
  generatorNames.push("@eventcatalog/eventcatalog-scale");
426
426
  }
427
427
  if (isBackstagePluginEnabled) {
@@ -1568,6 +1568,10 @@ var valueToSearchText = (value) => {
1568
1568
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
1569
1569
  return "";
1570
1570
  };
1571
+ var getDictionarySearchFields = (dictionary) => {
1572
+ if (!Array.isArray(dictionary)) return void 0;
1573
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
1574
+ };
1571
1575
  var markdownToSearchText = (content) => {
1572
1576
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
1573
1577
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -1759,7 +1763,8 @@ var collectSearchRecords = async ({
1759
1763
  date: parsed.data.date,
1760
1764
  decisionMakers: parsed.data.decisionMakers,
1761
1765
  appliesTo: parsed.data.appliesTo,
1762
- badges: parsed.data.badges
1766
+ badges: parsed.data.badges,
1767
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
1763
1768
  });
1764
1769
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
1765
1770
  if (!content.trim()) {
@@ -2123,7 +2128,7 @@ var getVisibleFederationDiagnostics = (diagnostics, verbose) => diagnostics.filt
2123
2128
 
2124
2129
  // src/federation/entitlement.ts
2125
2130
  var import_license = require("@eventcatalog/license");
2126
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
2131
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
2127
2132
 
2128
2133
  // src/federation/output-transaction.ts
2129
2134
  var import_promises5 = __toESM(require("fs/promises"), 1);
@@ -404,7 +404,7 @@ interface Config {
404
404
  integrations?: IntegrationsConfig;
405
405
  scalarConfiguration?: ScalarConfiguration;
406
406
  generators?: GeneratorConfig[];
407
- /** Catalogs composed into this catalog by `eventcatalog federate`. */
407
+ /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
408
408
  federation?: FederationConfig;
409
409
  }
410
410
 
@@ -404,7 +404,7 @@ interface Config {
404
404
  integrations?: IntegrationsConfig;
405
405
  scalarConfiguration?: ScalarConfiguration;
406
406
  generators?: GeneratorConfig[];
407
- /** Catalogs composed into this catalog by `eventcatalog federate`. */
407
+ /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
408
408
  federation?: FederationConfig;
409
409
  }
410
410
 
@@ -4,14 +4,14 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-5ASZ2V3F.js";
8
- import "./chunk-MQEV3YUV.js";
7
+ } from "./chunk-LKIDMN7D.js";
8
+ import "./chunk-4MDL35UE.js";
9
9
  import "./chunk-K2XIENVT.js";
10
10
  import {
11
11
  FederationConflictError,
12
12
  FederationDiagnosticError,
13
13
  federateCatalog
14
- } from "./chunk-MLIR3NL4.js";
14
+ } from "./chunk-U52FCZQ6.js";
15
15
  import "./chunk-WRNH5C3U.js";
16
16
  import "./chunk-5EPNFDT5.js";
17
17
  import "./chunk-6K7XZAYI.js";
@@ -21,7 +21,7 @@ import {
21
21
  getFederationDiagnosticCounts,
22
22
  getVisibleFederationDiagnostics
23
23
  } from "./chunk-JJPB6EOZ.js";
24
- import "./chunk-DDALKGTF.js";
24
+ import "./chunk-FV56YFM4.js";
25
25
  import "./chunk-SDZQJTJW.js";
26
26
  import {
27
27
  getProjectOutDir,
@@ -31,16 +31,16 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-QYK2OJMS.js";
34
+ } from "./chunk-2C5JYUFZ.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-AU344G4Q.js";
37
+ } from "./chunk-LKZNEPD7.js";
38
38
  import {
39
39
  resolve_catalog_dependencies_default
40
40
  } from "./chunk-LHR4G2UO.js";
41
41
  import {
42
42
  buildSearchIndex
43
- } from "./chunk-ZONBICNH.js";
43
+ } from "./chunk-6U72KINX.js";
44
44
  import {
45
45
  watch
46
46
  } from "./chunk-CAJUIMDJ.js";
@@ -54,7 +54,7 @@ import {
54
54
  import "./chunk-W5JQON7Z.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-JBNUHFT4.js";
57
+ } from "./chunk-XJ57UM4O.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  resolveInstalledCoreNodeModules
@@ -24,7 +24,7 @@ __export(entitlement_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(entitlement_exports);
26
26
  var import_license = require("@eventcatalog/license");
27
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
27
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
30
30
  isFederationEnabled
@@ -3,9 +3,9 @@
3
3
  * See /packages/core/src/federation/LICENSE
4
4
  */
5
5
  /**
6
- * Federation is currently enabled through the Scale entitlement. Keep callers
7
- * plan-agnostic so this can move to the Enterprise offline entitlement without
8
- * changing the federation workflow.
6
+ * Federation is enabled through the Enterprise offline entitlement. Keep
7
+ * callers plan-agnostic so licensing details remain isolated from the
8
+ * federation workflow.
9
9
  */
10
10
  declare const isFederationEnabled: () => Promise<boolean>;
11
11
 
@@ -3,9 +3,9 @@
3
3
  * See /packages/core/src/federation/LICENSE
4
4
  */
5
5
  /**
6
- * Federation is currently enabled through the Scale entitlement. Keep callers
7
- * plan-agnostic so this can move to the Enterprise offline entitlement without
8
- * changing the federation workflow.
6
+ * Federation is enabled through the Enterprise offline entitlement. Keep
7
+ * callers plan-agnostic so licensing details remain isolated from the
8
+ * federation workflow.
9
9
  */
10
10
  declare const isFederationEnabled: () => Promise<boolean>;
11
11
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFederationEnabled
3
- } from "../chunk-DDALKGTF.js";
3
+ } from "../chunk-FV56YFM4.js";
4
4
  export {
5
5
  isFederationEnabled
6
6
  };
@@ -296,7 +296,7 @@ var getFederationDiagnostics = (graph, rules = {}) => {
296
296
 
297
297
  // src/federation/entitlement.ts
298
298
  var import_license = require("@eventcatalog/license");
299
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
299
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
300
300
 
301
301
  // src/federation/output-transaction.ts
302
302
  var import_promises3 = __toESM(require("fs/promises"), 1);
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-MLIR3NL4.js";
5
+ } from "../chunk-U52FCZQ6.js";
6
6
  import "../chunk-WRNH5C3U.js";
7
7
  import "../chunk-5EPNFDT5.js";
8
8
  import "../chunk-6K7XZAYI.js";
9
9
  import "../chunk-352FGP6W.js";
10
10
  import "../chunk-R7Z5ALYI.js";
11
11
  import "../chunk-JJPB6EOZ.js";
12
- import "../chunk-DDALKGTF.js";
12
+ import "../chunk-FV56YFM4.js";
13
13
  import "../chunk-SDZQJTJW.js";
14
14
  import "../chunk-6QENHZZP.js";
15
15
  export {
package/dist/generate.cjs CHANGED
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
108
108
  var import_picocolors = __toESM(require("picocolors"), 1);
109
109
 
110
110
  // package.json
111
- var version = "4.7.7";
111
+ var version = "4.7.9";
112
112
 
113
113
  // src/constants.ts
114
114
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-QYK2OJMS.js";
4
- import "./chunk-AU344G4Q.js";
5
- import "./chunk-JBNUHFT4.js";
3
+ } from "./chunk-2C5JYUFZ.js";
4
+ import "./chunk-LKZNEPD7.js";
5
+ import "./chunk-XJ57UM4O.js";
6
6
  import "./chunk-6QENHZZP.js";
7
7
  export {
8
8
  generate
@@ -87,6 +87,10 @@ var valueToSearchText = (value) => {
87
87
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
88
88
  return "";
89
89
  };
90
+ var getDictionarySearchFields = (dictionary) => {
91
+ if (!Array.isArray(dictionary)) return void 0;
92
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
93
+ };
90
94
  var markdownToSearchText = (content) => {
91
95
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
92
96
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -278,7 +282,8 @@ var collectSearchRecords = async ({
278
282
  date: parsed.data.date,
279
283
  decisionMakers: parsed.data.decisionMakers,
280
284
  appliesTo: parsed.data.appliesTo,
281
- badges: parsed.data.badges
285
+ badges: parsed.data.badges,
286
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
282
287
  });
283
288
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
284
289
  if (!content.trim()) {
@@ -2,7 +2,7 @@ import {
2
2
  buildSearchIndex,
3
3
  collectSearchRecords,
4
4
  markdownToSearchText
5
- } from "./chunk-ZONBICNH.js";
5
+ } from "./chunk-6U72KINX.js";
6
6
  export {
7
7
  buildSearchIndex,
8
8
  collectSearchRecords,
@@ -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 = "4.7.7";
39
+ var version = "4.7.9";
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-AU344G4Q.js";
4
- import "../chunk-JBNUHFT4.js";
3
+ } from "../chunk-LKZNEPD7.js";
4
+ import "../chunk-XJ57UM4O.js";
5
5
  export {
6
6
  logger
7
7
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.7.7",
10
+ "version": "4.7.9",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -41,7 +41,7 @@
41
41
  "@asyncapi/parser": "^3.6.0",
42
42
  "@asyncapi/react-component": "3.1.0",
43
43
  "@auth/core": "^0.41.3",
44
- "@eventcatalog/license": "^0.0.7",
44
+ "@eventcatalog/license": "^0.0.8",
45
45
  "@fontsource/inter": "^5.2.5",
46
46
  "@headlessui/react": "^2.0.3",
47
47
  "@heroicons/react": "^2.1.3",
@@ -1,7 +0,0 @@
1
- // src/federation/entitlement.ts
2
- import { isEventCatalogScaleEnabled } from "@eventcatalog/license";
3
- var isFederationEnabled = () => isEventCatalogScaleEnabled();
4
-
5
- export {
6
- isFederationEnabled
7
- };