Socket
Socket
Sign inDemoInstall

@lexical/link

Package Overview
Dependencies
Maintainers
6
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/link - npm Package Compare versions

Comparing version 0.6.1-next.0 to 0.6.2

34

index.d.ts

@@ -11,9 +11,11 @@ /** @module @lexical/link */

import { ElementNode, Spread } from 'lexical';
export declare type LinkAttributes = {
rel?: null | string;
target?: null | string;
};
export declare type SerializedLinkNode = Spread<{
type: 'link';
url: string;
target?: null | string;
rel?: null | string;
version: 1;
}, SerializedElementNode>;
}, Spread<LinkAttributes, SerializedElementNode>>;
/** @noInheritDoc */

@@ -29,6 +31,3 @@ export declare class LinkNode extends ElementNode {

static clone(node: LinkNode): LinkNode;
constructor(url: string, attributes?: {
target?: null | string;
rel?: null | string;
}, key?: NodeKey);
constructor(url: string, attributes?: LinkAttributes, key?: NodeKey);
createDOM(config: EditorConfig): HTMLAnchorElement;

@@ -52,6 +51,3 @@ updateDOM(prevNode: LinkNode, anchor: HTMLAnchorElement, config: EditorConfig): boolean;

}
export declare function $createLinkNode(url: string, attributes?: {
target?: null | string;
rel?: null | string;
}): LinkNode;
export declare function $createLinkNode(url: string, attributes?: LinkAttributes): LinkNode;
export declare function $isLinkNode(node: LexicalNode | null | undefined): node is LinkNode;

@@ -70,15 +66,7 @@ export declare type SerializedAutoLinkNode = Spread<{

}
export declare function $createAutoLinkNode(url: string, attributes?: {
target?: null | string;
rel?: null | string;
}): AutoLinkNode;
export declare function $createAutoLinkNode(url: string, attributes?: LinkAttributes): AutoLinkNode;
export declare function $isAutoLinkNode(node: LexicalNode | null | undefined): node is AutoLinkNode;
export declare const TOGGLE_LINK_COMMAND: LexicalCommand<string | {
export declare const TOGGLE_LINK_COMMAND: LexicalCommand<string | ({
url: string;
target?: string;
rel?: string;
} | null>;
export declare function toggleLink(url: null | string, attributes?: {
target?: null | string;
rel?: null | string;
}): void;
} & LinkAttributes) | null>;
export declare function toggleLink(url: null | string, attributes?: LinkAttributes): void;

@@ -11,9 +11,9 @@ {

"license": "MIT",
"version": "0.6.1-next.0",
"version": "0.6.2",
"main": "LexicalLink.js",
"peerDependencies": {
"lexical": "0.6.1-next.0"
"lexical": "0.6.2"
},
"dependencies": {
"@lexical/utils": "0.6.1-next.0"
"@lexical/utils": "0.6.2"
},

@@ -20,0 +20,0 @@ "repository": {

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