@manuscripts/transform 3.0.55 → 3.0.56
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/jats/exporter/jats-exporter.js +12 -6
- package/dist/cjs/jats/importer/jats-transformations.js +10 -7
- package/dist/cjs/jats/importer/parse-jats-article.js +1 -1
- package/dist/cjs/schema/migration/migration-scripts/3.0.56.js +83 -0
- package/dist/cjs/schema/migration/migration-scripts/index.js +2 -0
- package/dist/cjs/schema/nodes/embed.js +1 -1
- package/dist/cjs/schema/nodes/figure_element.js +1 -1
- package/dist/cjs/schema/nodes/image_element.js +1 -1
- package/dist/cjs/schema/nodes/table_element.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/jats/exporter/jats-exporter.js +12 -6
- package/dist/es/jats/importer/jats-transformations.js +8 -5
- package/dist/es/jats/importer/parse-jats-article.js +2 -2
- package/dist/es/schema/migration/migration-scripts/3.0.56.js +81 -0
- package/dist/es/schema/migration/migration-scripts/index.js +2 -0
- package/dist/es/schema/nodes/embed.js +1 -1
- package/dist/es/schema/nodes/figure_element.js +1 -1
- package/dist/es/schema/nodes/image_element.js +1 -1
- package/dist/es/schema/nodes/table_element.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/types/jats/importer/jats-transformations.d.ts +1 -1
- package/dist/types/schema/migration/migration-scripts/3.0.56.d.ts +10 -0
- package/dist/types/schema/migration/migration-scripts/index.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -563,14 +563,20 @@ class JATSExporter {
|
|
|
563
563
|
this.createSerializer = () => {
|
|
564
564
|
const nodes = {
|
|
565
565
|
alt_text: (node) => {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
if (node.textContent) {
|
|
567
|
+
const altText = this.createElement('alt-text');
|
|
568
|
+
altText.textContent = node.textContent;
|
|
569
|
+
return altText;
|
|
570
|
+
}
|
|
571
|
+
return '';
|
|
569
572
|
},
|
|
570
573
|
long_desc: (node) => {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
+
if (node.textContent) {
|
|
575
|
+
const longDesc = this.createElement('long-desc');
|
|
576
|
+
longDesc.textContent = node.textContent;
|
|
577
|
+
return longDesc;
|
|
578
|
+
}
|
|
579
|
+
return '';
|
|
574
580
|
},
|
|
575
581
|
attachment: () => '',
|
|
576
582
|
attachments: () => '',
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.fixTables = exports.createAttachments = exports.orderTableFootnote = exports.moveReferencesToBackmatter = exports.
|
|
18
|
+
exports.fixTables = exports.createAttachments = exports.orderTableFootnote = exports.moveReferencesToBackmatter = exports.createAccessibilityItems = exports.createSupplementaryMaterialsSection = exports.createKeywordsSection = exports.moveCaptionsToEnd = exports.createBackmatter = exports.createAbstracts = exports.createBody = exports.createBoxedElementSection = exports.moveAbstracts = exports.moveAffiliations = exports.moveContributors = exports.moveAwards = exports.moveAuthorNotes = exports.createTitles = exports.addMissingCaptions = void 0;
|
|
19
19
|
const deafults_1 = require("../../lib/deafults");
|
|
20
20
|
const jats_parser_utils_1 = require("./jats-parser-utils");
|
|
21
21
|
const removeNodeFromParent = (node) => node.parentNode && node.parentNode.removeChild(node);
|
|
@@ -341,14 +341,17 @@ const createSupplementaryMaterialsSection = (document, body, createElement) => {
|
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
exports.createSupplementaryMaterialsSection = createSupplementaryMaterialsSection;
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
344
|
+
const createAccessibilityItems = (doc, createElement) => {
|
|
345
|
+
doc
|
|
346
|
+
.querySelectorAll('media, fig, table-wrap, graphic:not(fig graphic)')
|
|
347
|
+
.forEach((item) => {
|
|
348
|
+
const altText = item.querySelector('alt-text') || createElement('alt-text');
|
|
349
|
+
const longDesc = item.querySelector('long-desc') || createElement('long-desc');
|
|
350
|
+
item === null || item === void 0 ? void 0 : item.appendChild(altText);
|
|
351
|
+
item === null || item === void 0 ? void 0 : item.appendChild(longDesc);
|
|
349
352
|
});
|
|
350
353
|
};
|
|
351
|
-
exports.
|
|
354
|
+
exports.createAccessibilityItems = createAccessibilityItems;
|
|
352
355
|
const moveReferencesToBackmatter = (body, back, createElement) => {
|
|
353
356
|
const backmatter = body.querySelector('sec[sec-type="backmatter"]');
|
|
354
357
|
const refList = back.querySelector('ref-list');
|
|
@@ -54,7 +54,7 @@ const processJATS = (doc, sectionCategories) => {
|
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
(0, jats_transformations_1.moveReferencesToBackmatter)(body, back, createElement);
|
|
57
|
-
(0, jats_transformations_1.
|
|
57
|
+
(0, jats_transformations_1.createAccessibilityItems)(doc, createElement);
|
|
58
58
|
};
|
|
59
59
|
const createElementFn = (doc) => (tagName) => doc.createElement(tagName);
|
|
60
60
|
const parseJATSArticle = (doc, sectionCategories, template) => {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const transformer_1 = require("../../../transformer");
|
|
4
|
+
const index_1 = require("../../index");
|
|
5
|
+
class Migration3056 {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.fromVersion = '3.0.55';
|
|
8
|
+
this.toVersion = '3.0.66';
|
|
9
|
+
}
|
|
10
|
+
migrateNode(node) {
|
|
11
|
+
const targetNodeTypes = [
|
|
12
|
+
'figure_element',
|
|
13
|
+
'table_element',
|
|
14
|
+
'image_element',
|
|
15
|
+
'figure',
|
|
16
|
+
'embed',
|
|
17
|
+
];
|
|
18
|
+
const content = node.content;
|
|
19
|
+
if (!targetNodeTypes.includes(node.type) || !content) {
|
|
20
|
+
return node;
|
|
21
|
+
}
|
|
22
|
+
if (!content.some((node) => node.type === 'alt_text')) {
|
|
23
|
+
this.addAltText(node, content);
|
|
24
|
+
}
|
|
25
|
+
if (!content.some((node) => node.type === 'long_desc')) {
|
|
26
|
+
this.addLongDesc(content);
|
|
27
|
+
}
|
|
28
|
+
return node;
|
|
29
|
+
}
|
|
30
|
+
addAltText(node, content) {
|
|
31
|
+
const altText = index_1.schema.nodes.alt_text
|
|
32
|
+
.create({
|
|
33
|
+
id: (0, transformer_1.generateNodeID)(index_1.schema.nodes.alt_text),
|
|
34
|
+
})
|
|
35
|
+
.toJSON();
|
|
36
|
+
switch (node.type) {
|
|
37
|
+
case 'image_element':
|
|
38
|
+
if (content.some((n) => n.type === 'long_desc')) {
|
|
39
|
+
const longDescIndex = content.findIndex((n) => n.type === 'long_desc');
|
|
40
|
+
content.splice(longDescIndex, 0, altText);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
content.push(altText);
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case 'figure_element':
|
|
47
|
+
case 'embed': {
|
|
48
|
+
const figCaption = content.findIndex((n) => n.type === 'figcaption');
|
|
49
|
+
if (figCaption !== -1) {
|
|
50
|
+
content.splice(figCaption + 1, 0, altText);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
case 'table_element': {
|
|
55
|
+
const elementTypes = [
|
|
56
|
+
'table_element_footer',
|
|
57
|
+
'col_group',
|
|
58
|
+
'table',
|
|
59
|
+
'placeholder',
|
|
60
|
+
];
|
|
61
|
+
for (const type of elementTypes) {
|
|
62
|
+
const index = content.findIndex((n) => n.type === type);
|
|
63
|
+
if (index !== -1) {
|
|
64
|
+
content.splice(index + 1, 0, altText);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
addLongDesc(content) {
|
|
73
|
+
const altTextIndex = content.findIndex((n) => n.type === 'alt_text');
|
|
74
|
+
if (altTextIndex !== -1) {
|
|
75
|
+
content.splice(altTextIndex + 1, 0, index_1.schema.nodes.long_desc
|
|
76
|
+
.create({
|
|
77
|
+
id: (0, transformer_1.generateNodeID)(index_1.schema.nodes.long_desc),
|
|
78
|
+
})
|
|
79
|
+
.toJSON());
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.default = Migration3056;
|
|
@@ -26,6 +26,7 @@ const _3_0_30_1 = __importDefault(require("./3.0.30"));
|
|
|
26
26
|
const _3_0_31_1 = __importDefault(require("./3.0.31"));
|
|
27
27
|
const _3_0_41_1 = __importDefault(require("./3.0.41"));
|
|
28
28
|
const _3_0_55_1 = __importDefault(require("./3.0.55"));
|
|
29
|
+
const _3_0_56_1 = __importDefault(require("./3.0.56"));
|
|
29
30
|
const migrations = [
|
|
30
31
|
new _1_2_5_1.default(),
|
|
31
32
|
new _2_3_22_1.default(),
|
|
@@ -35,5 +36,6 @@ const migrations = [
|
|
|
35
36
|
new _3_0_31_1.default(),
|
|
36
37
|
new _3_0_41_1.default(),
|
|
37
38
|
new _3_0_55_1.default(),
|
|
39
|
+
new _3_0_56_1.default(),
|
|
38
40
|
];
|
|
39
41
|
exports.default = migrations;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.isEmbedNode = exports.embed = void 0;
|
|
19
19
|
exports.embed = {
|
|
20
|
-
content: 'figcaption alt_text
|
|
20
|
+
content: 'figcaption alt_text long_desc',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
23
23
|
dataTracked: { default: null },
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.isFigureElementNode = exports.figureElement = void 0;
|
|
19
19
|
exports.figureElement = {
|
|
20
|
-
content: '(paragraph | figure | missing_figure | placeholder)+ attribution* figcaption alt_text
|
|
20
|
+
content: '(paragraph | figure | missing_figure | placeholder)+ attribution* figcaption alt_text long_desc (listing | placeholder)',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
23
23
|
attribution: { default: undefined },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isImageElementNode = exports.imageElement = void 0;
|
|
4
4
|
exports.imageElement = {
|
|
5
|
-
content: 'figure? alt_text
|
|
5
|
+
content: 'figure? alt_text long_desc',
|
|
6
6
|
attrs: {
|
|
7
7
|
id: { default: '' },
|
|
8
8
|
dataTracked: { default: null },
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.isTableElementNode = exports.tableElement = void 0;
|
|
19
19
|
exports.tableElement = {
|
|
20
|
-
content: 'figcaption? (table | placeholder) table_colgroup? table_element_footer? alt_text
|
|
20
|
+
content: 'figcaption? (table | placeholder) table_colgroup? table_element_footer? alt_text long_desc (listing | placeholder)',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
23
23
|
dataTracked: { default: null },
|
package/dist/cjs/version.js
CHANGED
|
@@ -555,14 +555,20 @@ export class JATSExporter {
|
|
|
555
555
|
this.createSerializer = () => {
|
|
556
556
|
const nodes = {
|
|
557
557
|
alt_text: (node) => {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
if (node.textContent) {
|
|
559
|
+
const altText = this.createElement('alt-text');
|
|
560
|
+
altText.textContent = node.textContent;
|
|
561
|
+
return altText;
|
|
562
|
+
}
|
|
563
|
+
return '';
|
|
561
564
|
},
|
|
562
565
|
long_desc: (node) => {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
+
if (node.textContent) {
|
|
567
|
+
const longDesc = this.createElement('long-desc');
|
|
568
|
+
longDesc.textContent = node.textContent;
|
|
569
|
+
return longDesc;
|
|
570
|
+
}
|
|
571
|
+
return '';
|
|
566
572
|
},
|
|
567
573
|
attachment: () => '',
|
|
568
574
|
attachments: () => '',
|
|
@@ -324,11 +324,14 @@ export const createSupplementaryMaterialsSection = (document, body, createElemen
|
|
|
324
324
|
body.prepend(section);
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
-
export const
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
export const createAccessibilityItems = (doc, createElement) => {
|
|
328
|
+
doc
|
|
329
|
+
.querySelectorAll('media, fig, table-wrap, graphic:not(fig graphic)')
|
|
330
|
+
.forEach((item) => {
|
|
331
|
+
const altText = item.querySelector('alt-text') || createElement('alt-text');
|
|
332
|
+
const longDesc = item.querySelector('long-desc') || createElement('long-desc');
|
|
333
|
+
item === null || item === void 0 ? void 0 : item.appendChild(altText);
|
|
334
|
+
item === null || item === void 0 ? void 0 : item.appendChild(longDesc);
|
|
332
335
|
});
|
|
333
336
|
};
|
|
334
337
|
export const moveReferencesToBackmatter = (body, back, createElement) => {
|
|
@@ -18,7 +18,7 @@ import { markComments } from './jats-comments';
|
|
|
18
18
|
import { JATSDOMParser } from './jats-dom-parser';
|
|
19
19
|
import { parseJournal } from './jats-journal-meta-parser';
|
|
20
20
|
import { updateDocumentIDs } from './jats-parser-utils';
|
|
21
|
-
import { addMissingCaptions, createAbstracts, createAttachments, createBackmatter, createBody, createBoxedElementSection, createKeywordsSection, createSupplementaryMaterialsSection, createTitles, fixTables,
|
|
21
|
+
import { addMissingCaptions, createAbstracts, createAccessibilityItems, createAttachments, createBackmatter, createBody, createBoxedElementSection, createKeywordsSection, createSupplementaryMaterialsSection, createTitles, fixTables, moveAffiliations, moveAuthorNotes, moveAwards, moveCaptionsToEnd, moveContributors, moveReferencesToBackmatter, orderTableFootnote, } from './jats-transformations';
|
|
22
22
|
const processJATS = (doc, sectionCategories) => {
|
|
23
23
|
const createElement = createElementFn(doc);
|
|
24
24
|
markComments(doc);
|
|
@@ -51,7 +51,7 @@ const processJATS = (doc, sectionCategories) => {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
moveReferencesToBackmatter(body, back, createElement);
|
|
54
|
-
|
|
54
|
+
createAccessibilityItems(doc, createElement);
|
|
55
55
|
};
|
|
56
56
|
const createElementFn = (doc) => (tagName) => doc.createElement(tagName);
|
|
57
57
|
export const parseJATSArticle = (doc, sectionCategories, template) => {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { generateNodeID } from '../../../transformer';
|
|
2
|
+
import { schema } from '../../index';
|
|
3
|
+
class Migration3056 {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.fromVersion = '3.0.55';
|
|
6
|
+
this.toVersion = '3.0.66';
|
|
7
|
+
}
|
|
8
|
+
migrateNode(node) {
|
|
9
|
+
const targetNodeTypes = [
|
|
10
|
+
'figure_element',
|
|
11
|
+
'table_element',
|
|
12
|
+
'image_element',
|
|
13
|
+
'figure',
|
|
14
|
+
'embed',
|
|
15
|
+
];
|
|
16
|
+
const content = node.content;
|
|
17
|
+
if (!targetNodeTypes.includes(node.type) || !content) {
|
|
18
|
+
return node;
|
|
19
|
+
}
|
|
20
|
+
if (!content.some((node) => node.type === 'alt_text')) {
|
|
21
|
+
this.addAltText(node, content);
|
|
22
|
+
}
|
|
23
|
+
if (!content.some((node) => node.type === 'long_desc')) {
|
|
24
|
+
this.addLongDesc(content);
|
|
25
|
+
}
|
|
26
|
+
return node;
|
|
27
|
+
}
|
|
28
|
+
addAltText(node, content) {
|
|
29
|
+
const altText = schema.nodes.alt_text
|
|
30
|
+
.create({
|
|
31
|
+
id: generateNodeID(schema.nodes.alt_text),
|
|
32
|
+
})
|
|
33
|
+
.toJSON();
|
|
34
|
+
switch (node.type) {
|
|
35
|
+
case 'image_element':
|
|
36
|
+
if (content.some((n) => n.type === 'long_desc')) {
|
|
37
|
+
const longDescIndex = content.findIndex((n) => n.type === 'long_desc');
|
|
38
|
+
content.splice(longDescIndex, 0, altText);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
content.push(altText);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case 'figure_element':
|
|
45
|
+
case 'embed': {
|
|
46
|
+
const figCaption = content.findIndex((n) => n.type === 'figcaption');
|
|
47
|
+
if (figCaption !== -1) {
|
|
48
|
+
content.splice(figCaption + 1, 0, altText);
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
case 'table_element': {
|
|
53
|
+
const elementTypes = [
|
|
54
|
+
'table_element_footer',
|
|
55
|
+
'col_group',
|
|
56
|
+
'table',
|
|
57
|
+
'placeholder',
|
|
58
|
+
];
|
|
59
|
+
for (const type of elementTypes) {
|
|
60
|
+
const index = content.findIndex((n) => n.type === type);
|
|
61
|
+
if (index !== -1) {
|
|
62
|
+
content.splice(index + 1, 0, altText);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
addLongDesc(content) {
|
|
71
|
+
const altTextIndex = content.findIndex((n) => n.type === 'alt_text');
|
|
72
|
+
if (altTextIndex !== -1) {
|
|
73
|
+
content.splice(altTextIndex + 1, 0, schema.nodes.long_desc
|
|
74
|
+
.create({
|
|
75
|
+
id: generateNodeID(schema.nodes.long_desc),
|
|
76
|
+
})
|
|
77
|
+
.toJSON());
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export default Migration3056;
|
|
@@ -21,6 +21,7 @@ import Migration3030 from './3.0.30';
|
|
|
21
21
|
import Migration3031 from './3.0.31';
|
|
22
22
|
import Migration3041 from './3.0.41';
|
|
23
23
|
import Migration3055 from './3.0.55';
|
|
24
|
+
import Migration3056 from './3.0.56';
|
|
24
25
|
const migrations = [
|
|
25
26
|
new Migration125(),
|
|
26
27
|
new Migration2322(),
|
|
@@ -30,5 +31,6 @@ const migrations = [
|
|
|
30
31
|
new Migration3031(),
|
|
31
32
|
new Migration3041(),
|
|
32
33
|
new Migration3055(),
|
|
34
|
+
new Migration3056(),
|
|
33
35
|
];
|
|
34
36
|
export default migrations;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export const figureElement = {
|
|
17
|
-
content: '(paragraph | figure | missing_figure | placeholder)+ attribution* figcaption alt_text
|
|
17
|
+
content: '(paragraph | figure | missing_figure | placeholder)+ attribution* figcaption alt_text long_desc (listing | placeholder)',
|
|
18
18
|
attrs: {
|
|
19
19
|
id: { default: '' },
|
|
20
20
|
attribution: { default: undefined },
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export const tableElement = {
|
|
17
|
-
content: 'figcaption? (table | placeholder) table_colgroup? table_element_footer? alt_text
|
|
17
|
+
content: 'figcaption? (table | placeholder) table_colgroup? table_element_footer? alt_text long_desc (listing | placeholder)',
|
|
18
18
|
attrs: {
|
|
19
19
|
id: { default: '' },
|
|
20
20
|
dataTracked: { default: null },
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.
|
|
1
|
+
export const VERSION = "3.0.56";
|
|
@@ -29,7 +29,7 @@ export declare const createBackmatter: (doc: Document, body: Element, sectionCat
|
|
|
29
29
|
export declare const moveCaptionsToEnd: (body: Element) => void;
|
|
30
30
|
export declare const createKeywordsSection: (document: Document, body: Element, createElement: CreateElement) => void;
|
|
31
31
|
export declare const createSupplementaryMaterialsSection: (document: Document, body: Element, createElement: CreateElement) => void;
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const createAccessibilityItems: (doc: Document, createElement: CreateElement) => void;
|
|
33
33
|
export declare const moveReferencesToBackmatter: (body: Element, back: Element, createElement: CreateElement) => void;
|
|
34
34
|
export declare const orderTableFootnote: (doc: Document, body: Element) => void;
|
|
35
35
|
export declare const createAttachments: (doc: Document, createElement: CreateElement) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSONProsemirrorNode } from '../../../types';
|
|
2
|
+
import { MigrationScript } from '../migration-script';
|
|
3
|
+
declare class Migration3056 implements MigrationScript {
|
|
4
|
+
fromVersion: string;
|
|
5
|
+
toVersion: string;
|
|
6
|
+
migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
|
|
7
|
+
private addAltText;
|
|
8
|
+
private addLongDesc;
|
|
9
|
+
}
|
|
10
|
+
export default Migration3056;
|
|
@@ -21,5 +21,6 @@ import Migration3030 from './3.0.30';
|
|
|
21
21
|
import Migration3031 from './3.0.31';
|
|
22
22
|
import Migration3041 from './3.0.41';
|
|
23
23
|
import Migration3055 from './3.0.55';
|
|
24
|
-
|
|
24
|
+
import Migration3056 from './3.0.56';
|
|
25
|
+
declare const migrations: (Migration125 | Migration2322 | Migration3012 | Migration3021 | Migration3030 | Migration3031 | Migration3041 | Migration3055 | Migration3056)[];
|
|
25
26
|
export default migrations;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.56";
|
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.
|
|
4
|
+
"version": "3.0.56",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|