Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@marvr/storyblok-rich-text-types

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marvr/storyblok-rich-text-types - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0

16

dist/index.d.ts

@@ -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 };

4

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc