@bendyline/squisq-editor-react 2.13.10 → 2.13.11

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.
@@ -25014,6 +25014,7 @@ function normalizeMermaidFlowchartShape(value) {
25014
25014
  // src/mermaid/mermaidRenderer.ts
25015
25015
  import { buildMermaidThemeVariables } from "@bendyline/squisq/schemas";
25016
25016
  import { DEFAULT_THEME as DEFAULT_THEME2 } from "@bendyline/squisq/doc";
25017
+ import { withMermaidLabelWrapping } from "@bendyline/squisq-react";
25017
25018
 
25018
25019
  // src/mermaid/mermaidSourceAdapters.ts
25019
25020
  var ID = "[A-Za-z_][A-Za-z0-9_.-]*";
@@ -26592,7 +26593,9 @@ async function renderMermaidDiagram(id, source, container, theme = DEFAULT_THEME
26592
26593
  themeVariables: buildMermaidThemeVariables(theme)
26593
26594
  });
26594
26595
  const model2 = await inspectMermaidSourceWith(mermaid, source);
26595
- const { svg, diagramType } = await mermaid.render(id, source, container);
26596
+ const { svg, diagramType } = await withMermaidLabelWrapping(
26597
+ () => mermaid.render(id, source, container)
26598
+ );
26596
26599
  return model2 ? { svg, diagramType, model: model2 } : { svg, diagramType };
26597
26600
  };
26598
26601
  return enqueueMermaidWork(run);
package/dist/index.js CHANGED
@@ -243,7 +243,7 @@ import {
243
243
  videoEmbedParagraphJson,
244
244
  viewStateFromBinding,
245
245
  writeHeadingViewState
246
- } from "./chunk-JD7IATM6.js";
246
+ } from "./chunk-5SRIK3O4.js";
247
247
  import {
248
248
  EditorProvider,
249
249
  applySourceEditsToText,
@@ -5,7 +5,7 @@ import {
5
5
  RawEditor,
6
6
  WysiwygEditor,
7
7
  useEditorContextMenuItems
8
- } from "../chunk-JD7IATM6.js";
8
+ } from "../chunk-5SRIK3O4.js";
9
9
  import {
10
10
  EditorProvider,
11
11
  useEditorContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-editor-react",
3
- "version": "2.13.10",
3
+ "version": "2.13.11",
4
4
  "description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -106,8 +106,8 @@
106
106
  "@bendyline/squisq-calc": "2.11.2",
107
107
  "@bendyline/squisq-formats": "2.8.7",
108
108
  "@bendyline/squisq-grid-react": "2.11.35",
109
- "@bendyline/squisq-react": "2.12.17",
110
- "@bendyline/squisq-video-react": "2.5.18",
109
+ "@bendyline/squisq-react": "2.12.18",
110
+ "@bendyline/squisq-video-react": "2.5.19",
111
111
  "@fortawesome/fontawesome-free": "7.3.1",
112
112
  "@tiptap/core": "2.27.3",
113
113
  "@tiptap/extension-heading": "2.27.3",