@manuscripts/body-editor 2.8.69 → 2.8.71

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.
@@ -109,7 +109,7 @@ const canInsert = (type) => (state) => {
109
109
  return false;
110
110
  }
111
111
  if (type === transform_1.schema.nodes.table_element) {
112
- if ($from.node(-1).type === transform_1.schema.nodes.list_item) {
112
+ if ((0, prosemirror_utils_1.findParentNodeOfType)(transform_1.schema.nodes.list_item)(state.selection)) {
113
113
  return false;
114
114
  }
115
115
  }
@@ -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 = '2.8.69';
4
+ exports.VERSION = '2.8.71';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -101,7 +101,7 @@ export const canInsert = (type) => (state) => {
101
101
  return false;
102
102
  }
103
103
  if (type === schema.nodes.table_element) {
104
- if ($from.node(-1).type === schema.nodes.list_item) {
104
+ if (findParentNodeOfType(schema.nodes.list_item)(state.selection)) {
105
105
  return false;
106
106
  }
107
107
  }
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.69';
1
+ export const VERSION = '2.8.71';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.69";
1
+ export declare const VERSION = "2.8.71";
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.8.69",
4
+ "version": "2.8.71",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -34,7 +34,7 @@
34
34
  "@manuscripts/library": "1.3.14",
35
35
  "@manuscripts/style-guide": "2.1.10",
36
36
  "@manuscripts/track-changes-plugin": "1.10.7",
37
- "@manuscripts/transform": "3.0.66",
37
+ "@manuscripts/transform": "3.0.67",
38
38
  "@popperjs/core": "^2.11.8",
39
39
  "astrocite-eutils": "^0.16.4",
40
40
  "codemirror": "^5.58.1",