@eventcatalog/core 2.21.3 → 2.21.5

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.21.3";
40
+ var version = "2.21.5";
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-Y3RLX2GF.js";
4
- import "../chunk-LF6C2UBE.js";
3
+ } from "../chunk-FZHOYLWJ.js";
4
+ import "../chunk-XLSTKMWD.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.21.3";
109
+ var version = "2.21.5";
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-N4Q2I3OP.js";
4
- import "../chunk-Y3RLX2GF.js";
5
- import "../chunk-LF6C2UBE.js";
3
+ } from "../chunk-UYXIOPEC.js";
4
+ import "../chunk-FZHOYLWJ.js";
5
+ import "../chunk-XLSTKMWD.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-LF6C2UBE.js";
3
+ } from "./chunk-XLSTKMWD.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-Y3RLX2GF.js";
3
+ } from "./chunk-FZHOYLWJ.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.21.3";
2
+ var version = "2.21.5";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.21.3";
28
+ var version = "2.21.5";
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-LF6C2UBE.js";
3
+ } from "./chunk-XLSTKMWD.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.21.3";
164
+ var version = "2.21.5";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -677,8 +677,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
677
677
  }
678
678
  );
679
679
  });
680
- var previewCatalog = async ({ command }) => {
681
- const canEmbedPages = await isBackstagePluginEnabled();
680
+ var previewCatalog = ({ command, canEmbedPages = false }) => {
682
681
  (0, import_node_child_process.execSync)(
683
682
  `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
684
683
  {
@@ -687,13 +686,15 @@ var previewCatalog = async ({ command }) => {
687
686
  }
688
687
  );
689
688
  };
690
- program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
689
+ program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
691
690
  console.log("Starting preview of your build...");
692
- previewCatalog({ command });
691
+ const canEmbedPages = await isBackstagePluginEnabled();
692
+ previewCatalog({ command, canEmbedPages });
693
693
  });
694
- program.command("start").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
694
+ program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
695
695
  console.log("Starting preview of your build...");
696
- previewCatalog({ command });
696
+ const canEmbedPages = await isBackstagePluginEnabled();
697
+ previewCatalog({ command, canEmbedPages });
697
698
  });
698
699
  program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
699
700
  await generate(dir);
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-OW2FQPYP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-N4Q2I3OP.js";
10
- import "./chunk-Y3RLX2GF.js";
9
+ } from "./chunk-UYXIOPEC.js";
10
+ import "./chunk-FZHOYLWJ.js";
11
11
  import {
12
12
  catalogToAstro
13
13
  } from "./chunk-CXKIF3EI.js";
14
14
  import {
15
15
  VERSION
16
- } from "./chunk-LF6C2UBE.js";
16
+ } from "./chunk-XLSTKMWD.js";
17
17
  import {
18
18
  isBackstagePluginEnabled
19
19
  } from "./chunk-XMDPVKIJ.js";
@@ -148,8 +148,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
148
148
  }
149
149
  );
150
150
  });
151
- var previewCatalog = async ({ command }) => {
152
- const canEmbedPages = await isBackstagePluginEnabled();
151
+ var previewCatalog = ({ command, canEmbedPages = false }) => {
153
152
  execSync(
154
153
  `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
155
154
  {
@@ -158,13 +157,15 @@ var previewCatalog = async ({ command }) => {
158
157
  }
159
158
  );
160
159
  };
161
- program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
160
+ program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
162
161
  console.log("Starting preview of your build...");
163
- previewCatalog({ command });
162
+ const canEmbedPages = await isBackstagePluginEnabled();
163
+ previewCatalog({ command, canEmbedPages });
164
164
  });
165
- program.command("start").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
165
+ program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
166
166
  console.log("Starting preview of your build...");
167
- previewCatalog({ command });
167
+ const canEmbedPages = await isBackstagePluginEnabled();
168
+ previewCatalog({ command, canEmbedPages });
168
169
  });
169
170
  program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
170
171
  await generate(dir);
@@ -16,18 +16,18 @@ const logo = {
16
16
  >
17
17
  <div class="px-4 sm:px-4 lg:px-4">
18
18
  <div class="flex justify-between items-center">
19
- <div class="flex-shrink-0 flex items-center w-1/3">
19
+ <div class="flex-shrink-0 flex items-center w-3/12">
20
20
  <a href={buildUrl(catalog.landingPage || '/')} class="flex space-x-2 items-center">
21
21
  {logo.src && <img alt={logo.alt} src={buildUrl(logo.src, true)} class="w-8 h-8" />}
22
22
  {logo.text && <span class="hidden sm:inline-block text-[1em]">{logo.text}</span>}
23
23
  </a>
24
24
  </div>
25
25
 
26
- <div class="hidden lg:block flex-grow w-1/3 px-10">
26
+ <div class="hidden lg:block flex-grow w-6/12 px-10">
27
27
  <Search />
28
28
  </div>
29
29
 
30
- <div class="hidden md:block w-1/3">
30
+ <div class="hidden md:block w-3/12">
31
31
  <ul class="flex space-x-8 justify-end pr-2">
32
32
  <li>
33
33
  <a href="https://discord.com/invite/3rjaZMmrAm">
@@ -200,7 +200,7 @@ const canPageBeEmbedded = process.env.ENABLE_EMBED === 'true';
200
200
 
201
201
  <div
202
202
  id="sidebar"
203
- class={`sidebar-transition h-content px-5 py-4 overflow-y-auto bg-white bg-gradient-to-b from-white to-gray-100 border-r border-gray-200 w-60 shadow-lg ml-16 ${showSideBarOnLoad ? 'block' : 'hidden'}`}
203
+ class={`sidebar-transition h-content px-5 py-4 overflow-y-auto bg-white bg-gradient-to-b border-r border-gray-100 w-60 ml-16 ${showSideBarOnLoad ? 'block' : 'hidden'}`}
204
204
  >
205
205
  <CatalogResourcesSideBar resources={sideNav} currentPath={currentPath} client:load />
206
206
  </div>
@@ -43,7 +43,7 @@ const {
43
43
 
44
44
  <VisualiserLayout title={`Visualiser | ${props.data.name} (${props.collection})`} description={props.data.summary}>
45
45
  <div class="bg-gray-100/50 m-4">
46
- <div class="h-[calc(100vh-110px)] w-full relative border border-gray-200" id={`${id}-portal`} transition:animate="fade"></div>
46
+ <div class="h-[calc(100vh-130px)] w-full relative border border-gray-200" id={`${id}-portal`} transition:animate="fade"></div>
47
47
  <NodeGraph
48
48
  id={id}
49
49
  collection={collection}
@@ -7,7 +7,7 @@ import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
7
7
  <VerticalSideBarLayout title={`Visualiser | Bounded context map`}>
8
8
  <div class="bg-gray-100/50 m-4">
9
9
  <div
10
- class="h-[calc(100vh-110px)] w-full relative border border-gray-200"
10
+ class="h-[calc(100vh-130px)] w-full relative border border-gray-200"
11
11
  id={`domain-context-map-portal`}
12
12
  transition:animate="fade"
13
13
  >
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.21.3",
9
+ "version": "2.21.5",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },