@manuscripts/body-editor 3.2.31 → 3.2.32
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/commands.js +2 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +2 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/commands.js
CHANGED
|
@@ -349,8 +349,9 @@ const findPosBeforeFirstSubsection = ($pos) => {
|
|
|
349
349
|
const parentNode = $pos.node(d);
|
|
350
350
|
if ((0, transform_1.isSectionNodeType)(parentNode.type)) {
|
|
351
351
|
const parentStartPos = $pos.start(d);
|
|
352
|
-
parentNode.descendants((node, pos) => {
|
|
352
|
+
parentNode.descendants((node, pos, parent) => {
|
|
353
353
|
if (node.type === transform_1.schema.nodes.section &&
|
|
354
|
+
parent === parentNode &&
|
|
354
355
|
posBeforeFirstSubsection === null) {
|
|
355
356
|
posBeforeFirstSubsection = parentStartPos + pos;
|
|
356
357
|
}
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -328,8 +328,9 @@ export const findPosBeforeFirstSubsection = ($pos) => {
|
|
|
328
328
|
const parentNode = $pos.node(d);
|
|
329
329
|
if (isSectionNodeType(parentNode.type)) {
|
|
330
330
|
const parentStartPos = $pos.start(d);
|
|
331
|
-
parentNode.descendants((node, pos) => {
|
|
331
|
+
parentNode.descendants((node, pos, parent) => {
|
|
332
332
|
if (node.type === schema.nodes.section &&
|
|
333
|
+
parent === parentNode &&
|
|
333
334
|
posBeforeFirstSubsection === null) {
|
|
334
335
|
posBeforeFirstSubsection = parentStartPos + pos;
|
|
335
336
|
}
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.2.
|
|
1
|
+
export const VERSION = '3.2.32';
|
|
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.2.
|
|
1
|
+
export declare const VERSION = "3.2.32";
|
|
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.2.
|
|
4
|
+
"version": "3.2.32",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|