@manuscripts/transform 2.3.5-LEAN-3608.2 → 2.3.5-LEAN-3608.3

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.
@@ -392,7 +392,7 @@ class Decoder {
392
392
  return this.parseContents(model.contents || '<ol></ol>', undefined, this.getComments(model), {
393
393
  topNode: schema_1.schema.nodes.list.create({
394
394
  id: model._id,
395
- listStyleType: model.listStyleType,
395
+ listStyleType: model.listStyleType || 'order',
396
396
  paragraphStyle: model.paragraphStyle,
397
397
  comments: comments.map((c) => c.attrs.id),
398
398
  }),
@@ -401,7 +401,7 @@ class Decoder {
401
401
  return this.parseContents(model.contents || '<ul></ul>', undefined, this.getComments(model), {
402
402
  topNode: schema_1.schema.nodes.list.create({
403
403
  id: model._id,
404
- listStyleType: model.listStyleType,
404
+ listStyleType: model.listStyleType || 'bullet',
405
405
  paragraphStyle: model.paragraphStyle,
406
406
  }),
407
407
  });
@@ -383,7 +383,7 @@ export class Decoder {
383
383
  return this.parseContents(model.contents || '<ol></ol>', undefined, this.getComments(model), {
384
384
  topNode: schema.nodes.list.create({
385
385
  id: model._id,
386
- listStyleType: model.listStyleType,
386
+ listStyleType: model.listStyleType || 'order',
387
387
  paragraphStyle: model.paragraphStyle,
388
388
  comments: comments.map((c) => c.attrs.id),
389
389
  }),
@@ -392,7 +392,7 @@ export class Decoder {
392
392
  return this.parseContents(model.contents || '<ul></ul>', undefined, this.getComments(model), {
393
393
  topNode: schema.nodes.list.create({
394
394
  id: model._id,
395
- listStyleType: model.listStyleType,
395
+ listStyleType: model.listStyleType || 'bullet',
396
396
  paragraphStyle: model.paragraphStyle,
397
397
  }),
398
398
  });
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.3.5-LEAN-3608.2",
4
+ "version": "2.3.5-LEAN-3608.3",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",