Fixing package version numbers.
findParentNode will not try to validate the parents by default
Fix build files
Fix #83: findParentNode is now returning undefined when selection head is not inside the same parent
Add esm format to the build output
Fix peerDependency issue on distribute packages
TypeScript project migration
- Breaking change; removed
prosemirror-tables
dependency
All utility functions related to tables will be moved to editor-tables
. A link will be added once it is publicly available.
We are in the process of deprecating promisemirror-tables
as the code has become increasingly difficult to maintain.
The functions removed in this release are:
- addColumnAt
- addRowAt
- cloneRowAt
- convertArrayOfRowsToTableNode
- convertTableNodeToArrayOfRows
- createCell
- createTable
- emptyCell
- findCellClosestToPos
- findCellRectClosestToPos
- findTable
- findTableClosestToPos
- forEachCellInColumn
- forEachCellInRow
- getCellsInColumn
- getCellsInRow
- getCellsInTable
- getSelectionRangeInColumn
- getSelectionRangeInRow
- getSelectionRect
- isCellSelection
- isColumnSelected
- isRectSelected
- isRowSelected
- isTableSelected
- moveColumn
- moveRow
- moveTableColumn
- moveTableRow
- removeColumnAt
- removeColumnClosestToPos
- removeRowAt
- removeRowClosestToPos
- removeSelectedColumns
- removeSelectedRows
- removeTable
- selectColumn
- selectRow
- selectTable
- setCellAttrs
- tableNodeTypes
- transpose
- Upgrade prosemirror-tables dependecy to 0.9.1
- Fix types for convertTableNodeToArrayOfRows and convertArrayOfRowsToTableNode, they were using ProsemirrorModel[] instead of Array<ProsemirrorModel[] | null>
Changed returning value of all selection utils to { node, start, pos}
, where
start
points to the start position of the nodepos
points directly before the nodenode
ProseMirror node Previously,pos
used to point to thestart
position of the node.