@eventcatalog/core 2.49.1 → 2.49.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.
@@ -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.49.1";
40
+ var version = "2.49.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-TVMUTOOL.js";
4
- import "../chunk-ZDOGODWQ.js";
3
+ } from "../chunk-DRNVNFGC.js";
4
+ import "../chunk-L6MICE4M.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.49.1";
109
+ var version = "2.49.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-AK2PL55W.js";
4
- import "../chunk-TVMUTOOL.js";
5
- import "../chunk-ZDOGODWQ.js";
3
+ } from "../chunk-QXSGLYMA.js";
4
+ import "../chunk-DRNVNFGC.js";
5
+ import "../chunk-L6MICE4M.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-ZDOGODWQ.js";
3
+ } from "./chunk-L6MICE4M.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.49.1";
2
+ var version = "2.49.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-TVMUTOOL.js";
3
+ } from "./chunk-DRNVNFGC.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.49.1";
28
+ var version = "2.49.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-ZDOGODWQ.js";
3
+ } from "./chunk-L6MICE4M.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.49.1";
160
+ var version = "2.49.3";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-XE6PFSH5.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-AK2PL55W.js";
10
- import "./chunk-TVMUTOOL.js";
9
+ } from "./chunk-QXSGLYMA.js";
10
+ import "./chunk-DRNVNFGC.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-LDBRNJIL.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-ZDOGODWQ.js";
18
+ } from "./chunk-L6MICE4M.js";
19
19
  import {
20
20
  isAuthEnabled,
21
21
  isBackstagePluginEnabled,
@@ -79,6 +79,7 @@ export default defineConfig({
79
79
  config.output !== 'server' && pagefind(),
80
80
  config.output !== 'server' && compress && (await import("astro-compress")).default({
81
81
  Logger: 0,
82
+ CSS: false,
82
83
  }),
83
84
  ].filter(Boolean),
84
85
  vite: {
@@ -197,9 +197,7 @@ export default function DomainGrid({ domains, embeded }: DomainGridProps) {
197
197
  <div className="bg-white border-r border-gray-200 px-2 py-1.5 rounded-l-md">
198
198
  <Icon className={`h-3 w-3 text-${color}-500`} />
199
199
  </div>
200
- <span className="px-1 py-1 truncate max-w-[140px]">
201
- {message.id} really long name that might break something
202
- </span>
200
+ <span className="px-1 py-1 truncate max-w-[140px]">{message.id}</span>
203
201
  </div>
204
202
  );
205
203
  })}
@@ -2,6 +2,7 @@ import { createColumnHelper } from '@tanstack/react-table';
2
2
  import { Tag } from 'lucide-react';
3
3
  import { filterByBadge } from '../filters/custom-filters';
4
4
  import type { TCollectionTypes, TData } from '../Table';
5
+ import { getIcon } from '@utils/badges';
5
6
 
6
7
  export const createBadgesColumn = <T extends { data: Pick<TData<U>['data'], 'badges'> }, U extends TCollectionTypes>(
7
8
  columnHelper: ReturnType<typeof createColumnHelper<T>>
@@ -25,8 +26,17 @@ export const createBadgesColumn = <T extends { data: Pick<TData<U>['data'], 'bad
25
26
  <div className="flex items-center border border-gray-300 shadow-sm rounded-md">
26
27
  <span className="flex items-center">
27
28
  <span className={`bg-${badge.backgroundColor}-500 h-full rounded-tl rounded-bl p-1`}>
28
- {badge.icon && <badge.icon className="h-4 w-4 text-white" />}
29
- {!badge.icon && <Tag className="h-4 w-4 text-white" />}
29
+ {(() => {
30
+ if (badge.icon) {
31
+ const IconComponent = getIcon(badge.icon);
32
+ return IconComponent ? (
33
+ <IconComponent className="h-4 w-4 text-white" />
34
+ ) : (
35
+ <Tag className="h-4 w-4 text-white" />
36
+ );
37
+ }
38
+ return <Tag className="h-4 w-4 text-white" />;
39
+ })()}
30
40
  </span>
31
41
  <span className="leading-none px-2 group-hover:underline ">{badge.content}</span>
32
42
  </span>
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.49.1",
9
+ "version": "2.49.3",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -35,6 +35,7 @@
35
35
  "@asyncapi/react-component": "^2.4.3",
36
36
  "@auth/core": "^0.37.4",
37
37
  "@eventcatalog/generator-ai": "^1.1.0",
38
+ "@eventcatalog/linter": "^0.0.2",
38
39
  "@eventcatalog/sdk": "^2.2.7",
39
40
  "@fontsource/inter": "^5.2.5",
40
41
  "@headlessui/react": "^2.0.3",
@@ -146,6 +147,7 @@
146
147
  "generate": "pnpm run build:bin && npx . generate",
147
148
  "release": "changeset publish",
148
149
  "format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json,astro}\"",
149
- "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\""
150
+ "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\"",
151
+ "lint:catalog": "pnpm dlx @eventcatalog/linter examples/default"
150
152
  }
151
153
  }