@manuscripts/body-editor 2.0.11 → 2.0.12

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.
@@ -799,7 +799,7 @@ const createAndFillTableElement = (state, tableConfig) => {
799
799
  const { nodes } = state.schema;
800
800
  const { numberOfColumns, numberOfRows, includeHeader } = tableConfig;
801
801
  const createRow = (cellType) => {
802
- const cells = Array.from({ length: numberOfColumns }, () => nodes[cellType].create({}, state.schema.nodes.paragraph.create()));
802
+ const cells = Array.from({ length: numberOfColumns }, () => nodes[cellType].create());
803
803
  return nodes.table_row.create({}, cells);
804
804
  };
805
805
  const tableRows = includeHeader ? [createRow('table_header')] : [];
@@ -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.11';
4
+ exports.VERSION = '2.0.12';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -760,7 +760,7 @@ export const createAndFillTableElement = (state, tableConfig) => {
760
760
  const { nodes } = state.schema;
761
761
  const { numberOfColumns, numberOfRows, includeHeader } = tableConfig;
762
762
  const createRow = (cellType) => {
763
- const cells = Array.from({ length: numberOfColumns }, () => nodes[cellType].create({}, state.schema.nodes.paragraph.create()));
763
+ const cells = Array.from({ length: numberOfColumns }, () => nodes[cellType].create());
764
764
  return nodes.table_row.create({}, cells);
765
765
  };
766
766
  const tableRows = includeHeader ? [createRow('table_header')] : [];
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.0.11';
1
+ export const VERSION = '2.0.12';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.11";
1
+ export declare const VERSION = "2.0.12";
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.11",
4
+ "version": "2.0.12",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -116,4 +116,4 @@
116
116
  "engines": {
117
117
  "node": ">=20.16.0"
118
118
  }
119
- }
119
+ }