move isCellSelection to table extension

This commit is contained in:
Philipp Kühn 2021-02-26 18:11:42 +01:00
parent e3f80207cc
commit a7ab9454b5
3 changed files with 6 additions and 2 deletions

View File

@ -38,7 +38,6 @@
"prosemirror-model": "^1.13.3",
"prosemirror-schema-list": "^1.1.4",
"prosemirror-state": "^1.3.4",
"prosemirror-tables": "^1.1.1",
"prosemirror-transform": "^1.2.11",
"prosemirror-view": "^1.17.6"
}

View File

@ -2,7 +2,6 @@ import {
Command,
Node,
mergeAttributes,
isCellSelection,
findParentNodeClosestToPos,
callOrReturn,
} from '@tiptap/core'
@ -28,6 +27,7 @@ import {
import { NodeView } from 'prosemirror-view'
import { TextSelection } from 'prosemirror-state'
import { createTable } from './utilities/createTable'
import { isCellSelection } from './utilities/isCellSelection'
import { TableView } from './TableView'
export interface TableOptions {

View File

@ -0,0 +1,5 @@
import { CellSelection } from 'prosemirror-tables'
export function isCellSelection(value: unknown): value is CellSelection {
return value instanceof CellSelection
}