@manuscripts/body-editor 2.2.6 → 2.2.7
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 +3 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +3 -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
|
@@ -480,7 +480,9 @@ const insertInlineFootnote = (kind) => (state, dispatch) => {
|
|
|
480
480
|
};
|
|
481
481
|
exports.insertInlineFootnote = insertInlineFootnote;
|
|
482
482
|
const insertGraphicalAbstract = (state, dispatch, view) => {
|
|
483
|
-
|
|
483
|
+
const GraphicalAbstractSectionNode = (0, prosemirror_utils_1.findChildrenByType)(state.doc, transform_1.schema.nodes.graphical_abstract_section)[0];
|
|
484
|
+
if ((0, utils_1.getChildOfType)(state.doc, transform_1.schema.nodes.graphical_abstract_section, true) &&
|
|
485
|
+
!(0, track_changes_utils_1.isRejectedInsert)(GraphicalAbstractSectionNode.node)) {
|
|
484
486
|
return false;
|
|
485
487
|
}
|
|
486
488
|
const abstracts = (0, prosemirror_utils_1.findChildrenByType)(state.doc, transform_1.schema.nodes.abstracts)[0];
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -453,7 +453,9 @@ export const insertInlineFootnote = (kind) => (state, dispatch) => {
|
|
|
453
453
|
return true;
|
|
454
454
|
};
|
|
455
455
|
export const insertGraphicalAbstract = (state, dispatch, view) => {
|
|
456
|
-
|
|
456
|
+
const GraphicalAbstractSectionNode = findChildrenByType(state.doc, schema.nodes.graphical_abstract_section)[0];
|
|
457
|
+
if (getChildOfType(state.doc, schema.nodes.graphical_abstract_section, true) &&
|
|
458
|
+
!isRejectedInsert(GraphicalAbstractSectionNode.node)) {
|
|
457
459
|
return false;
|
|
458
460
|
}
|
|
459
461
|
const abstracts = findChildrenByType(state.doc, schema.nodes.abstracts)[0];
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.2.
|
|
1
|
+
export const VERSION = '2.2.7';
|
|
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 = "2.2.
|
|
1
|
+
export declare const VERSION = "2.2.7";
|
|
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": "2.2.
|
|
4
|
+
"version": "2.2.7",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|