@eventcatalog/core 2.42.2 → 2.42.3

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/README.md CHANGED
@@ -278,4 +278,4 @@ This project follows the [all-contributors](https://github.com/all-contributors/
278
278
 
279
279
  # License
280
280
 
281
- MIT.
281
+ MIT
@@ -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.42.2";
40
+ var version = "2.42.3";
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-7UGAOGXQ.js";
4
- import "../chunk-JSNXGDYW.js";
3
+ } from "../chunk-ANO2D5HK.js";
4
+ import "../chunk-BZC2BFNY.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.42.2";
109
+ var version = "2.42.3";
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-CJI2BJQN.js";
4
- import "../chunk-7UGAOGXQ.js";
5
- import "../chunk-JSNXGDYW.js";
3
+ } from "../chunk-COTFUOVS.js";
4
+ import "../chunk-ANO2D5HK.js";
5
+ import "../chunk-BZC2BFNY.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-JSNXGDYW.js";
3
+ } from "./chunk-BZC2BFNY.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.42.2";
2
+ var version = "2.42.3";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-7UGAOGXQ.js";
3
+ } from "./chunk-ANO2D5HK.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.42.2";
28
+ var version = "2.42.3";
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-JSNXGDYW.js";
3
+ } from "./chunk-BZC2BFNY.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.42.2";
160
+ var version = "2.42.3";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -37,6 +37,7 @@ interface Config {
37
37
  organizationName: string;
38
38
  homepageLink: string;
39
39
  editUrl: string;
40
+ repositoryUrl?: string;
40
41
  landingPage?: string;
41
42
  base?: string;
42
43
  port?: string;
@@ -37,6 +37,7 @@ interface Config {
37
37
  organizationName: string;
38
38
  homepageLink: string;
39
39
  editUrl: string;
40
+ repositoryUrl?: string;
40
41
  landingPage?: string;
41
42
  base?: string;
42
43
  port?: string;
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-DCLTVJDP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-CJI2BJQN.js";
10
- import "./chunk-7UGAOGXQ.js";
9
+ } from "./chunk-COTFUOVS.js";
10
+ import "./chunk-ANO2D5HK.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
14
  } from "./chunk-SLEMYHTU.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-JSNXGDYW.js";
