@contentful/rich-text-types
Advanced tools
Comparing version 14.0.0 to 14.0.1
@@ -22,4 +22,6 @@ "use strict"; | ||
__export(require("./schemaConstraints")); | ||
var emptyDocument_1 = require("./emptyDocument"); | ||
exports.EMPTY_DOCUMENT = emptyDocument_1.default; | ||
var helpers = __importStar(require("./helpers")); | ||
exports.helpers = helpers; | ||
//# sourceMappingURL=index.js.map |
@@ -856,2 +856,25 @@ 'use strict'; | ||
/** | ||
* A rich text document considered to be empty. | ||
* Any other document structure than this is not considered empty. | ||
*/ | ||
var EMPTY_DOCUMENT = { | ||
nodeType: BLOCKS$1.DOCUMENT, | ||
data: {}, | ||
content: [ | ||
{ | ||
nodeType: BLOCKS$1.PARAGRAPH, | ||
data: {}, | ||
content: [ | ||
{ | ||
nodeType: 'text', | ||
value: '', | ||
marks: [], | ||
data: {}, | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
/** | ||
* Checks if the node is an instance of Inline. | ||
@@ -883,2 +906,3 @@ */ | ||
exports.CONTAINERS = CONTAINERS; | ||
exports.EMPTY_DOCUMENT = EMPTY_DOCUMENT; | ||
exports.INLINES = INLINES$1; | ||
@@ -885,0 +909,0 @@ exports.MARKS = marks; |
@@ -8,4 +8,5 @@ import 'core-js/features/object/values'; | ||
export * from './types'; | ||
export * from './nodeTypes'; | ||
export { default as EMPTY_DOCUMENT } from './emptyDocument'; | ||
import * as helpers from './helpers'; | ||
export { helpers }; | ||
export * from './nodeTypes'; |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"main": "dist/rich-text-types.es5.js", | ||
@@ -45,3 +45,3 @@ "typings": "dist/types/index.d.ts", | ||
}, | ||
"gitHead": "73dac52d408978684bca6bcfdd10a8ac63222c4d" | ||
"gitHead": "e19a498179f6dc5416b1c39d941f6b2f37646575" | ||
} |
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
117794
40
1393