@eventcatalog/core 2.23.1 → 2.23.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
@@ -32,10 +32,10 @@
32
32
  <h4>Features: Documentation generator for Event Driven Architectures, Integration with any broker, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
33
33
 
34
34
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
35
- [![All Contributors](https://img.shields.io/badge/all_contributors-47-orange.svg?style=flat-square)](#contributors-)
35
+ [![All Contributors](https://img.shields.io/badge/all_contributors-48-orange.svg?style=flat-square)](#contributors-)
36
36
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
37
37
 
38
- [Read the Docs](https://eventcatalog.dev/) | [Edit the Docs](https://github.com/event-catalog/docs) | [View Demo](https://demo.eventcatalog.dev/docs)
38
+ [Read the Docs](https://www.eventcatalog.dev/product/documentation) | [View Demo](https://demo.eventcatalog.dev/docs)
39
39
 
40
40
  </div>
41
41
 
@@ -44,14 +44,14 @@
44
44
  # Core Features
45
45
 
46
46
  - 📃 Document domains, services and messages ([demo](https://demo.eventcatalog.dev/docs))
47
- - 📊 Visualise your architecture ([demo](https://demo.eventcatalog.dev/visualiser))
47
+ - 📊 Visualise your architecture ([demo](https://demo.eventcatalog.dev/visualiser/domains/Orders))
48
48
  - ⭐ Supports any Schema format (e.g Avro, JSON) ([demo](https://demo.eventcatalog.dev/docs/events/InventoryAdjusted/0.0.4))
49
49
  - 🗂️ Document any code examples (Any code snippet)
50
50
  - 💅 Custom MDX components ([read more](https://eventcatalog.dev/docs/development/components/using-components))
51
51
  - 🗄️ Version domains, services and messages
52
52
  - ⭐ Discoverability feature (search, filter and more) ([demo](https://demo.eventcatalog.dev/discover/events))
53
53
  - ⭐ Document teams and users ([demo](https://demo.eventcatalog.dev/docs/teams/full-stack))
54
- - 🤖 Automate your catalogs with [generators](https://www.eventcatalog.dev/docs/development/plugins/plugin-overview) (e.g generate your catalogs from your [AsyncAPI](https://www.eventcatalog.dev/docs/ascynapi)/[OpenAPI](https://www.eventcatalog.dev/docs/openapi) documents)
54
+ - 🤖 Automate your catalogs with [generators](https://www.eventcatalog.dev/docs/development/plugins/plugin-overview) (e.g generate your catalogs from your [AsyncAPI](https://www.eventcatalog.dev/docs/asyncapi)/[OpenAPI](https://www.eventcatalog.dev/docs/openapi) documents)
55
55
  - 👨🏼‍💻 Follows [Docs as code](https://www.writethedocs.org/guide/docs-as-code/) principles
56
56
  - ⭐ And much more...
57
57
 
@@ -251,6 +251,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
251
251
  <td align="center" valign="top" width="14.28%"><a href="https://pallares.io"><img src="https://avatars.githubusercontent.com/u/1077520?v=4?s=100" width="100px;" alt="Cristian Pallarés"/><br /><sub><b>Cristian Pallarés</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=skyrpex" title="Code">💻</a></td>
252
252
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/SebasRendon12"><img src="https://avatars.githubusercontent.com/u/69688183?v=4?s=100" width="100px;" alt="Sebastian Rendon"/><br /><sub><b>Sebastian Rendon</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=SebasRendon12" title="Code">💻</a></td>
253
253
  <td align="center" valign="top" width="14.28%"><a href="http://craig0990.co.uk"><img src="https://avatars.githubusercontent.com/u/461897?v=4?s=100" width="100px;" alt="Craig Roberts"/><br /><sub><b>Craig Roberts</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=craig0990" title="Code">💻</a></td>
254
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Vertygo"><img src="https://avatars.githubusercontent.com/u/1658326?v=4?s=100" width="100px;" alt="Ivan Milosavljevic"/><br /><sub><b>Ivan Milosavljevic</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=Vertygo" title="Documentation">📖</a></td>
254
255
  </tr>
255
256
  </tbody>
256
257
  </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.23.1";
40
+ var version = "2.23.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-GGTLXJHB.js";
4
- import "../chunk-MUBFMCSR.js";
3
+ } from "../chunk-RMESKTDM.js";
4
+ import "../chunk-OXD723LJ.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.23.1";
109
+ var version = "2.23.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-I76AB6JV.js";
4
- import "../chunk-GGTLXJHB.js";
5
- import "../chunk-MUBFMCSR.js";
3
+ } from "../chunk-W3SPESBN.js";
4
+ import "../chunk-RMESKTDM.js";
5
+ import "../chunk-OXD723LJ.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.23.1";
2
+ var version = "2.23.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-MUBFMCSR.js";
3
+ } from "./chunk-OXD723LJ.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-GGTLXJHB.js";
3
+ } from "./chunk-RMESKTDM.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.23.1";
28
+ var version = "2.23.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-MUBFMCSR.js";
3
+ } from "./chunk-OXD723LJ.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.23.1";
164
+ var version = "2.23.2";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-OW2FQPYP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-I76AB6JV.js";
10
- import "./chunk-GGTLXJHB.js";
9
+ } from "./chunk-W3SPESBN.js";
10
+ import "./chunk-RMESKTDM.js";
11
11
  import {
12
12
  catalogToAstro
13
13
  } from "./chunk-CXKIF3EI.js";
14
14
  import {
15
15
  VERSION
16
- } from "./chunk-MUBFMCSR.js";
16
+ } from "./chunk-OXD723LJ.js";
17
17
  import {
18
18
  isBackstagePluginEnabled
19
19
  } from "./chunk-XMDPVKIJ.js";
@@ -128,6 +128,18 @@ export const columns = () => [
128
128
  if (sends?.length === 0 || !sends)
129
129
  return <div className="text-sm text-gray-400/80 text-left italic">Service sends no messages.</div>;
130
130
 
131
+ const sendersWithIcons = useMemo(
132
+ () =>
133
+ sends?.map((sender) => {
134
+ const type = sender.collection.slice(0, -1);
135
+ return {
136
+ ...sender,
137
+ ...getColorAndIconForMessageType(type),
138
+ };
139
+ }) || [],
140
+ [sends]
141
+ );
142
+
131
143
  return (
132
144
  <div>
133
145
  {isExpandable && (
@@ -137,30 +149,25 @@ export const columns = () => [
137
149
  )}
138
150
  {isExpanded && (
139
151
  <ul>
140
- {sends.map((consumer, index) => {
141
- const type = consumer.collection.slice(0, -1);
142
- const color = type === 'event' ? 'orange' : 'blue';
143
- const Icon = type === 'event' ? BoltIcon : ChatBubbleLeftIcon;
144
- return (
145
- <li key={`${consumer.data.id}-${index}`} className="py-1 group font-light">
146
- <a
147
- href={buildUrl(`/docs/${consumer.collection}/${consumer.data.id}/${consumer.data.version}`)}
148
- className="group-hover:text-primary flex space-x-1 items-center "
149
- >
150
- <div className={`flex items-center border border-gray-300 shadow-sm rounded-md`}>
151
- <span className="flex items-center">
152
- <span className={`bg-${color}-500 h-full rounded-tl rounded-bl p-1`}>
153
- <Icon className="h-4 w-4 text-white" />
154
- </span>
155
- <span className="leading-none px-2 group-hover:underline ">
156
- {consumer.data.name} (v{consumer.data.version})
157
- </span>
152
+ {sendersWithIcons.map((sender, index) => (
153
+ <li key={`${sender.data.id}-${index}`} className="py-1 group font-light">
154
+ <a
155
+ href={buildUrl(`/docs/${sender.collection}/${sender.data.id}/${sender.data.version}`)}
156
+ className="group-hover:text-primary flex space-x-1 items-center "
157
+ >
158
+ <div className={`flex items-center border border-gray-300 shadow-sm rounded-md`}>
159
+ <span className="flex items-center">
160
+ <span className={`bg-${sender.color}-500 h-full rounded-tl rounded-bl p-1`}>
161
+ <sender.Icon className="h-4 w-4 text-white" />
158
162
  </span>
159
- </div>
160
- </a>
161
- </li>
162
- );
163
- })}
163
+ <span className="leading-none px-2 group-hover:underline ">
164
+ {sender.data.name} (v{sender.data.version})
165
+ </span>
166
+ </span>
167
+ </div>
168
+ </a>
169
+ </li>
170
+ ))}
164
171
  </ul>
165
172
  )}
166
173
  </div>
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.23.1",
9
+ "version": "2.23.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },