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

@ckeditor/ckeditor5-undo

Package Overview
Dependencies
Maintainers
1
Versions
708
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-undo - npm Package Compare versions

Comparing version 35.3.2 to 35.4.0

26

package.json
{
"name": "@ckeditor/ckeditor5-undo",
"version": "35.3.2",
"version": "35.4.0",
"description": "Undo feature for CKEditor 5.",

@@ -15,16 +15,16 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^35.3.2",
"@ckeditor/ckeditor5-engine": "^35.3.2",
"@ckeditor/ckeditor5-ui": "^35.3.2"
"@ckeditor/ckeditor5-core": "^35.4.0",
"@ckeditor/ckeditor5-engine": "^35.4.0",
"@ckeditor/ckeditor5-ui": "^35.4.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^35.3.2",
"@ckeditor/ckeditor5-clipboard": "^35.3.2",
"@ckeditor/ckeditor5-editor-classic": "^35.3.2",
"@ckeditor/ckeditor5-enter": "^35.3.2",
"@ckeditor/ckeditor5-heading": "^35.3.2",
"@ckeditor/ckeditor5-paragraph": "^35.3.2",
"@ckeditor/ckeditor5-typing": "^35.3.2",
"@ckeditor/ckeditor5-table": "^35.3.2",
"@ckeditor/ckeditor5-utils": "^35.3.2",
"@ckeditor/ckeditor5-basic-styles": "^35.4.0",
"@ckeditor/ckeditor5-clipboard": "^35.4.0",
"@ckeditor/ckeditor5-editor-classic": "^35.4.0",
"@ckeditor/ckeditor5-enter": "^35.4.0",
"@ckeditor/ckeditor5-heading": "^35.4.0",
"@ckeditor/ckeditor5-paragraph": "^35.4.0",
"@ckeditor/ckeditor5-typing": "^35.4.0",
"@ckeditor/ckeditor5-table": "^35.4.0",
"@ckeditor/ckeditor5-utils": "^35.4.0",
"typescript": "^4.8.4",

@@ -31,0 +31,0 @@ "webpack": "^5.58.1",

@@ -8,6 +8,6 @@ /**

*/
import Command from '@ckeditor/ckeditor5-core/src/command';
import { transformSets } from '@ckeditor/ckeditor5-engine/src/model/operation/transform';
import { Command } from '@ckeditor/ckeditor5-core';
import { transformSets } from '@ckeditor/ckeditor5-engine';
/**
* Base class for undo feature commands: {@link module:undo/undocommand~UndoCommand} and {@link module:undo/redocommand~RedoCommand}.
* Base class for the undo feature commands: {@link module:undo/undocommand~UndoCommand} and {@link module:undo/redocommand~RedoCommand}.
*

@@ -14,0 +14,0 @@ * @protected

@@ -8,3 +8,3 @@ /**

*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import { Plugin } from '@ckeditor/ckeditor5-core';
import UndoEditing from './undoediting';

@@ -16,7 +16,7 @@ import UndoUI from './undoui';

* This is a "glue" plugin which loads the {@link module:undo/undoediting~UndoEditing undo editing feature}
* and {@link module:undo/undoui~UndoUI undo UI feature}.
* and the {@link module:undo/undoui~UndoUI undo UI feature}.
*
* Below is the explanation of the undo mechanism working together with {@link module:engine/model/history~History History}:
* Below is an explanation of the undo mechanism working together with {@link module:engine/model/history~History History}:
*
* Whenever a {@link module:engine/model/operation/operation~Operation operation} is applied to the
* Whenever an {@link module:engine/model/operation/operation~Operation operation} is applied to the
* {@link module:engine/model/document~Document document}, it is saved to `History` as is.

@@ -28,3 +28,3 @@ * The {@link module:engine/model/batch~Batch batch} that owns that operation is also saved, in

*
* After some changes happen to the document, the `History` and `UndoCommand` stack can be represented as follows:
* After changes happen to the document, the `History` and `UndoCommand` stack can be represented as follows:
*

@@ -85,3 +85,3 @@ * History Undo stack

* Redo also is very similar to undo. It has its own stack that is filled with undoing (reversed batches). Operations from
* batch that is re-done are reversed-back, transformed in proper order and applied to the document.
* the batch that is re-done are reversed-back, transformed in proper order and applied to the document.
*

@@ -88,0 +88,0 @@ * History Undo stack Redo stack

@@ -33,3 +33,3 @@ /**

const undoingBatch = this.editor.model.createBatch({ isUndo: true });
// All changes has to be done in one `enqueueChange` callback so other listeners will not
// All changes have to be done in one `enqueueChange` callback so other listeners will not
// step between consecutive operations, or won't do changes to the document before selection is properly restored.

@@ -36,0 +36,0 @@ this.editor.model.enqueueChange(undoingBatch, () => {

@@ -8,3 +8,3 @@ /**

*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import { Plugin } from '@ckeditor/ckeditor5-core';
import UndoCommand from './undocommand';

@@ -32,3 +32,3 @@ import RedoCommand from './redocommand';

/**
* The command that manages undo {@link module:engine/model/batch~Batch batches} stack (history).
* The command that manages the undo {@link module:engine/model/batch~Batch batches} stack (history).
* Created and registered during the {@link #init feature initialization}.

@@ -40,3 +40,3 @@ *

/**
* The command that manages redo {@link module:engine/model/batch~Batch batches} stack (history).
* The command that manages the redo {@link module:engine/model/batch~Batch batches} stack (history).
* Created and registered during the {@link #init feature initialization}.

@@ -43,0 +43,0 @@ *

@@ -8,4 +8,4 @@ /**

*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import { Plugin } from '@ckeditor/ckeditor5-core';
import { ButtonView } from '@ckeditor/ckeditor5-ui';
import undoIcon from '../theme/icons/undo.svg';

@@ -12,0 +12,0 @@ import redoIcon from '../theme/icons/redo.svg';

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