@eventcatalog/core 4.12.0-beta.5 → 4.12.0-beta.7

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.
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.12.0-beta.5";
39
+ var version = "4.12.0-beta.7";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-YTT7Z7QA.js";
4
- import "../chunk-4BZILEBA.js";
3
+ } from "../chunk-SSWCO2GQ.js";
4
+ import "../chunk-VXERKVOD.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -146,7 +146,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
146
146
  var import_os = __toESM(require("os"), 1);
147
147
 
148
148
  // package.json
149
- var version = "4.12.0-beta.5";
149
+ var version = "4.12.0-beta.7";
150
150
 
151
151
  // src/constants.ts
152
152
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-UVFZAJCT.js";
3
+ } from "../chunk-SJHKPXAN.js";
4
4
  import "../chunk-ZAZHAVKB.js";
5
- import "../chunk-YTT7Z7QA.js";
6
- import "../chunk-4BZILEBA.js";
5
+ import "../chunk-SSWCO2GQ.js";
6
+ import "../chunk-VXERKVOD.js";
7
7
  import "../chunk-JE6RX7SJ.js";
8
8
  export {
9
9
  log_build_default as default
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var catalog_runtime_exports = {};
32
32
  __export(catalog_runtime_exports, {
33
33
  clearCatalogCache: () => clearCatalogCache,
34
+ hasLegacyCatalogRuntime: () => hasLegacyCatalogRuntime,
34
35
  prepareCatalogRuntime: () => prepareCatalogRuntime
35
36
  });
36
37
  module.exports = __toCommonJS(catalog_runtime_exports);
@@ -66,6 +67,7 @@ var writeIfChanged = (file, content) => {
66
67
  import_node_fs.default.writeFileSync(file, content);
67
68
  };
68
69
  var importPath = (file) => file.replace(/\\/g, "/");
70
+ var hasLegacyCatalogRuntime = (projectDirectory) => import_node_fs.default.existsSync(import_node_path2.default.join(projectDirectory, ".eventcatalog-core"));
69
71
  var clearCatalogCache = (projectDirectory) => {
70
72
  const { cacheDirectory } = getRuntimePaths(projectDirectory);
71
73
  import_node_fs.default.rmSync(cacheDirectory, { recursive: true, force: true });
@@ -132,5 +134,6 @@ var prepareCatalogRuntime = ({ projectDirectory, catalogDirectory, packageDirect
132
134
  // Annotate the CommonJS export names for ESM import in node:
133
135
  0 && (module.exports = {
134
136
  clearCatalogCache,
137
+ hasLegacyCatalogRuntime,
135
138
  prepareCatalogRuntime
136
139
  });
@@ -4,9 +4,14 @@ type RuntimeOptions = {
4
4
  /** The installed package's eventcatalog/ directory. */
5
5
  packageDirectory: string;
6
6
  };
7
+ /**
8
+ * Versions before 4.12 copied the application into `.eventcatalog-core/`. It is
9
+ * left in place because an older EventCatalog process may still be using it.
10
+ */
11
+ declare const hasLegacyCatalogRuntime: (projectDirectory: string) => boolean;
7
12
  /** Clear all generated Astro state, not just EventCatalog's bootstrap files. */
8
13
  declare const clearCatalogCache: (projectDirectory: string) => void;
9
14
  /** Generate only collection/type metadata inside Astro's cache. */
10
15
  declare const prepareCatalogRuntime: ({ projectDirectory, catalogDirectory, packageDirectory }: RuntimeOptions) => void;
11
16
 
12
- export { clearCatalogCache, prepareCatalogRuntime };
17
+ export { clearCatalogCache, hasLegacyCatalogRuntime, prepareCatalogRuntime };
@@ -4,9 +4,14 @@ type RuntimeOptions = {
4
4
  /** The installed package's eventcatalog/ directory. */
5
5
  packageDirectory: string;
6
6
  };
7
+ /**
8
+ * Versions before 4.12 copied the application into `.eventcatalog-core/`. It is
9
+ * left in place because an older EventCatalog process may still be using it.
10
+ */
11
+ declare const hasLegacyCatalogRuntime: (projectDirectory: string) => boolean;
7
12
  /** Clear all generated Astro state, not just EventCatalog's bootstrap files. */
8
13
  declare const clearCatalogCache: (projectDirectory: string) => void;
9
14
  /** Generate only collection/type metadata inside Astro's cache. */
10
15
  declare const prepareCatalogRuntime: ({ projectDirectory, catalogDirectory, packageDirectory }: RuntimeOptions) => void;
11
16
 
12
- export { clearCatalogCache, prepareCatalogRuntime };
17
+ export { clearCatalogCache, hasLegacyCatalogRuntime, prepareCatalogRuntime };
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  clearCatalogCache,
3
+ hasLegacyCatalogRuntime,
3
4
  prepareCatalogRuntime
4
- } from "./chunk-SAN4U2WU.js";
5
+ } from "./chunk-LFQJXLHG.js";
5
6
  export {
6
7
  clearCatalogCache,
8
+ hasLegacyCatalogRuntime,
7
9
  prepareCatalogRuntime
8
10
  };
@@ -25,6 +25,7 @@ var writeIfChanged = (file, content) => {
25
25
  fs.writeFileSync(file, content);
26
26
  };
27
27
  var importPath = (file) => file.replace(/\\/g, "/");
28
+ var hasLegacyCatalogRuntime = (projectDirectory) => fs.existsSync(path2.join(projectDirectory, ".eventcatalog-core"));
28
29
  var clearCatalogCache = (projectDirectory) => {
29
30
  const { cacheDirectory } = getRuntimePaths(projectDirectory);
30
31
  fs.rmSync(cacheDirectory, { recursive: true, force: true });
@@ -91,6 +92,7 @@ var prepareCatalogRuntime = ({ projectDirectory, catalogDirectory, packageDirect
91
92
 
92
93
  export {
93
94
  getRuntimePaths,
95
+ hasLegacyCatalogRuntime,
94
96
  clearCatalogCache,
95
97
  prepareCatalogRuntime
96
98
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-4BZILEBA.js";
3
+ } from "./chunk-VXERKVOD.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-5U3IKG4U.js";
3
+ } from "./chunk-M4O7O6JF.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ZAZHAVKB.js";
6
6
  import {
7
7
  raiseEvent
8
- } from "./chunk-YTT7Z7QA.js";
8
+ } from "./chunk-SSWCO2GQ.js";
9
9
  import {
10
10
  getEventCatalogConfigFile,
11
11
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-4BZILEBA.js";
3
+ } from "./chunk-VXERKVOD.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.12.0-beta.5";
2
+ var version = "4.12.0-beta.7";
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 = "4.12.0-beta.5";
28
+ var version = "4.12.0-beta.7";
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-4BZILEBA.js";
3
+ } from "./chunk-VXERKVOD.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -151,7 +151,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
151
151
  var import_picocolors = __toESM(require("picocolors"), 1);
152
152
 
153
153
  // package.json
154
- var version = "4.12.0-beta.5";
154
+ var version = "4.12.0-beta.7";
155
155
 
156
156
  // src/constants.ts
157
157
  var VERSION = version;
@@ -1583,6 +1583,7 @@ var writeIfChanged = (file, content) => {
1583
1583
  import_node_fs7.default.writeFileSync(file, content);
1584
1584
  };
1585
1585
  var importPath = (file) => file.replace(/\\/g, "/");
1586
+ var hasLegacyCatalogRuntime = (projectDirectory) => import_node_fs7.default.existsSync(import_node_path11.default.join(projectDirectory, ".eventcatalog-core"));
1586
1587
  var clearCatalogCache = (projectDirectory) => {
1587
1588
  const { cacheDirectory } = getRuntimePaths(projectDirectory);
1588
1589
  import_node_fs7.default.rmSync(cacheDirectory, { recursive: true, force: true });
@@ -2857,11 +2858,19 @@ var runCommandWithFilteredOutput = async ({
2857
2858
  });
2858
2859
  });
2859
2860
  };
