@eventcatalog/core 2.18.4 → 2.18.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/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-OOOLFBRN.js → chunk-A6WKKOVK.js} +1 -1
- package/dist/{chunk-PCKSHEKP.js → chunk-H23OJDR7.js} +1 -1
- package/dist/{chunk-RS3HF4IW.js → chunk-PMKIIHTY.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/astro.config.mjs +1 -1
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.tsx +1 -1
- package/eventcatalog/src/icons/protocols/index.ts +1 -0
- package/eventcatalog/src/icons/protocols/kinesis.svg +14 -0
- package/eventcatalog/src/utils/channels.ts +5 -0
- package/eventcatalog/src/utils/collections/domains.ts +8 -4
- package/eventcatalog/src/utils/collections/flows.ts +5 -0
- package/eventcatalog/src/utils/collections/services.ts +5 -0
- package/eventcatalog/src/utils/commands.ts +5 -0
- package/eventcatalog/src/utils/events.ts +5 -0
- package/eventcatalog/src/utils/queries.ts +5 -0
- package/eventcatalog/src/utils/teams.ts +5 -0
- package/eventcatalog/src/utils/users.ts +8 -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-A6WKKOVK.js";
|
|
4
|
+
import "../chunk-PMKIIHTY.js";
|
|
5
|
+
import "../chunk-H23OJDR7.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
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SHCMAL37.js";
|
|
4
4
|
import {
|
|
5
5
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-A6WKKOVK.js";
|
|
7
|
+
import "./chunk-PMKIIHTY.js";
|
|
8
8
|
import {
|
|
9
9
|
catalogToAstro
|
|
10
10
|
} from "./chunk-WF34R5UT.js";
|
|
11
11
|
import {
|
|
12
12
|
VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H23OJDR7.js";
|
|
14
14
|
import {
|
|
15
15
|
generate
|
|
16
16
|
} from "./chunk-YEQVKHST.js";
|
|
@@ -47,7 +47,7 @@ export default defineConfig({
|
|
|
47
47
|
// https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
|
|
48
48
|
optimize: config.mdxOptimize || false,
|
|
49
49
|
remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid],
|
|
50
|
-
gfm:
|
|
50
|
+
gfm: true,
|
|
51
51
|
}),
|
|
52
52
|
pagefind(),
|
|
53
53
|
],
|
|
@@ -422,7 +422,7 @@ const NodeGraph = ({
|
|
|
422
422
|
<div className="flex justify-between" id="visualiser-footer">
|
|
423
423
|
{footerLabel && (
|
|
424
424
|
<div className="py-2 w-full text-left ">
|
|
425
|
-
<span className=" text-sm no-underline py-2 text-gray-
|
|
425
|
+
<span className=" text-sm no-underline py-2 text-gray-500">{footerLabel}</span>
|
|
426
426
|
</div>
|
|
427
427
|
)}
|
|
428
428
|
|
|
@@ -13,3 +13,4 @@ export { default as SQS } from '@icons/protocols/sqs.svg?raw';
|
|
|
13
13
|
export { default as EventBridge } from '@icons/protocols/eventbridge.svg?raw';
|
|
14
14
|
export { default as Redis } from '@icons/protocols/redis.svg?raw';
|
|
15
15
|
export { default as GooglePubSub } from '@icons/protocols/googlepubsub.svg?raw';
|
|
16
|
+
export { default as Kinesis } from '@icons/protocols/kinesis.svg?raw';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient x1="0%" y1="100%" x2="100%" y2="0%" id="linearGradient-1">
|
|
4
|
+
<stop stop-color="#4D27A8" offset="0%"></stop>
|
|
5
|
+
<stop stop-color="#A166FF" offset="100%"></stop>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<g id="Icon-Architecture/64/Arch_Amazon-Kinesis_64" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9
|
+
<g id="Icon-Architecture-BG/64/Analytics" fill="url(#linearGradient-1)">
|
|
10
|
+
<rect id="Rectangle" x="0" y="0" width="80" height="80"></rect>
|
|
11
|
+
</g>
|
|
12
|
+
<path d="M19,62 L21,62 C21,53.594 26.465,45 67,45 L67,43 C24.703,43 19,52.604 19,62 M25,68 L27,68 C27,60.434 27,49 67,49 L67,47 C48.663,47 36.728,49.359 30.51,54.212 C25,58.512 25,63.996 25,68 M15,26 L13,26 C13,33.396 23.039,38.08 42.893,40 C23.039,41.92 13,46.604 13,54 L15,54 C15,49.145 21.756,41 67,41 L67,39 C21.756,39 15,30.855 15,26 M21,18 L19,18 C19,27.396 24.703,37 67,37 L67,35 C26.465,35 21,26.406 21,18 M67,31 L67,33 C48.663,33 36.728,30.641 30.51,25.788 C25,21.488 25,16.004 25,12 L27,12 C27,19.566 27,31 67,31" id="Amazon-Kinesis_Icon_64_Squid" fill="#FFFFFF"></path>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -74,5 +74,10 @@ export const getChannels = async ({ getAllVersions = true }: Props = {}): Promis
|
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
+
// order them by the name of the channel
|
|
78
|
+
cachedChannels[cacheKey].sort((a, b) => {
|
|
79
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
80
|
+
});
|
|
81
|
+
|
|
77
82
|
return cachedChannels[cacheKey];
|
|
78
83
|
};
|
|
@@ -65,14 +65,18 @@ export const getDomains = async ({ getAllVersions = true }: Props = {}): Promise
|
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
+
// order them by the name of the domain
|
|
69
|
+
cachedDomains[cacheKey].sort((a, b) => {
|
|
70
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
71
|
+
});
|
|
72
|
+
|
|
68
73
|
return cachedDomains[cacheKey];
|
|
69
74
|
};
|
|
70
75
|
|
|
71
76
|
export const getUbiquitousLanguage = async (domain: Domain): Promise<UbiquitousLanguage[]> => {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return ubiquitousLanguage.id.toLowerCase().includes(`${collection}/${data.name}`.toLowerCase());
|
|
77
|
+
const ubiquitousLanguages = await getCollection('ubiquitousLanguages', (ubiquitousLanguage: UbiquitousLanguage) => {
|
|
78
|
+
const folderPath = ubiquitousLanguage.id.replace('ubiquitous-language', '');
|
|
79
|
+
return domain.filePath?.toLowerCase().includes(folderPath.toLowerCase());
|
|
76
80
|
});
|
|
77
81
|
|
|
78
82
|
return ubiquitousLanguages;
|
|
@@ -69,5 +69,10 @@ export const getFlows = async ({ getAllVersions = true }: Props = {}): Promise<F
|
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
+
// order them by the name of the flow
|
|
73
|
+
cachedFlows[cacheKey].sort((a, b) => {
|
|
74
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
75
|
+
});
|
|
76
|
+
|
|
72
77
|
return cachedFlows[cacheKey];
|
|
73
78
|
};
|
|
@@ -79,6 +79,11 @@ export const getServices = async ({ getAllVersions = true }: Props = {}): Promis
|
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
+
// order them by the name of the service
|
|
83
|
+
cachedServices[cacheKey].sort((a, b) => {
|
|
84
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
85
|
+
});
|
|
86
|
+
|
|
82
87
|
return cachedServices[cacheKey];
|
|
83
88
|
};
|
|
84
89
|
|
|
@@ -80,5 +80,10 @@ export const getCommands = async ({ getAllVersions = true }: Props = {}): Promis
|
|
|
80
80
|
};
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
+
// order them by the name of the command
|
|
84
|
+
cachedCommands[cacheKey].sort((a, b) => {
|
|
85
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
86
|
+
});
|
|
87
|
+
|
|
83
88
|
return cachedCommands[cacheKey];
|
|
84
89
|
};
|
|
@@ -80,5 +80,10 @@ export const getEvents = async ({ getAllVersions = true }: Props = {}): Promise<
|
|
|
80
80
|
};
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
+
// order them by the name of the event
|
|
84
|
+
cachedEvents[cacheKey].sort((a, b) => {
|
|
85
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
86
|
+
});
|
|
87
|
+
|
|
83
88
|
return cachedEvents[cacheKey];
|
|
84
89
|
};
|
|
@@ -80,5 +80,10 @@ export const getQueries = async ({ getAllVersions = true }: Props = {}): Promise
|
|
|
80
80
|
};
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
+
// order them by the name of the query
|
|
84
|
+
cachedQueries[cacheKey].sort((a, b) => {
|
|
85
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
86
|
+
});
|
|
87
|
+
|
|
83
88
|
return cachedQueries[cacheKey];
|
|
84
89
|
};
|
|
@@ -58,5 +58,10 @@ export const getTeams = async (): Promise<Team[]> => {
|
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
// order them by the name of the team
|
|
62
|
+
cachedTeams.sort((a, b) => {
|
|
63
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
64
|
+
});
|
|
65
|
+
|
|
61
66
|
return cachedTeams;
|
|
62
67
|
};
|
|
@@ -26,7 +26,7 @@ export const getUsers = async (): Promise<User[]> => {
|
|
|
26
26
|
return team.data.hidden !== true;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
const mappedUsers = users.map((user) => {
|
|
30
30
|
const associatedTeams = teams.filter((team) => {
|
|
31
31
|
return team.data.members?.some((member) => member.id === user.data.id);
|
|
32
32
|
});
|
|
@@ -66,4 +66,11 @@ export const getUsers = async (): Promise<User[]> => {
|
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
+
|
|
70
|
+
// order them by the name of the user
|
|
71
|
+
mappedUsers.sort((a, b) => {
|
|
72
|
+
return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
return mappedUsers;
|
|
69
76
|
};
|