@manuscripts/transform 3.0.26 → 3.0.27-LEAN-4177.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.
@@ -4,8 +4,6 @@ exports.isListNode = exports.listItem = exports.list = exports.getListType = voi
4
4
  const json_schema_1 = require("@manuscripts/json-schema");
5
5
  const getListType = (style) => {
6
6
  switch (style) {
7
- case 'simple':
8
- return { type: 'ul', style: 'none' };
9
7
  case 'bullet':
10
8
  return { type: 'ul', style: 'disc' };
11
9
  case 'order':
@@ -18,8 +16,9 @@ const getListType = (style) => {
18
16
  return { type: 'ul', style: 'lower-roman' };
19
17
  case 'roman-upper':
20
18
  return { type: 'ul', style: 'upper-roman' };
19
+ case 'simple':
21
20
  default:
22
- throw new Error(`Unsupported style type: ${style}`);
21
+ return { type: 'ul', style: 'none' };
23
22
  }
24
23
  };
25
24
  exports.getListType = getListType;
@@ -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.26";
4
+ exports.VERSION = "3.0.27-LEAN-4177.0";
@@ -1,8 +1,6 @@
1
1
  import { ObjectTypes } from '@manuscripts/json-schema';
2
2
  export const getListType = (style) => {
3
3
  switch (style) {
4
- case 'simple':
5
- return { type: 'ul', style: 'none' };
6
4
  case 'bullet':
7
5
  return { type: 'ul', style: 'disc' };
8
6
  case 'order':
@@ -15,8 +13,9 @@ export const getListType = (style) => {
15
13
  return { type: 'ul', style: 'lower-roman' };
16
14
  case 'roman-upper':
17
15
  return { type: 'ul', style: 'upper-roman' };
16
+ case 'simple':
18
17
  default:
19
- throw new Error(`Unsupported style type: ${style}`);
18
+ return { type: 'ul', style: 'none' };
20
19
  }
21
20
  };
22
21
  export const list = {
@@ -1 +1 @@
1
- export const VERSION = "3.0.26";
1
+ export const VERSION = "3.0.27-LEAN-4177.0";
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.26";
1
+ export declare const VERSION = "3.0.27-LEAN-4177.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": "3.0.26",
4
+ "version": "3.0.27-LEAN-4177.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",