prosemirror-utils
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -1148,3 +1148,3 @@ 'use strict'; | ||
// :: (columnIndex: number, cellTransform: (cell: {pos: number, start: number, node: ProseMirrorNode}) → (tr: Transaction)), setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
// :: (columnIndex: number, cellTransform: (cell: {pos: number, start: number, node: ProseMirrorNode}, tr: Transaction) → Transaction, setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
// Returns a new transaction that maps a given `cellTransform` function to each cell in a column at a given `columnIndex`. | ||
@@ -1175,3 +1175,3 @@ // It will set the selection into the last cell of the column if `setCursorToLastCell` param is set to `true`. | ||
// :: (rowIndex: number, cellTransform: (cell: {pos: number, start: number, node: ProseMirrorNode}) → (tr: Transaction)), setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
// :: (rowIndex: number, cellTransform: (cell: {pos: number, start: number, node: ProseMirrorNode}, tr: Transaction) → Transaction, setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
// Returns a new transaction that maps a given `cellTransform` function to each cell in a row at a given `rowIndex`. | ||
@@ -1178,0 +1178,0 @@ // It will set the selection into the last cell of the row if `setCursorToLastCell` param is set to `true`. |
{ | ||
"name": "prosemirror-utils", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Utils library for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -419,4 +419,3 @@ # Utils library for ProseMirror | ||
* **`forEachCellInColumn`**`(columnIndex: number, cellTransform: fn(cell: {pos: number, start: number, node: ProseMirrorNode}) → fn(tr: Transaction))`\ | ||
, setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
* **`forEachCellInColumn`**`(columnIndex: number, cellTransform: fn(cell: {pos: number, start: number, node: ProseMirrorNode}, tr: Transaction) → Transaction, setCursorToLastCell: ?boolean) → fn(tr: Transaction) → Transaction`\ | ||
Returns a new transaction that maps a given `cellTransform` function to each cell in a column at a given `columnIndex`. | ||
@@ -432,4 +431,3 @@ It will set the selection into the last cell of the column if `setCursorToLastCell` param is set to `true`. | ||
* **`forEachCellInRow`**`(rowIndex: number, cellTransform: fn(cell: {pos: number, start: number, node: ProseMirrorNode}) → fn(tr: Transaction))`\ | ||
, setCursorToLastCell: ?boolean) → (tr: Transaction) → Transaction | ||
* **`forEachCellInRow`**`(rowIndex: number, cellTransform: fn(cell: {pos: number, start: number, node: ProseMirrorNode}, tr: Transaction) → Transaction, setCursorToLastCell: ?boolean) → fn(tr: Transaction) → Transaction`\ | ||
Returns a new transaction that maps a given `cellTransform` function to each cell in a row at a given `rowIndex`. | ||
@@ -436,0 +434,0 @@ It will set the selection into the last cell of the row if `setCursorToLastCell` param is set to `true`. |
@@ -12,3 +12,3 @@ import { Node as ProsemirrorNode, Schema, NodeType, Mark, MarkType, ResolvedPos, Fragment } from 'prosemirror-model'; | ||
export type CellTransform = (cell: NodeWithPos) => (tr: Transaction) => Transaction; | ||
export type CellTransform = (cell: NodeWithPos, tr: Transaction) => Transaction; | ||
@@ -15,0 +15,0 @@ // Selection |
Sorry, the diff of this file is not supported yet
142378
581