@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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.30.0";
40
+ var version = "2.30.1";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-T2XS2ZVB.js";
4
- import "../chunk-4Q54XOED.js";
3
+ } from "../chunk-RC4ARAOT.js";
4
+ import "../chunk-NSBAGG3S.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.30.0";
109
+ var version = "2.30.1";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-MZLYNODU.js";
4
- import "../chunk-T2XS2ZVB.js";
5
- import "../chunk-4Q54XOED.js";
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...`);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catalogToAstro,
3
3
  checkAndConvertMdToMdx
4
- } from "./chunk-DE2TXYKB.js";
4
+ } from "./chunk-7SI5EVOX.js";
5
5
  import "./chunk-E7TXTI7G.js";
6
6
  import "./chunk-HAYFEAB4.js";
7
7
  export {
@@ -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...`);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-T2XS2ZVB.js";
3
+ } from "./chunk-RC4ARAOT.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.30.0";
2
+ var version = "2.30.1";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-4Q54XOED.js";
3
+ } from "./chunk-NSBAGG3S.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.30.0";
28
+ var version = "2.30.1";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-4Q54XOED.js";
3
+ } from "./chunk-NSBAGG3S.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.0";
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 };
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-MZLYNODU.js";
10
- import "./chunk-T2XS2ZVB.js";
9
+ } from "./chunk-AGI6ZQUB.js";
10
+ import "./chunk-RC4ARAOT.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
- } from "./chunk-DE2TXYKB.js";
14
+ } from "./chunk-7SI5EVOX.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-4Q54XOED.js";
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="json" />
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;
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.30.0",
9
+ "version": "2.30.1",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },