datocms-structured-text-utils
Advanced tools
Comparing version 1.2.3-alpha.1 to 1.2.3-alpha.3
@@ -63,6 +63,6 @@ "use strict"; | ||
exports.allowedAttributes = (_b = {}, | ||
_b[exports.blockquoteNodeType] = ['children', 'attribution', 'customStyle'], | ||
_b[exports.blockquoteNodeType] = ['children', 'attribution'], | ||
_b[exports.blockNodeType] = ['item'], | ||
_b[exports.codeNodeType] = ['language', 'highlight', 'code', 'customStyle'], | ||
_b[exports.headingNodeType] = ['level', 'children', 'customStyle'], | ||
_b[exports.codeNodeType] = ['language', 'highlight', 'code'], | ||
_b[exports.headingNodeType] = ['level', 'children', 'style'], | ||
_b[exports.inlineItemNodeType] = ['item'], | ||
@@ -73,6 +73,6 @@ _b[exports.itemLinkNodeType] = ['item', 'children', 'meta'], | ||
_b[exports.listNodeType] = ['style', 'children'], | ||
_b[exports.paragraphNodeType] = ['children', 'customStyle'], | ||
_b[exports.paragraphNodeType] = ['children', 'style'], | ||
_b[exports.rootNodeType] = ['children'], | ||
_b[exports.spanNodeType] = ['value', 'marks'], | ||
_b[exports.thematicBreakNodeType] = ['customStyle'], | ||
_b[exports.thematicBreakNodeType] = [], | ||
_b); | ||
@@ -79,0 +79,0 @@ exports.defaultMarks = [ |
@@ -60,6 +60,6 @@ var _a, _b; | ||
export var allowedAttributes = (_b = {}, | ||
_b[blockquoteNodeType] = ['children', 'attribution', 'customStyle'], | ||
_b[blockquoteNodeType] = ['children', 'attribution'], | ||
_b[blockNodeType] = ['item'], | ||
_b[codeNodeType] = ['language', 'highlight', 'code', 'customStyle'], | ||
_b[headingNodeType] = ['level', 'children', 'customStyle'], | ||
_b[codeNodeType] = ['language', 'highlight', 'code'], | ||
_b[headingNodeType] = ['level', 'children', 'style'], | ||
_b[inlineItemNodeType] = ['item'], | ||
@@ -70,6 +70,6 @@ _b[itemLinkNodeType] = ['item', 'children', 'meta'], | ||
_b[listNodeType] = ['style', 'children'], | ||
_b[paragraphNodeType] = ['children', 'customStyle'], | ||
_b[paragraphNodeType] = ['children', 'style'], | ||
_b[rootNodeType] = ['children'], | ||
_b[spanNodeType] = ['value', 'marks'], | ||
_b[thematicBreakNodeType] = ['customStyle'], | ||
_b[thematicBreakNodeType] = [], | ||
_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 BlockNodeWithCustomStyle = Paragraph | Heading; | ||
export declare type BlockNodeTypeWithCustomStyle = ParagraphType | HeadingType; | ||
export declare type InlineNode = Span | Link | ItemLink | InlineItem; | ||
@@ -61,3 +61,3 @@ export declare type NodeWithMeta = Link | ItemLink; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
style?: string; | ||
children: Array<InlineNode>; | ||
@@ -87,3 +87,3 @@ }; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
style?: string; | ||
children: Array<InlineNode>; | ||
@@ -162,4 +162,2 @@ }; | ||
type: ThematicBreakType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -187,4 +185,2 @@ export declare type CodeType = 'code'; | ||
code: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -217,4 +213,2 @@ 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>; | ||
@@ -221,0 +215,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 BlockNodeWithCustomStyle = Paragraph | Heading; | ||
export declare type BlockNodeTypeWithCustomStyle = ParagraphType | HeadingType; | ||
export declare type InlineNode = Span | Link | ItemLink | InlineItem; | ||
@@ -61,3 +61,3 @@ export declare type NodeWithMeta = Link | ItemLink; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
style?: string; | ||
children: Array<InlineNode>; | ||
@@ -87,3 +87,3 @@ }; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
style?: string; | ||
children: Array<InlineNode>; | ||
@@ -162,4 +162,2 @@ }; | ||
type: ThematicBreakType; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -187,4 +185,2 @@ export declare type CodeType = 'code'; | ||
code: string; | ||
/** Custom style applied to the node. Styles can be configured using the Plugin SDK */ | ||
customStyle?: string; | ||
}; | ||
@@ -217,4 +213,2 @@ 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>; | ||
@@ -221,0 +215,0 @@ }; |
{ | ||
"name": "datocms-structured-text-utils", | ||
"version": "1.2.3-alpha.1", | ||
"version": "1.2.3-alpha.3", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields.", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fdbd7f018f23019674d88d14ba5a7f0476571007" | ||
"gitHead": "283340766136a58a5bf2046bc75fc34999c838db" | ||
} |
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
81638
1606