@haklex/rich-renderer-mermaid 0.30.0 → 0.31.0

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.
@@ -124,18 +124,14 @@ function estimateMermaidHeight(content) {
124
124
  //#region src/MermaidRenderer.tsx
125
125
  var MermaidRenderer = ({ content, colorScheme }) => {
126
126
  const { error, imgSrc, width, height } = useMermaidRender(content, colorScheme);
127
- const wrapperStyle = { minHeight: estimateMermaidHeight(content) };
128
127
  if (!imgSrc) return /* @__PURE__ */ jsx("div", {
129
128
  className: mermaidError,
130
- style: wrapperStyle,
129
+ style: { minHeight: estimateMermaidHeight(content) },
131
130
  children: error || "Render failed"
132
131
  });
133
132
  return /* @__PURE__ */ jsx("div", {
134
133
  className: mermaidContainer,
135
- style: {
136
- ...wrapperStyle,
137
- cursor: "default"
138
- },
134
+ style: { cursor: "default" },
139
135
  children: /* @__PURE__ */ jsx("img", {
140
136
  alt: "Mermaid diagram",
141
137
  height,
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as editorViewToggle, D as editorTplBtn, E as editorTitle, I as mermaidError, L as zoomBtn, M as footerBtnCancel, N as footerBtnSave, O as editorViewItem, P as mermaidContainer, R as zoomControls, S as editorPreviewErrorWrap, T as editorSep, _ as editorPopup, a as codeGutter, b as editorPreviewErrorMsg, c as editorFooter, d as editorHeaderRight, f as editorIconBtn, i as codeEditor, j as footerActions, k as editorViewItemActive, l as editorHeader, n as useMermaidRender, o as codeGutterLine, r as codeArea, s as editorBody, t as MermaidRenderer, u as editorHeaderLeft, v as editorPreviewEmpty, w as editorPreviewWrap, x as editorPreviewErrorTitle, y as editorPreviewErrorIcon } from "./MermaidRenderer-C97NexgQ.js";
1
+ import { A as editorViewToggle, D as editorTplBtn, E as editorTitle, I as mermaidError, L as zoomBtn, M as footerBtnCancel, N as footerBtnSave, O as editorViewItem, P as mermaidContainer, R as zoomControls, S as editorPreviewErrorWrap, T as editorSep, _ as editorPopup, a as codeGutter, b as editorPreviewErrorMsg, c as editorFooter, d as editorHeaderRight, f as editorIconBtn, i as codeEditor, j as footerActions, k as editorViewItemActive, l as editorHeader, n as useMermaidRender, o as codeGutterLine, r as codeArea, s as editorBody, t as MermaidRenderer, u as editorHeaderLeft, v as editorPreviewEmpty, w as editorPreviewWrap, x as editorPreviewErrorTitle, y as editorPreviewErrorIcon } from "./MermaidRenderer-BnQFEo7c.js";
2
2
  import { useColorScheme } from "@haklex/rich-editor/static";
3
3
  import { presentDialog, usePortalTheme } from "@haklex/rich-editor-ui";
4
4
  import { CircleAlert, Code2, Columns2, Copy, Download, Eye, FishSymbol, Maximize2, RotateCcw, X, ZoomIn, ZoomOut } from "lucide-react";
package/dist/static.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as MermaidRenderer } from "./MermaidRenderer-C97NexgQ.js";
1
+ import { t as MermaidRenderer } from "./MermaidRenderer-BnQFEo7c.js";
2
2
  export { MermaidRenderer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-mermaid",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Mermaid diagram renderer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,9 +47,9 @@
47
47
  "lucide-react": "^1.0.0",
48
48
  "react": ">=19",
49
49
  "react-dom": ">=19",
50
- "@haklex/rich-editor": "^0.30.0",
51
- "@haklex/rich-editor-ui": "^0.30.0",
52
- "@haklex/rich-style-token": "^0.30.0"
50
+ "@haklex/rich-editor": "^0.31.0",
51
+ "@haklex/rich-editor-ui": "^0.31.0",
52
+ "@haklex/rich-style-token": "^0.31.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"