@manuscripts/body-editor 1.5.13 → 1.5.14

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.
@@ -343,7 +343,7 @@ const insertGraphicalAbstract = (state, dispatch) => {
343
343
  !(0, transform_1.isInAbstractsSection)(state.selection.$from)) {
344
344
  return false;
345
345
  }
346
- if (!(0, utils_1.getMatchingDescendant)(state.doc, (node) => node.type === state.schema.nodes.graphical_abstract_section)) {
346
+ if ((0, utils_1.getMatchingDescendant)(state.doc, (node) => node.type === state.schema.nodes.graphical_abstract_section)) {
347
347
  return false;
348
348
  }
349
349
  const section = state.schema.nodes.graphical_abstract_section.createAndFill({ category: 'MPSectionCategory:abstract-graphical' }, [
@@ -301,7 +301,7 @@ export const insertGraphicalAbstract = (state, dispatch) => {
301
301
  !isInAbstractsSection(state.selection.$from)) {
302
302
  return false;
303
303
  }
304
- if (!getMatchingDescendant(state.doc, (node) => node.type === state.schema.nodes.graphical_abstract_section)) {
304
+ if (getMatchingDescendant(state.doc, (node) => node.type === state.schema.nodes.graphical_abstract_section)) {
305
305
  return false;
306
306
  }
307
307
  const section = state.schema.nodes.graphical_abstract_section.createAndFill({ category: 'MPSectionCategory:abstract-graphical' }, [
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": "1.5.13",
4
+ "version": "1.5.14",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -33,7 +33,7 @@
33
33
  "@manuscripts/style-guide": "1.4.6",
34
34
  "@manuscripts/title-editor": "^1.1.0",
35
35
  "@manuscripts/track-changes-plugin": "^1.7.4",
36
- "@manuscripts/transform": "1.5.6",
36
+ "@manuscripts/transform": "1.5.7",
37
37
  "astrocite-eutils": "^0.16.4",
38
38
  "axios": "^1.2.2",
39
39
  "codemirror": "^5.58.1",