@manuscripts/transform 4.1.2-LEAN-4533.0 → 4.2.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,7 +3,6 @@ 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,
7
6
  attrs: {
8
7
  id: { default: '' },
9
8
  institution: { default: '' },
@@ -3,7 +3,6 @@ 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,
7
6
  attrs: {
8
7
  id: { default: '' },
9
8
  role: { default: '' },
@@ -51,7 +51,6 @@ exports.listItem = {
51
51
  defining: true,
52
52
  attrs: {
53
53
  placeholder: { default: 'List item' },
54
- id: { default: '' },
55
54
  dataTracked: { default: null },
56
55
  },
57
56
  parseDOM: [
@@ -61,7 +60,6 @@ exports.listItem = {
61
60
  const dom = p;
62
61
  return {
63
62
  placeholder: dom.getAttribute('data-placeholder-text') || '',
64
- id: dom.getAttribute('id') || '',
65
63
  };
66
64
  },
67
65
  },
@@ -72,9 +70,6 @@ exports.listItem = {
72
70
  if (listItemNode.attrs.placeholder) {
73
71
  attrs['data-placeholder-text'] = listItemNode.attrs.placeholder;
74
72
  }
75
- if (listItemNode.attrs.id) {
76
- attrs['id'] = listItemNode.attrs.id;
77
- }
78
73
  return ['li', attrs, 0];
79
74
  },
80
75
  };
@@ -89,25 +89,13 @@ exports.table = {
89
89
  };
90
90
  exports.tableRow = {
91
91
  ...tableNodes.table_row,
92
- attrs: {
93
- ...tableNodes.table_row.attrs,
94
- id: { default: '' },
95
- dataTracked: { default: null }
96
- },
92
+ attrs: { ...tableNodes.table_row.attrs, dataTracked: { default: null } },
97
93
  };
98
94
  exports.tableCell = {
99
95
  ...tableNodes.table_cell,
100
- attrs: {
101
- ...tableNodes.table_cell.attrs,
102
- id: { default: '' },
103
- dataTracked: { default: null }
104
- },
96
+ attrs: { ...tableNodes.table_cell.attrs, dataTracked: { default: null } },
105
97
  };
106
98
  exports.tableHeader = {
107
99
  ...tableNodes.table_header,
108
- attrs: {
109
- ...tableNodes.table_header.attrs,
110
- id: { default: '' },
111
- dataTracked: { default: null }
112
- },
100
+ attrs: { ...tableNodes.table_header.attrs, dataTracked: { default: null } },
113
101
  };
@@ -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
  };
@@ -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 = "4.1.2-LEAN-4533.0";
4
+ exports.VERSION = "4.2.0";
@@ -1,6 +1,5 @@
1
1
  export const affiliation = {
2
2
  content: 'inline*',
3
- atom: true,
4
3
  attrs: {
5
4
  id: { default: '' },
6
5
  institution: { default: '' },
@@ -1,6 +1,5 @@
1
1
  export const contributor = {
2
2
  content: 'inline*',
3
- atom: true,
4
3
  attrs: {
5
4
  id: { default: '' },
6
5
  role: { default: '' },
@@ -48,7 +48,6 @@ export const listItem = {
48
48
  defining: true,
49
49
  attrs: {
50
50
  placeholder: { default: 'List item' },
51
- id: { default: '' },
52
51
  dataTracked: { default: null },
53
52
  },
54
53
  parseDOM: [
@@ -58,7 +57,6 @@ export const listItem = {
58
57
  const dom = p;
59
58
  return {
60
59
  placeholder: dom.getAttribute('data-placeholder-text') || '',
61
- id: dom.getAttribute('id') || '',
62
60
  };
63
61
  },
64
62
  },
@@ -69,9 +67,6 @@ export const listItem = {
69
67
  if (listItemNode.attrs.placeholder) {
70
68
  attrs['data-placeholder-text'] = listItemNode.attrs.placeholder;
71
69
  }
72
- if (listItemNode.attrs.id) {
73
- attrs['id'] = listItemNode.attrs.id;
74
- }
75
70
  return ['li', attrs, 0];
76
71
  },
77
72
  };
@@ -86,25 +86,13 @@ export const table = {
86
86
  };
87
87
  export const tableRow = {
88
88
  ...tableNodes.table_row,
89
- attrs: {
90
- ...tableNodes.table_row.attrs,
91
- id: { default: '' },
92
- dataTracked: { default: null }
93
- },
89
+ attrs: { ...tableNodes.table_row.attrs, dataTracked: { default: null } },
94
90
  };
95
91
  export const tableCell = {
96
92
  ...tableNodes.table_cell,
97
- attrs: {
98
- ...tableNodes.table_cell.attrs,
99
- id: { default: '' },
100
- dataTracked: { default: null }
101
- },
93
+ attrs: { ...tableNodes.table_cell.attrs, dataTracked: { default: null } },
102
94
  };
103
95
  export const tableHeader = {
104
96
  ...tableNodes.table_header,
105
- attrs: {
106
- ...tableNodes.table_header.attrs,
107
- id: { default: '' },
108
- dataTracked: { default: null }
109
- },
97
+ attrs: { ...tableNodes.table_header.attrs, dataTracked: { default: null } },
110
98
  };
@@ -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
  };
@@ -1 +1 @@
1
- export const VERSION = "4.1.2-LEAN-4533.0";
1
+ export const VERSION = "4.2.0";
@@ -12,7 +12,6 @@ export declare const list: NodeSpec;
12
12
  export interface ListItemNode extends ManuscriptNode {
13
13
  attrs: {
14
14
  placeholder: string;
15
- id: string;
16
15
  };
17
16
  }
18
17
  export declare const listItem: NodeSpec;
@@ -18,7 +18,6 @@ import { ManuscriptNode } from '../types';
18
18
  export interface TableColNode extends ManuscriptNode {
19
19
  attrs: {
20
20
  width: string;
21
- id: string;
22
21
  };
23
22
  }
24
23
  export declare const tableColGroup: NodeSpec;
@@ -1 +1 @@
1
- export declare const VERSION = "4.1.2-LEAN-4533.0";
1
+ export declare const VERSION = "4.2.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": "4.1.2-LEAN-4533.0",
4
+ "version": "4.2.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",