UNPKG

@drcpythonmfe/lexical-playground

Version:
36 lines (35 loc) 1.49 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { Spread } from 'lexical'; import { DEPRECATED_GridRowNode, DOMConversionMap, DOMConversionOutput, EditorConfig, LexicalNode, NodeKey, SerializedElementNode } from 'lexical'; export declare type SerializedTableRowNode = Spread<{ height: number; type: string; version: 1; }, SerializedElementNode>; /** @noInheritDoc */ export declare class TableRowNode extends DEPRECATED_GridRowNode { /** @internal */ __height?: number; static getType(): string; static clone(node: TableRowNode): TableRowNode; static importDOM(): DOMConversionMap | null; static importJSON(serializedNode: SerializedTableRowNode): TableRowNode; constructor(height?: number, key?: NodeKey); exportJSON(): SerializedElementNode; createDOM(config: EditorConfig): HTMLElement; isShadowRoot(): boolean; setHeight(height: number): number | null | undefined; getHeight(): number | null | undefined; updateDOM(prevNode: TableRowNode): boolean; canBeEmpty(): false; canIndent(): false; } export declare function convertTableRowElement(domNode: Node): DOMConversionOutput; export declare function $createTableRowNode(height?: number): TableRowNode; export declare function $isTableRowNode(node: LexicalNode | null | undefined): node is TableRowNode;