@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.
@@ -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 = "3.36.1";
40
+ var version = "3.36.2";
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-V22QY5Q3.js";
4
- import "../chunk-C7JCOHTI.js";
3
+ } from "../chunk-IO4U4MPC.js";
4
+ import "../chunk-R5ZDI2JO.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.36.1";
114
+ var version = "3.36.2";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-UJ7DX4SA.js";
3
+ } from "../chunk-L723FWAT.js";
4
+ import "../chunk-IO4U4MPC.js";
4
5
  import "../chunk-4UVFXLPI.js";
5
- import "../chunk-V22QY5Q3.js";
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,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-6D65JSOA.js";
3
+ } from "./chunk-SEAN3UND.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-C7JCOHTI.js";
3
+ } from "./chunk-R5ZDI2JO.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -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
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.36.1";
2
+ var version = "3.36.2";
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-C7JCOHTI.js";
3
+ } from "./chunk-R5ZDI2JO.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.36.1";
28
+ var version = "3.36.2";
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-C7JCOHTI.js";
3
+ } from "./chunk-R5ZDI2JO.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.1";
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?: 'default' | 'ocean';
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?: 'default' | 'ocean';
91
+ theme?: CatalogTheme;
88
92
  auth?: AuthConfig;
89
93
  rss?: {
90
94
  enabled: boolean;
@@ -1,7 +1,7 @@
1
1
  import {
2
- log_build_default
3
- } from "./chunk-UJ7DX4SA.js";
4
- import "./chunk-4UVFXLPI.js";
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
- runMigrations
16
- } from "./chunk-XUAF2H54.js";
17
- import "./chunk-CA4U2JP7.js";
18
- import "./chunk-V22QY5Q3.js";
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-HDENGAZL.js";
31
+ } from "./chunk-H6TGUW5O.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-6D65JSOA.js";
34
+ } from "./chunk-SEAN3UND.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-C7JCOHTI.js";
37
+ } from "./chunk-R5ZDI2JO.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.36.1";
81
+ var version = "3.36.2";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-HDENGAZL.js";
4
- import "./chunk-6D65JSOA.js";
5
- import "./chunk-C7JCOHTI.js";
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
@@ -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 = "3.36.1";
39
+ var version = "3.36.2";
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-6D65JSOA.js";
4
- import "../chunk-C7JCOHTI.js";
3
+ } from "../chunk-SEAN3UND.js";
4
+ import "../chunk-R5ZDI2JO.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -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 getSystemTheme() {
24
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
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 system preference
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 : getSystemTheme();
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>('light');
7
+ export const themeStore = atom<Theme>('dark');
8
8
 
9
- // Get system preference
10
- const getSystemTheme = (): Theme => {
11
- if (typeof window !== 'undefined' && window.matchMedia) {
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 system preference
35
- const systemTheme = getSystemTheme();
36
- themeStore.set(systemTheme);
37
- applyTheme(systemTheme);
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
- const systemTheme = getSystemTheme();
42
- applyTheme(systemTheme);
38
+ applyTheme(getDefaultTheme());
43
39
  }
44
40
  }
45
41
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.36.1",
10
+ "version": "3.36.2",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },