@manuscripts/body-editor 1.10.7-LEAN-3502.0 → 1.10.7
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.
|
@@ -157,19 +157,10 @@ const getCommentIcon = (comment, setSelectedComment) => () => {
|
|
|
157
157
|
}
|
|
158
158
|
element.classList.add('block-comment-button', elementClass);
|
|
159
159
|
element.onclick = (e) => {
|
|
160
|
-
|
|
160
|
+
e.stopPropagation();
|
|
161
161
|
setSelectedComment(commentId);
|
|
162
162
|
(0, exports.commentScroll)(commentId, 'inspector');
|
|
163
163
|
};
|
|
164
|
-
const createSelection = (target) => {
|
|
165
|
-
const commentButton = target.closest('.block-comment-button');
|
|
166
|
-
const range = document.createRange();
|
|
167
|
-
range.setStart(commentButton, 0);
|
|
168
|
-
range.setEnd(commentButton, 0);
|
|
169
|
-
const selection = window.getSelection();
|
|
170
|
-
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
171
|
-
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
172
|
-
};
|
|
173
164
|
const groupCommentIcon = (count > 1 &&
|
|
174
165
|
` <svg class="group-comment-icon" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
175
166
|
<rect width="12" height="12" rx="6" fill="#F7B314"></rect>
|
|
@@ -84,8 +84,7 @@ class BibliographyElementBlockView extends block_view_1.default {
|
|
|
84
84
|
this.props.popper.destroy();
|
|
85
85
|
const element = event.target;
|
|
86
86
|
const item = element.closest('.bib-item');
|
|
87
|
-
|
|
88
|
-
if (item && !commentBtn) {
|
|
87
|
+
if (item) {
|
|
89
88
|
this.showContextMenu(item);
|
|
90
89
|
const node = (0, view_1.findChildByID)(this.view, item.id);
|
|
91
90
|
if (!node) {
|
|
@@ -151,19 +151,10 @@ const getCommentIcon = (comment, setSelectedComment) => () => {
|
|
|
151
151
|
}
|
|
152
152
|
element.classList.add('block-comment-button', elementClass);
|
|
153
153
|
element.onclick = (e) => {
|
|
154
|
-
|
|
154
|
+
e.stopPropagation();
|
|
155
155
|
setSelectedComment(commentId);
|
|
156
156
|
commentScroll(commentId, 'inspector');
|
|
157
157
|
};
|
|
158
|
-
const createSelection = (target) => {
|
|
159
|
-
const commentButton = target.closest('.block-comment-button');
|
|
160
|
-
const range = document.createRange();
|
|
161
|
-
range.setStart(commentButton, 0);
|
|
162
|
-
range.setEnd(commentButton, 0);
|
|
163
|
-
const selection = window.getSelection();
|
|
164
|
-
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
165
|
-
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
166
|
-
};
|
|
167
158
|
const groupCommentIcon = (count > 1 &&
|
|
168
159
|
` <svg class="group-comment-icon" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
169
160
|
<rect width="12" height="12" rx="6" fill="#F7B314"></rect>
|
|
@@ -78,8 +78,7 @@ export class BibliographyElementBlockView extends BlockView {
|
|
|
78
78
|
this.props.popper.destroy();
|
|
79
79
|
const element = event.target;
|
|
80
80
|
const item = element.closest('.bib-item');
|
|
81
|
-
|
|
82
|
-
if (item && !commentBtn) {
|
|
81
|
+
if (item) {
|
|
83
82
|
this.showContextMenu(item);
|
|
84
83
|
const node = findChildByID(this.view, item.id);
|
|
85
84
|
if (!node) {
|
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.10.7
|
|
4
|
+
"version": "1.10.7",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@iarna/word-count": "^1.1.2",
|
|
31
31
|
"@manuscripts/json-schema": "^2.2.7",
|
|
32
32
|
"@manuscripts/library": "^1.3.6",
|
|
33
|
-
"@manuscripts/style-guide": "1.12.
|
|
33
|
+
"@manuscripts/style-guide": "1.12.9",
|
|
34
34
|
"@manuscripts/track-changes-plugin": "1.7.12",
|
|
35
35
|
"@manuscripts/transform": "2.3.4",
|
|
36
36
|
"astrocite-eutils": "^0.16.4",
|