@manuscripts/body-editor 1.6.15 → 1.6.17
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/commands.js +1 -1
- package/dist/es/commands.js +1 -1
- package/package.json +2 -2
- package/styles/Editor.css +18 -8
package/dist/cjs/commands.js
CHANGED
|
@@ -312,7 +312,7 @@ const insertInlineFootnote = (kind) => (state, dispatch) => {
|
|
|
312
312
|
};
|
|
313
313
|
exports.insertInlineFootnote = insertInlineFootnote;
|
|
314
314
|
const insertGraphicalAbstract = (state, dispatch) => {
|
|
315
|
-
if ((0, utils_1.getChildOfType)(state.doc, transform_1.schema.nodes.graphical_abstract_section)) {
|
|
315
|
+
if ((0, utils_1.getChildOfType)(state.doc, transform_1.schema.nodes.graphical_abstract_section, true)) {
|
|
316
316
|
return false;
|
|
317
317
|
}
|
|
318
318
|
const abstracts = (0, prosemirror_utils_1.findChildrenByType)(state.doc, transform_1.schema.nodes.abstracts)[0];
|
package/dist/es/commands.js
CHANGED
|
@@ -293,7 +293,7 @@ export const insertInlineFootnote = (kind) => (state, dispatch) => {
|
|
|
293
293
|
return true;
|
|
294
294
|
};
|
|
295
295
|
export const insertGraphicalAbstract = (state, dispatch) => {
|
|
296
|
-
if (getChildOfType(state.doc, schema.nodes.graphical_abstract_section)) {
|
|
296
|
+
if (getChildOfType(state.doc, schema.nodes.graphical_abstract_section, true)) {
|
|
297
297
|
return false;
|
|
298
298
|
}
|
|
299
299
|
const abstracts = findChildrenByType(state.doc, schema.nodes.abstracts)[0];
|
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.17",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -126,4 +126,4 @@
|
|
|
126
126
|
"resolutions": {
|
|
127
127
|
"@types/react": "^17.0.2"
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
}
|
package/styles/Editor.css
CHANGED
|
@@ -941,9 +941,6 @@
|
|
|
941
941
|
|
|
942
942
|
.ProseMirror .table-footer {
|
|
943
943
|
font-size: 14px;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
.ProseMirror .table-footer .footnote-element:first-child {
|
|
947
944
|
padding-top: 8px;
|
|
948
945
|
}
|
|
949
946
|
|
|
@@ -969,17 +966,31 @@
|
|
|
969
966
|
margin-right: 4px;
|
|
970
967
|
}
|
|
971
968
|
|
|
972
|
-
.ProseMirror .table-footer
|
|
969
|
+
.ProseMirror .table-footer p {
|
|
973
970
|
margin-bottom: 0px;
|
|
974
971
|
margin-top: 0px;
|
|
975
972
|
}
|
|
976
973
|
|
|
974
|
+
.ProseMirror .table-footer .footnote-selected, .table-footer > div:has(> p.footnote-selected) > p {
|
|
975
|
+
background-color: #f2fbfc;
|
|
976
|
+
padding: 4px;
|
|
977
|
+
}
|
|
978
|
+
.table-footer > div > p {
|
|
979
|
+
padding-bottom: 10px;
|
|
980
|
+
}
|
|
977
981
|
.ProseMirror .table-footer .footnote-element .footnote-selected {
|
|
978
|
-
padding: 8px 0 8px 0;
|
|
979
982
|
border: 1px solid #bce7f6;
|
|
980
|
-
background-color: #f2fbfc;
|
|
981
983
|
}
|
|
982
|
-
|
|
984
|
+
.table-footer > div:has(> p.footnote-selected) > p {
|
|
985
|
+
border-left: 1px solid #bce7f6;
|
|
986
|
+
border-right: 1px solid #bce7f6;
|
|
987
|
+
}
|
|
988
|
+
.table-footer > div:has(> p.footnote-selected) > p:first-child {
|
|
989
|
+
border-top: 1px solid #bce7f6;
|
|
990
|
+
}
|
|
991
|
+
.table-footer > div:has(> p.footnote-selected) > p:last-child {
|
|
992
|
+
border-bottom: 1px solid #bce7f6;
|
|
993
|
+
}
|
|
983
994
|
.ProseMirror .footnote-label {
|
|
984
995
|
vertical-align: super;
|
|
985
996
|
font-size: 75%;
|
|
@@ -1006,4 +1017,3 @@
|
|
|
1006
1017
|
div[style*="background-color: rgba(249, 2, 2, 0.53)"] {
|
|
1007
1018
|
background-color: #ffe08b !important;
|
|
1008
1019
|
}
|
|
1009
|
-
|