@marvr/storyblok-rich-text-types
Advanced tools
Comparing version 3.3.2 to 3.4.0
@@ -22,2 +22,4 @@ declare enum NodeTypes { | ||
STYLED = "styled", | ||
SUPERSCRIPT = "superscript", | ||
SUBSCRIPT = "subscript", | ||
TEXT = "text", | ||
@@ -168,4 +170,10 @@ COMPONENT = "blok" | ||
} | ||
interface SuperscriptNode extends Node { | ||
type: NodeTypes.SUPERSCRIPT; | ||
} | ||
interface SubscriptNode extends Node { | ||
type: NodeTypes.SUBSCRIPT; | ||
} | ||
type BlockNodes = DocumentNode | HeadingNode | ParagraphNode | ListItemNode | OrderedListNode | UnorderedListNode | QuoteNode | CodeBlockNode | HorizontalRuleNode | BreakNode | ImageNode; | ||
type MarkNodes = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | LinkNode | StyledNode | AnchorNode; | ||
type MarkNodes = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | LinkNode | StyledNode | AnchorNode | SuperscriptNode | SubscriptNode; | ||
type RootNodes = HeadingNode | ParagraphNode | OrderedListNode | UnorderedListNode | QuoteNode | HorizontalRuleNode | ImageNode; | ||
@@ -176,3 +184,3 @@ type BlockNodesWithContent = DocumentNode | ParagraphNode | QuoteNode | UnorderedListNode | ListItemNode; | ||
type BlockNodesWithContentAndAttributes = HeadingNode | OrderedListNode | CodeBlockNode; | ||
type MarkNodesWithoutOptions = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode; | ||
type MarkNodesWithoutOptions = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | SuperscriptNode | SubscriptNode; | ||
type MarkNodesWithAttributes = LinkNode | AnchorNode | StyledNode; | ||
@@ -184,2 +192,2 @@ | ||
export { AnchorAttributes, AnchorNode, BlockNodes, BlockNodesWithAttributes, BlockNodesWithContent, BlockNodesWithContentAndAttributes, BlockNodesWithoutOptions, BoldNode, BreakNode, CodeBlockAttributes, CodeBlockNode, CodeNode, ComponentAttributes, ComponentBody, ComponentBodyShell, ComponentNode, DocumentNode, HeadingAttributes, HeadingLevels, HeadingNode, HorizontalRuleNode, ImageAttributes, ImageNode, ItalicNode, LinkAttributes, LinkNode, LinkTargets, LinkTypes, ListItemNode, MarkNodes, MarkNodesWithAttributes, MarkNodesWithoutOptions, Node, NodeAttributes, NodeTypes, NodeWithContent, OrderedListAttributes, OrderedListNode, ParagraphNode, QuoteNode, RootNodes, StrikeNode, StrongNode, StyledAttributes, StyledNode, TextNode, UnderlineNode, UnorderedListNode, blockNodeTypes, isBlockNode, isComponentNode, isTextNode }; | ||
export { AnchorAttributes, AnchorNode, BlockNodes, BlockNodesWithAttributes, BlockNodesWithContent, BlockNodesWithContentAndAttributes, BlockNodesWithoutOptions, BoldNode, BreakNode, CodeBlockAttributes, CodeBlockNode, CodeNode, ComponentAttributes, ComponentBody, ComponentBodyShell, ComponentNode, DocumentNode, HeadingAttributes, HeadingLevels, HeadingNode, HorizontalRuleNode, ImageAttributes, ImageNode, ItalicNode, LinkAttributes, LinkNode, LinkTargets, LinkTypes, ListItemNode, MarkNodes, MarkNodesWithAttributes, MarkNodesWithoutOptions, Node, NodeAttributes, NodeTypes, NodeWithContent, OrderedListAttributes, OrderedListNode, ParagraphNode, QuoteNode, RootNodes, StrikeNode, StrongNode, StyledAttributes, StyledNode, SubscriptNode, SuperscriptNode, TextNode, UnderlineNode, UnorderedListNode, blockNodeTypes, isBlockNode, isComponentNode, isTextNode }; |
@@ -23,2 +23,4 @@ // src/nodes.ts | ||
NodeTypes2["STYLED"] = "styled"; | ||
NodeTypes2["SUPERSCRIPT"] = "superscript"; | ||
NodeTypes2["SUBSCRIPT"] = "subscript"; | ||
NodeTypes2["TEXT"] = "text"; | ||
@@ -25,0 +27,0 @@ NodeTypes2["COMPONENT"] = "blok"; |
{ | ||
"name": "@marvr/storyblok-rich-text-types", | ||
"version": "3.3.2", | ||
"version": "3.4.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "rich-text", |
@@ -24,2 +24,4 @@ export enum NodeTypes { | ||
STYLED = 'styled', | ||
SUPERSCRIPT = 'superscript', | ||
SUBSCRIPT = 'subscript', | ||
// Text | ||
@@ -226,2 +228,10 @@ TEXT = 'text', | ||
export interface SuperscriptNode extends Node { | ||
type: NodeTypes.SUPERSCRIPT | ||
} | ||
export interface SubscriptNode extends Node { | ||
type: NodeTypes.SUBSCRIPT | ||
} | ||
export type BlockNodes = | ||
@@ -250,2 +260,4 @@ | DocumentNode | ||
| AnchorNode | ||
| SuperscriptNode | ||
| SubscriptNode | ||
@@ -282,3 +294,5 @@ export type RootNodes = | ||
| CodeNode | ||
| SuperscriptNode | ||
| SubscriptNode | ||
export type MarkNodesWithAttributes = LinkNode | AnchorNode | StyledNode |
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
18963
630