@manuscripts/transform 2.1.8-LEAN-3423-2 → 2.1.8-LEAN-3423-4

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.
@@ -639,7 +639,14 @@ class JATSExporter {
639
639
  0,
640
640
  ],
641
641
  blockquote_element: () => ['disp-quote', { 'content-type': 'quote' }, 0],
642
- bullet_list: () => ['list', { 'list-type': 'bullet' }, 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
+ },
643
650
  caption: () => ['p', 0],
644
651
  caption_title: (node) => {
645
652
  if (!node.textContent) {
@@ -329,6 +329,7 @@ const encoders = {
329
329
  bullet_list: (node) => ({
330
330
  elementType: 'ul',
331
331
  contents: listContents(node),
332
+ listStyleType: node.attrs.listStyleType,
332
333
  paragraphStyle: node.attrs.paragraphStyle || undefined,
333
334
  }),
334
335
  listing: (node) => ({
@@ -631,7 +631,14 @@ export class JATSExporter {
631
631
  0,
632
632
  ],
633
633
  blockquote_element: () => ['disp-quote', { 'content-type': 'quote' }, 0],
634
- bullet_list: () => ['list', { 'list-type': 'bullet' }, 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
+ },
635
642
  caption: () => ['p', 0],
636
643
  caption_title: (node) => {
637
644
  if (!node.textContent) {
@@ -321,6 +321,7 @@ const encoders = {
321
321
  bullet_list: (node) => ({
322
322
  elementType: 'ul',
323
323
  contents: listContents(node),
324
+ listStyleType: node.attrs.listStyleType,
324
325
  paragraphStyle: node.attrs.paragraphStyle || undefined,
325
326
  }),
326
327
  listing: (node) => ({
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-2",
4
+ "version": "2.1.8-LEAN-3423-4",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",