@eventcatalog/core 2.34.4 → 2.34.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-XZZLEGQL.js → chunk-6ZHQNBFO.js} +1 -1
- package/dist/{chunk-U6OASAWJ.js → chunk-GYPJ2V2I.js} +1 -1
- package/dist/{chunk-6ET2E5RC.js → chunk-XKXUWQ4C.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/DrawIO/DrawIO.astro +43 -0
- package/eventcatalog/src/components/MDX/components.tsx +2 -0
- 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-6ZHQNBFO.js";
|
|
4
|
+
import "../chunk-XKXUWQ4C.js";
|
|
5
|
+
import "../chunk-GYPJ2V2I.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-6ZHQNBFO.js";
|
|
10
|
+
import "./chunk-XKXUWQ4C.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-GYPJ2V2I.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -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.replace('dark=auto', 'light=auto'));
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
{
|
|
20
|
+
!urlString && (
|
|
21
|
+
<Admonition type="warning">
|
|
22
|
+
<div>
|
|
23
|
+
<span class="block font-bold">{`<DrawIO/>`} failed to load</span>
|
|
24
|
+
<span class="block">Please provide a url to use the DrawIO component.</span>
|
|
25
|
+
</div>
|
|
26
|
+
</Admonition>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
urlString && (
|
|
32
|
+
<div class="py-2">
|
|
33
|
+
{title && (
|
|
34
|
+
<h3 id={`${title}-drawio-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
|
+
}
|
|
@@ -20,6 +20,7 @@ import ResourceLink from '@components/MDX/ResourceLink/ResourceLink.astro';
|
|
|
20
20
|
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
|
+
import DrawIO from '@components/MDX/DrawIO/DrawIO.astro';
|
|
23
24
|
// Portals: required for server/client components
|
|
24
25
|
import NodeGraphPortal from '@components/MDX/NodeGraph/NodeGraphPortal';
|
|
25
26
|
import SchemaViewerPortal from '@components/MDX/SchemaViewer/SchemaViewerPortal';
|
|
@@ -50,6 +51,7 @@ const components = (props: any) => {
|
|
|
50
51
|
Tiles,
|
|
51
52
|
Miro: (mdxProp: any) => jsx(Miro, { ...props, ...mdxProp }),
|
|
52
53
|
Lucid: (mdxProp: any) => jsx(Lucid, { ...props, ...mdxProp }),
|
|
54
|
+
DrawIO: (mdxProp: any) => jsx(DrawIO, { ...props, ...mdxProp }),
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
57
|
|