@eventcatalog/core 4.10.11 → 4.10.13

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 (48) 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/{chunk-N6U5CNT7.js → chunk-34RMFKFB.js} +1 -1
  6. package/dist/{chunk-TWZKZIRW.js → chunk-IIECZFXN.js} +1 -1
  7. package/dist/{chunk-RLGMIZSH.js → chunk-JHUICVBT.js} +1 -1
  8. package/dist/{chunk-3XTFNVGA.js → chunk-PADMH2RJ.js} +1 -1
  9. package/dist/{chunk-VFRR3M72.js → chunk-SSSN5FXC.js} +1 -1
  10. package/dist/constants.cjs +1 -1
  11. package/dist/constants.js +1 -1
  12. package/dist/eventcatalog.cjs +1 -1
  13. package/dist/eventcatalog.config.d.cts +9 -0
  14. package/dist/eventcatalog.config.d.ts +9 -0
  15. package/dist/eventcatalog.js +5 -5
  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/astro.config.mjs +2 -0
  21. package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +208 -119
  22. package/eventcatalog/src/components/ChatPanel/ChatPanelButton.tsx +28 -8
  23. package/eventcatalog/src/components/ChatPanel/OfflineReply.tsx +45 -0
  24. package/eventcatalog/src/components/Header.astro +11 -6
  25. package/eventcatalog/src/components/MDX/Design/Design.astro +2 -2
  26. package/eventcatalog/src/components/MDX/EntityMap/EntityMap.astro +2 -2
  27. package/eventcatalog/src/components/MDX/Flow/Flow.astro +2 -2
  28. package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +2 -2
  29. package/eventcatalog/src/components/MDX/ResourceRef/ResourceRef.astro +22 -40
  30. package/eventcatalog/src/components/Search/Search.astro +11 -4
  31. package/eventcatalog/src/components/Settings/AssistantSettingsForm.tsx +29 -24
  32. package/eventcatalog/src/content.config.ts +1 -1
  33. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +3 -3
  34. package/eventcatalog/src/pages/diagrams/[id]/[version]/index.astro +2 -2
  35. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +5 -3
  36. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +10 -4
  37. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/asyncapi/[filename].astro +2 -2
  38. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +3 -3
  39. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/spec/[filename].astro +2 -2
  40. package/eventcatalog/src/pages/visualiser/designs/[id]/index.astro +2 -2
  41. package/eventcatalog/src/plugins/link-validation.ts +42 -0
  42. package/eventcatalog/src/utils/collections/glob-loader.spec.ts +69 -2
  43. package/eventcatalog/src/utils/collections/glob-loader.ts +5 -3
  44. package/eventcatalog/src/utils/collections/schema-loader.ts +1 -1
  45. package/eventcatalog/src/utils/feature.ts +1 -0
  46. package/eventcatalog/src/utils/link-validation.ts +224 -0
  47. package/eventcatalog/src/utils/resource-reference-links.ts +29 -0
  48. package/package.json +5 -4
@@ -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.10.11";
39
+ var version = "4.10.13";
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-TWZKZIRW.js";
4
- import "../chunk-3XTFNVGA.js";
3
+ } from "../chunk-IIECZFXN.js";
4
+ import "../chunk-PADMH2RJ.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.10.11";
143
+ var version = "4.10.13";
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-N6U5CNT7.js";
4
- import "../chunk-TWZKZIRW.js";
3
+ } from "../chunk-34RMFKFB.js";
4
+ import "../chunk-IIECZFXN.js";
5
5
  import "../chunk-ZAZHAVKB.js";
6
- import "../chunk-3XTFNVGA.js";
6
+ import "../chunk-PADMH2RJ.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
  raiseEvent
