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.2.1 to 3.3.1

32

dist/index.d.ts

@@ -20,2 +20,3 @@ declare enum NodeTypes {

LINK = "link",
ANCHOR = "anchor",
STYLED = "styled",

@@ -40,3 +41,3 @@ TEXT = "text",

}
declare type ComponentBodyShell = Record<string, any>;
type ComponentBodyShell = Record<string, any>;
interface ComponentBody extends ComponentBodyShell {

@@ -58,3 +59,3 @@ component: string;

}
declare type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
interface HeadingAttributes extends NodeAttributes {

@@ -161,11 +162,18 @@ level: HeadingLevels;

}
declare type BlockNodes = DocumentNode | HeadingNode | ParagraphNode | ListItemNode | OrderedListNode | UnorderedListNode | QuoteNode | CodeBlockNode | HorizontalRuleNode | BreakNode | ImageNode;
declare type MarkNodes = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode | LinkNode | StyledNode;
declare type RootNodes = HeadingNode | ParagraphNode | OrderedListNode | UnorderedListNode | QuoteNode | HorizontalRuleNode | ImageNode;
declare type BlockNodesWithContent = DocumentNode | ParagraphNode | QuoteNode | UnorderedListNode | ListItemNode;
declare type BlockNodesWithoutOptions = HorizontalRuleNode | BreakNode;
declare type BlockNodesWithAttributes = ImageNode;
declare type BlockNodesWithContentAndAttributes = HeadingNode | OrderedListNode | CodeBlockNode;
declare type MarkNodesWithoutOptions = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode;
declare type MarkNodesWithAttributes = LinkNode | StyledNode;
interface AnchorAttributes {
id: string;
}
interface AnchorNode extends Node {
type: NodeTypes.ANCHOR;
attrs: AnchorAttributes;
}
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 RootNodes = HeadingNode | ParagraphNode | OrderedListNode | UnorderedListNode | QuoteNode | HorizontalRuleNode | ImageNode;
type BlockNodesWithContent = DocumentNode | ParagraphNode | QuoteNode | UnorderedListNode | ListItemNode;
type BlockNodesWithoutOptions = HorizontalRuleNode | BreakNode;
type BlockNodesWithAttributes = ImageNode;
type BlockNodesWithContentAndAttributes = HeadingNode | OrderedListNode | CodeBlockNode;
type MarkNodesWithoutOptions = BoldNode | StrongNode | StrikeNode | UnderlineNode | ItalicNode | CodeNode;
type MarkNodesWithAttributes = LinkNode | AnchorNode | StyledNode;

@@ -176,2 +184,2 @@ declare function isBlockNode(node: Node): node is BlockNodes;

export { 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, TextNode, UnderlineNode, UnorderedListNode, blockNodeTypes, isBlockNode, isComponentNode, isTextNode };

@@ -21,2 +21,3 @@ // src/nodes.ts

NodeTypes2["LINK"] = "link";
NodeTypes2["ANCHOR"] = "anchor";
NodeTypes2["STYLED"] = "styled";

@@ -23,0 +24,0 @@ NodeTypes2["TEXT"] = "text";

{
"name": "@marvr/storyblok-rich-text-types",
"version": "3.2.1",
"version": "3.3.1",
"keywords": [

@@ -42,4 +42,3 @@ "rich-text",

"build": "rm -rf dist && tsup src/index.ts --format esm,cjs --dts"
},
"readme": "# @marvr/storyblok-rich-text-types\n\n> Type definitions for every node.\n\nThis package is shipped automatically with the renderer. You don't need to install it manually."
}
}

@@ -22,2 +22,3 @@ export enum NodeTypes {

LINK = 'link',
ANCHOR = 'anchor',
STYLED = 'styled',

@@ -215,2 +216,11 @@ // Text

export interface AnchorAttributes {
id: string
}
export interface AnchorNode extends Node {
type: NodeTypes.ANCHOR
attrs: AnchorAttributes
}
export type BlockNodes =

@@ -238,2 +248,3 @@ | DocumentNode

| StyledNode
| AnchorNode

@@ -271,2 +282,2 @@ export type RootNodes =

export type MarkNodesWithAttributes = LinkNode | StyledNode
export type MarkNodesWithAttributes = LinkNode | AnchorNode | StyledNode

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