@manuscripts/transform 3.0.21 → 3.0.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.
@@ -543,6 +543,22 @@ class JATSExporter {
543
543
  };
544
544
  this.createSerializer = () => {
545
545
  const nodes = {
546
+ embed: (node) => {
547
+ const mediaElement = this.document.createElement('media');
548
+ const { id, href, mimetype, mimeSubtype } = node.attrs;
549
+ mediaElement.setAttribute('id', normalizeID(id));
550
+ mediaElement.setAttributeNS(XLINK_NAMESPACE, 'show', 'embed');
551
+ if (href) {
552
+ mediaElement.setAttributeNS(XLINK_NAMESPACE, 'href', node.attrs.href);
553
+ }
554
+ if (mimetype) {
555
+ mediaElement.setAttribute('mimetype', node.attrs.mimetype);
556
+ }
557
+ if (mimeSubtype) {
558
+ mediaElement.setAttribute('mime-subtype', node.attrs.mimeSubtype);
559
+ }
560
+ return mediaElement;
561
+ },
546
562
  awards: () => ['funding-group', 0],
547
563
  award: (node) => {
548
564
  const awardGroup = node;
@@ -560,6 +560,19 @@ class JATSDOMParser {
560
560
  };
561
561
  },
562
562
  },
563
+ {
564
+ tag: 'media',
565
+ node: 'embed',
566
+ getAttrs: (node) => {
567
+ const element = node;
568
+ return {
569
+ id: element.getAttribute('id'),
570
+ href: element.getAttributeNS(this.XLINK_NAMESPACE, 'href'),
571
+ mimetype: element.getAttribute('mimetype'),
572
+ mimeSubtype: element.getAttribute('mime-subtype'),
573
+ };
574
+ },
575
+ },
563
576
  {
564
577
  tag: 'fig[fig-type=listing]',
565
578
  node: 'listing_element',
@@ -111,12 +111,10 @@ const createBoxedElementSection = (body, createElement) => {
111
111
  exports.createBoxedElementSection = createBoxedElementSection;
112
112
  const createBody = (doc, body, createElement) => {
113
113
  const group = createSectionGroup('body', createElement);
114
- const paragraphs = doc.querySelectorAll('body > p');
115
- group.append(...paragraphs);
116
- const sections = doc.querySelectorAll('body > sec:not([sec-type="backmatter"]), body > sec:not([sec-type])');
117
- sections.forEach((section) => {
118
- removeNodeFromParent(section);
119
- group.appendChild(section);
114
+ const elements = body.querySelectorAll(':scope > *:not(sec), :scope > sec:not([sec-type="backmatter"]), :scope > sec:not([sec-type])');
115
+ elements.forEach((element) => {
116
+ removeNodeFromParent(element);
117
+ group.appendChild(element);
120
118
  });
121
119
  moveFloatsGroupToBody(doc, group, createElement);
122
120
  body.append(group);
@@ -56,6 +56,7 @@ const contributors_1 = require("./nodes/contributors");
56
56
  const corresp_1 = require("./nodes/corresp");
57
57
  const cross_reference_1 = require("./nodes/cross_reference");
58
58
  const doc_1 = require("./nodes/doc");
59
+ const embed_1 = require("./nodes/embed");
59
60
  const equation_1 = require("./nodes/equation");
60
61
  const equation_element_1 = require("./nodes/equation_element");
61
62
  const figcaption_1 = require("./nodes/figcaption");
@@ -96,18 +97,23 @@ const table_element_footer_1 = require("./nodes/table_element_footer");
96
97
  const text_1 = require("./nodes/text");
97
98
  const title_1 = require("./nodes/title");
98
99
  __exportStar(require("./groups"), exports);
99
- __exportStar(require("./types"), exports);
100
- __exportStar(require("./nodes/comment"), exports);
101
- __exportStar(require("./nodes/comments"), exports);
100
+ __exportStar(require("./nodes/affiliation"), exports);
101
+ __exportStar(require("./nodes/affiliations"), exports);
102
102
  __exportStar(require("./nodes/attribution"), exports);
103
- __exportStar(require("./nodes/bibliography_item"), exports);
103
+ __exportStar(require("./nodes/author_notes"), exports);
104
104
  __exportStar(require("./nodes/bibliography_element"), exports);
105
+ __exportStar(require("./nodes/bibliography_item"), exports);
105
106
  __exportStar(require("./nodes/bibliography_section"), exports);
106
107
  __exportStar(require("./nodes/blockquote_element"), exports);
107
108
  __exportStar(require("./nodes/box_element"), exports);
108
109
  __exportStar(require("./nodes/caption"), exports);
109
110
  __exportStar(require("./nodes/caption_title"), exports);
110
111
  __exportStar(require("./nodes/citation"), exports);
112
+ __exportStar(require("./nodes/comment"), exports);
113
+ __exportStar(require("./nodes/comments"), exports);
114
+ __exportStar(require("./nodes/contributor"), exports);
115
+ __exportStar(require("./nodes/contributors"), exports);
116
+ __exportStar(require("./nodes/corresp"), exports);
111
117
  __exportStar(require("./nodes/cross_reference"), exports);
112
118
  __exportStar(require("./nodes/doc"), exports);
113
119
  __exportStar(require("./nodes/equation"), exports);
@@ -115,19 +121,19 @@ __exportStar(require("./nodes/equation_element"), exports);
115
121
  __exportStar(require("./nodes/figcaption"), exports);
116
122
  __exportStar(require("./nodes/figure"), exports);
117
123
  __exportStar(require("./nodes/figure_element"), exports);
118
- __exportStar(require("./nodes/general_table_footnote"), exports);
119
124
  __exportStar(require("./nodes/footnote"), exports);
120
125
  __exportStar(require("./nodes/footnotes_element"), exports);
121
126
  __exportStar(require("./nodes/footnotes_section"), exports);
127
+ __exportStar(require("./nodes/general_table_footnote"), exports);
122
128
  __exportStar(require("./nodes/graphical_abstract_section"), exports);
123
129
  __exportStar(require("./nodes/hard_break"), exports);
124
130
  __exportStar(require("./nodes/highlight_marker"), exports);
125
131
  __exportStar(require("./nodes/inline_equation"), exports);
126
132
  __exportStar(require("./nodes/inline_footnote"), exports);
127
- __exportStar(require("./nodes/keyword_group"), exports);
128
133
  __exportStar(require("./nodes/keyword"), exports);
129
- __exportStar(require("./nodes/keywords_element"), exports);
134
+ __exportStar(require("./nodes/keyword_group"), exports);
130
135
  __exportStar(require("./nodes/keywords"), exports);
136
+ __exportStar(require("./nodes/keywords_element"), exports);
131
137
  __exportStar(require("./nodes/link"), exports);
132
138
  __exportStar(require("./nodes/list"), exports);
133
139
  __exportStar(require("./nodes/listing"), exports);
@@ -140,20 +146,16 @@ __exportStar(require("./nodes/placeholder_element"), exports);
140
146
  __exportStar(require("./nodes/pullquote_element"), exports);
141
147
  __exportStar(require("./nodes/section"), exports);
142
148
  __exportStar(require("./nodes/section_title"), exports);
149
+ __exportStar(require("./nodes/supplement"), exports);
150
+ __exportStar(require("./nodes/supplements"), exports);
143
151
  __exportStar(require("./nodes/table"), exports);
144
152
  __exportStar(require("./nodes/table_col"), exports);
145
153
  __exportStar(require("./nodes/table_element"), exports);
146
- __exportStar(require("./nodes/text"), exports);
147
- __exportStar(require("./nodes/affiliation"), exports);
148
- __exportStar(require("./nodes/contributor"), exports);
149
154
  __exportStar(require("./nodes/table_element_footer"), exports);
155
+ __exportStar(require("./nodes/text"), exports);
150
156
  __exportStar(require("./nodes/title"), exports);
151
- __exportStar(require("./nodes/affiliations"), exports);
152
- __exportStar(require("./nodes/contributors"), exports);
153
- __exportStar(require("./nodes/supplement"), exports);
154
- __exportStar(require("./nodes/supplements"), exports);
155
- __exportStar(require("./nodes/corresp"), exports);
156
- __exportStar(require("./nodes/author_notes"), exports);
157
+ __exportStar(require("./types"), exports);
158
+ __exportStar(require("./nodes/embed"), exports);
157
159
  exports.schema = new prosemirror_model_1.Schema({
158
160
  marks: {
159
161
  bold: marks_1.bold,
@@ -238,5 +240,6 @@ exports.schema = new prosemirror_model_1.Schema({
238
240
  box_element: box_element_1.box_element,
239
241
  awards: awards_1.awards,
240
242
  award: award_1.award,
243
+ embed: embed_1.embed,
241
244
  },
242
245
  });
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /*!
3
+ * © 2024 Atypon Systems LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.isEmbedNode = exports.embed = void 0;
19
+ exports.embed = {
20
+ attrs: {
21
+ id: { default: '' },
22
+ dataTracked: { default: null },
23
+ href: { default: undefined },
24
+ mimetype: { default: undefined },
25
+ mimeSubtype: { default: undefined },
26
+ },
27
+ group: 'block element',
28
+ toDOM: (node) => {
29
+ return [
30
+ 'div',
31
+ {
32
+ class: 'embed',
33
+ id: node.attrs.id,
34
+ },
35
+ ];
36
+ },
37
+ };
38
+ const isEmbedNode = (node) => node.type === node.type.schema.nodes.embed;
39
+ exports.isEmbedNode = isEmbedNode;
@@ -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 = "3.0.21";
4
+ exports.VERSION = "3.0.22";
@@ -535,6 +535,22 @@ export class JATSExporter {
535
535
  };
536
536
  this.createSerializer = () => {
537
537
  const nodes = {
538
+ embed: (node) => {
539
+ const mediaElement = this.document.createElement('media');
540
+ const { id, href, mimetype, mimeSubtype } = node.attrs;
541
+ mediaElement.setAttribute('id', normalizeID(id));
542
+ mediaElement.setAttributeNS(XLINK_NAMESPACE, 'show', 'embed');
543
+ if (href) {
544
+ mediaElement.setAttributeNS(XLINK_NAMESPACE, 'href', node.attrs.href);
545
+ }
546
+ if (mimetype) {
547
+ mediaElement.setAttribute('mimetype', node.attrs.mimetype);
548
+ }
549
+ if (mimeSubtype) {
550
+ mediaElement.setAttribute('mime-subtype', node.attrs.mimeSubtype);
551
+ }
552
+ return mediaElement;
553
+ },
538
554
  awards: () => ['funding-group', 0],
539
555
  award: (node) => {
540
556
  const awardGroup = node;
@@ -554,6 +554,19 @@ export class JATSDOMParser {
554
554
  };
555
555
  },
556
556
  },
557
+ {
558
+ tag: 'media',
559
+ node: 'embed',
560
+ getAttrs: (node) => {
561
+ const element = node;
562
+ return {
563
+ id: element.getAttribute('id'),
564
+ href: element.getAttributeNS(this.XLINK_NAMESPACE, 'href'),
565
+ mimetype: element.getAttribute('mimetype'),
566
+ mimeSubtype: element.getAttribute('mime-subtype'),
567
+ };
568
+ },
569
+ },
557
570
  {
558
571
  tag: 'fig[fig-type=listing]',
559
572
  node: 'listing_element',
@@ -101,12 +101,10 @@ export const createBoxedElementSection = (body, createElement) => {
101
101
  };
102
102
  export const createBody = (doc, body, createElement) => {
103
103
  const group = createSectionGroup('body', createElement);
104
- const paragraphs = doc.querySelectorAll('body > p');
105
- group.append(...paragraphs);
106
- const sections = doc.querySelectorAll('body > sec:not([sec-type="backmatter"]), body > sec:not([sec-type])');
107
- sections.forEach((section) => {
108
- removeNodeFromParent(section);
109
- group.appendChild(section);
104
+ const elements = body.querySelectorAll(':scope > *:not(sec), :scope > sec:not([sec-type="backmatter"]), :scope > sec:not([sec-type])');
105
+ elements.forEach((element) => {
106
+ removeNodeFromParent(element);
107
+ group.appendChild(element);
110
108
  });
111
109
  moveFloatsGroupToBody(doc, group, createElement);
112
110
  body.append(group);
@@ -39,6 +39,7 @@ import { contributors } from './nodes/contributors';
39
39
  import { corresp } from './nodes/corresp';
40
40
  import { crossReference } from './nodes/cross_reference';
41
41
  import { doc } from './nodes/doc';
42
+ import { embed } from './nodes/embed';
42
43
  import { equation } from './nodes/equation';
43
44
  import { equationElement } from './nodes/equation_element';
44
45
  import { figcaption } from './nodes/figcaption';
@@ -79,18 +80,23 @@ import { tableElementFooter } from './nodes/table_element_footer';
79
80
  import { text } from './nodes/text';
80
81
  import { title } from './nodes/title';
81
82
  export * from './groups';
82
- export * from './types';
83
- export * from './nodes/comment';
84
- export * from './nodes/comments';
83
+ export * from './nodes/affiliation';
84
+ export * from './nodes/affiliations';
85
85
  export * from './nodes/attribution';
86
- export * from './nodes/bibliography_item';
86
+ export * from './nodes/author_notes';
87
87
  export * from './nodes/bibliography_element';
88
+ export * from './nodes/bibliography_item';
88
89
  export * from './nodes/bibliography_section';
89
90
  export * from './nodes/blockquote_element';
90
91
  export * from './nodes/box_element';
91
92
  export * from './nodes/caption';
92
93
  export * from './nodes/caption_title';
93
94
  export * from './nodes/citation';
95
+ export * from './nodes/comment';
96
+ export * from './nodes/comments';
97
+ export * from './nodes/contributor';
98
+ export * from './nodes/contributors';
99
+ export * from './nodes/corresp';
94
100
  export * from './nodes/cross_reference';
95
101
  export * from './nodes/doc';
96
102
  export * from './nodes/equation';
@@ -98,19 +104,19 @@ export * from './nodes/equation_element';
98
104
  export * from './nodes/figcaption';
99
105
  export * from './nodes/figure';
100
106
  export * from './nodes/figure_element';
101
- export * from './nodes/general_table_footnote';
102
107
  export * from './nodes/footnote';
103
108
  export * from './nodes/footnotes_element';
104
109
  export * from './nodes/footnotes_section';
110
+ export * from './nodes/general_table_footnote';
105
111
  export * from './nodes/graphical_abstract_section';
106
112
  export * from './nodes/hard_break';
107
113
  export * from './nodes/highlight_marker';
108
114
  export * from './nodes/inline_equation';
109
115
  export * from './nodes/inline_footnote';
110
- export * from './nodes/keyword_group';
111
116
  export * from './nodes/keyword';
112
- export * from './nodes/keywords_element';
117
+ export * from './nodes/keyword_group';
113
118
  export * from './nodes/keywords';
119
+ export * from './nodes/keywords_element';
114
120
  export * from './nodes/link';
115
121
  export * from './nodes/list';
116
122
  export * from './nodes/listing';
@@ -123,20 +129,16 @@ export * from './nodes/placeholder_element';
123
129
  export * from './nodes/pullquote_element';
124
130
  export * from './nodes/section';
125
131
  export * from './nodes/section_title';
132
+ export * from './nodes/supplement';
133
+ export * from './nodes/supplements';
126
134
  export * from './nodes/table';
127
135
  export * from './nodes/table_col';
128
136
  export * from './nodes/table_element';
129
- export * from './nodes/text';
130
- export * from './nodes/affiliation';
131
- export * from './nodes/contributor';
132
137
  export * from './nodes/table_element_footer';
138
+ export * from './nodes/text';
133
139
  export * from './nodes/title';
134
- export * from './nodes/affiliations';
135
- export * from './nodes/contributors';
136
- export * from './nodes/supplement';
137
- export * from './nodes/supplements';
138
- export * from './nodes/corresp';
139
- export * from './nodes/author_notes';
140
+ export * from './types';
141
+ export * from './nodes/embed';
140
142
  export const schema = new Schema({
141
143
  marks: {
142
144
  bold,
@@ -221,5 +223,6 @@ export const schema = new Schema({
221
223
  box_element,
222
224
  awards,
223
225
  award,
226
+ embed,
224
227
  },
225
228
  });
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * © 2024 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export const embed = {
17
+ attrs: {
18
+ id: { default: '' },
19
+ dataTracked: { default: null },
20
+ href: { default: undefined },
21
+ mimetype: { default: undefined },
22
+ mimeSubtype: { default: undefined },
23
+ },
24
+ group: 'block element',
25
+ toDOM: (node) => {
26
+ return [
27
+ 'div',
28
+ {
29
+ class: 'embed',
30
+ id: node.attrs.id,
31
+ },
32
+ ];
33
+ },
34
+ };
35
+ export const isEmbedNode = (node) => node.type === node.type.schema.nodes.embed;
@@ -1 +1 @@
1
- export const VERSION = "3.0.21";
1
+ export const VERSION = "3.0.22";
@@ -16,18 +16,23 @@
16
16
  import { Schema } from 'prosemirror-model';
17
17
  import { Marks, Nodes } from './types';
18
18
  export * from './groups';
19
- export * from './types';
20
- export * from './nodes/comment';
21
- export * from './nodes/comments';
19
+ export * from './nodes/affiliation';
20
+ export * from './nodes/affiliations';
22
21
  export * from './nodes/attribution';
23
- export * from './nodes/bibliography_item';
22
+ export * from './nodes/author_notes';
24
23
  export * from './nodes/bibliography_element';
24
+ export * from './nodes/bibliography_item';
25
25
  export * from './nodes/bibliography_section';
26
26
  export * from './nodes/blockquote_element';
27
27
  export * from './nodes/box_element';
28
28
  export * from './nodes/caption';
29
29
  export * from './nodes/caption_title';
30
30
  export * from './nodes/citation';
31
+ export * from './nodes/comment';
32
+ export * from './nodes/comments';
33
+ export * from './nodes/contributor';
34
+ export * from './nodes/contributors';
35
+ export * from './nodes/corresp';
31
36
  export * from './nodes/cross_reference';
32
37
  export * from './nodes/doc';
33
38
  export * from './nodes/equation';
@@ -35,19 +40,19 @@ export * from './nodes/equation_element';
35
40
  export * from './nodes/figcaption';
36
41
  export * from './nodes/figure';
37
42
  export * from './nodes/figure_element';
38
- export * from './nodes/general_table_footnote';
39
43
  export * from './nodes/footnote';
40
44
  export * from './nodes/footnotes_element';
41
45
  export * from './nodes/footnotes_section';
46
+ export * from './nodes/general_table_footnote';
42
47
  export * from './nodes/graphical_abstract_section';
43
48
  export * from './nodes/hard_break';
44
49
  export * from './nodes/highlight_marker';
45
50
  export * from './nodes/inline_equation';
46
51
  export * from './nodes/inline_footnote';
47
- export * from './nodes/keyword_group';
48
52
  export * from './nodes/keyword';
49
- export * from './nodes/keywords_element';
53
+ export * from './nodes/keyword_group';
50
54
  export * from './nodes/keywords';
55
+ export * from './nodes/keywords_element';
51
56
  export * from './nodes/link';
52
57
  export * from './nodes/list';
53
58
  export * from './nodes/listing';
@@ -60,18 +65,14 @@ export * from './nodes/placeholder_element';
60
65
  export * from './nodes/pullquote_element';
61
66
  export * from './nodes/section';
62
67
  export * from './nodes/section_title';
68
+ export * from './nodes/supplement';
69
+ export * from './nodes/supplements';
63
70
  export * from './nodes/table';
64
71
  export * from './nodes/table_col';
65
72
  export * from './nodes/table_element';
66
- export * from './nodes/text';
67
- export * from './nodes/affiliation';
68
- export * from './nodes/contributor';
69
73
  export * from './nodes/table_element_footer';
74
+ export * from './nodes/text';
70
75
  export * from './nodes/title';
71
- export * from './nodes/affiliations';
72
- export * from './nodes/contributors';
73
- export * from './nodes/supplement';
74
- export * from './nodes/supplements';
75
- export * from './nodes/corresp';
76
- export * from './nodes/author_notes';
76
+ export * from './types';
77
+ export * from './nodes/embed';
77
78
  export declare const schema: Schema<Nodes, Marks>;
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * © 2024 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { NodeSpec } from 'prosemirror-model';
17
+ import { ManuscriptNode } from '../types';
18
+ interface Attrs {
19
+ id: string;
20
+ href: string;
21
+ show: string;
22
+ mimetype: string;
23
+ mimeSubtype: string;
24
+ }
25
+ export interface EmbedNode extends ManuscriptNode {
26
+ attrs: Attrs;
27
+ }
28
+ export declare const embed: NodeSpec;
29
+ export declare const isEmbedNode: (node: ManuscriptNode) => node is EmbedNode;
30
+ export {};
@@ -17,7 +17,7 @@ import { Fragment, Mark as ProsemirrorMark, MarkType, Node as ProsemirrorNode, N
17
17
  import { EditorState, NodeSelection, Plugin, TextSelection, Transaction } from 'prosemirror-state';
18
18
  import { EditorView, NodeView } from 'prosemirror-view';
19
19
  export type Marks = 'bold' | 'code' | 'italic' | 'smallcaps' | 'strikethrough' | 'styled' | 'subscript' | 'superscript' | 'underline' | 'tracked_insert' | 'tracked_delete';
20
- export type Nodes = 'attribution' | 'bibliography_item' | 'bibliography_element' | 'bibliography_section' | 'blockquote_element' | 'list' | 'caption' | 'caption_title' | 'comment' | 'comments' | 'citation' | 'cross_reference' | 'doc' | 'equation' | 'equation_element' | 'figcaption' | 'figure' | 'graphical_abstract_section' | 'figure_element' | 'footnote' | 'footnotes_element' | 'footnotes_section' | 'hard_break' | 'highlight_marker' | 'inline_equation' | 'inline_footnote' | 'keyword' | 'keywords_element' | 'keyword_group' | 'keywords' | 'link' | 'list_item' | 'listing' | 'listing_element' | 'manuscript' | 'abstracts' | 'body' | 'backmatter' | 'missing_figure' | 'paragraph' | 'placeholder' | 'placeholder_element' | 'pullquote_element' | 'section' | 'section_label' | 'section_title' | 'section_title_plain' | 'table' | 'table_cell' | 'table_element' | 'table_row' | 'table_colgroup' | 'table_col' | 'table_header' | 'text' | 'affiliation' | 'contributor' | 'table_element_footer' | 'title' | 'affiliations' | 'contributors' | 'supplements' | 'supplement' | 'author_notes' | 'corresp' | 'general_table_footnote' | 'box_element' | 'awards' | 'award';
20
+ export type Nodes = 'attribution' | 'bibliography_item' | 'bibliography_element' | 'bibliography_section' | 'blockquote_element' | 'list' | 'caption' | 'caption_title' | 'comment' | 'comments' | 'citation' | 'cross_reference' | 'doc' | 'equation' | 'equation_element' | 'figcaption' | 'figure' | 'graphical_abstract_section' | 'figure_element' | 'footnote' | 'footnotes_element' | 'footnotes_section' | 'hard_break' | 'highlight_marker' | 'inline_equation' | 'inline_footnote' | 'keyword' | 'keywords_element' | 'keyword_group' | 'keywords' | 'link' | 'list_item' | 'listing' | 'listing_element' | 'manuscript' | 'abstracts' | 'body' | 'backmatter' | 'missing_figure' | 'paragraph' | 'placeholder' | 'placeholder_element' | 'pullquote_element' | 'section' | 'section_label' | 'section_title' | 'section_title_plain' | 'table' | 'table_cell' | 'table_element' | 'table_row' | 'table_colgroup' | 'table_col' | 'table_header' | 'text' | 'affiliation' | 'contributor' | 'table_element_footer' | 'title' | 'affiliations' | 'contributors' | 'supplements' | 'supplement' | 'author_notes' | 'corresp' | 'general_table_footnote' | 'box_element' | 'awards' | 'award' | 'embed';
21
21
  export type ManuscriptSchema = Schema<Nodes, Marks>;
22
22
  export type ManuscriptEditorState = EditorState;
23
23
  export type ManuscriptEditorView = EditorView;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.21";
1
+ export declare const VERSION = "3.0.22";
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": "3.0.21",
4
+ "version": "3.0.22",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",