@manuscripts/transform 4.3.5 → 4.3.7

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.
@@ -155,6 +155,7 @@ class JATSExporter {
155
155
  this.updateFootnoteTypes(front, back);
156
156
  this.fillEmptyTableFooters(article);
157
157
  this.fillEmptyFootnotes(article);
158
+ this.fillEmptyListItem(article);
158
159
  this.moveAwards(front, body);
159
160
  this.moveFloatsGroup(article);
160
161
  await this.rewriteIDs();
@@ -1626,5 +1627,8 @@ class JATSExporter {
1626
1627
  fillEmptyTableFooters(articleElement) {
1627
1628
  this.fillEmptyElements(articleElement, 'table-wrap-foot');
1628
1629
  }
1630
+ fillEmptyListItem(articleElement) {
1631
+ this.fillEmptyElements(articleElement, 'list-item');
1632
+ }
1629
1633
  }
1630
1634
  exports.JATSExporter = JATSExporter;
@@ -336,7 +336,7 @@ const createSupplementaryMaterialsSection = (document, body, createElement) => {
336
336
  const section = createElement('sec');
337
337
  section.setAttribute('sec-type', 'supplementary-material');
338
338
  const title = createElement('title');
339
- title.textContent = 'Supplementary Material';
339
+ title.textContent = 'Supplements';
340
340
  section.append(title);
341
341
  section.append(...suppls);
342
342
  body.append(section);
@@ -59,4 +59,5 @@ exports.nodeNames = new Map([
59
59
  [schema_1.schema.nodes.blockquote_element, 'Block Quote'],
60
60
  [schema_1.schema.nodes.pullquote_element, 'Pull Quote'],
61
61
  [schema_1.schema.nodes.box_element, 'Box'],
62
+ [schema_1.schema.nodes.supplements, 'Supplements'],
62
63
  ]);
@@ -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 = "4.3.5";
4
+ exports.VERSION = "4.3.7";
@@ -115,6 +115,7 @@ export class JATSExporter {
115
115
  this.updateFootnoteTypes(front, back);
116
116
  this.fillEmptyTableFooters(article);
117
117
  this.fillEmptyFootnotes(article);
118
+ this.fillEmptyListItem(article);
118
119
  this.moveAwards(front, body);
119
120
  this.moveFloatsGroup(article);
120
121
  await this.rewriteIDs();
@@ -1586,4 +1587,7 @@ export class JATSExporter {
1586
1587
  fillEmptyTableFooters(articleElement) {
1587
1588
  this.fillEmptyElements(articleElement, 'table-wrap-foot');
1588
1589
  }
1590
+ fillEmptyListItem(articleElement) {
1591
+ this.fillEmptyElements(articleElement, 'list-item');
1592
+ }
1589
1593
  }
@@ -319,7 +319,7 @@ export const createSupplementaryMaterialsSection = (document, body, createElemen
319
319
  const section = createElement('sec');
320
320
  section.setAttribute('sec-type', 'supplementary-material');
321
321
  const title = createElement('title');
322
- title.textContent = 'Supplementary Material';
322
+ title.textContent = 'Supplements';
323
323
  section.append(title);
324
324
  section.append(...suppls);
325
325
  body.append(section);
@@ -56,4 +56,5 @@ export const nodeNames = new Map([
56
56
  [schema.nodes.blockquote_element, 'Block Quote'],
57
57
  [schema.nodes.pullquote_element, 'Pull Quote'],
58
58
  [schema.nodes.box_element, 'Box'],
59
+ [schema.nodes.supplements, 'Supplements'],
59
60
  ]);
@@ -1 +1 @@
1
- export const VERSION = "4.3.5";
1
+ export const VERSION = "4.3.7";
@@ -90,4 +90,5 @@ export declare class JATSExporter {
90
90
  private fillEmptyElements;
91
91
  private fillEmptyFootnotes;
92
92
  private fillEmptyTableFooters;
93
+ private fillEmptyListItem;
93
94
  }
@@ -1 +1 @@
1
- export declare const VERSION = "4.3.5";
1
+ export declare const VERSION = "4.3.7";
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": "4.3.5",
4
+ "version": "4.3.7",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",