2860
- var prepareCore = () => prepareCatalogRuntime({
2861
- projectDirectory: dir,
2862
- catalogDirectory: core,
2863
- packageDirectory: eventCatalogDir
2864
- });
2861
+ var prepareCore = () => {
2862
+ if (hasLegacyCatalogRuntime(dir)) {
2863
+ logger.warning(
2864
+ "The .eventcatalog-core/ directory is no longer used. You can delete it once older EventCatalog processes have stopped.",
2865
+ "eventcatalog"
2866
+ );
2867
+ }
2868
+ prepareCatalogRuntime({
2869
+ projectDirectory: dir,
2870
+ catalogDirectory: core,
2871
+ packageDirectory: eventCatalogDir
2872
+ });
2873
+ };
2865
2874
  var clearCore = () => {
2866
2875
  clearCatalogCache(dir);
2867
2876
  };
@@ -1,11 +1,11 @@
1
- import {
2
- log_build_default
3
- } from "./chunk-UVFZAJCT.js";
4
- import "./chunk-ZAZHAVKB.js";
5
1
  import {
6
2
  runMigrations
7
3
  } from "./chunk-XUAF2H54.js";
8
4
  import "./chunk-CA4U2JP7.js";
5
+ import {
6
+ log_build_default
7
+ } from "./chunk-SJHKPXAN.js";
8
+ import "./chunk-ZAZHAVKB.js";
9
9
  import {
10
10
  FederationConflictError,
11
11
  FederationDiagnosticError,
@@ -14,14 +14,14 @@ import {
14
14
  import "./chunk-WRNH5C3U.js";
15
15
  import "./chunk-5EPNFDT5.js";
16
16
  import "./chunk-A2RZR3U4.js";
17
- import "./chunk-SDZQJTJW.js";
18
- import "./chunk-352FGP6W.js";
19
17
  import "./chunk-R7Z5ALYI.js";
20
18
  import {
21
19
  getFederationDiagnosticCounts,
22
20
  getVisibleFederationDiagnostics
23
21
  } from "./chunk-JJPB6EOZ.js";
24
22
  import "./chunk-FV56YFM4.js";
23
+ import "./chunk-SDZQJTJW.js";
24
+ import "./chunk-352FGP6W.js";
25
25
  import {
26
26
  getProjectOutDir,
27
27
  isAuthEnabled,
@@ -30,10 +30,10 @@ import {
30
30
  } from "./chunk-3SJDIENM.js";
31
31
  import {
32
32
  generate
33
- } from "./chunk-IDSVEUSL.js";
33
+ } from "./chunk-PXJXGUB7.js";
34
34
  import {
35
35
  logger
36
- } from "./chunk-5U3IKG4U.js";
36
+ } from "./chunk-M4O7O6JF.js";
37
37
  import {
38
38
  resolve_catalog_dependencies_default
39
39
  } from "./chunk-EEZXGNF6.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  watch
49
49
  } from "./chunk-U63GDPPY.js";
