@manuscripts/transform 2.3.21 → 2.3.22-LEAN-3772.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.
|
@@ -61,33 +61,6 @@ exports.section = {
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
],
|
|
64
|
-
toDOM: (node) => {
|
|
65
|
-
const sectionNode = node;
|
|
66
|
-
const { id, category, titleSuppressed, generatedLabel, pageBreakStyle } = sectionNode.attrs;
|
|
67
|
-
const classnames = [];
|
|
68
|
-
if (titleSuppressed) {
|
|
69
|
-
classnames.push('title-suppressed');
|
|
70
|
-
}
|
|
71
|
-
if (typeof generatedLabel === 'undefined' || generatedLabel) {
|
|
72
|
-
classnames.push('generated-label');
|
|
73
|
-
}
|
|
74
|
-
if (pageBreakStyle === exports.PAGE_BREAK_BEFORE ||
|
|
75
|
-
pageBreakStyle === exports.PAGE_BREAK_BEFORE_AND_AFTER) {
|
|
76
|
-
classnames.push('page-break-before');
|
|
77
|
-
}
|
|
78
|
-
if (pageBreakStyle === exports.PAGE_BREAK_AFTER ||
|
|
79
|
-
pageBreakStyle === exports.PAGE_BREAK_BEFORE_AND_AFTER) {
|
|
80
|
-
classnames.push('page-break-after');
|
|
81
|
-
}
|
|
82
|
-
const attrs = { id };
|
|
83
|
-
if (classnames.length) {
|
|
84
|
-
attrs['class'] = classnames.join(' ');
|
|
85
|
-
}
|
|
86
|
-
if (category) {
|
|
87
|
-
attrs['data-category'] = node.attrs.category;
|
|
88
|
-
}
|
|
89
|
-
return ['section', attrs, 0];
|
|
90
|
-
},
|
|
91
64
|
};
|
|
92
65
|
const isSectionNode = (node) => node.type === node.type.schema.nodes.section;
|
|
93
66
|
exports.isSectionNode = isSectionNode;
|
package/dist/cjs/version.js
CHANGED
|
@@ -58,32 +58,5 @@ export const section = {
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
|
-
toDOM: (node) => {
|
|
62
|
-
const sectionNode = node;
|
|
63
|
-
const { id, category, titleSuppressed, generatedLabel, pageBreakStyle } = sectionNode.attrs;
|
|
64
|
-
const classnames = [];
|
|
65
|
-
if (titleSuppressed) {
|
|
66
|
-
classnames.push('title-suppressed');
|
|
67
|
-
}
|
|
68
|
-
if (typeof generatedLabel === 'undefined' || generatedLabel) {
|
|
69
|
-
classnames.push('generated-label');
|
|
70
|
-
}
|
|
71
|
-
if (pageBreakStyle === PAGE_BREAK_BEFORE ||
|
|
72
|
-
pageBreakStyle === PAGE_BREAK_BEFORE_AND_AFTER) {
|
|
73
|
-
classnames.push('page-break-before');
|
|
74
|
-
}
|
|
75
|
-
if (pageBreakStyle === PAGE_BREAK_AFTER ||
|
|
76
|
-
pageBreakStyle === PAGE_BREAK_BEFORE_AND_AFTER) {
|
|
77
|
-
classnames.push('page-break-after');
|
|
78
|
-
}
|
|
79
|
-
const attrs = { id };
|
|
80
|
-
if (classnames.length) {
|
|
81
|
-
attrs['class'] = classnames.join(' ');
|
|
82
|
-
}
|
|
83
|
-
if (category) {
|
|
84
|
-
attrs['data-category'] = node.attrs.category;
|
|
85
|
-
}
|
|
86
|
-
return ['section', attrs, 0];
|
|
87
|
-
},
|
|
88
61
|
};
|
|
89
62
|
export const isSectionNode = (node) => node.type === node.type.schema.nodes.section;
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.3.
|
|
1
|
+
export const VERSION = "2.3.22-LEAN-3772.0";
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
1
|
+
export declare const VERSION = "2.3.22-LEAN-3772.0";
|
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.3.
|
|
4
|
+
"version": "2.3.22-LEAN-3772.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"rimraf": "^3.0.2",
|
|
83
83
|
"typescript": "^4.0.5"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|