@eventcatalog/core 3.9.0 → 3.9.1

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 = "3.9.0";
40
+ var version = "3.9.1";
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-HJOMVPCL.js";
4
- import "../chunk-UYBPI4UO.js";
3
+ } from "../chunk-VUNGSK7U.js";
4
+ import "../chunk-5S7Y7EII.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 = "3.9.0";
109
+ var version = "3.9.1";
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-FM44RPBS.js";
4
- import "../chunk-HJOMVPCL.js";
5
- import "../chunk-UYBPI4UO.js";
3
+ } from "../chunk-RC4O6Q6B.js";
4
+ import "../chunk-VUNGSK7U.js";
5
+ import "../chunk-5S7Y7EII.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UYBPI4UO.js";
3
+ } from "./chunk-5S7Y7EII.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.9.0";
2
+ var version = "3.9.1";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-OQYLI4YJ.js";
3
+ } from "./chunk-4LOZDOZG.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-HJOMVPCL.js";
3
+ } from "./chunk-VUNGSK7U.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UYBPI4UO.js";
3
+ } from "./chunk-5S7Y7EII.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.9.0";
28
+ var version = "3.9.1";
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-UYBPI4UO.js";
3
+ } from "./chunk-5S7Y7EII.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
109
109
  var import_picocolors = __toESM(require("picocolors"), 1);
110
110
 
111
111
  // package.json
112
- var version = "3.9.0";
112
+ var version = "3.9.1";
113
113
 
114
114
  // src/constants.ts
115
115
  var VERSION = version;
@@ -102,6 +102,7 @@ interface Config {
102
102
  domains?: ResourceDependency[];
103
103
  };
104
104
  mermaid?: {
105
+ maxTextSize?: number;
105
106
  iconPacks?: string[];
106
107
  };
107
108
  chat?: {
@@ -102,6 +102,7 @@ interface Config {
102
102
  domains?: ResourceDependency[];
103
103
  };
104
104
  mermaid?: {
105
+ maxTextSize?: number;
105
106
  iconPacks?: string[];
106
107
  };
107
108
  chat?: {
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-FM44RPBS.js";
10
- import "./chunk-HJOMVPCL.js";
9
+ } from "./chunk-RC4O6Q6B.js";
10
+ import "./chunk-VUNGSK7U.js";
11
11
  import {
12
12
  runMigrations
13
13
  } from "./chunk-BH3JMNAV.js";
@@ -21,13 +21,13 @@ import {
21
21
  } from "./chunk-5VBIXL6C.js";
22
22
  import {
23
23
  generate
24
- } from "./chunk-CZG5RQXY.js";
24
+ } from "./chunk-F2A3CZVC.js";
25
25
  import {
26
26
  logger
27
- } from "./chunk-OQYLI4YJ.js";
27
+ } from "./chunk-4LOZDOZG.js";
28
28
  import {
29
29
  VERSION
30
- } from "./chunk-UYBPI4UO.js";
30
+ } from "./chunk-5S7Y7EII.js";
31
31
  import "./chunk-UPONRQSN.js";
32
32
 
33
33
  // src/eventcatalog.ts
package/dist/generate.cjs CHANGED
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
73
73
  var import_picocolors = __toESM(require("picocolors"), 1);
74
74
 
75
75
  // package.json
76
- var version = "3.9.0";
76
+ var version = "3.9.1";
77
77
 
78
78
  // src/constants.ts
79
79
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-CZG5RQXY.js";
4
- import "./chunk-OQYLI4YJ.js";
5
- import "./chunk-UYBPI4UO.js";
3
+ } from "./chunk-F2A3CZVC.js";
4
+ import "./chunk-4LOZDOZG.js";
5
+ import "./chunk-5S7Y7EII.js";
6
6
  import "./chunk-UPONRQSN.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.9.0";
39
+ var version = "3.9.1";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-OQYLI4YJ.js";
4
- import "../chunk-UYBPI4UO.js";
3
+ } from "../chunk-4LOZDOZG.js";
4
+ import "../chunk-5S7Y7EII.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -7,9 +7,10 @@ import { copyToClipboard } from '@utils/clipboard';
7
7
  interface MermaidViewProps {
8
8
  nodes: Node[];
9
9
  edges: Edge[];
10
+ maxTextSize?: number;
10
11
  }
11
12
 
