@eventcatalog/core 2.16.3 → 2.16.4

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
@@ -24,7 +24,10 @@
24
24
 
25
25
  <!-- <hr /> -->
26
26
 
27
- <img alt="header" src="./images/example.png" />
27
+ <img width="745" alt="Screenshot 2024-12-13 at 09 56 05" src="https://github.com/user-attachments/assets/f537ec1f-54ee-4de1-996c-c6b72191be39" />
28
+
29
+
30
+
28
31
 
29
32
  <h4>Features: Documentation generator for Event Driven Architectures, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
30
33
 
@@ -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.16.3";
40
+ var version = "2.16.4";
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-JLXI6Z6O.js";
4
- import "../chunk-FVZU5WEI.js";
3
+ } from "../chunk-YHWKWHZA.js";
4
+ import "../chunk-X7R2UJHK.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.16.3";
109
+ var version = "2.16.4";
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-ULFGBIV2.js";
4
- import "../chunk-JLXI6Z6O.js";
5
- import "../chunk-FVZU5WEI.js";
3
+ } from "../chunk-CV37NPK3.js";
4
+ import "../chunk-YHWKWHZA.js";
5
+ import "../chunk-X7R2UJHK.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-JLXI6Z6O.js";
3
+ } from "./chunk-YHWKWHZA.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.16.3";
2
+ var version = "2.16.4";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-FVZU5WEI.js";
3
+ } from "./chunk-X7R2UJHK.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.16.3";
28
+ var version = "2.16.4";
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-FVZU5WEI.js";
3
+ } from "./chunk-X7R2UJHK.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.16.3";
164
+ var version = "2.16.4";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  log_build_default
3
- } from "./chunk-ULFGBIV2.js";
4
- import "./chunk-JLXI6Z6O.js";
3
+ } from "./chunk-CV37NPK3.js";
4
+ import "./chunk-YHWKWHZA.js";
5
5
  import {
6
6
  catalogToAstro
7
7
  } from "./chunk-55YPRY5U.js";
8
8
  import {
9
9
  VERSION
10
- } from "./chunk-FVZU5WEI.js";
10
+ } from "./chunk-X7R2UJHK.js";
11
11
  import {
12
12
  generate
13
13
  } from "./chunk-YEQVKHST.js";
@@ -236,10 +236,6 @@ const badges = [getBadge(), ...contentBadges, ...getSpecificationBadges()];
236
236
  .mermaid svg {
237
237
  margin: 1em auto 2em;
238
238
  }
239
-
240
- .mermaid tspan {
241
- font-size: 8em;
242
- }
243
239
  </style>
244
240
 
245
241
  <script define:vars={{ props }}>
@@ -251,13 +247,21 @@ const badges = [getBadge(), ...contentBadges, ...getSpecificationBadges()];
251
247
  </script>
252
248
 
253
249
  <script>
250
+ // Listen for Astro transititions
251
+ document.addEventListener('astro:page-load', () => {
252
+ const graphs = document.getElementsByClassName('mermaid');
253
+ if (document.getElementsByClassName('mermaid').length > 0) {
254
+ renderDiagrams(graphs);
255
+ }
256
+ });
257
+
254
258
  /**
255
259
  * @params {HTMLCollectionOf<HTMLElement>} graphs
256
260
  */
257
261
  async function renderDiagrams(graphs: any) {
258
262
  const { default: mermaid } = await import('mermaid');
259
263
  mermaid.initialize({
260
- fontSize: 2,
264
+ // fontSize: 2,
261
265
  flowchart: {
262
266
  curve: 'linear',
263
267
  rankSpacing: 0,
@@ -266,7 +270,7 @@ const badges = [getBadge(), ...contentBadges, ...getSpecificationBadges()];
266
270
  startOnLoad: false,
267
271
  fontFamily: 'var(--sans-font)',
268
272
  // @ts-ignore This works, but TS expects a enum for some reason
269
- theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default',
273
+ theme: 'light',
270
274
  });
271
275
 
272
276
  for (const graph of graphs) {
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.16.3",
9
+ "version": "2.16.4",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },