@eventcatalog/core 2.42.4 → 2.42.5
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-CD54ILWK.js → chunk-CCDDKREE.js} +1 -1
- package/dist/{chunk-VBWDUTD4.js → chunk-OQCOMKAD.js} +1 -1
- package/dist/{chunk-QKYZ35CN.js → chunk-PN2ZPMU6.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/Grids/ServiceGrid.tsx +11 -1
- 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-CCDDKREE.js";
|
|
4
|
+
import "../chunk-PN2ZPMU6.js";
|
|
5
|
+
import "../chunk-OQCOMKAD.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,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-CCDDKREE.js";
|
|
10
|
+
import "./chunk-PN2ZPMU6.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-
|
|
17
|
+
} from "./chunk-OQCOMKAD.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -29,16 +29,26 @@ const Message = memo(({ message, collection }: { message: any; collection: strin
|
|
|
29
29
|
const MessagesContainer = memo(
|
|
30
30
|
({ messages, type, selectedTypes }: { messages: any[]; type: 'receives' | 'sends'; selectedTypes: string[] }) => {
|
|
31
31
|
const bgColor = type === 'receives' ? 'blue' : 'green';
|
|
32
|
+
const MAX_MESSAGES_DISPLAYED = 4;
|
|
33
|
+
|
|
32
34
|
const filteredMessages = messages?.filter(
|
|
33
35
|
(message: any) => selectedTypes.length === 0 || selectedTypes.includes(message.collection)
|
|
34
36
|
);
|
|
35
37
|
|
|
38
|
+
const messagesToShow = filteredMessages?.slice(0, MAX_MESSAGES_DISPLAYED);
|
|
39
|
+
const remainingMessagesCount = filteredMessages ? filteredMessages.length - MAX_MESSAGES_DISPLAYED : 0;
|
|
40
|
+
|
|
36
41
|
return (
|
|
37
42
|
<div className={`flex-1 h-full flex flex-col bg-${bgColor}-100 border border-${bgColor}-300 rounded-lg p-4`}>
|
|
38
43
|
<div className="space-y-2 flex-1">
|
|
39
|
-
{
|
|
44
|
+
{messagesToShow?.map((message: any) => (
|
|
40
45
|
<Message key={message.data.name} message={message} collection={message.collection} />
|
|
41
46
|
))}
|
|
47
|
+
{remainingMessagesCount > 0 && (
|
|
48
|
+
<div className="text-center py-1">
|
|
49
|
+
<p className="text-gray-500 text-[10px]">+ {remainingMessagesCount} more</p>
|
|
50
|
+
</div>
|
|
51
|
+
)}
|
|
42
52
|
{(!messages?.length ||
|
|
43
53
|
(selectedTypes.length > 0 && !messages?.some((message: any) => selectedTypes.includes(message.collection)))) && (
|
|
44
54
|
<div className="text-center py-4">
|