50
- import "./chunk-YTT7Z7QA.js";
50
+ import "./chunk-SSWCO2GQ.js";
51
51
  import {
52
52
  getAstroConfigPath
53
53
  } from "./chunk-VIJJ7JKH.js";
@@ -58,11 +58,12 @@ import {
58
58
  import {
59
59
  clearCatalogCache,
60
60
  getRuntimePaths,
61
+ hasLegacyCatalogRuntime,
61
62
  prepareCatalogRuntime
62
- } from "./chunk-SAN4U2WU.js";
63
+ } from "./chunk-LFQJXLHG.js";
63
64
  import {
64
65
  VERSION
65
- } from "./chunk-4BZILEBA.js";
66
+ } from "./chunk-VXERKVOD.js";
66
67
  import {
67
68
  getEventCatalogConfigFile,
68
69
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -819,11 +820,19 @@ var runCommandWithFilteredOutput = async ({
819
820
  });
820
821
  });
821
822
  };
822
- var prepareCore = () => prepareCatalogRuntime({
823
- projectDirectory: dir,
824
- catalogDirectory: core,
825
- packageDirectory: eventCatalogDir
826
- });
823
+ var prepareCore = () => {
824
+ if (hasLegacyCatalogRuntime(dir)) {
825
+ logger.warning(
826
+ "The .eventcatalog-core/ directory is no longer used. You can delete it once older EventCatalog processes have stopped.",
827
+ "eventcatalog"
828
+ );
829
+ }
830
+ prepareCatalogRuntime({
831
+ projectDirectory: dir,
832
+ catalogDirectory: core,
833
+ packageDirectory: eventCatalogDir
834
+ });
835
+ };
827
836
  var clearCore = () => {
828
837
  clearCatalogCache(dir);
829
838
  };
