@contentful/structured-text-types
Advanced tools
Comparing version 2.3.0 to 2.4.0
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -9,4 +12,3 @@ var blocks_1 = require("./blocks"); | ||
exports.MARKS = marks_1.default; | ||
var containers_1 = require("./containers"); | ||
exports.CONTAINERS = containers_1.default; | ||
__export(require("./schemaConstraints")); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Map of all Contentful marks. | ||
*/ | ||
exports.default = { | ||
@@ -4,0 +7,0 @@ BOLD: 'bold', |
@@ -34,2 +34,5 @@ 'use strict'; | ||
/** | ||
* Map of all Contentful marks. | ||
*/ | ||
var marks = { | ||
@@ -43,2 +46,6 @@ BOLD: 'bold', | ||
var _a; | ||
/** | ||
* Array of all top level block types. | ||
* Only these block types can be the direct children of the document. | ||
*/ | ||
var TOP_LEVEL_BLOCKS = [ | ||
@@ -59,2 +66,6 @@ BLOCKS.PARAGRAPH, | ||
/** | ||
* Array of all void block types | ||
*/ | ||
var VOID_BLOCKS = [BLOCKS.HR, BLOCKS.EMBEDDED_ENTRY]; | ||
/** | ||
* Dictionary of all container block types, and the set block types they accept as children. | ||
@@ -73,3 +84,5 @@ * | ||
exports.MARKS = marks; | ||
exports.TOP_LEVEL_BLOCKS = TOP_LEVEL_BLOCKS; | ||
exports.VOID_BLOCKS = VOID_BLOCKS; | ||
exports.CONTAINERS = CONTAINERS; | ||
//# sourceMappingURL=structured-text-types.es5.js.map |
export { default as BLOCKS } from './blocks'; | ||
export { default as INLINES } from './inlines'; | ||
export { default as MARKS } from './marks'; | ||
export { default as CONTAINERS } from './containers'; | ||
export * from './schemaConstraints'; | ||
export * from './types'; |
@@ -7,2 +7,5 @@ declare const _default: { | ||
}; | ||
/** | ||
* Map of all Contentful marks. | ||
*/ | ||
export default _default; |
{ | ||
"name": "@contentful/structured-text-types", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24667
443