@manuscripts/body-editor 3.6.8 → 3.6.10
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/cjs/lib/utils.js +4 -0
- package/dist/cjs/versions.js +1 -1
- package/dist/es/lib/utils.js +4 -0
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/lib/utils.js
CHANGED
|
@@ -181,6 +181,10 @@ const findInsertionPosition = (type, doc) => {
|
|
|
181
181
|
insertPos = offset;
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
+
if (insertPos === 0 &&
|
|
185
|
+
doc.canReplaceWith(doc.childCount, doc.childCount, type)) {
|
|
186
|
+
insertPos = doc.content.size;
|
|
187
|
+
}
|
|
184
188
|
return insertPos;
|
|
185
189
|
};
|
|
186
190
|
exports.findInsertionPosition = findInsertionPosition;
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/lib/utils.js
CHANGED
|
@@ -161,6 +161,10 @@ export const findInsertionPosition = (type, doc) => {
|
|
|
161
161
|
insertPos = offset;
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
+
if (insertPos === 0 &&
|
|
165
|
+
doc.canReplaceWith(doc.childCount, doc.childCount, type)) {
|
|
166
|
+
insertPos = doc.content.size;
|
|
167
|
+
}
|
|
164
168
|
return insertPos;
|
|
165
169
|
};
|
|
166
170
|
export const filterBlockNodes = (fragment, predicate) => {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.6.
|
|
1
|
+
export const VERSION = '3.6.10';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.6.
|
|
1
|
+
export declare const VERSION = "3.6.10";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.10",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cospired/i18n-iso-languages": "^4.2.0",
|
|
40
40
|
"@iarna/word-count": "1.1.2",
|
|
41
41
|
"@manuscripts/json-schema": "2.2.12",
|
|
42
|
-
"@manuscripts/style-guide": "3.3.
|
|
42
|
+
"@manuscripts/style-guide": "3.3.4",
|
|
43
43
|
"@manuscripts/track-changes-plugin": "2.1.0",
|
|
44
44
|
"@manuscripts/transform": "4.3.5",
|
|
45
45
|
"@popperjs/core": "2.11.8",
|