@eventcatalog/core 2.46.0 → 2.47.1
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-DGPDGCPS.js → chunk-QWDFTW7H.js} +1 -1
- package/dist/{chunk-GXL54GNJ.js → chunk-WWYOMQLW.js} +1 -1
- package/dist/{chunk-IVCYYU5X.js → chunk-YJYT2E6S.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/astro.config.mjs +4 -1
- package/eventcatalog/src/components/Grids/ServiceGrid.tsx +1 -1
- package/eventcatalog/src/components/SideNav/ListViewSideBar/index.tsx +0 -3
- package/eventcatalog/src/components/SideNav/ListViewSideBar/utils.ts +32 -5
- package/eventcatalog/src/components/SideNav/SideNav.astro +3 -3
- package/package.json +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-YJYT2E6S.js";
|
|
4
|
+
import "../chunk-QWDFTW7H.js";
|
|
5
|
+
import "../chunk-WWYOMQLW.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
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-YJYT2E6S.js";
|
|
10
|
+
import "./chunk-QWDFTW7H.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-EXAALOQA.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WWYOMQLW.js";
|
|
19
19
|
import {
|
|
20
20
|
isAuthEnabled,
|
|
21
21
|
isBackstagePluginEnabled,
|
|
@@ -69,13 +69,16 @@ export default defineConfig({
|
|
|
69
69
|
{
|
|
70
70
|
behavior: 'append',
|
|
71
71
|
properties: { className: ['anchor-link'] },
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
},
|
|
74
74
|
],
|
|
75
75
|
],
|
|
76
76
|
gfm: true,
|
|
77
77
|
}),
|
|
78
78
|
config.output !== 'server' && pagefind(),
|
|
79
|
+
config.output !== 'server' && (await import("astro-compress")).default({
|
|
80
|
+
Logger: 0,
|
|
81
|
+
}),
|
|
79
82
|
].filter(Boolean),
|
|
80
83
|
vite: {
|
|
81
84
|
define: {
|
|
@@ -128,7 +128,7 @@ const DomainSection = memo(
|
|
|
128
128
|
return (
|
|
129
129
|
<div className="space-y-6">
|
|
130
130
|
{servicesWithoutSubdomains.length > 0 && (
|
|
131
|
-
<div className="grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-
|
|
131
|
+
<div className="grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-1 gap-6">
|
|
132
132
|
{servicesWithoutSubdomains.map((service) => (
|
|
133
133
|
<ServiceCard key={service.data.id} service={service} urlParams={urlParams} selectedTypes={selectedTypes} />
|
|
134
134
|
))}
|
|
@@ -76,9 +76,6 @@ const ServiceItem = React.memo(
|
|
|
76
76
|
isVisualizer: boolean;
|
|
77
77
|
searchTerm: string;
|
|
78
78
|
}) => {
|
|
79
|
-
const asyncAPISpecifications = item.specifications?.filter((spec) => spec.type === 'asyncapi');
|
|
80
|
-
const openAPISpecifications = item.specifications?.filter((spec) => spec.type === 'openapi');
|
|
81
|
-
|
|
82
79
|
return (
|
|
83
80
|
<CollapsibleGroup
|
|
84
81
|
isCollapsed={collapsedGroups[item.href]}
|
|
@@ -8,6 +8,15 @@ import { getCommands } from '@utils/commands';
|
|
|
8
8
|
import { getEvents } from '@utils/events';
|
|
9
9
|
import { getQueries } from '@utils/queries';
|
|
10
10
|
|
|
11
|
+
const stripCollection = (collection: any) => {
|
|
12
|
+
return collection.map((item: any) => ({
|
|
13
|
+
data: {
|
|
14
|
+
id: item.data.id,
|
|
15
|
+
version: item.data.version,
|
|
16
|
+
},
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
|
|
11
20
|
export async function getResourcesForNavigation({ currentPath }: { currentPath: string }) {
|
|
12
21
|
const events = await getEvents({ getAllVersions: false });
|
|
13
22
|
const commands = await getCommands({ getAllVersions: false });
|
|
@@ -45,15 +54,33 @@ export async function getResourcesForNavigation({ currentPath }: { currentPath:
|
|
|
45
54
|
const entities = isCollectionDomain || isCollectionService ? item.data.entities || null : null;
|
|
46
55
|
// Add href to the sends and receives
|
|
47
56
|
const sendsWithHref = sends?.map((send: any) => ({
|
|
48
|
-
|
|
57
|
+
id: send.data.id,
|
|
58
|
+
data: {
|
|
59
|
+
name: send.data.name,
|
|
60
|
+
sidebar: send.data.sidebar,
|
|
61
|
+
aggregateRoot: send?.data?.aggregateRoot,
|
|
62
|
+
},
|
|
63
|
+
collection: send.collection,
|
|
49
64
|
href: buildUrl(`/${route}/${send.collection}/${send.data.id}/${send.data.version}`),
|
|
50
65
|
}));
|
|
51
66
|
const receivesWithHref = receives?.map((receive: any) => ({
|
|
52
|
-
|
|
67
|
+
id: receive.data.id,
|
|
68
|
+
data: {
|
|
69
|
+
name: receive.data.name,
|
|
70
|
+
sidebar: receive.data.sidebar,
|
|
71
|
+
aggregateRoot: receive?.data?.aggregateRoot,
|
|
72
|
+
},
|
|
73
|
+
collection: receive.collection,
|
|
53
74
|
href: buildUrl(`/${route}/${receive.collection}/${receive.data.id}/${receive.data.version}`),
|
|
54
75
|
}));
|
|
55
76
|
const entitiesWithHref = entities?.map((entity: any) => ({
|
|
56
|
-
|
|
77
|
+
id: entity.data.id,
|
|
78
|
+
data: {
|
|
79
|
+
name: entity.data.name,
|
|
80
|
+
sidebar: entity.data.sidebar,
|
|
81
|
+
aggregateRoot: entity?.data?.aggregateRoot,
|
|
82
|
+
},
|
|
83
|
+
collection: entity.collection,
|
|
57
84
|
href: buildUrl(`/${route}/${entity.collection}/${entity.data.id}/${entity.data.version}`),
|
|
58
85
|
}));
|
|
59
86
|
|
|
@@ -76,8 +103,8 @@ export async function getResourcesForNavigation({ currentPath }: { currentPath:
|
|
|
76
103
|
servicesCount,
|
|
77
104
|
id: item.data.id,
|
|
78
105
|
name: item.data.name,
|
|
79
|
-
services: isCollectionDomain ? item.data.services : null,
|
|
80
|
-
domains: isCollectionDomain ? item.data.domains : null,
|
|
106
|
+
services: isCollectionDomain ? stripCollection(item.data.services) : null,
|
|
107
|
+
domains: isCollectionDomain ? stripCollection(item.data.domains) : null,
|
|
81
108
|
sends: sendsWithHref,
|
|
82
109
|
receives: receivesWithHref,
|
|
83
110
|
entities: entitiesWithHref,
|
|
@@ -19,10 +19,10 @@ let props;
|
|
|
19
19
|
|
|
20
20
|
const SIDENAV_TYPE = config?.docs?.sidebar?.type ?? 'LIST_VIEW';
|
|
21
21
|
|
|
22
|
-
if (SIDENAV_TYPE === '
|
|
23
|
-
props = getTreeView({ projectDir: process.env.PROJECT_DIR!, currentPath });
|
|
24
|
-
} else if (SIDENAV_TYPE === 'LIST_VIEW') {
|
|
22
|
+
if (SIDENAV_TYPE === 'LIST_VIEW') {
|
|
25
23
|
props = await getListViewResources({ currentPath });
|
|
24
|
+
} else if (SIDENAV_TYPE === 'TREE_VIEW') {
|
|
25
|
+
props = getTreeView({ projectDir: process.env.PROJECT_DIR!, currentPath });
|
|
26
26
|
}
|
|
27
27
|
---
|
|
28
28
|
|
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.
|
|
9
|
+
"version": "2.47.1",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@xyflow/react": "^12.3.6",
|
|
57
57
|
"ai": "^4.3.9",
|
|
58
58
|
"astro": "^5.9.3",
|
|
59
|
+
"astro-compress": "^2.3.8",
|
|
59
60
|
"astro-expressive-code": "^0.40.1",
|
|
60
61
|
"astro-pagefind": "^1.6.0",
|
|
61
62
|
"astro-seo": "^0.8.4",
|