@manuscripts/transform 2.1.1-LEAN-3336-18 → 2.1.1-LEAN-3336-19
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.
|
@@ -81,6 +81,7 @@ const tableNodes = (0, prosemirror_tables_1.tableNodes)(tableOptions);
|
|
|
81
81
|
exports.table = {
|
|
82
82
|
attrs: {
|
|
83
83
|
id: { default: '' },
|
|
84
|
+
dataTracked: { default: null },
|
|
84
85
|
},
|
|
85
86
|
content: 'table_row+',
|
|
86
87
|
tableRole: 'table',
|
|
@@ -107,7 +108,6 @@ exports.table = {
|
|
|
107
108
|
];
|
|
108
109
|
},
|
|
109
110
|
};
|
|
110
|
-
exports.tableRow = tableNodes.table_row;
|
|
111
|
-
exports.tableCell = tableNodes.table_cell;
|
|
112
|
-
exports.tableHeader = tableNodes.table_header;
|
|
113
|
-
console.log('zax--');
|
|
111
|
+
exports.tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
112
|
+
exports.tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { dataTracked: { default: null } }) });
|
|
113
|
+
exports.tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
@@ -78,6 +78,7 @@ const tableNodes = createTableNodes(tableOptions);
|
|
|
78
78
|
export const table = {
|
|
79
79
|
attrs: {
|
|
80
80
|
id: { default: '' },
|
|
81
|
+
dataTracked: { default: null },
|
|
81
82
|
},
|
|
82
83
|
content: 'table_row+',
|
|
83
84
|
tableRole: 'table',
|
|
@@ -104,7 +105,6 @@ export const table = {
|
|
|
104
105
|
];
|
|
105
106
|
},
|
|
106
107
|
};
|
|
107
|
-
export const tableRow = tableNodes.table_row;
|
|
108
|
-
export const tableCell = tableNodes.table_cell;
|
|
109
|
-
export const tableHeader = tableNodes.table_header;
|
|
110
|
-
console.log('zax--');
|
|
108
|
+
export const tableRow = Object.assign(Object.assign({}, tableNodes.table_row), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
109
|
+
export const tableCell = Object.assign(Object.assign({}, tableNodes.table_cell), { attrs: Object.assign(Object.assign({}, tableNodes.table_cell.attrs), { dataTracked: { default: null } }) });
|
|
110
|
+
export const tableHeader = Object.assign(Object.assign({}, tableNodes.table_header), { attrs: Object.assign(Object.assign({}, tableNodes.table_row.attrs), { dataTracked: { default: null } }) });
|
|
@@ -15,6 +15,75 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { NodeSpec } from 'prosemirror-model';
|
|
17
17
|
export declare const table: NodeSpec;
|
|
18
|
-
export declare const tableRow:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export declare const tableRow: {
|
|
19
|
+
attrs: {
|
|
20
|
+
dataTracked: {
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
content?: string | undefined;
|
|
25
|
+
marks?: string | undefined;
|
|
26
|
+
group?: string | undefined;
|
|
27
|
+
inline?: boolean | undefined;
|
|
28
|
+
atom?: boolean | undefined;
|
|
29
|
+
selectable?: boolean | undefined;
|
|
30
|
+
draggable?: boolean | undefined;
|
|
31
|
+
code?: boolean | undefined;
|
|
32
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
33
|
+
definingAsContext?: boolean | undefined;
|
|
34
|
+
definingForContent?: boolean | undefined;
|
|
35
|
+
defining?: boolean | undefined;
|
|
36
|
+
isolating?: boolean | undefined;
|
|
37
|
+
toDOM?: ((node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec) | undefined;
|
|
38
|
+
parseDOM?: readonly import("prosemirror-model").ParseRule[] | undefined;
|
|
39
|
+
toDebugString?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
40
|
+
leafText?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
41
|
+
};
|
|
42
|
+
export declare const tableCell: {
|
|
43
|
+
attrs: {
|
|
44
|
+
dataTracked: {
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
content?: string | undefined;
|
|
49
|
+
marks?: string | undefined;
|
|
50
|
+
group?: string | undefined;
|
|
51
|
+
inline?: boolean | undefined;
|
|
52
|
+
atom?: boolean | undefined;
|
|
53
|
+
selectable?: boolean | undefined;
|
|
54
|
+
draggable?: boolean | undefined;
|
|
55
|
+
code?: boolean | undefined;
|
|
56
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
57
|
+
definingAsContext?: boolean | undefined;
|
|
58
|
+
definingForContent?: boolean | undefined;
|
|
59
|
+
defining?: boolean | undefined;
|
|
60
|
+
isolating?: boolean | undefined;
|
|
61
|
+
toDOM?: ((node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec) | undefined;
|
|
62
|
+
parseDOM?: readonly import("prosemirror-model").ParseRule[] | undefined;
|
|
63
|
+
toDebugString?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
64
|
+
leafText?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
65
|
+
};
|
|
66
|
+
export declare const tableHeader: {
|
|
67
|
+
attrs: {
|
|
68
|
+
dataTracked: {
|
|
69
|
+
default: null;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
content?: string | undefined;
|
|
73
|
+
marks?: string | undefined;
|
|
74
|
+
group?: string | undefined;
|
|
75
|
+
inline?: boolean | undefined;
|
|
76
|
+
atom?: boolean | undefined;
|
|
77
|
+
selectable?: boolean | undefined;
|
|
78
|
+
draggable?: boolean | undefined;
|
|
79
|
+
code?: boolean | undefined;
|
|
80
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
81
|
+
definingAsContext?: boolean | undefined;
|
|
82
|
+
definingForContent?: boolean | undefined;
|
|
83
|
+
defining?: boolean | undefined;
|
|
84
|
+
isolating?: boolean | undefined;
|
|
85
|
+
toDOM?: ((node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec) | undefined;
|
|
86
|
+
parseDOM?: readonly import("prosemirror-model").ParseRule[] | undefined;
|
|
87
|
+
toDebugString?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
88
|
+
leafText?: ((node: import("prosemirror-model").Node) => string) | undefined;
|
|
89
|
+
};
|
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.1.1-LEAN-3336-
|
|
4
|
+
"version": "2.1.1-LEAN-3336-19",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|