@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
|
|
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) || '';
|
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 { isInBibliographySection,
|
|
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
|
|
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) || '';
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.2.0';
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|