@ckeditor/ckeditor5-upload
Advanced tools
Comparing version 27.0.0 to 27.1.0
{ | ||
"name": "@ckeditor/ckeditor5-upload", | ||
"version": "27.0.0", | ||
"version": "27.1.0", | ||
"description": "Upload Feature for CKEditor 5.", | ||
@@ -14,5 +14,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^27.0.0", | ||
"@ckeditor/ckeditor5-utils": "^27.0.0", | ||
"@ckeditor/ckeditor5-ui": "^27.0.0" | ||
"@ckeditor/ckeditor5-core": "^27.1.0", | ||
"@ckeditor/ckeditor5-utils": "^27.1.0", | ||
"@ckeditor/ckeditor5-ui": "^27.1.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "engines": { |
@@ -177,3 +177,10 @@ /** | ||
resolve( response.url ? { default: response.url } : response.urls ); | ||
const urls = response.url ? { default: response.url } : response.urls; | ||
// Resolve with the normalized `urls` property and pass the rest of the response | ||
// to allow customizing the behavior of features relying on the upload adapters. | ||
resolve( { | ||
...response, | ||
urls | ||
} ); | ||
} ); | ||
@@ -180,0 +187,0 @@ |
@@ -612,2 +612,16 @@ /** | ||
* | ||
* You can also pass additional properties from the server. In this case you need to wrap URLs | ||
* in the `urls` object and pass additional properties along the `urls` property. | ||
* | ||
* { | ||
* myCustomProperty: 'foo', | ||
* urls: { | ||
* default: 'http://server/default-size.image.png', | ||
* '160': 'http://server/size-160.image.png', | ||
* '500': 'http://server/size-500.image.png', | ||
* '1000': 'http://server/size-1000.image.png', | ||
* '1052': 'http://server/default-size.image.png' | ||
* } | ||
* } | ||
* | ||
* NOTE: When returning multiple images, the widest returned one should equal the default one. It is essential to | ||
@@ -614,0 +628,0 @@ * correctly set `width` attribute of the image. See this discussion: |
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
96621
1229
- Removed@ckeditor/ckeditor5-upload@27.1.0(transitive)