@manuscripts/body-editor 1.13.2-LEAN-3686.0 → 1.13.2

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.
@@ -28,7 +28,6 @@ const buildPluginState = (doc, $old) => {
28
28
  const nodes = [];
29
29
  const contributors = [];
30
30
  const affiliations = [];
31
- const deletedContribId = new Set();
32
31
  doc.descendants((node, pos) => {
33
32
  const attrs = (0, track_changes_utils_1.isDeleted)(node) ? node.attrs : (0, track_changes_utils_1.getActualAttrs)(node);
34
33
  if ((0, transform_1.isAffiliationNode)(node)) {
@@ -36,7 +35,6 @@ const buildPluginState = (doc, $old) => {
36
35
  affiliations.push(attrs);
37
36
  }
38
37
  if ((0, transform_1.isContributorNode)(node)) {
39
- (0, track_changes_utils_1.isDeleted)(node) && deletedContribId.add(attrs.id);
40
38
  nodes.push([node, pos]);
41
39
  contributors.push(attrs);
42
40
  }
@@ -49,7 +47,7 @@ const buildPluginState = (doc, $old) => {
49
47
  const iAffiliations = new Set();
50
48
  contributors.sort(authors_1.authorComparator).forEach((attrs) => {
51
49
  attrs.affiliations.forEach((aff) => {
52
- !deletedContribId.has(attrs.id) && iAffiliations.add(aff);
50
+ iAffiliations.add(aff);
53
51
  });
54
52
  });
55
53
  const indexedAffiliationIds = new Map([...iAffiliations].map((id, i) => [id, i + 1]));
@@ -25,7 +25,6 @@ export const buildPluginState = (doc, $old) => {
25
25
  const nodes = [];
26
26
  const contributors = [];
27
27
  const affiliations = [];
28
- const deletedContribId = new Set();
29
28
  doc.descendants((node, pos) => {
30
29
  const attrs = isDeleted(node) ? node.attrs : getActualAttrs(node);
31
30
  if (isAffiliationNode(node)) {
@@ -33,7 +32,6 @@ export const buildPluginState = (doc, $old) => {
33
32
  affiliations.push(attrs);
34
33
  }
35
34
  if (isContributorNode(node)) {
36
- isDeleted(node) && deletedContribId.add(attrs.id);
37
35
  nodes.push([node, pos]);
38
36
  contributors.push(attrs);
39
37
  }
@@ -46,7 +44,7 @@ export const buildPluginState = (doc, $old) => {
46
44
  const iAffiliations = new Set();
47
45
  contributors.sort(authorComparator).forEach((attrs) => {
48
46
  attrs.affiliations.forEach((aff) => {
49
- !deletedContribId.has(attrs.id) && iAffiliations.add(aff);
47
+ iAffiliations.add(aff);
50
48
  });
51
49
  });
52
50
  const indexedAffiliationIds = new Map([...iAffiliations].map((id, i) => [id, i + 1]));
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.13.2-LEAN-3686.0",
4
+ "version": "1.13.2",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -819,8 +819,7 @@ span.accepted .selected-suggestion,
819
819
  background-color: var(--deleted-pending-bg-color)
820
820
  }
821
821
 
822
- .contributor[data-track-op='delete']:not([data-track-status='rejected']),
823
- .affiliation[data-track-op='delete']:not([data-track-status='rejected']) {
822
+ .contributor[data-track-op='delete']:not([data-track-status='rejected']) {
824
823
  text-decoration: line-through;
825
824
  }
826
825
 
package/styles/Editor.css CHANGED
@@ -633,10 +633,6 @@
633
633
  display: grid;
634
634
  }
635
635
 
636
- .ProseMirror .block-container > h1.block {
637
- display: flex;
638
- }
639
-
640
636
  .ProseMirror .block-container > .block.fit-to-page {
641
637
  margin: 0 -60px 0 -52px;
642
638
  padding: 0;