@manuscripts/transform 2.1.8-LEAN-3423-6 → 2.1.9-LEAN-3321

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.
@@ -338,7 +338,6 @@ const nodes = [
338
338
  const element = node;
339
339
  return {
340
340
  id: element.getAttribute('id'),
341
- listStyleType: element.getAttribute('list-type'),
342
341
  };
343
342
  },
344
343
  },
@@ -639,14 +639,7 @@ class JATSExporter {
639
639
  0,
640
640
  ],
641
641
  blockquote_element: () => ['disp-quote', { 'content-type': 'quote' }, 0],
642
- bullet_list: (node) => {
643
- var _a;
644
- return [
645
- 'list',
646
- { 'list-type': (_a = node.attrs.listStyleType) !== null && _a !== void 0 ? _a : 'bullet' },
647
- 0,
648
- ];
649
- },
642
+ bullet_list: () => ['list', { 'list-type': 'bullet' }, 0],
650
643
  caption: () => ['p', 0],
651
644
  caption_title: (node) => {
652
645
  if (!node.textContent) {
@@ -25,7 +25,6 @@ exports.bulletList = {
25
25
  id: { default: '' },
26
26
  paragraphStyle: { default: '' },
27
27
  dataTracked: { default: null },
28
- listStyleType: { default: null },
29
28
  },
30
29
  parseDOM: [
31
30
  {
@@ -34,7 +33,6 @@ exports.bulletList = {
34
33
  const dom = p;
35
34
  return {
36
35
  id: dom.getAttribute('id'),
37
- listStyleType: dom.getAttribute('list-type'),
38
36
  };
39
37
  },
40
38
  },
@@ -46,7 +44,6 @@ exports.bulletList = {
46
44
  'ul',
47
45
  {
48
46
  id: bulletListNode.attrs.id,
49
- 'list-type': bulletListNode.attrs.listStyleType,
50
47
  class: (0, attributes_1.buildElementClass)(bulletListNode.attrs),
51
48
  'data-object-type': json_schema_1.ObjectTypes.ListElement,
52
49
  },
@@ -19,7 +19,6 @@ exports.tableCol = exports.tableColGroup = void 0;
19
19
  exports.tableColGroup = {
20
20
  content: 'table_col+',
21
21
  group: 'block',
22
- tableRole: 'colgroup',
23
22
  parseDOM: [
24
23
  {
25
24
  tag: 'colgroup',
@@ -34,7 +33,6 @@ exports.tableCol = {
34
33
  width: { default: '' },
35
34
  },
36
35
  group: 'block',
37
- tableRole: 'col',
38
36
  parseDOM: [
39
37
  {
40
38
  tag: 'col',
@@ -19,8 +19,9 @@ exports.tableElementFooter = void 0;
19
19
  exports.tableElementFooter = {
20
20
  attrs: {
21
21
  id: { default: '' },
22
+ dataTracked: { default: null }
22
23
  },
23
- content: '(paragraph | footnotes_element)+',
24
+ content: '(paragraph | footnotes_element)*',
24
25
  group: 'block element',
25
26
  toDOM: () => ['table-wrap-foot', 0],
26
27
  };
@@ -399,7 +399,6 @@ class Decoder {
399
399
  return this.parseContents(model.contents || '<ul></ul>', undefined, this.getComments(model), {
400
400
  topNode: schema_1.schema.nodes.bullet_list.create({
401
401
  id: model._id,
402
- listStyleType: model.listStyleType,
403
402
  paragraphStyle: model.paragraphStyle,
404
403
  }),
405
404
  });
@@ -329,7 +329,6 @@ const encoders = {
329
329
  bullet_list: (node) => ({
330
330
  elementType: 'ul',
331
331
  contents: listContents(node),
332
- listStyleType: node.attrs.listStyleType,
333
332
  paragraphStyle: node.attrs.paragraphStyle || undefined,
334
333
  }),
335
334
  listing: (node) => ({
@@ -332,7 +332,6 @@ const nodes = [
332
332
  const element = node;
333
333
  return {
334
334
  id: element.getAttribute('id'),
335
- listStyleType: element.getAttribute('list-type'),
336
335
  };
337
336
  },
338
337
  },
@@ -631,14 +631,7 @@ export class JATSExporter {
631
631
  0,
632
632
  ],
633
633
  blockquote_element: () => ['disp-quote', { 'content-type': 'quote' }, 0],
634
- bullet_list: (node) => {
635
- var _a;
636
- return [
637
- 'list',
638
- { 'list-type': (_a = node.attrs.listStyleType) !== null && _a !== void 0 ? _a : 'bullet' },
639
- 0,
640
- ];
641
- },
634
+ bullet_list: () => ['list', { 'list-type': 'bullet' }, 0],
642
635
  caption: () => ['p', 0],
643
636
  caption_title: (node) => {
644
637
  if (!node.textContent) {
@@ -22,7 +22,6 @@ export const bulletList = {
22
22
  id: { default: '' },
23
23
  paragraphStyle: { default: '' },
24
24
  dataTracked: { default: null },
25
- listStyleType: { default: null },
26
25
  },
27
26
  parseDOM: [
28
27
  {
@@ -31,7 +30,6 @@ export const bulletList = {
31
30
  const dom = p;
32
31
  return {
33
32
  id: dom.getAttribute('id'),
34
- listStyleType: dom.getAttribute('list-type'),
35
33
  };
36
34
  },
37
35
  },
@@ -43,7 +41,6 @@ export const bulletList = {
43
41
  'ul',
44
42
  {
45
43
  id: bulletListNode.attrs.id,
46
- 'list-type': bulletListNode.attrs.listStyleType,
47
44
  class: buildElementClass(bulletListNode.attrs),
48
45
  'data-object-type': ObjectTypes.ListElement,
49
46
  },
@@ -16,7 +16,6 @@
16
16
  export const tableColGroup = {
17
17
  content: 'table_col+',
18
18
  group: 'block',
19
- tableRole: 'colgroup',
20
19
  parseDOM: [
21
20
  {
22
21
  tag: 'colgroup',
@@ -31,7 +30,6 @@ export const tableCol = {
31
30
  width: { default: '' },
32
31
  },
33
32
  group: 'block',
34
- tableRole: 'col',
35
33
  parseDOM: [
36
34
  {
37
35
  tag: 'col',
@@ -16,8 +16,9 @@
16
16
  export const tableElementFooter = {
17
17
  attrs: {
18
18
  id: { default: '' },
19
+ dataTracked: { default: null }
19
20
  },
20
- content: '(paragraph | footnotes_element)+',
21
+ content: '(paragraph | footnotes_element)*',
21
22
  group: 'block element',
22
23
  toDOM: () => ['table-wrap-foot', 0],
23
24
  };
@@ -390,7 +390,6 @@ export class Decoder {
390
390
  return this.parseContents(model.contents || '<ul></ul>', undefined, this.getComments(model), {
391
391
  topNode: schema.nodes.bullet_list.create({
392
392
  id: model._id,
393
- listStyleType: model.listStyleType,
394
393
  paragraphStyle: model.paragraphStyle,
395
394
  }),
396
395
  });
@@ -321,7 +321,6 @@ const encoders = {
321
321
  bullet_list: (node) => ({
322
322
  elementType: 'ul',
323
323
  contents: listContents(node),
324
- listStyleType: node.attrs.listStyleType,
325
324
  paragraphStyle: node.attrs.paragraphStyle || undefined,
326
325
  }),
327
326
  listing: (node) => ({
@@ -19,7 +19,6 @@ export interface BulletListNode extends ManuscriptNode {
19
19
  attrs: {
20
20
  id: string;
21
21
  paragraphStyle: string;
22
- listStyleType: string;
23
22
  };
24
23
  }
25
24
  export declare const bulletList: NodeSpec;
@@ -13,12 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNode, TableNodeSpec } from '../types';
17
- export type TableColGroupNode = ManuscriptNode;
16
+ import { NodeSpec } from 'prosemirror-model';
17
+ import { ManuscriptNode } from '../types';
18
18
  export interface TableColNode extends ManuscriptNode {
19
19
  attrs: {
20
20
  width: string;
21
21
  };
22
22
  }
23
- export declare const tableColGroup: TableNodeSpec;
24
- export declare const tableCol: TableNodeSpec;
23
+ export declare const tableColGroup: NodeSpec;
24
+ export declare const tableCol: NodeSpec;
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.8-LEAN-3423-6",
4
+ "version": "2.1.9-LEAN-3321",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -29,8 +29,8 @@
29
29
  "version": "yarn build"
30
30
  },
31
31
  "dependencies": {
32
- "@manuscripts/json-schema": "2.2.6-LEAN-3423-0",
33
- "@manuscripts/library": "1.3.5-LEAN-3423-0",
32
+ "@manuscripts/json-schema": "^2.2.6",
33
+ "@manuscripts/library": "^1.3.5",
34
34
  "debug": "^4.3.4",
35
35
  "jszip": "^3.10.1",
36
36
  "mime": "^3.0.0",
@@ -78,4 +78,4 @@
78
78
  "rimraf": "^3.0.2",
79
79
  "typescript": "^4.0.5"
80
80
  }
81
- }
81
+ }