@manuscripts/body-editor 1.6.3-LEAN-3156 → 1.6.4
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.
|
@@ -54,6 +54,7 @@ const buildPluginState = (doc) => {
|
|
|
54
54
|
const decorations = prosemirror_view_1.DecorationSet.create(doc, highlights.map((h) => prosemirror_view_1.Decoration.inline(h.start, h.end, {
|
|
55
55
|
nodeName: 'span',
|
|
56
56
|
class: 'highlight',
|
|
57
|
+
style: `background: rgba(250, 224, 150, 0.6)`,
|
|
57
58
|
})));
|
|
58
59
|
return { highlights, decorations };
|
|
59
60
|
};
|
|
@@ -48,6 +48,7 @@ const buildPluginState = (doc) => {
|
|
|
48
48
|
const decorations = DecorationSet.create(doc, highlights.map((h) => Decoration.inline(h.start, h.end, {
|
|
49
49
|
nodeName: 'span',
|
|
50
50
|
class: 'highlight',
|
|
51
|
+
style: `background: rgba(250, 224, 150, 0.6)`,
|
|
51
52
|
})));
|
|
52
53
|
return { highlights, decorations };
|
|
53
54
|
};
|
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.6.
|
|
4
|
+
"version": "1.6.4",
|
|
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
|
"@manuscripts/json-schema": "2.2.1",
|
|
33
33
|
"@manuscripts/library": "1.3.0",
|
|
34
34
|
"@manuscripts/style-guide": "1.5.0",
|
|
35
|
-
"@manuscripts/track-changes-plugin": "^1.7.
|
|
35
|
+
"@manuscripts/track-changes-plugin": "^1.7.5",
|
|
36
36
|
"@manuscripts/transform": "2.0.0",
|
|
37
37
|
"astrocite-eutils": "^0.16.4",
|
|
38
38
|
"axios": "^1.2.2",
|
|
@@ -643,7 +643,11 @@ Next levels are shifted 'up' by 1
|
|
|
643
643
|
align-items: center;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
|
|
646
|
+
.ProseMirror .inserted.accepted,
|
|
647
|
+
.ProseMirror .set_attrs.accepted {
|
|
648
|
+
background: #bffca7;
|
|
649
|
+
text-decoration: none;
|
|
650
|
+
}
|
|
647
651
|
.attrs-popper-button-active,
|
|
648
652
|
.attrs-track-mark:hover .attrs-popper-button {
|
|
649
653
|
display: inline-flex;
|
|
@@ -678,58 +682,28 @@ Next levels are shifted 'up' by 1
|
|
|
678
682
|
right: 0;
|
|
679
683
|
}
|
|
680
684
|
|
|
681
|
-
.ProseMirror {
|
|
682
|
-
--pending-bg-color: #e6f7fc;
|
|
683
|
-
--accepted-bg-color: #d1edaf ;
|
|
684
|
-
--deleted-color: #f35143;
|
|
685
|
-
--highlight-bg-color: #ffeebf;
|
|
686
|
-
--selection-bg-color: #bce7f6;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.ProseMirror ::selection {
|
|
690
|
-
background: var(--selection-bg-color);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
685
|
.ProseMirror .inserted.pending {
|
|
694
|
-
background:
|
|
686
|
+
background: #ddf3fa;
|
|
695
687
|
text-decoration: none;
|
|
696
688
|
}
|
|
697
|
-
.ProseMirror .inserted.
|
|
698
|
-
|
|
689
|
+
.ProseMirror .inserted.pending,
|
|
690
|
+
.ProseMirror .set_attrs.pending {
|
|
699
691
|
text-decoration: none;
|
|
700
692
|
}
|
|
701
693
|
.ProseMirror .inserted.rejected {
|
|
702
694
|
display: none;
|
|
703
695
|
}
|
|
704
|
-
|
|
705
|
-
.ProseMirror .set_attrs.pending {
|
|
706
|
-
background: var(--pending-bg-color);
|
|
707
|
-
text-decoration: none;
|
|
708
|
-
}
|
|
709
|
-
.ProseMirror .set_attrs.accepted {
|
|
710
|
-
background: var(--accepted-bg-color);
|
|
711
|
-
text-decoration: none;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.ProseMirror .deleted.pending {
|
|
715
|
-
background: var(--pending-bg-color);
|
|
716
|
-
color: var(--deleted-color);
|
|
717
|
-
text-decoration: line-through;
|
|
718
|
-
}
|
|
719
696
|
.ProseMirror .deleted.accepted {
|
|
720
|
-
background:
|
|
721
|
-
color: var(--deleted-color);
|
|
722
|
-
text-decoration: line-through;
|
|
697
|
+
background: #bffca7;
|
|
723
698
|
}
|
|
724
699
|
.ProseMirror .deleted.rejected {
|
|
725
700
|
text-decoration: none;
|
|
726
701
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
.ProseMirror
|
|
730
|
-
background
|
|
702
|
+
.ProseMirror .inserted.pending,
|
|
703
|
+
.ProseMirror .set_attrs.pending,
|
|
704
|
+
.ProseMirror .deleted.pending {
|
|
705
|
+
background: #ddf3fa;
|
|
731
706
|
}
|
|
732
|
-
|
|
733
707
|
.ProseMirror figure[data-track-status='rejected'][data-track-op='insert'],
|
|
734
708
|
.ProseMirror table[data-track-status='rejected'][data-track-op='insert'],
|
|
735
709
|
.ProseMirror
|