@tiptap/core
Advanced tools
Comparing version 2.0.0-beta.19 to 2.0.0-beta.20
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.20](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.19...@tiptap/core@2.0.0-beta.20) (2021-04-07) | ||
### Features | ||
* add resetAttributes() command, deprecate resetNodeAttributes() ([3334d93](https://github.com/ueberdosis/tiptap-next/commit/3334d930f30bd4acb5c314b4ec1934b6a1e0b712)) | ||
# [2.0.0-beta.19](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.18...@tiptap/core@2.0.0-beta.19) (2021-04-07) | ||
@@ -8,0 +19,0 @@ |
@@ -27,2 +27,3 @@ import { Extension } from '../Extension'; | ||
import * as replaceRange from '../commands/replaceRange'; | ||
import * as resetAttributes from '../commands/resetAttributes'; | ||
import * as resetNodeAttributes from '../commands/resetNodeAttributes'; | ||
@@ -76,2 +77,3 @@ import * as scrollIntoView from '../commands/scrollIntoView'; | ||
export { replaceRange }; | ||
export { resetAttributes }; | ||
export { resetNodeAttributes }; | ||
@@ -78,0 +80,0 @@ export { scrollIntoView }; |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.0.0-beta.19", | ||
"version": "2.0.0-beta.20", | ||
"homepage": "https://tiptap.dev", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "41a044417e5bafab5a660ac06b8db3d5acd3e4a7" | ||
"gitHead": "7b1d8d103c9d74263fd5c8a6dc146ac5ec4077f5" | ||
} |
@@ -18,2 +18,4 @@ import { NodeType } from 'prosemirror-model' | ||
export const resetNodeAttributes: RawCommands['resetNodeAttributes'] = (typeOrName, attributes) => ({ tr, state, dispatch }) => { | ||
console.warn('[tiptap warn]: resetNodeAttributes() is deprecated. please use resetAttributes() instead.') | ||
const type = getNodeType(typeOrName, state.schema) | ||
@@ -20,0 +22,0 @@ const { selection } = tr |
@@ -27,2 +27,3 @@ import { Extension } from '../Extension' | ||
import * as replaceRange from '../commands/replaceRange' | ||
import * as resetAttributes from '../commands/resetAttributes' | ||
import * as resetNodeAttributes from '../commands/resetNodeAttributes' | ||
@@ -77,2 +78,3 @@ import * as scrollIntoView from '../commands/scrollIntoView' | ||
export { replaceRange } | ||
export { resetAttributes } | ||
export { resetNodeAttributes } | ||
@@ -132,2 +134,3 @@ export { scrollIntoView } | ||
...replaceRange, | ||
...resetAttributes, | ||
...resetNodeAttributes, | ||
@@ -134,0 +137,0 @@ ...scrollIntoView, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2432038
234
15865