12
- const MermaidView = ({ nodes, edges }: MermaidViewProps) => {
13
+ const MermaidView = ({ nodes, edges, maxTextSize = 100000 }: MermaidViewProps) => {
13
14
  const [copySuccess, setCopySuccess] = useState(false);
14
15
  const [mermaidCode, setMermaidCode] = useState('');
15
16
  const [previewSvg, setPreviewSvg] = useState<string | null>(null);
@@ -42,6 +43,7 @@ const MermaidView = ({ nodes, edges }: MermaidViewProps) => {
42
43
  const currentTheme = isDarkMode ? 'dark' : 'default';
43
44
 
44
45
  mermaid.initialize({
46
+ maxTextSize: maxTextSize,
45
47
  startOnLoad: false,
46
48
  theme: currentTheme,
47
49
  flowchart: {
@@ -158,6 +158,7 @@ if (collection === 'services-containers') {
158
158
  includeKey={showLegend}
159
159
  zoomOnScroll={zoomOnScroll}
160
160
  isChatEnabled={isChatEnabled}
161
+ maxTextSize={config.mermaid?.maxTextSize}
161
162
  />
162
163
  </div>
163
164
 
@@ -18,23 +18,7 @@ import {
18
18
  type NodeTypes,
19
19
  } from '@xyflow/react';
20
20
  import '@xyflow/react/dist/style.css';
21
- import {
22
- ExternalLink,
23
- HistoryIcon,
24
- CheckIcon,
25
- ClipboardIcon,
26
- ChevronDownIcon,
27
- MoreVertical,
28
- Zap,
29
- EyeOff,
30
- Code,
31
- Share2,
32
- Search,
33
- Grid3x3,
34
- Maximize2,
35
- Map,
36
- Sparkles,
37
- } from 'lucide-react';
21
+ import { ExternalLink, HistoryIcon, CheckIcon, ClipboardIcon, MoreVertical } from 'lucide-react';
38
22
  import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
39
23
  import { toPng } from 'html-to-image';
40
24
  import { DocumentArrowDownIcon, PresentationChartLineIcon } from '@heroicons/react/24/outline';
@@ -93,6 +77,7 @@ interface Props {
93
77
  isStudioModalOpen?: boolean;
94
78
  setIsStudioModalOpen?: (isOpen: boolean) => void;
95
79
  isChatEnabled?: boolean;
80
+ maxTextSize?: number;
96
81
  }
97
82
 
98
83
  const getVisualiserUrlForCollection = (collectionItem: CollectionEntry<CollectionTypes>) => {
@@ -115,6 +100,7 @@ const NodeGraphBuilder = ({
115
100
  isStudioModalOpen,
116
101
  setIsStudioModalOpen = () => {},
117
102
  isChatEnabled = false,
103
+ maxTextSize,
118
104
  }: Props) => {
119
105
  const nodeTypes = useMemo(
120
106
  () =>
@@ -723,7 +709,7 @@ const NodeGraphBuilder = ({
723
709
  </div>
724
710
  {/* Mermaid View */}
725
711
  <div className="flex-1 overflow-hidden">
726
- <MermaidView nodes={nodes} edges={edges} />
712
+ <MermaidView nodes={nodes} edges={edges} maxTextSize={maxTextSize} />
727
713
  </div>
728
714
  </>
729
715
  ) : (
@@ -965,6 +951,7 @@ interface NodeGraphProps {
965
951
  zoomOnScroll?: boolean;
966
952
  designId?: string;
967
953
  isChatEnabled?: boolean;
954
+ maxTextSize?: number;
968
955
  }
969
956
 
970
957
  const NodeGraph = ({
@@ -986,6 +973,7 @@ const NodeGraph = ({
986
973
  zoomOnScroll = false,
987
974
  designId,
988
975
  isChatEnabled = false,
976
+ maxTextSize,
989
977
  }: NodeGraphProps) => {
990
978
  const [elem, setElem] = useState(null);
991
979
  const [showFooter, setShowFooter] = useState(true);
@@ -1032,6 +1020,7 @@ const NodeGraph = ({
1032
1020
  isStudioModalOpen={isStudioModalOpen}
1033
1021
  setIsStudioModalOpen={setIsStudioModalOpen}
1034
1022
  isChatEnabled={isChatEnabled}
1023
+ maxTextSize={maxTextSize}
1035
1024
  />
1036
1025
 
1037
1026
  {showFooter && (
@@ -570,6 +570,7 @@ const diagramId = props.data.id;
570
570
  const isDarkMode = document.documentElement.getAttribute('data-theme') === 'dark';
571
571
 
572
572
  mermaid.initialize({
573
+ maxTextSize: window.eventcatalog?.mermaid?.maxTextSize || 100000,
573
574
  startOnLoad: false,
574
575
  theme: isDarkMode ? 'dark' : 'default',
575
576
  fontFamily: 'system-ui, -apple-system, sans-serif',
@@ -600,6 +600,7 @@ export async function renderMermaidWithZoom(graphs: HTMLCollectionOf<Element>, m
600
600
  };
601
601
 
602
602
  mermaid.initialize({
603
+ maxTextSize: mermaidConfig?.maxTextSize || 100000,
603
604
  flowchart: {
604
605
  curve: 'linear',
605
606
  rankSpacing: 0,
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": "3.9.0",
9
+ "version": "3.9.1",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },