@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 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 `/src/enterprise` directory is licensed under the MIT license which is below.
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
 
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.30.1";
40
+ var version = "2.30.3";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-RC4ARAOT.js";
4
- import "../chunk-NSBAGG3S.js";
3
+ } from "../chunk-CCVSDM76.js";
4
+ import "../chunk-RM75NXXT.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.30.1";
109
+ var version = "2.30.3";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-AGI6ZQUB.js";
4
- import "../chunk-RC4ARAOT.js";
5
- import "../chunk-NSBAGG3S.js";
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-NSBAGG3S.js";
3
+ } from "./chunk-RM75NXXT.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-RC4ARAOT.js";
3
+ } from "./chunk-CCVSDM76.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.30.1";
2
+ var version = "2.30.3";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.30.1";
28
+ var version = "2.30.3";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-NSBAGG3S.js";
3
+ } from "./chunk-RM75NXXT.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.30.1";
160
+ var version = "2.30.3";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-AGI6ZQUB.js";
10
- import "./chunk-RC4ARAOT.js";
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-NSBAGG3S.js";
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">{message.id}</span>
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
- <span className="px-1 py-1">{message.id}</span>
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="w-6 h-6 text-primary" />}
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
- <sectio class="not-prose">
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-2 gap-4 w-full not-prose`}>
7
+ <div class={`grid grid-cols-1 md:grid-cols-${columns} gap-4 w-full not-prose`}>
8
8
  <slot />
9
9
  </div>
10
- </sectio>
10
+ </section>
@@ -17,7 +17,10 @@ const badge = z.object({
17
17
  });
18
18
 
19
19
  const pages = defineCollection({
20
- type: 'content',
20
+ loader: glob({
21
+ pattern: ['**/pages/*.(md|mdx)'],
22
+ base: projectDirBase,
23
+ }),
21
24
  schema: z
22
25
  .object({
23
26
  id: z.string(),
@@ -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
- To get started you can read the following guides:
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
- - [Getting started with EventCatalog](https://eventcatalog.dev/docs/development/getting-started/introduction)
10
- - [Creating domains](https://eventcatalog.dev/docs/development/guides/domains/adding-domains)
11
- - [Creating services](https://eventcatalog.dev/docs/development/guides/services/adding-services)
12
- - [Creating commands](https://eventcatalog.dev/docs/development/guides/messages/commands/introduction)
13
- - [Creating events](https://eventcatalog.dev/docs/development/guides/messages/events/introduction)
14
- - [Assigning owners to resources](https://eventcatalog.dev/docs/owners)
15
- - [Using components in your pages (Schemas, OpenAPI, etc)](https://eventcatalog.dev/docs/development/components/using-components)
16
- - [Deploying and hosting your EventCatalog](https://eventcatalog.dev/docs/development/deployment)
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
- Got questions about EventCatalog? Feature requests or need support? [Join our community on Discord.](https://discord.gg/3rjaZMmrAm)
18
+ Our project and community is growing fast. We have over 1000+ members in our [Discord community](https://discord.gg/3rjaZMmrAm).
21
19
 
22
- ### **Enterprise support**
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
- Using EventCatalog and needs enterprise support? Work with us, find out what we offer on our [enterprise page](https://eventcatalog.dev/enterprise).
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 page.render();
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.slug === 'index')!;
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.slug === 'index')!;
19
+ return pages.some((page) => page.data?.id === 'index')!;
20
20
  };
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.30.1",
9
+ "version": "2.30.3",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },