@manuscripts/body-editor 2.0.13 → 2.0.14-LEAN-3821.0

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.
@@ -807,8 +807,8 @@ const createAndFillTableElement = (state, tableConfig) => {
807
807
  tableRows.push(createRow('table_cell'));
808
808
  }
809
809
  return nodes.table_element.createChecked({}, [
810
- nodes.table.create({}, tableRows),
811
810
  createAndFillFigcaptionElement(state),
811
+ nodes.table.create({}, tableRows),
812
812
  nodes.listing.create(),
813
813
  ]);
814
814
  };
@@ -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.0.13';
4
+ exports.VERSION = '2.0.14-LEAN-3821.0';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -768,8 +768,8 @@ export const createAndFillTableElement = (state, tableConfig) => {
768
768
  tableRows.push(createRow('table_cell'));
769
769
  }
770
770
  return nodes.table_element.createChecked({}, [
771
- nodes.table.create({}, tableRows),
772
771
  createAndFillFigcaptionElement(state),
772
+ nodes.table.create({}, tableRows),
773
773
  nodes.listing.create(),
774
774
  ]);
775
775
  };
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.0.13';
1
+ export const VERSION = '2.0.14-LEAN-3821.0';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.13";
1
+ export declare const VERSION = "2.0.14-LEAN-3821.0";
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.0.13",
4
+ "version": "2.0.14-LEAN-3821.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -32,9 +32,9 @@
32
32
  "@iarna/word-count": "^1.1.2",
33
33
  "@manuscripts/json-schema": "2.2.10",
34
34
  "@manuscripts/library": "1.3.10",
35
- "@manuscripts/style-guide": "2.0.2",
35
+ "@manuscripts/style-guide": "2.0.3-LEAN-3821.1",
36
36
  "@manuscripts/track-changes-plugin": "1.7.17",
37
- "@manuscripts/transform": "2.3.21",
37
+ "@manuscripts/transform": "2.3.22-LEAN-3821.1",
38
38
  "@popperjs/core": "^2.11.8",
39
39
  "astrocite-eutils": "^0.16.4",
40
40
  "codemirror": "^5.58.1",
package/styles/Editor.css CHANGED
@@ -296,6 +296,10 @@
296
296
  word-wrap: break-word;
297
297
  }
298
298
 
299
+ .ProseMirror .block-table_element figcaption {
300
+ text-align: left;
301
+ }
302
+
299
303
  .ProseMirror .caption-title:not(.empty-node) {
300
304
  font-weight: bold;
301
305
  }
@@ -316,6 +320,14 @@
316
320
  content: 'Caption...';
317
321
  }
318
322
 
323
+ .ProseMirror .block-table_element .caption-description.empty-node::before {
324
+ content: 'Table caption';
325
+ }
326
+
327
+ .ProseMirror .block-table_element .caption-title.empty-node::before {
328
+ content: 'Table title';
329
+ }
330
+
319
331
  .ProseMirror .suppress-caption .caption-description {
320
332
  display: none;
321
333
  }