Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-history

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-history - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-history@2.0.0-alpha.10...@tiptap/extension-history@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-history
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-history@2.0.0-alpha.9...@tiptap/extension-history@2.0.0-alpha.10) (2021-02-07)

@@ -8,0 +16,0 @@

24

dist/packages/extension-history/src/history.d.ts

@@ -6,16 +6,16 @@ import { Command, Extension } from '@tiptap/core';

}
export declare const History: Extension<HistoryOptions, {
/**
* Undo recent changes
*/
undo: () => Command;
/**
* Reapply reverted changes
*/
redo: () => Command;
}>;
declare module '@tiptap/core' {
interface AllExtensions {
History: typeof History;
interface Commands {
history: {
/**
* Undo recent changes
*/
undo: () => Command;
/**
* Reapply reverted changes
*/
redo: () => Command;
};
}
}
export declare const History: Extension<HistoryOptions>;

@@ -16,11 +16,5 @@ 'use strict';

return {
/**
* Undo recent changes
*/
undo: () => ({ state, dispatch }) => {
return prosemirrorHistory.undo(state, dispatch);
},
/**
* Reapply reverted changes
*/
redo: () => ({ state, dispatch }) => {

@@ -27,0 +21,0 @@ return prosemirrorHistory.redo(state, dispatch);

@@ -12,11 +12,5 @@ import { Extension } from '@tiptap/core';

return {
/**
* Undo recent changes
*/
undo: () => ({ state, dispatch }) => {
return undo(state, dispatch);
},
/**
* Reapply reverted changes
*/
redo: () => ({ state, dispatch }) => {

@@ -23,0 +17,0 @@ return redo(state, dispatch);

@@ -15,11 +15,5 @@ (function (global, factory) {

return {
/**
* Undo recent changes
*/
undo: () => ({ state, dispatch }) => {
return prosemirrorHistory.undo(state, dispatch);
},
/**
* Reapply reverted changes
*/
redo: () => ({ state, dispatch }) => {

@@ -26,0 +20,0 @@ return prosemirrorHistory.redo(state, dispatch);

{
"name": "@tiptap/extension-history",
"description": "history extension for tiptap",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"homepage": "https://tiptap.dev",

@@ -31,3 +31,3 @@ "keywords": [

},
"gitHead": "6bdeb4615c7b6afba4a2fcac4e3c35d7a7c0030a"
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69"
}

@@ -9,6 +9,21 @@ import { Command, Extension } from '@tiptap/core'

export const History = Extension.create({
declare module '@tiptap/core' {
interface Commands {
history: {
/**
* Undo recent changes
*/
undo: () => Command,
/**
* Reapply reverted changes
*/
redo: () => Command,
}
}
}
export const History = Extension.create<HistoryOptions>({
name: 'history',
defaultOptions: <HistoryOptions>{
defaultOptions: {
depth: 100,

@@ -20,12 +35,6 @@ newGroupDelay: 500,

return {
/**
* Undo recent changes
*/
undo: (): Command => ({ state, dispatch }) => {
undo: () => ({ state, dispatch }) => {
return undo(state, dispatch)
},
/**
* Reapply reverted changes
*/
redo: (): Command => ({ state, dispatch }) => {
redo: () => ({ state, dispatch }) => {
return redo(state, dispatch)

@@ -50,7 +59,1 @@ },

})
declare module '@tiptap/core' {
interface AllExtensions {
History: typeof History,
}
}

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc