@arkitektbedriftene/fe-lib 0.4.28 → 0.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkNode, type SerializedLinkNode } from "@lexical/link";
|
|
2
|
+
import type { EditorConfig } from "lexical";
|
|
3
|
+
export declare class LinkTargetNode extends LinkNode {
|
|
4
|
+
static getType(): string;
|
|
5
|
+
static clone(node: LinkTargetNode): LinkTargetNode;
|
|
6
|
+
createDOM(config: EditorConfig): HTMLAnchorElement;
|
|
7
|
+
exportJSON(): SerializedLinkNode;
|
|
8
|
+
static importJSON(serializedNode: SerializedLinkNode): LinkNode;
|
|
9
|
+
}
|
|
@@ -2,4 +2,9 @@ import { LinkNode } from "@lexical/link";
|
|
|
2
2
|
import { ListItemNode, ListNode } from "@lexical/list";
|
|
3
3
|
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
|
4
4
|
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
|
|
5
|
+
import { LinkTargetNode } from "./Plugins/LinkTargetNode";
|
|
5
6
|
export declare const defaultNodes: (typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof LinkNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode)[];
|
|
7
|
+
export declare const defaultViewNodes: (typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof LinkNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | {
|
|
8
|
+
replace: typeof LinkNode;
|
|
9
|
+
with: (node: LinkNode) => LinkTargetNode;
|
|
10
|
+
})[];
|