@manuscripts/body-editor 3.1.2-LEAN-4618.0 → 3.2.0

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.
@@ -267,9 +267,7 @@ class ContextMenu {
267
267
  menu.append(this.createMenuSection((e) => e.append(...items)));
268
268
  }
269
269
  }
270
- if (!(type === transform_1.schema.nodes.figure_element &&
271
- (0, transform_1.isInGraphicalAbstractSection)($pos)) &&
272
- !readonlyTypes.includes(type) &&
270
+ if (!readonlyTypes.includes(type) &&
273
271
  !readonlyTypes.includes($pos.parent.type)) {
274
272
  menu.appendChild(this.createMenuSection((section) => {
275
273
  let nodeName = transform_1.nodeNames.get(type) || '';
@@ -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.1.2-LEAN-4618.0';
4
+ exports.VERSION = '3.2.0';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ImageDefaultIcon, ImageLeftIcon, ImageRightIcon, TriangleCollapsedIcon, } from '@manuscripts/style-guide';
17
- import { isInBibliographySection, isInGraphicalAbstractSection, isSectionTitleNode, nodeNames, schema, } from '@manuscripts/transform';
17
+ import { isInBibliographySection, isSectionTitleNode, nodeNames, schema, } from '@manuscripts/transform';
18
18
  import { findChildrenByType } from 'prosemirror-utils';
19
19
  import { createElement } from 'react';
20
20
  import { renderToStaticMarkup } from 'react-dom/server';
@@ -263,9 +263,7 @@ export class ContextMenu {
263
263
  menu.append(this.createMenuSection((e) => e.append(...items)));
264
264
  }
265
265
  }
266
- if (!(type === schema.nodes.figure_element &&
267
- isInGraphicalAbstractSection($pos)) &&
268
- !readonlyTypes.includes(type) &&
266
+ if (!readonlyTypes.includes(type) &&
269
267
  !readonlyTypes.includes($pos.parent.type)) {
270
268
  menu.appendChild(this.createMenuSection((section) => {
271
269
  let nodeName = nodeNames.get(type) || '';
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.1.2-LEAN-4618.0';
1
+ export const VERSION = '3.2.0';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.1.2-LEAN-4618.0";
1
+ export declare const VERSION = "3.2.0";
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.1.2-LEAN-4618.0",
4
+ "version": "3.2.0",
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
  "@manuscripts/json-schema": "2.2.12",
40
40
  "@manuscripts/style-guide": "3.1.0",
41
41
  "@manuscripts/track-changes-plugin": "2.0.1",
42
- "@manuscripts/transform": "4.1.1",
42
+ "@manuscripts/transform": "4.2.0",
43
43
  "@popperjs/core": "2.11.8",
44
44
  "citeproc": "2.4.63",
45
45
  "codemirror": "5.65.19",