@manuscripts/transform 2.6.0 → 2.6.1-LEAN-3966.1
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.
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/jats/{jats-exporter.js → exporter/jats-exporter.js} +305 -416
- package/dist/cjs/jats/{jats-versions.js → exporter/jats-versions.js} +1 -3
- package/dist/cjs/{transformer → jats/exporter}/labels.js +4 -4
- package/dist/cjs/{transformer/filename.js → jats/importer/create-article-node.js} +10 -9
- package/dist/cjs/jats/importer/jats-comments.js +32 -111
- package/dist/cjs/jats/importer/{jats-body-dom-parser.js → jats-dom-parser.js} +350 -10
- package/dist/cjs/jats/importer/jats-journal-meta-parser.js +11 -1
- package/dist/cjs/jats/importer/jats-parser-utils.js +76 -9
- package/dist/cjs/jats/importer/jats-transformations.js +397 -0
- package/dist/cjs/jats/importer/parse-jats-article.js +44 -101
- package/dist/cjs/jats/index.js +7 -7
- package/dist/cjs/{transformer/models.js → lib/deafults.js} +3 -1
- package/dist/cjs/lib/utils.js +3 -1
- package/dist/cjs/schema/nodes/highlight_marker.js +0 -4
- package/dist/cjs/transformer/id.js +1 -5
- package/dist/cjs/transformer/index.js +0 -18
- package/dist/cjs/version.js +1 -1
- package/dist/es/index.js +5 -5
- package/dist/es/jats/{jats-exporter.js → exporter/jats-exporter.js} +300 -411
- package/dist/es/jats/{jats-versions.js → exporter/jats-versions.js} +0 -1
- package/dist/es/{transformer → jats/exporter}/labels.js +4 -4
- package/dist/{cjs/transformer/model-map.js → es/jats/importer/create-article-node.js} +8 -10
- package/dist/es/jats/importer/jats-comments.js +32 -107
- package/dist/es/jats/importer/{jats-body-dom-parser.js → jats-dom-parser.js} +350 -10
- package/dist/es/jats/importer/jats-journal-meta-parser.js +9 -0
- package/dist/es/jats/importer/jats-parser-utils.js +78 -11
- package/dist/es/jats/importer/jats-transformations.js +377 -0
- package/dist/es/jats/importer/parse-jats-article.js +44 -99
- package/dist/es/jats/index.js +5 -3
- package/dist/{types/transformer/timestamp.d.ts → es/lib/deafults.js} +2 -2
- package/dist/es/lib/utils.js +1 -0
- package/dist/es/schema/nodes/highlight_marker.js +0 -4
- package/dist/es/transformer/id.js +0 -3
- package/dist/es/transformer/index.js +0 -16
- package/dist/es/version.js +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/jats/{jats-exporter.d.ts → exporter/jats-exporter.d.ts} +16 -29
- package/dist/types/jats/{jats-versions.d.ts → exporter/jats-versions.d.ts} +0 -1
- package/dist/types/{transformer → jats/exporter}/labels.d.ts +2 -2
- package/dist/{es/transformer/footnote-category.js → types/jats/importer/create-article-node.d.ts} +3 -2
- package/dist/types/jats/importer/jats-comments.d.ts +2 -15
- package/dist/types/jats/importer/{jats-body-dom-parser.d.ts → jats-dom-parser.d.ts} +1 -1
- package/dist/types/jats/importer/jats-journal-meta-parser.d.ts +9 -0
- package/dist/types/jats/importer/jats-parser-utils.d.ts +2 -2
- package/dist/types/jats/importer/jats-transformations.d.ts +33 -0
- package/dist/types/jats/importer/parse-jats-article.d.ts +12 -5
- package/dist/types/jats/index.d.ts +5 -3
- package/dist/types/jats/types.d.ts +1 -0
- package/dist/{es/transformer/models.js → types/lib/deafults.d.ts} +2 -2
- package/dist/types/lib/utils.d.ts +1 -0
- package/dist/types/schema/nodes/bibliography_item.d.ts +3 -3
- package/dist/types/schema/nodes/contributor.d.ts +10 -0
- package/dist/types/schema/nodes/highlight_marker.d.ts +0 -2
- package/dist/types/schema/nodes/keyword_group.d.ts +1 -0
- package/dist/types/schema/nodes/manuscript.d.ts +8 -7
- package/dist/types/schema/nodes/title.d.ts +0 -3
- package/dist/types/transformer/id.d.ts +0 -3
- package/dist/types/transformer/index.d.ts +0 -16
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -1
- package/dist/cjs/__tests__/data/project-dump.json +0 -825
- package/dist/cjs/jats/importer/index.js +0 -22
- package/dist/cjs/jats/importer/jats-front-parser.js +0 -321
- package/dist/cjs/jats/importer/jats-reference-parser.js +0 -130
- package/dist/cjs/jats/importer/jats-references.js +0 -34
- package/dist/cjs/transformer/__tests__/__helpers__/doc.js +0 -37
- package/dist/cjs/transformer/builders.js +0 -219
- package/dist/cjs/transformer/decode.js +0 -898
- package/dist/cjs/transformer/document-object-types.js +0 -31
- package/dist/cjs/transformer/encode.js +0 -674
- package/dist/cjs/transformer/footnote-category.js +0 -20
- package/dist/cjs/transformer/footnotes-order.js +0 -60
- package/dist/cjs/transformer/highlight-markers.js +0 -138
- package/dist/cjs/transformer/html.js +0 -400
- package/dist/cjs/transformer/manuscript-dependencies.js +0 -21
- package/dist/cjs/transformer/object-types.js +0 -57
- package/dist/cjs/transformer/project-bundle.js +0 -94
- package/dist/cjs/transformer/serializer.js +0 -23
- package/dist/cjs/transformer/timestamp.js +0 -20
- package/dist/cjs/transformer/update-identifiers.js +0 -93
- package/dist/es/__tests__/data/project-dump.json +0 -825
- package/dist/es/jats/importer/index.js +0 -16
- package/dist/es/jats/importer/jats-front-parser.js +0 -315
- package/dist/es/jats/importer/jats-reference-parser.js +0 -127
- package/dist/es/jats/importer/jats-references.js +0 -30
- package/dist/es/transformer/__tests__/__helpers__/doc.js +0 -29
- package/dist/es/transformer/builders.js +0 -186
- package/dist/es/transformer/decode.js +0 -888
- package/dist/es/transformer/document-object-types.js +0 -28
- package/dist/es/transformer/encode.js +0 -664
- package/dist/es/transformer/filename.js +0 -23
- package/dist/es/transformer/footnotes-order.js +0 -55
- package/dist/es/transformer/highlight-markers.js +0 -132
- package/dist/es/transformer/html.js +0 -393
- package/dist/es/transformer/manuscript-dependencies.js +0 -17
- package/dist/es/transformer/model-map.js +0 -22
- package/dist/es/transformer/object-types.js +0 -52
- package/dist/es/transformer/project-bundle.js +0 -85
- package/dist/es/transformer/serializer.js +0 -17
- package/dist/es/transformer/timestamp.js +0 -16
- package/dist/es/transformer/update-identifiers.js +0 -87
- package/dist/types/jats/importer/index.d.ts +0 -16
- package/dist/types/jats/importer/jats-front-parser.d.ts +0 -84
- package/dist/types/jats/importer/jats-reference-parser.d.ts +0 -19
- package/dist/types/jats/importer/jats-references.d.ts +0 -12
- package/dist/types/transformer/__tests__/__helpers__/doc.d.ts +0 -18
- package/dist/types/transformer/builders.d.ts +0 -61
- package/dist/types/transformer/decode.d.ts +0 -52
- package/dist/types/transformer/document-object-types.d.ts +0 -17
- package/dist/types/transformer/encode.d.ts +0 -29
- package/dist/types/transformer/filename.d.ts +0 -16
- package/dist/types/transformer/footnote-category.d.ts +0 -17
- package/dist/types/transformer/footnotes-order.d.ts +0 -22
- package/dist/types/transformer/highlight-markers.d.ts +0 -31
- package/dist/types/transformer/html.d.ts +0 -36
- package/dist/types/transformer/manuscript-dependencies.d.ts +0 -4
- package/dist/types/transformer/model-map.d.ts +0 -19
- package/dist/types/transformer/models.d.ts +0 -48
- package/dist/types/transformer/object-types.d.ts +0 -30
- package/dist/types/transformer/project-bundle.d.ts +0 -30
- package/dist/types/transformer/serializer.d.ts +0 -19
- package/dist/types/transformer/update-identifiers.d.ts +0 -23
- package/dist/types/types.d.ts +0 -2
- /package/dist/cjs/{types.js → jats/types.js} +0 -0
- /package/dist/es/{types.js → jats/types.js} +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { manuscriptIDTypes, ObjectTypes, } from '@manuscripts/json-schema';
|
|
17
|
-
export var ExtraObjectTypes;
|
|
18
|
-
(function (ExtraObjectTypes) {
|
|
19
|
-
ExtraObjectTypes["PlaceholderElement"] = "MPPlaceholderElement";
|
|
20
|
-
ExtraObjectTypes["GeneralTableFootnote"] = "MPGeneralTableFootnote";
|
|
21
|
-
})(ExtraObjectTypes || (ExtraObjectTypes = {}));
|
|
22
|
-
export const elementObjects = [
|
|
23
|
-
ObjectTypes.BibliographyElement,
|
|
24
|
-
ObjectTypes.EquationElement,
|
|
25
|
-
ObjectTypes.FigureElement,
|
|
26
|
-
ObjectTypes.FootnotesElement,
|
|
27
|
-
ObjectTypes.ListElement,
|
|
28
|
-
ObjectTypes.ListingElement,
|
|
29
|
-
ObjectTypes.ParagraphElement,
|
|
30
|
-
ObjectTypes.TableElement,
|
|
31
|
-
ObjectTypes.TOCElement,
|
|
32
|
-
];
|
|
33
|
-
export const manuscriptObjects = [
|
|
34
|
-
ObjectTypes.Affiliation,
|
|
35
|
-
ObjectTypes.Citation,
|
|
36
|
-
ObjectTypes.CommentAnnotation,
|
|
37
|
-
ObjectTypes.Contributor,
|
|
38
|
-
ObjectTypes.Footnote,
|
|
39
|
-
ObjectTypes.Section,
|
|
40
|
-
].concat(elementObjects);
|
|
41
|
-
export const isManuscriptModel = (model) => {
|
|
42
|
-
if (!model.objectType) {
|
|
43
|
-
throw new Error('Model must have objectType');
|
|
44
|
-
}
|
|
45
|
-
return manuscriptIDTypes.has(model.objectType);
|
|
46
|
-
};
|
|
47
|
-
export const hasObjectType = (objectType) => (model) => model.objectType === objectType;
|
|
48
|
-
export const isFigure = hasObjectType(ObjectTypes.Figure);
|
|
49
|
-
export const isManuscript = hasObjectType(ObjectTypes.Manuscript);
|
|
50
|
-
export const isTable = hasObjectType(ObjectTypes.Table);
|
|
51
|
-
export const isCommentAnnotation = hasObjectType(ObjectTypes.CommentAnnotation);
|
|
52
|
-
export const isKeyword = hasObjectType(ObjectTypes.Keyword);
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { ObjectTypes, } from '@manuscripts/json-schema';
|
|
17
|
-
import { Decoder } from './decode';
|
|
18
|
-
import { hasObjectType } from './object-types';
|
|
19
|
-
export const parseProjectBundle = (projectBundle, manuscriptID) => {
|
|
20
|
-
const manuscriptData = manuscriptID
|
|
21
|
-
? projectBundle.data.filter((doc) => !doc.manuscriptID || doc.manuscriptID === manuscriptID)
|
|
22
|
-
: projectBundle.data;
|
|
23
|
-
const modelMap = new Map();
|
|
24
|
-
for (const component of manuscriptData) {
|
|
25
|
-
modelMap.set(component._id, component);
|
|
26
|
-
}
|
|
27
|
-
const decoder = new Decoder(modelMap);
|
|
28
|
-
const doc = decoder.createArticleNode();
|
|
29
|
-
return { doc, modelMap };
|
|
30
|
-
};
|
|
31
|
-
const isManuscript = hasObjectType(ObjectTypes.Manuscript);
|
|
32
|
-
export const findManuscript = (modelMap) => {
|
|
33
|
-
for (const model of modelMap.values()) {
|
|
34
|
-
if (isManuscript(model)) {
|
|
35
|
-
return model;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
throw new Error('No manuscript found');
|
|
39
|
-
};
|
|
40
|
-
const isJournal = hasObjectType(ObjectTypes.Journal);
|
|
41
|
-
export const findJournal = (modelMap) => {
|
|
42
|
-
for (const model of modelMap.values()) {
|
|
43
|
-
if (isJournal(model)) {
|
|
44
|
-
return model;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
const isManuscriptModel = (model) => 'manuscriptID' in model;
|
|
50
|
-
export const findManuscriptModelByType = (modelMap, manuscript, objectType) => {
|
|
51
|
-
for (const model of modelMap.values()) {
|
|
52
|
-
if (model.objectType === objectType &&
|
|
53
|
-
isManuscriptModel(model) &&
|
|
54
|
-
manuscript._id === model.manuscriptID) {
|
|
55
|
-
return model;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
export const findManuscriptById = (modelMap, manuscriptID) => {
|
|
60
|
-
const manuscript = modelMap.get(manuscriptID);
|
|
61
|
-
if (manuscript && isManuscript(manuscript)) {
|
|
62
|
-
return manuscript;
|
|
63
|
-
}
|
|
64
|
-
throw new Error(`There is no manuscript found for the following _id (${manuscriptID})`);
|
|
65
|
-
};
|
|
66
|
-
const isTitle = hasObjectType(ObjectTypes.Titles);
|
|
67
|
-
export const findTitles = (modelMap) => {
|
|
68
|
-
for (const model of modelMap.values()) {
|
|
69
|
-
if (isTitle(model)) {
|
|
70
|
-
return model;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const defaultTitle = {
|
|
74
|
-
_id: 'MPTitles:8EB79C14-9F61-483A-902F-A0B8EF5973C1',
|
|
75
|
-
createdAt: 1538472121.690101,
|
|
76
|
-
updatedAt: 1538472121.690101,
|
|
77
|
-
objectType: 'MPTitles',
|
|
78
|
-
title: 'main title',
|
|
79
|
-
subtitle: 'subtitle',
|
|
80
|
-
runningTitle: 'running title',
|
|
81
|
-
manuscriptID: 'MPManuscript:E3830344-E77B-42BA-BD77-3E95489712A0',
|
|
82
|
-
containerID: 'MPProject:1',
|
|
83
|
-
};
|
|
84
|
-
return defaultTitle;
|
|
85
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 serializeToString from 'w3c-xmlserializer';
|
|
17
|
-
export const xmlSerializer = { serializeToString };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 timestamp = () => Math.floor(Date.now() / 1000);
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2020 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 { generateID } from './id';
|
|
17
|
-
export const updateIdentifiers = async (data) => {
|
|
18
|
-
const idMap = new Map();
|
|
19
|
-
const updateIDs = (model) => {
|
|
20
|
-
const { _id, objectType } = model;
|
|
21
|
-
if (!objectType || !_id || !_id.match(/^MP.+:.+/)) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (idMap.has(_id)) {
|
|
25
|
-
model._id = idMap.get(_id);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
model._id = generateID(objectType);
|
|
29
|
-
idMap.set(_id, model._id);
|
|
30
|
-
}
|
|
31
|
-
for (const value of Object.values(model)) {
|
|
32
|
-
if (Array.isArray(value)) {
|
|
33
|
-
value.forEach(updateIDs);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
updateIDs(value);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const replaceContent = (content) => {
|
|
41
|
-
content = content.replace(/MP\w+:[\w-]+/g, (match) => {
|
|
42
|
-
const value = idMap.get(match);
|
|
43
|
-
return value !== null && value !== void 0 ? value : match;
|
|
44
|
-
});
|
|
45
|
-
content = content.replace(/MP\w+_[\w-]+/g, (match) => {
|
|
46
|
-
const value = idMap.get(match.replace('_', ':'));
|
|
47
|
-
return value ? value.replace(':', '_') : match;
|
|
48
|
-
});
|
|
49
|
-
return content;
|
|
50
|
-
};
|
|
51
|
-
const updateContent = (model) => {
|
|
52
|
-
for (const [key, value] of Object.entries(model)) {
|
|
53
|
-
if (typeof value === 'object') {
|
|
54
|
-
updateContent(value);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof value === 'string') {
|
|
57
|
-
model[key] = replaceContent(value);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
for (const item of data) {
|
|
62
|
-
updateIDs(item);
|
|
63
|
-
}
|
|
64
|
-
for (const item of data) {
|
|
65
|
-
updateContent(item);
|
|
66
|
-
}
|
|
67
|
-
return { data, idMap };
|
|
68
|
-
};
|
|
69
|
-
export const updateAttachmentPath = (oldPath, idMap) => {
|
|
70
|
-
const matches = oldPath.match(/^Data\/([^.]+)(.*)/);
|
|
71
|
-
if (matches) {
|
|
72
|
-
const [, prefix, suffix] = matches;
|
|
73
|
-
const id = idMap.get(prefix.replace('_', ':'));
|
|
74
|
-
if (id) {
|
|
75
|
-
const newPrefix = id.replace(':', '_');
|
|
76
|
-
return `Data/${newPrefix}${suffix}`;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
export const updateAttachments = async (zip, idMap) => {
|
|
81
|
-
for (const [oldPath, entry] of Object.entries(zip.files)) {
|
|
82
|
-
const newPath = updateAttachmentPath(oldPath, idMap);
|
|
83
|
-
if (newPath) {
|
|
84
|
-
zip.file(newPath, await entry.async('blob')).remove(oldPath);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2020 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 { parseJATSFront, parseJATSBody, parseJATSArticle, } from './parse-jats-article';
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2020 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 declare const jatsFrontParser: {
|
|
17
|
-
parseTitles(element: Element | null, createElement: (tagName: string) => HTMLElement): import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Titles>;
|
|
18
|
-
parseDOI(front: Element | null): string | undefined;
|
|
19
|
-
parseCounts(counts: Element | null): {
|
|
20
|
-
wordCount: number | undefined;
|
|
21
|
-
figureCount: number | undefined;
|
|
22
|
-
tableCount: number | undefined;
|
|
23
|
-
equationCount: number | undefined;
|
|
24
|
-
referencesCount: number | undefined;
|
|
25
|
-
genericCounts: {
|
|
26
|
-
count: number | undefined;
|
|
27
|
-
countType: string;
|
|
28
|
-
}[] | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
parseJournal(element: Element | null): {
|
|
31
|
-
title: string | undefined;
|
|
32
|
-
templateID?: string | undefined;
|
|
33
|
-
ISSNs: {
|
|
34
|
-
[k: string]: any;
|
|
35
|
-
ISSN: string;
|
|
36
|
-
publicationType?: string | undefined;
|
|
37
|
-
}[];
|
|
38
|
-
abbreviatedTitles: {
|
|
39
|
-
[k: string]: any;
|
|
40
|
-
abbreviatedTitle: string;
|
|
41
|
-
abbrevType?: string | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
journalIdentifiers: {
|
|
44
|
-
[k: string]: any;
|
|
45
|
-
journalID: string;
|
|
46
|
-
journalIDType?: string | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
submittable?: boolean | undefined;
|
|
49
|
-
publisherName: string | undefined;
|
|
50
|
-
_id: string;
|
|
51
|
-
objectType: string;
|
|
52
|
-
contributions?: import("@manuscripts/json-schema/dist/types").Contribution[] | undefined;
|
|
53
|
-
};
|
|
54
|
-
parseDates(historyNode: Element | null): {
|
|
55
|
-
acceptanceDate?: number | undefined;
|
|
56
|
-
correctionDate?: number | undefined;
|
|
57
|
-
retractionDate?: number | undefined;
|
|
58
|
-
revisionRequestDate?: number | undefined;
|
|
59
|
-
revisionReceiveDate?: number | undefined;
|
|
60
|
-
receiveDate?: number | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
parseAffiliations(elements: Element[]): {
|
|
63
|
-
affiliations: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Affiliation>[];
|
|
64
|
-
affiliationIDs: Map<string, string>;
|
|
65
|
-
};
|
|
66
|
-
parseAuthorNotes(element: Element | null): {
|
|
67
|
-
footnotes: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Footnote>[];
|
|
68
|
-
footnoteIDs: Map<string, string>;
|
|
69
|
-
authorNotesParagraphs: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").ParagraphElement>[];
|
|
70
|
-
authorNotes: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").AuthorNotes>[];
|
|
71
|
-
correspondingIDs: Map<string, string>;
|
|
72
|
-
correspondingList: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Corresponding>[];
|
|
73
|
-
};
|
|
74
|
-
parseParagraphs(elements: Element[]): import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").ParagraphElement>[];
|
|
75
|
-
parseFootnotes(elements: Element[]): {
|
|
76
|
-
footnotes: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Footnote>[];
|
|
77
|
-
footnoteIDs: Map<string, string>;
|
|
78
|
-
};
|
|
79
|
-
parseCorresp(elements: Element[]): {
|
|
80
|
-
correspondingList: import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Corresponding>[];
|
|
81
|
-
correspondingIDs: Map<string, string>;
|
|
82
|
-
};
|
|
83
|
-
parseContributors(elements: Element[], affiliationIDs: Map<string, string>, footnoteIDs: Map<string, string>, correspondingIDs: Map<string, string>): import("../../transformer").Build<import("@manuscripts/json-schema/dist/types").Contributor>[];
|
|
84
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2020 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 { References } from './jats-references';
|
|
17
|
-
export declare const jatsReferenceParser: {
|
|
18
|
-
parseReferences(elements: Element[], createElement: (tagName: string) => HTMLElement): References;
|
|
19
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BibliographyItem } from '@manuscripts/json-schema';
|
|
2
|
-
import { JATSComment } from './jats-comments';
|
|
3
|
-
export declare class References {
|
|
4
|
-
items: Map<string, BibliographyItem>;
|
|
5
|
-
IDs: Map<string, string>;
|
|
6
|
-
comments: Map<string, JATSComment[]>;
|
|
7
|
-
constructor();
|
|
8
|
-
add(item: BibliographyItem, id: string | null, comments: JATSComment[]): void;
|
|
9
|
-
getBibliographyItems(): BibliographyItem[];
|
|
10
|
-
getComments(id: string): JATSComment[];
|
|
11
|
-
private getValue;
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { Model } from '@manuscripts/json-schema';
|
|
17
|
-
export declare const createTestModelMap: () => Map<string, Model>;
|
|
18
|
-
export declare const createTestDoc: () => import("prosemirror-model").Node;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { Affiliation, Attribution, AuthorNotes, BibliographicDate, BibliographicName, BibliographyElement, BibliographyItem, Color, CommentAnnotation, Contribution, Contributor, ContributorRole, Corresponding, ElementsOrder, EmbeddedModel, Figure, Footnote, FootnotesOrder, Journal, Keyword, KeywordGroup, Manuscript, ManuscriptNote, ObjectTypes, ParagraphElement, Project, Section, Supplement, Titles } from '@manuscripts/json-schema';
|
|
17
|
-
import { FootnotesOrderIndexList } from './footnotes-order';
|
|
18
|
-
import { CommentSelector, ManuscriptModel, ModelAttachment } from './models';
|
|
19
|
-
export type Build<T> = Pick<T, Exclude<keyof T, keyof ManuscriptModel>> & {
|
|
20
|
-
_id: string;
|
|
21
|
-
objectType: string;
|
|
22
|
-
contributions?: Contribution[];
|
|
23
|
-
};
|
|
24
|
-
export type BuildEmbedded<T extends EmbeddedModel, O> = Pick<T, Exclude<keyof T, keyof ManuscriptModel>> & {
|
|
25
|
-
_id: string;
|
|
26
|
-
objectType: O;
|
|
27
|
-
};
|
|
28
|
-
export declare const buildProject: (owner: string) => Build<Project>;
|
|
29
|
-
export declare const buildManuscript: () => Build<Manuscript>;
|
|
30
|
-
export type ContributorRoleType = 'author';
|
|
31
|
-
export declare const buildContributor: (bibliographicName: BibliographicName, role?: ContributorRoleType, priority?: number, userID?: string, invitationID?: string) => Build<Contributor>;
|
|
32
|
-
export declare const buildBibliographyItem: (data: Partial<Build<BibliographyItem>>) => Build<BibliographyItem>;
|
|
33
|
-
export declare const buildBibliographicName: (data: Partial<BibliographicName>) => BuildEmbedded<BibliographicName, ObjectTypes.BibliographicName>;
|
|
34
|
-
export declare const buildBibliographicDate: (data: Partial<BibliographicDate>) => BuildEmbedded<BibliographicDate, ObjectTypes.BibliographicDate>;
|
|
35
|
-
export declare const buildBibliographyElement: (bibliographyItems: BibliographyItem[]) => Build<BibliographyElement>;
|
|
36
|
-
export declare const buildKeyword: (name: string) => Build<Keyword>;
|
|
37
|
-
export declare const buildKeywordGroup: (attributes: {
|
|
38
|
-
type?: string;
|
|
39
|
-
title?: string;
|
|
40
|
-
label?: string;
|
|
41
|
-
}) => Build<KeywordGroup>;
|
|
42
|
-
export declare const buildFigure: (blob: Blob) => Build<Figure & ModelAttachment>;
|
|
43
|
-
export declare const buildAffiliation: (institution: string, priority?: number) => Build<Affiliation>;
|
|
44
|
-
export declare const buildSupplementaryMaterial: (title: string, href: string) => Build<Supplement>;
|
|
45
|
-
export declare const buildComment: (target: string, contents?: string, selector?: CommentSelector, contributions?: Contribution[], annotationColor?: string) => Build<CommentAnnotation>;
|
|
46
|
-
export declare const buildNote: (target: string, source: 'EMAIL' | 'EDITOR' | 'DASHBOARD', contents?: string) => Build<ManuscriptNote>;
|
|
47
|
-
export declare const buildFootnote: (containingObject: string, contents: string, kind?: 'footnote' | 'endnote') => Build<Footnote>;
|
|
48
|
-
export declare const buildAuthorNotes: (containedObjectIDs: string[]) => Build<AuthorNotes>;
|
|
49
|
-
export declare const buildFootnotesOrder: (footnotesList: FootnotesOrderIndexList, containedObjectID: string) => Build<FootnotesOrder>;
|
|
50
|
-
export declare const buildCorresp: (contents: string) => Build<Corresponding>;
|
|
51
|
-
export declare const buildSection: (priority?: number, path?: string[]) => Build<Section>;
|
|
52
|
-
export declare const buildParagraph: (innerHTML?: string) => Build<ParagraphElement>;
|
|
53
|
-
export declare const buildColor: (value: string, priority: number) => Build<Color>;
|
|
54
|
-
export declare const buildContribution: (profileID: string) => Contribution;
|
|
55
|
-
export declare const buildContributorRole: (name: string) => Build<ContributorRole>;
|
|
56
|
-
export declare const buildAttribution: () => Build<Attribution>;
|
|
57
|
-
export declare const buildJournal: () => Build<Journal>;
|
|
58
|
-
export type AuxiliaryObjects = 'MPFigureElement' | 'MPTableElement' | 'MPListingElement' | 'MPEquationElement';
|
|
59
|
-
export declare const auxiliaryObjectTypes: Set<import("prosemirror-model").NodeType>;
|
|
60
|
-
export declare const buildElementsOrder: (elementType: AuxiliaryObjects) => Build<ElementsOrder>;
|
|
61
|
-
export declare const buildTitles: (title?: string) => Build<Titles>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { CommentAnnotation, Model, Section } from '@manuscripts/json-schema';
|
|
17
|
-
import { ParseOptions } from 'prosemirror-model';
|
|
18
|
-
import { ManuscriptNode } from '../schema';
|
|
19
|
-
export declare const getModelData: <T extends Model>(model: Model) => T;
|
|
20
|
-
export declare const getModelsByType: <T extends Model>(modelMap: Map<string, Model>, objectType: string) => T[];
|
|
21
|
-
export declare const sortSectionsByPriority: (a: Section, b: Section) => number;
|
|
22
|
-
export declare class Decoder {
|
|
23
|
-
private readonly modelMap;
|
|
24
|
-
private readonly allowMissingElements;
|
|
25
|
-
private comments;
|
|
26
|
-
private creators;
|
|
27
|
-
private createTitleNode;
|
|
28
|
-
private createAffiliationsNode;
|
|
29
|
-
private createContributorsNode;
|
|
30
|
-
private createAuthorNotesNode;
|
|
31
|
-
private createKeywordsNode;
|
|
32
|
-
private createSupplementsNode;
|
|
33
|
-
private createCommentsNode;
|
|
34
|
-
private createContentSections;
|
|
35
|
-
private createCommentNodes;
|
|
36
|
-
private getComments;
|
|
37
|
-
private extractListing;
|
|
38
|
-
constructor(modelMap: Map<string, Model>, allowMissingElements?: boolean);
|
|
39
|
-
decode: (model: Model) => ManuscriptNode | null;
|
|
40
|
-
getModel: <T extends Model>(id: string) => T | undefined;
|
|
41
|
-
createArticleNode: (manuscriptID?: string) => ManuscriptNode;
|
|
42
|
-
addGeneratedLabels: (sections: Section[]) => Section[];
|
|
43
|
-
parseContents: (contents: string, wrapper?: string, commentAnnotations?: CommentAnnotation[], options?: ParseOptions) => ManuscriptNode;
|
|
44
|
-
private getManuscriptID;
|
|
45
|
-
private getManuscript;
|
|
46
|
-
private getBoxElementFigCaption;
|
|
47
|
-
private getFigcaption;
|
|
48
|
-
private createTable;
|
|
49
|
-
private createTableColGroup;
|
|
50
|
-
private createTableElementFooter;
|
|
51
|
-
private createListing;
|
|
52
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { ObjectTypes } from '@manuscripts/json-schema';
|
|
17
|
-
export declare const documentObjectTypes: ObjectTypes[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 { Model } from '@manuscripts/json-schema';
|
|
17
|
-
import { ManuscriptNode } from '../schema';
|
|
18
|
-
import { CommentMarker } from './highlight-markers';
|
|
19
|
-
export declare const inlineContents: (node: ManuscriptNode) => string;
|
|
20
|
-
export declare const inlineText: (node: ManuscriptNode) => string;
|
|
21
|
-
export declare const modelFromNode: (node: ManuscriptNode, parent: ManuscriptNode, path: string[], priority: PrioritizedValue) => {
|
|
22
|
-
model: Model;
|
|
23
|
-
markers: CommentMarker[];
|
|
24
|
-
};
|
|
25
|
-
interface PrioritizedValue {
|
|
26
|
-
value: number;
|
|
27
|
-
}
|
|
28
|
-
export declare const encode: (node: ManuscriptNode) => Map<string, Model>;
|
|
29
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 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 declare const generateAttachmentFilename: (id: string, contentType?: string) => string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2021 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 type FootnoteType = 'con' | 'conflict' | 'deceased' | 'equal' | 'financial-disclosure' | 'present-address' | 'presented-at' | 'previously-at' | 'supplementary-material' | 'supported-by';
|
|
17
|
-
export declare const buildFootnoteCategory: (category: string) => string | undefined;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2022 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 { FootnotesOrder } from '@manuscripts/json-schema';
|
|
17
|
-
export type FootnotesOrderIndexList = {
|
|
18
|
-
id: string;
|
|
19
|
-
index: number;
|
|
20
|
-
}[];
|
|
21
|
-
export declare const createOrderedFootnotesIDs: (doc: Document) => string[];
|
|
22
|
-
export declare const handleFootnotesOrder: (orderedFootnotesIDs: Array<string>, replacements: Map<string, string>, footnotesOrder: FootnotesOrder) => void;
|