@eventcatalog/core 2.30.0 → 2.30.1
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/catalog-to-astro-content-directory.cjs +1 -1
- package/dist/catalog-to-astro-content-directory.js +1 -1
- package/dist/{chunk-DE2TXYKB.js → chunk-7SI5EVOX.js} +1 -1
- package/dist/{chunk-MZLYNODU.js → chunk-AGI6ZQUB.js} +1 -1
- package/dist/{chunk-4Q54XOED.js → chunk-NSBAGG3S.js} +1 -1
- package/dist/{chunk-T2XS2ZVB.js → chunk-RC4ARAOT.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +2 -2
- package/dist/eventcatalog.config.d.cts +3 -7
- package/dist/eventcatalog.config.d.ts +3 -7
- package/dist/eventcatalog.js +4 -4
- package/eventcatalog/src/components/MDX/Schema.astro +3 -2
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +7 -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-AGI6ZQUB.js";
|
|
4
|
+
import "../chunk-RC4ARAOT.js";
|
|
5
|
+
import "../chunk-NSBAGG3S.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -222,7 +222,7 @@ var checkAndConvertMdToMdx = async (source, astroDir) => {
|
|
|
222
222
|
const files = await (0, import_glob.glob)(path3.join(source, "**"), {
|
|
223
223
|
nodir: true,
|
|
224
224
|
windowsPathsNoEscape: import_node_os.default.platform() == "win32",
|
|
225
|
-
ignore: ["node_modules/**", "**/dist/**"]
|
|
225
|
+
ignore: ["node_modules/**", "**/dist/**", "**/README.md"]
|
|
226
226
|
});
|
|
227
227
|
if (files.some((file) => file.endsWith(".md"))) {
|
|
228
228
|
console.log(`EventCatalog now requires all markdown files to be .mdx files. Converting all .md files to .mdx...`);
|
|
@@ -41,7 +41,7 @@ var checkAndConvertMdToMdx = async (source, astroDir) => {
|
|
|
41
41
|
const files = await glob(path.join(source, "**"), {
|
|
42
42
|
nodir: true,
|
|
43
43
|
windowsPathsNoEscape: os.platform() == "win32",
|
|
44
|
-
ignore: ["node_modules/**", "**/dist/**"]
|
|
44
|
+
ignore: ["node_modules/**", "**/dist/**", "**/README.md"]
|
|
45
45
|
});
|
|
46
46
|
if (files.some((file) => file.endsWith(".md"))) {
|
|
47
47
|
console.log(`EventCatalog now requires all markdown files to be .mdx files. Converting all .md files to .mdx...`);
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
157
157
|
var import_os = __toESM(require("os"), 1);
|
|
158
158
|
|
|
159
159
|
// package.json
|
|
160
|
-
var version = "2.30.
|
|
160
|
+
var version = "2.30.1";
|
|
161
161
|
|
|
162
162
|
// src/constants.ts
|
|
163
163
|
var VERSION = version;
|
|
@@ -404,7 +404,7 @@ var checkAndConvertMdToMdx = async (source, astroDir) => {
|
|
|
404
404
|
const files = await (0, import_glob.glob)(path5.join(source, "**"), {
|
|
405
405
|
nodir: true,
|
|
406
406
|
windowsPathsNoEscape: import_node_os.default.platform() == "win32",
|
|
407
|
-
ignore: ["node_modules/**", "**/dist/**"]
|
|
407
|
+
ignore: ["node_modules/**", "**/dist/**", "**/README.md"]
|
|
408
408
|
});
|
|
409
409
|
if (files.some((file) => file.endsWith(".md"))) {
|
|
410
410
|
console.log(`EventCatalog now requires all markdown files to be .mdx files. Converting all .md files to .mdx...`);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type SideBarConfig = {
|
|
2
|
+
id: string;
|
|
2
3
|
visible: boolean;
|
|
3
4
|
};
|
|
4
5
|
type ResourceDependency = {
|
|
@@ -31,15 +32,10 @@ interface Config {
|
|
|
31
32
|
renderParsedSchemas?: boolean;
|
|
32
33
|
};
|
|
33
34
|
mdxOptimize?: boolean;
|
|
35
|
+
sidebar?: SideBarConfig[];
|
|
34
36
|
docs: {
|
|
35
37
|
sidebar: {
|
|
36
38
|
type?: 'TREE_VIEW' | 'LIST_VIEW';
|
|
37
|
-
showPageHeadings: true;
|
|
38
|
-
services?: SideBarConfig;
|
|
39
|
-
messages?: SideBarConfig;
|
|
40
|
-
domains?: SideBarConfig;
|
|
41
|
-
teams?: SideBarConfig;
|
|
42
|
-
users?: SideBarConfig;
|
|
43
39
|
};
|
|
44
40
|
};
|
|
45
41
|
dependencies?: {
|
|
@@ -59,4 +55,4 @@ interface Config {
|
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
|
|
62
|
-
export type { Config };
|
|
58
|
+
export type { Config, SideBarConfig };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type SideBarConfig = {
|
|
2
|
+
id: string;
|
|
2
3
|
visible: boolean;
|
|
3
4
|
};
|
|
4
5
|
type ResourceDependency = {
|
|
@@ -31,15 +32,10 @@ interface Config {
|
|
|
31
32
|
renderParsedSchemas?: boolean;
|
|
32
33
|
};
|
|
33
34
|
mdxOptimize?: boolean;
|
|
35
|
+
sidebar?: SideBarConfig[];
|
|
34
36
|
docs: {
|
|
35
37
|
sidebar: {
|
|
36
38
|
type?: 'TREE_VIEW' | 'LIST_VIEW';
|
|
37
|
-
showPageHeadings: true;
|
|
38
|
-
services?: SideBarConfig;
|
|
39
|
-
messages?: SideBarConfig;
|
|
40
|
-
domains?: SideBarConfig;
|
|
41
|
-
teams?: SideBarConfig;
|
|
42
|
-
users?: SideBarConfig;
|
|
43
39
|
};
|
|
44
40
|
};
|
|
45
41
|
dependencies?: {
|
|
@@ -59,4 +55,4 @@ interface Config {
|
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
|
|
62
|
-
export type { Config };
|
|
58
|
+
export type { Config, SideBarConfig };
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-AGI6ZQUB.js";
|
|
10
|
+
import "./chunk-RC4ARAOT.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7SI5EVOX.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NSBAGG3S.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled
|
|
20
20
|
} from "./chunk-XMDPVKIJ.js";
|
|
@@ -10,9 +10,10 @@ interface Props {
|
|
|
10
10
|
};
|
|
11
11
|
title?: string;
|
|
12
12
|
filePath: string;
|
|
13
|
+
lang?: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
const { file = 'schema.json', catalog, title, filePath } = Astro.props;
|
|
16
|
+
const { file = 'schema.json', catalog, title, filePath, lang = 'json' } = Astro.props;
|
|
16
17
|
|
|
17
18
|
let code: string | null = null;
|
|
18
19
|
|
|
@@ -25,7 +26,7 @@ if (exists) {
|
|
|
25
26
|
{
|
|
26
27
|
code ? (
|
|
27
28
|
<div class="not-prose max-w-4xl overflow-x-auto">
|
|
28
|
-
<Code code={code} title={title || file} lang=
|
|
29
|
+
<Code code={code} title={title || file} lang={lang} />
|
|
29
30
|
</div>
|
|
30
31
|
) : (
|
|
31
32
|
<div class="italic">Tried to load schema from {path.join(catalog.filePath, file)}, but no schema can be found</div>
|
|
@@ -9,6 +9,8 @@ import { BookOpenText, Workflow, TableProperties, House, BookUser, MessageSquare
|
|
|
9
9
|
import Header from '../components/Header.astro';
|
|
10
10
|
import SEO from '../components/Seo.astro';
|
|
11
11
|
import SideNav from '../components/SideNav/SideNav.astro';
|
|
12
|
+
import config from '@config';
|
|
13
|
+
|
|
12
14
|
import '@fontsource/inter';
|
|
13
15
|
import '@fontsource/inter/400.css'; // Specify weight
|
|
14
16
|
import '@fontsource/inter/700.css'; // Specify weight
|
|
@@ -54,6 +56,7 @@ const getDefaultUrl = (route: string, defaultValue: string) => {
|
|
|
54
56
|
return buildUrl(defaultValue);
|
|
55
57
|
};
|
|
56
58
|
|
|
59
|
+
const userSideBarConfiguration = config.sidebar || [];
|
|
57
60
|
const navigationItems = [
|
|
58
61
|
{
|
|
59
62
|
id: '/',
|
|
@@ -111,7 +114,10 @@ const navigationItems = [
|
|
|
111
114
|
href: buildUrl('/chat'),
|
|
112
115
|
current: currentPath.includes('/chat'),
|
|
113
116
|
},
|
|
114
|
-
]
|
|
117
|
+
].filter((item) => {
|
|
118
|
+
const userSideBarOption = userSideBarConfiguration.find((config: { id: string; visible: boolean }) => config.id === item.id);
|
|
119
|
+
return userSideBarOption ? userSideBarOption.visible : true;
|
|
120
|
+
});
|
|
115
121
|
|
|
116
122
|
const currentNavigationItem = navigationItems.find((item) => item.current);
|
|
117
123
|
const { title, description } = Astro.props;
|