17
+ } from "./chunk-BZC2BFNY.js";
18
18
  import {
19
19
  isBackstagePluginEnabled,
20
20
  isEventCatalogScaleEnabled,
@@ -2,12 +2,15 @@
2
2
  import catalog from '@utils/eventcatalog-config/catalog';
3
3
  import Search from '@components/Search.astro';
4
4
  import { buildUrl } from '@utils/url-builder';
5
+ import { showEventCatalogBranding, showCustomBranding } from '@utils/feature';
5
6
 
6
7
  const logo = {
7
8
  src: ('/' + (catalog?.logo?.src || 'logo.png')).replace(/^\/+/, '/'),
8
9
  alt: catalog?.logo?.alt || 'Event Catalog',
9
10
  text: catalog?.logo?.text || 'EventCatalog',
10
11
  };
12
+
13
+ const repositoryUrl = catalog?.repositoryUrl || 'https://github.com/event-catalog/eventcatalog';
11
14
  ---
12
15
 
13
16
  <nav
@@ -28,18 +31,33 @@ const logo = {
28
31
  </div>
29
32
 
30
33
  <div class="hidden md:block w-3/12">
31
- <ul class="flex space-x-8 justify-end pr-2">
32
- <li>
33
- <a href="https://discord.com/invite/3rjaZMmrAm">
34
- <img src={buildUrl('/icons/discord.svg', true)} class="h-7 w-7" />
35
- </a>
36
- </li>
37
- <li>
38
- <a href="https://github.com/event-catalog/eventcatalog">
39
- <img src={buildUrl('/icons/github.svg', true)} class="h-7 w-7" />
40
- </a>
41
- </li>
42
- </ul>
34
+ {
35
+ showEventCatalogBranding() && (
36
+ <ul class="flex space-x-8 justify-end pr-2">
37
+ <li>
38
+ <a href="https://discord.com/invite/3rjaZMmrAm">
39
+ <img src={buildUrl('/icons/discord.svg', true)} class="h-7 w-7" />
40
+ </a>
41
+ </li>
42
+ <li>
43
+ <a href="https://github.com/event-catalog/eventcatalog">
44
+ <img src={buildUrl('/icons/github.svg', true)} class="h-7 w-7" />
45
+ </a>
46
+ </li>
47
+ </ul>
48
+ )
49
+ }
50
+ {
51
+ showCustomBranding() && !showEventCatalogBranding() && (
52
+ <ul class="flex space-x-8 justify-end pr-2">
53
+ <li>
54
+ <a href={repositoryUrl} class="text-gray-500 hover:text-gray-600 focus:outline-none focus:text-gray-600">
55
+ <img src={buildUrl('/icons/github.svg', true)} class="h-7 w-7" />
56
+ </a>
57
+ </li>
58
+ </ul>
59
+ )
60
+ }
43
61
  </div>
44
62
 
45
63
  <div class="md:hidden">
@@ -130,7 +130,7 @@ const baseSchema = z.object({
130
130
  .union([
131
131
  z.object({
132
132
  message: z.string().optional(),
133
- date: z.date().optional(),
133
+ date: z.union([z.string(), z.date()]).optional(),
134
134
  }),
135
135
  z.boolean().optional(),
136
136
  ])
@@ -1,34 +1,43 @@
1
1
  ---
2
2
  import { buildUrl } from '@utils/url-builder';
3
+ import { showEventCatalogBranding } from '@utils/feature';
3
4
  const { className } = Astro.props;
4
5
  ---
5
6
 
6
7
  <footer class={`relative py-4 space-y-8 border-t border-gray-300 ${className}`}>
7
- <div class="flex justify-between items-center py-8 text-gray-500 text-sm font-light">
8
- <div class="flex space-x-5">
9
- <a href="https://github.com/event-catalog/eventcatalog" target="_blank"
10
- ><svg
11
- class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
12
- style={`mask-image: url("${buildUrl('/icons/github.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
13
- ></svg></a
14
- >
15
- <a href="https://x.com/event_catalog" target="_blank"
16
- ><span class="sr-only">x</span><svg
17
- class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
18
- style={`mask-image: url("${buildUrl('/icons/x-twitter.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
19
- ></svg></a
20
- >
21
- <a href="https://www.youtube.com/@event-catalog" target="_blank"
22
- ><span class="sr-only">x</span><svg
23
- class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
24
- style={`mask-image: url("${buildUrl('/icons/youtube.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
25
- ></svg></a
26
- >
27
- </div>
28
- <a
29
- target="_blank"
30
- class="hover:text-primary hover:underline text-gray-400 font-light not-prose"
31
- href="https://eventcatalog.dev">Powered by EventCatalog</a
32
- >
33
- </div>
8
+ {
9
+ showEventCatalogBranding() && (
10
+ <div class="flex justify-between items-center py-8 text-gray-500 text-sm font-light">
11
+ <div class="flex space-x-5">
12
+ <a href="https://github.com/event-catalog/eventcatalog" target="_blank">
13
+ <svg
14
+ class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
15
+ style={`mask-image: url("${buildUrl('/icons/github.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
16
+ />
17
+ </a>
18
+ <a href="https://x.com/event_catalog" target="_blank">
19
+ <span class="sr-only">x</span>
20
+ <svg
21
+ class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
22
+ style={`mask-image: url("${buildUrl('/icons/x-twitter.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
23
+ />
24
+ </a>
25
+ <a href="https://www.youtube.com/@event-catalog" target="_blank">
26
+ <span class="sr-only">x</span>
27
+ <svg
28
+ class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
29
+ style={`mask-image: url("${buildUrl('/icons/youtube.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
30
+ />
31
+ </a>
32
+ </div>
33
+ <a
34
+ target="_blank"
35
+ class="hover:text-primary hover:underline text-gray-400 font-light not-prose"
36
+ href="https://eventcatalog.dev"
37
+ >
38
+ Powered by EventCatalog
39
+ </a>
40
+ </div>
41
+ )
42
+ }
34
43
  </footer>
@@ -17,6 +17,19 @@ import config from '@config';
17
17
  export const isEventCatalogStarterEnabled = () => process.env.EVENTCATALOG_STARTER === 'true';
18
18
  export const isEventCatalogScaleEnabled = () => process.env.EVENTCATALOG_SCALE === 'true';
19
19
 
20
+ export const showEventCatalogBranding = () => {
21
+ const override = process.env.EVENTCATALOG_SHOW_BRANDING;
22
+ // if any value we return true
23
+ if (override) {
24
+ return true;
25
+ }
26
+ return !isEventCatalogStarterEnabled() && !isEventCatalogScaleEnabled();
27
+ };
28
+
29
+ export const showCustomBranding = () => {
30
+ return isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
31
+ };
32
+
20
33
  export const isCustomDocsEnabled = () => isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
21
34
  export const isEventCatalogChatEnabled = () => {
22
35
  const isFeatureEnabledFromPlan = isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
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.42.2",
9
+ "version": "2.42.3",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },