@manuscripts/body-editor 1.6.20 → 1.7.0
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/configs/editor-plugins.js +2 -0
- package/dist/cjs/configs/editor-views.js +4 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/lib/track-changes-utils.js +11 -1
- package/dist/cjs/plugins/affiliations.js +118 -0
- package/dist/cjs/views/affiliation.js +75 -0
- package/dist/cjs/views/affiliations.js +24 -0
- package/dist/cjs/views/contributors.js +150 -11
- package/dist/cjs/views/figure_editable.js +2 -5
- package/dist/cjs/views/keyword.js +2 -1
- package/dist/es/configs/editor-plugins.js +2 -0
- package/dist/es/configs/editor-views.js +4 -0
- package/dist/es/index.js +1 -0
- package/dist/es/lib/track-changes-utils.js +9 -0
- package/dist/es/plugins/affiliations.js +114 -0
- package/dist/es/views/affiliation.js +71 -0
- package/dist/es/views/affiliations.js +17 -0
- package/dist/es/views/contributors.js +150 -11
- package/dist/es/views/figure_editable.js +2 -5
- package/dist/es/views/keyword.js +2 -1
- package/dist/types/configs/ManuscriptsEditor.d.ts +2 -0
- package/dist/types/configs/editor-views.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/track-changes-utils.d.ts +2 -0
- package/dist/types/plugins/affiliations.d.ts +26 -0
- package/dist/types/types.d.ts +4 -0
- package/dist/types/views/affiliation.d.ts +31 -0
- package/dist/types/views/affiliations.d.ts +9 -0
- package/dist/types/views/contributors.d.ts +24 -8
- package/package.json +3 -3
- package/styles/AdvancedEditor.css +143 -47
- package/styles/Editor.css +1 -2
|
@@ -40,7 +40,11 @@ Next levels are shifted 'up' by 1
|
|
|
40
40
|
.ProseMirror > div.body {
|
|
41
41
|
counter-reset: level_1;
|
|
42
42
|
}
|
|
43
|
-
.ProseMirror
|
|
43
|
+
.ProseMirror
|
|
44
|
+
> div.body
|
|
45
|
+
> section:not(.toc)
|
|
46
|
+
> .block-section_title
|
|
47
|
+
> h1::before {
|
|
44
48
|
content: counter(level_1, decimal) '. ';
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -90,13 +94,7 @@ Next levels are shifted 'up' by 1
|
|
|
90
94
|
counter-increment: level_3;
|
|
91
95
|
counter-reset: level_4;
|
|
92
96
|
}
|
|
93
|
-
.ProseMirror
|
|
94
|
-
> div
|
|
95
|
-
> section
|
|
96
|
-
> section
|
|
97
|
-
> section
|
|
98
|
-
> .block-section_title
|
|
99
|
-
> h1 {
|
|
97
|
+
.ProseMirror > div > section > section > section > .block-section_title > h1 {
|
|
100
98
|
font-size: 12pt !important;
|
|
101
99
|
font-style: normal !important;
|
|
102
100
|
font-weight: bold !important;
|
|
@@ -297,17 +295,15 @@ Next levels are shifted 'up' by 1
|
|
|
297
295
|
}
|
|
298
296
|
.ProseMirror div.backmatter::before {
|
|
299
297
|
content: '';
|
|
300
|
-
border-bottom: 1px dashed #
|
|
298
|
+
border-bottom: 1px dashed #c9c9c9;
|
|
301
299
|
display: block;
|
|
302
300
|
margin: 11pt 49pt;
|
|
303
|
-
|
|
304
301
|
}
|
|
305
302
|
.ProseMirror div.backmatter .block-section_title > h1 {
|
|
306
303
|
font-size: 13.5pt !important;
|
|
307
|
-
color: #
|
|
304
|
+
color: #6e6e6e !important;
|
|
308
305
|
}
|
|
309
306
|
|
|
310
|
-
|
|
311
307
|
.ProseMirror p.block {
|
|
312
308
|
font-size: 12pt !important;
|
|
313
309
|
font-style: normal !important;
|
|
@@ -546,19 +542,19 @@ Next levels are shifted 'up' by 1
|
|
|
546
542
|
}
|
|
547
543
|
|
|
548
544
|
.ProseMirror > .keywords > .block-section_title > h1 {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
545
|
+
color: #353535 !important;
|
|
546
|
+
font-size: 12px !important;
|
|
547
|
+
font-style: italic !important;
|
|
548
|
+
font-weight: 400 !important;
|
|
549
|
+
line-height: 16px !important;
|
|
550
|
+
margin-top: 4px !important;
|
|
555
551
|
}
|
|
556
552
|
|
|
557
553
|
.keywords .keyword {
|
|
558
554
|
display: inline-block;
|
|
559
555
|
color: #353535;
|
|
560
556
|
background-color: #f2f2f2;
|
|
561
|
-
font-family: Lato,sans-serif;
|
|
557
|
+
font-family: Lato, sans-serif;
|
|
562
558
|
font-size: 14px;
|
|
563
559
|
line-height: 16px;
|
|
564
560
|
margin-right: 4px;
|
|
@@ -567,15 +563,16 @@ Next levels are shifted 'up' by 1
|
|
|
567
563
|
border-radius: 6px;
|
|
568
564
|
position: relative;
|
|
569
565
|
cursor: default;
|
|
570
|
-
padding: 4px 8px
|
|
566
|
+
padding: 4px 8px;
|
|
571
567
|
}
|
|
572
568
|
|
|
573
|
-
.keywords .keyword ins,
|
|
574
|
-
|
|
569
|
+
.keywords .keyword ins,
|
|
570
|
+
.keywords .keyword del {
|
|
571
|
+
background-color: inherit !important;
|
|
575
572
|
}
|
|
576
573
|
|
|
577
574
|
.keywords .keyword:hover {
|
|
578
|
-
background-color
|
|
575
|
+
background-color: #f2fbfc !important;
|
|
579
576
|
}
|
|
580
577
|
|
|
581
578
|
.keywords .keyword.selected {
|
|
@@ -583,7 +580,8 @@ Next levels are shifted 'up' by 1
|
|
|
583
580
|
border-color: #bce7f6;
|
|
584
581
|
}
|
|
585
582
|
|
|
586
|
-
.keywords .keyword.deleted.pending
|
|
583
|
+
.keywords .keyword.deleted.pending,
|
|
584
|
+
.keywords .keyword.deleted.accepted {
|
|
587
585
|
text-decoration: line-through;
|
|
588
586
|
}
|
|
589
587
|
|
|
@@ -616,7 +614,6 @@ Next levels are shifted 'up' by 1
|
|
|
616
614
|
.keywords .keyword-group-container {
|
|
617
615
|
position: relative;
|
|
618
616
|
margin: 0 0 36px !important;
|
|
619
|
-
|
|
620
617
|
}
|
|
621
618
|
|
|
622
619
|
.keywords .keyword-group {
|
|
@@ -685,7 +682,7 @@ Next levels are shifted 'up' by 1
|
|
|
685
682
|
|
|
686
683
|
.ProseMirror {
|
|
687
684
|
--pending-bg-color: #e6f7fc;
|
|
688
|
-
--accepted-bg-color: #d1edaf
|
|
685
|
+
--accepted-bg-color: #d1edaf;
|
|
689
686
|
--deleted-color: #f35143;
|
|
690
687
|
--highlight-bg-color: #ffeebf;
|
|
691
688
|
--selection-bg-color: #bce7f6;
|
|
@@ -730,18 +727,6 @@ Next levels are shifted 'up' by 1
|
|
|
730
727
|
text-decoration: none;
|
|
731
728
|
}
|
|
732
729
|
|
|
733
|
-
|
|
734
|
-
.ProseMirror span.highlight {
|
|
735
|
-
background-color: var(--highlight-bg-color);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
.ProseMirror figure[data-track-status='rejected'][data-track-op='insert'],
|
|
739
|
-
.ProseMirror table[data-track-status='rejected'][data-track-op='insert'],
|
|
740
|
-
.ProseMirror
|
|
741
|
-
.block-container[data-track-status='rejected'][data-track-op='insert'] {
|
|
742
|
-
display: none;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
730
|
.citation-wrapper {
|
|
746
731
|
position: relative;
|
|
747
732
|
}
|
|
@@ -761,26 +746,137 @@ Next levels are shifted 'up' by 1
|
|
|
761
746
|
display: inline-block;
|
|
762
747
|
}
|
|
763
748
|
|
|
749
|
+
.affiliation[data-track-status='pending'],
|
|
750
|
+
.contributor[data-track-status='pending'],
|
|
751
|
+
.ProseMirror .inserted.pending,
|
|
752
|
+
.ProseMirror .set_attrs.pending,
|
|
753
|
+
.ProseMirror .deleted.pending {
|
|
754
|
+
background: #ddf3fa;
|
|
755
|
+
}
|
|
756
|
+
.ProseMirror .affiliation[data-track-status='rejected'][data-track-op='insert'],
|
|
757
|
+
.ProseMirror .contributor[data-track-status='rejected'][data-track-op='insert'],
|
|
758
|
+
.ProseMirror figure[data-track-status='rejected'][data-track-op='insert'],
|
|
759
|
+
.ProseMirror table[data-track-status='rejected'][data-track-op='insert'],
|
|
760
|
+
.ProseMirror
|
|
761
|
+
.block-container[data-track-status='rejected'][data-track-op='insert'] {
|
|
762
|
+
display: none;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.contributor[data-track-op='delete']:not([data-track-status='rejected']) .name,
|
|
766
|
+
.affiliation[data-track-op='delete']:not([data-track-status='rejected']) {
|
|
767
|
+
text-decoration: line-through;
|
|
768
|
+
color: var(--deleted-color);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.contributor[data-track-op='delete']:not([data-track-status='rejected']),
|
|
772
|
+
.contributor[data-track-op='delete']:not([data-track-status='rejected']) .name,
|
|
773
|
+
.affiliation[data-track-op='delete']:not([data-track-status='rejected']) {
|
|
774
|
+
pointer-events: none;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.contributor[data-track-op='delete']:not([data-track-status='rejected']) {
|
|
778
|
+
color: var(--deleted-color);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.affiliation[data-track-status='pending'],
|
|
782
|
+
.contributor[data-track-status='pending'] {
|
|
783
|
+
background: var(--pending-bg-color);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.affiliation[data-track-status='accepted'],
|
|
787
|
+
.contributor[data-track-status='accepted'] {
|
|
788
|
+
background: var(--accepted-bg-color);
|
|
789
|
+
}
|
|
790
|
+
|
|
764
791
|
.contributors {
|
|
765
792
|
white-space: initial;
|
|
766
|
-
margin-bottom: 24px;
|
|
767
793
|
margin-top: 24px;
|
|
794
|
+
align-items: center;
|
|
795
|
+
display: flex;
|
|
796
|
+
justify-content: space-between;
|
|
797
|
+
}
|
|
798
|
+
.contributors-list {
|
|
799
|
+
flex: 0 1 auto;
|
|
768
800
|
}
|
|
769
801
|
|
|
770
802
|
.contributors .tools-panel {
|
|
771
803
|
position: initial;
|
|
804
|
+
flex: 1;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.contributor {
|
|
808
|
+
display: inline-flex;
|
|
809
|
+
background: transparent;
|
|
810
|
+
border: 0;
|
|
811
|
+
font-size: 1rem;
|
|
812
|
+
text-decoration: none;
|
|
813
|
+
color: inherit;
|
|
814
|
+
outline: none;
|
|
815
|
+
padding: 4px 5px;
|
|
816
|
+
margin: 0 6px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.contributor:not(:disabled):hover {
|
|
820
|
+
cursor: pointer !important;
|
|
821
|
+
background-color: #d9f6ff;
|
|
772
822
|
}
|
|
773
823
|
|
|
774
|
-
.
|
|
775
|
-
|
|
776
|
-
width: inherit;
|
|
824
|
+
.contributor-note:last-child {
|
|
825
|
+
margin: 0;
|
|
777
826
|
}
|
|
778
827
|
|
|
779
|
-
.
|
|
780
|
-
|
|
781
|
-
|
|
828
|
+
.contributor:not(:disabled):focus {
|
|
829
|
+
cursor: pointer !important;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.contributor:after {
|
|
833
|
+
content: ', ';
|
|
834
|
+
color: #353535;
|
|
835
|
+
margin-right: -9px;
|
|
836
|
+
}
|
|
837
|
+
.contributor:last-child::after {
|
|
838
|
+
content: '';
|
|
839
|
+
margin-right: 0;
|
|
782
840
|
}
|
|
783
841
|
|
|
784
|
-
.contributors
|
|
785
|
-
|
|
842
|
+
.contributors-legend {
|
|
843
|
+
margin: 16px 0 0 0;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.contributor-legend .symbol {
|
|
847
|
+
display: inline-block;
|
|
848
|
+
font-size: 0.75em;
|
|
849
|
+
line-height: 1;
|
|
850
|
+
vertical-align: top;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.contributors .tools-panel {
|
|
854
|
+
align-items: center;
|
|
855
|
+
display: flex;
|
|
856
|
+
margin-left: 8px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.contributor-note {
|
|
860
|
+
display: inline-block;
|
|
861
|
+
font-size: 0.75em;
|
|
862
|
+
margin: 0 1px;
|
|
863
|
+
line-height: 1;
|
|
864
|
+
vertical-align: top;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.block-affiliations {
|
|
868
|
+
margin-top: 16px;
|
|
869
|
+
color: #6e6e6e;
|
|
870
|
+
margin-bottom: 24px;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.affiliation {
|
|
874
|
+
line-height: 1.2;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.block-affiliations .block {
|
|
878
|
+
display: flex;
|
|
879
|
+
width: 100%;
|
|
880
|
+
flex-direction: column;
|
|
881
|
+
align-items: flex-start;
|
|
786
882
|
}
|
package/styles/Editor.css
CHANGED
|
@@ -731,7 +731,6 @@
|
|
|
731
731
|
text-align: center;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
|
|
735
734
|
.ProseMirror .bib-item {
|
|
736
735
|
position: relative;
|
|
737
736
|
margin-right: 40px;
|
|
@@ -1008,7 +1007,7 @@
|
|
|
1008
1007
|
}
|
|
1009
1008
|
.article-titles {
|
|
1010
1009
|
cursor: text;
|
|
1011
|
-
font-family:
|
|
1010
|
+
font-family: 'PT Serif', serif;
|
|
1012
1011
|
font-size: 28px;
|
|
1013
1012
|
font-weight: 700;
|
|
1014
1013
|
line-height: 1.43;
|