@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 +4 -1
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-ULFGBIV2.js → chunk-CV37NPK3.js} +1 -1
- package/dist/{chunk-FVZU5WEI.js → chunk-X7R2UJHK.js} +1 -1
- package/dist/{chunk-JLXI6Z6O.js → chunk-YHWKWHZA.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +10 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
<!-- <hr /> -->
|
|
26
26
|
|
|
27
|
-
<img alt="
|
|
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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
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:
|
|
273
|
+
theme: 'light',
|
|
270
274
|
});
|
|
271
275
|
|
|
272
276
|
for (const graph of graphs) {
|