@eventcatalog/core 2.61.4 → 2.61.6

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/README.md CHANGED
@@ -34,7 +34,7 @@
34
34
  <h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
35
35
 
36
36
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
37
- [![All Contributors](https://img.shields.io/badge/all_contributors-61-orange.svg?style=flat-square)](#contributors-)
37
+ [![All Contributors](https://img.shields.io/badge/all_contributors-63-orange.svg?style=flat-square)](#contributors-)
38
38
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
39
39
 
40
40
  [Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
@@ -261,10 +261,12 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
261
261
  </tr>
262
262
  <tr>
263
263
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/cc-stjm"><img src="https://avatars.githubusercontent.com/u/47748595?v=4?s=100" width="100px;" alt="cc-stjm"/><br /><sub><b>cc-stjm</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=cc-stjm" title="Code">💻</a></td>
264
- <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/lucianlature/"><img src="https://avatars.githubusercontent.com/u/24992?v=4?s=100" width="100px;" alt="Lucian Lature"/><br /><sub><b>Lucian Lature</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Alucianlature" title="Bug reports">🐛</a></td>
264
+ <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/lucianlature/"><img src="https://avatars.githubusercontent.com/u/24992?v=4?s=100" width="100px;" alt="Lucian Lature"/><br /><sub><b>Lucian Lature</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Alucianlature" title="Bug reports">🐛</a> <a href="https://github.com/event-catalog/eventcatalog/commits?author=lucianlature" title="Code">💻</a></td>
265
265
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/villAsh"><img src="https://avatars.githubusercontent.com/u/50195101?v=4?s=100" width="100px;" alt="Vilas Chauvhan"/><br /><sub><b>Vilas Chauvhan</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=villAsh" title="Code">💻</a></td>
266
266
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/mrerichoffman"><img src="https://avatars.githubusercontent.com/u/7565432?v=4?s=100" width="100px;" alt="Eric Hoffman"/><br /><sub><b>Eric Hoffman</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Amrerichoffman" title="Bug reports">🐛</a></td>
267
267
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/wimhaesen-kine"><img src="https://avatars.githubusercontent.com/u/231914377?v=4?s=100" width="100px;" alt="wimhaesen-kine"/><br /><sub><b>wimhaesen-kine</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=wimhaesen-kine" title="Code">💻</a></td>
268
+ <td align="center" valign="top" width="14.28%"><a href="https://www.ondrejmusil.cz"><img src="https://avatars.githubusercontent.com/u/959390?v=4?s=100" width="100px;" alt="Ondrej Musil"/><br /><sub><b>Ondrej Musil</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Afreaz" title="Bug reports">🐛</a></td>
269
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/anatolybolshakov"><img src="https://avatars.githubusercontent.com/u/8779682?v=4?s=100" width="100px;" alt="Anatoly Bolshakov"/><br /><sub><b>Anatoly Bolshakov</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=anatolybolshakov" title="Code">💻</a></td>
268
270
  </tr>
269
271
  </tbody>
270
272
  </table>
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.61.4";
40
+ var version = "2.61.6";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-NVSSALX4.js";
4
- import "../chunk-2MTIB6BG.js";
3
+ } from "../chunk-7LTM6YQH.js";
4
+ import "../chunk-PMSWVB5T.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.61.4";
109
+ var version = "2.61.6";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-7I5Y4F5V.js";
4
- import "../chunk-NVSSALX4.js";
5
- import "../chunk-2MTIB6BG.js";
3
+ } from "../chunk-6IIG7LV6.js";
4
+ import "../chunk-7LTM6YQH.js";
5
+ import "../chunk-PMSWVB5T.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -35,7 +35,7 @@ __export(catalog_to_astro_content_directory_exports, {
35
35
  });
36
36
  module.exports = __toCommonJS(catalog_to_astro_content_directory_exports);
37
37
 
38
- // node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
38
+ // node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
39
39
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
40
40
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
41
41
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-NVSSALX4.js";
3
+ } from "./chunk-7LTM6YQH.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-2MTIB6BG.js";
3
+ } from "./chunk-PMSWVB5T.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.61.4";
2
+ var version = "2.61.6";
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 = "2.61.4";
28
+ var version = "2.61.6";
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-2MTIB6BG.js";
3
+ } from "./chunk-PMSWVB5T.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@1.21.7_postcss@8.5.6_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
25
+ // node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.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
 
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.61.4";
160
+ var version = "2.61.6";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-7I5Y4F5V.js";
10
- import "./chunk-NVSSALX4.js";
9
+ } from "./chunk-6IIG7LV6.js";
10
+ import "./chunk-7LTM6YQH.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-55D645EH.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-2MTIB6BG.js";
18
+ } from "./chunk-PMSWVB5T.js";
19
19
  import {
20
20
  getProjectOutDir,
21
21
  isAuthEnabled,
@@ -46,7 +46,7 @@ const channelPointer = z
46
46
 
47
47
  const resourcePointer = z.object({
48
48
  id: z.string(),
49
- version: z.string().optional().default('latest'),
49
+ version: z.union([z.string(), z.number()]).optional().default('latest'),
50
50
  type: z.enum(['service', 'event', 'command', 'query', 'flow', 'channel', 'domain', 'user', 'team', 'container']),
51
51
  });
52
52
 
@@ -79,7 +79,7 @@ const baseSchema = z.object({
79
79
  id: z.string(),
80
80
  name: z.string(),
81
81
  summary: z.string().optional(),
82
- version: z.string(),
82
+ version: z.union([z.string(), z.number()]),
83
83
  draft: z.union([z.boolean(), z.object({ title: z.string().optional(), message: z.string() })]).optional(),
84
84
  badges: z.array(badge).optional(),
85
85
  owners: z.array(ownerReference).optional(),
@@ -363,7 +363,7 @@ const badges = doc?.badges || [];
363
363
 
364
364
  if (window.eventcatalog.mermaid) {
365
365
  const { icons } = await import('@iconify-json/logos');
366
- const { iconPacks = [] } = window.eventcatalog.mermaid ?? {};
366
+ const { iconPacks = [], enableSupportForElkLayout = false } = window.eventcatalog.mermaid ?? {};
367
367
 
368
368
  if (iconPacks.length > 0) {
369
369
  const iconPacksToRegister = iconPacks.map((name: string) => {
@@ -375,6 +375,11 @@ const badges = doc?.badges || [];
375
375
 
376
376
  mermaid.registerIconPacks(iconPacksToRegister);
377
377
  }
378
+
379
+ if (enableSupportForElkLayout) {
380
+ const { default: elkLayouts } = await import('@mermaid-js/layout-elk/dist/mermaid-layout-elk.core.mjs');
381
+ mermaid.registerLayoutLoaders(elkLayouts);
382
+ }
378
383
  }
379
384
 
380
385
  mermaid.initialize({
@@ -9,7 +9,9 @@ import config from '@config';
9
9
  * @returns
10
10
  */
11
11
  export const GET: APIRoute = async ({ params, request }) => {
12
- if (!config.api?.fullCatalogAPIEnabled) {
12
+ const isFullCatalogAPIEnabled = config.api?.fullCatalogAPIEnabled ?? true;
13
+
14
+ if (!isFullCatalogAPIEnabled) {
13
15
  return new Response(JSON.stringify({ error: 'Full catalog API is not enabled' }), {
14
16
  status: 404,
15
17
  });
@@ -534,7 +534,7 @@ nodeGraphs.push({
534
534
 
535
535
  if (window.eventcatalog.mermaid) {
536
536
  const { icons } = await import('@iconify-json/logos');
537
- const { iconPacks = [] } = window.eventcatalog.mermaid ?? {};
537
+ const { iconPacks = [], enableSupportForElkLayout = false } = window.eventcatalog.mermaid ?? {};
538
538
 
539
539
  if (iconPacks.length > 0) {
540
540
  const iconPacksToRegister = iconPacks.map((name: any) => {
@@ -546,6 +546,11 @@ nodeGraphs.push({
546
546
 
547
547
  mermaid.registerIconPacks(iconPacksToRegister);
548
548
  }
549
+
550
+ if (enableSupportForElkLayout) {
551
+ const { default: elkLayouts } = await import('@mermaid-js/layout-elk/dist/mermaid-layout-elk.core.mjs');
552
+ mermaid.registerLayoutLoaders(elkLayouts);
553
+ }
549
554
  }
550
555
 
551
556
  mermaid.initialize({
@@ -1,4 +1,5 @@
1
1
  import config from './eventcatalog.config.js';
2
+ import typography from '@tailwindcss/typography';
2
3
 
3
4
  const HEADER_HEIGHT = '4rem';
4
5
  const theme = config.theme || {};
@@ -64,5 +65,5 @@ export default {
64
65
  'min-h-[100px]',
65
66
  ],
66
67
 
67
- plugins: [require('@tailwindcss/typography')],
68
+ plugins: [typography],
68
69
  };
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.61.4",
9
+ "version": "2.61.6",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -45,6 +45,7 @@
45
45
  "@headlessui/react": "^2.0.3",
46
46
  "@heroicons/react": "^2.1.3",
47
47
  "@iconify-json/logos": "^1.2.4",
48
+ "@mermaid-js/layout-elk": "^0.2.0",
48
49
  "@parcel/watcher": "^2.4.1",
49
50
  "@radix-ui/react-context-menu": "^2.2.6",
50
51
  "@radix-ui/react-dialog": "^1.1.6",