@eventcatalog/core 2.56.1 → 2.56.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/README.md CHANGED
@@ -34,7 +34,7 @@
34
34
  <h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
35
35
 
36
36
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
37
- [![All Contributors](https://img.shields.io/badge/all_contributors-58-orange.svg?style=flat-square)](#contributors-)
37
+ [![All Contributors](https://img.shields.io/badge/all_contributors-59-orange.svg?style=flat-square)](#contributors-)
38
38
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
39
39
 
40
40
  [Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
@@ -262,6 +262,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
262
262
  <tr>
263
263
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/cc-stjm"><img src="https://avatars.githubusercontent.com/u/47748595?v=4?s=100" width="100px;" alt="cc-stjm"/><br /><sub><b>cc-stjm</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=cc-stjm" title="Code">💻</a></td>
264
264
  <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/lucianlature/"><img src="https://avatars.githubusercontent.com/u/24992?v=4?s=100" width="100px;" alt="Lucian Lature"/><br /><sub><b>Lucian Lature</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Alucianlature" title="Bug reports">🐛</a></td>
265
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/villAsh"><img src="https://avatars.githubusercontent.com/u/50195101?v=4?s=100" width="100px;" alt="Vilas Chauvhan"/><br /><sub><b>Vilas Chauvhan</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=villAsh" title="Code">💻</a></td>
265
266
  </tr>
266
267
  </tbody>
267
268
  </table>
@@ -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.56.1";
40
+ var version = "2.56.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-UB6PKRAW.js";
4
- import "../chunk-W76RLX2N.js";
3
+ } from "../chunk-XCIZLERJ.js";
4
+ import "../chunk-KMF5GGQO.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.56.1";
109
+ var version = "2.56.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-O6YGBXMA.js";
4
- import "../chunk-UB6PKRAW.js";
5
- import "../chunk-W76RLX2N.js";
3
+ } from "../chunk-GVKISWRC.js";
4
+ import "../chunk-XCIZLERJ.js";
5
+ import "../chunk-KMF5GGQO.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-UB6PKRAW.js";
3
+ } from "./chunk-XCIZLERJ.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.56.1";
2
+ var version = "2.56.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-W76RLX2N.js";
3
+ } from "./chunk-KMF5GGQO.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.56.1";
28
+ var version = "2.56.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-W76RLX2N.js";
3
+ } from "./chunk-KMF5GGQO.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.56.1";
160
+ var version = "2.56.2";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-O6YGBXMA.js";
10
- import "./chunk-UB6PKRAW.js";
9
+ } from "./chunk-GVKISWRC.js";
10
+ import "./chunk-XCIZLERJ.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-55D645EH.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-W76RLX2N.js";
18
+ } from "./chunk-KMF5GGQO.js";
19
19
  import {
20
20
  getProjectOutDir,
21
21
  isAuthEnabled,
@@ -93,7 +93,15 @@ const ServiceItem = React.memo(
93
93
  <HighlightedText text={item.label} searchTerm={searchTerm} />
94
94
  <span className="text-xs text-gray-400">{item.draft ? ' (DRAFT)' : ''}</span>
95
95
  </span>
96
- <span className="text-purple-600 ml-2 text-[10px] font-medium bg-purple-50 px-2 py-0.5 rounded">SERVICE</span>
96
+ <span
97
+ style={{
98
+ color: item.sidebar?.color || '#9333ea',
99
+ backgroundColor: item.sidebar?.backgroundColor || '#faf5ff',
100
+ }}
101
+ className="ml-2 rounded bg-purple-50 px-2 py-0.5 text-[10px] font-medium text-purple-600"
102
+ >
103
+ {item.sidebar?.badge ? item.sidebar.badge?.toUpperCase() : 'SERVICE'}
104
+ </span>
97
105
  </button>
98
106
  }
99
107
  >
@@ -24,6 +24,11 @@ export interface ServiceItem {
24
24
  name: string;
25
25
  id: string;
26
26
  version: string;
27
+ sidebar?: {
28
+ badge?: string;
29
+ color?: string;
30
+ backgroundColor?: string;
31
+ };
27
32
  draft: boolean | { title?: string; message: string };
28
33
  sends: MessageItem[];
29
34
  receives: MessageItem[];
@@ -88,6 +88,8 @@ const baseSchema = z.object({
88
88
  .object({
89
89
  label: z.string().optional(),
90
90
  badge: z.string().optional(),
91
+ color: z.string().optional(),
92
+ backgroundColor: z.string().optional(),
91
93
  })
92
94
  .optional(),
93
95
  repository: z
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.56.1",
9
+ "version": "2.56.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },