@haklex/rich-renderer-mermaid 0.0.76 → 0.0.78
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/MermaidEditRenderer.d.ts.map +1 -1
- package/dist/index.mjs +26 -15
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidEditRenderer.d.ts","sourceRoot":"","sources":["../src/MermaidEditRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAgB1E,OAAO,KAAK,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAiU7C,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"MermaidEditRenderer.d.ts","sourceRoot":"","sources":["../src/MermaidEditRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAgB1E,OAAO,KAAK,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAiU7C,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,oBAAoB,CA6DxD,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -260,21 +260,32 @@ const MermaidEditRenderer = ({ content, onContentChange }) => {
|
|
|
260
260
|
}
|
|
261
261
|
return /* @__PURE__ */ jsxs("div", { className: mermaidContainer, children: [
|
|
262
262
|
onContentChange && /* @__PURE__ */ jsx("span", { className: mermaidEditHint, onClick: handleClick, children: "Edit" }),
|
|
263
|
-
/* @__PURE__ */ jsxs(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
263
|
+
/* @__PURE__ */ jsxs(
|
|
264
|
+
TransformWrapper,
|
|
265
|
+
{
|
|
266
|
+
initialScale: 1,
|
|
267
|
+
maxScale: 4,
|
|
268
|
+
minScale: 0.5,
|
|
269
|
+
wheel: {
|
|
270
|
+
disabled: true
|
|
271
|
+
},
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ jsx(ZoomControls, {}),
|
|
274
|
+
/* @__PURE__ */ jsx(
|
|
275
|
+
TransformComponent,
|
|
276
|
+
{
|
|
277
|
+
wrapperStyle: { width: "100%" },
|
|
278
|
+
contentStyle: {
|
|
279
|
+
width: "100%",
|
|
280
|
+
display: "flex",
|
|
281
|
+
justifyContent: "center"
|
|
282
|
+
},
|
|
283
|
+
children: /* @__PURE__ */ jsx("img", { alt: "Mermaid diagram", height, src: imgSrc, width })
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
)
|
|
278
289
|
] });
|
|
279
290
|
};
|
|
280
291
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-mermaid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "Mermaid diagram renderer",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"lucide-react": "^0.577.0",
|
|
33
33
|
"mermaid": "^11.12.3",
|
|
34
34
|
"react-zoom-pan-pinch": "^3.7.0",
|
|
35
|
-
"@haklex/rich-editor": "0.0.
|
|
36
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
37
|
-
"@haklex/rich-style-token": "0.0.
|
|
35
|
+
"@haklex/rich-editor": "0.0.78",
|
|
36
|
+
"@haklex/rich-editor-ui": "0.0.78",
|
|
37
|
+
"@haklex/rich-style-token": "0.0.78"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/react": "^19.2.14",
|