@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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isAffiliationNode = exports.affiliation = void 0;
4
4
  exports.affiliation = {
5
5
  content: 'inline*',
6
+ atom: true,
6
7
  attrs: {
7
8
  id: { default: '' },
8
9
  institution: { default: '' },
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isContributorNode = exports.contributor = void 0;
4
4
  exports.contributor = {
5
5
  content: 'inline*',
6
+ atom: true,
6
7
  attrs: {
7
8
  id: { default: '' },
8
9
  role: { default: '' },
@@ -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
  };
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.0.69";
4
+ exports.VERSION = "3.0.70-LEAN-4533.0";
@@ -1,5 +1,6 @@
1
1
  export const affiliation = {
2
2
  content: 'inline*',
3
+ atom: true,
3
4
  attrs: {
4
5
  id: { default: '' },
5
6
  institution: { default: '' },
@@ -1,5 +1,6 @@
1
1
  export const contributor = {
2
2
  content: 'inline*',
3
+ atom: true,
3
4
  attrs: {
4
5
  id: { default: '' },
5
6
  role: { default: '' },
@@ -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
  };
@@ -1 +1 @@
1
- export const VERSION = "3.0.69";
1
+ export const VERSION = "3.0.70-LEAN-4533.0";
@@ -17,6 +17,7 @@ export declare const list: NodeSpec;
17
17
  export interface ListItemNode extends ManuscriptNode {
18
18
  attrs: {
19
19
  placeholder: string;
20
+ id: string;
20
21
  };
21
22
  }
22
23
  export declare const listItem: NodeSpec;
@@ -18,6 +18,7 @@ import { ManuscriptNode } from '../types';
18
18
  export interface TableColNode extends ManuscriptNode {
19
19
  attrs: {
20
20
  width: string;
21
+ id: string;
21
22
  };
22
23
  }
23
24
  export declare const tableColGroup: NodeSpec;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.69";
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.69",
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",