@ckeditor/ckeditor5-typing
Advanced tools
Comparing version 38.0.1 to 38.1.0
{ | ||
"name": "@ckeditor/ckeditor5-typing", | ||
"version": "38.0.1", | ||
"version": "38.1.0", | ||
"description": "Typing feature for CKEditor 5.", | ||
@@ -15,29 +15,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^38.0.1", | ||
"@ckeditor/ckeditor5-engine": "^38.0.1", | ||
"@ckeditor/ckeditor5-utils": "^38.0.1", | ||
"@ckeditor/ckeditor5-core": "38.1.0", | ||
"@ckeditor/ckeditor5-engine": "38.1.0", | ||
"@ckeditor/ckeditor5-utils": "38.1.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-autoformat": "^38.0.1", | ||
"@ckeditor/ckeditor5-basic-styles": "^38.0.1", | ||
"@ckeditor/ckeditor5-block-quote": "^38.0.1", | ||
"@ckeditor/ckeditor5-code-block": "^38.0.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^38.0.1", | ||
"@ckeditor/ckeditor5-enter": "^38.0.1", | ||
"@ckeditor/ckeditor5-essentials": "^38.0.1", | ||
"@ckeditor/ckeditor5-heading": "^38.0.1", | ||
"@ckeditor/ckeditor5-image": "^38.0.1", | ||
"@ckeditor/ckeditor5-indent": "^38.0.1", | ||
"@ckeditor/ckeditor5-link": "^38.0.1", | ||
"@ckeditor/ckeditor5-list": "^38.0.1", | ||
"@ckeditor/ckeditor5-media-embed": "^38.0.1", | ||
"@ckeditor/ckeditor5-mention": "^38.0.1", | ||
"@ckeditor/ckeditor5-paragraph": "^38.0.1", | ||
"@ckeditor/ckeditor5-table": "^38.0.1", | ||
"@ckeditor/ckeditor5-undo": "^38.0.1", | ||
"typescript": "^4.8.4", | ||
"webpack": "^5.58.1", | ||
"webpack-cli": "^4.9.0" | ||
}, | ||
"engines": { | ||
@@ -64,7 +42,3 @@ "node": ">=16.0.0", | ||
], | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.json", | ||
"postversion": "npm run build" | ||
}, | ||
"types": "src/index.d.ts" | ||
} |
@@ -21,3 +21,3 @@ /** | ||
*/ | ||
static get pluginName(): 'Delete'; | ||
static get pluginName(): "Delete"; | ||
/** | ||
@@ -24,0 +24,0 @@ * @inheritDoc |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
static get pluginName(): 'Input'; | ||
static get pluginName(): "Input"; | ||
/** | ||
@@ -19,0 +19,0 @@ * @inheritDoc |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
static get pluginName(): 'TextTransformation'; | ||
static get pluginName(): "TextTransformation"; | ||
/** | ||
@@ -23,0 +23,0 @@ * @inheritDoc |
@@ -151,3 +151,3 @@ /** | ||
*/ | ||
static get pluginName(): 'TwoStepCaretMovement'; | ||
static get pluginName(): "TwoStepCaretMovement"; | ||
/** | ||
@@ -154,0 +154,0 @@ * @inheritDoc |
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
static get pluginName(): 'Typing'; | ||
static get pluginName(): "Typing"; | ||
} |
@@ -34,11 +34,11 @@ /** | ||
let start = range.start; | ||
const text = Array.from(range.getItems()).reduce((rangeText, node) => { | ||
const text = Array.from(range.getWalker({ ignoreElementEnd: false })).reduce((rangeText, { item }) => { | ||
// Trim text to a last occurrence of an inline element and update range start. | ||
if (!(node.is('$text') || node.is('$textProxy'))) { | ||
start = model.createPositionAfter(node); | ||
if (!(item.is('$text') || item.is('$textProxy'))) { | ||
start = model.createPositionAfter(item); | ||
return ''; | ||
} | ||
return rangeText + node.data; | ||
return rangeText + item.data; | ||
}, ''); | ||
return { text, range: model.createRange(start, range.end) }; | ||
} |
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
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
0
141330
+ Added@ckeditor/ckeditor5-core@38.1.0(transitive)
+ Added@ckeditor/ckeditor5-engine@38.1.0(transitive)
+ Added@ckeditor/ckeditor5-utils@38.1.0(transitive)
- Removed@ckeditor/ckeditor5-core@38.1.1(transitive)
- Removed@ckeditor/ckeditor5-engine@38.1.1(transitive)
- Removed@ckeditor/ckeditor5-utils@38.1.1(transitive)