@eventcatalog/core 2.19.4 → 2.19.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-YCAXXE3T.js → chunk-DPCHEH2D.js} +1 -1
- package/dist/{chunk-I6MZFFLJ.js → chunk-OBSAD2VP.js} +1 -1
- package/dist/{chunk-FUEL2H2M.js → chunk-VPBQ3QKC.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/package.json +1 -2
- package/eventcatalog/src/components/MDX/SchemaViewer/SchemaViewer.tsx +2 -2
- package/eventcatalog/src/components/MDX/SchemaViewer/css/stoplight-mosaic-styles.css +29609 -0
- package/eventcatalog/src/components/MDX/SchemaViewer/css/stoplight-mosaic-theme-default.css +333 -0
- package/eventcatalog/src/components/Tables/Table.tsx +81 -24
- package/eventcatalog/src/components/Tables/columns/DomainTableColumns.tsx +4 -5
- package/eventcatalog/src/components/Tables/columns/FlowTableColumns.tsx +2 -2
- package/eventcatalog/src/components/Tables/columns/MessageTableColumns.tsx +6 -6
- package/eventcatalog/src/components/Tables/columns/ServiceTableColumns.tsx +5 -5
- package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +4 -2
- package/eventcatalog/src/layouts/DiscoverLayout.astro +8 -1
- package/eventcatalog/src/pages/discover/[type]/index.astro +37 -5
- package/package.json +2 -3
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
import DiscoverLayout from '@layouts/DiscoverLayout.astro';
|
|
3
|
-
import type { PageTypes } from '@types';
|
|
2
|
+
import DiscoverLayout, { type Props as DiscoverLayoutProps } from '@layouts/DiscoverLayout.astro';
|
|
4
3
|
import { getFlows } from '@utils/collections/flows';
|
|
5
4
|
|
|
6
5
|
import { pageDataLoader } from '@utils/page-loaders/page-data-loader';
|
|
7
|
-
type PageTypesWithFlows = PageTypes | 'flows';
|
|
8
6
|
|
|
9
7
|
export async function getStaticPaths() {
|
|
10
8
|
const loaders = {
|
|
@@ -12,7 +10,7 @@ export async function getStaticPaths() {
|
|
|
12
10
|
flows: getFlows,
|
|
13
11
|
};
|
|
14
12
|
|
|
15
|
-
const itemTypes
|
|
13
|
+
const itemTypes = ['events', 'commands', 'queries', 'services', 'domains', 'flows'] as const;
|
|
16
14
|
const allItems = await Promise.all(itemTypes.map((type) => loaders[type]()));
|
|
17
15
|
|
|
18
16
|
return allItems.flatMap((items, index) => ({
|
|
@@ -27,11 +25,45 @@ export async function getStaticPaths() {
|
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
const { type, data } = Astro.props;
|
|
28
|
+
|
|
29
|
+
function mapToItem(i: any) {
|
|
30
|
+
return {
|
|
31
|
+
collection: i.collection,
|
|
32
|
+
data: {
|
|
33
|
+
id: i.data.id,
|
|
34
|
+
name: i.data.name,
|
|
35
|
+
version: i.data.version,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
30
39
|
---
|
|
31
40
|
|
|
32
41
|
<DiscoverLayout
|
|
33
42
|
title={`${type} (${data.length})`}
|
|
34
43
|
subtitle={`Find, filter and search for any ${type} in your system.`}
|
|
35
|
-
data={data
|
|
44
|
+
data={data.map(
|
|
45
|
+
(d) =>
|
|
46
|
+
({
|
|
47
|
+
collection: d.collection,
|
|
48
|
+
data: {
|
|
49
|
+
id: d.data.id,
|
|
50
|
+
name: d.data.name,
|
|
51
|
+
summary: d.data?.summary,
|
|
52
|
+
version: d.data.version,
|
|
53
|
+
latestVersion: d.data?.latestVersion,
|
|
54
|
+
badges: d.data?.badges,
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
consumers: d.data?.consumers?.map(mapToItem) ?? [],
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
producers: d.data?.producers?.map(mapToItem) ?? [],
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
receives: d.data?.receives?.map(mapToItem) ?? [],
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
sends: d.data?.sends?.map(mapToItem) ?? [],
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
services: d.data?.services?.map(mapToItem) ?? [],
|
|
65
|
+
},
|
|
66
|
+
}) as DiscoverLayoutProps<typeof type>['data'][0]
|
|
67
|
+
)}
|
|
36
68
|
type={type}
|
|
37
69
|
/>
|
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.19.
|
|
9
|
+
"version": "2.19.6",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"@heroicons/react": "^2.1.3",
|
|
33
33
|
"@iconify-json/logos": "^1.2.4",
|
|
34
34
|
"@parcel/watcher": "^2.4.1",
|
|
35
|
-
"@stoplight/json-schema-viewer": "^4.
|
|
36
|
-
"@stoplight/mosaic": "^1.53.2",
|
|
35
|
+
"@stoplight/json-schema-viewer": "^4.16.4",
|
|
37
36
|
"@tailwindcss/typography": "^0.5.13",
|
|
38
37
|
"@tanstack/react-table": "^8.17.3",
|
|
39
38
|
"@xyflow/react": "^12.3.6",
|