@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 +5 -1
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-HCICJ77X.js → chunk-IR245M5L.js} +1 -1
- package/dist/{chunk-DJEUHHVO.js → chunk-LXA7MV36.js} +1 -1
- package/dist/{chunk-RMB2KQZ5.js → chunk-TY7QVBPY.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/components/Grids/MessageGrid.tsx +4 -4
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Actor.tsx +26 -4
- package/eventcatalog/src/components/MDX/SchemaViewer/SchemaProperty.astro +7 -0
- package/eventcatalog/src/content.config.ts +7 -0
- package/eventcatalog/src/utils/commands.ts +2 -2
- package/eventcatalog/src/utils/events.ts +2 -2
- package/eventcatalog/src/utils/queries.ts +2 -2
- package/package.json +1 -1
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
|
-
[](#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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
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.
|
|
71
|
+
(producer: any) => producer.id === urlParams.serviceId && !producer.id.includes('/versioned/')
|
|
72
72
|
) ||
|
|
73
73
|
message.data.consumers?.some(
|
|
74
|
-
(consumer: any) => consumer.
|
|
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.
|
|
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.
|
|
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
|
|
3
|
+
import { nodeComponents } from '@eventcatalog/visualizer';
|
|
4
4
|
const ActorComponent = nodeComponents.actor;
|
|
5
5
|
|
|
6
|
-
|
|
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 {...
|
|
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
|
|