@bendyline/squisq-editor-react 2.13.13 → 2.13.14

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.
@@ -41003,13 +41003,15 @@ function loadRenderFn() {
41003
41003
  var preparationPromise = null;
41004
41004
  function loadPreparation() {
41005
41005
  preparationPromise ?? (preparationPromise = Promise.all([
41006
- import("@bendyline/squisq-formats/html"),
41006
+ import("@bendyline/squisq-formats/html-prepare"),
41007
+ import("@bendyline/squisq-formats/html-icons"),
41007
41008
  import("@bendyline/squisq-formats/diagrams"),
41008
41009
  import("@bendyline/squisq-react/diagram-pictures")
41009
- ]).then(([html, diagrams, pictures]) => ({
41010
- needs: html.needsPlainHtmlPreparation,
41011
- prepare: html.prepareMarkdownDocForPlainHtml,
41012
- renderDiagram: diagrams.cachingDiagramRasterizer(pictures.createDiagramPictureRenderer())
41010
+ ]).then(([prep, icons, diagrams, pictures]) => ({
41011
+ needs: prep.needsPlainHtmlPreparation,
41012
+ prepare: prep.prepareMarkdownDocForPlainHtml,
41013
+ renderDiagram: diagrams.cachingDiagramRasterizer(pictures.createDiagramPictureRenderer()),
41014
+ outlineIcons: icons.plainHtmlIcons
41013
41015
  })));
41014
41016
  return preparationPromise;
41015
41017
  }
@@ -41125,7 +41127,11 @@ function PlainHtmlPreview({
41125
41127
  [container, mediaRevision]
41126
41128
  );
41127
41129
  const needsPreparation = useMemo52(
41128
- () => preparation?.needs(mdDoc, { renderDiagram: preparation.renderDiagram, container }) ?? false,
41130
+ () => preparation?.needs(mdDoc, {
41131
+ renderDiagram: preparation.renderDiagram,
41132
+ outlineIcons: preparation.outlineIcons,
41133
+ container
41134
+ }) ?? false,
41129
41135
  [preparation, mdDoc, container]
41130
41136
  );
41131
41137
  const [prepared, setPrepared] = useState76(null);
@@ -41136,6 +41142,7 @@ function PlainHtmlPreview({
41136
41142
  const prepare = () => {
41137
41143
  preparation.prepare(mdDoc, {
41138
41144
  renderDiagram: preparation.renderDiagram,
41145
+ outlineIcons: preparation.outlineIcons,
41139
41146
  container,
41140
41147
  dataTableCache
41141
41148
  }).then(
package/dist/index.js CHANGED
@@ -243,7 +243,7 @@ import {
243
243
  videoEmbedParagraphJson,
244
244
  viewStateFromBinding,
245
245
  writeHeadingViewState
246
- } from "./chunk-FLCBGVPN.js";
246
+ } from "./chunk-C5BXRPBX.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-FLCBGVPN.js";
8
+ } from "../chunk-C5BXRPBX.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.13",
3
+ "version": "2.13.14",
4
4
  "description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -104,7 +104,7 @@
104
104
  "dependencies": {
105
105
  "@bendyline/squisq": "2.13.8",
106
106
  "@bendyline/squisq-calc": "2.11.2",
107
- "@bendyline/squisq-formats": "2.8.9",
107
+ "@bendyline/squisq-formats": "2.8.10",
108
108
  "@bendyline/squisq-grid-react": "2.11.37",
109
109
  "@bendyline/squisq-react": "2.12.20",
110
110
  "@bendyline/squisq-video-react": "2.5.21",