@manuscripts/body-editor 2.2.15 → 2.2.16-LEAN-3894.0
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.
|
@@ -133,14 +133,16 @@ const buildPluginState = (doc, selection) => {
|
|
|
133
133
|
})
|
|
134
134
|
.forEach((c) => {
|
|
135
135
|
allComments.push(c);
|
|
136
|
-
if (!c.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
if (!c.node.attrs.target.includes('MPCommentAnnotation')) {
|
|
137
|
+
if (!c.range) {
|
|
138
|
+
nodeComments.push(c);
|
|
139
|
+
}
|
|
140
|
+
else if (c.range.size) {
|
|
141
|
+
highlightComments.push(c);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
pointComments.push(c);
|
|
145
|
+
}
|
|
144
146
|
}
|
|
145
147
|
});
|
|
146
148
|
for (const comment of highlightComments) {
|
package/dist/cjs/versions.js
CHANGED
|
@@ -128,14 +128,16 @@ const buildPluginState = (doc, selection) => {
|
|
|
128
128
|
})
|
|
129
129
|
.forEach((c) => {
|
|
130
130
|
allComments.push(c);
|
|
131
|
-
if (!c.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
if (!c.node.attrs.target.includes('MPCommentAnnotation')) {
|
|
132
|
+
if (!c.range) {
|
|
133
|
+
nodeComments.push(c);
|
|
134
|
+
}
|
|
135
|
+
else if (c.range.size) {
|
|
136
|
+
highlightComments.push(c);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
pointComments.push(c);
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
});
|
|
141
143
|
for (const comment of highlightComments) {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.2.
|
|
1
|
+
export const VERSION = '2.2.16-LEAN-3894.0';
|
|
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.2.
|
|
1
|
+
export declare const VERSION = "2.2.16-LEAN-3894.0";
|
|
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.2.
|
|
4
|
+
"version": "2.2.16-LEAN-3894.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|