@manuscripts/body-editor 1.7.31 → 1.7.32-LEAN-3478
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/components/authors/AuthorsModal.js +2 -2
- package/dist/cjs/plugins/comment_annotation.js +1 -1
- package/dist/cjs/useEditor.js +1 -1
- package/dist/es/components/authors/AuthorsModal.js +2 -2
- package/dist/es/plugins/comment_annotation.js +1 -1
- package/dist/es/useEditor.js +1 -1
- package/package.json +3 -3
|
@@ -205,9 +205,9 @@ const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author,
|
|
|
205
205
|
return (react_1.default.createElement(style_guide_1.StyledModal, { isOpen: isOpen, onRequestClose: () => setOpen(false), shouldCloseOnOverlayClick: true },
|
|
206
206
|
react_1.default.createElement(style_guide_1.ModalContainer, null,
|
|
207
207
|
react_1.default.createElement(style_guide_1.ModalHeader, null,
|
|
208
|
-
react_1.default.createElement(style_guide_1.CloseButton, { onClick: () => setOpen(false), "data-cy":
|
|
208
|
+
react_1.default.createElement(style_guide_1.CloseButton, { onClick: () => setOpen(false), "data-cy": "modal-close-button" })),
|
|
209
209
|
react_1.default.createElement(style_guide_1.ModalBody, null,
|
|
210
|
-
react_1.default.createElement(style_guide_1.ModalSidebar, { "data-cy":
|
|
210
|
+
react_1.default.createElement(style_guide_1.ModalSidebar, { "data-cy": "authors-sidebar" },
|
|
211
211
|
react_1.default.createElement(style_guide_1.ModalSidebarHeader, null,
|
|
212
212
|
react_1.default.createElement(style_guide_1.ModalSidebarTitle, null, "Authors")),
|
|
213
213
|
react_1.default.createElement(style_guide_1.SidebarContent, null,
|
|
@@ -7,7 +7,7 @@ const prosemirror_view_1 = require("prosemirror-view");
|
|
|
7
7
|
const highlight_1 = require("./highlight");
|
|
8
8
|
exports.commentAnnotation = new prosemirror_state_1.PluginKey('comment_annotation');
|
|
9
9
|
const commentScroll = (id, direction, isHighlight) => {
|
|
10
|
-
const elementClass = isHighlight ? 'highlight-marker' : '
|
|
10
|
+
const elementClass = isHighlight ? 'highlight-marker' : 'block-comment-button';
|
|
11
11
|
const commentIcon = document.querySelector(`[id="${id}"].${elementClass}`);
|
|
12
12
|
const commentCard = document.querySelectorAll(`.comments-group [id="${id}"]`);
|
|
13
13
|
if (commentIcon && commentCard.length > 0) {
|
package/dist/cjs/useEditor.js
CHANGED
|
@@ -65,7 +65,7 @@ const useEditor = (externalProps) => {
|
|
|
65
65
|
(!trackState || trackState.status !== track_changes_plugin_1.TrackChangesStatus.viewSnapshots)) {
|
|
66
66
|
const sendable = (0, prosemirror_collab_1.sendableSteps)(nextState);
|
|
67
67
|
if (sendable) {
|
|
68
|
-
collabProvider.sendSteps(sendable.version, sendable.steps, sendable.clientID,
|
|
68
|
+
collabProvider.sendSteps(sendable.version, sendable.steps, sendable.clientID, false);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
debounce(() => {
|
|
@@ -176,9 +176,9 @@ export const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, a
|
|
|
176
176
|
return (React.createElement(StyledModal, { isOpen: isOpen, onRequestClose: () => setOpen(false), shouldCloseOnOverlayClick: true },
|
|
177
177
|
React.createElement(ModalContainer, null,
|
|
178
178
|
React.createElement(ModalHeader, null,
|
|
179
|
-
React.createElement(CloseButton, { onClick: () => setOpen(false), "data-cy":
|
|
179
|
+
React.createElement(CloseButton, { onClick: () => setOpen(false), "data-cy": "modal-close-button" })),
|
|
180
180
|
React.createElement(ModalBody, null,
|
|
181
|
-
React.createElement(ModalSidebar, { "data-cy":
|
|
181
|
+
React.createElement(ModalSidebar, { "data-cy": "authors-sidebar" },
|
|
182
182
|
React.createElement(ModalSidebarHeader, null,
|
|
183
183
|
React.createElement(ModalSidebarTitle, null, "Authors")),
|
|
184
184
|
React.createElement(SidebarContent, null,
|
|
@@ -4,7 +4,7 @@ import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
|
4
4
|
import { SET_COMMENT } from './highlight';
|
|
5
5
|
export const commentAnnotation = new PluginKey('comment_annotation');
|
|
6
6
|
export const commentScroll = (id, direction, isHighlight) => {
|
|
7
|
-
const elementClass = isHighlight ? 'highlight-marker' : '
|
|
7
|
+
const elementClass = isHighlight ? 'highlight-marker' : 'block-comment-button';
|
|
8
8
|
const commentIcon = document.querySelector(`[id="${id}"].${elementClass}`);
|
|
9
9
|
const commentCard = document.querySelectorAll(`.comments-group [id="${id}"]`);
|
|
10
10
|
if (commentIcon && commentCard.length > 0) {
|
package/dist/es/useEditor.js
CHANGED
|
@@ -62,7 +62,7 @@ export const useEditor = (externalProps) => {
|
|
|
62
62
|
(!trackState || trackState.status !== TrackChangesStatus.viewSnapshots)) {
|
|
63
63
|
const sendable = sendableSteps(nextState);
|
|
64
64
|
if (sendable) {
|
|
65
|
-
collabProvider.sendSteps(sendable.version, sendable.steps, sendable.clientID,
|
|
65
|
+
collabProvider.sendSteps(sendable.version, sendable.steps, sendable.clientID, false);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
debounce(() => {
|
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.7.
|
|
4
|
+
"version": "1.7.32-LEAN-3478",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@manuscripts/assets": "^0.6.4",
|
|
32
32
|
"@manuscripts/json-schema": "^2.2.7",
|
|
33
33
|
"@manuscripts/library": "^1.3.6",
|
|
34
|
-
"@manuscripts/style-guide": "1.8.4",
|
|
34
|
+
"@manuscripts/style-guide": "1.8.4-LEAN-3478",
|
|
35
35
|
"@manuscripts/track-changes-plugin": "1.7.9",
|
|
36
|
-
"@manuscripts/transform": "
|
|
36
|
+
"@manuscripts/transform": "2.1.12",
|
|
37
37
|
"astrocite-eutils": "^0.16.4",
|
|
38
38
|
"axios": "^1.6.7",
|
|
39
39
|
"mathjax-full": "^3.2.2",
|