@manuscripts/body-editor 2.7.19 → 2.7.20

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.
@@ -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 = '2.7.19';
4
+ exports.VERSION = '2.7.20';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -28,6 +28,7 @@ class EquationView extends base_node_view_1.BaseNodeView {
28
28
  };
29
29
  this.createDOM = () => {
30
30
  this.dom = document.createElement('div');
31
+ this.dom.classList.add('equation');
31
32
  };
32
33
  this.ignoreMutation = () => true;
33
34
  }
@@ -29,6 +29,7 @@ class InlineEquationView extends base_node_view_1.BaseNodeView {
29
29
  this.updateContents();
30
30
  }
31
31
  updateContents() {
32
+ super.updateContents();
32
33
  this.dom.innerHTML = this.node.attrs.contents;
33
34
  (0, math_1.renderMath)(this.dom);
34
35
  }
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.7.19';
1
+ export const VERSION = '2.7.20';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -25,6 +25,7 @@ export class EquationView extends BaseNodeView {
25
25
  };
26
26
  this.createDOM = () => {
27
27
  this.dom = document.createElement('div');
28
+ this.dom.classList.add('equation');
28
29
  };
29
30
  this.ignoreMutation = () => true;
30
31
  }
@@ -26,6 +26,7 @@ export class InlineEquationView extends BaseNodeView {
26
26
  this.updateContents();
27
27
  }
28
28
  updateContents() {
29
+ super.updateContents();
29
30
  this.dom.innerHTML = this.node.attrs.contents;
30
31
  renderMath(this.dom);
31
32
  }
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.7.19";
1
+ export declare const VERSION = "2.7.20";
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": "2.7.19",
4
+ "version": "2.7.20",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -695,7 +695,7 @@ span.comment-marker {
695
695
  .block-award.selected-suggestion span,
696
696
  .selected-suggestion .inserted:not(.citation.inserted),
697
697
  .selected-suggestion .deleted:not(.citation.deleted),
698
- figure.block .equation.set_attrs.selected-suggestion {
698
+ figure .selected-suggestion {
699
699
  background-color: transparent !important;
700
700
  }
701
701