@ckeditor/ckeditor5-typing
Advanced tools
Comparing version 19.0.1 to 20.0.0
{ | ||
"name": "@ckeditor/ckeditor5-typing", | ||
"version": "19.0.1", | ||
"version": "20.0.0", | ||
"description": "Typing feature for CKEditor 5.", | ||
@@ -13,23 +13,23 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^19.0.1", | ||
"@ckeditor/ckeditor5-engine": "^19.0.1", | ||
"@ckeditor/ckeditor5-utils": "^19.0.1", | ||
"lodash-es": "^4.17.10" | ||
"@ckeditor/ckeditor5-core": "^20.0.0", | ||
"@ckeditor/ckeditor5-engine": "^20.0.0", | ||
"@ckeditor/ckeditor5-utils": "^20.0.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^19.0.1", | ||
"@ckeditor/ckeditor5-block-quote": "^19.0.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^19.0.1", | ||
"@ckeditor/ckeditor5-enter": "^19.0.1", | ||
"@ckeditor/ckeditor5-essentials": "^19.0.1", | ||
"@ckeditor/ckeditor5-heading": "^19.0.1", | ||
"@ckeditor/ckeditor5-image": "^19.0.1", | ||
"@ckeditor/ckeditor5-link": "^19.0.1", | ||
"@ckeditor/ckeditor5-list": "^19.0.1", | ||
"@ckeditor/ckeditor5-paragraph": "^19.1.0", | ||
"@ckeditor/ckeditor5-undo": "^19.0.1", | ||
"@ckeditor/ckeditor5-code-block": "^19.0.1" | ||
"@ckeditor/ckeditor5-basic-styles": "^20.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^20.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^20.0.0", | ||
"@ckeditor/ckeditor5-enter": "^20.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^20.0.0", | ||
"@ckeditor/ckeditor5-heading": "^20.0.0", | ||
"@ckeditor/ckeditor5-image": "^20.0.0", | ||
"@ckeditor/ckeditor5-link": "^20.0.0", | ||
"@ckeditor/ckeditor5-list": "^20.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^20.0.0", | ||
"@ckeditor/ckeditor5-undo": "^20.0.0", | ||
"@ckeditor/ckeditor5-code-block": "^20.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0", | ||
"node": ">=12.0.0", | ||
"npm": ">=5.7.1" | ||
@@ -36,0 +36,0 @@ }, |
@@ -68,3 +68,3 @@ /** | ||
if ( isSafeKeystroke( evtData ) || doc.selection.isCollapsed ) { | ||
if ( isNonTypingKeystroke( evtData ) || doc.selection.isCollapsed ) { | ||
return; | ||
@@ -158,10 +158,16 @@ } | ||
// Returns `true` if a keystroke should not cause any content change caused by "typing". | ||
// | ||
// Note: This implementation is very simple and will need to be refined with time. | ||
// | ||
// @private | ||
// @param {engine.view.observer.keyObserver.KeyEventData} keyData | ||
// @returns {Boolean} | ||
function isSafeKeystroke( keyData ) { | ||
/** | ||
* Returns `true` if a keystroke will **not** result in "typing". | ||
* | ||
* For instance, keystrokes that result in typing are letters "a-zA-Z", numbers "0-9", delete, backspace, etc. | ||
* | ||
* Keystrokes that do not cause typing are, for instance, Fn keys (F5, F8, etc.), arrow keys (←, →, ↑, ↓), | ||
* Tab (↹), "Windows logo key" (⊞ Win), etc. | ||
* | ||
* Note: This implementation is very simple and will need to be refined with time. | ||
* | ||
* @param {module:engine/view/observer/keyobserver~KeyEventData} keyData | ||
* @returns {Boolean} | ||
*/ | ||
export function isNonTypingKeystroke( keyData ) { | ||
// Keystrokes which contain Ctrl don't represent typing. | ||
@@ -168,0 +174,0 @@ if ( keyData.ctrlKey ) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
89036
1807
4
+ Added@ckeditor/ckeditor5-core@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-engine@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-utils@19.0.2(transitive)
Updatedlodash-es@^4.17.15