@eventcatalog/core 2.56.1 → 2.56.3
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 +3 -1
- 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-W76RLX2N.js → chunk-OHDQ4LG4.js} +1 -1
- package/dist/{chunk-UB6PKRAW.js → chunk-RB5C7AID.js} +1 -1
- package/dist/{chunk-O6YGBXMA.js → chunk-TBYGYYON.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/components/CopyAsMarkdown.tsx +3 -3
- package/eventcatalog/src/components/SideNav/ListViewSideBar/index.tsx +9 -1
- package/eventcatalog/src/components/SideNav/ListViewSideBar/types.ts +5 -0
- package/eventcatalog/src/content.config.ts +2 -0
- package/eventcatalog/src/utils/url-builder.ts +12 -0
- package/package.json +2 -2
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)
|
|
@@ -262,6 +262,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
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
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>
|
|
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
|
+
<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>
|
|
265
267
|
</tr>
|
|
266
268
|
</tbody>
|
|
267
269
|
</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-TBYGYYON.js";
|
|
4
|
+
import "../chunk-RB5C7AID.js";
|
|
5
|
+
import "../chunk-OHDQ4LG4.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-TBYGYYON.js";
|
|
10
|
+
import "./chunk-RB5C7AID.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-OHDQ4LG4.js";
|
|
19
19
|
import {
|
|
20
20
|
getProjectOutDir,
|
|
21
21
|
isAuthEnabled,
|
|
@@ -2,7 +2,7 @@ import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
|
2
2
|
import { Copy, FileText, MessageCircleQuestion, ChevronDownIcon, ExternalLink, PenSquareIcon } from 'lucide-react';
|
|
3
3
|
import React, { useState, isValidElement } from 'react';
|
|
4
4
|
import type { Schema } from '@utils/collections/schemas';
|
|
5
|
-
import { buildUrl } from '@utils/url-builder';
|
|
5
|
+
import { buildUrl, toMarkdownUrl } from '@utils/url-builder';
|
|
6
6
|
|
|
7
7
|
// Type allows either a component type (like Lucide icon) or a pre-rendered element (like <img>)
|
|
8
8
|
type IconInput = React.ElementType | React.ReactElement;
|
|
@@ -74,7 +74,7 @@ export function CopyPageMenu({
|
|
|
74
74
|
|
|
75
75
|
// get the url of the current page
|
|
76
76
|
const url = window.location.href;
|
|
77
|
-
const markdownUrl = url
|
|
77
|
+
const markdownUrl = toMarkdownUrl(url);
|
|
78
78
|
|
|
79
79
|
// Determine the default action based on what's available
|
|
80
80
|
const getDefaultAction = () => {
|
|
@@ -290,7 +290,7 @@ export function CopyPageMenu({
|
|
|
290
290
|
{availableActions.chat && (
|
|
291
291
|
<DropdownMenu.Item
|
|
292
292
|
className="cursor-pointer hover:bg-gray-100 focus:outline-none focus:bg-gray-100"
|
|
293
|
-
onSelect={() => window.open(buildUrl(`/chat
|
|
293
|
+
onSelect={() => window.open(buildUrl(`/chat`) + `?query=${chatQuery}`)}
|
|
294
294
|
>
|
|
295
295
|
<MenuItemContent
|
|
296
296
|
icon={MessageCircleQuestion}
|
|
@@ -93,7 +93,15 @@ const ServiceItem = React.memo(
|
|
|
93
93
|
<HighlightedText text={item.label} searchTerm={searchTerm} />
|
|
94
94
|
<span className="text-xs text-gray-400">{item.draft ? ' (DRAFT)' : ''}</span>
|
|
95
95
|
</span>
|
|
96
|
-
<span
|
|
96
|
+
<span
|
|
97
|
+
style={{
|
|
98
|
+
color: item.sidebar?.color || '#9333ea',
|
|
99
|
+
backgroundColor: item.sidebar?.backgroundColor || '#faf5ff',
|
|
100
|
+
}}
|
|
101
|
+
className="ml-2 rounded bg-purple-50 px-2 py-0.5 text-[10px] font-medium text-purple-600"
|
|
102
|
+
>
|
|
103
|
+
{item.sidebar?.badge ? item.sidebar.badge?.toUpperCase() : 'SERVICE'}
|
|
104
|
+
</span>
|
|
97
105
|
</button>
|
|
98
106
|
}
|
|
99
107
|
>
|
|
@@ -24,6 +24,11 @@ export interface ServiceItem {
|
|
|
24
24
|
name: string;
|
|
25
25
|
id: string;
|
|
26
26
|
version: string;
|
|
27
|
+
sidebar?: {
|
|
28
|
+
badge?: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
};
|
|
27
32
|
draft: boolean | { title?: string; message: string };
|
|
28
33
|
sends: MessageItem[];
|
|
29
34
|
receives: MessageItem[];
|
|
@@ -48,3 +48,15 @@ export const buildEditUrlForResource = (editUrl: string, filePath: string) => {
|
|
|
48
48
|
const cleanFilePath = filePath.replace(/^\.\.?\//g, '');
|
|
49
49
|
return `${editUrl}/${cleanFilePath}`;
|
|
50
50
|
};
|
|
51
|
+
|
|
52
|
+
// Takes a given url and returns the .mdx url
|
|
53
|
+
export const toMarkdownUrl = (url: string) => {
|
|
54
|
+
const trailingSlash = __EC_TRAILING_SLASH__;
|
|
55
|
+
|
|
56
|
+
if (trailingSlash) {
|
|
57
|
+
const urlWithoutTrailingSlash = url.replace(/\/$/, '');
|
|
58
|
+
return urlWithoutTrailingSlash + '.mdx/';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return url + '.mdx';
|
|
62
|
+
};
|
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.56.
|
|
9
|
+
"version": "2.56.3",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@tanstack/react-table": "^8.17.3",
|
|
59
59
|
"@xyflow/react": "^12.3.6",
|
|
60
60
|
"ai": "^4.3.9",
|
|
61
|
-
"astro": "^5.13.
|
|
61
|
+
"astro": "^5.13.8",
|
|
62
62
|
"astro-compress": "^2.3.8",
|
|
63
63
|
"astro-expressive-code": "^0.40.1",
|
|
64
64
|
"astro-seo": "^0.8.4",
|