@ckeditor/ckeditor5-clipboard 43.3.1 → 44.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-clipboard",
3
- "version": "43.3.1",
3
+ "version": "44.0.0-alpha.0",
4
4
  "description": "Clipboard integration feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,11 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "43.3.1",
17
- "@ckeditor/ckeditor5-engine": "43.3.1",
18
- "@ckeditor/ckeditor5-ui": "43.3.1",
19
- "@ckeditor/ckeditor5-utils": "43.3.1",
20
- "@ckeditor/ckeditor5-widget": "43.3.1",
16
+ "@ckeditor/ckeditor5-core": "44.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-engine": "44.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "44.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-utils": "44.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-widget": "44.0.0-alpha.0",
21
21
  "lodash-es": "4.17.21"
22
22
  },
23
23
  "author": "CKSource (http://cksource.com/)",
@@ -272,7 +272,7 @@ function findDropTargetRange(editor, targetViewElement, targetViewRanges, client
272
272
  const targetViewPosition = targetViewRanges[0].start;
273
273
  const targetModelPosition = mapper.toModelPosition(targetViewPosition);
274
274
  const canDropOnPosition = !draggedRange || Array
275
- .from(draggedRange.getItems())
275
+ .from(draggedRange.getItems({ shallow: true }))
276
276
  .every(item => model.schema.checkChild(targetModelPosition, item));
277
277
  if (canDropOnPosition) {
278
278
  if (model.schema.checkChild(targetModelPosition, '$text')) {