@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.
- 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-OQYLI4YJ.js → chunk-4LOZDOZG.js} +1 -1
- package/dist/{chunk-UYBPI4UO.js → chunk-5S7Y7EII.js} +1 -1
- package/dist/{chunk-CZG5RQXY.js → chunk-F2A3CZVC.js} +1 -1
- package/dist/{chunk-FM44RPBS.js → chunk-RC4O6Q6B.js} +1 -1
- package/dist/{chunk-HJOMVPCL.js → chunk-VUNGSK7U.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +1 -0
- package/dist/eventcatalog.config.d.ts +1 -0
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/MDX/NodeGraph/MermaidView.tsx +3 -1
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +1 -0
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.tsx +7 -18
- package/eventcatalog/src/pages/diagrams/[id]/[version]/embed.astro +1 -0
- package/eventcatalog/src/utils/mermaid-zoom.ts +1 -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-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
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
112
|
+
var version = "3.9.1";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
24
|
+
} from "./chunk-F2A3CZVC.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4LOZDOZG.js";
|
|
28
28
|
import {
|
|
29
29
|
VERSION
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5S7Y7EII.js";
|
|
31
31
|
import "./chunk-UPONRQSN.js";
|
|
32
32
|
|
|
33
33
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -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: {
|
|
@@ -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',
|