3
- } from "./chunk-TWZKZIRW.js";
3
+ } from "./chunk-IIECZFXN.js";
4
4
  import {
5
5
  countResources,
6
6
  hashCatalogContent,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-3XTFNVGA.js";
3
+ } from "./chunk-PADMH2RJ.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-3XTFNVGA.js";
3
+ } from "./chunk-PADMH2RJ.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 = "4.10.11";
2
+ var version = "4.10.13";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-RLGMIZSH.js";
3
+ } from "./chunk-JHUICVBT.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 = "4.10.11";
28
+ var version = "4.10.13";
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-3XTFNVGA.js";
3
+ } from "./chunk-PADMH2RJ.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.10.11";
147
+ var version = "4.10.13";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -242,6 +242,15 @@ interface Config {
242
242
  host?: string | boolean;
243
243
  trailingSlash?: boolean;
244
244
  output?: 'server' | 'static';
245
+ /** Validate internal links and anchors after static builds. Set false to disable. */
246
+ linkValidation?: false | {
247
+ /** @default 'warn' */
248
+ onBrokenLinks?: 'warn' | 'error' | 'ignore';
249
+ /** @default 'warn' */
250
+ onBrokenAnchors?: 'warn' | 'error' | 'ignore';
251
+ /** Glob patterns for destination URL paths, relative to the catalog base (e.g. /api/**). */
252
+ ignore?: string[];
253
+ };
245
254
  server?: {
246
255
  allowedHosts?: string[] | true;
247
256
  };
@@ -242,6 +242,15 @@ interface Config {
242
242
  host?: string | boolean;
243
243
  trailingSlash?: boolean;
244
244
  output?: 'server' | 'static';
245
+ /** Validate internal links and anchors after static builds. Set false to disable. */
246
+ linkValidation?: false | {
247
+ /** @default 'warn' */
248
+ onBrokenLinks?: 'warn' | 'error' | 'ignore';
249
+ /** @default 'warn' */
250
+ onBrokenAnchors?: 'warn' | 'error' | 'ignore';
251
+ /** Glob patterns for destination URL paths, relative to the catalog base (e.g. /api/**). */
252
+ ignore?: string[];
253
+ };
245
254
  server?: {
246
255
  allowedHosts?: string[] | true;
247
256
  };
@@ -4,8 +4,8 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-N6U5CNT7.js";
8
- import "./chunk-TWZKZIRW.js";
7
+ } from "./chunk-34RMFKFB.js";
8
+ import "./chunk-IIECZFXN.js";
9
9
  import "./chunk-ZAZHAVKB.js";
10
10
  import {
11
11
  FederationConflictError,
@@ -31,10 +31,10 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-VFRR3M72.js";
34
+ } from "./chunk-SSSN5FXC.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-RLGMIZSH.js";
37
+ } from "./chunk-JHUICVBT.js";
38
38
  import {
39
39
  resolve_catalog_dependencies_default
40
40
  } from "./chunk-LHR4G2UO.js";
@@ -54,7 +54,7 @@ import {
54
54
  import "./chunk-W5JQON7Z.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-3XTFNVGA.js";
57
+ } from "./chunk-PADMH2RJ.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  resolveInstalledCoreNodeModules
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.10.11";
111
+ var version = "4.10.13";
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-VFRR3M72.js";
4
- import "./chunk-RLGMIZSH.js";
5
- import "./chunk-3XTFNVGA.js";
3
+ } from "./chunk-SSSN5FXC.js";
4
+ import "./chunk-JHUICVBT.js";
5
+ import "./chunk-PADMH2RJ.js";
6
6
  import "./chunk-6QENHZZP.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 = "4.10.11";
39
+ var version = "4.10.13";
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-RLGMIZSH.js";
4
- import "../chunk-3XTFNVGA.js";
3
+ } from "../chunk-JHUICVBT.js";
4
+ import "../chunk-PADMH2RJ.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -17,6 +17,7 @@ import rehypeAutolinkHeadings from 'rehype-autolink-headings';
17
17
  import { eventCatalogLikeC4 } from './src/plugins/likec4';
18
18
  import { loadAstroCompressIntegration } from './src/plugins/astro-compress';
19
19
  import { astroTrailingSlashEndpointFix } from './src/plugins/astro-trailing-slash-endpoint-fix';
20
+ import { linkValidation } from './src/plugins/link-validation';
20
21
 
21
22
  import rehypeExpressiveCode from 'rehype-expressive-code';
22
23
 
@@ -111,6 +112,7 @@ export default defineConfig({
111
112
  effectiveOutput !== 'server' && compress && (await loadAstroCompressIntegration(projectDirectory)),
112
113
  ecstudioWatcher(),
113
114
  eventCatalogIntegration(),
115
+ linkValidation(config.linkValidation),
114
116
  ].filter(Boolean),
115
117
  vite: {
116
118
  plugins: [