@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-
|
|
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-
|
|
238
|
+
} from "./chunk-WDQFWD7Z.js";
|
|
239
239
|
import {
|
|
240
240
|
MarkdownEscape
|
|
241
241
|
} from "./chunk-ZDWZRVAY.js";
|
package/dist/shell/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq-editor-react",
|
|
3
|
-
"version": "2.11.
|
|
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.
|
|
101
|
+
"@bendyline/squisq": "2.11.11",
|
|
102
102
|
"@bendyline/squisq-calc": "2.11.0",
|
|
103
|
-
"@bendyline/squisq-formats": "2.6.
|
|
104
|
-
"@bendyline/squisq-grid-react": "2.11.
|
|
105
|
-
"@bendyline/squisq-react": "2.11.
|
|
106
|
-
"@bendyline/squisq-video-react": "2.4.
|
|
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",
|