@manuscripts/transform 3.0.42 → 3.0.43
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.
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isListNode = exports.listItem = exports.list = exports.getListType = void 0;
|
|
3
|
+
exports.isListNode = exports.listItem = exports.list = exports.getListType = exports.getJatsListType = void 0;
|
|
4
4
|
const json_schema_1 = require("@manuscripts/json-schema");
|
|
5
|
+
const getJatsListType = (cssStyle) => {
|
|
6
|
+
switch (cssStyle) {
|
|
7
|
+
case 'disc':
|
|
8
|
+
return 'bullet';
|
|
9
|
+
case 'decimal':
|
|
10
|
+
return 'order';
|
|
11
|
+
case 'lower-alpha':
|
|
12
|
+
return 'alpha-lower';
|
|
13
|
+
case 'upper-alpha':
|
|
14
|
+
return 'alpha-upper';
|
|
15
|
+
case 'lower-roman':
|
|
16
|
+
return 'roman-lower';
|
|
17
|
+
case 'upper-roman':
|
|
18
|
+
return 'roman-upper';
|
|
19
|
+
case 'simple':
|
|
20
|
+
return 'none';
|
|
21
|
+
default:
|
|
22
|
+
return 'none';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.getJatsListType = getJatsListType;
|
|
5
26
|
const getListType = (style) => {
|
|
6
27
|
switch (style) {
|
|
7
28
|
case 'bullet':
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import { ObjectTypes } from '@manuscripts/json-schema';
|
|
2
|
+
export const getJatsListType = (cssStyle) => {
|
|
3
|
+
switch (cssStyle) {
|
|
4
|
+
case 'disc':
|
|
5
|
+
return 'bullet';
|
|
6
|
+
case 'decimal':
|
|
7
|
+
return 'order';
|
|
8
|
+
case 'lower-alpha':
|
|
9
|
+
return 'alpha-lower';
|
|
10
|
+
case 'upper-alpha':
|
|
11
|
+
return 'alpha-upper';
|
|
12
|
+
case 'lower-roman':
|
|
13
|
+
return 'roman-lower';
|
|
14
|
+
case 'upper-roman':
|
|
15
|
+
return 'roman-upper';
|
|
16
|
+
case 'simple':
|
|
17
|
+
return 'none';
|
|
18
|
+
default:
|
|
19
|
+
return 'none';
|
|
20
|
+
}
|
|
21
|
+
};
|
|
2
22
|
export const getListType = (style) => {
|
|
3
23
|
switch (style) {
|
|
4
24
|
case 'bullet':
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.
|
|
1
|
+
export const VERSION = "3.0.43";
|
|
@@ -5,6 +5,7 @@ interface ListTypeInfo {
|
|
|
5
5
|
type: 'ul' | 'ol';
|
|
6
6
|
style: string;
|
|
7
7
|
}
|
|
8
|
+
export declare const getJatsListType: (cssStyle: string | null) => "bullet" | "order" | "alpha-lower" | "alpha-upper" | "roman-lower" | "roman-upper" | "none";
|
|
8
9
|
export declare const getListType: (style: JatsStyleType) => ListTypeInfo;
|
|
9
10
|
export interface ListNode extends ManuscriptNode {
|
|
10
11
|
attrs: {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.43";
|
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.
|
|
4
|
+
"version": "3.0.43",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|