@eventcatalog/core 2.61.5 → 2.61.7
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/README.md +7 -2
- 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-25B6QU5B.js → chunk-CXKOSGOZ.js} +1 -1
- package/dist/{chunk-PK7HK42H.js → chunk-EMD2PGL5.js} +1 -1
- package/dist/{chunk-3DQC6REX.js → chunk-TMWVVSKB.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/content.config.ts +2 -2
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +31 -24
- package/eventcatalog/src/pages/api/catalog.ts +3 -1
- package/eventcatalog/tailwind.config.mjs +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
|
|
35
35
|
|
|
36
36
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
37
|
-
[](#contributors-)
|
|
38
38
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
39
39
|
|
|
40
40
|
[Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
|
|
@@ -261,10 +261,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
261
261
|
</tr>
|
|
262
262
|
<tr>
|
|
263
263
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cc-stjm"><img src="https://avatars.githubusercontent.com/u/47748595?v=4?s=100" width="100px;" alt="cc-stjm"/><br /><sub><b>cc-stjm</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=cc-stjm" title="Code">💻</a></td>
|
|
264
|
-
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/lucianlature/"><img src="https://avatars.githubusercontent.com/u/24992?v=4?s=100" width="100px;" alt="Lucian Lature"/><br /><sub><b>Lucian Lature</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Alucianlature" title="Bug reports">🐛</a></td>
|
|
264
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/lucianlature/"><img src="https://avatars.githubusercontent.com/u/24992?v=4?s=100" width="100px;" alt="Lucian Lature"/><br /><sub><b>Lucian Lature</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Alucianlature" title="Bug reports">🐛</a> <a href="https://github.com/event-catalog/eventcatalog/commits?author=lucianlature" title="Code">💻</a></td>
|
|
265
265
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/villAsh"><img src="https://avatars.githubusercontent.com/u/50195101?v=4?s=100" width="100px;" alt="Vilas Chauvhan"/><br /><sub><b>Vilas Chauvhan</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=villAsh" title="Code">💻</a></td>
|
|
266
266
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mrerichoffman"><img src="https://avatars.githubusercontent.com/u/7565432?v=4?s=100" width="100px;" alt="Eric Hoffman"/><br /><sub><b>Eric Hoffman</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Amrerichoffman" title="Bug reports">🐛</a></td>
|
|
267
267
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/wimhaesen-kine"><img src="https://avatars.githubusercontent.com/u/231914377?v=4?s=100" width="100px;" alt="wimhaesen-kine"/><br /><sub><b>wimhaesen-kine</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=wimhaesen-kine" title="Code">💻</a></td>
|
|
268
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.ondrejmusil.cz"><img src="https://avatars.githubusercontent.com/u/959390?v=4?s=100" width="100px;" alt="Ondrej Musil"/><br /><sub><b>Ondrej Musil</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/issues?q=author%3Afreaz" title="Bug reports">🐛</a> <a href="#ideas-freaz" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
269
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/anatolybolshakov"><img src="https://avatars.githubusercontent.com/u/8779682?v=4?s=100" width="100px;" alt="Anatoly Bolshakov"/><br /><sub><b>Anatoly Bolshakov</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=anatolybolshakov" title="Code">💻</a></td>
|
|
270
|
+
</tr>
|
|
271
|
+
<tr>
|
|
272
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/reisingerf"><img src="https://avatars.githubusercontent.com/u/31906163?v=4?s=100" width="100px;" alt="reisingerf"/><br /><sub><b>reisingerf</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=reisingerf" title="Documentation">📖</a></td>
|
|
268
273
|
</tr>
|
|
269
274
|
</tbody>
|
|
270
275
|
</table>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CXKOSGOZ.js";
|
|
4
|
+
import "../chunk-EMD2PGL5.js";
|
|
5
|
+
import "../chunk-TMWVVSKB.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
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-CXKOSGOZ.js";
|
|
10
|
+
import "./chunk-EMD2PGL5.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-55D645EH.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TMWVVSKB.js";
|
|
19
19
|
import {
|
|
20
20
|
getProjectOutDir,
|
|
21
21
|
isAuthEnabled,
|
|
@@ -46,7 +46,7 @@ const channelPointer = z
|
|
|
46
46
|
|
|
47
47
|
const resourcePointer = z.object({
|
|
48
48
|
id: z.string(),
|
|
49
|
-
version: z.string().optional().default('latest'),
|
|
49
|
+
version: z.union([z.string(), z.number()]).optional().default('latest'),
|
|
50
50
|
type: z.enum(['service', 'event', 'command', 'query', 'flow', 'channel', 'domain', 'user', 'team', 'container']),
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -79,7 +79,7 @@ const baseSchema = z.object({
|
|
|
79
79
|
id: z.string(),
|
|
80
80
|
name: z.string(),
|
|
81
81
|
summary: z.string().optional(),
|
|
82
|
-
version: z.string(),
|
|
82
|
+
version: z.union([z.string(), z.number()]),
|
|
83
83
|
draft: z.union([z.boolean(), z.object({ title: z.string().optional(), message: z.string() })]).optional(),
|
|
84
84
|
badges: z.array(badge).optional(),
|
|
85
85
|
owners: z.array(ownerReference).optional(),
|
|
@@ -143,14 +143,19 @@ const navigationItems = [
|
|
|
143
143
|
return userSideBarOption ? userSideBarOption.visible : true;
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
const studioNavigationItem =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
const studioNavigationItem = [
|
|
147
|
+
{
|
|
148
|
+
id: '/studio',
|
|
149
|
+
label: 'EventCatalog Studio',
|
|
150
|
+
icon: SquareDashedMousePointerIcon,
|
|
151
|
+
href: buildUrl('/studio'),
|
|
152
|
+
current: currentPath.includes('/studio'),
|
|
153
|
+
sidebar: false,
|
|
154
|
+
},
|
|
155
|
+
].filter((item) => {
|
|
156
|
+
const userSideBarOption = userSideBarConfiguration.find((config: { id: string; visible: boolean }) => config.id === item.id);
|
|
157
|
+
return userSideBarOption ? userSideBarOption.visible : true;
|
|
158
|
+
});
|
|
154
159
|
|
|
155
160
|
const premiumFeatures = [
|
|
156
161
|
{
|
|
@@ -175,7 +180,7 @@ const premiumFeatures = [
|
|
|
175
180
|
return userSideBarOption ? userSideBarOption.visible : true;
|
|
176
181
|
});
|
|
177
182
|
|
|
178
|
-
const currentNavigationItem = [...navigationItems, ...
|
|
183
|
+
const currentNavigationItem = [...navigationItems, ...studioNavigationItem, ...premiumFeatures].find((item) => item.current);
|
|
179
184
|
const { title, description } = Astro.props;
|
|
180
185
|
|
|
181
186
|
const showSideBarOnLoad = currentNavigationItem?.sidebar;
|
|
@@ -273,23 +278,25 @@ const canPageBeEmbedded = process.env.ENABLE_EMBED === 'true';
|
|
|
273
278
|
|
|
274
279
|
<hr class="w-8 border-t border-gray-200" />
|
|
275
280
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<span
|
|
284
|
-
class="tooltip rounded shadow-lg p-1 text-xs bg-gradient-to-l from-purple-500 to-purple-700 text-white ml-10"
|
|
281
|
+
{
|
|
282
|
+
studioNavigationItem.length > 0 && (
|
|
283
|
+
<a
|
|
284
|
+
id={studioNavigationItem[0].id}
|
|
285
|
+
data-role="nav-item"
|
|
286
|
+
href={studioNavigationItem[0].href}
|
|
287
|
+
class={`p-1.5 inline-block pt-1 pb-1 mt-0 mb-0 transition-colors duration-200 rounded-lg relative ${studioNavigationItem[0].current ? 'text-white bg-gradient-to-b from-purple-500 to-purple-700' : 'hover:bg-gradient-to-r hover:from-purple-500 hover:to-purple-700 hover:text-white text-gray-700'}`}
|
|
285
288
|
>
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
<div class="has-tooltip">
|
|
290
|
+
<span class="tooltip rounded shadow-lg p-1 text-xs bg-gradient-to-l from-purple-500 to-purple-700 text-white ml-10">
|
|
291
|
+
{studioNavigationItem[0].label}
|
|
292
|
+
</span>
|
|
293
|
+
<SquareDashedMousePointerIcon className="h-6 w-6" />
|
|
294
|
+
</div>
|
|
295
|
+
</a>
|
|
296
|
+
)
|
|
297
|
+
}
|
|
291
298
|
|
|
292
|
-
<hr class="w-8 border-t border-gray-200" />
|
|
299
|
+
{studioNavigationItem.length > 0 && <hr class="w-8 border-t border-gray-200" />}
|
|
293
300
|
|
|
294
301
|
{
|
|
295
302
|
premiumFeatures.map((item) => (
|
|
@@ -9,7 +9,9 @@ import config from '@config';
|
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
11
|
export const GET: APIRoute = async ({ params, request }) => {
|
|
12
|
-
|
|
12
|
+
const isFullCatalogAPIEnabled = config.api?.fullCatalogAPIEnabled ?? true;
|
|
13
|
+
|
|
14
|
+
if (!isFullCatalogAPIEnabled) {
|
|
13
15
|
return new Response(JSON.stringify({ error: 'Full catalog API is not enabled' }), {
|
|
14
16
|
status: 404,
|
|
15
17
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import config from './eventcatalog.config.js';
|
|
2
|
+
import typography from '@tailwindcss/typography';
|
|
2
3
|
|
|
3
4
|
const HEADER_HEIGHT = '4rem';
|
|
4
5
|
const theme = config.theme || {};
|
|
@@ -64,5 +65,5 @@ export default {
|
|
|
64
65
|
'min-h-[100px]',
|
|
65
66
|
],
|
|
66
67
|
|
|
67
|
-
plugins: [
|
|
68
|
+
plugins: [typography],
|
|
68
69
|
};
|