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

@ckeditor/ckeditor5-select-all

Package Overview
Dependencies
Maintainers
1
Versions
693
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-select-all - npm Package Compare versions

Comparing version 36.0.1 to 37.0.0-alpha.0

src/index.d.ts

27

package.json
{
"name": "@ckeditor/ckeditor5-select-all",
"version": "36.0.1",
"version": "37.0.0-alpha.0",
"description": "Select all feature for CKEditor 5.",

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

"dependencies": {
"@ckeditor/ckeditor5-core": "^36.0.1",
"@ckeditor/ckeditor5-utils": "^36.0.1",
"@ckeditor/ckeditor5-ui": "^36.0.1"
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^36.0.1",
"@ckeditor/ckeditor5-engine": "^36.0.1",
"@ckeditor/ckeditor5-essentials": "^36.0.1",
"@ckeditor/ckeditor5-heading": "^36.0.1",
"@ckeditor/ckeditor5-image": "^36.0.1",
"@ckeditor/ckeditor5-paragraph": "^36.0.1",
"@ckeditor/ckeditor5-table": "^36.0.1",
"@ckeditor/ckeditor5-editor-classic": "^36.0.1",
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
"typescript": "^4.8.4",

@@ -57,3 +57,4 @@ "webpack": "^5.58.1",

"postversion": "npm run build"
}
},
"types": "src/index.d.ts"
}

@@ -18,4 +18,2 @@ /**

* Please refer to the documentation of individual features to learn more.
*
* @extends module:core/plugin~Plugin
*/

@@ -22,0 +20,0 @@ export default class SelectAll extends Plugin {

@@ -15,11 +15,9 @@ /**

*
* Executing this command changes the {@glink framework/guides/architecture/editing-engine#model model}
* Executing this command changes the {@glink framework/architecture/editing-engine#model model}
* selection so it contains the entire content of the editable root of the editor the selection is
* {@link module:engine/model/selection~Selection#anchor anchored} in.
*
* If the selection was anchored in a {@glink framework/guides/tutorials/implementing-a-block-widget nested editable}
* If the selection was anchored in a {@glink framework/tutorials/implementing-a-block-widget nested editable}
* (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command
* will expand the selection to encompass more and more content up to the entire editable root of the editor.
*
* @extends module:core/command~Command
*/

@@ -58,11 +56,11 @@ export default class SelectAllCommand extends Command {

}
// Checks whether the element is a valid select-all scope.
// Returns true, if the element is a {@link module:engine/model/schema~Schema#isLimit limit},
// and can contain any text or paragraph.
//
// @param {module:engine/model/schema~Schema} schema The schema to check against.
// @param {module:engine/model/element~Element} element
// @return {Boolean}
/**
* Checks whether the element is a valid select-all scope. Returns true, if the element is a
* {@link module:engine/model/schema~Schema#isLimit limit}, and can contain any text or paragraph.
*
* @param schema Schema to check against.
* @param element Model element.
*/
function isSelectAllScope(schema, element) {
return schema.isLimit(element) && (schema.checkChild(element, '$text') || schema.checkChild(element, 'paragraph'));
}

@@ -17,4 +17,2 @@ /**

* and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.
*
* @extends module:core/plugin~Plugin
*/

@@ -21,0 +19,0 @@ export default class SelectAllEditing extends Plugin {

@@ -17,4 +17,2 @@ /**

* executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.
*
* @extends module:core/plugin~Plugin
*/

@@ -21,0 +19,0 @@ export default class SelectAllUI extends Plugin {

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