@manuscripts/body-editor 3.12.10 → 3.12.11

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.
@@ -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 };
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '3.12.10';
4
+ exports.VERSION = '3.12.11';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -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 };
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.12.10';
1
+ export const VERSION = '3.12.11';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.12.10";
1
+ export declare const VERSION = "3.12.11";
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.10",
4
+ "version": "3.12.11",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -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: 1rem calc(var(--body-side-margin) - 12px) 0;
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: 15px;
1604
+ right: 20px;
1600
1605
  pointer-events: none;
1601
1606
  }
1602
1607
 
package/styles/Editor.css CHANGED
@@ -609,7 +609,7 @@
609
609
  }
610
610
 
611
611
  .ProseMirror .add-subtitle {
612
- display: inline-flex;
612
+ display: flex;
613
613
  align-items: center;
614
614
  cursor: pointer;
615
615
  margin-left: var(--body-side-margin);