@manuscripts/transform 2.3.27 → 2.3.28

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.
@@ -520,6 +520,9 @@ class Decoder {
520
520
  [json_schema_1.ObjectTypes.AuthorNotes]: (data) => {
521
521
  const model = data;
522
522
  const content = model.containedObjectIDs.map((id) => this.decode(this.modelMap.get(id)));
523
+ if (content.length == 0) {
524
+ return null;
525
+ }
523
526
  return schema_1.schema.nodes.author_notes.createAndFill({
524
527
  id: model._id,
525
528
  }, [
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "2.3.27";
4
+ exports.VERSION = "2.3.28";
@@ -511,6 +511,9 @@ export class Decoder {
511
511
  [ObjectTypes.AuthorNotes]: (data) => {
512
512
  const model = data;
513
513
  const content = model.containedObjectIDs.map((id) => this.decode(this.modelMap.get(id)));
514
+ if (content.length == 0) {
515
+ return null;
516
+ }
514
517
  return schema.nodes.author_notes.createAndFill({
515
518
  id: model._id,
516
519
  }, [
@@ -1 +1 @@
1
- export const VERSION = "2.3.27";
1
+ export const VERSION = "2.3.28";
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare const TABLE_CELL_STYLES: readonly ["backgroundColor", "border-top", "border-right", "border-bottom", "border-left", "verticalAlign", "textAlign"];
17
- export type TableCellStyleKey = typeof TABLE_CELL_STYLES[number];
17
+ export type TableCellStyleKey = (typeof TABLE_CELL_STYLES)[number];
18
18
  export declare const serializeTableCellStyles: (styles: {
19
19
  backgroundColor?: string | null | undefined;
20
20
  "border-top"?: string | null | undefined;
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.27";
1
+ export declare const VERSION = "2.3.28";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "2.3.27",
4
+ "version": "2.3.28",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",