@contentful/rich-text-types
Advanced tools
Comparing version 15.6.2 to 15.7.0
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.V1_NODE_TYPES = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0; | ||
exports.V1_NODE_TYPES = exports.TEXT_CONTAINERS = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0; | ||
var blocks_1 = __importDefault(require("./blocks")); | ||
@@ -61,2 +61,4 @@ var inlines_1 = __importDefault(require("./inlines")); | ||
* 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` | ||
*/ | ||
@@ -74,2 +76,14 @@ exports.CONTAINERS = (_a = {}, | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
*/ | ||
exports.TEXT_CONTAINERS = [ | ||
blocks_1.default.PARAGRAPH, | ||
blocks_1.default.HEADING_1, | ||
blocks_1.default.HEADING_2, | ||
blocks_1.default.HEADING_3, | ||
blocks_1.default.HEADING_4, | ||
blocks_1.default.HEADING_5, | ||
blocks_1.default.HEADING_6, | ||
]; | ||
/** | ||
* Node types before `tables` release. | ||
@@ -76,0 +90,0 @@ */ |
@@ -1042,2 +1042,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` | ||
*/ | ||
@@ -1055,2 +1057,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. | ||
@@ -1137,2 +1151,3 @@ */ | ||
exports.TABLE_BLOCKS = TABLE_BLOCKS; | ||
exports.TEXT_CONTAINERS = TEXT_CONTAINERS; | ||
exports.TOP_LEVEL_BLOCKS = TOP_LEVEL_BLOCKS; | ||
@@ -1139,0 +1154,0 @@ exports.V1_NODE_TYPES = V1_NODE_TYPES; |
@@ -20,2 +20,4 @@ import BLOCKS from './blocks'; | ||
* 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` | ||
*/ | ||
@@ -33,4 +35,8 @@ export declare const CONTAINERS: { | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
*/ | ||
export declare const TEXT_CONTAINERS: BLOCKS[]; | ||
/** | ||
* Node types before `tables` release. | ||
*/ | ||
export declare const V1_NODE_TYPES: string[]; |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "15.6.2", | ||
"version": "15.7.0", | ||
"main": "dist/rich-text-types.es5.js", | ||
@@ -48,3 +48,3 @@ "typings": "dist/types/index.d.ts", | ||
}, | ||
"gitHead": "b391b031804815917be831c1cf45635664365401" | ||
"gitHead": "f1e1e5792731ffd4800e9c7136425d4306d8ef87" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
67
5449
0
228948