@eventcatalog/core 2.61.7 → 2.61.9

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.61.7";
40
+ var version = "2.61.9";
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-EMD2PGL5.js";
4
- import "../chunk-TMWVVSKB.js";
3
+ } from "../chunk-XFANC4LX.js";
4
+ import "../chunk-V3ST2S7I.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.61.7";
109
+ var version = "2.61.9";
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-CXKOSGOZ.js";
4
- import "../chunk-EMD2PGL5.js";
5
- import "../chunk-TMWVVSKB.js";
3
+ } from "../chunk-62PN6BKH.js";
4
+ import "../chunk-XFANC4LX.js";
5
+ import "../chunk-V3ST2S7I.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-EMD2PGL5.js";
3
+ } from "./chunk-XFANC4LX.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.61.7";
2
+ var version = "2.61.9";
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-TMWVVSKB.js";
3
+ } from "./chunk-V3ST2S7I.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.61.7";
28
+ var version = "2.61.9";
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-TMWVVSKB.js";
3
+ } from "./chunk-V3ST2S7I.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.61.7";
160
+ var version = "2.61.9";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -65,6 +65,7 @@ interface Config {
65
65
  docs: {
66
66
  sidebar: {
67
67
  type?: 'TREE_VIEW' | 'LIST_VIEW';
68
+ showOrphanedMessages?: boolean;
68
69
  };
69
70
  };
70
71
  dependencies?: {
@@ -65,6 +65,7 @@ interface Config {
65
65
  docs: {
66
66
  sidebar: {
67
67
  type?: 'TREE_VIEW' | 'LIST_VIEW';
68
+ showOrphanedMessages?: boolean;
68
69
  };
69
70
  };
70
71
  dependencies?: {
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-CXKOSGOZ.js";
10
- import "./chunk-EMD2PGL5.js";
9
+ } from "./chunk-62PN6BKH.js";
10
+ import "./chunk-XFANC4LX.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-TMWVVSKB.js";
18
+ } from "./chunk-V3ST2S7I.js";
19
19
  import {
20
20
  getProjectOutDir,
21
21
  isAuthEnabled,
@@ -24,7 +24,7 @@ import ecstudioWatcher from './integrations/ecstudio-watcher.mjs';
24
24
  const projectDirectory = process.env.PROJECT_DIR || process.cwd();
25
25
  const base = config.base || '/';
26
26
  const host = config.host || false;
27
- const compress = config.compress ?? true;
27
+ const compress = config.compress ?? false;
28
28
 
29
29
  const expressiveCodeConfig = {
30
30
  themes: ['andromeeda'],
@@ -305,7 +305,7 @@ const ServiceItem = React.memo(
305
305
  }
306
306
  );
307
307
 
308
- const ListViewSideBar: React.FC<ListViewSideBarProps> = ({ resources, currentPath }) => {
308
+ const ListViewSideBar: React.FC<ListViewSideBarProps> = ({ resources, currentPath, showOrphanedMessages }) => {
309
309
  const navRef = useRef<HTMLElement>(null);
310
310
  const [data] = useState(resources);
311
311
  const [searchTerm, setSearchTerm] = useState('');
@@ -1160,7 +1160,7 @@ const ListViewSideBar: React.FC<ListViewSideBarProps> = ({ resources, currentPat
1160
1160
  </div>
1161
1161
  )}
1162
1162
 
1163
- {filteredData['messagesNotInService'] && filteredData['messagesNotInService'].length > 0 && (
1163
+ {filteredData['messagesNotInService'] && filteredData['messagesNotInService'].length > 0 && showOrphanedMessages && (
1164
1164
  <div className="pt-4 pb-2">
1165
1165
  <CollapsibleGroup
1166
1166
  isCollapsed={collapsedGroups['messagesNotInService-group']}
@@ -87,4 +87,5 @@ export interface Resources {
87
87
  export interface ListViewSideBarProps {
88
88
  resources: Resources;
89
89
  currentPath: string;
90
+ showOrphanedMessages: boolean;
90
91
  }
@@ -18,6 +18,7 @@ const currentPath = Astro.url.pathname;
18
18
  let props;
19
19
 
20
20
  const SIDENAV_TYPE = config?.docs?.sidebar?.type ?? 'LIST_VIEW';
21
+ const SHOW_ORPHANED_MESSAGES = config?.docs?.sidebar?.showOrphanedMessages ?? true;
21
22
 
22
23
  if (SIDENAV_TYPE === 'LIST_VIEW') {
23
24
  props = await getListViewResources({ currentPath });
@@ -27,6 +28,10 @@ if (SIDENAV_TYPE === 'LIST_VIEW') {
27
28
  ---
28
29
 
29
30
  <div {...Astro.props}>
30
- {SIDENAV_TYPE === 'LIST_VIEW' && <ListViewSideBar resources={props} currentPath={currentPath} client:only />}
31
+ {
32
+ SIDENAV_TYPE === 'LIST_VIEW' && (
33
+ <ListViewSideBar resources={props} currentPath={currentPath} client:only showOrphanedMessages={SHOW_ORPHANED_MESSAGES} />
34
+ )
35
+ }
31
36
  {SIDENAV_TYPE === 'TREE_VIEW' && <SideNavTreeView client:only transition:persist tree={props} />}
32
37
  </div>
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.61.7",
9
+ "version": "2.61.9",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },