@manuscripts/body-editor 2.8.72 → 2.8.73

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.8.72';
4
+ exports.VERSION = '2.8.73';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -185,6 +185,12 @@ class BibliographyElementBlockView extends block_view_1.default {
185
185
  (0, track_changes_utils_1.addTrackChangesClassNames)(node.attrs, element);
186
186
  wrapper.append(element);
187
187
  }
188
+ if (!bibliography.length) {
189
+ this.dom.classList.add('empty-node');
190
+ }
191
+ else {
192
+ this.dom.classList.remove('empty-node');
193
+ }
188
194
  const oldContent = this.container.querySelector('.contents');
189
195
  if (oldContent) {
190
196
  this.container.replaceChild(wrapper, oldContent);
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.72';
1
+ export const VERSION = '2.8.73';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -179,6 +179,12 @@ export class BibliographyElementBlockView extends BlockView {
179
179
  addTrackChangesClassNames(node.attrs, element);
180
180
  wrapper.append(element);
181
181
  }
182
+ if (!bibliography.length) {
183
+ this.dom.classList.add('empty-node');
184
+ }
185
+ else {
186
+ this.dom.classList.remove('empty-node');
187
+ }
182
188
  const oldContent = this.container.querySelector('.contents');
183
189
  if (oldContent) {
184
190
  this.container.replaceChild(wrapper, oldContent);
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.72";
1
+ export declare const VERSION = "2.8.73";
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.8.72",
4
+ "version": "2.8.73",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -430,6 +430,14 @@ span.comment-marker {
430
430
  border-radius: 0 0 32px 32px;
431
431
  }
432
432
 
433
+ .ProseMirror .bibliography:has(.empty-node) {
434
+ display: none;
435
+ }
436
+
437
+ .ProseMirror div.backmatter:has(:only-child.bibliography > .empty-node)::before {
438
+ border-bottom: none;
439
+ }
440
+
433
441
  .ProseMirror .keywords h1 {
434
442
  font-size: 12px;
435
443
  font-style: italic;