@contentful/rich-text-html-renderer
Advanced tools
Comparing version 15.6.2 to 15.8.0
@@ -6,2 +6,21 @@ # Change Log | ||
# [15.8.0](https://github.com/contentful/rich-text/compare/v15.7.0...v15.8.0) (2021-11-11) | ||
### Features | ||
* add toContentfulDocument() and toSlatejsDocument() empty block node handling ([#287](https://github.com/contentful/rich-text/issues/287)) ([fa79626](https://github.com/contentful/rich-text/commit/fa79626e4020d9640a920ca5d0ccb654e89cfa90)) | ||
# [15.7.0](https://github.com/contentful/rich-text/compare/v15.6.2...v15.7.0) (2021-11-11) | ||
**Note:** Version bump only for package @contentful/rich-text-html-renderer | ||
## [15.6.2](https://github.com/contentful/rich-text/compare/v15.6.1...v15.6.2) (2021-11-05) | ||
@@ -8,0 +27,0 @@ |
@@ -1159,2 +1159,4 @@ 'use strict'; | ||
* Dictionary of all container block types, and the set block types they accept as children. | ||
* | ||
* Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS` | ||
*/ | ||
@@ -1172,2 +1174,14 @@ var CONTAINERS = (_a = {}, | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
*/ | ||
var TEXT_CONTAINERS = [ | ||
BLOCKS$1.PARAGRAPH, | ||
BLOCKS$1.HEADING_1, | ||
BLOCKS$1.HEADING_2, | ||
BLOCKS$1.HEADING_3, | ||
BLOCKS$1.HEADING_4, | ||
BLOCKS$1.HEADING_5, | ||
BLOCKS$1.HEADING_6, | ||
]; | ||
/** | ||
* Node types before `tables` release. | ||
@@ -1254,2 +1268,3 @@ */ | ||
exports.TABLE_BLOCKS = TABLE_BLOCKS; | ||
exports.TEXT_CONTAINERS = TEXT_CONTAINERS; | ||
exports.TOP_LEVEL_BLOCKS = TOP_LEVEL_BLOCKS; | ||
@@ -1270,6 +1285,7 @@ exports.V1_NODE_TYPES = V1_NODE_TYPES; | ||
var richTextTypes_es5_7 = richTextTypes_es5.TABLE_BLOCKS; | ||
var richTextTypes_es5_8 = richTextTypes_es5.TOP_LEVEL_BLOCKS; | ||
var richTextTypes_es5_9 = richTextTypes_es5.V1_NODE_TYPES; | ||
var richTextTypes_es5_10 = richTextTypes_es5.VOID_BLOCKS; | ||
var richTextTypes_es5_11 = richTextTypes_es5.helpers; | ||
var richTextTypes_es5_8 = richTextTypes_es5.TEXT_CONTAINERS; | ||
var richTextTypes_es5_9 = richTextTypes_es5.TOP_LEVEL_BLOCKS; | ||
var richTextTypes_es5_10 = richTextTypes_es5.V1_NODE_TYPES; | ||
var richTextTypes_es5_11 = richTextTypes_es5.VOID_BLOCKS; | ||
var richTextTypes_es5_12 = richTextTypes_es5.helpers; | ||
@@ -1334,3 +1350,3 @@ var _a, _b; | ||
var renderNode = _a.renderNode, renderMark = _a.renderMark; | ||
if (richTextTypes_es5_11.isText(node)) { | ||
if (richTextTypes_es5_12.isText(node)) { | ||
var nodeValue = escapeHtml_1(node.value); | ||
@@ -1337,0 +1353,0 @@ if (node.marks.length > 0) { |
{ | ||
"name": "@contentful/rich-text-html-renderer", | ||
"version": "15.6.2", | ||
"version": "15.8.0", | ||
"main": "dist/rich-text-html-renderer.es5.js", | ||
@@ -27,3 +27,3 @@ "typings": "dist/types/index.d.ts", | ||
"dependencies": { | ||
"@contentful/rich-text-types": "^15.6.2", | ||
"@contentful/rich-text-types": "^15.7.0", | ||
"escape-html": "^1.0.3" | ||
@@ -47,3 +47,3 @@ }, | ||
}, | ||
"gitHead": "b391b031804815917be831c1cf45635664365401" | ||
"gitHead": "d00878e190ae694f288bea76ea8e92c1296d121e" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
216614
2245
0