@manuscripts/transform 3.0.69 → 3.0.70-LEAN-4533.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.
- package/dist/cjs/schema/nodes/affiliation.js +1 -0
- package/dist/cjs/schema/nodes/contributor.js +1 -0
- package/dist/cjs/schema/nodes/list.js +5 -0
- package/dist/cjs/schema/nodes/table.js +3 -3
- package/dist/cjs/schema/nodes/table_col.js +5 -0
- package/dist/cjs/version.js +1 -1
- package/dist/es/schema/nodes/affiliation.js +1 -0
- package/dist/es/schema/nodes/contributor.js +1 -0
- package/dist/es/schema/nodes/list.js +5 -0
- package/dist/es/schema/nodes/table.js +3 -3
- package/dist/es/schema/nodes/table_col.js +5 -0
- package/dist/es/version.js +1 -1
- package/dist/types/schema/nodes/list.d.ts +1 -0
- package/dist/types/schema/nodes/table_col.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ exports.listItem = {
|
|
|
93
93
|
defining: true,
|
|
94
94
|
attrs: {
|
|
95
95
|
placeholder: { default: 'List item' },
|
|
96
|
+
id: { default: '' },
|
|
96
97
|
dataTracked: { default: null },
|
|
97
98
|
},
|
|
98
99
|
parseDOM: [
|
|
@@ -102,6 +103,7 @@ exports.listItem = {
|
|
|
102
103
|
const dom = p;
|
|
103
104
|
return {
|
|
104
105
|
placeholder: dom.getAttribute('data-placeholder-text') || '',
|
|
106
|
+
id: dom.getAttribute('id') || '',
|
|
105
107
|
};
|
|
106
108
|
},
|
|
107
109
|
},
|
|
@@ -112,6 +114,9 @@ exports.listItem = {
|
|
|
112
114
|
if (listItemNode.attrs.placeholder) {
|
|
113
115
|
attrs['data-placeholder-text'] = listItemNode.attrs.placeholder;
|
|
114
116
|
}
|
|
117
|
+
if (listItemNode.attrs.id) {
|
|
118
|
+
attrs['id'] = listItemNode.attrs.id;
|
|
119
|
+
}
|
|
115
120
|
return ['li', attrs, 0];
|
|
116
121
|
},
|
|
117
122
|
};
|
|
@@ -87,6 +87,6 @@ exports.table = {
|
|
|
87
87
|
];
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
|
-
exports.tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
91
|
-
exports.tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { dataTracked: { default: null } }) });
|
|
92
|
-
exports.tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_header.attrs), { dataTracked: { default: null } }) });
|
|
90
|
+
exports.tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
91
|
+
exports.tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
92
|
+
exports.tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_header.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
@@ -31,6 +31,7 @@ exports.tableColGroup = {
|
|
|
31
31
|
exports.tableCol = {
|
|
32
32
|
attrs: {
|
|
33
33
|
width: { default: '' },
|
|
34
|
+
id: { default: '' },
|
|
34
35
|
},
|
|
35
36
|
group: 'block',
|
|
36
37
|
parseDOM: [
|
|
@@ -40,6 +41,7 @@ exports.tableCol = {
|
|
|
40
41
|
const dom = p;
|
|
41
42
|
return {
|
|
42
43
|
width: dom.getAttribute('width'),
|
|
44
|
+
id: dom.getAttribute('id'),
|
|
43
45
|
};
|
|
44
46
|
},
|
|
45
47
|
},
|
|
@@ -50,6 +52,9 @@ exports.tableCol = {
|
|
|
50
52
|
if (tableColNode.attrs.width) {
|
|
51
53
|
attrs['width'] = tableColNode.attrs.width;
|
|
52
54
|
}
|
|
55
|
+
if (tableColNode.attrs.id) {
|
|
56
|
+
attrs['id'] = tableColNode.attrs.id;
|
|
57
|
+
}
|
|
53
58
|
return ['col', attrs];
|
|
54
59
|
},
|
|
55
60
|
};
|
package/dist/cjs/version.js
CHANGED
|
@@ -88,6 +88,7 @@ export const listItem = {
|
|
|
88
88
|
defining: true,
|
|
89
89
|
attrs: {
|
|
90
90
|
placeholder: { default: 'List item' },
|
|
91
|
+
id: { default: '' },
|
|
91
92
|
dataTracked: { default: null },
|
|
92
93
|
},
|
|
93
94
|
parseDOM: [
|
|
@@ -97,6 +98,7 @@ export const listItem = {
|
|
|
97
98
|
const dom = p;
|
|
98
99
|
return {
|
|
99
100
|
placeholder: dom.getAttribute('data-placeholder-text') || '',
|
|
101
|
+
id: dom.getAttribute('id') || '',
|
|
100
102
|
};
|
|
101
103
|
},
|
|
102
104
|
},
|
|
@@ -107,6 +109,9 @@ export const listItem = {
|
|
|
107
109
|
if (listItemNode.attrs.placeholder) {
|
|
108
110
|
attrs['data-placeholder-text'] = listItemNode.attrs.placeholder;
|
|
109
111
|
}
|
|
112
|
+
if (listItemNode.attrs.id) {
|
|
113
|
+
attrs['id'] = listItemNode.attrs.id;
|
|
114
|
+
}
|
|
110
115
|
return ['li', attrs, 0];
|
|
111
116
|
},
|
|
112
117
|
};
|
|
@@ -84,6 +84,6 @@ export const table = {
|
|
|
84
84
|
];
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
|
-
export const tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
88
|
-
export const tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { dataTracked: { default: null } }) });
|
|
89
|
-
export const tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_header.attrs), { dataTracked: { default: null } }) });
|
|
87
|
+
export const tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
88
|
+
export const tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
89
|
+
export const tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_header.attrs), { id: { default: '' }, dataTracked: { default: null } }) });
|
|
@@ -28,6 +28,7 @@ export const tableColGroup = {
|
|
|
28
28
|
export const tableCol = {
|
|
29
29
|
attrs: {
|
|
30
30
|
width: { default: '' },
|
|
31
|
+
id: { default: '' },
|
|
31
32
|
},
|
|
32
33
|
group: 'block',
|
|
33
34
|
parseDOM: [
|
|
@@ -37,6 +38,7 @@ export const tableCol = {
|
|
|
37
38
|
const dom = p;
|
|
38
39
|
return {
|
|
39
40
|
width: dom.getAttribute('width'),
|
|
41
|
+
id: dom.getAttribute('id'),
|
|
40
42
|
};
|
|
41
43
|
},
|
|
42
44
|
},
|
|
@@ -47,6 +49,9 @@ export const tableCol = {
|
|
|
47
49
|
if (tableColNode.attrs.width) {
|
|
48
50
|
attrs['width'] = tableColNode.attrs.width;
|
|
49
51
|
}
|
|
52
|
+
if (tableColNode.attrs.id) {
|
|
53
|
+
attrs['id'] = tableColNode.attrs.id;
|
|
54
|
+
}
|
|
50
55
|
return ['col', attrs];
|
|
51
56
|
},
|
|
52
57
|
};
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.
|
|
1
|
+
export const VERSION = "3.0.70-LEAN-4533.0";
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.70-LEAN-4533.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": "3.0.
|
|
4
|
+
"version": "3.0.70-LEAN-4533.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|