@lexical/link
Advanced tools
Comparing version 0.6.1-next.0 to 0.6.2
@@ -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
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
20156
431
+ Added@lexical/list@0.6.2(transitive)
+ Added@lexical/table@0.6.2(transitive)
+ Added@lexical/utils@0.6.2(transitive)
+ Addedlexical@0.6.2(transitive)
- Removed@lexical/list@0.6.1-next.0(transitive)
- Removed@lexical/table@0.6.1-next.0(transitive)
- Removed@lexical/utils@0.6.1-next.0(transitive)
- Removedlexical@0.6.1-next.0(transitive)
Updated@lexical/utils@0.6.2