@manuscripts/transform 1.5.8 → 2.0.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.
Files changed (133) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/jats/importer/index.js +1 -3
  3. package/dist/cjs/jats/importer/jats-body-dom-parser.js +23 -227
  4. package/dist/cjs/jats/importer/jats-body-transformations.js +110 -201
  5. package/dist/cjs/jats/importer/jats-comments.js +100 -98
  6. package/dist/cjs/jats/importer/jats-front-parser.js +87 -81
  7. package/dist/cjs/jats/importer/jats-journal-meta-parser.js +51 -39
  8. package/dist/cjs/jats/importer/jats-parser-utils.js +17 -56
  9. package/dist/cjs/jats/importer/jats-reference-parser.js +24 -79
  10. package/dist/cjs/jats/importer/jats-references.js +34 -0
  11. package/dist/cjs/jats/importer/parse-jats-article.js +67 -173
  12. package/dist/cjs/jats/index.js +1 -3
  13. package/dist/cjs/jats/jats-exporter.js +34 -55
  14. package/dist/cjs/lib/section-group-type.js +30 -0
  15. package/dist/cjs/lib/utils.js +1 -25
  16. package/dist/cjs/schema/index.js +20 -17
  17. package/dist/cjs/schema/nodes/abstracts.js +27 -0
  18. package/dist/cjs/schema/nodes/affiliations.js +27 -0
  19. package/dist/cjs/schema/nodes/backmatter.js +27 -0
  20. package/dist/cjs/schema/nodes/body.js +27 -0
  21. package/dist/cjs/schema/nodes/citation.js +10 -15
  22. package/dist/cjs/schema/nodes/{comment_list.js → comments.js} +4 -4
  23. package/dist/cjs/schema/nodes/contributors.js +27 -0
  24. package/dist/cjs/schema/nodes/{meta_section.js → core_section.js} +6 -5
  25. package/dist/cjs/schema/nodes/cross_reference.js +4 -3
  26. package/dist/cjs/schema/nodes/inline_footnote.js +6 -5
  27. package/dist/cjs/schema/nodes/keyword.js +0 -1
  28. package/dist/cjs/schema/nodes/{keywords_group.js → keyword_group.js} +6 -6
  29. package/dist/cjs/schema/nodes/{keywords_section.js → keywords.js} +7 -7
  30. package/dist/cjs/schema/nodes/keywords_element.js +1 -1
  31. package/dist/cjs/schema/nodes/manuscript.js +5 -2
  32. package/dist/cjs/transformer/builders.js +9 -86
  33. package/dist/cjs/transformer/decode.js +147 -176
  34. package/dist/cjs/transformer/encode.js +66 -67
  35. package/dist/cjs/transformer/highlight-markers.js +48 -36
  36. package/dist/cjs/transformer/html.js +7 -23
  37. package/dist/cjs/transformer/labels.js +3 -17
  38. package/dist/cjs/transformer/node-names.js +1 -1
  39. package/dist/cjs/transformer/node-title.js +1 -1
  40. package/dist/cjs/transformer/node-types.js +7 -6
  41. package/dist/cjs/transformer/object-types.js +1 -2
  42. package/dist/cjs/transformer/section-category.js +31 -31
  43. package/dist/es/index.js +1 -1
  44. package/dist/es/jats/importer/index.js +1 -1
  45. package/dist/es/jats/importer/jats-body-dom-parser.js +23 -227
  46. package/dist/es/jats/importer/jats-body-transformations.js +111 -202
  47. package/dist/es/jats/importer/jats-comments.js +97 -96
  48. package/dist/es/jats/importer/jats-front-parser.js +88 -82
  49. package/dist/es/jats/importer/jats-journal-meta-parser.js +51 -39
  50. package/dist/es/jats/importer/jats-parser-utils.js +16 -54
  51. package/dist/es/jats/importer/jats-reference-parser.js +27 -82
  52. package/dist/es/jats/importer/jats-references.js +30 -0
  53. package/dist/es/jats/importer/parse-jats-article.js +70 -174
  54. package/dist/es/jats/index.js +1 -1
  55. package/dist/es/jats/jats-exporter.js +34 -55
  56. package/dist/es/lib/section-group-type.js +27 -0
  57. package/dist/es/lib/utils.js +0 -22
  58. package/dist/es/schema/index.js +21 -18
  59. package/dist/es/schema/nodes/abstracts.js +24 -0
  60. package/dist/es/schema/nodes/affiliations.js +24 -0
  61. package/dist/es/schema/nodes/backmatter.js +24 -0
  62. package/dist/es/schema/nodes/body.js +24 -0
  63. package/dist/es/schema/nodes/citation.js +10 -15
  64. package/dist/es/schema/nodes/{comment_list.js → comments.js} +3 -3
  65. package/dist/es/schema/nodes/contributors.js +24 -0
  66. package/dist/es/schema/nodes/{meta_section.js → core_section.js} +5 -4
  67. package/dist/es/schema/nodes/cross_reference.js +4 -3
  68. package/dist/es/schema/nodes/inline_footnote.js +6 -5
  69. package/dist/es/schema/nodes/keyword.js +0 -1
  70. package/dist/es/schema/nodes/{keywords_group.js → keyword_group.js} +4 -4
  71. package/dist/es/schema/nodes/{keywords_section.js → keywords.js} +5 -5
  72. package/dist/es/schema/nodes/keywords_element.js +1 -1
  73. package/dist/es/schema/nodes/manuscript.js +3 -1
  74. package/dist/es/transformer/builders.js +6 -73
  75. package/dist/es/transformer/decode.js +147 -175
  76. package/dist/es/transformer/encode.js +70 -71
  77. package/dist/es/transformer/highlight-markers.js +44 -32
  78. package/dist/es/transformer/html.js +7 -23
  79. package/dist/es/transformer/labels.js +3 -17
  80. package/dist/es/transformer/node-names.js +1 -1
  81. package/dist/es/transformer/node-title.js +1 -1
  82. package/dist/es/transformer/node-types.js +7 -6
  83. package/dist/es/transformer/object-types.js +0 -1
  84. package/dist/es/transformer/section-category.js +29 -29
  85. package/dist/types/index.d.ts +1 -1
  86. package/dist/types/jats/importer/index.d.ts +1 -1
  87. package/dist/types/jats/importer/jats-body-transformations.d.ts +16 -19
  88. package/dist/types/jats/importer/jats-comments.d.ts +13 -9
  89. package/dist/types/jats/importer/jats-front-parser.d.ts +35 -12
  90. package/dist/types/jats/importer/jats-journal-meta-parser.d.ts +4 -4
  91. package/dist/types/jats/importer/jats-parser-utils.d.ts +1 -6
  92. package/dist/types/jats/importer/jats-reference-parser.d.ts +2 -6
  93. package/dist/types/jats/importer/jats-references.d.ts +12 -0
  94. package/dist/types/jats/importer/parse-jats-article.d.ts +5 -17
  95. package/dist/types/jats/index.d.ts +1 -1
  96. package/dist/types/lib/section-group-type.d.ts +23 -0
  97. package/dist/types/lib/utils.d.ts +1 -4
  98. package/dist/types/schema/index.d.ts +4 -5
  99. package/dist/types/schema/nodes/{meta_section.d.ts → abstracts.d.ts} +1 -9
  100. package/dist/types/schema/nodes/affiliations.d.ts +17 -0
  101. package/dist/types/schema/nodes/backmatter.d.ts +17 -0
  102. package/dist/types/schema/nodes/body.d.ts +17 -0
  103. package/dist/types/schema/nodes/citation.d.ts +3 -5
  104. package/dist/types/schema/nodes/comments.d.ts +17 -0
  105. package/dist/types/schema/nodes/contributors.d.ts +17 -0
  106. package/dist/types/schema/nodes/core_section.d.ts +17 -0
  107. package/dist/types/schema/nodes/cross_reference.d.ts +1 -1
  108. package/dist/types/schema/nodes/inline_footnote.d.ts +1 -1
  109. package/dist/types/schema/nodes/keyword.d.ts +0 -1
  110. package/dist/types/schema/nodes/{contributors_element.d.ts → keyword_group.d.ts} +3 -4
  111. package/dist/types/schema/nodes/{comment_list.d.ts → keywords.d.ts} +3 -2
  112. package/dist/types/schema/nodes/manuscript.d.ts +1 -0
  113. package/dist/types/schema/types.d.ts +1 -1
  114. package/dist/types/transformer/builders.d.ts +2 -14
  115. package/dist/types/transformer/decode.d.ts +5 -9
  116. package/dist/types/transformer/encode.d.ts +4 -4
  117. package/dist/types/transformer/highlight-markers.d.ts +7 -2
  118. package/dist/types/transformer/object-types.d.ts +1 -2
  119. package/dist/types/transformer/section-category.d.ts +4 -3
  120. package/package.json +1 -6
  121. package/dist/cjs/lib/core-section-categories.js +0 -29
  122. package/dist/cjs/schema/nodes/affiliations_section.js +0 -36
  123. package/dist/cjs/schema/nodes/contributors_element.js +0 -49
  124. package/dist/cjs/schema/nodes/contributors_section.js +0 -36
  125. package/dist/es/lib/core-section-categories.js +0 -26
  126. package/dist/es/schema/nodes/affiliations_section.js +0 -32
  127. package/dist/es/schema/nodes/contributors_element.js +0 -46
  128. package/dist/es/schema/nodes/contributors_section.js +0 -32
  129. package/dist/types/lib/core-section-categories.d.ts +0 -8
  130. package/dist/types/schema/nodes/affiliations_section.d.ts +0 -11
  131. package/dist/types/schema/nodes/contributors_section.d.ts +0 -12
  132. package/dist/types/schema/nodes/keywords_group.d.ts +0 -26
  133. package/dist/types/schema/nodes/keywords_section.d.ts +0 -26
