@eventcatalog/core 2.34.4 → 2.34.6

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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.34.4";
40
+ var version = "2.34.6";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-6ET2E5RC.js";
4
- import "../chunk-U6OASAWJ.js";
3
+ } from "../chunk-KATU7H36.js";
4
+ import "../chunk-OSGQFZTR.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.34.4";
109
+ var version = "2.34.6";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-XZZLEGQL.js";
4
- import "../chunk-6ET2E5RC.js";
5
- import "../chunk-U6OASAWJ.js";
3
+ } from "../chunk-PTBY5DEP.js";
4
+ import "../chunk-KATU7H36.js";
5
+ import "../chunk-OSGQFZTR.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-U6OASAWJ.js";
3
+ } from "./chunk-OSGQFZTR.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.34.4";
2
+ var version = "2.34.6";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-6ET2E5RC.js";
3
+ } from "./chunk-KATU7H36.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.34.4";
28
+ var version = "2.34.6";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-U6OASAWJ.js";
3
+ } from "./chunk-OSGQFZTR.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.4";
160
+ var version = "2.34.6";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-XZZLEGQL.js";
10
- import "./chunk-6ET2E5RC.js";
9
+ } from "./chunk-PTBY5DEP.js";
10
+ import "./chunk-KATU7H36.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-U6OASAWJ.js";
17
+ } from "./chunk-OSGQFZTR.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
+ }
@@ -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
+ }
@@ -20,6 +20,8 @@ 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';
24
+ import FigJam from '@components/MDX/FigJam/FigJam.astro';
23
25
  // Portals: required for server/client components
24
26
  import NodeGraphPortal from '@components/MDX/NodeGraph/NodeGraphPortal';
25
27
  import SchemaViewerPortal from '@components/MDX/SchemaViewer/SchemaViewerPortal';
@@ -50,6 +52,8 @@ const components = (props: any) => {
50
52
  Tiles,
51
53
  Miro: (mdxProp: any) => jsx(Miro, { ...props, ...mdxProp }),
52
54
  Lucid: (mdxProp: any) => jsx(Lucid, { ...props, ...mdxProp }),
55
+ DrawIO: (mdxProp: any) => jsx(DrawIO, { ...props, ...mdxProp }),
56
+ FigJam: (mdxProp: any) => jsx(FigJam, { ...props, ...mdxProp }),
53
57
  };
54
58
  };
55
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 { QueueListIcon, RectangleGroupIcon, ServerIcon, BoltIcon, ChatBubbleLeftIcon } from '@heroicons/react/24/outline';
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',
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.34.4",
9
+ "version": "2.34.6",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },