@contentful/rich-text-types
Advanced tools
Comparing version 16.8.0 to 16.8.1
@@ -8,6 +8,7 @@ { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"table-cell" | ||
] | ||
"table-cell", | ||
"table-header-cell" | ||
], | ||
"type": "string" | ||
}, | ||
@@ -30,13 +31,3 @@ "data": { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Paragraph" | ||
}, | ||
{ | ||
"$ref": "#/definitions/OrderedList" | ||
}, | ||
{ | ||
"$ref": "#/definitions/UnorderedList" | ||
} | ||
] | ||
"$ref": "#/definitions/Paragraph" | ||
} | ||
@@ -173,194 +164,2 @@ } | ||
"type": "object" | ||
}, | ||
"OrderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"ordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItem": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"list-item" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItemBlock" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlock": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/ListItemBlockEnum" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlockEnum": { | ||
"enum": [ | ||
"blockquote", | ||
"embedded-asset-block", | ||
"embedded-entry-block", | ||
"embedded-resource-block", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"hr", | ||
"ordered-list", | ||
"paragraph", | ||
"unordered-list" | ||
], | ||
"type": "string" | ||
}, | ||
"Block": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/BLOCKS" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"BLOCKS": { | ||
"description": "Map of all Contentful block types. Blocks contain inline or block nodes.", | ||
"type": "string", | ||
"enum": [ | ||
"document", | ||
"paragraph", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"ordered-list", | ||
"unordered-list", | ||
"list-item", | ||
"hr", | ||
"blockquote", | ||
"embedded-entry-block", | ||
"embedded-asset-block", | ||
"embedded-resource-block", | ||
"table", | ||
"table-row", | ||
"table-cell", | ||
"table-header-cell" | ||
] | ||
}, | ||
"UnorderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"unordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
} | ||
@@ -367,0 +166,0 @@ }, |
@@ -21,10 +21,3 @@ { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/TableCell" | ||
}, | ||
{ | ||
"$ref": "#/definitions/TableHeaderCell" | ||
} | ||
] | ||
"$ref": "#/definitions/TableCell" | ||
} | ||
@@ -44,6 +37,7 @@ } | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"table-cell" | ||
] | ||
"table-cell", | ||
"table-header-cell" | ||
], | ||
"type": "string" | ||
}, | ||
@@ -66,13 +60,3 @@ "data": { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Paragraph" | ||
}, | ||
{ | ||
"$ref": "#/definitions/OrderedList" | ||
}, | ||
{ | ||
"$ref": "#/definitions/UnorderedList" | ||
} | ||
] | ||
"$ref": "#/definitions/Paragraph" | ||
} | ||
@@ -209,230 +193,2 @@ } | ||
"type": "object" | ||
}, | ||
"OrderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"ordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItem": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"list-item" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItemBlock" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlock": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/ListItemBlockEnum" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlockEnum": { | ||
"enum": [ | ||
"blockquote", | ||
"embedded-asset-block", | ||
"embedded-entry-block", | ||
"embedded-resource-block", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"hr", | ||
"ordered-list", | ||
"paragraph", | ||
"unordered-list" | ||
], | ||
"type": "string" | ||
}, | ||
"Block": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/BLOCKS" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"BLOCKS": { | ||
"description": "Map of all Contentful block types. Blocks contain inline or block nodes.", | ||
"type": "string", | ||
"enum": [ | ||
"document", | ||
"paragraph", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"ordered-list", | ||
"unordered-list", | ||
"list-item", | ||
"hr", | ||
"blockquote", | ||
"embedded-entry-block", | ||
"embedded-asset-block", | ||
"embedded-resource-block", | ||
"table", | ||
"table-row", | ||
"table-cell", | ||
"table-header-cell" | ||
] | ||
}, | ||
"UnorderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"unordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"TableHeaderCell": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"table-header-cell" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": { | ||
"colspan": { | ||
"type": "number" | ||
}, | ||
"rowspan": { | ||
"type": "number" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"content": { | ||
"minItems": 1, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Paragraph" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
} | ||
@@ -439,0 +195,0 @@ }, |
@@ -49,10 +49,3 @@ { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/TableCell" | ||
}, | ||
{ | ||
"$ref": "#/definitions/TableHeaderCell" | ||
} | ||
] | ||
"$ref": "#/definitions/TableCell" | ||
} | ||
@@ -72,6 +65,7 @@ } | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"table-cell" | ||
] | ||
"table-cell", | ||
"table-header-cell" | ||
], | ||
"type": "string" | ||
}, | ||
@@ -94,13 +88,3 @@ "data": { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Paragraph" | ||
}, | ||
{ | ||
"$ref": "#/definitions/OrderedList" | ||
}, | ||
{ | ||
"$ref": "#/definitions/UnorderedList" | ||
} | ||
] | ||
"$ref": "#/definitions/Paragraph" | ||
} | ||
@@ -237,230 +221,2 @@ } | ||
"type": "object" | ||
}, | ||
"OrderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"ordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItem": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"list-item" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItemBlock" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlock": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/ListItemBlockEnum" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"ListItemBlockEnum": { | ||
"enum": [ | ||
"blockquote", | ||
"embedded-asset-block", | ||
"embedded-entry-block", | ||
"embedded-resource-block", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"hr", | ||
"ordered-list", | ||
"paragraph", | ||
"unordered-list" | ||
], | ||
"type": "string" | ||
}, | ||
"Block": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"$ref": "#/definitions/BLOCKS" | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/Block" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Inline" | ||
}, | ||
{ | ||
"$ref": "#/definitions/Text" | ||
} | ||
] | ||
} | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"BLOCKS": { | ||
"description": "Map of all Contentful block types. Blocks contain inline or block nodes.", | ||
"type": "string", | ||
"enum": [ | ||
"document", | ||
"paragraph", | ||
"heading-1", | ||
"heading-2", | ||
"heading-3", | ||
"heading-4", | ||
"heading-5", | ||
"heading-6", | ||
"ordered-list", | ||
"unordered-list", | ||
"list-item", | ||
"hr", | ||
"blockquote", | ||
"embedded-entry-block", | ||
"embedded-asset-block", | ||
"embedded-resource-block", | ||
"table", | ||
"table-row", | ||
"table-cell", | ||
"table-header-cell" | ||
] | ||
}, | ||
"UnorderedList": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"unordered-list" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"content": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ListItem" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
}, | ||
"TableHeaderCell": { | ||
"type": "object", | ||
"properties": { | ||
"nodeType": { | ||
"type": "string", | ||
"enum": [ | ||
"table-header-cell" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": { | ||
"colspan": { | ||
"type": "number" | ||
}, | ||
"rowspan": { | ||
"type": "number" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"content": { | ||
"minItems": 1, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Paragraph" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"content", | ||
"data", | ||
"nodeType" | ||
] | ||
} | ||
@@ -467,0 +223,0 @@ }, |
@@ -167,3 +167,3 @@ import { BLOCKS } from './blocks'; | ||
export interface TableCell extends Block { | ||
nodeType: BLOCKS.TABLE_CELL; | ||
nodeType: BLOCKS.TABLE_HEADER_CELL | BLOCKS.TABLE_CELL; | ||
data: { | ||
@@ -176,14 +176,6 @@ colspan?: number; | ||
*/ | ||
content: (Paragraph | OrderedList | UnorderedList)[]; | ||
content: Paragraph[]; | ||
} | ||
export interface TableHeaderCell extends Block { | ||
export interface TableHeaderCell extends TableCell { | ||
nodeType: BLOCKS.TABLE_HEADER_CELL; | ||
data: { | ||
colspan?: number; | ||
rowspan?: number; | ||
}; | ||
/** | ||
* @minItems 1 | ||
*/ | ||
content: Paragraph[]; | ||
} | ||
@@ -196,3 +188,3 @@ export interface TableRow extends Block { | ||
*/ | ||
content: (TableCell | TableHeaderCell)[]; | ||
content: TableCell[]; | ||
} | ||
@@ -199,0 +191,0 @@ export interface Table extends Block { |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "16.8.0", | ||
"version": "16.8.1", | ||
"main": "dist/index.js", | ||
@@ -36,3 +36,3 @@ "typings": "dist/types/index.d.ts", | ||
}, | ||
"gitHead": "dde84f2c8cc2fbfd2e1c9fed02b18b1c78ebcd5c" | ||
"gitHead": "ded6d12f1561a6a10c25e708a111b0687eeee69c" | ||
} |
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
139964
4936