@contentful/rich-text-types
Advanced tools
Comparing version
@@ -23,3 +23,10 @@ "use strict"; | ||
}); | ||
it('should allow UL_LIST and OL_LIST blocks as children of TABLE_CELL', function () { | ||
// Get the children of TABLE_CELL | ||
var tableCellChildren = schemaConstraints_1.CONTAINERS[blocks_1.BLOCKS.TABLE_CELL]; | ||
// Check that UL_LIST and OL_LIST are in the children array | ||
expect(tableCellChildren).toContain(blocks_1.BLOCKS.UL_LIST); | ||
expect(tableCellChildren).toContain(blocks_1.BLOCKS.OL_LIST); | ||
}); | ||
}); | ||
//# sourceMappingURL=schemaConstraints.test.js.map |
@@ -84,3 +84,3 @@ "use strict"; | ||
_a[blocks_1.BLOCKS.TABLE_ROW] = [blocks_1.BLOCKS.TABLE_CELL, blocks_1.BLOCKS.TABLE_HEADER_CELL], | ||
_a[blocks_1.BLOCKS.TABLE_CELL] = [blocks_1.BLOCKS.PARAGRAPH], | ||
_a[blocks_1.BLOCKS.TABLE_CELL] = [blocks_1.BLOCKS.PARAGRAPH, blocks_1.BLOCKS.UL_LIST, blocks_1.BLOCKS.OL_LIST], | ||
_a[blocks_1.BLOCKS.TABLE_HEADER_CELL] = [blocks_1.BLOCKS.PARAGRAPH], | ||
@@ -87,0 +87,0 @@ _a); |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "16.6.3", | ||
"version": "16.7.0", | ||
"main": "dist/index.js", | ||
@@ -36,3 +36,3 @@ "typings": "dist/types/index.d.ts", | ||
}, | ||
"gitHead": "8781c61ef0380e0d4c16705b5d4850350012e0c9" | ||
"gitHead": "b08b39759d6e1366061420d1c59304bd8bffcfe1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139296
0.87%4928
0.14%