@thetimes/methode-parser
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -5,6 +5,7 @@ "use strict"; | ||
a: "link", | ||
b: "bold", | ||
b: "strong", | ||
br: "break", | ||
div: "block", | ||
em: "italic", | ||
em: "emphasis", | ||
emphasis: "emphasis", | ||
h1: "heading1", | ||
@@ -16,3 +17,3 @@ h2: "heading2", | ||
h6: "heading6", | ||
i: "italic", | ||
i: "emphasis", | ||
img: "image", | ||
@@ -23,4 +24,7 @@ li: "listElement", | ||
span: "inline", | ||
strong: "bold", | ||
ul: "unorderedList" | ||
strong: "strong", | ||
sub: "subscript", | ||
sup: "superscript", | ||
ul: "unorderedList", | ||
wbr: "wordBreakOpportunity" | ||
}; | ||
@@ -79,12 +83,12 @@ exports.getSlug = (href) => { | ||
}; | ||
case "bold": | ||
case "break": | ||
return { | ||
parent, | ||
name: "bold", | ||
name: "break", | ||
children | ||
}; | ||
case "break": | ||
case "emphasis": | ||
return { | ||
parent, | ||
name: "break", | ||
name: "emphasis", | ||
children | ||
@@ -134,8 +138,2 @@ }; | ||
}; | ||
case "italic": | ||
return { | ||
parent, | ||
name: "italic", | ||
children | ||
}; | ||
case "link": | ||
@@ -166,2 +164,20 @@ return { | ||
}; | ||
case "subscript": | ||
return { | ||
parent, | ||
name: "subscript", | ||
children | ||
}; | ||
case "superscript": | ||
return { | ||
parent, | ||
name: "superscript", | ||
children | ||
}; | ||
case "strong": | ||
return { | ||
parent, | ||
name: "strong", | ||
children | ||
}; | ||
case "unorderedList": | ||
@@ -173,2 +189,8 @@ return { | ||
}; | ||
case "wordBreakOpportunity": | ||
return { | ||
parent, | ||
name: "wordBreakOpportunity", | ||
children | ||
}; | ||
default: | ||
@@ -201,10 +223,10 @@ return { | ||
}; | ||
case "bold": | ||
case "break": | ||
return { | ||
name: "bold", | ||
name: "break", | ||
children | ||
}; | ||
case "break": | ||
case "emphasis": | ||
return { | ||
name: "break", | ||
name: "emphasis", | ||
children | ||
@@ -259,7 +281,2 @@ }; | ||
}; | ||
case "italic": | ||
return { | ||
name: "italic", | ||
children | ||
}; | ||
case "keyFacts": | ||
@@ -298,2 +315,17 @@ return { | ||
}; | ||
case "subscript": | ||
return { | ||
name: "subscript", | ||
children | ||
}; | ||
case "superscript": | ||
return { | ||
name: "superscript", | ||
children | ||
}; | ||
case "strong": | ||
return { | ||
name: "strong", | ||
children | ||
}; | ||
case "text": | ||
@@ -316,2 +348,7 @@ return { | ||
}; | ||
case "wordBreakOpportunity": | ||
return { | ||
name: "wordBreakOpportunity", | ||
children | ||
}; | ||
default: | ||
@@ -327,2 +364,2 @@ return { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLXRhZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGUtdGFnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBUUEsTUFBTSxZQUFZLEdBQWtDO0lBQ2xELENBQUMsRUFBRSxNQUFNO0lBQ1QsQ0FBQyxFQUFFLE1BQU07SUFDVCxFQUFFLEVBQUUsT0FBTztJQUNYLEdBQUcsRUFBRSxPQUFPO0lBQ1osRUFBRSxFQUFFLFFBQVE7SUFDWixFQUFFLEVBQUUsVUFBVTtJQUNkLEVBQUUsRUFBRSxVQUFVO0lBQ2QsRUFBRSxFQUFFLFVBQVU7SUFDZCxFQUFFLEVBQUUsVUFBVTtJQUNkLEVBQUUsRUFBRSxVQUFVO0lBQ2QsRUFBRSxFQUFFLFVBQVU7SUFDZCxDQUFDLEVBQUUsUUFBUTtJQUNYLEdBQUcsRUFBRSxPQUFPO0lBQ1osRUFBRSxFQUFFLGFBQWE7SUFDakIsRUFBRSxFQUFFLGFBQWE7SUFDakIsQ0FBQyxFQUFFLFdBQVc7SUFDZCxJQUFJLEVBQUUsUUFBUTtJQUNkLE1BQU0sRUFBRSxNQUFNO0lBQ2QsRUFBRSxFQUFFLGVBQWU7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QUFLLFdBQVc7WUFDZCxPQUFPO2dCQUNMLElBQUksRUFBRSxXQUFXO2dCQUNqQixRQUFRO2FBQ1QsQ0FBQztRQUNKLEtBQUssYUFBYTtZQUNoQixPQUFPO2dCQUNMLElBQUksRUFBRSxhQUFhO2dCQUNuQixRQUFRO2FBQ1QsQ0FBQztRQUNKLEtBQUssUUFBUTtZQUNYLE9BQU87Z0JBQ0wsSUFBSSxFQUFFLFFBQVE7Z0JBQ2QsUUFBUTthQUNULENBQUM7UUFDSixLQUFLLE1BQU07WUFDVCxPQUFPO2dCQUNMLElBQUksRUFBRSxNQUFNO2dCQUNaLFVBQVUsRUFBRSxDQUFDLENBQUMsVUFBVTtnQkFDeEIsUUFBUTthQUNULENBQUM7UUFDSixLQUFLLGVBQWU7WUFDbEIsT0FBTztnQkFDTCxJQUFJLEVBQUUsZUFBZTtnQkFDckIsUUFBUTthQUNULENBQUM7UUFDSixLQUFLLE9BQU87WUFDVixPQUFPO2dCQUNMLElBQUksRUFBRSxPQUFPO2dCQUNiLFVBQVUsRUFBRSxDQUFDLENBQUMsVUFBVTtnQkFDeEIsUUFBUTthQUNULENBQUM7UUFDSixLQUFLLHNCQUFzQjtZQUN6QixPQUFPO2dCQUNMLElBQUksRUFBRSxzQkFBc0I7Z0JBQzVCLFFBQVE7YUFDVCxDQUFDO1FBQ0o7WUFDRSxPQUFPO2dCQUNMLElBQUksRUFBRSxTQUFTO2dCQUNmLFVBQVUsRUFBRTtvQkFDVixJQUFJLEVBQUUsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxJQUFJLElBQUksRUFBRTtpQkFDOUI7Z0JBQ0QsUUFBUTthQUNULENBQUM7S0FDTDtBQUNILENBQUMsQ0FBQyJ9 |
@@ -14,3 +14,3 @@ "use strict"; | ||
exports.richtextToMarkup = (content, logger) => { | ||
const forceClosed = new Set(["br"]); | ||
const forceClosed = new Set(["br", "wbr"]); | ||
const nbspRegexp = / /; | ||
@@ -74,2 +74,2 @@ const nbspCharacter = String.fromCharCode(160); | ||
exports.richtextToMarkupFactory = (logger) => (content) => exports.richtextToMarkup(content, logger); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmljaHRleHQtdG8tbWFya3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3JpY2h0ZXh0LXRvLW1hcmt1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBK0I7QUFDL0IsNkNBQXlDO0FBT3pDLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxPQUFlLEVBQWlCLEVBQUUsQ0FBQyxDQUFDO0lBQy9ELElBQUksRUFBRSxNQUFNO0lBQ1osVUFBVSxFQUFFO1FBQ1YsS0FBSyxFQUFFLE9BQU87S0FDZjtJQUNELFFBQVEsRUFBRSxFQUFFO0NBQ2IsQ0FBQyxDQUFDO0FBRVUsUUFBQSxnQkFBZ0IsR0FBRyxDQUM5QixPQUFlLEVBQ2YsTUFBb0IsRUFDSCxFQUFFO0lBQ25CLE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUVwQyxNQUFNLFVBQVUsR0FBRyxRQUFRLENBQUM7SUFDNUIsTUFBTSxhQUFhLEdBQUcsTUFBTSxDQUFDLFlBQVksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUUvQyxJQUFJLENBQUMsT0FBTyxFQUFFO1FBQ1osT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0tBQzVCO0lBRUQsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUM1QixJQUFJLGNBQWMsR0FBRyxPQUFPLENBQUM7UUFDN0IsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUF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SxLQUFLLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRTtnQkFDN0MsT0FBTzthQUNSO1lBRUQsTUFBTSxFQUFFLE1BQU0sRUFBRSxHQUFHLE9BQU8sQ0FBQztZQUUzQixPQUFPLE9BQU8sQ0FBQyxNQUFNLENBQUM7WUFFdEIsT0FBTyxHQUFHLE1BQU0sQ0FBQztRQUNuQixDQUFDLENBQUM7UUFFRixNQUFNLENBQUMsS0FBSyxHQUFHLEdBQUcsRUFBRTtZQUNsQixPQUFPLENBQUUsT0FBMkIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNwRCxDQUFDLENBQUM7UUFFRixNQUFNLENBQUMsS0FBSyxDQUFDLFdBQVcsT0FBTyxXQUFXLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUN0RCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQztBQUVXLFFBQUEsdUJBQXVCLEdBQUcsQ0FBQyxNQUFvQixFQUFFLEVBQUUsQ0FBQyxDQUMvRCxPQUFlLEVBQ0UsRUFBRSxDQUFDLHdCQUFnQixDQUFDLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQyJ9 |
import { XMLNode, MarkupElement } from "./markup"; | ||
export declare const getSlug: (href: string) => string; | ||
export declare const hasShortId: (href: string) => boolean; | ||
export declare const createTag: ({ name, attributes }: XMLNode, children?: MarkupElement[], parent?: import("./markup").Unknown | import("./markup").Ad | import("./markup").Author | import("./markup").Block | import("./markup").Bold | import("./markup").Break | import("./markup").Heading1 | import("./markup").Heading2 | import("./markup").Heading3 | import("./markup").Heading4 | import("./markup").Heading5 | import("./markup").Heading6 | import("./markup").Image | import("./markup").Inline | import("./markup").Interactive | import("./markup").Italic | import("./markup").KeyFacts | import("./markup").Link | import("./markup").ListElement | import("./markup").OrderedList | import("./markup").Paragraph | import("./markup").PullQuote | import("./markup").Text | import("./markup").UnorderedList | import("./markup").Video | MarkupElement[] | undefined) => MarkupElement; | ||
export declare const createTag: ({ name, attributes }: XMLNode, children?: MarkupElement[], parent?: import("./markup").Unknown | import("./markup").Ad | import("./markup").Author | import("./markup").Block | import("./markup").Break | import("./markup").Emphasis | import("./markup").Heading1 | import("./markup").Heading2 | import("./markup").Heading3 | import("./markup").Heading4 | import("./markup").Heading5 | import("./markup").Heading6 | import("./markup").Image | import("./markup").Inline | import("./markup").Interactive | import("./markup").KeyFacts | import("./markup").Link | import("./markup").ListElement | import("./markup").OrderedList | import("./markup").Paragraph | import("./markup").PullQuote | import("./markup").Subscript | import("./markup").Superscript | import("./markup").Strong | import("./markup").Text | import("./markup").UnorderedList | import("./markup").Video | import("./markup").WordBreakOpportunity | MarkupElement[] | undefined) => MarkupElement; | ||
export declare const addChildren: (x: MarkupElement, children: MarkupElement[]) => MarkupElement; |
@@ -18,3 +18,3 @@ export declare type UUID = string & { | ||
}; | ||
export declare type MarkupElement = Unknown | Ad | Author | Block | Bold | Break | Heading1 | Heading2 | Heading3 | Heading4 | Heading5 | Heading6 | Image | Inline | Interactive | Italic | KeyFacts | Link | ListElement | OrderedList | Paragraph | PullQuote | Text | UnorderedList | Video; | ||
export declare type MarkupElement = Unknown | Ad | Author | Block | Break | Emphasis | Heading1 | Heading2 | Heading3 | Heading4 | Heading5 | Heading6 | Image | Inline | Interactive | KeyFacts | Link | ListElement | OrderedList | Paragraph | PullQuote | Subscript | Superscript | Strong | Text | UnorderedList | Video | WordBreakOpportunity; | ||
export interface Unknown { | ||
@@ -46,10 +46,10 @@ parent?: Array<MarkupElement> | MarkupElement; | ||
} | ||
export interface Bold { | ||
export interface Break { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "bold"; | ||
name: "break"; | ||
children: Array<MarkupElement>; | ||
} | ||
export interface Break { | ||
export interface Emphasis { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "break"; | ||
name: "emphasis"; | ||
children: Array<MarkupElement>; | ||
@@ -113,7 +113,2 @@ } | ||
} | ||
export interface Italic { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "italic"; | ||
children: Array<MarkupElement>; | ||
} | ||
export interface KeyFacts { | ||
@@ -160,2 +155,17 @@ parent?: Array<MarkupElement> | MarkupElement; | ||
} | ||
export interface Subscript { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "subscript"; | ||
children: Array<MarkupElement>; | ||
} | ||
export interface Superscript { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "superscript"; | ||
children: Array<MarkupElement>; | ||
} | ||
export interface Strong { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "strong"; | ||
children: Array<MarkupElement>; | ||
} | ||
export interface Text { | ||
@@ -190,2 +200,7 @@ parent?: Array<MarkupElement> | MarkupElement; | ||
} | ||
export interface WordBreakOpportunity { | ||
parent?: Array<MarkupElement> | MarkupElement; | ||
name: "wordBreakOpportunity"; | ||
children: Array<MarkupElement>; | ||
} | ||
export declare type XMLNode = { | ||
@@ -192,0 +207,0 @@ name: string; |
{ | ||
"name": "@thetimes/methode-parser", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"main": "lib/index.js", | ||
@@ -23,15 +23,15 @@ "typings": "lib/types/index.d.ts", | ||
"sax": "1.2.4", | ||
"tslib": "1.9.2" | ||
"tslib": "1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "23.1.1", | ||
"@types/sax": "1.0.0", | ||
"jest": "23.1.0", | ||
"prettier": "1.13.5", | ||
"@types/jest": "23.3.1", | ||
"@types/sax": "1.0.1", | ||
"jest": "23.5.0", | ||
"prettier": "1.14.2", | ||
"rimraf": "2.6.2", | ||
"ts-jest": "22.4.6", | ||
"tslint": "5.10.0", | ||
"tslint-config-airbnb": "5.9.2", | ||
"tslint-config-prettier": "1.13.0", | ||
"typescript": "2.9.1" | ||
"ts-jest": "23.1.4", | ||
"tslint": "5.11.0", | ||
"tslint-config-airbnb": "5.10.0", | ||
"tslint-config-prettier": "1.15.0", | ||
"typescript": "3.0.1" | ||
}, | ||
@@ -38,0 +38,0 @@ "jest": { |
56091
986
+ Addedtslib@1.9.3(transitive)
- Removedtslib@1.9.2(transitive)
Updatedtslib@1.9.3