@manuscripts/body-editor 2.0.36 → 2.0.39
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/assets.js +2 -156
- package/dist/cjs/components/references/CitationEditor.js +1 -3
- package/dist/cjs/lib/track-changes-utils.js +4 -2
- package/dist/cjs/plugins/footnotes/index.js +5 -3
- package/dist/cjs/plugins/section-category/section-category-utils.js +4 -2
- package/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/table_cell.js +4 -2
- package/dist/es/assets.js +1 -155
- package/dist/es/components/references/CitationEditor.js +1 -3
- package/dist/es/lib/track-changes-utils.js +4 -2
- package/dist/es/plugins/footnotes/index.js +5 -3
- package/dist/es/plugins/section-category/section-category-utils.js +4 -2
- package/dist/es/versions.js +1 -1
- package/dist/es/views/table_cell.js +4 -2
- package/dist/types/assets.d.ts +1 -7
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
- package/styles/Editor.css +13 -1
package/dist/cjs/assets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*!
|
|
3
|
-
* ©
|
|
3
|
+
* © 2024 Atypon Systems LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -15,161 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.sectionCategoryIcon =
|
|
19
|
-
exports.editIcon = `
|
|
20
|
-
<svg
|
|
21
|
-
width="14"
|
|
22
|
-
height="14"
|
|
23
|
-
viewBox="0 0 14 14"
|
|
24
|
-
fill="none"
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
-
>
|
|
27
|
-
<path
|
|
28
|
-
d="M8.706 2.33624L11.553 5.19824L4.345 12.4422L1.498 9.58124L8.706 2.33624V2.33624ZM13.714 1.64624L12.444 0.37024C12.3273 0.253047 12.1886 0.160056 12.0359 0.0966039C11.8831 0.0331518 11.7194 0.000488281 11.554 0.000488281C11.3886 0.000488281 11.2249 0.0331518 11.0721 0.0966039C10.9194 0.160056 10.7807 0.253047 10.664 0.37024L9.447 1.59224L12.295 4.45424L13.715 3.02824C13.8976 2.84462 14.0001 2.59619 14.0001 2.33724C14.0001 2.07829 13.8976 1.82986 13.715 1.64624H13.714ZM0.00800253 13.6032C-0.00418388 13.6571 -0.00246802 13.7131 0.0129883 13.7661C0.0284447 13.819 0.0571327 13.8672 0.096349 13.906C0.135565 13.9448 0.184019 13.973 0.237143 13.9879C0.290268 14.0028 0.346315 14.004 0.400003 13.9912L3.573 13.2172L0.727003 10.3552L0.0070026 13.6032H0.00800253Z"
|
|
29
|
-
fill="#6E6E6E"
|
|
30
|
-
/>
|
|
31
|
-
</svg>
|
|
32
|
-
`;
|
|
33
|
-
exports.commentIcon = `
|
|
34
|
-
<svg
|
|
35
|
-
width="20"
|
|
36
|
-
height="15"
|
|
37
|
-
viewBox="0 0 20 15"
|
|
38
|
-
fill="none"
|
|
39
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
-
>
|
|
41
|
-
<path
|
|
42
|
-
fill-rule="evenodd"
|
|
43
|
-
clip-rule="evenodd"
|
|
44
|
-
d="M7.94841 4.18311C7.98238 3.9602 8 3.73191 8 3.49951C8 3.22073 7.97465 2.94787 7.92613 2.68311H13.5C14.8854 2.68311 16.25 3.6425 16.25 5.09977V9.02453L19.1086 12.9949C19.2731 13.2233 19.2958 13.5245 19.1675 13.775C19.0392 14.0255 18.7814 14.1831 18.5 14.1831H5.5C4.11463 14.1831 2.75 13.2237 2.75 11.7664V7.93729C2.9939 7.97821 3.24446 7.99951 3.5 7.99951C3.75553 7.99951 4.00609 7.97821 4.25 7.93729V11.7664C4.25 12.1508 4.67537 12.6831 5.5 12.6831H17.0358L14.8913 9.70467C14.7994 9.57703 14.75 9.42372 14.75 9.26644V5.09977C14.75 4.71538 14.3246 4.18311 13.5 4.18311H7.94841Z"
|
|
45
|
-
fill="#FFBD26"
|
|
46
|
-
/>
|
|
47
|
-
<path
|
|
48
|
-
d="M11.5 6.99951H8.5"
|
|
49
|
-
stroke="#FFBD26"
|
|
50
|
-
stroke-width="1.5"
|
|
51
|
-
stroke-miterlimit="10"
|
|
52
|
-
stroke-linecap="round"
|
|
53
|
-
stroke-linejoin="round"
|
|
54
|
-
/>
|
|
55
|
-
<path
|
|
56
|
-
d="M12 9.99951H7"
|
|
57
|
-
stroke="#FFBD26"
|
|
58
|
-
stroke-width="1.5"
|
|
59
|
-
stroke-miterlimit="10"
|
|
60
|
-
stroke-linecap="round"
|
|
61
|
-
stroke-linejoin="round"
|
|
62
|
-
/>
|
|
63
|
-
<path
|
|
64
|
-
d="M3.5 1L3.5 6"
|
|
65
|
-
stroke="#FFBD26"
|
|
66
|
-
stroke-width="1.5"
|
|
67
|
-
stroke-miterlimit="10"
|
|
68
|
-
stroke-linecap="round"
|
|
69
|
-
stroke-linejoin="round"
|
|
70
|
-
/>
|
|
71
|
-
<path
|
|
72
|
-
d="M6 3.5L1 3.5"
|
|
73
|
-
stroke="#FFBD26"
|
|
74
|
-
stroke-width="1.5"
|
|
75
|
-
stroke-miterlimit="10"
|
|
76
|
-
stroke-linecap="round"
|
|
77
|
-
stroke-linejoin="round"
|
|
78
|
-
/>
|
|
79
|
-
</svg>
|
|
80
|
-
`;
|
|
81
|
-
exports.editAttrsTrackingIcon = `
|
|
82
|
-
<svg
|
|
83
|
-
width="16"
|
|
84
|
-
height="16"
|
|
85
|
-
viewBox="0 0 16 16"
|
|
86
|
-
fill="none"
|
|
87
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
-
>
|
|
89
|
-
<path
|
|
90
|
-
d="M12 2L14 4L9 9L6 10L7 7L12 2Z"
|
|
91
|
-
stroke="#353535"
|
|
92
|
-
stroke-width="1.5"
|
|
93
|
-
stroke-linecap="round"
|
|
94
|
-
stroke-linejoin="round"
|
|
95
|
-
/>
|
|
96
|
-
<path
|
|
97
|
-
d="M13 10V11.5C13 12.328 12.328 13 11.5 13H4.5C3.672 13 3 12.328 3 11.5V4.5C3 3.672 3.672 3 4.5 3H6"
|
|
98
|
-
stroke="#353535"
|
|
99
|
-
stroke-width="1.5"
|
|
100
|
-
stroke-linecap="round"
|
|
101
|
-
stroke-linejoin="round"
|
|
102
|
-
/>
|
|
103
|
-
</svg>
|
|
104
|
-
`;
|
|
105
|
-
exports.alertIcon = `
|
|
106
|
-
<svg
|
|
107
|
-
width="12"
|
|
108
|
-
height="12"
|
|
109
|
-
viewBox="0 0 12 12"
|
|
110
|
-
fill="none"
|
|
111
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
112
|
-
>
|
|
113
|
-
<path
|
|
114
|
-
fill-rule="evenodd"
|
|
115
|
-
clip-rule="evenodd"
|
|
116
|
-
d="M6 12C2.68629 12 1.18852e-06 9.31371 1.47821e-06 6C1.7679e-06 2.68629 2.68629 1.39444e-07 6 4.29138e-07C9.31371 7.18831e-07 12 2.68629 12 6C12 9.31371 9.31371 12 6 12ZM6.74998 2.99996L6.75 6.37462C6.75 6.78819 6.41522 7.12243 6.00166 7.12334C5.58681 7.12426 5.25001 6.78821 5.25001 6.37335L5.25 3.00082C5.25 2.58629 5.58629 2.25037 6.00082 2.25083C6.4147 2.25128 6.74998 2.58607 6.74998 2.99996ZM6.75 8.99263C6.75 9.46884 6.47288 9.75 5.99853 9.75C5.52419 9.75 5.25 9.47179 5.25 8.99558C5.25 8.51937 5.52421 8.25 5.99855 8.25C6.47289 8.25 6.75 8.51642 6.75 8.99263Z"
|
|
117
|
-
fill="#FE8F1F"
|
|
118
|
-
/>
|
|
119
|
-
</svg>
|
|
120
|
-
`;
|
|
121
|
-
exports.deleteIcon = `
|
|
122
|
-
<svg
|
|
123
|
-
width="13"
|
|
124
|
-
height="17"
|
|
125
|
-
viewBox="0 0 13 15"
|
|
126
|
-
fill="none"
|
|
127
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
128
|
-
>
|
|
129
|
-
<path
|
|
130
|
-
fill-rule="evenodd"
|
|
131
|
-
clip-rule="evenodd"
|
|
132
|
-
d="M2.00001 3C2 3.00135 2 3.00269 2 3.00404V13.004C2 13.5563 2.44772 14.004 3 14.004H10C10.5523 14.004 11 13.5563 11 13.004V3.00404C11 3.00269 11 3.00135 11 3C11.5978 3.34581 12 3.99215 12 4.73244V13.004C12 14.1086 11.1046 15.004 10 15.004H3C1.89543 15.004 1 14.1086 1 13.004V4.73244C1 3.99215 1.4022 3.34581 2.00001 3Z"
|
|
133
|
-
fill="#C9C9C9"
|
|
134
|
-
/>
|
|
135
|
-
<path
|
|
136
|
-
fill-rule="evenodd"
|
|
137
|
-
clip-rule="evenodd"
|
|
138
|
-
d="M4.5 0C3.67157 0 3 0.671573 3 1.5V3.5C3 4.32843 3.67157 5 4.5 5H8.5C9.32843 5 10 4.32843 10 3.5V1.5C10 0.671573 9.32843 0 8.5 0H4.5ZM9 1.5C9 1.22386 8.77614 1 8.5 1H4.5C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2H8.5C8.77614 2 9 1.77614 9 1.5Z"
|
|
139
|
-
fill="#C9C9C9"
|
|
140
|
-
/>
|
|
141
|
-
<rect
|
|
142
|
-
y="2"
|
|
143
|
-
width="13"
|
|
144
|
-
height="3"
|
|
145
|
-
rx="1.5"
|
|
146
|
-
fill="#C9C9C9"
|
|
147
|
-
/>
|
|
148
|
-
<path
|
|
149
|
-
fill-rule="evenodd"
|
|
150
|
-
clip-rule="evenodd"
|
|
151
|
-
d="M8 7.5C8 7.22386 8.22386 7 8.5 7C8.77614 7 9 7.22386 9 7.5V11.5C9 11.7761 8.77614 12 8.5 12C8.22386 12 8 11.7761 8 11.5V7.5Z"
|
|
152
|
-
fill="#C9C9C9"
|
|
153
|
-
/>
|
|
154
|
-
<path
|
|
155
|
-
fill-rule="evenodd"
|
|
156
|
-
clip-rule="evenodd"
|
|
157
|
-
d="M4 7.5C4 7.22386 4.22386 7 4.5 7C4.77614 7 5 7.22386 5 7.5V11.5C5 11.7761 4.77614 12 4.5 12C4.22386 12 4 11.7761 4 11.5V7.5Z"
|
|
158
|
-
fill="#C9C9C9"
|
|
159
|
-
/>
|
|
160
|
-
<path
|
|
161
|
-
fill-rule="evenodd"
|
|
162
|
-
clip-rule="evenodd"
|
|
163
|
-
d="M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4L1.5 4C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3L11.5 3Z"
|
|
164
|
-
fill="white"
|
|
165
|
-
/>
|
|
166
|
-
</svg>`;
|
|
167
|
-
exports.threeDotIcon = ` <svg width="4" height="16" viewBox="0 0 4 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
|
-
<circle cx="2" cy="2" r="2" fill="#6E6E6E"></circle>
|
|
169
|
-
<circle cx="2" cy="8" r="2" fill="#6E6E6E"></circle>
|
|
170
|
-
<circle cx="2" cy="14" r="2" fill="#6E6E6E"></circle>
|
|
171
|
-
</svg>
|
|
172
|
-
`;
|
|
18
|
+
exports.sectionCategoryIcon = void 0;
|
|
173
19
|
exports.sectionCategoryIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="19" viewBox="0 0 16 19" fill="none">
|
|
174
20
|
<path d="M0.5 4C0.5 2.067 2.067 0.5 4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V16.0505C15.5 17.1991 14.2619 17.9215 13.2619 17.3563L8.73809 14.7994C8.28008 14.5405 7.71992 14.5405 7.26191 14.7994L2.73809 17.3563C1.73815 17.9215 0.5 17.1991 0.5 16.0505V4Z" fill="white" stroke="#6E6E6E"/>
|
|
175
21
|
</svg>`;
|
|
@@ -74,8 +74,6 @@ const Actions = styled_components_1.default.div `
|
|
|
74
74
|
justify-content: space-between;
|
|
75
75
|
align-items: center;
|
|
76
76
|
`;
|
|
77
|
-
const EditIcon = () => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", color: "#6E6E6E", xmlns: "http://www.w3.org/2000/svg" },
|
|
78
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7145 1.64621L12.4444 0.369929C11.9536 -0.12331 11.1566 -0.12331 10.6641 0.369929L9.44748 1.59248L12.2954 4.45434L13.7145 3.02831C14.0952 2.64572 14.0952 2.02877 13.7145 1.64621ZM8.70555 2.33642L11.5535 5.19826L4.3446 12.4424L1.4983 9.58059L8.70555 2.33642ZM0.399974 13.9906C0.166693 14.0476 -0.0439034 13.8375 0.00792508 13.6031L0.727197 10.3555L3.5735 13.2173L0.399974 13.9906Z", fill: "#6E6E6E" })));
|
|
79
77
|
const itemsReducer = (0, array_reducer_1.attrsReducer)();
|
|
80
78
|
const ridsReducer = (0, array_reducer_1.arrayReducer)();
|
|
81
79
|
const CitationEditor = ({ query, rids: $rids, items: $items, citationCounts, sources, onSave, onDelete, onCite, onUncite, onCancel, canEdit, }) => {
|
|
@@ -156,7 +154,7 @@ const CitationEditor = ({ query, rids: $rids, items: $items, citationCounts, sou
|
|
|
156
154
|
react_1.default.createElement(ReferenceLine_1.ReferenceLine, { item: item }),
|
|
157
155
|
react_1.default.createElement(CitedItemActions, null,
|
|
158
156
|
react_1.default.createElement(EditReferenceButton, { value: item.id, disabled: !canEdit, onClick: () => setEditingForm({ show: true, item: item }) },
|
|
159
|
-
react_1.default.createElement(EditIcon, null)),
|
|
157
|
+
react_1.default.createElement(style_guide_1.EditIcon, null)),
|
|
160
158
|
react_1.default.createElement(ActionButton, { disabled: !canEdit, onClick: () => setDeleteDialog({ show: true, id: item.id }) },
|
|
161
159
|
react_1.default.createElement(style_guide_1.DeleteSolidIcon, { className: 'remove-icon' }))))))),
|
|
162
160
|
react_1.default.createElement(ReferencesModal_1.ReferencesModal, { isOpen: editingForm.show, onCancel: () => setEditingForm({ show: false }), items: items, citationCounts: citationCounts, item: editingForm.item, onSave: handleSave, onDelete: handleDelete }),
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.sanitizeAttrsChange = exports.isHidden = exports.getAttrsTrackingButton = exports.getActualAttrs = exports.isTracked = exports.getChangeClasses = exports.isPendingSetAttrs = exports.isPending = exports.isPendingInsert = exports.isDeleted = exports.isRejectedInsert = void 0;
|
|
19
|
-
const
|
|
19
|
+
const style_guide_1 = require("@manuscripts/style-guide");
|
|
20
|
+
const react_1 = require("react");
|
|
21
|
+
const server_1 = require("react-dom/server");
|
|
20
22
|
function isRejectedInsert(node) {
|
|
21
23
|
if (node.attrs.dataTracked) {
|
|
22
24
|
const changes = node.attrs.dataTracked;
|
|
@@ -95,7 +97,7 @@ const getAttrsTrackingButton = (changeID) => {
|
|
|
95
97
|
const el = document.createElement('button');
|
|
96
98
|
el.className = 'attrs-popper-button';
|
|
97
99
|
el.value = changeID;
|
|
98
|
-
el.innerHTML =
|
|
100
|
+
el.innerHTML = (0, server_1.renderToStaticMarkup)((0, react_1.createElement)(style_guide_1.EditAttrsTrackingIcon));
|
|
99
101
|
return el;
|
|
100
102
|
};
|
|
101
103
|
exports.getAttrsTrackingButton = getAttrsTrackingButton;
|
|
@@ -19,13 +19,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.buildPluginState = exports.uncitedFootnoteWidget = exports.footnotesKey = void 0;
|
|
22
|
+
const style_guide_1 = require("@manuscripts/style-guide");
|
|
22
23
|
const track_changes_plugin_1 = require("@manuscripts/track-changes-plugin");
|
|
23
24
|
const transform_1 = require("@manuscripts/transform");
|
|
24
25
|
const lodash_1 = require("lodash");
|
|
25
26
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
26
27
|
const prosemirror_utils_1 = require("prosemirror-utils");
|
|
27
28
|
const prosemirror_view_1 = require("prosemirror-view");
|
|
28
|
-
const
|
|
29
|
+
const react_1 = require("react");
|
|
30
|
+
const server_1 = require("react-dom/server");
|
|
29
31
|
const commands_1 = require("../../commands");
|
|
30
32
|
const DeleteFootnoteDialog_1 = require("../../components/views/DeleteFootnoteDialog");
|
|
31
33
|
const utils_1 = require("../../lib/utils");
|
|
@@ -54,14 +56,14 @@ const labelWidget = (label, id) => (view) => {
|
|
|
54
56
|
const uncitedFootnoteWidget = () => () => {
|
|
55
57
|
const element = document.createElement('span');
|
|
56
58
|
element.className = 'uncited-footnote';
|
|
57
|
-
element.innerHTML =
|
|
59
|
+
element.innerHTML = (0, server_1.renderToStaticMarkup)((0, react_1.createElement)(style_guide_1.AlertIcon));
|
|
58
60
|
return element;
|
|
59
61
|
};
|
|
60
62
|
exports.uncitedFootnoteWidget = uncitedFootnoteWidget;
|
|
61
63
|
const deleteFootnoteWidget = (node, props, id, tableElement, tableElementFooter) => (view, getPos) => {
|
|
62
64
|
const deleteBtn = document.createElement('span');
|
|
63
65
|
deleteBtn.className = 'delete-icon';
|
|
64
|
-
deleteBtn.innerHTML =
|
|
66
|
+
deleteBtn.innerHTML = (0, server_1.renderToStaticMarkup)((0, react_1.createElement)(style_guide_1.DeleteIcon));
|
|
65
67
|
const parentType = tableElement ? 'table ' : '';
|
|
66
68
|
const footnote = {
|
|
67
69
|
type: node.type === transform_1.schema.nodes.footnote
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildPluginState = exports.sectionCategoryKey = void 0;
|
|
4
|
+
const style_guide_1 = require("@manuscripts/style-guide");
|
|
4
5
|
const transform_1 = require("@manuscripts/transform");
|
|
5
6
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
6
7
|
const prosemirror_view_1 = require("prosemirror-view");
|
|
7
|
-
const
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const server_1 = require("react-dom/server");
|
|
8
10
|
const popper_1 = require("../../lib/popper");
|
|
9
11
|
const section_categories_1 = require("../../lib/section-categories");
|
|
10
12
|
const utils_1 = require("../../lib/utils");
|
|
@@ -43,7 +45,7 @@ function createButton(view, props, node, pos, category, canEdit = true) {
|
|
|
43
45
|
const arrow = document.createElement('div');
|
|
44
46
|
arrow.className = 'section-category popper-arrow';
|
|
45
47
|
const button = document.createElement('button');
|
|
46
|
-
button.innerHTML =
|
|
48
|
+
button.innerHTML = (0, server_1.renderToStaticMarkup)((0, react_1.createElement)(style_guide_1.SectionCategoryIcon));
|
|
47
49
|
button.className = `section-category-button ${category && 'assigned'}`;
|
|
48
50
|
if (canEdit) {
|
|
49
51
|
button.addEventListener('mousedown', () => {
|
package/dist/cjs/versions.js
CHANGED
|
@@ -19,11 +19,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.TableCellView = void 0;
|
|
22
|
+
const style_guide_1 = require("@manuscripts/style-guide");
|
|
22
23
|
const transform_1 = require("@manuscripts/transform");
|
|
23
24
|
const prosemirror_model_1 = require("prosemirror-model");
|
|
24
25
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
25
26
|
const prosemirror_tables_1 = require("prosemirror-tables");
|
|
26
|
-
const
|
|
27
|
+
const react_1 = require("react");
|
|
28
|
+
const server_1 = require("react-dom/server");
|
|
27
29
|
const TableCellContextMenu_1 = require("../components/views/TableCellContextMenu");
|
|
28
30
|
const block_view_1 = __importDefault(require("./block_view"));
|
|
29
31
|
const creators_1 = require("./creators");
|
|
@@ -55,7 +57,7 @@ class TableCellView extends block_view_1.default {
|
|
|
55
57
|
createContextMenu() {
|
|
56
58
|
const contextMenuButton = document.createElement('button');
|
|
57
59
|
contextMenuButton.className = 'table-context-menu-button';
|
|
58
|
-
contextMenuButton.innerHTML =
|
|
60
|
+
contextMenuButton.innerHTML = (0, server_1.renderToStaticMarkup)((0, react_1.createElement)(style_guide_1.DotsIcon));
|
|
59
61
|
contextMenuButton.addEventListener('click', () => {
|
|
60
62
|
var _a;
|
|
61
63
|
if (this.props.popper.isActive()) {
|
package/dist/es/assets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ©
|
|
2
|
+
* © 2024 Atypon Systems LLC
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,160 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export const editIcon = `
|
|
17
|
-
<svg
|
|
18
|
-
width="14"
|
|
19
|
-
height="14"
|
|
20
|
-
viewBox="0 0 14 14"
|
|
21
|
-
fill="none"
|
|
22
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
-
>
|
|
24
|
-
<path
|
|
25
|
-
d="M8.706 2.33624L11.553 5.19824L4.345 12.4422L1.498 9.58124L8.706 2.33624V2.33624ZM13.714 1.64624L12.444 0.37024C12.3273 0.253047 12.1886 0.160056 12.0359 0.0966039C11.8831 0.0331518 11.7194 0.000488281 11.554 0.000488281C11.3886 0.000488281 11.2249 0.0331518 11.0721 0.0966039C10.9194 0.160056 10.7807 0.253047 10.664 0.37024L9.447 1.59224L12.295 4.45424L13.715 3.02824C13.8976 2.84462 14.0001 2.59619 14.0001 2.33724C14.0001 2.07829 13.8976 1.82986 13.715 1.64624H13.714ZM0.00800253 13.6032C-0.00418388 13.6571 -0.00246802 13.7131 0.0129883 13.7661C0.0284447 13.819 0.0571327 13.8672 0.096349 13.906C0.135565 13.9448 0.184019 13.973 0.237143 13.9879C0.290268 14.0028 0.346315 14.004 0.400003 13.9912L3.573 13.2172L0.727003 10.3552L0.0070026 13.6032H0.00800253Z"
|
|
26
|
-
fill="#6E6E6E"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
29
|
-
`;
|
|
30
|
-
export const commentIcon = `
|
|
31
|
-
<svg
|
|
32
|
-
width="20"
|
|
33
|
-
height="15"
|
|
34
|
-
viewBox="0 0 20 15"
|
|
35
|
-
fill="none"
|
|
36
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
-
>
|
|
38
|
-
<path
|
|
39
|
-
fill-rule="evenodd"
|
|
40
|
-
clip-rule="evenodd"
|
|
41
|
-
d="M7.94841 4.18311C7.98238 3.9602 8 3.73191 8 3.49951C8 3.22073 7.97465 2.94787 7.92613 2.68311H13.5C14.8854 2.68311 16.25 3.6425 16.25 5.09977V9.02453L19.1086 12.9949C19.2731 13.2233 19.2958 13.5245 19.1675 13.775C19.0392 14.0255 18.7814 14.1831 18.5 14.1831H5.5C4.11463 14.1831 2.75 13.2237 2.75 11.7664V7.93729C2.9939 7.97821 3.24446 7.99951 3.5 7.99951C3.75553 7.99951 4.00609 7.97821 4.25 7.93729V11.7664C4.25 12.1508 4.67537 12.6831 5.5 12.6831H17.0358L14.8913 9.70467C14.7994 9.57703 14.75 9.42372 14.75 9.26644V5.09977C14.75 4.71538 14.3246 4.18311 13.5 4.18311H7.94841Z"
|
|
42
|
-
fill="#FFBD26"
|
|
43
|
-
/>
|
|
44
|
-
<path
|
|
45
|
-
d="M11.5 6.99951H8.5"
|
|
46
|
-
stroke="#FFBD26"
|
|
47
|
-
stroke-width="1.5"
|
|
48
|
-
stroke-miterlimit="10"
|
|
49
|
-
stroke-linecap="round"
|
|
50
|
-
stroke-linejoin="round"
|
|
51
|
-
/>
|
|
52
|
-
<path
|
|
53
|
-
d="M12 9.99951H7"
|
|
54
|
-
stroke="#FFBD26"
|
|
55
|
-
stroke-width="1.5"
|
|
56
|
-
stroke-miterlimit="10"
|
|
57
|
-
stroke-linecap="round"
|
|
58
|
-
stroke-linejoin="round"
|
|
59
|
-
/>
|
|
60
|
-
<path
|
|
61
|
-
d="M3.5 1L3.5 6"
|
|
62
|
-
stroke="#FFBD26"
|
|
63
|
-
stroke-width="1.5"
|
|
64
|
-
stroke-miterlimit="10"
|
|
65
|
-
stroke-linecap="round"
|
|
66
|
-
stroke-linejoin="round"
|
|
67
|
-
/>
|
|
68
|
-
<path
|
|
69
|
-
d="M6 3.5L1 3.5"
|
|
70
|
-
stroke="#FFBD26"
|
|
71
|
-
stroke-width="1.5"
|
|
72
|
-
stroke-miterlimit="10"
|
|
73
|
-
stroke-linecap="round"
|
|
74
|
-
stroke-linejoin="round"
|
|
75
|
-
/>
|
|
76
|
-
</svg>
|
|
77
|
-
`;
|
|
78
|
-
export const editAttrsTrackingIcon = `
|
|
79
|
-
<svg
|
|
80
|
-
width="16"
|
|
81
|
-
height="16"
|
|
82
|
-
viewBox="0 0 16 16"
|
|
83
|
-
fill="none"
|
|
84
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
85
|
-
>
|
|
86
|
-
<path
|
|
87
|
-
d="M12 2L14 4L9 9L6 10L7 7L12 2Z"
|
|
88
|
-
stroke="#353535"
|
|
89
|
-
stroke-width="1.5"
|
|
90
|
-
stroke-linecap="round"
|
|
91
|
-
stroke-linejoin="round"
|
|
92
|
-
/>
|
|
93
|
-
<path
|
|
94
|
-
d="M13 10V11.5C13 12.328 12.328 13 11.5 13H4.5C3.672 13 3 12.328 3 11.5V4.5C3 3.672 3.672 3 4.5 3H6"
|
|
95
|
-
stroke="#353535"
|
|
96
|
-
stroke-width="1.5"
|
|
97
|
-
stroke-linecap="round"
|
|
98
|
-
stroke-linejoin="round"
|
|
99
|
-
/>
|
|
100
|
-
</svg>
|
|
101
|
-
`;
|
|
102
|
-
export const alertIcon = `
|
|
103
|
-
<svg
|
|
104
|
-
width="12"
|
|
105
|
-
height="12"
|
|
106
|
-
viewBox="0 0 12 12"
|
|
107
|
-
fill="none"
|
|
108
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
-
>
|
|
110
|
-
<path
|
|
111
|
-
fill-rule="evenodd"
|
|
112
|
-
clip-rule="evenodd"
|
|
113
|
-
d="M6 12C2.68629 12 1.18852e-06 9.31371 1.47821e-06 6C1.7679e-06 2.68629 2.68629 1.39444e-07 6 4.29138e-07C9.31371 7.18831e-07 12 2.68629 12 6C12 9.31371 9.31371 12 6 12ZM6.74998 2.99996L6.75 6.37462C6.75 6.78819 6.41522 7.12243 6.00166 7.12334C5.58681 7.12426 5.25001 6.78821 5.25001 6.37335L5.25 3.00082C5.25 2.58629 5.58629 2.25037 6.00082 2.25083C6.4147 2.25128 6.74998 2.58607 6.74998 2.99996ZM6.75 8.99263C6.75 9.46884 6.47288 9.75 5.99853 9.75C5.52419 9.75 5.25 9.47179 5.25 8.99558C5.25 8.51937 5.52421 8.25 5.99855 8.25C6.47289 8.25 6.75 8.51642 6.75 8.99263Z"
|
|
114
|
-
fill="#FE8F1F"
|
|
115
|
-
/>
|
|
116
|
-
</svg>
|
|
117
|
-
`;
|
|
118
|
-
export const deleteIcon = `
|
|
119
|
-
<svg
|
|
120
|
-
width="13"
|
|
121
|
-
height="17"
|
|
122
|
-
viewBox="0 0 13 15"
|
|
123
|
-
fill="none"
|
|
124
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
125
|
-
>
|
|
126
|
-
<path
|
|
127
|
-
fill-rule="evenodd"
|
|
128
|
-
clip-rule="evenodd"
|
|
129
|
-
d="M2.00001 3C2 3.00135 2 3.00269 2 3.00404V13.004C2 13.5563 2.44772 14.004 3 14.004H10C10.5523 14.004 11 13.5563 11 13.004V3.00404C11 3.00269 11 3.00135 11 3C11.5978 3.34581 12 3.99215 12 4.73244V13.004C12 14.1086 11.1046 15.004 10 15.004H3C1.89543 15.004 1 14.1086 1 13.004V4.73244C1 3.99215 1.4022 3.34581 2.00001 3Z"
|
|
130
|
-
fill="#C9C9C9"
|
|
131
|
-
/>
|
|
132
|
-
<path
|
|
133
|
-
fill-rule="evenodd"
|
|
134
|
-
clip-rule="evenodd"
|
|
135
|
-
d="M4.5 0C3.67157 0 3 0.671573 3 1.5V3.5C3 4.32843 3.67157 5 4.5 5H8.5C9.32843 5 10 4.32843 10 3.5V1.5C10 0.671573 9.32843 0 8.5 0H4.5ZM9 1.5C9 1.22386 8.77614 1 8.5 1H4.5C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2H8.5C8.77614 2 9 1.77614 9 1.5Z"
|
|
136
|
-
fill="#C9C9C9"
|
|
137
|
-
/>
|
|
138
|
-
<rect
|
|
139
|
-
y="2"
|
|
140
|
-
width="13"
|
|
141
|
-
height="3"
|
|
142
|
-
rx="1.5"
|
|
143
|
-
fill="#C9C9C9"
|
|
144
|
-
/>
|
|
145
|
-
<path
|
|
146
|
-
fill-rule="evenodd"
|
|
147
|
-
clip-rule="evenodd"
|
|
148
|
-
d="M8 7.5C8 7.22386 8.22386 7 8.5 7C8.77614 7 9 7.22386 9 7.5V11.5C9 11.7761 8.77614 12 8.5 12C8.22386 12 8 11.7761 8 11.5V7.5Z"
|
|
149
|
-
fill="#C9C9C9"
|
|
150
|
-
/>
|
|
151
|
-
<path
|
|
152
|
-
fill-rule="evenodd"
|
|
153
|
-
clip-rule="evenodd"
|
|
154
|
-
d="M4 7.5C4 7.22386 4.22386 7 4.5 7C4.77614 7 5 7.22386 5 7.5V11.5C5 11.7761 4.77614 12 4.5 12C4.22386 12 4 11.7761 4 11.5V7.5Z"
|
|
155
|
-
fill="#C9C9C9"
|
|
156
|
-
/>
|
|
157
|
-
<path
|
|
158
|
-
fill-rule="evenodd"
|
|
159
|
-
clip-rule="evenodd"
|
|
160
|
-
d="M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4L1.5 4C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3L11.5 3Z"
|
|
161
|
-
fill="white"
|
|
162
|
-
/>
|
|
163
|
-
</svg>`;
|
|
164
|
-
export const threeDotIcon = ` <svg width="4" height="16" viewBox="0 0 4 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
165
|
-
<circle cx="2" cy="2" r="2" fill="#6E6E6E"></circle>
|
|
166
|
-
<circle cx="2" cy="8" r="2" fill="#6E6E6E"></circle>
|
|
167
|
-
<circle cx="2" cy="14" r="2" fill="#6E6E6E"></circle>
|
|
168
|
-
</svg>
|
|
169
|
-
`;
|
|
170
16
|
export const sectionCategoryIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="19" viewBox="0 0 16 19" fill="none">
|
|
171
17
|
<path d="M0.5 4C0.5 2.067 2.067 0.5 4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V16.0505C15.5 17.1991 14.2619 17.9215 13.2619 17.3563L8.73809 14.7994C8.28008 14.5405 7.71992 14.5405 7.26191 14.7994L2.73809 17.3563C1.73815 17.9215 0.5 17.1991 0.5 16.0505V4Z" fill="white" stroke="#6E6E6E"/>
|
|
172
18
|
</svg>`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generateID, ObjectTypes } from '@manuscripts/json-schema';
|
|
2
|
-
import { ButtonGroup, Category, DeleteSolidIcon, Dialog, IconButton, IconTextButton, PrimaryButton, SecondaryButton, } from '@manuscripts/style-guide';
|
|
2
|
+
import { ButtonGroup, Category, DeleteSolidIcon, Dialog, EditIcon, IconButton, IconTextButton, PrimaryButton, SecondaryButton, } from '@manuscripts/style-guide';
|
|
3
3
|
import React, { useMemo, useReducer, useState } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { arrayReducer, attrsReducer } from '../../lib/array-reducer';
|
|
@@ -45,8 +45,6 @@ const Actions = styled.div `
|
|
|
45
45
|
justify-content: space-between;
|
|
46
46
|
align-items: center;
|
|
47
47
|
`;
|
|
48
|
-
const EditIcon = () => (React.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", color: "#6E6E6E", xmlns: "http://www.w3.org/2000/svg" },
|
|
49
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7145 1.64621L12.4444 0.369929C11.9536 -0.12331 11.1566 -0.12331 10.6641 0.369929L9.44748 1.59248L12.2954 4.45434L13.7145 3.02831C14.0952 2.64572 14.0952 2.02877 13.7145 1.64621ZM8.70555 2.33642L11.5535 5.19826L4.3446 12.4424L1.4983 9.58059L8.70555 2.33642ZM0.399974 13.9906C0.166693 14.0476 -0.0439034 13.8375 0.00792508 13.6031L0.727197 10.3555L3.5735 13.2173L0.399974 13.9906Z", fill: "#6E6E6E" })));
|
|
50
48
|
const itemsReducer = attrsReducer();
|
|
51
49
|
const ridsReducer = arrayReducer();
|
|
52
50
|
export const CitationEditor = ({ query, rids: $rids, items: $items, citationCounts, sources, onSave, onDelete, onCite, onUncite, onCancel, canEdit, }) => {
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { EditAttrsTrackingIcon } from '@manuscripts/style-guide';
|
|
17
|
+
import { createElement } from 'react';
|
|
18
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
17
19
|
export function isRejectedInsert(node) {
|
|
18
20
|
if (node.attrs.dataTracked) {
|
|
19
21
|
const changes = node.attrs.dataTracked;
|
|
@@ -84,7 +86,7 @@ export const getAttrsTrackingButton = (changeID) => {
|
|
|
84
86
|
const el = document.createElement('button');
|
|
85
87
|
el.className = 'attrs-popper-button';
|
|
86
88
|
el.value = changeID;
|
|
87
|
-
el.innerHTML =
|
|
89
|
+
el.innerHTML = renderToStaticMarkup(createElement(EditAttrsTrackingIcon));
|
|
88
90
|
return el;
|
|
89
91
|
};
|
|
90
92
|
export function isHidden(node) {
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { AlertIcon, DeleteIcon } from '@manuscripts/style-guide';
|
|
16
17
|
import { skipTracking } from '@manuscripts/track-changes-plugin';
|
|
17
18
|
import { isFootnoteNode, isFootnotesElementNode, isFootnotesSectionNode, isInlineFootnoteNode, schema, } from '@manuscripts/transform';
|
|
18
19
|
import { isEqual } from 'lodash';
|
|
19
20
|
import { NodeSelection, Plugin, PluginKey, TextSelection, } from 'prosemirror-state';
|
|
20
21
|
import { findParentNodeClosestToPos, findParentNodeOfType, } from 'prosemirror-utils';
|
|
21
22
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
22
|
-
import {
|
|
23
|
+
import { createElement } from 'react';
|
|
24
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
23
25
|
import { isTextSelection } from '../../commands';
|
|
24
26
|
import { DeleteFootnoteDialog, } from '../../components/views/DeleteFootnoteDialog';
|
|
25
27
|
import { getChildOfType } from '../../lib/utils';
|
|
@@ -48,13 +50,13 @@ const labelWidget = (label, id) => (view) => {
|
|
|
48
50
|
export const uncitedFootnoteWidget = () => () => {
|
|
49
51
|
const element = document.createElement('span');
|
|
50
52
|
element.className = 'uncited-footnote';
|
|
51
|
-
element.innerHTML =
|
|
53
|
+
element.innerHTML = renderToStaticMarkup(createElement(AlertIcon));
|
|
52
54
|
return element;
|
|
53
55
|
};
|
|
54
56
|
const deleteFootnoteWidget = (node, props, id, tableElement, tableElementFooter) => (view, getPos) => {
|
|
55
57
|
const deleteBtn = document.createElement('span');
|
|
56
58
|
deleteBtn.className = 'delete-icon';
|
|
57
|
-
deleteBtn.innerHTML =
|
|
59
|
+
deleteBtn.innerHTML = renderToStaticMarkup(createElement(DeleteIcon));
|
|
58
60
|
const parentType = tableElement ? 'table ' : '';
|
|
59
61
|
const footnote = {
|
|
60
62
|
type: node.type === schema.nodes.footnote
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { SectionCategoryIcon } from '@manuscripts/style-guide';
|
|
1
2
|
import { isSectionNode, schema } from '@manuscripts/transform';
|
|
2
3
|
import { PluginKey } from 'prosemirror-state';
|
|
3
4
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
4
|
-
import {
|
|
5
|
+
import { createElement } from 'react';
|
|
6
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
5
7
|
import { PopperManager } from '../../lib/popper';
|
|
6
8
|
import { getCategoryName, isBackMatterSection, isEditableSectionCategoryID, isUnique, } from '../../lib/section-categories';
|
|
7
9
|
import { isChildOfNodeTypes } from '../../lib/utils';
|
|
@@ -40,7 +42,7 @@ function createButton(view, props, node, pos, category, canEdit = true) {
|
|
|
40
42
|
const arrow = document.createElement('div');
|
|
41
43
|
arrow.className = 'section-category popper-arrow';
|
|
42
44
|
const button = document.createElement('button');
|
|
43
|
-
button.innerHTML =
|
|
45
|
+
button.innerHTML = renderToStaticMarkup(createElement(SectionCategoryIcon));
|
|
44
46
|
button.className = `section-category-button ${category && 'assigned'}`;
|
|
45
47
|
if (canEdit) {
|
|
46
48
|
button.addEventListener('mousedown', () => {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.
|
|
1
|
+
export const VERSION = '2.0.39';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { DotsIcon } from '@manuscripts/style-guide';
|
|
16
17
|
import { schema } from '@manuscripts/transform';
|
|
17
18
|
import { DOMSerializer } from 'prosemirror-model';
|
|
18
19
|
import { TextSelection } from 'prosemirror-state';
|
|
19
20
|
import { CellSelection } from 'prosemirror-tables';
|
|
20
|
-
import {
|
|
21
|
+
import { createElement } from 'react';
|
|
22
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
21
23
|
import { ContextMenu } from '../components/views/TableCellContextMenu';
|
|
22
24
|
import BlockView from './block_view';
|
|
23
25
|
import { createNodeView } from './creators';
|
|
@@ -49,7 +51,7 @@ export class TableCellView extends BlockView {
|
|
|
49
51
|
createContextMenu() {
|
|
50
52
|
const contextMenuButton = document.createElement('button');
|
|
51
53
|
contextMenuButton.className = 'table-context-menu-button';
|
|
52
|
-
contextMenuButton.innerHTML =
|
|
54
|
+
contextMenuButton.innerHTML = renderToStaticMarkup(createElement(DotsIcon));
|
|
53
55
|
contextMenuButton.addEventListener('click', () => {
|
|
54
56
|
var _a;
|
|
55
57
|
if (this.props.popper.isActive()) {
|
package/dist/types/assets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ©
|
|
2
|
+
* © 2024 Atypon Systems LLC
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,10 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare const editIcon = "\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8.706 2.33624L11.553 5.19824L4.345 12.4422L1.498 9.58124L8.706 2.33624V2.33624ZM13.714 1.64624L12.444 0.37024C12.3273 0.253047 12.1886 0.160056 12.0359 0.0966039C11.8831 0.0331518 11.7194 0.000488281 11.554 0.000488281C11.3886 0.000488281 11.2249 0.0331518 11.0721 0.0966039C10.9194 0.160056 10.7807 0.253047 10.664 0.37024L9.447 1.59224L12.295 4.45424L13.715 3.02824C13.8976 2.84462 14.0001 2.59619 14.0001 2.33724C14.0001 2.07829 13.8976 1.82986 13.715 1.64624H13.714ZM0.00800253 13.6032C-0.00418388 13.6571 -0.00246802 13.7131 0.0129883 13.7661C0.0284447 13.819 0.0571327 13.8672 0.096349 13.906C0.135565 13.9448 0.184019 13.973 0.237143 13.9879C0.290268 14.0028 0.346315 14.004 0.400003 13.9912L3.573 13.2172L0.727003 10.3552L0.0070026 13.6032H0.00800253Z\"\n fill=\"#6E6E6E\"\n />\n </svg>\n";
|
|
17
|
-
export declare const commentIcon = "\n<svg\n width=\"20\"\n height=\"15\"\n viewBox=\"0 0 20 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.94841 4.18311C7.98238 3.9602 8 3.73191 8 3.49951C8 3.22073 7.97465 2.94787 7.92613 2.68311H13.5C14.8854 2.68311 16.25 3.6425 16.25 5.09977V9.02453L19.1086 12.9949C19.2731 13.2233 19.2958 13.5245 19.1675 13.775C19.0392 14.0255 18.7814 14.1831 18.5 14.1831H5.5C4.11463 14.1831 2.75 13.2237 2.75 11.7664V7.93729C2.9939 7.97821 3.24446 7.99951 3.5 7.99951C3.75553 7.99951 4.00609 7.97821 4.25 7.93729V11.7664C4.25 12.1508 4.67537 12.6831 5.5 12.6831H17.0358L14.8913 9.70467C14.7994 9.57703 14.75 9.42372 14.75 9.26644V5.09977C14.75 4.71538 14.3246 4.18311 13.5 4.18311H7.94841Z\"\n fill=\"#FFBD26\"\n />\n <path\n d=\"M11.5 6.99951H8.5\"\n stroke=\"#FFBD26\"\n stroke-width=\"1.5\"\n stroke-miterlimit=\"10\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M12 9.99951H7\"\n stroke=\"#FFBD26\"\n stroke-width=\"1.5\"\n stroke-miterlimit=\"10\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M3.5 1L3.5 6\"\n stroke=\"#FFBD26\"\n stroke-width=\"1.5\"\n stroke-miterlimit=\"10\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M6 3.5L1 3.5\"\n stroke=\"#FFBD26\"\n stroke-width=\"1.5\"\n stroke-miterlimit=\"10\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n";
|
|
18
|
-
export declare const editAttrsTrackingIcon = "\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12 2L14 4L9 9L6 10L7 7L12 2Z\"\n stroke=\"#353535\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M13 10V11.5C13 12.328 12.328 13 11.5 13H4.5C3.672 13 3 12.328 3 11.5V4.5C3 3.672 3.672 3 4.5 3H6\"\n stroke=\"#353535\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n";
|
|
19
|
-
export declare const alertIcon = "\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M6 12C2.68629 12 1.18852e-06 9.31371 1.47821e-06 6C1.7679e-06 2.68629 2.68629 1.39444e-07 6 4.29138e-07C9.31371 7.18831e-07 12 2.68629 12 6C12 9.31371 9.31371 12 6 12ZM6.74998 2.99996L6.75 6.37462C6.75 6.78819 6.41522 7.12243 6.00166 7.12334C5.58681 7.12426 5.25001 6.78821 5.25001 6.37335L5.25 3.00082C5.25 2.58629 5.58629 2.25037 6.00082 2.25083C6.4147 2.25128 6.74998 2.58607 6.74998 2.99996ZM6.75 8.99263C6.75 9.46884 6.47288 9.75 5.99853 9.75C5.52419 9.75 5.25 9.47179 5.25 8.99558C5.25 8.51937 5.52421 8.25 5.99855 8.25C6.47289 8.25 6.75 8.51642 6.75 8.99263Z\"\n fill=\"#FE8F1F\"\n />\n </svg>\n";
|
|
20
|
-
export declare const deleteIcon = "\n <svg\n width=\"13\"\n height=\"17\"\n viewBox=\"0 0 13 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M2.00001 3C2 3.00135 2 3.00269 2 3.00404V13.004C2 13.5563 2.44772 14.004 3 14.004H10C10.5523 14.004 11 13.5563 11 13.004V3.00404C11 3.00269 11 3.00135 11 3C11.5978 3.34581 12 3.99215 12 4.73244V13.004C12 14.1086 11.1046 15.004 10 15.004H3C1.89543 15.004 1 14.1086 1 13.004V4.73244C1 3.99215 1.4022 3.34581 2.00001 3Z\"\n fill=\"#C9C9C9\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.5 0C3.67157 0 3 0.671573 3 1.5V3.5C3 4.32843 3.67157 5 4.5 5H8.5C9.32843 5 10 4.32843 10 3.5V1.5C10 0.671573 9.32843 0 8.5 0H4.5ZM9 1.5C9 1.22386 8.77614 1 8.5 1H4.5C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2H8.5C8.77614 2 9 1.77614 9 1.5Z\"\n fill=\"#C9C9C9\"\n />\n <rect\n y=\"2\"\n width=\"13\"\n height=\"3\"\n rx=\"1.5\"\n fill=\"#C9C9C9\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8 7.5C8 7.22386 8.22386 7 8.5 7C8.77614 7 9 7.22386 9 7.5V11.5C9 11.7761 8.77614 12 8.5 12C8.22386 12 8 11.7761 8 11.5V7.5Z\"\n fill=\"#C9C9C9\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4 7.5C4 7.22386 4.22386 7 4.5 7C4.77614 7 5 7.22386 5 7.5V11.5C5 11.7761 4.77614 12 4.5 12C4.22386 12 4 11.7761 4 11.5V7.5Z\"\n fill=\"#C9C9C9\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4L1.5 4C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3L11.5 3Z\"\n fill=\"white\"\n />\n</svg>";
|
|
21
|
-
export declare const threeDotIcon = " <svg width=\"4\" height=\"16\" viewBox=\"0 0 4 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"2\" cy=\"2\" r=\"2\" fill=\"#6E6E6E\"></circle>\n<circle cx=\"2\" cy=\"8\" r=\"2\" fill=\"#6E6E6E\"></circle>\n<circle cx=\"2\" cy=\"14\" r=\"2\" fill=\"#6E6E6E\"></circle>\n</svg>\n";
|
|
22
16
|
export declare const sectionCategoryIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"19\" viewBox=\"0 0 16 19\" fill=\"none\">\n<path d=\"M0.5 4C0.5 2.067 2.067 0.5 4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V16.0505C15.5 17.1991 14.2619 17.9215 13.2619 17.3563L8.73809 14.7994C8.28008 14.5405 7.71992 14.5405 7.26191 14.7994L2.73809 17.3563C1.73815 17.9215 0.5 17.1991 0.5 16.0505V4Z\" fill=\"white\" stroke=\"#6E6E6E\"/>\n</svg>";
|
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.39";
|
|
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.39",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@iarna/word-count": "^1.1.2",
|
|
33
33
|
"@manuscripts/json-schema": "2.2.11",
|
|
34
34
|
"@manuscripts/library": "1.3.11",
|
|
35
|
-
"@manuscripts/style-guide": "2.0.
|
|
35
|
+
"@manuscripts/style-guide": "2.0.15",
|
|
36
36
|
"@manuscripts/track-changes-plugin": "1.7.17",
|
|
37
37
|
"@manuscripts/transform": "2.3.30",
|
|
38
38
|
"@popperjs/core": "^2.11.8",
|
package/styles/Editor.css
CHANGED
|
@@ -949,10 +949,22 @@
|
|
|
949
949
|
.delete-icon {
|
|
950
950
|
position: absolute;
|
|
951
951
|
right: -20px;
|
|
952
|
-
top:
|
|
952
|
+
top: 13px;
|
|
953
953
|
cursor: pointer;
|
|
954
954
|
z-index: 1;
|
|
955
955
|
}
|
|
956
|
+
.delete-icon svg path {
|
|
957
|
+
fill: #c9c9c9;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.delete-icon svg rect {
|
|
961
|
+
fill: #c9c9c9;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.delete-icon svg path:last-child {
|
|
965
|
+
fill: #fff;
|
|
966
|
+
}
|
|
967
|
+
|
|
956
968
|
.delete-icon:hover svg path {
|
|
957
969
|
fill: #353535;
|
|
958
970
|
}
|