@@ -6,11 +6,11 @@ import {
6
6
  import "../chunk-WRNH5C3U.js";
7
7
  import "../chunk-5EPNFDT5.js";
8
8
  import "../chunk-A2RZR3U4.js";
9
- import "../chunk-SDZQJTJW.js";
10
- import "../chunk-352FGP6W.js";
11
9
  import "../chunk-R7Z5ALYI.js";
12
10
  import "../chunk-JJPB6EOZ.js";
13
11
  import "../chunk-FV56YFM4.js";
12
+ import "../chunk-SDZQJTJW.js";
13
+ import "../chunk-352FGP6W.js";
14
14
  import "../chunk-JE6RX7SJ.js";
15
15
  export {
16
16
  FederationConflictError,
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "4.12.0-beta.5";
115
+ var version = "4.12.0-beta.7";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-IDSVEUSL.js";
4
- import "./chunk-5U3IKG4U.js";
5
- import "./chunk-4BZILEBA.js";
3
+ } from "./chunk-PXJXGUB7.js";
4
+ import "./chunk-M4O7O6JF.js";
5
+ import "./chunk-VXERKVOD.js";
6
6
  import "./chunk-JE6RX7SJ.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.12.0-beta.5";
39
+ var version = "4.12.0-beta.7";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-5U3IKG4U.js";
4
- import "../chunk-4BZILEBA.js";
3
+ } from "../chunk-M4O7O6JF.js";
4
+ import "../chunk-VXERKVOD.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -13,11 +13,13 @@ interface Props {
13
13
  sidebar?: boolean;
14
14
  /** Show the EventCatalog header (search, navigation). Defaults to true. */
15
15
  showHeader?: boolean;
16
+ /** Render content edge-to-edge without EventCatalog's page padding. Defaults to false. */
17
+ fullWidth?: boolean;
16
18
  }
17
19
 
18
20
  import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
19
21
 
20
- const { title, description, sidebar = true, showHeader = true } = Astro.props;
22
+ const { title, description, sidebar = true, showHeader = true, fullWidth = false } = Astro.props;
21
23
  ---
22
24
 
23
25
  <VerticalSideBarLayout
@@ -25,7 +27,10 @@ const { title, description, sidebar = true, showHeader = true } = Astro.props;
25
27
  description={description}
26
28
  showHeader={showHeader}
27
29
  showNestedSideBar={sidebar}
28
- wrapContent={false}
30
+ wrapContent={!fullWidth}
29
31
  >
30
- <slot />
32
+ {/* Full-width pages keep control of their layout, so only the theme text color is inherited. */}
33
+ <div class:list={['text-[rgb(var(--ec-page-text))]', fullWidth ? 'contents' : 'py-8']}>
34
+ <slot />
35
+ </div>
31
36
  </VerticalSideBarLayout>
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.12.0-beta.5",
10
+ "version": "4.12.0-beta.7",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },