@eventcatalog/core 2.30.1 → 2.30.3
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/LICENSE.md +1 -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-RC4ARAOT.js → chunk-CCVSDM76.js} +1 -1
- package/dist/{chunk-AGI6ZQUB.js → chunk-IVR43LJH.js} +1 -1
- package/dist/{chunk-NSBAGG3S.js → chunk-RM75NXXT.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/components/Grids/DomainGrid.tsx +5 -2
- package/eventcatalog/src/components/Grids/ServiceGrid.tsx +5 -5
- package/eventcatalog/src/components/MDX/Tiles/Tile.astro +3 -2
- package/eventcatalog/src/components/MDX/Tiles/Tiles.astro +4 -4
- package/eventcatalog/src/content.config.ts +4 -1
- package/eventcatalog/src/pages/docs/_default-docs.mdx +16 -15
- package/eventcatalog/src/pages/docs/index.astro +6 -2
- package/eventcatalog/src/utils/pages.ts +2 -2
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -5,7 +5,7 @@ Source code in this repository is split into two parts:
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
All code outside of the
|
|
8
|
+
All code outside of the `eventcatalog/src/enterprise` directory is licensed under the MIT license which is below.
|
|
9
9
|
|
|
10
10
|
MIT License
|
|
11
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IVR43LJH.js";
|
|
4
|
+
import "../chunk-CCVSDM76.js";
|
|
5
|
+
import "../chunk-RM75NXXT.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,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-IVR43LJH.js";
|
|
10
|
+
import "./chunk-CCVSDM76.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-7SI5EVOX.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RM75NXXT.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled
|
|
20
20
|
} from "./chunk-XMDPVKIJ.js";
|
|
@@ -146,7 +146,9 @@ export default function DomainGrid({ domains, embeded }: DomainGridProps) {
|
|
|
146
146
|
<div className="bg-white border-r border-gray-200 px-2 py-1.5 rounded-l-md">
|
|
147
147
|
<Icon className={`h-3 w-3 text-${color}-500`} />
|
|
148
148
|
</div>
|
|
149
|
-
<span className="px-1 py-1">
|
|
149
|
+
<span className="px-1 py-1 truncate max-w-[140px]">
|
|
150
|
+
{message.id} really long name that might break something
|
|
151
|
+
</span>
|
|
150
152
|
</div>
|
|
151
153
|
);
|
|
152
154
|
})}
|
|
@@ -189,7 +191,8 @@ export default function DomainGrid({ domains, embeded }: DomainGridProps) {
|
|
|
189
191
|
<div className="bg-white border-r border-gray-200 px-2 py-1.5 rounded-l-md">
|
|
190
192
|
<Icon className={`h-3 w-3 text-${color}-500`} />
|
|
191
193
|
</div>
|
|
192
|
-
|
|
194
|
+
|
|
195
|
+
<span className="px-1 py-1 truncate max-w-[140px]">{message.id}</span>
|
|
193
196
|
</div>
|
|
194
197
|
);
|
|
195
198
|
})}
|
|
@@ -224,9 +224,9 @@ export default function ServiceGrid({ services, embeded }: ServiceGridProps) {
|
|
|
224
224
|
>
|
|
225
225
|
<div className="p-6">
|
|
226
226
|
<div className="flex items-center justify-between mb-3">
|
|
227
|
-
<div className="flex items-center gap-2">
|
|
227
|
+
<div className="flex items-center gap-2 w-full">
|
|
228
228
|
<ServerIcon className="h-5 w-5 text-pink-500" />
|
|
229
|
-
<h3 className="text-lg font-semibold text-gray-900 truncate group-hover:underline transition-colors duration-200">
|
|
229
|
+
<h3 className="text-lg font-semibold text-gray-900 truncate group-hover:underline transition-colors duration-200 w-full max-w-[90%]">
|
|
230
230
|
{service.data.name || service.data.id} (v{service.data.version})
|
|
231
231
|
</h3>
|
|
232
232
|
</div>
|
|
@@ -257,7 +257,7 @@ export default function ServiceGrid({ services, embeded }: ServiceGridProps) {
|
|
|
257
257
|
<div className="bg-white border-r border-gray-200 px-2 py-1.5 rounded-l-md">
|
|
258
258
|
<Icon className={`h-3 w-3 text-${color}-500`} />
|
|
259
259
|
</div>
|
|
260
|
-
<span className="px-1 py-1">{message.data.name}</span>
|
|
260
|
+
<span className="px-1 py-1 truncate max-w-[140px]">{message.data.name}</span>
|
|
261
261
|
</a>
|
|
262
262
|
);
|
|
263
263
|
})}
|
|
@@ -277,7 +277,7 @@ export default function ServiceGrid({ services, embeded }: ServiceGridProps) {
|
|
|
277
277
|
</div>
|
|
278
278
|
</div>
|
|
279
279
|
|
|
280
|
-
<div className="flex items-center gap-2">
|
|
280
|
+
<div className="flex items-center gap-2 max-w-[200px]">
|
|
281
281
|
<div className="w-4 h-[2px] bg-blue-200"></div>
|
|
282
282
|
<div className="bg-white border-2 border-pink-100 rounded-lg p-4 shadow-sm">
|
|
283
283
|
<div className="flex flex-col items-center gap-3">
|
|
@@ -308,7 +308,7 @@ export default function ServiceGrid({ services, embeded }: ServiceGridProps) {
|
|
|
308
308
|
<div className="bg-white border-r border-gray-200 px-2 py-1.5 rounded-l-md">
|
|
309
309
|
<Icon className={`h-3 w-3 text-${color}-500`} />
|
|
310
310
|
</div>
|
|
311
|
-
<span className="px-1 py-1">{message.data.name}</span>
|
|
311
|
+
<span className="px-1 py-1 truncate max-w-[140px]">{message.data.name}</span>
|
|
312
312
|
</a>
|
|
313
313
|
);
|
|
314
314
|
})}
|
|
@@ -6,12 +6,13 @@ import { buildUrl } from '@utils/url-builder';
|
|
|
6
6
|
interface Props {
|
|
7
7
|
href: string;
|
|
8
8
|
icon: keyof typeof Icons;
|
|
9
|
+
iconColor?: string;
|
|
9
10
|
title: string;
|
|
10
11
|
openWindow?: boolean;
|
|
11
12
|
description: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
const { href, icon, title, description, openWindow } = Astro.props;
|
|
15
|
+
const { href, icon, title, description, openWindow, iconColor = 'text-primary' } = Astro.props;
|
|
15
16
|
|
|
16
17
|
const IconComponent: ComponentType<{ className?: string }> | undefined = Icons[icon];
|
|
17
18
|
|
|
@@ -28,7 +29,7 @@ function startsWithProtocol(str: string) {
|
|
|
28
29
|
class="block bg-white border border-gray-200 rounded-lg p-6 transition-all duration-300 ease-in-out hover:shadow-md hover:border-primary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-primary focus:ring-white"
|
|
29
30
|
>
|
|
30
31
|
<div class="flex flex-col h-full space-y-8">
|
|
31
|
-
{IconComponent && <IconComponent className=
|
|
32
|
+
{IconComponent && <IconComponent className={`w-6 h-6 ${iconColor}`} />}
|
|
32
33
|
<div>
|
|
33
34
|
<h2 class="text-gray-800 text-lg font-semibold transition-colors duration-300 ease-in-out group-hover:text-gray-300">
|
|
34
35
|
{title}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
const { title } = Astro.props;
|
|
2
|
+
const { title, columns = 2 } = Astro.props;
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<
|
|
5
|
+
<section class="not-prose">
|
|
6
6
|
{title && <h2 class="text-2xl font-bold text-gray-800 mb-4">{title}</h2>}
|
|
7
|
-
<div class={`grid grid-cols-1 md:grid-cols
|
|
7
|
+
<div class={`grid grid-cols-1 md:grid-cols-${columns} gap-4 w-full not-prose`}>
|
|
8
8
|
<slot />
|
|
9
9
|
</div>
|
|
10
|
-
</
|
|
10
|
+
</section>
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
# **EventCatalog**
|
|
2
|
-
|
|
3
|
-
Welcome to [EventCatalog](https://www.eventcatalog.dev/).
|
|
1
|
+
# **Welcome to EventCatalog**
|
|
4
2
|
|
|
5
3
|
This open-source project is designed to help you and your teams bring discoverability and clarity to your event-driven architectures (EDA).
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
This page can be replaced with your own content, but to help you get started, we have created a few guides and resources.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
<Tiles columns={3}>
|
|
8
|
+
<Tile icon="BookOpenIcon" href="https://eventcatalog.dev/docs/development/getting-started/introduction" title="Getting started with EventCatalog" description="How to get started with EventCatalog" />
|
|
9
|
+
<Tile icon="RectangleGroupIcon" href="https://eventcatalog.dev/docs/development/guides/domains/adding-domains" title="Creating domains" description="Learn how to create domains in your event catalog" />
|
|
10
|
+
<Tile icon="ServerIcon" href="https://eventcatalog.dev/docs/development/guides/services/adding-services" title="Creating services" description="Learn how to create services in your event catalog" />
|
|
11
|
+
<Tile icon="ChatBubbleLeftIcon" iconColor="text-blue-500" href="https://eventcatalog.dev/docs/development/guides/messages/commands/introduction" title="Creating commands" description="Learn how to create commands in your event catalog" />
|
|
12
|
+
<Tile icon="BoltIcon" iconColor="text-orange-500" href="https://eventcatalog.dev/docs/development/guides/messages/events/introduction" title="Creating events" description="Learn how to create events in your event catalog" />
|
|
13
|
+
<Tile icon="UserGroupIcon" iconColor="text-green-500" href="https://eventcatalog.dev/docs/owners" title="Assigning owners to resources" description="Learn how to assign owners to resources in your event catalog" />
|
|
14
|
+
</Tiles>
|
|
17
15
|
|
|
18
16
|
### **Join the community**
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
Our project and community is growing fast. We have over 1000+ members in our [Discord community](https://discord.gg/3rjaZMmrAm).
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
<Tiles columns={2}>
|
|
21
|
+
<Tile icon="UserGroupIcon" iconColor="text-green-500" href="https://discord.gg/3rjaZMmrAm" title="Join the Discord community" description="Join the community to get help and support" />
|
|
22
|
+
<Tile icon="StarIcon" iconColor="text-yellow-500" href="https://github.com/event-catalog/eventcatalog/stargazers" title="Star EventCatalog on GitHub" description="If you like the project, please star it on GitHub to show your support ❤️" />
|
|
23
|
+
</Tiles>
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
---
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Footer from '@layouts/Footer.astro';
|
|
3
3
|
import components from '@components/MDX/page-components';
|
|
4
|
+
import mdxComponents from '@components/MDX/components';
|
|
4
5
|
import { getIndexPage } from '@utils/pages';
|
|
5
6
|
import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
|
|
7
|
+
import { render } from 'astro:content';
|
|
6
8
|
|
|
7
9
|
const page = await getIndexPage();
|
|
8
10
|
let CustomContent = null;
|
|
9
11
|
|
|
12
|
+
const props = Astro.props;
|
|
13
|
+
|
|
10
14
|
if (page) {
|
|
11
|
-
const { Content } = await
|
|
15
|
+
const { Content } = await render(page);
|
|
12
16
|
CustomContent = Content;
|
|
13
17
|
} else {
|
|
14
18
|
CustomContent = await import('./_default-docs.mdx').then((mod) => mod.default);
|
|
@@ -20,7 +24,7 @@ if (page) {
|
|
|
20
24
|
<div class="flex docs-layout w-full">
|
|
21
25
|
<div class="w-full lg:mr-2 pr-8 overflow-y-auto py-8">
|
|
22
26
|
<div class="prose prose-md w-full !max-w-none">
|
|
23
|
-
<CustomContent components={components} />
|
|
27
|
+
<CustomContent components={{ ...components, ...mdxComponents(props) }} />
|
|
24
28
|
</div>
|
|
25
29
|
<Footer />
|
|
26
30
|
</div>
|
|
@@ -11,10 +11,10 @@ export const getPages = async (): Promise<Page[]> => {
|
|
|
11
11
|
|
|
12
12
|
export const getIndexPage = async (): Promise<Page> => {
|
|
13
13
|
const pages = await getCollection('pages');
|
|
14
|
-
return pages.find((page) => page.
|
|
14
|
+
return pages.find((page) => page.data?.id === 'index')!;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const hasLandingPageForDocs = async (): Promise<boolean> => {
|
|
18
18
|
const pages = await getCollection('pages');
|
|
19
|
-
return pages.some((page) => page.
|
|
19
|
+
return pages.some((page) => page.data?.id === 'index')!;
|
|
20
20
|
};
|