@marvr/storyblok-rich-text-types
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -13,2 +13,3 @@ declare enum NodeTypes { | ||
IMAGE = "image", | ||
EMOJI = "emoji", | ||
BOLD = "bold", | ||
@@ -119,2 +120,11 @@ STRONG = "strong", | ||
} | ||
interface EmojiAttributes extends NodeAttributes { | ||
name: string | null; | ||
emoji: string | null; | ||
fallbackImage: string | null; | ||
} | ||
interface EmojiNode extends Node { | ||
type: NodeTypes.EMOJI; | ||
attrs: EmojiAttributes; | ||
} | ||
interface BoldNode extends Node { | ||
@@ -193,3 +203,3 @@ type: NodeTypes.BOLD; | ||
} | ||
type BlockNodes = DocumentNode | HeadingNode | ParagraphNode | ListItemNode | OrderedListNode | UnorderedListNode | QuoteNode | CodeBlockNode | HorizontalRuleNode | BreakNode | ImageNode; | ||
type BlockNodes = DocumentNode | HeadingNode | ParagraphNode | ListItemNode | OrderedListNode | UnorderedListNode | QuoteNode | CodeBlockNode | HorizontalRuleNode | BreakNode | ImageNode | EmojiNode; | ||
type MarkNodes = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | LinkNode | StyledNode | AnchorNode | SuperscriptNode | SubscriptNode | TextStyleNode | HighlightNode; | ||
@@ -199,3 +209,3 @@ type RootNodes = HeadingNode | ParagraphNode | OrderedListNode | UnorderedListNode | QuoteNode | HorizontalRuleNode | ImageNode; | ||
type BlockNodesWithoutOptions = HorizontalRuleNode | BreakNode; | ||
type BlockNodesWithAttributes = ImageNode; | ||
type BlockNodesWithAttributes = ImageNode | EmojiNode; | ||
type BlockNodesWithContentAndAttributes = HeadingNode | OrderedListNode | CodeBlockNode; | ||
@@ -209,2 +219,2 @@ type MarkNodesWithoutOptions = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | SuperscriptNode | SubscriptNode; | ||
export { AnchorAttributes, AnchorNode, BlockNodes, BlockNodesWithAttributes, BlockNodesWithContent, BlockNodesWithContentAndAttributes, BlockNodesWithoutOptions, BoldNode, BreakNode, CodeBlockAttributes, CodeBlockNode, CodeNode, ComponentAttributes, ComponentBody, ComponentBodyShell, ComponentNode, DocumentNode, HeadingAttributes, HeadingLevels, HeadingNode, HighlightAttributes, HighlightNode, 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, TextStyleAttributes, TextStyleNode, UnderlineNode, UnorderedListNode, blockNodeTypes, isBlockNode, isComponentNode, isTextNode }; | ||
export { AnchorAttributes, AnchorNode, BlockNodes, BlockNodesWithAttributes, BlockNodesWithContent, BlockNodesWithContentAndAttributes, BlockNodesWithoutOptions, BoldNode, BreakNode, CodeBlockAttributes, CodeBlockNode, CodeNode, ComponentAttributes, ComponentBody, ComponentBodyShell, ComponentNode, DocumentNode, EmojiAttributes, EmojiNode, HeadingAttributes, HeadingLevels, HeadingNode, HighlightAttributes, HighlightNode, 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, TextStyleAttributes, TextStyleNode, UnderlineNode, UnorderedListNode, blockNodeTypes, isBlockNode, isComponentNode, isTextNode }; |
@@ -14,2 +14,3 @@ // src/nodes.ts | ||
NodeTypes2["IMAGE"] = "image"; | ||
NodeTypes2["EMOJI"] = "emoji"; | ||
NodeTypes2["BOLD"] = "bold"; | ||
@@ -43,3 +44,4 @@ NodeTypes2["STRONG"] = "strong"; | ||
"hard_break" /* BR */, | ||
"image" /* IMAGE */ | ||
"image" /* IMAGE */, | ||
"emoji" /* EMOJI */ | ||
]; | ||
@@ -46,0 +48,0 @@ var LinkTargets = /* @__PURE__ */ ((LinkTargets2) => { |
{ | ||
"name": "@marvr/storyblok-rich-text-types", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "rich-text", |
@@ -14,2 +14,3 @@ export enum NodeTypes { | ||
IMAGE = 'image', | ||
EMOJI = 'emoji', | ||
// Marks | ||
@@ -47,2 +48,3 @@ BOLD = 'bold', | ||
NodeTypes.IMAGE, | ||
NodeTypes.EMOJI, | ||
] | ||
@@ -163,2 +165,13 @@ | ||
export interface EmojiAttributes extends NodeAttributes { | ||
name: string | null | ||
emoji: string | null | ||
fallbackImage: string | null | ||
} | ||
export interface EmojiNode extends Node { | ||
type: NodeTypes.EMOJI | ||
attrs: EmojiAttributes | ||
} | ||
// Marks | ||
@@ -270,2 +283,3 @@ export interface BoldNode extends Node { | ||
| ImageNode | ||
| EmojiNode | ||
@@ -304,3 +318,3 @@ export type MarkNodes = | ||
export type BlockNodesWithoutOptions = HorizontalRuleNode | BreakNode | ||
export type BlockNodesWithAttributes = ImageNode | ||
export type BlockNodesWithAttributes = ImageNode | EmojiNode | ||
export type BlockNodesWithContentAndAttributes = | ||
@@ -307,0 +321,0 @@ | HeadingNode |
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
20789
699