Create "lexical-table" package. (#1301)

This commit is contained in:
Tyler Bainbridge
2022-02-16 11:18:56 -05:00
committed by acywatson
parent 03bed35c26
commit 70981013c5
22 changed files with 420 additions and 1225 deletions

View File

@ -9,12 +9,14 @@
import type {CommandListenerEditorPriority, ElementNode} from 'lexical';
import {$createTableNodeWithDimensions} from '@lexical/helpers/nodes';
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
import {
$createTableNodeWithDimensions,
TableCellNode,
TableNode,
TableRowNode,
} from '@lexical/table';
import {$createParagraphNode, $getSelection, $log} from 'lexical';
import {TableCellNode} from 'lexical/TableCellNode';
import {TableNode} from 'lexical/TableNode';
import {TableRowNode} from 'lexical/TableRowNode';
import {useEffect} from 'react';
import invariant from 'shared/invariant';