@eventcatalog/core 2.41.0 → 2.42.0
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/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-2VVCJWLQ.js → chunk-6XRQ4VOZ.js} +1 -1
- package/dist/{chunk-RJR4RWGX.js → chunk-BYWZ6BFW.js} +1 -1
- package/dist/{chunk-KSA77O7W.js → chunk-M5NGWRPO.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +5 -0
- package/dist/eventcatalog.config.d.ts +5 -0
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/pages/docs/llm/llms.txt.ts +1 -1
- package/eventcatalog/src/utils/node-graphs/utils/utils.ts +13 -11
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6XRQ4VOZ.js";
|
|
4
|
+
import "../chunk-BYWZ6BFW.js";
|
|
5
|
+
import "../chunk-M5NGWRPO.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.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,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6XRQ4VOZ.js";
|
|
10
|
+
import "./chunk-BYWZ6BFW.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-SLEMYHTU.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-M5NGWRPO.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -18,7 +18,7 @@ const customDocs = await getCollection('customPages');
|
|
|
18
18
|
|
|
19
19
|
export const GET: APIRoute = async ({ params, request }) => {
|
|
20
20
|
const url = new URL(request.url);
|
|
21
|
-
const baseUrl = `${url.
|
|
21
|
+
const baseUrl = process.env.LLMS_TXT_BASE_URL || `${url.origin}`;
|
|
22
22
|
|
|
23
23
|
const formatVersionedItem = (item: any, type: string) =>
|
|
24
24
|
`- [${item.data.name} - ${item.data.id} - ${item.data.version}](${baseUrl}/docs/${type}/${item.data.id}/${item.data.version}.mdx) - ${item.data.summary}`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Can't use the CollectionEntry type from astro:content because a client component is using this util
|
|
2
2
|
// import { type CollectionEntry } from 'astro:content';
|
|
3
|
+
import catalog from '@utils/eventcatalog-config/catalog';
|
|
3
4
|
import { MarkerType, Position, type Edge, type Node } from '@xyflow/react';
|
|
4
5
|
import dagre from 'dagre';
|
|
5
6
|
import { getItemsFromCollectionByIdAndSemverOrLatest } from '@utils/collections/util';
|
|
@@ -121,19 +122,20 @@ export const getChannelNodesAndEdges = ({
|
|
|
121
122
|
.filter((channel) => channel !== undefined);
|
|
122
123
|
|
|
123
124
|
channels.forEach((channel) => {
|
|
124
|
-
const
|
|
125
|
+
const singleChannel = catalog.visualiser?.channels?.renderMode === 'single'; // Only one node per channel, other wise one node per channel connection
|
|
126
|
+
const channelId = singleChannel ? generateIdForNodes([channel]) : generateIdForNodes([source, channel, target]);
|
|
125
127
|
|
|
126
128
|
// Need to check if the channel node is already in the graph
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
if (!currentNodes.find((node) => node.id === channelId)) {
|
|
130
|
+
nodes.push(
|
|
131
|
+
createNode({
|
|
132
|
+
id: channelId,
|
|
133
|
+
data: { title: channel?.data.id, mode, channel, source, target },
|
|
134
|
+
position: { x: 0, y: 0 },
|
|
135
|
+
type: channel?.collection,
|
|
136
|
+
})
|
|
137
|
+
);
|
|
138
|
+
}
|
|
137
139
|
|
|
138
140
|
// if the source (left node) is a service, use the target as the edge message
|
|
139
141
|
const edgeMessage = source.collection === 'services' ? target : source;
|