@eventcatalog/core 2.55.4 → 2.55.6

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-56-orange.svg?style=flat-square)](#contributors-)
37
+ [![All Contributors](https://img.shields.io/badge/all_contributors-58-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)
@@ -259,6 +259,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
259
259
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/simonwfarrow"><img src="https://avatars.githubusercontent.com/u/3245908?v=4?s=100" width="100px;" alt="simonwfarrow"/><br /><sub><b>simonwfarrow</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=simonwfarrow" title="Code">💻</a></td>
260
260
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/augusto-romero-arango"><img src="https://avatars.githubusercontent.com/u/142316821?v=4?s=100" width="100px;" alt="Augusto Romero Arango"/><br /><sub><b>Augusto Romero Arango</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=augusto-romero-arango" title="Code">💻</a></td>
261
261
  </tr>
262
+ <tr>
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
+ <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
+ </tr>
262
266
  </tbody>
263
267
  </table>
264
268
 
@@ -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.55.4";
40
+ var version = "2.55.6";
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-DJEUHHVO.js";
4
- import "../chunk-HCICJ77X.js";
3
+ } from "../chunk-LXA7MV36.js";
4
+ import "../chunk-IR245M5L.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.55.4";
109
+ var version = "2.55.6";
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-RMB2KQZ5.js";
4
- import "../chunk-DJEUHHVO.js";
5
- import "../chunk-HCICJ77X.js";
3
+ } from "../chunk-TY7QVBPY.js";
4
+ import "../chunk-LXA7MV36.js";
5
+ import "../chunk-IR245M5L.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.55.4";
2
+ var version = "2.55.6";
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-HCICJ77X.js";
3
+ } from "./chunk-IR245M5L.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-DJEUHHVO.js";
3
+ } from "./chunk-LXA7MV36.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.55.4";
28
+ var version = "2.55.6";
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-HCICJ77X.js";
3
+ } from "./chunk-IR245M5L.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.55.4";
160
+ var version = "2.55.6";
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-RMB2KQZ5.js";
10
- import "./chunk-DJEUHHVO.js";
9
+ } from "./chunk-TY7QVBPY.js";
10
+ import "./chunk-LXA7MV36.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-HCICJ77X.js";
18
+ } from "./chunk-IR245M5L.js";
19
19
  import {
20
20
  getProjectOutDir,
21
21
  isAuthEnabled,
@@ -68,10 +68,10 @@ export default function MessageGrid({ messages, embeded }: MessageGridProps) {
68
68
  result = result.filter(
69
69
  (message) =>
70
70
  message.data.producers?.some(
71
- (producer: any) => producer.data.id === urlParams.serviceId && !producer.id.includes('/versioned/')
71
+ (producer: any) => producer.id === urlParams.serviceId && !producer.id.includes('/versioned/')
72
72
  ) ||
73
73
  message.data.consumers?.some(
74
- (consumer: any) => consumer.data.id === urlParams.serviceId && !consumer.id.includes('/versioned/')
74
+ (consumer: any) => consumer.id === urlParams.serviceId && !consumer.id.includes('/versioned/')
75
75
  )
76
76
  );
77
77
  }
@@ -121,10 +121,10 @@ export default function MessageGrid({ messages, embeded }: MessageGridProps) {
121
121
 
122
122
  const serviceIdentifier = urlParams.serviceId;
123
123
  const sends = filteredAndSortedMessages.filter((message) =>
124
- message.data.producers?.some((producer: any) => producer.data.id === serviceIdentifier)
124
+ message.data.producers?.some((producer: any) => producer.id === serviceIdentifier)
125
125
  );
126
126
  const receives = filteredAndSortedMessages.filter((message) =>
127
- message.data.consumers?.some((consumer: any) => consumer.data.id === serviceIdentifier)
127
+ message.data.consumers?.some((consumer: any) => consumer.id === serviceIdentifier)
128
128
  );
129
129
 
130
130
  return { sends, receives };
@@ -1,9 +1,31 @@
1
- import { Handle, Position } from '@xyflow/react';
1
+ import { Handle, Position, type XYPosition } from '@xyflow/react';
2
2
 
3
- import { nodeComponents, type ActorNode } from '@eventcatalog/visualizer';
3
+ import { nodeComponents } from '@eventcatalog/visualizer';
4
4
  const ActorComponent = nodeComponents.actor;
5
5
 
6
- export default function ActorNode(props: ActorNode) {
6
+ interface Data {
7
+ data: {
8
+ actor: {
9
+ name: string;
10
+ summary: string;
11
+ };
12
+ mode: 'simple' | 'full';
13
+ };
14
+ type: 'actor';
15
+ id: string;
16
+ position: XYPosition;
17
+ }
18
+
19
+ export default function ActorNode(props: Data) {
20
+ const componentData = {
21
+ ...props,
22
+ data: {
23
+ ...props.data,
24
+ name: props.data.actor.name,
25
+ summary: props.data.actor.summary,
26
+ },
27
+ };
28
+
7
29
  return (
8
30
  <div className="relative">
9
31
  <Handle
@@ -18,7 +40,7 @@ export default function ActorNode(props: ActorNode) {
18
40
  style={{ width: 10, height: 10, background: 'orange', zIndex: 10 }}
19
41
  className="bg-gray-500"
20
42
  />
21
- <ActorComponent {...props} />
43
+ <ActorComponent {...componentData} />
22
44
  </div>
23
45
  );
24
46
  }
@@ -57,6 +57,13 @@ const contentId = `prop-${name}-${level}-${Math.random().toString(36).substring(
57
57
  {details.format ? `<${details.format}>` : ''}
58
58
  {details._refPath && <span class="text-blue-600 ml-1">→ {details._refName || details._refPath}</span>}
59
59
  {details._refNotFound && <span class="text-red-600 ml-1">❌ ref not found</span>}
60
+ {
61
+ details.const !== undefined && (
62
+ <span>
63
+ constant: <code>{details.const}</code>
64
+ </span>
65
+ )
66
+ }
60
67
  </span>
61
68
  </div>
62
69
  {isRequired && <span class="text-red-600 text-xs ml-3 flex-shrink-0">required</span>}
@@ -203,6 +203,7 @@ const flows = defineCollection({
203
203
  actor: z
204
204
  .object({
205
205
  name: z.string(),
206
+ summary: z.string().optional(),
206
207
  })
207
208
  .optional(),
208
209
  custom: z
@@ -500,6 +501,12 @@ const entities = defineCollection({
500
501
  references: z.string().optional(),
501
502
  referencesIdentifier: z.string().optional(),
502
503
  relationType: z.string().optional(),
504
+ enum: z.array(z.string()).optional(),
505
+ items: z
506
+ .object({
507
+ type: z.string(),
508
+ })
509
+ .optional(),
503
510
  })
504
511
  )
505
512
  .optional(),
@@ -51,7 +51,7 @@ export const getCommands = async ({ getAllVersions = true, hydrateServices = tru
51
51
  });
52
52
  })
53
53
  .map((service) => {
54
- if (!hydrateServices) return { id: service.id, version: service.data.version };
54
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
55
55
  return service;
56
56
  });
57
57
 
@@ -64,7 +64,7 @@ export const getCommands = async ({ getAllVersions = true, hydrateServices = tru
64
64
  });
65
65
  })
66
66
  .map((service) => {
67
- if (!hydrateServices) return { id: service.id, version: service.data.version };
67
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
68
68
  return service;
69
69
  });
70
70
 
@@ -51,7 +51,7 @@ export const getEvents = async ({ getAllVersions = true, hydrateServices = true
51
51
  })
52
52
  )
53
53
  .map((service) => {
54
- if (!hydrateServices) return { id: service.id, version: service.data.version };
54
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
55
55
  return service;
56
56
  });
57
57
 
@@ -64,7 +64,7 @@ export const getEvents = async ({ getAllVersions = true, hydrateServices = true
64
64
  })
65
65
  )
66
66
  .map((service) => {
67
- if (!hydrateServices) return { id: service.id, version: service.data.version };
67
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
68
68
  return service;
69
69
  });
70
70
 
@@ -51,7 +51,7 @@ export const getQueries = async ({ getAllVersions = true, hydrateServices = true
51
51
  })
52
52
  )
53
53
  .map((service) => {
54
- if (!hydrateServices) return { id: service.id, version: service.data.version };
54
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
55
55
  return service;
56
56
  });
57
57
 
@@ -64,7 +64,7 @@ export const getQueries = async ({ getAllVersions = true, hydrateServices = true
64
64
  })
65
65
  )
66
66
  .map((service) => {
67
- if (!hydrateServices) return { id: service.id, version: service.data.version };
67
+ if (!hydrateServices) return { id: service.data.id, version: service.data.version };
68
68
  return service;
69
69
  });
70
70
 
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.55.4",
9
+ "version": "2.55.6",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },