datocms-structured-text-utils
Advanced tools
Comparing version 1.2.3-alpha.0 to 1.2.3-alpha.1
@@ -63,6 +63,6 @@ "use strict"; | ||
exports.allowedAttributes = (_b = {}, | ||
_b[exports.blockquoteNodeType] = ['children', 'attribution'], | ||
_b[exports.blockquoteNodeType] = ['children', 'attribution', 'customStyle'], | ||
_b[exports.blockNodeType] = ['item'], | ||
_b[exports.codeNodeType] = ['language', 'highlight', 'code'], | ||
_b[exports.headingNodeType] = ['level', 'children'], | ||
_b[exports.codeNodeType] = ['language', 'highlight', 'code', 'customStyle'], | ||
_b[exports.headingNodeType] = ['level', 'children', 'customStyle'], | ||
_b[exports.inlineItemNodeType] = ['item'], | ||
@@ -73,6 +73,6 @@ _b[exports.itemLinkNodeType] = ['item', 'children', 'meta'], | ||
_b[exports.listNodeType] = ['style', 'children'], | ||
_b[exports.paragraphNodeType] = ['children'], | ||
_b[exports.paragraphNodeType] = ['children', 'customStyle'], | ||
_b[exports.rootNodeType] = ['children'], | ||
_b[exports.spanNodeType] = ['value', 'marks'], | ||
_b[exports.thematicBreakNodeType] = [], | ||
_b[exports.thematicBreakNodeType] = ['customStyle'], | ||
_b); | ||
@@ -79,0 +79,0 @@ exports.defaultMarks = [ |
@@ -60,6 +60,6 @@ var _a, _b; | ||
export var allowedAttributes = (_b = {}, | ||
_b[blockquoteNodeType] = ['children', 'attribution'], | ||
_b[blockquoteNodeType] = ['children', 'attribution', 'customStyle'], | ||
_b[blockNodeType] = ['item'], | ||
_b[codeNodeType] = ['language', 'highlight', 'code'], | ||
_b[headingNodeType] = ['level', 'children'], | ||
_b[codeNodeType] = ['language', 'highlight', 'code', 'customStyle'], | ||
_b[headingNodeType] = ['level', 'children', 'customStyle'], | ||
_b[inlineItemNodeType] = ['item'], | ||
@@ -70,6 +70,6 @@ _b[itemLinkNodeType] = ['item', 'children', 'meta'], | ||
_b[listNodeType] = ['style', 'children'], | ||
_b[paragraphNodeType] = ['children'], | ||
_b[paragraphNodeType] = ['children', 'customStyle'], | ||
_b[rootNodeType] = ['children'], | ||
_b[spanNodeType] = ['value', 'marks'], | ||
_b[thematicBreakNodeType] = [], | ||
_b[thematicBreakNodeType] = ['customStyle'], | ||
_b); | ||
@@ -76,0 +76,0 @@ export var defaultMarks = [ |
export declare type Node = BlockNode | InlineNode; | ||
export declare type BlockNode = Root | Paragraph | Heading | Block | List | ListItem | Blockquote | Code | ThematicBreak; | ||
export declare type BlockNodeWithCustomStyle = Paragraph | Heading | Blockquote | Code | ThematicBreak; | ||
export declare type BlockNodeTypeWithCustomStyle = ParagraphType | HeadingType | BlockquoteType | CodeType | ThematicBreakType; | ||
export declare type InlineNode = Span | Link | ItemLink | InlineItem; | ||
@@ -58,2 +60,4 @@ export declare type NodeWithMeta = Link | ItemLink; | ||
type: ParagraphType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<InlineNode>; | ||
@@ -82,2 +86,4 @@ }; | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<InlineNode>; | ||
@@ -156,2 +162,4 @@ }; | ||
type: ThematicBreakType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -179,2 +187,4 @@ export declare type CodeType = 'code'; | ||
code: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -207,2 +217,4 @@ export declare type BlockquoteType = 'blockquote'; | ||
attribution?: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<Paragraph>; | ||
@@ -209,0 +221,0 @@ }; |
export declare type Node = BlockNode | InlineNode; | ||
export declare type BlockNode = Root | Paragraph | Heading | Block | List | ListItem | Blockquote | Code | ThematicBreak; | ||
export declare type BlockNodeWithCustomStyle = Paragraph | Heading | Blockquote | Code | ThematicBreak; | ||
export declare type BlockNodeTypeWithCustomStyle = ParagraphType | HeadingType | BlockquoteType | CodeType | ThematicBreakType; | ||
export declare type InlineNode = Span | Link | ItemLink | InlineItem; | ||
@@ -58,2 +60,4 @@ export declare type NodeWithMeta = Link | ItemLink; | ||
type: ParagraphType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<InlineNode>; | ||
@@ -82,2 +86,4 @@ }; | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<InlineNode>; | ||
@@ -156,2 +162,4 @@ }; | ||
type: ThematicBreakType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -179,2 +187,4 @@ export declare type CodeType = 'code'; | ||
code: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -207,2 +217,4 @@ export declare type BlockquoteType = 'blockquote'; | ||
attribution?: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
children: Array<Paragraph>; | ||
@@ -209,0 +221,0 @@ }; |
{ | ||
"name": "datocms-structured-text-utils", | ||
"version": "1.2.3-alpha.0", | ||
"version": "1.2.3-alpha.1", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields.", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "a300eb72a078d572ec8e8bc4e53ff7d96dfe0529" | ||
"gitHead": "fdbd7f018f23019674d88d14ba5a7f0476571007" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82702
1618