@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.
- 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-runtime.cjs +3 -0
- package/dist/catalog-runtime.d.cts +6 -1
- package/dist/catalog-runtime.d.ts +6 -1
- package/dist/catalog-runtime.js +3 -1
- package/dist/{chunk-SAN4U2WU.js → chunk-LFQJXLHG.js} +2 -0
- package/dist/{chunk-5U3IKG4U.js → chunk-M4O7O6JF.js} +1 -1
- package/dist/{chunk-IDSVEUSL.js → chunk-PXJXGUB7.js} +1 -1
- package/dist/{chunk-UVFZAJCT.js → chunk-SJHKPXAN.js} +1 -1
- package/dist/{chunk-YTT7Z7QA.js → chunk-SSWCO2GQ.js} +1 -1
- package/dist/{chunk-4BZILEBA.js → chunk-VXERKVOD.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +15 -6
- package/dist/eventcatalog.js +25 -16
- package/dist/federation/federate.js +2 -2
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/toolkit/layouts/Layout.astro +8 -3
- package/package.json +1 -1
|
@@ -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.
|
|
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-
|
|
3
|
+
} from "../chunk-SJHKPXAN.js";
|
|
4
4
|
import "../chunk-ZAZHAVKB.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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
|
package/dist/catalog-runtime.cjs
CHANGED
|
@@ -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 };
|
package/dist/catalog-runtime.js
CHANGED
|
@@ -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
|
};
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
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 = () =>
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
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
|
};
|
package/dist/eventcatalog.js
CHANGED
|
@@ -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-
|
|
33
|
+
} from "./chunk-PXJXGUB7.js";
|
|
34
34
|
import {
|
|
35
35
|
logger
|
|
36
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
63
|
+
} from "./chunk-LFQJXLHG.js";
|
|
63
64
|
import {
|
|
64
65
|
VERSION
|
|
65
|
-
} from "./chunk-
|
|
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 = () =>
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
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.
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -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={
|
|
30
|
+
wrapContent={!fullWidth}
|
|
29
31
|
>
|
|
30
|
-
|
|
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>
|