@contentful/rich-text-types
Advanced tools
Comparing version 15.10.1 to 15.11.0
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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; | ||
exports.V1_NODE_TYPES = exports.TEXT_CONTAINERS = exports.HEADINGS = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0; | ||
var blocks_1 = require("./blocks"); | ||
@@ -71,6 +80,5 @@ var inlines_1 = require("./inlines"); | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
* Array of all heading levels | ||
*/ | ||
exports.TEXT_CONTAINERS = [ | ||
blocks_1.BLOCKS.PARAGRAPH, | ||
exports.HEADINGS = [ | ||
blocks_1.BLOCKS.HEADING_1, | ||
@@ -84,2 +92,6 @@ blocks_1.BLOCKS.HEADING_2, | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
*/ | ||
exports.TEXT_CONTAINERS = __spreadArray([blocks_1.BLOCKS.PARAGRAPH], exports.HEADINGS, true); | ||
/** | ||
* Node types before `tables` release. | ||
@@ -86,0 +98,0 @@ */ |
@@ -34,2 +34,6 @@ import { BLOCKS } from './blocks'; | ||
/** | ||
* Array of all heading levels | ||
*/ | ||
export declare const HEADINGS: BLOCKS[]; | ||
/** | ||
* Array of all block types that may contain text and inline nodes. | ||
@@ -36,0 +40,0 @@ */ |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "15.10.1", | ||
"version": "15.11.0", | ||
"main": "dist/index.js", | ||
@@ -50,3 +50,3 @@ "typings": "dist/types/index.d.ts", | ||
}, | ||
"gitHead": "f4fe4b43c9b233a56fd802b7995beacb6bcb3ddc" | ||
"gitHead": "38846b2330f1a9a8d1379ef339ee7cf783a3dd68" | ||
} |
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
171635
5249