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