@eventcatalog/core 3.0.0-beta.10 → 3.0.0-beta.12
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-VNKO4QEO.js → chunk-3D5MD2OX.js} +1 -1
- package/dist/{chunk-QYFFI52L.js → chunk-H2IMKKZF.js} +1 -1
- package/dist/{chunk-HIZ72XK6.js → chunk-ID5N5C66.js} +1 -1
- package/dist/{chunk-VY7TVWWV.js → chunk-OWR2FPYN.js} +1 -1
- package/dist/{chunk-37KBX24G.js → chunk-PBH3ZP2J.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 +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/Grids/DomainGrid.tsx +1 -3
- package/eventcatalog/src/components/Grids/MessageGrid.tsx +8 -8
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/domain.ts +7 -6
- package/eventcatalog/src/pages/_index.astro +5 -7
- package/eventcatalog/src/remark-plugins/directives.ts +30 -9
- 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-H2IMKKZF.js";
|
|
4
|
+
import "../chunk-PBH3ZP2J.js";
|
|
5
|
+
import "../chunk-3D5MD2OX.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
|
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
109
109
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
|
-
var version = "3.0.0-beta.
|
|
112
|
+
var version = "3.0.0-beta.12";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
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-H2IMKKZF.js";
|
|
10
|
+
import "./chunk-PBH3ZP2J.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
} from "./chunk-5VBIXL6C.js";
|
|
24
24
|
import {
|
|
25
25
|
generate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ID5N5C66.js";
|
|
27
27
|
import {
|
|
28
28
|
logger
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OWR2FPYN.js";
|
|
30
30
|
import {
|
|
31
31
|
VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3D5MD2OX.js";
|
|
33
33
|
import "./chunk-UPONRQSN.js";
|
|
34
34
|
|
|
35
35
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
73
73
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
74
74
|
|
|
75
75
|
// package.json
|
|
76
|
-
var version = "3.0.0-beta.
|
|
76
|
+
var version = "3.0.0-beta.12";
|
|
77
77
|
|
|
78
78
|
// src/constants.ts
|
|
79
79
|
var VERSION = version;
|
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ID5N5C66.js";
|
|
4
|
+
import "./chunk-OWR2FPYN.js";
|
|
5
|
+
import "./chunk-3D5MD2OX.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ArrowsPointingOutIcon,
|
|
12
12
|
} from '@heroicons/react/24/outline';
|
|
13
13
|
import { buildUrl } from '@utils/url-builder';
|
|
14
|
-
import { BoxIcon
|
|
14
|
+
import { BoxIcon } from 'lucide-react';
|
|
15
15
|
|
|
16
16
|
// ============================================
|
|
17
17
|
// Types
|
|
@@ -135,7 +135,6 @@ const ServiceCard = memo(({ service }: { service: any }) => {
|
|
|
135
135
|
{/* Receives (Inbound) */}
|
|
136
136
|
<div className="flex-1 bg-blue-50 border border-blue-200 rounded-lg p-3">
|
|
137
137
|
<div className="flex items-center gap-1.5 mb-2">
|
|
138
|
-
<ArrowRight className="h-3.5 w-3.5 text-blue-500" />
|
|
139
138
|
<span className="text-xs font-semibold text-blue-700 uppercase">Inbound Messages</span>
|
|
140
139
|
<span className="text-xs text-blue-500">({receives.length})</span>
|
|
141
140
|
</div>
|
|
@@ -162,7 +161,6 @@ const ServiceCard = memo(({ service }: { service: any }) => {
|
|
|
162
161
|
{/* Sends (Outbound) */}
|
|
163
162
|
<div className="flex-1 bg-green-50 border border-green-200 rounded-lg p-3">
|
|
164
163
|
<div className="flex items-center gap-1.5 mb-2">
|
|
165
|
-
<ArrowLeft className="h-3.5 w-3.5 text-green-500" />
|
|
166
164
|
<span className="text-xs font-semibold text-green-700 uppercase">Outbound Messages</span>
|
|
167
165
|
<span className="text-xs text-green-500">({sends.length})</span>
|
|
168
166
|
</div>
|
|
@@ -41,9 +41,9 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
41
41
|
);
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
|
-
<div className={`rounded-xl overflow-hidden bg-
|
|
44
|
+
<div className={`rounded-xl overflow-hidden bg-white p-8 border-2 border-dashed border-pink-300`}>
|
|
45
45
|
{/* Service Title */}
|
|
46
|
-
<div className="flex items-center gap-2 mb-8">
|
|
46
|
+
{/* <div className="flex items-center gap-2 mb-8">
|
|
47
47
|
<ServerIcon className="h-6 w-6 text-pink-500" />
|
|
48
48
|
<h2 className="text-2xl font-semibold text-gray-900">{service.data.name}</h2>
|
|
49
49
|
<div className="flex gap-2 ml-auto">
|
|
@@ -60,7 +60,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
60
60
|
Read documentation
|
|
61
61
|
</a>
|
|
62
62
|
</div>
|
|
63
|
-
</div>
|
|
63
|
+
</div> */}
|
|
64
64
|
|
|
65
65
|
<div className="grid grid-cols-3 gap-8 relative">
|
|
66
66
|
{/* Left Column - Receives Messages & Reads From Containers */}
|
|
@@ -70,7 +70,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
70
70
|
<div className="mb-6">
|
|
71
71
|
<h2 className={`font-semibold text-gray-900 flex items-center gap-2 ${embeded ? 'text-sm' : 'text-xl'}`}>
|
|
72
72
|
<ServerIcon className="h-5 w-5 text-blue-500" />
|
|
73
|
-
|
|
73
|
+
Inbound Messages ({receives.length})
|
|
74
74
|
</h2>
|
|
75
75
|
</div>
|
|
76
76
|
{receives.length > 0 ? (
|
|
@@ -124,7 +124,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
{/* Service Information (Center) */}
|
|
127
|
-
<div className="bg-
|
|
127
|
+
<div className="bg-pink-50 border-2 border-pink-100 rounded-lg p-6 flex flex-col justify-center">
|
|
128
128
|
<div className="flex flex-col items-center gap-4">
|
|
129
129
|
<ServerIcon className="h-12 w-12 text-pink-500" />
|
|
130
130
|
<p className="text-xl font-semibold text-gray-900 text-center">{service.data.name}</p>
|
|
@@ -133,11 +133,11 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
133
133
|
<div className="w-full grid grid-cols-2 gap-3 mt-2">
|
|
134
134
|
<div className="text-center p-3 bg-blue-50 rounded-lg border border-blue-200">
|
|
135
135
|
<div className="text-2xl font-bold text-blue-600">{receives.length}</div>
|
|
136
|
-
<div className="text-xs text-gray-600 mt-1">
|
|
136
|
+
<div className="text-xs text-gray-600 mt-1">Inbound Messages</div>
|
|
137
137
|
</div>
|
|
138
138
|
<div className="text-center p-3 bg-green-50 rounded-lg border border-green-200">
|
|
139
139
|
<div className="text-2xl font-bold text-green-600">{sends.length}</div>
|
|
140
|
-
<div className="text-xs text-gray-600 mt-1">
|
|
140
|
+
<div className="text-xs text-gray-600 mt-1">Outbound Messages</div>
|
|
141
141
|
</div>
|
|
142
142
|
{readsFrom.length > 0 && (
|
|
143
143
|
<div className="text-center p-3 bg-orange-50 rounded-lg border border-orange-200">
|
|
@@ -168,7 +168,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
|
|
|
168
168
|
<div className="mb-6">
|
|
169
169
|
<h2 className={`font-semibold text-gray-900 flex items-center gap-2 ${embeded ? 'text-sm' : 'text-xl'}`}>
|
|
170
170
|
<ServerIcon className="h-5 w-5 text-emerald-500" />
|
|
171
|
-
|
|
171
|
+
Outbound Messages ({sends.length})
|
|
172
172
|
</h2>
|
|
173
173
|
</div>
|
|
174
174
|
{sends.length > 0 ? (
|
|
@@ -65,6 +65,12 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
65
65
|
},
|
|
66
66
|
].filter(Boolean) as ChildRef[],
|
|
67
67
|
},
|
|
68
|
+
renderSubDomains && {
|
|
69
|
+
type: 'group',
|
|
70
|
+
title: 'Subdomains',
|
|
71
|
+
icon: 'Boxes',
|
|
72
|
+
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
|
|
73
|
+
},
|
|
68
74
|
hasFlows && {
|
|
69
75
|
type: 'group',
|
|
70
76
|
title: 'Flows',
|
|
@@ -81,12 +87,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
81
87
|
href: buildUrl(`/docs/entities/${(entity as any).data.id}/${(entity as any).data.version}`),
|
|
82
88
|
})),
|
|
83
89
|
},
|
|
84
|
-
|
|
85
|
-
type: 'group',
|
|
86
|
-
title: 'Subdomains',
|
|
87
|
-
icon: 'Boxes',
|
|
88
|
-
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
|
|
89
|
-
},
|
|
90
|
+
|
|
90
91
|
...(hasResourceGroups ? buildResourceGroupSections(resourceGroups, context) : []),
|
|
91
92
|
renderServices && {
|
|
92
93
|
type: 'group',
|
|
@@ -174,7 +174,7 @@ const topTiles = [
|
|
|
174
174
|
description: 'Business domains defined',
|
|
175
175
|
href: buildUrl('/discover/domains'),
|
|
176
176
|
icon: RectangleGroupIcon,
|
|
177
|
-
bgColor: 'bg-yellow-
|
|
177
|
+
bgColor: 'bg-yellow-500',
|
|
178
178
|
textColor: 'text-yellow-600',
|
|
179
179
|
arrowColor: 'text-yellow-600',
|
|
180
180
|
},
|
|
@@ -184,7 +184,7 @@ const topTiles = [
|
|
|
184
184
|
description: 'Services documented in the catalog',
|
|
185
185
|
href: buildUrl('/discover/services'),
|
|
186
186
|
icon: ServerIcon,
|
|
187
|
-
bgColor: 'bg-pink-
|
|
187
|
+
bgColor: 'bg-pink-500',
|
|
188
188
|
textColor: 'text-pink-600',
|
|
189
189
|
arrowColor: 'text-pink-600',
|
|
190
190
|
},
|
|
@@ -194,7 +194,7 @@ const topTiles = [
|
|
|
194
194
|
description: 'Messages documented in the catalog',
|
|
195
195
|
href: buildUrl('/discover/events'),
|
|
196
196
|
icon: ChatBubbleLeftIcon,
|
|
197
|
-
bgColor: 'bg-blue-
|
|
197
|
+
bgColor: 'bg-blue-500',
|
|
198
198
|
textColor: 'text-blue-600',
|
|
199
199
|
arrowColor: 'text-blue-600',
|
|
200
200
|
},
|
|
@@ -204,7 +204,7 @@ const topTiles = [
|
|
|
204
204
|
description: 'Business flows documented',
|
|
205
205
|
href: buildUrl('/discover/flows'),
|
|
206
206
|
icon: Workflow,
|
|
207
|
-
bgColor: 'bg-purple-
|
|
207
|
+
bgColor: 'bg-purple-500',
|
|
208
208
|
textColor: 'text-purple-600',
|
|
209
209
|
arrowColor: 'text-purple-600',
|
|
210
210
|
},
|
|
@@ -347,9 +347,7 @@ const quickActions = [
|
|
|
347
347
|
<div class="absolute inset-0 bg-gradient-to-br from-gray-50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
|
|
348
348
|
|
|
349
349
|
{/* Colored left border accent */}
|
|
350
|
-
<div
|
|
351
|
-
class={`absolute left-0 top-0 bottom-0 w-1 ${tile.bgColor} opacity-0 group-hover:opacity-100 transition-opacity duration-300`}
|
|
352
|
-
/>
|
|
350
|
+
<div class={`absolute left-0 top-0 bottom-0 w-1 ${tile.bgColor} transition-opacity duration-300`} />
|
|
353
351
|
|
|
354
352
|
<div class="relative">
|
|
355
353
|
<div class="flex items-center justify-between mb-4">
|
|
@@ -30,7 +30,33 @@ export function remarkDirectives() {
|
|
|
30
30
|
class: `rounded-lg p-4 my-4 ${blockTypes[node.name as keyof typeof blockTypes] || ''}`,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// Check if there's a custom title (label) provided via :::note[Custom Title]
|
|
34
|
+
// In remark-directive, the label is stored in node.children as a paragraph node
|
|
35
|
+
// with data.directiveLabel = true
|
|
36
|
+
let titleChildren;
|
|
37
|
+
let contentChildren;
|
|
38
|
+
|
|
39
|
+
const firstChild = node.children && node.children.length > 0 ? node.children[0] : null;
|
|
40
|
+
const hasCustomTitle = firstChild && firstChild.data?.directiveLabel === true;
|
|
41
|
+
|
|
42
|
+
if (hasCustomTitle && firstChild) {
|
|
43
|
+
// Custom title was provided in the label - it contains markdown parsed as inline content
|
|
44
|
+
titleChildren = firstChild.children || [
|
|
45
|
+
{ type: 'text', value: node.name.charAt(0).toUpperCase() + node.name.slice(1) },
|
|
46
|
+
];
|
|
47
|
+
contentChildren = node.children.slice(1);
|
|
48
|
+
} else {
|
|
49
|
+
// No custom title, use default based on directive name
|
|
50
|
+
titleChildren = [
|
|
51
|
+
{
|
|
52
|
+
type: 'text',
|
|
53
|
+
value: node.name.charAt(0).toUpperCase() + node.name.slice(1),
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
contentChildren = node.children;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Create header div that will contain icon and title
|
|
34
60
|
const headerNode = {
|
|
35
61
|
type: 'element',
|
|
36
62
|
data: {
|
|
@@ -70,7 +96,7 @@ export function remarkDirectives() {
|
|
|
70
96
|
},
|
|
71
97
|
],
|
|
72
98
|
},
|
|
73
|
-
//
|
|
99
|
+
// Title (with support for markdown)
|
|
74
100
|
{
|
|
75
101
|
type: 'element',
|
|
76
102
|
data: {
|
|
@@ -79,12 +105,7 @@ export function remarkDirectives() {
|
|
|
79
105
|
class: '',
|
|
80
106
|
},
|
|
81
107
|
},
|
|
82
|
-
children:
|
|
83
|
-
{
|
|
84
|
-
type: 'text',
|
|
85
|
-
value: node.name.charAt(0).toUpperCase() + node.name.slice(1),
|
|
86
|
-
},
|
|
87
|
-
],
|
|
108
|
+
children: titleChildren,
|
|
88
109
|
},
|
|
89
110
|
],
|
|
90
111
|
};
|
|
@@ -98,7 +119,7 @@ export function remarkDirectives() {
|
|
|
98
119
|
class: 'prose prose-md w-full !max-w-none ',
|
|
99
120
|
},
|
|
100
121
|
},
|
|
101
|
-
children:
|
|
122
|
+
children: contentChildren,
|
|
102
123
|
};
|
|
103
124
|
|
|
104
125
|
// Replace node's children with header and content
|