@vericus/slate-kit-history
Version:
plugin that group together history of selections to the next editing event on slate for undo/redo
17 lines • 513 B
JavaScript
import hasRedo from "./hasRedo";
import hasUndo from "./hasUndo";
import isRedo from "./isRedo";
import isUndo from "./isUndo";
export default function createQueries() {
return {
hasRedo: hasRedo,
hasUndo: hasUndo,
isRedo: function (editor, prevValue, currValue) {
return isRedo(prevValue, currValue);
},
isUndo: function (editor, prevValue, currValue) {
return isUndo(prevValue, currValue);
},
};
}
//# sourceMappingURL=index.js.map