@manuscripts/body-editor 3.2.1 → 3.2.2
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.
|
@@ -264,7 +264,9 @@ class ContextMenu {
|
|
|
264
264
|
menu.append(this.createMenuSection((e) => e.append(...items)));
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
if (!
|
|
267
|
+
if (!(type === transform_1.schema.nodes.figure_element &&
|
|
268
|
+
(0, transform_1.isInGraphicalAbstractSection)($pos)) &&
|
|
269
|
+
!readonlyTypes.includes(type) &&
|
|
268
270
|
!readonlyTypes.includes($pos.parent.type)) {
|
|
269
271
|
menu.appendChild(this.createMenuSection((section) => {
|
|
270
272
|
let nodeName = transform_1.nodeNames.get(type) || '';
|
package/dist/cjs/versions.js
CHANGED
|
@@ -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 { isSectionTitleNode, nodeNames, schema, } from '@manuscripts/transform';
|
|
17
|
+
import { isInGraphicalAbstractSection, 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';
|
|
@@ -260,7 +260,9 @@ export class ContextMenu {
|
|
|
260
260
|
menu.append(this.createMenuSection((e) => e.append(...items)));
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
if (!
|
|
263
|
+
if (!(type === schema.nodes.figure_element &&
|
|
264
|
+
isInGraphicalAbstractSection($pos)) &&
|
|
265
|
+
!readonlyTypes.includes(type) &&
|
|
264
266
|
!readonlyTypes.includes($pos.parent.type)) {
|
|
265
267
|
menu.appendChild(this.createMenuSection((section) => {
|
|
266
268
|
let nodeName = nodeNames.get(type) || '';
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.2.
|
|
1
|
+
export const VERSION = '3.2.2';
|
|
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.2";
|
|
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.2",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|