@atjson/renderer-html
Advanced tools
Comparing version 0.19.1 to 0.21.0
@@ -6,2 +6,15 @@ # Change Log | ||
## [0.21.0](https://github.com/CondeNast/atjson/compare/@atjson/renderer-html@0.19.1...@atjson/renderer-html@0.21.0) (2019-09-12) | ||
### 🐛 Fixes | ||
* 🐞 Make Image description a string (fixes [#189](https://github.com/CondeNast/atjson/issues/189)) | ||
### 🚨 Breaking Changes | ||
* If you are using the Image annotation, you will need to change your component or render function to handle description as a string, not as a document | ||
## [0.19.1](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-html@0.19.0...@atjson/renderer-html@0.19.1) (2019-08-26) | ||
@@ -8,0 +21,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { Code, Heading, Image, Link, List } from '@atjson/offset-annotations'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import { Code, Heading, Image, Link, List } from "@atjson/offset-annotations"; | ||
import Renderer from "@atjson/renderer-hir"; | ||
export default class HTMLRenderer extends Renderer { | ||
@@ -4,0 +4,0 @@ $(tagName: string, props?: { |
@@ -9,6 +9,6 @@ "use strict"; | ||
let value = attributes[key]; | ||
if (typeof value === 'number') { | ||
if (typeof value === "number") { | ||
results.push(`${key}=${value}`); | ||
} | ||
else if (typeof value === 'boolean' && value === true) { | ||
else if (typeof value === "boolean" && value === true) { | ||
results.push(`${key}`); | ||
@@ -25,3 +25,3 @@ } | ||
if (htmlAttributes.length) { | ||
return `<${tagName} ${htmlAttributes.join(' ')} />`; | ||
return `<${tagName} ${htmlAttributes.join(" ")} />`; | ||
} | ||
@@ -31,19 +31,20 @@ return `<${tagName} />`; | ||
if (htmlAttributes.length) { | ||
return `<${tagName} ${htmlAttributes.join(' ')}>${innerHTML.join('')}</${tagName}>`; | ||
return `<${tagName} ${htmlAttributes.join(" ")}>${innerHTML.join("")}</${tagName}>`; | ||
} | ||
return `<${tagName}>${innerHTML.join('')}</${tagName}>`; | ||
return `<${tagName}>${innerHTML.join("")}</${tagName}>`; | ||
} | ||
*root() { | ||
let html = yield; | ||
return html.join(''); | ||
return html.join(""); | ||
} | ||
*Blockquote() { | ||
return yield* this.$('blockquote'); | ||
return yield* this.$("blockquote"); | ||
} | ||
*Bold() { | ||
return yield* this.$('strong'); | ||
return yield* this.$("strong"); | ||
} | ||
*Code(code) { | ||
let codeSnippet = yield* this.$('code'); | ||
if (code.attributes.style === 'block' || code.attributes.style === 'fence') { | ||
let codeSnippet = yield* this.$("code"); | ||
if (code.attributes.style === "block" || | ||
code.attributes.style === "fence") { | ||
return `<pre>${codeSnippet}</pre>`; | ||
@@ -57,11 +58,10 @@ } | ||
*HorizontalRule() { | ||
return yield* this.$('hr', { selfClosing: true }); | ||
return yield* this.$("hr", { selfClosing: true }); | ||
} | ||
*Image(image) { | ||
return yield* this.$('img', { | ||
return yield* this.$("img", { | ||
attributes: { | ||
src: image.attributes.url, | ||
title: image.attributes.title, | ||
alt: image.attributes.description ? | ||
this.constructor.render(image.attributes.description) : undefined | ||
alt: image.attributes.description | ||
}, | ||
@@ -72,9 +72,9 @@ selfClosing: true | ||
*Italic() { | ||
return yield* this.$('em'); | ||
return yield* this.$("em"); | ||
} | ||
*LineBreak() { | ||
return yield* this.$('br', { selfClosing: true }); | ||
return yield* this.$("br", { selfClosing: true }); | ||
} | ||
*Link(link) { | ||
return yield* this.$('a', { | ||
return yield* this.$("a", { | ||
attributes: { | ||
@@ -87,3 +87,3 @@ href: link.attributes.url, | ||
*List(list) { | ||
let tagName = list.attributes.type === 'numbered' ? 'ol' : 'ul'; | ||
let tagName = list.attributes.type === "numbered" ? "ol" : "ul"; | ||
return yield* this.$(tagName, { | ||
@@ -98,18 +98,18 @@ attributes: { | ||
*ListItem() { | ||
return yield* this.$('li'); | ||
return yield* this.$("li"); | ||
} | ||
*Paragraph() { | ||
return yield* this.$('p'); | ||
return yield* this.$("p"); | ||
} | ||
*Subscript() { | ||
return yield* this.$('sub'); | ||
return yield* this.$("sub"); | ||
} | ||
*Superscript() { | ||
return yield* this.$('sup'); | ||
return yield* this.$("sup"); | ||
} | ||
*Underline() { | ||
return yield* this.$('u'); | ||
return yield* this.$("u"); | ||
} | ||
} | ||
exports.default = HTMLRenderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFPQSx1REFBNEM7QUFFNUMsTUFBcUIsWUFBYSxTQUFRLHNCQUFRO0lBWWhELENBQUMsQ0FBQyxDQUFDLE9BQWUsRUFBRSxLQUFtRDtRQUNyRSxJQUFJLFVBQVUsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxVQUFVLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDckQsSUFBSSxjQUFjLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxPQUFPLEVBQUUsR0FBRyxFQUFFLEVBQUU7WUFDbkUsSUFBSSxLQUFLLEdBQUcsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQzVCLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxFQUFFO2dCQUM3QixPQUFPLENBQUMsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDLENBQUM7YUFDakM7aUJBQU0sSUFBSSxPQUFPLEtBQUssS0FBSyxTQUFTLElBQUksS0FBSyxLQUFLLElBQUksRUFBRTtnQkFDdkQsT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLENBQUM7YUFDeEI7aUJBQU0sSUFBSSxLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssS0FBSyxLQUFLLEVBQUU7Z0JBQzNDLE9BQU8sQ0FBQyxJQUFJLENB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QyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFFRCxDQUFDLFdBQVc7UUFDVixPQUFPLEtBQUssQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDOUIsQ0FBQztJQUVELENBQUMsU0FBUztRQUNSLE9BQU8sS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDO0NBQ0Y7QUEzSUQsK0JBMklDIn0= |
@@ -1,3 +0,3 @@ | ||
import { Code, Heading, Image, Link, List } from '@atjson/offset-annotations'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import { Code, Heading, Image, Link, List } from "@atjson/offset-annotations"; | ||
import Renderer from "@atjson/renderer-hir"; | ||
export default class HTMLRenderer extends Renderer { | ||
@@ -4,0 +4,0 @@ $(tagName: string, props?: { |
@@ -1,2 +0,2 @@ | ||
import Renderer from '@atjson/renderer-hir'; | ||
import Renderer from "@atjson/renderer-hir"; | ||
export default class HTMLRenderer extends Renderer { | ||
@@ -7,6 +7,6 @@ *$(tagName, props) { | ||
let value = attributes[key]; | ||
if (typeof value === 'number') { | ||
if (typeof value === "number") { | ||
results.push(`${key}=${value}`); | ||
} | ||
else if (typeof value === 'boolean' && value === true) { | ||
else if (typeof value === "boolean" && value === true) { | ||
results.push(`${key}`); | ||
@@ -23,3 +23,3 @@ } | ||
if (htmlAttributes.length) { | ||
return `<${tagName} ${htmlAttributes.join(' ')} />`; | ||
return `<${tagName} ${htmlAttributes.join(" ")} />`; | ||
} | ||
@@ -29,19 +29,20 @@ return `<${tagName} />`; | ||
if (htmlAttributes.length) { | ||
return `<${tagName} ${htmlAttributes.join(' ')}>${innerHTML.join('')}</${tagName}>`; | ||
return `<${tagName} ${htmlAttributes.join(" ")}>${innerHTML.join("")}</${tagName}>`; | ||
} | ||
return `<${tagName}>${innerHTML.join('')}</${tagName}>`; | ||
return `<${tagName}>${innerHTML.join("")}</${tagName}>`; | ||
} | ||
*root() { | ||
let html = yield; | ||
return html.join(''); | ||
return html.join(""); | ||
} | ||
*Blockquote() { | ||
return yield* this.$('blockquote'); | ||
return yield* this.$("blockquote"); | ||
} | ||
*Bold() { | ||
return yield* this.$('strong'); | ||
return yield* this.$("strong"); | ||
} | ||
*Code(code) { | ||
let codeSnippet = yield* this.$('code'); | ||
if (code.attributes.style === 'block' || code.attributes.style === 'fence') { | ||
let codeSnippet = yield* this.$("code"); | ||
if (code.attributes.style === "block" || | ||
code.attributes.style === "fence") { | ||
return `<pre>${codeSnippet}</pre>`; | ||
@@ -55,11 +56,10 @@ } | ||
*HorizontalRule() { | ||
return yield* this.$('hr', { selfClosing: true }); | ||
return yield* this.$("hr", { selfClosing: true }); | ||
} | ||
*Image(image) { | ||
return yield* this.$('img', { | ||
return yield* this.$("img", { | ||
attributes: { | ||
src: image.attributes.url, | ||
title: image.attributes.title, | ||
alt: image.attributes.description ? | ||
this.constructor.render(image.attributes.description) : undefined | ||
alt: image.attributes.description | ||
}, | ||
@@ -70,9 +70,9 @@ selfClosing: true | ||
*Italic() { | ||
return yield* this.$('em'); | ||
return yield* this.$("em"); | ||
} | ||
*LineBreak() { | ||
return yield* this.$('br', { selfClosing: true }); | ||
return yield* this.$("br", { selfClosing: true }); | ||
} | ||
*Link(link) { | ||
return yield* this.$('a', { | ||
return yield* this.$("a", { | ||
attributes: { | ||
@@ -85,3 +85,3 @@ href: link.attributes.url, | ||
*List(list) { | ||
let tagName = list.attributes.type === 'numbered' ? 'ol' : 'ul'; | ||
let tagName = list.attributes.type === "numbered" ? "ol" : "ul"; | ||
return yield* this.$(tagName, { | ||
@@ -96,17 +96,17 @@ attributes: { | ||
*ListItem() { | ||
return yield* this.$('li'); | ||
return yield* this.$("li"); | ||
} | ||
*Paragraph() { | ||
return yield* this.$('p'); | ||
return yield* this.$("p"); | ||
} | ||
*Subscript() { | ||
return yield* this.$('sub'); | ||
return yield* this.$("sub"); | ||
} | ||
*Superscript() { | ||
return yield* this.$('sup'); | ||
return yield* this.$("sup"); | ||
} | ||
*Underline() { | ||
return yield* this.$('u'); | ||
return yield* this.$("u"); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsT0FBTyxRQUFRLE1BQU0sc0JBQXNCLENBQUM7QUFFNUMsTUFBTSxDQUFDLE9BQU8sT0FBTyxZQUFhLFNBQVEsUUFBUTtJQVloRCxDQUFDLENBQUMsQ0FBQyxPQUFlLEVBQUUsS0FBbUQ7UUFDckUsSUFBSSxVQUFVLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsVUFBVSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQ3JELElBQUksY0FBYyxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsT0FBTyxFQUFFLEdBQUcsRUFBRSxFQUFFO1lBQ25FLElBQUksS0FBSyxHQUFHLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUM1QixJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtnQkFDN0IsT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxLQUFLLEVBQUUsQ0FBQyxDQUFDO2FBQ2pDO2lCQUFNLElBQUksT0FBTyxLQUFLLEtBQUssU0FBUyxJQUFJLEtBQUssS0FBSyxJQUFJLEVBQUU7Z0JBQ3ZELE9BQU8sQ0FBQyxJQUFJLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQyxDQUFDO2FBQ3hCO2lCQUF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xDQUFDO0lBQzdCLENBQUM7SUFFRCxDQUFDLFNBQVM7UUFDUixPQUFPLEtBQUssQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDNUIsQ0FBQztJQUVELENBQUMsU0FBUztRQUNSLE9BQU8sS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM5QixDQUFDO0lBRUQsQ0FBQyxXQUFXO1FBQ1YsT0FBTyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFFRCxDQUFDLFNBQVM7UUFDUixPQUFPLEtBQUssQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDNUIsQ0FBQztDQUNGIn0= |
{ | ||
"name": "@atjson/renderer-html", | ||
"version": "0.19.1", | ||
"version": "0.21.0", | ||
"description": "Render HTML documents from atjson", | ||
@@ -19,7 +19,7 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@atjson/renderer-hir": "0.19.1" | ||
"@atjson/renderer-hir": "0.21.0" | ||
}, | ||
"devDependencies": { | ||
"@atjson/document": "0.20.0", | ||
"@atjson/offset-annotations": "0.19.1" | ||
"@atjson/document": "0.21.0", | ||
"@atjson/offset-annotations": "0.21.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "e4ccea39f42908c2f11d39d8511fd042c05fc941" | ||
"gitHead": "c8d4b67b3c8b7491d611f1a09036c8ddb92c17c3" | ||
} |
32645
+ Added@atjson/hir@0.21.0(transitive)
+ Added@atjson/renderer-hir@0.21.0(transitive)
- Removed@atjson/hir@0.19.1(transitive)
- Removed@atjson/renderer-hir@0.19.1(transitive)
Updated@atjson/renderer-hir@0.21.0