@eventcatalog/core 4.10.4 → 4.10.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/count-resources.cjs +32 -0
- package/dist/analytics/count-resources.d.cts +9 -1
- package/dist/analytics/count-resources.d.ts +9 -1
- package/dist/analytics/count-resources.js +3 -1
- package/dist/analytics/log-build.cjs +30 -3
- package/dist/analytics/log-build.d.cts +2 -1
- package/dist/analytics/log-build.d.ts +2 -1
- package/dist/analytics/log-build.js +4 -4
- package/dist/{chunk-2SLBVVUZ.js → chunk-EB43LSVE.js} +12 -4
- package/dist/{chunk-T5XTOY52.js → chunk-GMVJ4B2S.js} +1 -1
- package/dist/{chunk-6S2ZIVEV.js → chunk-NECJFWMI.js} +1 -1
- package/dist/{chunk-S3J4N5ZP.js → chunk-XFS3XVP2.js} +1 -1
- package/dist/{chunk-322TAIDG.js → chunk-YSWJHMAX.js} +1 -1
- package/dist/{chunk-K2XIENVT.js → chunk-ZAZHAVKB.js} +21 -0
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +277 -243
- package/dist/eventcatalog.js +14 -7
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/MDX/MermaidFileLoader/MermaidFileLoader.astro +10 -3
- package/eventcatalog/src/pages/diagrams/[id]/[version]/embed.astro +665 -325
- package/eventcatalog/src/remark-plugins/mermaid.ts +48 -1
- package/eventcatalog/src/utils/mermaid-zoom.ts +781 -404
- package/package.json +6 -7
package/dist/eventcatalog.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-EB43LSVE.js";
|
|
8
|
+
import "./chunk-NECJFWMI.js";
|
|
9
|
+
import "./chunk-ZAZHAVKB.js";
|
|
10
10
|
import {
|
|
11
11
|
FederationConflictError,
|
|
12
12
|
FederationDiagnosticError,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
} from "./chunk-B7HCX5HM.js";
|
|
32
32
|
import {
|
|
33
33
|
generate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XFS3XVP2.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GMVJ4B2S.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-
|
|
57
|
+
} from "./chunk-YSWJHMAX.js";
|
|
58
58
|
import {
|
|
59
59
|
linkCoreNodeModules,
|
|
60
60
|
resolveInstalledCoreNodeModules
|
|
@@ -906,6 +906,12 @@ program.command("dev").description("Run development server of EventCatalog").opt
|
|
|
906
906
|
);
|
|
907
907
|
const isEventCatalogStarter = await isEventCatalogStarterEnabled();
|
|
908
908
|
const isEventCatalogScale = await isEventCatalogScaleEnabled();
|
|
909
|
+
void log_build_default(dir, {
|
|
910
|
+
isEventCatalogStarterEnabled: isEventCatalogStarter,
|
|
911
|
+
isEventCatalogScaleEnabled: isEventCatalogScale,
|
|
912
|
+
isBackstagePluginEnabled: canEmbedPages || isEventCatalogScale,
|
|
913
|
+
command: "dev"
|
|
914
|
+
});
|
|
909
915
|
if (isServer) {
|
|
910
916
|
try {
|
|
911
917
|
logger.info("Building fields index...", "fields");
|
|
@@ -981,7 +987,8 @@ program.command("build").description("Run build of EventCatalog").action(async (
|
|
|
981
987
|
await log_build_default(dir, {
|
|
982
988
|
isEventCatalogStarterEnabled: isEventCatalogStarter,
|
|
983
989
|
isEventCatalogScaleEnabled: isEventCatalogScale,
|
|
984
|
-
isBackstagePluginEnabled: canEmbedPages || isEventCatalogScale
|
|
990
|
+
isBackstagePluginEnabled: canEmbedPages || isEventCatalogScale,
|
|
991
|
+
command: "build"
|
|
985
992
|
});
|
|
986
993
|
await resolve_catalog_dependencies_default(dir, core);
|
|
987
994
|
await runMigrations(dir);
|
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.
|
|
111
|
+
var version = "4.10.6";
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XFS3XVP2.js";
|
|
4
|
+
import "./chunk-GMVJ4B2S.js";
|
|
5
|
+
import "./chunk-YSWJHMAX.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -3,7 +3,9 @@ import fs from 'fs';
|
|
|
3
3
|
import { getAbsoluteFilePathForAstroFile } from '@utils/files';
|
|
4
4
|
import Admonition from '@components/MDX/Admonition';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// `placement` and `actions` configure the interactive controls, e.g.
|
|
7
|
+
// <MermaidFileLoader file="diagram.mmd" placement="top-left" actions={false} />
|
|
8
|
+
const { file: mermaidFile, filePath, placement, actions } = Astro.props;
|
|
7
9
|
|
|
8
10
|
// const escapeHtml = (str: string) => str.replace(/[&<>"']/g, (c) => escapeMap[c]);
|
|
9
11
|
let isValidMermaidFile = mermaidFile.endsWith('.mmd') || mermaidFile.endsWith('.mermaid');
|
|
@@ -48,8 +50,13 @@ if (isValidMermaidFile) {
|
|
|
48
50
|
{
|
|
49
51
|
mermaidFileContent && isValidMermaidFile && (
|
|
50
52
|
<div class="mermaid-block pb-4">
|
|
51
|
-
<div
|
|
52
|
-
|
|
53
|
+
<div
|
|
54
|
+
class="mermaid border border-[rgb(var(--ec-page-border))] rounded-lg p-1"
|
|
55
|
+
data-content={mermaidFileContent}
|
|
56
|
+
data-placement={placement}
|
|
57
|
+
data-actions={actions !== undefined ? String(actions) : undefined}
|
|
58
|
+
>
|
|
59
|
+
<p class="text-[rgb(var(--ec-page-text-muted))]">Loading graph...</p>
|
|
53
60
|
</div>
|
|
54
61
|
</div>
|
|
55
62
|
)
|