@manuscripts/body-editor 1.6.6 → 1.6.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.
|
@@ -54,7 +54,6 @@ 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)`,
|
|
58
57
|
})));
|
|
59
58
|
return { highlights, decorations };
|
|
60
59
|
};
|
|
@@ -48,7 +48,6 @@ 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)`,
|
|
52
51
|
})));
|
|
53
52
|
return { highlights, decorations };
|
|
54
53
|
};
|
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.7",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -643,11 +643,7 @@ Next levels are shifted 'up' by 1
|
|
|
643
643
|
align-items: center;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
|
|
647
|
-
.ProseMirror .set_attrs.accepted {
|
|
648
|
-
background: #bffca7;
|
|
649
|
-
text-decoration: none;
|
|
650
|
-
}
|
|
646
|
+
|
|
651
647
|
.attrs-popper-button-active,
|
|
652
648
|
.attrs-track-mark:hover .attrs-popper-button {
|
|
653
649
|
display: inline-flex;
|
|
@@ -682,28 +678,58 @@ Next levels are shifted 'up' by 1
|
|
|
682
678
|
right: 0;
|
|
683
679
|
}
|
|
684
680
|
|
|
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
|
+
|
|
685
693
|
.ProseMirror .inserted.pending {
|
|
686
|
-
background:
|
|
694
|
+
background: var(--pending-bg-color);
|
|
687
695
|
text-decoration: none;
|
|
688
696
|
}
|
|
689
|
-
.ProseMirror .inserted.
|
|
690
|
-
|
|
697
|
+
.ProseMirror .inserted.accepted {
|
|
698
|
+
background: var(--accepted-bg-color);
|
|
691
699
|
text-decoration: none;
|
|
692
700
|
}
|
|
693
701
|
.ProseMirror .inserted.rejected {
|
|
694
702
|
display: none;
|
|
695
703
|
}
|
|
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
|
+
}
|
|
696
719
|
.ProseMirror .deleted.accepted {
|
|
697
|
-
background:
|
|
720
|
+
background: var(--accepted-bg-color);
|
|
721
|
+
color: var(--deleted-color);
|
|
722
|
+
text-decoration: line-through;
|
|
698
723
|
}
|
|
699
724
|
.ProseMirror .deleted.rejected {
|
|
700
725
|
text-decoration: none;
|
|
701
726
|
}
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
.ProseMirror .
|
|
705
|
-
background:
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
.ProseMirror span.highlight {
|
|
730
|
+
background-color: var(--highlight-bg-color);
|
|
706
731
|
}
|
|
732
|
+
|
|
707
733
|
.ProseMirror figure[data-track-status='rejected'][data-track-op='insert'],
|
|
708
734
|
.ProseMirror table[data-track-status='rejected'][data-track-op='insert'],
|
|
709
735
|
.ProseMirror
|