@eventcatalog/core 2.33.7 → 2.33.8
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-VENFKOAJ.js → chunk-DCU5UE7Y.js} +1 -1
- package/dist/{chunk-4BTH6TJB.js → chunk-HPV7UK2I.js} +1 -1
- package/dist/{chunk-NL4PYW7O.js → chunk-SSJWAEJA.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/MDX/NodeGraph/Nodes/Channel.tsx +1 -1
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Command.tsx +1 -1
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Event.tsx +1 -1
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Query.tsx +1 -1
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Service.tsx +1 -1
- package/eventcatalog/src/content.config.ts +1 -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-DCU5UE7Y.js";
|
|
4
|
+
import "../chunk-HPV7UK2I.js";
|
|
5
|
+
import "../chunk-SSJWAEJA.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-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-DCU5UE7Y.js";
|
|
10
|
+
import "./chunk-HPV7UK2I.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-7SI5EVOX.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SSJWAEJA.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -44,7 +44,7 @@ export default function ChannelNode({ data, sourcePosition, targetPosition }: an
|
|
|
44
44
|
|
|
45
45
|
const { id, name, version, summary, owners = [], address, protocols = [], styles } = channel.data;
|
|
46
46
|
const protocol = protocols[0];
|
|
47
|
-
const { node: { color = 'gray',
|
|
47
|
+
const { node: { color = 'gray', label } = {}, icon = 'ArrowsRightLeftIcon' } = styles || {};
|
|
48
48
|
|
|
49
49
|
const Icon = getIconForProtocol(protocol);
|
|
50
50
|
|
|
@@ -23,7 +23,7 @@ export default function CommandNode({ data, sourcePosition, targetPosition }: an
|
|
|
23
23
|
const { mode, message } = data as Data;
|
|
24
24
|
|
|
25
25
|
const { id, name, version, summary, owners = [], producers = [], consumers = [], schemaPath, styles } = message.data;
|
|
26
|
-
const { node: { color = 'blue',
|
|
26
|
+
const { node: { color = 'blue', label } = {}, icon = 'ChatBubbleLeftIcon' } = styles || {};
|
|
27
27
|
|
|
28
28
|
const Icon = getIcon(icon);
|
|
29
29
|
const nodeLabel = label || message?.data?.sidebar?.badge || 'Command';
|
|
@@ -21,7 +21,7 @@ function classNames(...classes: any) {
|
|
|
21
21
|
export default function EventNode({ data, sourcePosition, targetPosition }: any) {
|
|
22
22
|
const { mode, message } = data as Data;
|
|
23
23
|
const { name, version, summary, owners = [], producers = [], consumers = [], styles } = message.data;
|
|
24
|
-
const { node: { color = 'orange',
|
|
24
|
+
const { node: { color = 'orange', label } = {}, icon = 'BoltIcon' } = styles || {};
|
|
25
25
|
|
|
26
26
|
const Icon = getIcon(icon);
|
|
27
27
|
const nodeLabel = label || message?.data?.sidebar?.badge || 'Event';
|
|
@@ -20,7 +20,7 @@ export default function QueryNode({ data, sourcePosition, targetPosition }: any)
|
|
|
20
20
|
const { mode, message } = data as Data;
|
|
21
21
|
|
|
22
22
|
const { name, version, summary, owners = [], producers = [], consumers = [], styles } = message.data;
|
|
23
|
-
const { node: { color = 'green',
|
|
23
|
+
const { node: { color = 'green', label } = {}, icon = 'MagnifyingGlassIcon' } = styles || {};
|
|
24
24
|
|
|
25
25
|
const Icon = getIcon(icon);
|
|
26
26
|
const nodeLabel = label || message?.data?.sidebar?.badge || 'Query';
|
|
@@ -23,7 +23,7 @@ export default function ServiceNode({ data, sourcePosition, targetPosition }: an
|
|
|
23
23
|
const { mode, service } = data as Data;
|
|
24
24
|
|
|
25
25
|
const { id, version, owners = [], sends = [], receives = [], name, specifications, repository, styles } = service.data;
|
|
26
|
-
const { node: { color = 'pink',
|
|
26
|
+
const { node: { color = 'pink', label } = {}, icon = 'ServerIcon' } = styles || {};
|
|
27
27
|
|
|
28
28
|
const Icon = getIcon(icon);
|
|
29
29
|
const nodeLabel = label || service?.data?.sidebar?.badge || 'Service';
|
|
@@ -106,10 +106,10 @@ const baseSchema = z.object({
|
|
|
106
106
|
.optional(),
|
|
107
107
|
styles: z
|
|
108
108
|
.object({
|
|
109
|
+
icon: z.string().optional(),
|
|
109
110
|
node: z
|
|
110
111
|
.object({
|
|
111
112
|
color: z.string().optional(),
|
|
112
|
-
icon: z.string().optional(),
|
|
113
113
|
label: z.string().optional(),
|
|
114
114
|
})
|
|
115
115
|
.optional(),
|