@manuscripts/transform 2.1.5-LEAN-3376-1 → 2.1.6
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.
|
@@ -1300,10 +1300,7 @@ class JATSExporter {
|
|
|
1300
1300
|
if (parsedParagraph) {
|
|
1301
1301
|
const paragraphEl = this.document.createElement('p');
|
|
1302
1302
|
paragraphEl.innerHTML = parsedParagraph.innerHTML;
|
|
1303
|
-
|
|
1304
|
-
if (value) {
|
|
1305
|
-
paragraphEl.setAttribute('id', value);
|
|
1306
|
-
}
|
|
1303
|
+
paragraphEl.setAttribute('id', normalizeID(paragraph._id));
|
|
1307
1304
|
element.appendChild(paragraphEl);
|
|
1308
1305
|
}
|
|
1309
1306
|
};
|
|
@@ -62,7 +62,6 @@ exports.nodeTypesMap = new Map([
|
|
|
62
62
|
[schema_1.schema.nodes.title, json_schema_1.ObjectTypes.Titles],
|
|
63
63
|
[schema_1.schema.nodes.supplement, json_schema_1.ObjectTypes.Supplement],
|
|
64
64
|
[schema_1.schema.nodes.author_notes, json_schema_1.ObjectTypes.AuthorNotes],
|
|
65
|
-
[schema_1.schema.nodes.corresp, json_schema_1.ObjectTypes.Corresponding],
|
|
66
65
|
]);
|
|
67
66
|
const isExecutableNodeType = (type) => (0, schema_1.hasGroup)(type, schema_1.GROUP_EXECUTABLE);
|
|
68
67
|
exports.isExecutableNodeType = isExecutableNodeType;
|
|
@@ -1292,10 +1292,7 @@ export class JATSExporter {
|
|
|
1292
1292
|
if (parsedParagraph) {
|
|
1293
1293
|
const paragraphEl = this.document.createElement('p');
|
|
1294
1294
|
paragraphEl.innerHTML = parsedParagraph.innerHTML;
|
|
1295
|
-
|
|
1296
|
-
if (value) {
|
|
1297
|
-
paragraphEl.setAttribute('id', value);
|
|
1298
|
-
}
|
|
1295
|
+
paragraphEl.setAttribute('id', normalizeID(paragraph._id));
|
|
1299
1296
|
element.appendChild(paragraphEl);
|
|
1300
1297
|
}
|
|
1301
1298
|
};
|
|
@@ -59,7 +59,6 @@ export const nodeTypesMap = new Map([
|
|
|
59
59
|
[schema.nodes.title, ObjectTypes.Titles],
|
|
60
60
|
[schema.nodes.supplement, ObjectTypes.Supplement],
|
|
61
61
|
[schema.nodes.author_notes, ObjectTypes.AuthorNotes],
|
|
62
|
-
[schema.nodes.corresp, ObjectTypes.Corresponding],
|
|
63
62
|
]);
|
|
64
63
|
export const isExecutableNodeType = (type) => hasGroup(type, GROUP_EXECUTABLE);
|
|
65
64
|
export const isElementNodeType = (type) => hasGroup(type, GROUP_ELEMENT);
|
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.
|
|
4
|
+
"version": "2.1.6",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"version": "yarn build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@manuscripts/json-schema": "^2.2.
|
|
33
|
-
"@manuscripts/library": "^1.3.
|
|
32
|
+
"@manuscripts/json-schema": "^2.2.6",
|
|
33
|
+
"@manuscripts/library": "^1.3.5",
|
|
34
34
|
"debug": "^4.3.4",
|
|
35
35
|
"jszip": "^3.10.1",
|
|
36
36
|
"mime": "^3.0.0",
|