@manuscripts/body-editor 1.13.21 → 1.13.22
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.
|
@@ -83,8 +83,8 @@ const buildNodeDecoration = (doc, selection) => {
|
|
|
83
83
|
const from = selection.from;
|
|
84
84
|
const to = selection.to;
|
|
85
85
|
const inline = node.type === transform_1.schema.nodes.keyword || node.isInline;
|
|
86
|
-
const
|
|
87
|
-
|
|
86
|
+
const decorationType = inline ? prosemirror_view_1.Decoration.inline : prosemirror_view_1.Decoration.node;
|
|
87
|
+
const decoration = decorationType(from, to, {
|
|
88
88
|
class: 'selected-suggestion',
|
|
89
89
|
});
|
|
90
90
|
return {
|
|
@@ -80,8 +80,8 @@ const buildNodeDecoration = (doc, selection) => {
|
|
|
80
80
|
const from = selection.from;
|
|
81
81
|
const to = selection.to;
|
|
82
82
|
const inline = node.type === schema.nodes.keyword || node.isInline;
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const decorationType = inline ? Decoration.inline : Decoration.node;
|
|
84
|
+
const decoration = decorationType(from, to, {
|
|
85
85
|
class: 'selected-suggestion',
|
|
86
86
|
});
|
|
87
87
|
return {
|
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.13.
|
|
4
|
+
"version": "1.13.22",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@iarna/word-count": "^1.1.2",
|
|
31
31
|
"@manuscripts/json-schema": "2.2.10",
|
|
32
32
|
"@manuscripts/library": "1.3.10",
|
|
33
|
-
"@manuscripts/style-guide": "1.13.
|
|
33
|
+
"@manuscripts/style-guide": "1.13.14",
|
|
34
34
|
"@manuscripts/track-changes-plugin": "1.7.14",
|
|
35
|
-
"@manuscripts/transform": "2.3.
|
|
35
|
+
"@manuscripts/transform": "2.3.21",
|
|
36
36
|
"@popperjs/core": "^2.11.8",
|
|
37
37
|
"astrocite-eutils": "^0.16.4",
|
|
38
38
|
"codemirror": "^5.58.1",
|
|
@@ -110,4 +110,4 @@
|
|
|
110
110
|
"@types/react": "^17.0.2",
|
|
111
111
|
"prosemirror-tables": "^1.3.5"
|
|
112
112
|
}
|
|
113
|
-
}
|
|
113
|
+
}
|
|
@@ -335,9 +335,9 @@ Next levels are shifted 'up' by 1
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.ProseMirror .figure-block > figure {
|
|
338
|
-
border-color: #000
|
|
339
|
-
border-style: none
|
|
340
|
-
border-width: 0pt
|
|
338
|
+
border-color: #000;
|
|
339
|
+
border-style: none;
|
|
340
|
+
border-width: 0pt;
|
|
341
341
|
position: relative;
|
|
342
342
|
grid-column: 1/-1;
|
|
343
343
|
}
|