@manuscripts/body-editor 2.0.49 → 2.0.50
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.
|
@@ -111,6 +111,10 @@ const DraggableTree = ({ tree, view, depth, can, }) => {
|
|
|
111
111
|
const [{ isOver }, dropRef] = (0, react_dnd_1.useDrop)({
|
|
112
112
|
accept: 'outline',
|
|
113
113
|
canDrop(item, monitor) {
|
|
114
|
+
if (tree.node.type === transform_1.schema.nodes.bibliography_section ||
|
|
115
|
+
item.node.type === transform_1.schema.nodes.bibliography_section) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
114
118
|
if (!ref.current) {
|
|
115
119
|
return false;
|
|
116
120
|
}
|
package/dist/cjs/versions.js
CHANGED
|
@@ -84,6 +84,10 @@ export const DraggableTree = ({ tree, view, depth, can, }) => {
|
|
|
84
84
|
const [{ isOver }, dropRef] = useDrop({
|
|
85
85
|
accept: 'outline',
|
|
86
86
|
canDrop(item, monitor) {
|
|
87
|
+
if (tree.node.type === schema.nodes.bibliography_section ||
|
|
88
|
+
item.node.type === schema.nodes.bibliography_section) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
87
91
|
if (!ref.current) {
|
|
88
92
|
return false;
|
|
89
93
|
}
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.
|
|
1
|
+
export const VERSION = '2.0.50';
|
|
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.0.
|
|
1
|
+
export declare const VERSION = "2.0.50";
|
|
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.0.
|
|
4
|
+
"version": "2.0.50",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|