@bendyline/squisq-editor-react 2.11.13 → 2.11.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.
@@ -32190,6 +32190,12 @@ function WysiwygEditor({
32190
32190
  submitOnEnterRef.current = submitOnEnter;
32191
32191
  }, [submitOnEnter]);
32192
32192
  const editor = useEditor2({
32193
+ // Nothing this component renders reads editor state; the toolbar, outline
32194
+ // and context subscribe to editor events themselves. Re-rendering on every
32195
+ // transaction also re-applied the freshly built options (setOptions +
32196
+ // updateState) after each one, and a host that sent a message hit React's
32197
+ // maximum update depth inside that per-transaction subscriber.
32198
+ shouldRerenderOnTransaction: false,
32193
32199
  editable: !readOnly,
32194
32200
  extensions: [
32195
32201
  StarterKit2.configure({
@@ -81,6 +81,8 @@ function EmbeddedRichTextField(props) {
81
81
  const isExternalUpdate = useRef(false);
82
82
  const lastValueRef = useRef(value);
83
83
  const editor = useEditor({
84
+ // The render reads no editor state; see WysiwygEditor.
85
+ shouldRerenderOnTransaction: false,
84
86
  editable: !readOnly,
85
87
  extensions: [
86
88
  StarterKit.configure({
package/dist/index.js CHANGED
@@ -219,7 +219,7 @@ import {
219
219
  useTreeViewData,
220
220
  viewStateFromBinding,
221
221
  writeHeadingViewState
222
- } from "./chunk-SAE4SSRG.js";
222
+ } from "./chunk-QY2ZFRJE.js";
223
223
  import {
224
224
  EditorProvider,
225
225
  detectLanguageFromFileName,
@@ -235,7 +235,7 @@ import {
235
235
  import "./chunk-V4NBQF5C.js";
236
236
  import {
237
237
  JsonEditor
238
- } from "./chunk-AXMBTWXK.js";
238
+ } from "./chunk-WDQFWD7Z.js";
239
239
  import {
240
240
  MarkdownEscape
241
241
  } from "./chunk-ZDWZRVAY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JsonEditor
3
- } from "../chunk-AXMBTWXK.js";
3
+ } from "../chunk-WDQFWD7Z.js";
4
4
  import "../chunk-ZDWZRVAY.js";
5
5
  import "../chunk-EN5BYZOE.js";
6
6
  export {
@@ -5,7 +5,7 @@ import {
5
5
  RawEditor,
6
6
  WysiwygEditor,
7
7
  useEditorContextMenuItems
8
- } from "../chunk-SAE4SSRG.js";
8
+ } from "../chunk-QY2ZFRJE.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.11.13",
3
+ "version": "2.11.14",
4
4
  "description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -98,12 +98,12 @@
98
98
  }
99
99
  },
100
100
  "dependencies": {
101
- "@bendyline/squisq": "2.11.10",
101
+ "@bendyline/squisq": "2.11.11",
102
102
  "@bendyline/squisq-calc": "2.11.0",
103
- "@bendyline/squisq-formats": "2.6.10",
104
- "@bendyline/squisq-grid-react": "2.11.11",
105
- "@bendyline/squisq-react": "2.11.12",
106
- "@bendyline/squisq-video-react": "2.4.16",
103
+ "@bendyline/squisq-formats": "2.6.11",
104
+ "@bendyline/squisq-grid-react": "2.11.12",
105
+ "@bendyline/squisq-react": "2.11.13",
106
+ "@bendyline/squisq-video-react": "2.4.17",
107
107
  "@fortawesome/fontawesome-free": "7.2.0",
108
108
  "@tiptap/core": "2.27.3",
109
109
  "@tiptap/extension-heading": "2.27.3",