@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.
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '3.2.31';
4
+ exports.VERSION = '3.2.32';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -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
  }
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.2.31';
1
+ export const VERSION = '3.2.32';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.2.31";
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.31",
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",