@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.
@@ -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), { 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 } }) });
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'],
@@ -67,6 +67,7 @@ const nodeTitle = (node) => {
67
67
  case nodes.listing_element:
68
68
  case nodes.multi_graphic_figure_element:
69
69
  case nodes.image_element:
70
+ case nodes.hero_image:
70
71
  return '';
71
72
  case nodes.box_element:
72
73
  return '';
@@ -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.68-comparison-test.1";
4
+ exports.VERSION = "3.0.68";
@@ -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), { 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 } }) });
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'],
@@ -64,6 +64,7 @@ export const nodeTitle = (node) => {
64
64
  case nodes.listing_element:
65
65
  case nodes.multi_graphic_figure_element:
66
66
  case nodes.image_element:
67
+ case nodes.hero_image:
67
68
  return '';
68
69
  case nodes.box_element:
69
70
  return '';
@@ -1 +1 @@
1
- export const VERSION = "3.0.68-comparison-test.1";
1
+ export const VERSION = "3.0.68";
@@ -17,7 +17,6 @@ export declare const list: NodeSpec;
17
17
  export interface ListItemNode extends ManuscriptNode {
18
18
  attrs: {
19
19
  placeholder: string;
20
- id: string;
21
20
  };
22
21
  }
23
22
  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 = "3.0.68-comparison-test.1";
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-comparison-test.1",
4
+ "version": "3.0.68",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",