@manuscripts/body-editor 3.12.10 → 3.12.12
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 +2 -2
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +2 -2
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
- package/styles/AdvancedEditor.css +7 -2
- package/styles/Editor.css +1 -1
package/dist/cjs/commands.js
CHANGED
|
@@ -740,7 +740,7 @@ const insertContributors = (state, dispatch, view) => {
|
|
|
740
740
|
if (!contributors) {
|
|
741
741
|
const pos = (0, utils_1.findInsertionPosition)(transform_1.schema.nodes.contributors, state.doc);
|
|
742
742
|
const contributorsNode = state.schema.nodes.contributors.create({
|
|
743
|
-
id:
|
|
743
|
+
id: (0, transform_1.generateNodeID)(transform_1.schema.nodes.contributors),
|
|
744
744
|
});
|
|
745
745
|
tr.insert(pos, contributorsNode);
|
|
746
746
|
contributors = { node: contributorsNode, pos };
|
|
@@ -762,7 +762,7 @@ const insertAffiliation = (state, dispatch, view) => {
|
|
|
762
762
|
if (!affiliations) {
|
|
763
763
|
const pos = (0, utils_1.findInsertionPosition)(transform_1.schema.nodes.affiliations, state.doc);
|
|
764
764
|
const affiliationsNode = state.schema.nodes.affiliations.create({
|
|
765
|
-
id:
|
|
765
|
+
id: (0, transform_1.generateNodeID)(transform_1.schema.nodes.affiliations),
|
|
766
766
|
});
|
|
767
767
|
tr.insert(pos, affiliationsNode);
|
|
768
768
|
affiliations = { node: affiliationsNode, pos };
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -705,7 +705,7 @@ export const insertContributors = (state, dispatch, view) => {
|
|
|
705
705
|
if (!contributors) {
|
|
706
706
|
const pos = findInsertionPosition(schema.nodes.contributors, state.doc);
|
|
707
707
|
const contributorsNode = state.schema.nodes.contributors.create({
|
|
708
|
-
id:
|
|
708
|
+
id: generateNodeID(schema.nodes.contributors),
|
|
709
709
|
});
|
|
710
710
|
tr.insert(pos, contributorsNode);
|
|
711
711
|
contributors = { node: contributorsNode, pos };
|
|
@@ -726,7 +726,7 @@ export const insertAffiliation = (state, dispatch, view) => {
|
|
|
726
726
|
if (!affiliations) {
|
|
727
727
|
const pos = findInsertionPosition(schema.nodes.affiliations, state.doc);
|
|
728
728
|
const affiliationsNode = state.schema.nodes.affiliations.create({
|
|
729
|
-
id:
|
|
729
|
+
id: generateNodeID(schema.nodes.affiliations),
|
|
730
730
|
});
|
|
731
731
|
tr.insert(pos, affiliationsNode);
|
|
732
732
|
affiliations = { node: affiliationsNode, pos };
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.12.
|
|
1
|
+
export const VERSION = '3.12.12';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.12.
|
|
1
|
+
export declare const VERSION = "3.12.12";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
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": "3.12.
|
|
4
|
+
"version": "3.12.12",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@iarna/word-count": "1.1.2",
|
|
40
40
|
"@manuscripts/style-guide": "3.5.7",
|
|
41
41
|
"@manuscripts/track-changes-plugin": "2.3.9",
|
|
42
|
-
"@manuscripts/transform": "4.3.
|
|
42
|
+
"@manuscripts/transform": "4.3.30",
|
|
43
43
|
"@popperjs/core": "2.11.8",
|
|
44
44
|
"citeproc": "2.4.63",
|
|
45
45
|
"codemirror": "5.65.19",
|
|
@@ -575,6 +575,11 @@ ProseMirror .block-embed .position-menu {
|
|
|
575
575
|
right: 50px;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
+
.comment-marker:has(+ .block-contributors),
|
|
579
|
+
.comment-marker:has(+ .block-affiliations) {
|
|
580
|
+
right: 20px;
|
|
581
|
+
}
|
|
582
|
+
|
|
578
583
|
.block-subtitles .comment-marker {
|
|
579
584
|
top: 0;
|
|
580
585
|
left: -10px;
|
|
@@ -1447,7 +1452,7 @@ s[data-track-status='pending'][data-track-op='delete'] {
|
|
|
1447
1452
|
border-bottom: 1px solid #e2e2e2;
|
|
1448
1453
|
position: relative;
|
|
1449
1454
|
padding-top: 0.2rem;
|
|
1450
|
-
margin:
|
|
1455
|
+
margin: 13px calc(var(--body-side-margin) - 12px);
|
|
1451
1456
|
}
|
|
1452
1457
|
.alt-titles-closing-button {
|
|
1453
1458
|
position: absolute;
|
|
@@ -1596,7 +1601,7 @@ th:hover > .table-context-menu-button,
|
|
|
1596
1601
|
|
|
1597
1602
|
.ProseMirror .block-contributors .action-gutter,
|
|
1598
1603
|
.ProseMirror .block-affiliations .action-gutter {
|
|
1599
|
-
right:
|
|
1604
|
+
right: 20px;
|
|
1600
1605
|
pointer-events: none;
|
|
1601
1606
|
}
|
|
1602
1607
|
|