@manuscripts/transform 2.1.1-LEAN-3336-21 → 2.1.1-LEAN-3336-22

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.
@@ -525,8 +525,6 @@ const nodes = [
525
525
  const element = node;
526
526
  return {
527
527
  id: element.getAttribute('id'),
528
- suppressFooter: !element.querySelector('table > tfoot > tr'),
529
- suppressHeader: !element.querySelector('table > thead > tr'),
530
528
  };
531
529
  },
532
530
  },
@@ -557,12 +557,9 @@ class Decoder {
557
557
  },
558
558
  [json_schema_1.ObjectTypes.Table]: (data) => {
559
559
  const model = data;
560
- const comments = this.createCommentNodes(model);
561
- comments.forEach((c) => this.comments.set(c.attrs.id, c));
562
- return this.parseContents(model.contents, undefined, this.getComments(model), {
560
+ return this.parseContents(model.contents, undefined, [], {
563
561
  topNode: schema_1.schema.nodes.table.create({
564
562
  id: model._id,
565
- comments: comments.map((c) => c.attrs.id),
566
563
  }),
567
564
  });
568
565
  },
@@ -519,8 +519,6 @@ const nodes = [
519
519
  const element = node;
520
520
  return {
521
521
  id: element.getAttribute('id'),
522
- suppressFooter: !element.querySelector('table > tfoot > tr'),
523
- suppressHeader: !element.querySelector('table > thead > tr'),
524
522
  };
525
523
  },
526
524
  },
@@ -548,12 +548,9 @@ export class Decoder {
548
548
  },
549
549
  [ObjectTypes.Table]: (data) => {
550
550
  const model = data;
551
- const comments = this.createCommentNodes(model);
552
- comments.forEach((c) => this.comments.set(c.attrs.id, c));
553
- return this.parseContents(model.contents, undefined, this.getComments(model), {
551
+ return this.parseContents(model.contents, undefined, [], {
554
552
  topNode: schema.nodes.table.create({
555
553
  id: model._id,
556
- comments: comments.map((c) => c.attrs.id),
557
554
  }),
558
555
  });
559
556
  },
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.1.1-LEAN-3336-21",
4
+ "version": "2.1.1-LEAN-3336-22",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",