@eventcatalog/core 3.36.1 → 3.36.2
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/{chunk-HDENGAZL.js → chunk-H6TGUW5O.js} +1 -1
- package/dist/{chunk-V22QY5Q3.js → chunk-IO4U4MPC.js} +1 -1
- package/dist/{chunk-UJ7DX4SA.js → chunk-L723FWAT.js} +3 -3
- package/dist/{chunk-C7JCOHTI.js → chunk-R5ZDI2JO.js} +1 -1
- package/dist/{chunk-6D65JSOA.js → chunk-SEAN3UND.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +5 -1
- package/dist/eventcatalog.config.d.ts +5 -1
- package/dist/eventcatalog.js +10 -10
- 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/layouts/BaseLayout.astro +4 -7
- package/eventcatalog/src/stores/theme-store.ts +9 -13
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-L723FWAT.js";
|
|
4
|
+
import "../chunk-IO4U4MPC.js";
|
|
4
5
|
import "../chunk-4UVFXLPI.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-C7JCOHTI.js";
|
|
6
|
+
import "../chunk-R5ZDI2JO.js";
|
|
7
7
|
import "../chunk-5T63CXKU.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
raiseEvent
|
|
3
|
+
} from "./chunk-IO4U4MPC.js";
|
|
1
4
|
import {
|
|
2
5
|
countResources,
|
|
3
6
|
serializeCounts
|
|
4
7
|
} from "./chunk-4UVFXLPI.js";
|
|
5
|
-
import {
|
|
6
|
-
raiseEvent
|
|
7
|
-
} from "./chunk-V22QY5Q3.js";
|
|
8
8
|
import {
|
|
9
9
|
getEventCatalogConfigFile,
|
|
10
10
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
114
114
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
115
115
|
|
|
116
116
|
// package.json
|
|
117
|
-
var version = "3.36.
|
|
117
|
+
var version = "3.36.2";
|
|
118
118
|
|
|
119
119
|
// src/constants.ts
|
|
120
120
|
var VERSION = version;
|
|
@@ -64,6 +64,7 @@ type IntegrationsConfig = {
|
|
|
64
64
|
/** Log all analytics events to the browser console */
|
|
65
65
|
debug?: boolean;
|
|
66
66
|
};
|
|
67
|
+
type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
|
|
67
68
|
type ScalarConfiguration = any;
|
|
68
69
|
interface Config {
|
|
69
70
|
title: string;
|
|
@@ -82,9 +83,12 @@ interface Config {
|
|
|
82
83
|
* Theme for the catalog UI.
|
|
83
84
|
* - 'default': Default purple/slate theme
|
|
84
85
|
* - 'ocean': Deep blue/teal ocean-inspired theme
|
|
86
|
+
* - 'sapphire': Blue/violet theme
|
|
87
|
+
* - 'sunset': Orange/pink sunset-inspired theme
|
|
88
|
+
* - 'forest': Green forest-inspired theme
|
|
85
89
|
* @default 'default'
|
|
86
90
|
*/
|
|
87
|
-
theme?:
|
|
91
|
+
theme?: CatalogTheme;
|
|
88
92
|
auth?: AuthConfig;
|
|
89
93
|
rss?: {
|
|
90
94
|
enabled: boolean;
|
|
@@ -64,6 +64,7 @@ type IntegrationsConfig = {
|
|
|
64
64
|
/** Log all analytics events to the browser console */
|
|
65
65
|
debug?: boolean;
|
|
66
66
|
};
|
|
67
|
+
type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
|
|
67
68
|
type ScalarConfiguration = any;
|
|
68
69
|
interface Config {
|
|
69
70
|
title: string;
|
|
@@ -82,9 +83,12 @@ interface Config {
|
|
|
82
83
|
* Theme for the catalog UI.
|
|
83
84
|
* - 'default': Default purple/slate theme
|
|
84
85
|
* - 'ocean': Deep blue/teal ocean-inspired theme
|
|
86
|
+
* - 'sapphire': Blue/violet theme
|
|
87
|
+
* - 'sunset': Orange/pink sunset-inspired theme
|
|
88
|
+
* - 'forest': Green forest-inspired theme
|
|
85
89
|
* @default 'default'
|
|
86
90
|
*/
|
|
87
|
-
theme?:
|
|
91
|
+
theme?: CatalogTheme;
|
|
88
92
|
auth?: AuthConfig;
|
|
89
93
|
rss?: {
|
|
90
94
|
enabled: boolean;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
2
|
+
runMigrations
|
|
3
|
+
} from "./chunk-XUAF2H54.js";
|
|
4
|
+
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
resolve_catalog_dependencies_default
|
|
7
7
|
} from "./chunk-WAJIJEI3.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk-K3ZVEX2Y.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
log_build_default
|
|
16
|
+
} from "./chunk-L723FWAT.js";
|
|
17
|
+
import "./chunk-IO4U4MPC.js";
|
|
18
|
+
import "./chunk-4UVFXLPI.js";
|
|
19
19
|
import {
|
|
20
20
|
catalogToAstro
|
|
21
21
|
} from "./chunk-YDXB3BD2.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from "./chunk-ULZYHF3V.js";
|
|
29
29
|
import {
|
|
30
30
|
generate
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-H6TGUW5O.js";
|
|
32
32
|
import {
|
|
33
33
|
logger
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SEAN3UND.js";
|
|
35
35
|
import {
|
|
36
36
|
VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-R5ZDI2JO.js";
|
|
38
38
|
import {
|
|
39
39
|
getEventCatalogConfigFile,
|
|
40
40
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
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-H6TGUW5O.js";
|
|
4
|
+
import "./chunk-SEAN3UND.js";
|
|
5
|
+
import "./chunk-R5ZDI2JO.js";
|
|
6
6
|
import "./chunk-5T63CXKU.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -20,17 +20,14 @@ const catalogTheme = config.theme || 'default';
|
|
|
20
20
|
<!-- Inline script to prevent flash of wrong theme -->
|
|
21
21
|
<script is:inline define:vars={{ catalogTheme }}>
|
|
22
22
|
(function () {
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
return 'dark';
|
|
26
|
-
}
|
|
27
|
-
return 'light';
|
|
23
|
+
function getDefaultTheme() {
|
|
24
|
+
return 'dark';
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
function applyTheme() {
|
|
31
|
-
// Check localStorage first, fall back to
|
|
28
|
+
// Check localStorage first, fall back to dark mode
|
|
32
29
|
const stored = localStorage.getItem('eventcatalog-theme');
|
|
33
|
-
const theme = stored === 'light' || stored === 'dark' ? stored :
|
|
30
|
+
const theme = stored === 'light' || stored === 'dark' ? stored : getDefaultTheme();
|
|
34
31
|
document.documentElement.setAttribute('data-theme', theme);
|
|
35
32
|
// Also ensure catalog theme is set (for page transitions)
|
|
36
33
|
document.documentElement.setAttribute('data-catalog-theme', catalogTheme);
|
|
@@ -4,14 +4,11 @@ const THEME_KEY = 'eventcatalog-theme';
|
|
|
4
4
|
|
|
5
5
|
export type Theme = 'light' | 'dark';
|
|
6
6
|
|
|
7
|
-
export const themeStore = atom<Theme>('
|
|
7
|
+
export const themeStore = atom<Theme>('dark');
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
13
|
-
}
|
|
14
|
-
return 'light';
|
|
9
|
+
// Default theme when the user has not explicitly chosen one.
|
|
10
|
+
const getDefaultTheme = (): Theme => {
|
|
11
|
+
return 'dark';
|
|
15
12
|
};
|
|
16
13
|
|
|
17
14
|
// Apply theme to document via data-theme attribute
|
|
@@ -31,15 +28,14 @@ const initStore = () => {
|
|
|
31
28
|
themeStore.set(stored);
|
|
32
29
|
applyTheme(stored);
|
|
33
30
|
} else {
|
|
34
|
-
// No stored preference, use
|
|
35
|
-
const
|
|
36
|
-
themeStore.set(
|
|
37
|
-
applyTheme(
|
|
31
|
+
// No stored preference, use the catalog default
|
|
32
|
+
const defaultTheme = getDefaultTheme();
|
|
33
|
+
themeStore.set(defaultTheme);
|
|
34
|
+
applyTheme(defaultTheme);
|
|
38
35
|
}
|
|
39
36
|
} catch (e) {
|
|
40
37
|
console.warn('Failed to load theme:', e);
|
|
41
|
-
|
|
42
|
-
applyTheme(systemTheme);
|
|
38
|
+
applyTheme(getDefaultTheme());
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
};
|