@manuscripts/body-editor 2.8.49 → 2.8.52
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 +5 -0
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +5 -0
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/commands.js
CHANGED
|
@@ -108,6 +108,11 @@ const canInsert = (type) => (state) => {
|
|
|
108
108
|
(0, prosemirror_utils_1.findParentNodeOfType)(transform_1.schema.nodes.backmatter)(state.selection)) {
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
|
+
if (type === transform_1.schema.nodes.table_element) {
|
|
112
|
+
if ($from.node(-1).type === transform_1.schema.nodes.list_item) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
111
116
|
const initDepth = ((_a = (0, prosemirror_utils_1.findParentNodeOfType)(transform_1.schema.nodes.box_element)(state.selection)) === null || _a === void 0 ? void 0 : _a.depth) ||
|
|
112
117
|
0;
|
|
113
118
|
for (let d = $from.depth; d >= initDepth; d--) {
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -100,6 +100,11 @@ export const canInsert = (type) => (state) => {
|
|
|
100
100
|
findParentNodeOfType(schema.nodes.backmatter)(state.selection)) {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
|
+
if (type === schema.nodes.table_element) {
|
|
104
|
+
if ($from.node(-1).type === schema.nodes.list_item) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
103
108
|
const initDepth = ((_a = findParentNodeOfType(schema.nodes.box_element)(state.selection)) === null || _a === void 0 ? void 0 : _a.depth) ||
|
|
104
109
|
0;
|
|
105
110
|
for (let d = $from.depth; d >= initDepth; d--) {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.8.
|
|
1
|
+
export const VERSION = '2.8.52';
|
|
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.8.
|
|
1
|
+
export declare const VERSION = "2.8.52";
|
|
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.
|
|
4
|
+
"version": "2.8.52",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -117,4 +117,4 @@
|
|
|
117
117
|
"engines": {
|
|
118
118
|
"node": ">=20.16.0"
|
|
119
119
|
}
|
|
120
|
-
}
|
|
120
|
+
}
|