@eventcatalog/core 3.0.0-beta.22 → 3.0.0-beta.23
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/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-FZN27QZ7.js → chunk-AJIDWPJI.js} +1 -1
- package/dist/{chunk-MO2LVZ2H.js → chunk-C3DPW2RT.js} +1 -1
- package/dist/{chunk-BLLOCEIH.js → chunk-F6UWJOIP.js} +1 -1
- package/dist/{chunk-KNMWRR6J.js → chunk-U5LM336G.js} +1 -1
- package/dist/{chunk-7INEOCHF.js → chunk-XPNI6MQE.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 +5 -5
- 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/SideNav/NestedSideBar/builders/container.ts +10 -1
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/domain.ts +9 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/message.ts +10 -1
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/service.ts +4 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/shared.ts +13 -0
- package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-C3DPW2RT.js";
|
|
4
|
+
import "../chunk-AJIDWPJI.js";
|
|
5
|
+
import "../chunk-F6UWJOIP.js";
|
|
6
6
|
import "../chunk-UPONRQSN.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
|
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
109
109
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
|
-
var version = "3.0.0-beta.
|
|
112
|
+
var version = "3.0.0-beta.23";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-C3DPW2RT.js";
|
|
10
|
+
import "./chunk-AJIDWPJI.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-5VBIXL6C.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XPNI6MQE.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-U5LM336G.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F6UWJOIP.js";
|
|
32
32
|
import "./chunk-UPONRQSN.js";
|
|
33
33
|
|
|
34
34
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
73
73
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
74
74
|
|
|
75
75
|
// package.json
|
|
76
|
-
var version = "3.0.0-beta.
|
|
76
|
+
var version = "3.0.0-beta.23";
|
|
77
77
|
|
|
78
78
|
// src/constants.ts
|
|
79
79
|
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-XPNI6MQE.js";
|
|
4
|
+
import "./chunk-U5LM336G.js";
|
|
5
|
+
import "./chunk-F6UWJOIP.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { CollectionEntry } from 'astro:content';
|
|
2
2
|
import { buildUrl } from '@utils/url-builder';
|
|
3
3
|
import type { NavNode, ChildRef } from './shared';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
buildQuickReferenceSection,
|
|
6
|
+
buildOwnersSection,
|
|
7
|
+
shouldRenderSideBarSection,
|
|
8
|
+
buildRepositorySection,
|
|
9
|
+
buildAttachmentsSection,
|
|
10
|
+
} from './shared';
|
|
5
11
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
6
12
|
|
|
7
13
|
export const buildContainerNode = (container: CollectionEntry<'containers'>, owners: any[]): NavNode => {
|
|
@@ -17,6 +23,8 @@ export const buildContainerNode = (container: CollectionEntry<'containers'>, own
|
|
|
17
23
|
|
|
18
24
|
const renderOwners = owners.length > 0 && shouldRenderSideBarSection(container, 'owners');
|
|
19
25
|
|
|
26
|
+
const hasAttachments = container.data.attachments && container.data.attachments.length > 0;
|
|
27
|
+
|
|
20
28
|
const renderRepository = container.data.repository && shouldRenderSideBarSection(container, 'repository');
|
|
21
29
|
|
|
22
30
|
return {
|
|
@@ -61,6 +69,7 @@ export const buildContainerNode = (container: CollectionEntry<'containers'>, own
|
|
|
61
69
|
},
|
|
62
70
|
renderOwners && buildOwnersSection(owners),
|
|
63
71
|
renderRepository && buildRepositorySection(container.data.repository as { url: string; language: string }),
|
|
72
|
+
hasAttachments && buildAttachmentsSection(container.data.attachments as any[]),
|
|
64
73
|
].filter(Boolean) as ChildRef[],
|
|
65
74
|
};
|
|
66
75
|
};
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
buildOwnersSection,
|
|
8
8
|
shouldRenderSideBarSection,
|
|
9
9
|
buildRepositorySection,
|
|
10
|
+
buildAttachmentsSection,
|
|
10
11
|
} from './shared';
|
|
11
12
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
12
13
|
|
|
@@ -31,6 +32,8 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
31
32
|
|
|
32
33
|
const renderVisualiser = isVisualiserEnabled();
|
|
33
34
|
|
|
35
|
+
const hasAttachments = domain.data.attachments && domain.data.attachments.length > 0;
|
|
36
|
+
|
|
34
37
|
const renderRepository = domain.data.repository && shouldRenderSideBarSection(domain, 'repository');
|
|
35
38
|
return {
|
|
36
39
|
type: 'item',
|
|
@@ -63,6 +66,11 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
63
66
|
title: 'Interaction Map',
|
|
64
67
|
href: buildUrl(`/visualiser/domains/${domain.data.id}/${domain.data.version}`),
|
|
65
68
|
},
|
|
69
|
+
renderVisualiser && {
|
|
70
|
+
type: 'item',
|
|
71
|
+
title: 'Global Domain Map',
|
|
72
|
+
href: buildUrl(`/visualiser/domain-integrations`),
|
|
73
|
+
},
|
|
66
74
|
].filter(Boolean) as ChildRef[],
|
|
67
75
|
},
|
|
68
76
|
renderSubDomains && {
|
|
@@ -97,6 +105,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
97
105
|
},
|
|
98
106
|
renderOwners && buildOwnersSection(owners),
|
|
99
107
|
renderRepository && buildRepositorySection(domain.data.repository as { url: string; language: string }),
|
|
108
|
+
hasAttachments && buildAttachmentsSection(domain.data.attachments as any[]),
|
|
100
109
|
].filter(Boolean) as ChildRef[],
|
|
101
110
|
};
|
|
102
111
|
};
|
|
@@ -2,7 +2,13 @@ import type { CollectionEntry } from 'astro:content';
|
|
|
2
2
|
import { buildUrl } from '@utils/url-builder';
|
|
3
3
|
import { getSchemaFormatFromURL } from '@utils/collections/schemas';
|
|
4
4
|
import type { NavNode, ChildRef } from './shared';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
buildQuickReferenceSection,
|
|
7
|
+
buildOwnersSection,
|
|
8
|
+
shouldRenderSideBarSection,
|
|
9
|
+
buildRepositorySection,
|
|
10
|
+
buildAttachmentsSection,
|
|
11
|
+
} from './shared';
|
|
6
12
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
7
13
|
|
|
8
14
|
export const buildMessageNode = (message: CollectionEntry<'events' | 'commands' | 'queries'>, owners: any[]): NavNode => {
|
|
@@ -25,6 +31,8 @@ export const buildMessageNode = (message: CollectionEntry<'events' | 'commands'
|
|
|
25
31
|
const hasSchema = message.data.schemaPath !== undefined;
|
|
26
32
|
const renderVisualiser = isVisualiserEnabled();
|
|
27
33
|
|
|
34
|
+
const hasAttachments = message.data.attachments && message.data.attachments.length > 0;
|
|
35
|
+
|
|
28
36
|
const renderOwners = owners.length > 0 && shouldRenderSideBarSection(message, 'owners');
|
|
29
37
|
|
|
30
38
|
return {
|
|
@@ -79,6 +87,7 @@ export const buildMessageNode = (message: CollectionEntry<'events' | 'commands'
|
|
|
79
87
|
},
|
|
80
88
|
renderOwners && buildOwnersSection(owners),
|
|
81
89
|
renderRepository && buildRepositorySection(message.data.repository as { url: string; language: string }),
|
|
90
|
+
hasAttachments && buildAttachmentsSection(message.data.attachments as any[]),
|
|
82
91
|
].filter(Boolean) as ChildRef[],
|
|
83
92
|
};
|
|
84
93
|
};
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
shouldRenderSideBarSection,
|
|
10
10
|
buildResourceGroupSections,
|
|
11
11
|
buildRepositorySection,
|
|
12
|
+
buildAttachmentsSection,
|
|
12
13
|
} from './shared';
|
|
13
14
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
14
15
|
import { pluralizeMessageType } from '@utils/collections/messages';
|
|
@@ -29,6 +30,8 @@ export const buildServiceNode = (service: CollectionEntry<'services'>, owners: a
|
|
|
29
30
|
const serviceFlows = service.data.flows || [];
|
|
30
31
|
const hasFlows = serviceFlows.length > 0;
|
|
31
32
|
|
|
33
|
+
const hasAttachments = service.data.attachments && service.data.attachments.length > 0;
|
|
34
|
+
|
|
32
35
|
const hasDataStores = dataStoresInService.length > 0;
|
|
33
36
|
const resourceGroups = service.data.resourceGroups || [];
|
|
34
37
|
const hasResourceGroups = resourceGroups.length > 0;
|
|
@@ -145,6 +148,7 @@ export const buildServiceNode = (service: CollectionEntry<'services'>, owners: a
|
|
|
145
148
|
},
|
|
146
149
|
renderOwners && buildOwnersSection(owners),
|
|
147
150
|
renderRepository && buildRepositorySection(service.data.repository as { url: string; language: string }),
|
|
151
|
+
hasAttachments && buildAttachmentsSection(service.data.attachments as any[]),
|
|
148
152
|
].filter(Boolean) as ChildRef[],
|
|
149
153
|
};
|
|
150
154
|
};
|
|
@@ -98,6 +98,19 @@ export const buildRepositorySection = (repository: { url: string; language: stri
|
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
+
export const buildAttachmentsSection = (attachments: any[]): NavNode | null => {
|
|
102
|
+
if (!attachments) return null;
|
|
103
|
+
return {
|
|
104
|
+
type: 'group',
|
|
105
|
+
title: 'Attachments',
|
|
106
|
+
icon: 'File',
|
|
107
|
+
pages: attachments.map((attachment) => ({
|
|
108
|
+
type: 'item',
|
|
109
|
+
title: attachment.title,
|
|
110
|
+
href: attachment.url,
|
|
111
|
+
})),
|
|
112
|
+
};
|
|
113
|
+
};
|
|
101
114
|
export const buildResourceGroupSections = (resourceGroups: ResourceGroup[], context: ResourceGroupContext) => {
|
|
102
115
|
return resourceGroups.map((resourceGroup) => buildResourceGroupSection(resourceGroup, context));
|
|
103
116
|
};
|
|
@@ -292,7 +292,7 @@ export const getNodesAndEdges = async ({
|
|
|
292
292
|
const uniqueEdges = edges.reduce((acc: any[], edge: any) => {
|
|
293
293
|
const existingEdge = acc.find((e: any) => e.id === edge.id);
|
|
294
294
|
if (existingEdge) {
|
|
295
|
-
existingEdge.label = `${existingEdge.label} & ${edge.label}`;
|
|
295
|
+
// existingEdge.label = `${existingEdge.label} & ${edge.label}`;
|
|
296
296
|
// Add the custom colors to the existing edge which can be an array of strings
|
|
297
297
|
const value = Array.isArray(edge.data.customColor) ? edge.data.customColor : [edge.data.customColor];
|
|
298
298
|
const existingValue = Array.isArray(existingEdge.data.customColor)
|
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": "3.0.0-beta.
|
|
9
|
+
"version": "3.0.0-beta.23",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@eventcatalog/generator-ai": "^1.1.0",
|
|
35
35
|
"@eventcatalog/license": "^0.0.7",
|
|
36
36
|
"@eventcatalog/linter": "^0.0.2",
|
|
37
|
-
"@eventcatalog/sdk": "^2.9.
|
|
37
|
+
"@eventcatalog/sdk": "^2.9.9",
|
|
38
38
|
"@eventcatalog/visualizer": "^0.0.6",
|
|
39
39
|
"@fontsource/inter": "^5.2.5",
|
|
40
40
|
"@headlessui/react": "^2.0.3",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@tanstack/react-table": "^8.17.3",
|
|
54
54
|
"@xyflow/react": "^12.3.6",
|
|
55
55
|
"ai": "^5.0.60",
|
|
56
|
-
"astro": "^5.16.
|
|
56
|
+
"astro": "^5.16.6",
|
|
57
57
|
"astro-compress": "^2.3.8",
|
|
58
58
|
"astro-expressive-code": "^0.41.3",
|
|
59
59
|
"astro-seo": "^0.8.4",
|