@eventcatalog/core 2.34.5 → 2.34.7
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-GYPJ2V2I.js → chunk-F22TOAQN.js} +1 -1
- package/dist/{chunk-XKXUWQ4C.js → chunk-RHCB6E6X.js} +1 -1
- package/dist/{chunk-6ZHQNBFO.js → chunk-Y6K4D4LS.js} +1 -1
- package/dist/{chunk-ZIZUBYNO.js → chunk-ZPWE3CVX.js} +4 -3
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +5 -4
- package/dist/eventcatalog.js +4 -4
- package/dist/features.cjs +4 -3
- package/dist/features.js +1 -1
- package/eventcatalog/src/components/MDX/FigJam/FigJam.astro +43 -0
- package/eventcatalog/src/components/MDX/components.tsx +2 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +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-Y6K4D4LS.js";
|
|
4
|
+
import "../chunk-RHCB6E6X.js";
|
|
5
|
+
import "../chunk-F22TOAQN.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// src/features.ts
|
|
2
2
|
import boxen from "boxen";
|
|
3
3
|
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
4
|
-
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
4
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
|
|
5
|
+
const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
|
|
5
6
|
if (!LICENSE_KEY) {
|
|
6
7
|
return false;
|
|
7
8
|
}
|
|
@@ -20,7 +21,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
20
21
|
}
|
|
21
22
|
if (response.status === 200) {
|
|
22
23
|
const data = await response.json();
|
|
23
|
-
if (
|
|
24
|
+
if (!acceptedPlugins.includes(data.plugin)) {
|
|
24
25
|
console.log(
|
|
25
26
|
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
26
27
|
);
|
|
@@ -35,7 +36,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
35
36
|
padding: 1,
|
|
36
37
|
margin: 1,
|
|
37
38
|
borderColor: "green",
|
|
38
|
-
title:
|
|
39
|
+
title: data.plugin,
|
|
39
40
|
titleAlignment: "center"
|
|
40
41
|
})
|
|
41
42
|
);
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.34.
|
|
160
|
+
var version = "2.34.7";
|
|
161
161
|
|
|
162
162
|
// src/constants.ts
|
|
163
163
|
var VERSION = version;
|
|
@@ -474,7 +474,8 @@ var import_boxen2 = __toESM(require("boxen"), 1);
|
|
|
474
474
|
// src/features.ts
|
|
475
475
|
var import_boxen = __toESM(require("boxen"), 1);
|
|
476
476
|
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
477
|
-
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
477
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
|
|
478
|
+
const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
|
|
478
479
|
if (!LICENSE_KEY) {
|
|
479
480
|
return false;
|
|
480
481
|
}
|
|
@@ -493,7 +494,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
493
494
|
}
|
|
494
495
|
if (response.status === 200) {
|
|
495
496
|
const data = await response.json();
|
|
496
|
-
if (
|
|
497
|
+
if (!acceptedPlugins.includes(data.plugin)) {
|
|
497
498
|
console.log(
|
|
498
499
|
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
499
500
|
);
|
|
@@ -508,7 +509,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
508
509
|
padding: 1,
|
|
509
510
|
margin: 1,
|
|
510
511
|
borderColor: "green",
|
|
511
|
-
title:
|
|
512
|
+
title: data.plugin,
|
|
512
513
|
titleAlignment: "center"
|
|
513
514
|
})
|
|
514
515
|
);
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
} from "./chunk-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-Y6K4D4LS.js";
|
|
10
|
+
import "./chunk-RHCB6E6X.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-F22TOAQN.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
21
21
|
isEventCatalogStarterEnabled
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZPWE3CVX.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
25
|
} from "./chunk-YEQVKHST.js";
|
package/dist/features.cjs
CHANGED
|
@@ -37,7 +37,8 @@ __export(features_exports, {
|
|
|
37
37
|
module.exports = __toCommonJS(features_exports);
|
|
38
38
|
var import_boxen = __toESM(require("boxen"), 1);
|
|
39
39
|
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
40
|
-
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
40
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
|
|
41
|
+
const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
|
|
41
42
|
if (!LICENSE_KEY) {
|
|
42
43
|
return false;
|
|
43
44
|
}
|
|
@@ -56,7 +57,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
56
57
|
}
|
|
57
58
|
if (response.status === 200) {
|
|
58
59
|
const data = await response.json();
|
|
59
|
-
if (
|
|
60
|
+
if (!acceptedPlugins.includes(data.plugin)) {
|
|
60
61
|
console.log(
|
|
61
62
|
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
62
63
|
);
|
|
@@ -71,7 +72,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
|
|
|
71
72
|
padding: 1,
|
|
72
73
|
margin: 1,
|
|
73
74
|
borderColor: "green",
|
|
74
|
-
title:
|
|
75
|
+
title: data.plugin,
|
|
75
76
|
titleAlignment: "center"
|
|
76
77
|
})
|
|
77
78
|
);
|
package/dist/features.js
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Admonition from '@components/MDX/Admonition';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
title?: string;
|
|
6
|
+
height: string;
|
|
7
|
+
url: string;
|
|
8
|
+
autoplay: boolean;
|
|
9
|
+
moveToViewport: string;
|
|
10
|
+
moveToWidget: string;
|
|
11
|
+
edit: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { title, height = '500', url: urlString } = Astro.props;
|
|
15
|
+
|
|
16
|
+
const url = new URL(urlString);
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
{
|
|
20
|
+
!urlString && (
|
|
21
|
+
<Admonition type="warning">
|
|
22
|
+
<div>
|
|
23
|
+
<span class="block font-bold">{`<FigJam/>`} failed to load</span>
|
|
24
|
+
<span class="block">Please provide a url to use the FigJam component.</span>
|
|
25
|
+
</div>
|
|
26
|
+
</Admonition>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
urlString && (
|
|
32
|
+
<div class="py-2">
|
|
33
|
+
{title && (
|
|
34
|
+
<h3 id={`${title}-figjam-title`} class="text-3xl font-bold">
|
|
35
|
+
{title}
|
|
36
|
+
</h3>
|
|
37
|
+
)}
|
|
38
|
+
<div class="relative">
|
|
39
|
+
<iframe class="border border-gray-200 rounded-md" src={url.href} width="100%" height={height} />
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
@@ -21,6 +21,7 @@ import Link from '@components/MDX/Link/Link.astro';
|
|
|
21
21
|
import Miro from '@components/MDX/Miro/Miro.astro';
|
|
22
22
|
import Lucid from '@components/MDX/Lucid/Lucid.astro';
|
|
23
23
|
import DrawIO from '@components/MDX/DrawIO/DrawIO.astro';
|
|
24
|
+
import FigJam from '@components/MDX/FigJam/FigJam.astro';
|
|
24
25
|
// Portals: required for server/client components
|
|
25
26
|
import NodeGraphPortal from '@components/MDX/NodeGraph/NodeGraphPortal';
|
|
26
27
|
import SchemaViewerPortal from '@components/MDX/SchemaViewer/SchemaViewerPortal';
|
|
@@ -52,6 +53,7 @@ const components = (props: any) => {
|
|
|
52
53
|
Miro: (mdxProp: any) => jsx(Miro, { ...props, ...mdxProp }),
|
|
53
54
|
Lucid: (mdxProp: any) => jsx(Lucid, { ...props, ...mdxProp }),
|
|
54
55
|
DrawIO: (mdxProp: any) => jsx(DrawIO, { ...props, ...mdxProp }),
|
|
56
|
+
FigJam: (mdxProp: any) => jsx(FigJam, { ...props, ...mdxProp }),
|
|
55
57
|
};
|
|
56
58
|
};
|
|
57
59
|
|
|
@@ -15,7 +15,14 @@ import DomainSideBar from '@components/SideBars/DomainSideBar.astro';
|
|
|
15
15
|
import ChannelSideBar from '@components/SideBars/ChannelSideBar.astro';
|
|
16
16
|
import FlowSideBar from '@components/SideBars/FlowSideBar.astro';
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
QueueListIcon,
|
|
20
|
+
RectangleGroupIcon,
|
|
21
|
+
ServerIcon,
|
|
22
|
+
BoltIcon,
|
|
23
|
+
ChatBubbleLeftIcon,
|
|
24
|
+
MagnifyingGlassIcon,
|
|
25
|
+
} from '@heroicons/react/24/outline';
|
|
19
26
|
import { ArrowsRightLeftIcon } from '@heroicons/react/20/solid';
|
|
20
27
|
|
|
21
28
|
import type { PageTypes } from '@types';
|
|
@@ -75,6 +82,9 @@ const getBadge = () => {
|
|
|
75
82
|
if (props.collection === 'commands') {
|
|
76
83
|
return { backgroundColor: 'blue', textColor: 'blue', content: 'Command', icon: ChatBubbleLeftIcon, class: 'text-blue-400' };
|
|
77
84
|
}
|
|
85
|
+
if (props.collection === 'queries') {
|
|
86
|
+
return { backgroundColor: 'green', textColor: 'green', content: 'Query', icon: MagnifyingGlassIcon, class: 'text-green-400' };
|
|
87
|
+
}
|
|
78
88
|
if (props.collection === 'domains') {
|
|
79
89
|
return {
|
|
80
90
|
backgroundColor: 'yellow',
|