datocms-structured-text-generic-html-renderer
Advanced tools
Comparing version 0.1.0-alpha.21 to 0.1.0-alpha.22
@@ -48,4 +48,8 @@ "use strict"; | ||
datocms_structured_text_utils_1.renderRule(datocms_structured_text_utils_1.isBlockquote, function (_a) { | ||
var renderNode = _a.adapter.renderNode, key = _a.key, children = _a.children; | ||
return renderNode('blockquote', { key: key }, children); | ||
var renderNode = _a.adapter.renderNode, key = _a.key, node = _a.node, children = _a.children; | ||
var childrenWithAttribution = node.attribution | ||
? __spreadArrays(children, [ | ||
renderNode("footer", { key: 'footer' }, node.attribution), | ||
]) : children; | ||
return renderNode('blockquote', { key: key }, childrenWithAttribution); | ||
}), | ||
@@ -52,0 +56,0 @@ datocms_structured_text_utils_1.renderRule(datocms_structured_text_utils_1.isCode, function (_a) { |
{ | ||
"name": "datocms-structured-text-generic-html-renderer", | ||
"version": "0.1.0-alpha.21", | ||
"version": "0.1.0-alpha.22", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields", | ||
@@ -33,5 +33,5 @@ "keywords": [ | ||
"dependencies": { | ||
"datocms-structured-text-utils": "^0.1.0-alpha.21" | ||
"datocms-structured-text-utils": "^0.1.0-alpha.22" | ||
}, | ||
"gitHead": "63cd858fcba87bd7d353adf8537d07a2d1a0589b" | ||
"gitHead": "de06dc326cffe7c99a1ba108b09102b7910407fb" | ||
} |
Sorry, the diff of this file is not supported yet
11047
89