@eventcatalog/core 2.28.0 → 2.28.1
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-KYGD25IE.js → chunk-2TWZFRC5.js} +1 -1
- package/dist/{chunk-KGWJTMWU.js → chunk-32CT66GO.js} +1 -1
- package/dist/{chunk-RCPEAVRY.js → chunk-3AWWP5JR.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/src/components/SideNav/ListViewSideBar/components/MessageList.tsx +2 -3
- package/eventcatalog/src/components/SideNav/ListViewSideBar/index.tsx +3 -4
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-3AWWP5JR.js";
|
|
4
|
+
import "../chunk-2TWZFRC5.js";
|
|
5
|
+
import "../chunk-32CT66GO.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,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-WUCY3QHK.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3AWWP5JR.js";
|
|
10
|
+
import "./chunk-2TWZFRC5.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro
|
|
13
13
|
} from "./chunk-R2NILSWL.js";
|
|
14
14
|
import {
|
|
15
15
|
VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-32CT66GO.js";
|
|
17
17
|
import {
|
|
18
18
|
isBackstagePluginEnabled
|
|
19
19
|
} from "./chunk-XMDPVKIJ.js";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { getMessageColorByCollection, getMessageCollectionName } from '../index';
|
|
3
|
-
|
|
4
3
|
interface MessageListProps {
|
|
5
4
|
messages: any[];
|
|
6
5
|
decodedCurrentPath: string;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
const MessageList: React.FC<MessageListProps> = ({ messages, decodedCurrentPath }) => (
|
|
10
|
-
<ul className="space-y-0 border-l border-gray-200/80 ml-[9px] pl-4">
|
|
9
|
+
<ul className="space-y-0.5 border-l border-gray-200/80 ml-[9px] pl-4">
|
|
11
10
|
{messages.map((message: any) => (
|
|
12
11
|
<li key={message.id} data-active={decodedCurrentPath === message.href}>
|
|
13
12
|
<a
|
|
@@ -18,7 +17,7 @@ const MessageList: React.FC<MessageListProps> = ({ messages, decodedCurrentPath
|
|
|
18
17
|
>
|
|
19
18
|
<span className="truncate">{message.data.name}</span>
|
|
20
19
|
<span
|
|
21
|
-
className={`ml-2 text-[10px] font-medium px-2 uppercase py-0.5 rounded ${getMessageColorByCollection(message.collection)}`}
|
|
20
|
+
className={`ml-2 text-[10px] flex items-center gap-1 font-medium px-2 uppercase py-0.5 rounded ${getMessageColorByCollection(message.collection)}`}
|
|
22
21
|
>
|
|
23
22
|
{getMessageCollectionName(message.collection)}
|
|
24
23
|
</span>
|
|
@@ -63,7 +63,7 @@ const ServiceItem = React.memo(
|
|
|
63
63
|
</button>
|
|
64
64
|
}
|
|
65
65
|
>
|
|
66
|
-
<div className="space-y-0 border-gray-200/80 border-l pl-3 ml-[9px] mt-1">
|
|
66
|
+
<div className="space-y-0.5 border-gray-200/80 border-l pl-3 ml-[9px] mt-1">
|
|
67
67
|
<a
|
|
68
68
|
href={`${item.href}`}
|
|
69
69
|
className={`flex items-center px-2 py-1.5 text-xs text-gray-600 hover:bg-purple-100 rounded-md ${
|
|
@@ -139,9 +139,8 @@ const ListViewSideBar: React.FC<ListViewSideBarProps> = ({ resources, currentPat
|
|
|
139
139
|
return {};
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
const decodedCurrentPath =
|
|
142
|
+
const decodedCurrentPath = window.location.pathname;
|
|
143
143
|
|
|
144
|
-
// Debounce search term updates
|
|
145
144
|
useEffect(() => {
|
|
146
145
|
const timer = setTimeout(() => {
|
|
147
146
|
setDebouncedSearchTerm(searchTerm.toLowerCase());
|
|
@@ -282,7 +281,7 @@ const ListViewSideBar: React.FC<ListViewSideBarProps> = ({ resources, currentPat
|
|
|
282
281
|
collapsedGroups[item.href] ? 'h-0' : 'h-auto'
|
|
283
282
|
}`}
|
|
284
283
|
>
|
|
285
|
-
<div className="space-y-0 border-gray-200/80 border-l pl-4 ml-[9px] mt-1">
|
|
284
|
+
<div className="space-y-0.5 border-gray-200/80 border-l pl-4 ml-[9px] mt-1">
|
|
286
285
|
<a
|
|
287
286
|
href={`${item.href}`}
|
|
288
287
|
className={`flex items-center px-2 py-1.5 text-xs text-gray-600 hover:bg-purple-100 rounded-md ${
|