@manuscripts/transform 3.0.17 → 3.0.18
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/importer/jats-transformations.js +4 -0
- package/dist/cjs/version.js +1 -1
- package/dist/es/jats/importer/jats-transformations.js +4 -0
- package/dist/es/version.js +1 -1
- package/dist/types/lib/table-cell-styles.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -116,8 +116,12 @@ exports.moveAbstracts = moveAbstracts;
|
|
|
116
116
|
const createBoxedElementSection = (body, createElement) => {
|
|
117
117
|
const boxedTexts = body.querySelectorAll('boxed-text');
|
|
118
118
|
for (const boxedText of boxedTexts) {
|
|
119
|
+
const boxElementId = boxedText.getAttribute('id');
|
|
119
120
|
const boxElementSec = createElement('sec');
|
|
120
121
|
boxElementSec.setAttribute('sec-type', 'box-element');
|
|
122
|
+
if (boxElementId) {
|
|
123
|
+
boxElementSec.setAttribute('id', boxElementId);
|
|
124
|
+
}
|
|
121
125
|
const title = createElement('title');
|
|
122
126
|
title.textContent = 'BoxElement';
|
|
123
127
|
boxElementSec.append(title);
|
package/dist/cjs/version.js
CHANGED
|
@@ -106,8 +106,12 @@ export const moveAbstracts = (doc, group, createElement) => {
|
|
|
106
106
|
export const createBoxedElementSection = (body, createElement) => {
|
|
107
107
|
const boxedTexts = body.querySelectorAll('boxed-text');
|
|
108
108
|
for (const boxedText of boxedTexts) {
|
|
109
|
+
const boxElementId = boxedText.getAttribute('id');
|
|
109
110
|
const boxElementSec = createElement('sec');
|
|
110
111
|
boxElementSec.setAttribute('sec-type', 'box-element');
|
|
112
|
+
if (boxElementId) {
|
|
113
|
+
boxElementSec.setAttribute('id', boxElementId);
|
|
114
|
+
}
|
|
111
115
|
const title = createElement('title');
|
|
112
116
|
title.textContent = 'BoxElement';
|
|
113
117
|
boxElementSec.append(title);
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.
|
|
1
|
+
export const VERSION = "3.0.18";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare const TABLE_CELL_STYLES: readonly ["backgroundColor", "border-top", "border-right", "border-bottom", "border-left", "verticalAlign", "textAlign"];
|
|
17
|
-
export type TableCellStyleKey =
|
|
17
|
+
export type TableCellStyleKey = typeof TABLE_CELL_STYLES[number];
|
|
18
18
|
export declare const serializeTableCellStyles: (styles: {
|
|
19
19
|
backgroundColor?: string | null | undefined;
|
|
20
20
|
"border-top"?: string | null | undefined;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.18";
|
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.18",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|