@eventcatalog/core 2.49.0 → 2.49.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-QQG73DB5.js → chunk-LOP5GRVK.js} +1 -1
- package/dist/{chunk-X3XCTJAT.js → chunk-MOHJFKGI.js} +1 -1
- package/dist/{chunk-OOQGPTHB.js → chunk-PX4SAAXL.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/astro.config.mjs +6 -1
- package/eventcatalog/src/components/Grids/DomainGrid.tsx +1 -3
- package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +12 -2
- package/package.json +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LOP5GRVK.js";
|
|
4
|
+
import "../chunk-PX4SAAXL.js";
|
|
5
|
+
import "../chunk-MOHJFKGI.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-XE6PFSH5.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LOP5GRVK.js";
|
|
10
|
+
import "./chunk-PX4SAAXL.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-
|
|
18
|
+
} from "./chunk-MOHJFKGI.js";
|
|
19
19
|
import {
|
|
20
20
|
isAuthEnabled,
|
|
21
21
|
isBackstagePluginEnabled,
|
|
@@ -20,7 +20,7 @@ import expressiveCode from 'astro-expressive-code';
|
|
|
20
20
|
const projectDirectory = process.env.PROJECT_DIR || process.cwd();
|
|
21
21
|
const base = config.base || '/';
|
|
22
22
|
const host = config.host || false;
|
|
23
|
-
const compress = config.compress
|
|
23
|
+
const compress = config.compress ?? true;
|
|
24
24
|
|
|
25
25
|
// https://astro.build/config
|
|
26
26
|
export default defineConfig({
|
|
@@ -79,6 +79,11 @@ 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
|
+
Exclude: [
|
|
83
|
+
(File) =>
|
|
84
|
+
// Fix for https://github.com/event-catalog/eventcatalog/issues/1600
|
|
85
|
+
File.includes("TreeView"),
|
|
86
|
+
],
|
|
82
87
|
}),
|
|
83
88
|
].filter(Boolean),
|
|
84
89
|
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
|
-
{
|
|
29
|
-
|
|
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.
|
|
9
|
+
"version": "2.49.2",
|
|
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
|
}
|