@contentful/structured-text-types
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -11,2 +11,3 @@ "use strict"; | ||
nodeClass: 'document', | ||
data: {}, | ||
content: [], | ||
@@ -19,2 +20,3 @@ }; | ||
nodeClass: 'document', | ||
data: {}, | ||
content: [ | ||
@@ -24,2 +26,3 @@ { | ||
nodeClass: 'block', | ||
data: {}, | ||
content: [], | ||
@@ -36,2 +39,3 @@ }, | ||
nodeClass: 'block', | ||
data: {}, | ||
content: [], | ||
@@ -44,2 +48,3 @@ }; | ||
nodeClass: 'block', | ||
data: {}, | ||
content: [ | ||
@@ -49,2 +54,3 @@ { | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [], | ||
@@ -59,2 +65,3 @@ }, | ||
nodeClass: 'block', | ||
data: {}, | ||
content: [ | ||
@@ -64,2 +71,3 @@ { | ||
value: 'hi', | ||
data: {}, | ||
marks: [], | ||
@@ -76,2 +84,3 @@ }, | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [], | ||
@@ -84,2 +93,3 @@ }; | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [ | ||
@@ -89,2 +99,3 @@ { | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [], | ||
@@ -99,2 +110,3 @@ }, | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [ | ||
@@ -104,2 +116,3 @@ { | ||
value: 'hi', | ||
data: {}, | ||
marks: [], | ||
@@ -116,2 +129,3 @@ }, | ||
value: '', | ||
data: {}, | ||
marks: [], | ||
@@ -123,2 +137,3 @@ }; | ||
nodeClass: 'text', | ||
data: {}, | ||
value: '', | ||
@@ -125,0 +140,0 @@ marks: [{ type: 'bold' }], |
@@ -26,3 +26,7 @@ "use strict"; | ||
*/ | ||
exports.VOID_BLOCKS = [blocks_1.default.HR, blocks_1.default.EMBEDDED_ENTRY]; | ||
exports.VOID_BLOCKS = [ | ||
blocks_1.default.HR, | ||
blocks_1.default.EMBEDDED_ENTRY, | ||
blocks_1.default.EMBEDDED_ASSET, | ||
]; | ||
/** | ||
@@ -29,0 +33,0 @@ * Dictionary of all container block types, and the set block types they accept as children. |
@@ -68,3 +68,7 @@ 'use strict'; | ||
*/ | ||
var VOID_BLOCKS = [BLOCKS.HR, BLOCKS.EMBEDDED_ENTRY]; | ||
var VOID_BLOCKS = [ | ||
BLOCKS.HR, | ||
BLOCKS.EMBEDDED_ENTRY, | ||
BLOCKS.EMBEDDED_ASSET, | ||
]; | ||
/** | ||
@@ -71,0 +75,0 @@ * Dictionary of all container block types, and the set block types they accept as children. |
export declare type NodeClass = 'document' | 'block' | 'inline' | 'text'; | ||
export declare type NodeData = Record<string, any>; | ||
export interface Node { | ||
readonly nodeType?: string; | ||
readonly nodeClass: NodeClass; | ||
data?: Record<string, any>; | ||
data: NodeData; | ||
} | ||
@@ -7,0 +8,0 @@ export interface Document extends Node { |
{ | ||
"name": "@contentful/structured-text-types", | ||
"version": "3.3.0", | ||
"version": "3.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
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
26422
485