@eventcatalog/core 2.42.9 → 2.42.10
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-4A2C2PVU.js → chunk-K7RD2O76.js} +1 -1
- package/dist/{chunk-ISA6KNLN.js → chunk-QVBE3VN4.js} +1 -1
- package/dist/{chunk-OQA3PAMR.js → chunk-ZG2E6QCK.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/utils/node-graphs/domains-node-graph.ts +12 -1
- package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +11 -1
- 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-K7RD2O76.js";
|
|
4
|
+
import "../chunk-ZG2E6QCK.js";
|
|
5
|
+
import "../chunk-QVBE3VN4.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-K7RD2O76.js";
|
|
10
|
+
import "./chunk-ZG2E6QCK.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-QVBE3VN4.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -17,6 +17,7 @@ type DagreGraph = any;
|
|
|
17
17
|
|
|
18
18
|
interface Props {
|
|
19
19
|
defaultFlow?: DagreGraph;
|
|
20
|
+
channelRenderMode?: 'single' | 'flat';
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export const getNodesAndEdgesForDomainContextMap = async ({ defaultFlow = null }: Props) => {
|
|
@@ -214,9 +215,17 @@ interface NodesAndEdgesProps {
|
|
|
214
215
|
defaultFlow?: DagreGraph;
|
|
215
216
|
mode: 'simple' | 'full';
|
|
216
217
|
group?: boolean;
|
|
218
|
+
channelRenderMode?: 'single' | 'flat';
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
export const getNodesAndEdges = async ({
|
|
221
|
+
export const getNodesAndEdges = async ({
|
|
222
|
+
id,
|
|
223
|
+
version,
|
|
224
|
+
defaultFlow,
|
|
225
|
+
mode = 'simple',
|
|
226
|
+
group = false,
|
|
227
|
+
channelRenderMode = 'flat',
|
|
228
|
+
}: NodesAndEdgesProps) => {
|
|
220
229
|
const flow = defaultFlow || createDagreGraph({ ranksep: 360, nodesep: 50, edgesep: 50 });
|
|
221
230
|
let nodes = new Map(),
|
|
222
231
|
edges = new Map();
|
|
@@ -257,6 +266,7 @@ export const getNodesAndEdges = async ({ id, version, defaultFlow, mode = 'simpl
|
|
|
257
266
|
defaultFlow: flow,
|
|
258
267
|
mode,
|
|
259
268
|
renderAllEdges: true,
|
|
269
|
+
channelRenderMode,
|
|
260
270
|
});
|
|
261
271
|
serviceNodes.forEach((n) => {
|
|
262
272
|
/**
|
|
@@ -280,6 +290,7 @@ export const getNodesAndEdges = async ({ id, version, defaultFlow, mode = 'simpl
|
|
|
280
290
|
defaultFlow: flow,
|
|
281
291
|
mode,
|
|
282
292
|
group: true,
|
|
293
|
+
channelRenderMode,
|
|
283
294
|
});
|
|
284
295
|
subDomainNodes.forEach((n) => {
|
|
285
296
|
nodes.set(n.id, nodes.has(n.id) ? merge(nodes.get(n.id), n) : n);
|
|
@@ -20,6 +20,7 @@ interface Props {
|
|
|
20
20
|
defaultFlow?: DagreGraph;
|
|
21
21
|
mode?: 'simple' | 'full';
|
|
22
22
|
renderAllEdges?: boolean;
|
|
23
|
+
channelRenderMode?: 'single' | 'flat';
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
const getSendsMessageByMessageType = (messageType: string) => {
|
|
@@ -47,7 +48,14 @@ const getReceivesMessageByMessageType = (messageType: string) => {
|
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
|
|
50
|
-
export const getNodesAndEdges = async ({
|
|
51
|
+
export const getNodesAndEdges = async ({
|
|
52
|
+
id,
|
|
53
|
+
defaultFlow,
|
|
54
|
+
version,
|
|
55
|
+
mode = 'simple',
|
|
56
|
+
renderAllEdges = false,
|
|
57
|
+
channelRenderMode = 'flat',
|
|
58
|
+
}: Props) => {
|
|
51
59
|
const flow = defaultFlow || createDagreGraph({ ranksep: 300, nodesep: 50 });
|
|
52
60
|
const nodes = [] as any,
|
|
53
61
|
edges = [] as any;
|
|
@@ -111,6 +119,7 @@ export const getNodesAndEdges = async ({ id, defaultFlow, version, mode = 'simpl
|
|
|
111
119
|
target: service,
|
|
112
120
|
mode,
|
|
113
121
|
currentNodes: nodes,
|
|
122
|
+
channelRenderMode,
|
|
114
123
|
});
|
|
115
124
|
|
|
116
125
|
nodes.push(...channelNodes);
|
|
@@ -158,6 +167,7 @@ export const getNodesAndEdges = async ({ id, defaultFlow, version, mode = 'simpl
|
|
|
158
167
|
sourceToChannelLabel: `${getSendsMessageByMessageType(send?.collection)}`,
|
|
159
168
|
channelToTargetLabel: getSendsMessageByMessageType(send?.collection),
|
|
160
169
|
currentNodes: nodes,
|
|
170
|
+
channelRenderMode,
|
|
161
171
|
});
|
|
162
172
|
nodes.push(...channelNodes);
|
|
163
173
|
edges.push(...channelEdges);
|