filestack-js
Advanced tools
Comparing version 0.7.1 to 0.8.0
# filestack-js changelog | ||
## 0.8.0 (2017-07-26) | ||
**Picker changes** | ||
- Fix typos in various languages including Italian and Danish | ||
- Add Hebrew language as `he` | ||
- Cancel uploads when the pick modal is closed (via close button or ESC key) | ||
- Convert all image transformations to run on the client | ||
- Implement force crop flow | ||
**New pick options** | ||
- `imageMax` -- set maximum dimensions for client-side image resizing | ||
- `imageMin` -- set minimum dimensions for client-side image resizing | ||
- `imageDim` -- set dimensions for client-side image resizing | ||
- `rejectOnCancel` -- reject the Promise returned by `pick` on user cancel | ||
- `transformations.crop.force` -- force all images to be cropped before uploading | ||
- `transformations.rotate` -- enable/disable image rotation | ||
- `transformations.circle` -- enable/disable image circle crop | ||
**Deprecated pick options** | ||
As of 0.8.0 the following options are no longer supported: | ||
- `transformations.maxDimensions` -- Replaced by `imageMax` | ||
- `transformations.minDimensions` -- Replaced by `imageMin` | ||
- `transformations.crop.circle` -- Replaced by `transformations.circle` | ||
- `transformations.filters` -- These are now gone, for now | ||
**Client changes** | ||
- `upload` will now accept a base64 encoded string which it will convert to a Blob. | ||
- Added new transform option `output` for file conversion URL generation | ||
## 0.7.1 (2017-07-10) | ||
@@ -4,0 +34,0 @@ **Picker fixes** |
export default { | ||
picker: '//static.filestackapi.com/picker/v3/picker-0.8.3.js', | ||
picker: '//static.filestackapi.com/picker/v3/picker-0.9.2.js', | ||
}; |
{ | ||
"name": "filestack-js", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Official web SDK for the Filestack API", | ||
@@ -39,3 +39,3 @@ "author": "Filestack", | ||
"devDependencies": { | ||
"api-client": "http://static.filestackapi.com/packages/api-client/api-client-0.5.1.tar.gz", | ||
"api-client": "http://static.filestackapi.com/packages/api-client/api-client-0.5.3.tar.gz", | ||
"babel-preset-es2015": "^6.22.0", | ||
@@ -42,0 +42,0 @@ "babel-register": "^6.22.0", |
@@ -166,3 +166,3 @@ <p align="center"> | ||
- .preferLinkOverStore <code>boolean</code> <code> = false</code> - For cloud sources whether to __link__ or __store__ files. | ||
- .lang <code>string</code> <code> = "en"</code> - Sets locale. Accepts: `da`, `de`, `en`, `es`, `fr`, `it`, `ja`, `nl`, `pl`, `pt`, `ru`, `zh`. | ||
- .lang <code>string</code> <code> = "en"</code> - Sets locale. Accepts: `da`, `de`, `en`, `es`, `fr`, `he`, `it`, `ja`, `nl`, `pl`, `pt`, `ru`, `zh`. | ||
- .minFiles <code>number</code> <code> = 1</code> - Minimum number of files required to start uploading. | ||
@@ -174,13 +174,22 @@ - .maxFiles <code>number</code> <code> = 1</code> - Maximum number of files allowed to upload. | ||
- .uploadInBackground <code>boolean</code> <code> = true</code> - Start uploading immediately on file selection. | ||
- .disableTransformer <code>boolean</code> <code> = false</code> - When true removes ability to edit images. | ||
- .disableThumbnails <code>boolean</code> <code> = false</code> - Disables local image thumbnail previews in the summary screen. | ||
- .disableTransformer <code>boolean</code> <code> = false</code> - When true removes ability to edit images. | ||
- .transformations <code>object</code> - Specify transforms for images passed to the transformations UI. | ||
- .transformations <code>object</code> - Specify options for images passed to the crop UI. | ||
- .crop <code>boolean</code> | <code>object</code> <code> = true</code> - Enable crop. | ||
- .aspectRatio <code>number</code> - Maintain aspect ratio for crop selection. (e.g. 16/9 or 4/3) | ||
- .circle <code>boolean</code> <code> = true</code> - Enable circle crop. __Disabled if `aspectRatio` is defined and not 1__. | ||
- .minDimensions <code>array</code> - Minimum dimensions for picked image. Image will be upscaled if smaller. (e.g. [200, 300]) | ||
- .maxDimensions <code>array</code> - Maximum dimensions for picked image. Image will be downscaled if smaller. (e.g. [200, 300]) | ||
- .filters <code>Array.<string></code> - Enable image filters. Pick from: `sepia`, `monochrome`. __All enabled by default__. | ||
- .aspectRatio <code>number</code> - Maintain aspect ratio for crop selection. (e.g. 16/9, 800/600). | ||
- .force <code>boolean</code> - Force all images to be cropped before uploading. | ||
- .circle <code>boolean</code> <code> = true</code> - Enable circle crop. __Disabled if `crop.aspectRatio` is defined and not 1. Converts to PNG.__ | ||
- .rotate <code>boolean</code> <code> = true</code> - Enable image rotation. | ||
- .imageDim <code>Array.<number></code> - Specify image dimensions. e.g. `[800, 600]`. Only for JPEG, PNG, and BMP files. | ||
Local and cropped images will be resized (upscaled or downscaled) to the specified dimensions before uploading. | ||
The original height to width ratio is maintained. To resize all images based on the width, set [width, null], e.g. [800, null]. | ||
For the height set [null, height], e.g. [null, 600]. | ||
- .imageMax <code>Array.<number></code> - Specify maximum image dimensions. e.g. `[800, 600]`. Only for JPEG, PNG, and BMP files. | ||
Images bigger than the specified dimensions will be resized to the maximum size while maintaining the original aspect ratio. | ||
The output will not be exactly 800x600 unless the imageMax matches the aspect ratio of the original image. | ||
- .imageMin <code>Array.<number></code> - Specify minimum image dimensions. e.g. `[800, 600]`. Only for JPEG, PNG, and BMP files. | ||
Images smaller than the specified dimensions will be upscaled to the minimum size while maintaining the original aspect ratio. | ||
The output will not be exactly 800x600 unless the imageMin matches the aspect ratio of the original image. | ||
- .storeTo <code>object</code> - Options for file storage. | ||
- .location <code>string</code> <code> = "s3"</code> - One of `s3`, `gcs`, `rackspace`, `azure`, `dropbox`. | ||
- .location <code>string</code> - One of `s3`, `gcs`, `rackspace`, `azure`, `dropbox`. | ||
- .region <code>string</code> - Valid S3 region for the selected S3 bucket. __S3 only__. | ||
@@ -190,8 +199,9 @@ - .container <code>string</code> | ||
- .access <code>string</code> - One of `public` or `private`. | ||
- .onFileSelected <code>[onFileSelected](#module_pick--pick..onFileSelected)</code> - Called whenever user selects a file. | ||
- .onFileUploadStarted <code>[onFileUploadStarted](#module_pick--pick..onFileUploadStarted)</code> - Called when a file begins uploading. | ||
- .onFileUploadProgress <code>[onFileUploadProgress](#module_pick--pick..onFileUploadProgress)</code> - Called during multi-part upload progress events. __Local files only__. | ||
- .onFileUploadFinished <code>[onFileUploadFinished](#module_pick--pick..onFileUploadFinished)</code> - Called when a file is done uploading. | ||
- .onFileUploadFailed <code>[onFileUploadFailed](#module_pick--pick..onFileUploadFailed)</code> - Called when uploading a file fails. | ||
- .onFileSelected [<code>onFileSelected</code>](#module_pick--pick..onFileSelected) - Called whenever user selects a file. | ||
- .onFileUploadStarted [<code>onFileUploadStarted</code>](#module_pick--pick..onFileUploadStarted) - Called when a file begins uploading. | ||
- .onFileUploadProgress [<code>onFileUploadProgress</code>](#module_pick--pick..onFileUploadProgress) - Called during multi-part upload progress events. __Local files only__. | ||
- .onFileUploadFinished [<code>onFileUploadFinished</code>](#module_pick--pick..onFileUploadFinished) - Called when a file is done uploading. | ||
- .onFileUploadFailed [<code>onFileUploadFailed</code>](#module_pick--pick..onFileUploadFailed) - Called when uploading a file fails. | ||
- .onClose <code>function</code> - Called when the UI is exited. | ||
- .rejectOnCancel <code>boolean</code> - Reject the returned Promise when a user cancels the pick. The Promise will reject with a list of all files currently selected. | ||
@@ -472,2 +482,16 @@ **Example** | ||
- .tone <code>number</code> | ||
- output <code>object</code> - [Output options.](https://www.filestack.com/docs/image-transformations/conversion) | ||
- .format <code>string</code> | ||
- .background <code>string</code> | ||
- .page <code>Array.<number></code> - Range format `[1, 10000]`. | ||
- .density <code>Array.<number></code> - Range format `[1, 500]`. | ||
- .compress <code>boolean</code> | ||
- .quality <code>number</code> | <code>string</code> - Can be number in range 1-100 or `input`. | ||
- .input <code>boolean</code> | ||
- .strip <code>boolean</code> | ||
- .colorspace <code>string</code> - One of `rgb`, `cmyk`, or `input`. | ||
- .secure <code>boolean</code> | ||
- .docinfo <code>boolean</code> | ||
- .pageformat <code>string</code> - One of `a3`, `a4`, `a5`, `b4`, `b5`, `letter`, `legal`, or `tabloid`. | ||
- .pageorientation <code>string</code> - One of `landscape` or `portrait`. | ||
@@ -483,3 +507,3 @@ <a name="module_filestack..init.upload"></a> | ||
- file <code>Blob</code> - must be a valid [File](https://developer.mozilla.org/en-US/docs/Web/API/File) or Blob. | ||
- file <code>Blob</code> | <code>string</code> - must be a valid [File](https://developer.mozilla.org/en-US/docs/Web/API/File), Blob, or base64 encoded string. | ||
- [uploadOptions] <code>object</code> | ||
@@ -486,0 +510,0 @@ - [.partSize] <code>number</code> <code> = 6 * 1024 * 1024</code> - Size of each uploaded part. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
984339
1225
558