@contentful/rich-text-types
Advanced tools
Comparing version 4.2.0 to 5.0.0
@@ -10,3 +10,2 @@ "use strict"; | ||
nodeType: blocks_1.default.DOCUMENT, | ||
nodeClass: 'document', | ||
data: {}, | ||
@@ -19,3 +18,2 @@ content: [], | ||
nodeType: blocks_1.default.DOCUMENT, | ||
nodeClass: 'document', | ||
data: {}, | ||
@@ -25,3 +23,2 @@ content: [ | ||
nodeType: faker_1.default.name.title(), | ||
nodeClass: 'block', | ||
data: {}, | ||
@@ -38,3 +35,2 @@ content: [], | ||
nodeType: blocks_1.default.PARAGRAPH, | ||
nodeClass: 'block', | ||
data: {}, | ||
@@ -47,3 +43,2 @@ content: [], | ||
nodeType: blocks_1.default.PARAGRAPH, | ||
nodeClass: 'block', | ||
data: {}, | ||
@@ -53,3 +48,2 @@ content: [ | ||
nodeType: faker_1.default.name.title(), | ||
nodeClass: 'inline', | ||
data: {}, | ||
@@ -64,7 +58,6 @@ content: [], | ||
nodeType: blocks_1.default.PARAGRAPH, | ||
nodeClass: 'block', | ||
data: {}, | ||
content: [ | ||
{ | ||
nodeClass: 'text', | ||
nodeType: 'text', | ||
value: 'hi', | ||
@@ -82,3 +75,2 @@ data: {}, | ||
nodeType: inlines_1.default.HYPERLINK, | ||
nodeClass: 'inline', | ||
data: {}, | ||
@@ -91,3 +83,2 @@ content: [], | ||
nodeType: inlines_1.default.HYPERLINK, | ||
nodeClass: 'inline', | ||
data: {}, | ||
@@ -97,3 +88,2 @@ content: [ | ||
nodeType: faker_1.default.name.title(), | ||
nodeClass: 'inline', | ||
data: {}, | ||
@@ -108,7 +98,6 @@ content: [], | ||
nodeType: faker_1.default.name.title(), | ||
nodeClass: 'inline', | ||
data: {}, | ||
content: [ | ||
{ | ||
nodeClass: 'text', | ||
nodeType: 'text', | ||
value: 'hi', | ||
@@ -125,3 +114,3 @@ data: {}, | ||
var text = { | ||
nodeClass: 'text', | ||
nodeType: 'text', | ||
value: '', | ||
@@ -134,3 +123,3 @@ data: {}, | ||
var textWithMarks = { | ||
nodeClass: 'text', | ||
nodeType: 'text', | ||
data: {}, | ||
@@ -137,0 +126,0 @@ value: '', |
@@ -1,22 +0,17 @@ | ||
export declare type NodeClass = 'document' | 'block' | 'inline' | 'text'; | ||
export declare type NodeData = Record<string, any>; | ||
export interface Node { | ||
readonly nodeType?: string; | ||
readonly nodeClass: NodeClass; | ||
readonly nodeType: string; | ||
data: NodeData; | ||
} | ||
export interface Document extends Node { | ||
nodeClass: 'document'; | ||
content: Block[]; | ||
} | ||
export interface Block extends Node { | ||
nodeClass: 'block'; | ||
content: Array<Block | Inline | Text>; | ||
} | ||
export interface Inline extends Node { | ||
nodeClass: 'inline'; | ||
content: Array<Inline | Text>; | ||
} | ||
export interface Text extends Node { | ||
nodeClass: 'text'; | ||
nodeType: 'text'; | ||
value: string; | ||
@@ -23,0 +18,0 @@ marks: Mark[]; |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "4.2.0", | ||
"version": "5.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
25663
463