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

@lexical/history

Package Overview
Dependencies
Maintainers
7
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/history - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

13

index.d.ts

@@ -20,3 +20,16 @@ /** @module @lexical/history */

};
/**
* Registers necessary listeners to manage undo/redo history stack and related editor commands.
* It returns `unregister` callback that cleans up all listeners and should be called on editor unmount.
* @param editor - The lexical editor.
* @param historyState - The history state, containing the current state and the undo/redo stack.
* @param delay - The time (in milliseconds) the editor should delay generating a new history stack,
* instead of merging the current changes with the current stack.
* @returns The listeners cleanup callback function.
*/
export declare function registerHistory(editor: LexicalEditor, historyState: HistoryState, delay: number): () => void;
/**
* Creates an empty history state.
* @returns - The empty history state, as an object.
*/
export declare function createEmptyHistoryState(): HistoryState;

@@ -269,3 +269,13 @@ /**

}
/**
* Registers necessary listeners to manage undo/redo history stack and related editor commands.
* It returns `unregister` callback that cleans up all listeners and should be called on editor unmount.
* @param editor - The lexical editor.
* @param historyState - The history state, containing the current state and the undo/redo stack.
* @param delay - The time (in milliseconds) the editor should delay generating a new history stack,
* instead of merging the current changes with the current stack.
* @returns The listeners cleanup callback function.
*/
function registerHistory(editor, historyState, delay) {

@@ -336,2 +346,7 @@ const getMergeAction = createMergeActionGetter(editor, delay);

}
/**
* Creates an empty history state.
* @returns - The empty history state, as an object.
*/
function createEmptyHistoryState() {

@@ -338,0 +353,0 @@ return {

6

package.json

@@ -11,9 +11,9 @@ {

"license": "MIT",
"version": "0.9.1",
"version": "0.9.2",
"main": "LexicalHistory.js",
"peerDependencies": {
"lexical": "0.9.1"
"lexical": "0.9.2"
},
"dependencies": {
"@lexical/utils": "0.9.1"
"@lexical/utils": "0.9.2"
},

@@ -20,0 +20,0 @@ "repository": {

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