@manuscripts/body-editor 1.5.1-LEAN-3000-1 → 1.5.2
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.
|
@@ -25,9 +25,10 @@ exports.default = () => {
|
|
|
25
25
|
else if ((0, transform_1.isFootnoteNode)(node)) {
|
|
26
26
|
endOfFootnote = Math.max(endOfFootnote, pos + node.nodeSize);
|
|
27
27
|
}
|
|
28
|
+
const insideList = pos <= endOfList;
|
|
28
29
|
const insideFootnote = pos <= endOfFootnote;
|
|
29
30
|
if ('id' in node.attrs &&
|
|
30
|
-
(!insideFootnote || node.isInline) &&
|
|
31
|
+
((!insideList && !insideFootnote) || node.isInline) &&
|
|
31
32
|
(!id || id.length === 0 || ids.has(id))) {
|
|
32
33
|
const newId = (0, transform_1.generateNodeID)(node.type);
|
|
33
34
|
const updatedAttrs = Object.assign(Object.assign({}, node.attrs), { id: newId });
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -78,9 +78,7 @@ exports.toolbar = {
|
|
|
78
78
|
title: 'Wrap in ordered list',
|
|
79
79
|
active: (0, commands_1.blockActive)(transform_1.schema.nodes.ordered_list),
|
|
80
80
|
enable: (0, prosemirror_schema_list_1.wrapInList)(transform_1.schema.nodes.ordered_list),
|
|
81
|
-
run: (0, list_1.skipTrackingChanges)((0, prosemirror_schema_list_1.wrapInList)(transform_1.schema.nodes.ordered_list,
|
|
82
|
-
listStyleType: 'order',
|
|
83
|
-
})),
|
|
81
|
+
run: (0, list_1.skipTrackingChanges)((0, prosemirror_schema_list_1.wrapInList)(transform_1.schema.nodes.ordered_list)),
|
|
84
82
|
Component: OrderListSelector_1.OrderListSelector,
|
|
85
83
|
},
|
|
86
84
|
},
|
|
@@ -23,9 +23,10 @@ export default () => {
|
|
|
23
23
|
else if (isFootnoteNode(node)) {
|
|
24
24
|
endOfFootnote = Math.max(endOfFootnote, pos + node.nodeSize);
|
|
25
25
|
}
|
|
26
|
+
const insideList = pos <= endOfList;
|
|
26
27
|
const insideFootnote = pos <= endOfFootnote;
|
|
27
28
|
if ('id' in node.attrs &&
|
|
28
|
-
(!insideFootnote || node.isInline) &&
|
|
29
|
+
((!insideList && !insideFootnote) || node.isInline) &&
|
|
29
30
|
(!id || id.length === 0 || ids.has(id))) {
|
|
30
31
|
const newId = generateNodeID(node.type);
|
|
31
32
|
const updatedAttrs = Object.assign(Object.assign({}, node.attrs), { id: newId });
|
package/dist/es/toolbar.js
CHANGED
|
@@ -72,9 +72,7 @@ export const toolbar = {
|
|
|
72
72
|
title: 'Wrap in ordered list',
|
|
73
73
|
active: blockActive(schema.nodes.ordered_list),
|
|
74
74
|
enable: wrapInList(schema.nodes.ordered_list),
|
|
75
|
-
run: skipTrackingChanges(wrapInList(schema.nodes.ordered_list,
|
|
76
|
-
listStyleType: 'order',
|
|
77
|
-
})),
|
|
75
|
+
run: skipTrackingChanges(wrapInList(schema.nodes.ordered_list)),
|
|
78
76
|
Component: OrderListSelector,
|
|
79
77
|
},
|
|
80
78
|
},
|
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.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -26,18 +26,21 @@ Next levels are shifted 'up' by 1
|
|
|
26
26
|
counter-reset: level_2;
|
|
27
27
|
}
|
|
28
28
|
.ProseMirror > section > section > .block-section_title > h1 {
|
|
29
|
-
font-size:
|
|
29
|
+
font-size: 15.75pt !important;
|
|
30
30
|
font-style: normal !important;
|
|
31
31
|
font-weight: bold !important;
|
|
32
|
-
color: #
|
|
32
|
+
color: #353535 !important;
|
|
33
33
|
text-align: left;
|
|
34
34
|
margin-top: 8pt !important;
|
|
35
35
|
margin-bottom: 5pt !important;
|
|
36
|
-
line-height:
|
|
36
|
+
line-height: 24pt;
|
|
37
37
|
text-indent: 0pt;
|
|
38
38
|
display: inline;
|
|
39
39
|
}
|
|
40
|
-
.ProseMirror > section
|
|
40
|
+
.ProseMirror > section[data-category="MPSectionCategory:body"] {
|
|
41
|
+
counter-reset: level_1;
|
|
42
|
+
}
|
|
43
|
+
.ProseMirror > section[data-category="MPSectionCategory:body"] > section:not(.toc) > .block-section_title > h1::before {
|
|
41
44
|
content: counter(level_1, decimal) '. ';
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -54,14 +57,14 @@ Next levels are shifted 'up' by 1
|
|
|
54
57
|
counter-reset: level_3;
|
|
55
58
|
}
|
|
56
59
|
.ProseMirror > section > section > section > .block-section_title > h1 {
|
|
57
|
-
font-size:
|
|
60
|
+
font-size: 13.5pt !important;
|
|
58
61
|
font-style: normal !important;
|
|
59
|
-
font-weight:
|
|
60
|
-
color: #
|
|
62
|
+
font-weight: 700 !important;
|
|
63
|
+
color: #353535 !important;
|
|
61
64
|
text-align: left;
|
|
62
65
|
margin-top: 8pt !important;
|
|
63
66
|
margin-bottom: 5pt !important;
|
|
64
|
-
line-height:
|
|
67
|
+
line-height: 24pt;
|
|
65
68
|
text-indent: 0pt;
|
|
66
69
|
display: inline;
|
|
67
70
|
}
|
|
@@ -292,12 +295,24 @@ Next levels are shifted 'up' by 1
|
|
|
292
295
|
counter(level_5, decimal) '.' counter(level_6, decimal) '. '
|
|
293
296
|
attr(data-placeholder);
|
|
294
297
|
}
|
|
298
|
+
[data-category="MPSectionCategory:backmatter"]::before {
|
|
299
|
+
content: '';
|
|
300
|
+
border-bottom: 1px dashed #C9C9C9;
|
|
301
|
+
display: block;
|
|
302
|
+
margin: 11pt 49pt;
|
|
303
|
+
|
|
304
|
+
}
|
|
305
|
+
.ProseMirror section[data-category="MPSectionCategory:backmatter"] .block-section_title > h1 {
|
|
306
|
+
font-size: 13.5pt !important;
|
|
307
|
+
color: #6E6E6E !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
295
310
|
|
|
296
311
|
.ProseMirror p.block {
|
|
297
312
|
font-size: 12pt !important;
|
|
298
313
|
font-style: normal !important;
|
|
299
314
|
font-weight: normal !important;
|
|
300
|
-
color: #
|
|
315
|
+
color: #353535 !important;
|
|
301
316
|
text-align: left !important;
|
|
302
317
|
margin-top: 10pt !important;
|
|
303
318
|
margin-bottom: 10pt !important;
|