@manuscripts/body-editor 1.5.15 → 1.5.16

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.
@@ -80,7 +80,7 @@ class CitationView extends base_node_view_1.BaseNodeView {
80
80
  this.ignoreMutation = () => true;
81
81
  this.selectNode = () => {
82
82
  var _a;
83
- const isDeleted = !!((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.find(({ operation }) => operation === 'delete'));
83
+ const isDeleted = !!((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.find(({ operation, status }) => operation === 'delete' && status !== 'rejected'));
84
84
  if (!isDeleted) {
85
85
  this.showPopper();
86
86
  this.dom.classList.add('ProseMirror-selectednode');
@@ -51,7 +51,7 @@ export class CitationView extends BaseNodeView {
51
51
  this.ignoreMutation = () => true;
52
52
  this.selectNode = () => {
53
53
  var _a;
54
- const isDeleted = !!((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.find(({ operation }) => operation === 'delete'));
54
+ const isDeleted = !!((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.find(({ operation, status }) => operation === 'delete' && status !== 'rejected'));
55
55
  if (!isDeleted) {
56
56
  this.showPopper();
57
57
  this.dom.classList.add('ProseMirror-selectednode');
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.5.15",
4
+ "version": "1.5.16",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",