@@ -15,8 +15,8 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.isKeywordsGroupNode = exports.keywordsGroup = void 0;
19
- exports.keywordsGroup = {
18
+ exports.isKeywordGroupNode = exports.keywordGroup = void 0;
19
+ exports.keywordGroup = {
20
20
  content: 'keyword*',
21
21
  attrs: {
22
22
  id: { default: '' },
@@ -31,11 +31,11 @@ exports.keywordsGroup = {
31
31
  },
32
32
  ],
33
33
  toDOM: (node) => {
34
- const keywordsGroupNode = node;
34
+ const keywordGroupNode = node;
35
35
  return [
36
36
  'div',
37
37
  {
38
- id: keywordsGroupNode.attrs.id,
38
+ id: keywordGroupNode.attrs.id,
39
39
  class: 'keywords',
40
40
  spellcheck: 'false',
41
41
  contenteditable: false,
@@ -44,5 +44,5 @@ exports.keywordsGroup = {
44
44
  ];
45
45
  },
46
46
  };
47
- const isKeywordsGroupNode = (node) => node.type === node.type.schema.nodes.keywords_group;
48
- exports.isKeywordsGroupNode = isKeywordsGroupNode;
47
+ const isKeywordGroupNode = (node) => node.type === node.type.schema.nodes.keywords_group;
48
+ exports.isKeywordGroupNode = isKeywordGroupNode;
@@ -15,14 +15,14 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.isKeywordsSectionNode = exports.keywordsSection = void 0;
19
- exports.keywordsSection = {
18
+ exports.isKeywordsNode = exports.keywords = void 0;
19
+ exports.keywords = {
20
20
  content: 'section_title (keywords_element | placeholder_element)',
21
21
  attrs: {
22
22
  id: { default: '' },
23
23
  dataTracked: { default: null },
24
24
  },
25
- group: 'block sections',
25
+ group: 'block',
26
26
  selectable: false,
27
27
  parseDOM: [
28
28
  {
@@ -30,11 +30,11 @@ exports.keywordsSection = {
30
30
  },
31
31
  ],
32
32
  toDOM: (node) => {
33
- const keywordsSectionNode = node;
33
+ const keywords = node;
34
34
  return [
35
35
  'div',
36
36
  {
37
- id: keywordsSectionNode.attrs.id,
37
+ id: keywords.attrs.id,
38
38
  class: 'keywords',
39
39
  spellcheck: 'false',
40
40
  contenteditable: false,
@@ -43,5 +43,5 @@ exports.keywordsSection = {
43
43
  ];
44
44
  },
45
45
  };
46
- const isKeywordsSectionNode = (node) => node.type === node.type.schema.nodes.keywords_section;
47
- exports.isKeywordsSectionNode = isKeywordsSectionNode;
46
+ const isKeywordsNode = (node) => node.type === node.type.schema.nodes.keywords;
47
+ exports.isKeywordsNode = isKeywordsNode;
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.keywordsElement = void 0;
19
19
  exports.keywordsElement = {
20
20
  atom: true,
21
- content: 'keywords_group*',
21
+ content: 'keyword_group*',
22
22
  attrs: {
23
23
  id: { default: '' },
24
24
  contents: { default: '' },
@@ -15,9 +15,10 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.manuscript = void 0;
18
+ exports.isManuscriptNode = exports.manuscript = void 0;
19
+ const index_1 = require("../index");
19
20
  exports.manuscript = {
20
- content: 'title* (section | sections)+ meta_section',
21
+ content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
21
22
  attrs: {
22
23
  id: { default: '' },
23
24
  },
@@ -44,3 +45,5 @@ exports.manuscript = {
44
45
  ];
45
46
  },
46
47
  };
48
+ const isManuscriptNode = (node) => node.type === index_1.schema.nodes.manuscript;
49
+ exports.isManuscriptNode = isManuscriptNode;
@@ -18,14 +18,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.buildTitles = exports.buildElementsOrder = exports.auxiliaryObjectTypes = exports.buildStatusLabel = exports.buildJournal = exports.buildAttribution = exports.buildInlineStyle = exports.buildContributorRole = exports.buildContribution = exports.buildHighlightMarker = exports.buildHighlight = exports.buildColor = exports.buildParagraph = exports.buildSection = exports.buildCorresp = exports.buildFootnotesOrder = exports.buildFootnote = exports.buildInlineMathFragment = exports.buildValidation = exports.buildNote = exports.buildComment = exports.buildUserProfileAffiliation = exports.buildSupplementaryMaterial = exports.buildAffiliation = exports.buildFigure = exports.buildLibraryCollection = exports.buildManuscriptKeyword = exports.buildKeywordGroup = exports.buildKeyword = exports.buildCitation = exports.buildEmbeddedCitationItem = exports.buildAuxiliaryObjectReference = exports.buildBibliographicDate = exports.buildBibliographicName = exports.buildBibliographyItem = exports.buildContributor = exports.buildManuscript = exports.buildProject = exports.DEFAULT_PAGE_LAYOUT = exports.DEFAULT_BUNDLE = void 0;
21
+ exports.buildTitles = exports.buildElementsOrder = exports.auxiliaryObjectTypes = exports.buildJournal = exports.buildAttribution = exports.buildContributorRole = exports.buildContribution = exports.buildColor = exports.buildParagraph = exports.buildSection = exports.buildCorresp = exports.buildFootnotesOrder = exports.buildFootnote = exports.buildInlineMathFragment = exports.buildNote = exports.buildComment = exports.buildSupplementaryMaterial = exports.buildAffiliation = exports.buildFigure = exports.buildKeywordGroup = exports.buildKeyword = exports.buildBibliographyElement = exports.buildBibliographicDate = exports.buildBibliographicName = exports.buildBibliographyItem = exports.buildContributor = exports.buildManuscript = exports.buildProject = void 0;
22
22
  const json_schema_1 = require("@manuscripts/json-schema");
23
23
  const w3c_xmlserializer_1 = __importDefault(require("w3c-xmlserializer"));
24
24
  const schema_1 = require("../schema");
25
25
  const id_1 = require("./id");
26
26
  const timestamp_1 = require("./timestamp");
27
- exports.DEFAULT_BUNDLE = 'MPBundle:www-zotero-org-styles-nature';
28
- exports.DEFAULT_PAGE_LAYOUT = 'MPPageLayout:defaultA4';
29
27
  const buildProject = (owner) => ({
30
28
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Project),
31
29
  objectType: json_schema_1.ObjectTypes.Project,
@@ -57,34 +55,14 @@ const buildBibliographicName = (data) => (Object.assign(Object.assign({}, data),
57
55
  exports.buildBibliographicName = buildBibliographicName;
58
56
  const buildBibliographicDate = (data) => (Object.assign(Object.assign({}, data), { _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.BibliographicDate), objectType: json_schema_1.ObjectTypes.BibliographicDate }));
59
57
  exports.buildBibliographicDate = buildBibliographicDate;
60
- const buildAuxiliaryObjectReference = (containingObject, rids) => {
61
- const auxiliaryObjectReference = {
62
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.AuxiliaryObjectReference),
63
- objectType: json_schema_1.ObjectTypes.AuxiliaryObjectReference,
64
- containingObject: containingObject || undefined,
65
- };
66
- if (rids.length < 2) {
67
- Object.assign(auxiliaryObjectReference, { referencedObject: rids[0] });
68
- }
69
- else {
70
- Object.assign(auxiliaryObjectReference, { referencedObjects: rids });
71
- }
72
- return auxiliaryObjectReference;
73
- };
74
- exports.buildAuxiliaryObjectReference = buildAuxiliaryObjectReference;
75
- const buildEmbeddedCitationItem = (bibliographyItem) => ({
76
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.CitationItem),
77
- objectType: json_schema_1.ObjectTypes.CitationItem,
78
- bibliographyItem,
79
- });
80
- exports.buildEmbeddedCitationItem = buildEmbeddedCitationItem;
81
- const buildCitation = (containingObject, embeddedCitationItems) => ({
82
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Citation),
83
- objectType: json_schema_1.ObjectTypes.Citation,
84
- containingObject: containingObject || undefined,
85
- embeddedCitationItems: embeddedCitationItems.map(exports.buildEmbeddedCitationItem),
86
- });
87
- exports.buildCitation = buildCitation;
58
+ const buildBibliographyElement = (bibliographyItems) => ({
59
+ _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.BibliographyElement),
60
+ objectType: json_schema_1.ObjectTypes.BibliographyElement,
61
+ contents: '',
62
+ elementType: 'div',
63
+ containedObjectIDs: bibliographyItems.map((b) => b._id),
64
+ });
65
+ exports.buildBibliographyElement = buildBibliographyElement;
88
66
  const buildKeyword = (name) => ({
89
67
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Keyword),
90
68
  objectType: json_schema_1.ObjectTypes.Keyword,
@@ -93,21 +71,6 @@ const buildKeyword = (name) => ({
93
71
  exports.buildKeyword = buildKeyword;
94
72
  const buildKeywordGroup = (attributes) => (Object.assign(Object.assign(Object.assign({ _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.KeywordGroup), objectType: json_schema_1.ObjectTypes.KeywordGroup }, (attributes.type && { type: attributes.type })), (attributes.title && { title: attributes.title })), (attributes.label && { label: attributes.label })));
95
73
  exports.buildKeywordGroup = buildKeywordGroup;
96
- const buildManuscriptKeyword = (name) => ({
97
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.ManuscriptKeyword),
98
- objectType: json_schema_1.ObjectTypes.ManuscriptKeyword,
99
- name,
100
- });
101
- exports.buildManuscriptKeyword = buildManuscriptKeyword;
102
- const buildLibraryCollection = (owner, name) => ({
103
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.LibraryCollection),
104
- objectType: json_schema_1.ObjectTypes.LibraryCollection,
105
- owners: [owner],
106
- writers: [],
107
- viewers: [],
108
- name,
109
- });
110
- exports.buildLibraryCollection = buildLibraryCollection;
111
74
  const buildFigure = (blob) => ({
112
75
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Figure),
113
76
  objectType: json_schema_1.ObjectTypes.Figure,
@@ -134,13 +97,6 @@ const buildSupplementaryMaterial = (title, href) => ({
134
97
  href,
135
98
  });
136
99
  exports.buildSupplementaryMaterial = buildSupplementaryMaterial;
137
- const buildUserProfileAffiliation = (institution, priority = 0) => ({
138
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.UserProfileAffiliation),
139
- objectType: json_schema_1.ObjectTypes.UserProfileAffiliation,
140
- institution,
141
- priority,
142
- });
143
- exports.buildUserProfileAffiliation = buildUserProfileAffiliation;
144
100
  const buildComment = (target, contents = '', selector, contributions, annotationColor) => ({
145
101
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.CommentAnnotation),
146
102
  objectType: json_schema_1.ObjectTypes.CommentAnnotation,
@@ -159,12 +115,6 @@ const buildNote = (target, source, contents = '') => ({
159
115
  contents,
160
116
  });
161
117
  exports.buildNote = buildNote;
162
- const buildValidation = (results) => ({
163
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.RequirementsValidation),
164
- objectType: json_schema_1.ObjectTypes.RequirementsValidation,
165
- results,
166
- });
167
- exports.buildValidation = buildValidation;
168
118
  const buildInlineMathFragment = (containingObject, TeXRepresentation) => ({
169
119
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.InlineMathFragment),
170
120
  objectType: json_schema_1.ObjectTypes.InlineMathFragment,
@@ -227,20 +177,6 @@ const buildColor = (value, priority) => ({
227
177
  value,
228
178
  });
229
179
  exports.buildColor = buildColor;
230
- const buildHighlight = () => ({
231
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Highlight),
232
- objectType: json_schema_1.ObjectTypes.Highlight,
233
- });
234
- exports.buildHighlight = buildHighlight;
235
- const buildHighlightMarker = (highlightID, start, offset, field) => ({
236
- highlightID,
237
- objectType: json_schema_1.ObjectTypes.HighlightMarker,
238
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.HighlightMarker),
239
- start,
240
- offset,
241
- field,
242
- });
243
- exports.buildHighlightMarker = buildHighlightMarker;
244
180
  const buildContribution = (profileID) => ({
245
181
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Contribution),
246
182
  objectType: json_schema_1.ObjectTypes.Contribution,
@@ -254,13 +190,6 @@ const buildContributorRole = (name) => ({
254
190
  name,
255
191
  });
256
192
  exports.buildContributorRole = buildContributorRole;
257
- const buildInlineStyle = (priority, title) => ({
258
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.InlineStyle),
259
- objectType: json_schema_1.ObjectTypes.InlineStyle,
260
- priority,
261
- title,
262
- });
263
- exports.buildInlineStyle = buildInlineStyle;
264
193
  const buildAttribution = () => ({
265
194
  _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.Attribution),
266
195
  objectType: json_schema_1.ObjectTypes.Attribution,
@@ -271,12 +200,6 @@ const buildJournal = () => ({
271
200
  objectType: json_schema_1.ObjectTypes.Journal,
272
201
  });
273
202
  exports.buildJournal = buildJournal;
274
- const buildStatusLabel = (name) => ({
275
- _id: (0, id_1.generateID)(json_schema_1.ObjectTypes.StatusLabel),
276
- objectType: json_schema_1.ObjectTypes.StatusLabel,
277
- name,
278
- });
279
- exports.buildStatusLabel = buildStatusLabel;
280
203
  exports.auxiliaryObjectTypes = new Set([
281
204
  schema_1.schema.nodes.figure_element,
282
205
  schema_1.schema.nodes.table_element,