@ckeditor/ckeditor5-image 47.1.0 → 47.2.0-alpha.1

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-image",
3
- "version": "47.1.0",
3
+ "version": "47.2.0-alpha.1",
4
4
  "description": "Image feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,17 +13,17 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-clipboard": "47.1.0",
17
- "@ckeditor/ckeditor5-core": "47.1.0",
18
- "@ckeditor/ckeditor5-engine": "47.1.0",
19
- "@ckeditor/ckeditor5-icons": "47.1.0",
20
- "@ckeditor/ckeditor5-typing": "47.1.0",
21
- "@ckeditor/ckeditor5-ui": "47.1.0",
22
- "@ckeditor/ckeditor5-undo": "47.1.0",
23
- "@ckeditor/ckeditor5-upload": "47.1.0",
24
- "@ckeditor/ckeditor5-utils": "47.1.0",
25
- "@ckeditor/ckeditor5-widget": "47.1.0",
26
- "ckeditor5": "47.1.0",
16
+ "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.1",
17
+ "@ckeditor/ckeditor5-core": "47.2.0-alpha.1",
18
+ "@ckeditor/ckeditor5-engine": "47.2.0-alpha.1",
19
+ "@ckeditor/ckeditor5-icons": "47.2.0-alpha.1",
20
+ "@ckeditor/ckeditor5-typing": "47.2.0-alpha.1",
21
+ "@ckeditor/ckeditor5-ui": "47.2.0-alpha.1",
22
+ "@ckeditor/ckeditor5-undo": "47.2.0-alpha.1",
23
+ "@ckeditor/ckeditor5-upload": "47.2.0-alpha.1",
24
+ "@ckeditor/ckeditor5-utils": "47.2.0-alpha.1",
25
+ "@ckeditor/ckeditor5-widget": "47.2.0-alpha.1",
26
+ "ckeditor5": "47.2.0-alpha.1",
27
27
  "es-toolkit": "1.39.5"
28
28
  },
29
29
  "author": "CKSource (http://cksource.com/)",
@@ -193,7 +193,12 @@ export class ImageUploadEditing extends Plugin {
193
193
  for (const imageElement of getImagesFromChangeItem(editor, item)) {
194
194
  // Check if the image element still has upload id.
195
195
  const uploadId = imageElement.getAttribute('uploadId');
196
- if (!uploadId) {
196
+ const uploadStatus = imageElement.getAttribute('uploadStatus');
197
+ // Check if status is complete to ensure that there were no additional reconversions
198
+ // in the same batch that set the status to 'complete'. It may happen when list item
199
+ // performed refresh of its children (including images) because `uploadStatus` attribute
200
+ // has been changed.
201
+ if (!uploadId || uploadStatus == 'complete') {
197
202
  continue;
198
203
  }
199
204
  // Check if the image is loaded on this client.