@eventcatalog/core 2.30.1 → 2.30.2

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.2";
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-QVPNBOPX.js";
4
+ import "../chunk-RT7R2WPP.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.2";
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-CIVWQLRA.js";
4
+ import "../chunk-QVPNBOPX.js";
5
+ import "../chunk-RT7R2WPP.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
  raiseEvent
3
- } from "./chunk-RC4ARAOT.js";
3
+ } from "./chunk-QVPNBOPX.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-NSBAGG3S.js";
3
+ } from "./chunk-RT7R2WPP.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.30.1";
2
+ var version = "2.30.2";
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.2";
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-RT7R2WPP.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.2";
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-CIVWQLRA.js";
10
+ import "./chunk-QVPNBOPX.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-RT7R2WPP.js";
18
18
  import {
19
19
  isBackstagePluginEnabled
20
20
  } from "./chunk-XMDPVKIJ.js";
@@ -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.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },