UNPKG

uploadcare-widget

Version:
1,165 lines (809 loc) 40.3 kB
# Changelog ## [3.9.0] ### Changed * feat: add videoPreferredMimeTypes setting for camera tab. See [#736][736] [736]: https://github.com/uploadcare/uploadcare-widget/pull/736 [3.9.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.8.3...v3.9.0 ## [3.8.3] ### Fixed * Disabled focus controlling in panel mode. See [#698][698]. * Updated Ukrainian locale. Thanks to @smartianin. See [#678][678]. * Removed prototype pollution from Pusher source. See [#704][704]. * Fixed variable name in Pusher's `subscribeAll`. See [#707][707]. [3.8.3]: https://github.com/uploadcare/uploadcare-widget/compare/v3.8.2...v3.8.3 [698]: https://github.com/uploadcare/uploadcare-widget/pull/698 [704]: https://github.com/uploadcare/uploadcare-widget/pull/704 [678]: https://github.com/uploadcare/uploadcare-widget/pull/678 [707]: https://github.com/uploadcare/uploadcare-widget/pull/707 ## [3.8.2] ### Fixed * openDialog() failed with `settings is undefined` error. See [#668][668]. [3.8.2]: https://github.com/uploadcare/uploadcare-widget/compare/v3.8.1...v3.8.2 [668]: https://github.com/uploadcare/uploadcare-widget/pull/668 ## [3.8.1] ### Fixed * Escaping special symbols in filenames to avoid XSS attacks. See [#643][643]. [3.8.1]: https://github.com/uploadcare/uploadcare-widget/compare/v3.8.0...v3.8.1 [643]: https://github.com/uploadcare/uploadcare-widget/pull/643 ## [3.8.0] ### Changed * Migrated from CoffeeScript to JavaScript. See [#567][567]. * Switched to ES Modules instead of namespaces. See [#569][569]. * Migrated templates to tagged HTML strings from EJS. See [#603][603]. ### Fixed * Improved widget accessibility. Big thanks to @erin-doyle. See [#594][594], [#595][595] and [#611][611]. * Updated Spanish locale. Thanks to @HerrLindner. See [#550][550]. * Updated German locale. Thanks to @thomasklemm. See [#580][580]. * Fixed effects tab locales. See [#613][613]. [3.8.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.7.9...v3.8.0 [613]: https://github.com/uploadcare/uploadcare-widget/pull/613 [611]: https://github.com/uploadcare/uploadcare-widget/pull/611 [603]: https://github.com/uploadcare/uploadcare-widget/pull/603 [550]: https://github.com/uploadcare/uploadcare-widget/pull/550 [567]: https://github.com/uploadcare/uploadcare-widget/pull/567 [569]: https://github.com/uploadcare/uploadcare-widget/pull/569 [580]: https://github.com/uploadcare/uploadcare-widget/pull/580 [594]: https://github.com/uploadcare/uploadcare-widget/pull/594 [595]: https://github.com/uploadcare/uploadcare-widget/pull/595 ## [3.7.9] ### Fixed * Error `F.document is not a function` on initialization. See [#563][563]. [563]: https://github.com/uploadcare/uploadcare-widget/issues/563 ## [3.7.8] ### Fixed * Improve accessibility. See [#554][554]. [554]: https://github.com/uploadcare/uploadcare-widget/pull/554 ## [3.7.7] ### Added * New locale was added: Ukrainian (`uk`). See [#548][github-pr-548]. ### Fixed * Fixed transparency lost when shrinking images before uploading. See [#549][549]. [github-pr-548]: https://github.com/uploadcare/uploadcare-widget/pull/548 [549]: https://github.com/uploadcare/uploadcare-widget/pull/549 ## [3.7.6] ### Changed * Do not show warning when global public key not set. See [#546][546]. [546]: https://github.com/uploadcare/uploadcare-widget/pull/546 ## [3.7.5] ### Fixed * Google Photos icon geometry was fixed. See [#541][541]. [541]: https://github.com/uploadcare/uploadcare-widget/pull/541 ## [3.7.4] ### Changed * Google Photos icon was updated. See [#540][540]. [540]: https://github.com/uploadcare/uploadcare-widget/pull/540 ## [3.7.3] ### Fixed * Fix broken minified bundle. See [#539][539]. [539]: https://github.com/uploadcare/uploadcare-widget/pull/539 ## [3.7.1] ### Changed * Upgrade jquery to v3.4.1 due to security issue. See [#535][535]. [535]: https://github.com/uploadcare/uploadcare-widget/issues/535 ## [3.7.0] ### Added * New value `onedrive` for the `tabs` option to define OneDrive tab. We continue to support the `skydrive` value, but it will be replaced by `onedrive`. * Added missing translations to the Spanish (`es`) locale. See [#529][github-pr-529]. ### Fixed * Specified the right license in `package.json` like in the `LICENSE` file. * Keyboard only users can navigate the dialog now. See [#524][github-pr-524]. * Fixed typo in the German (`de`) locale. See [#530][github-pr-530]. [3.7.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.6.2...v3.7.0 [github-pr-524]: https://github.com/uploadcare/uploadcare-widget/pull/524 [github-pr-529]: https://github.com/uploadcare/uploadcare-widget/pull/529 [github-pr-530]: https://github.com/uploadcare/uploadcare-widget/pull/530 ## [3.6.2] ### Fixed * Fixed multipart uploading when `imagesOnly` flag is set. * The default threshold for multipart uploads was dropped from 25 to 10 megabytes. * Validators now run more frequently for each file than before. See [#511][github-pr-511]. * Enabled [`imageSmoothingQuality`] API for `imageShrink` for Google Chrome * Fixed the file extension of the recorded video on the camera tab. Now it reflects a video container with fallback to "avi". See [#516][github-pr-516]. * Fixed typo and improved grammar in the Dutch (`nl`) locale. See [#504][github-pr-504]. * Fixed work in the `strict mode`. See [#523][github-pr-523]. [3.6.2]: https://github.com/uploadcare/uploadcare-widget/compare/v3.6.1...v3.6.2 [github-pr-504]: https://github.com/uploadcare/uploadcare-widget/pull/504 [github-pr-511]: https://github.com/uploadcare/uploadcare-widget/pull/511 [github-pr-516]: https://github.com/uploadcare/uploadcare-widget/pull/516 [github-pr-523]: https://github.com/uploadcare/uploadcare-widget/pull/523 [`imageSmoothingQuality`]: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality ## [3.6.1] - 2018-09-21 ### Fixed * Fixed error `Cannot read property 'type' of null` that often occurs together with the grecaptcha2. See issue [#500][github-issue-500]. [3.6.1]: https://github.com/uploadcare/uploadcare-widget/compare/v3.6.0...v3.6.1 [github-issue-500]: https://github.com/uploadcare/uploadcare-widget/issues/500 ## [3.6.0] - 2018-07-26 ### Added * New locales: Greek (`el`), Vietnamese (`vi`). See [#498][github-pr-498]. ### Changed * Url to Uploadcare in the “powered by” section. ### Fixed * Use a bit more sharp Facebook logo to make it perfect. See [#496][github-pr-496] [3.6.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.5.1...v3.6.0 [github-pr-498]: https://github.com/uploadcare/uploadcare-widget/pull/498 [github-pr-496]: https://github.com/uploadcare/uploadcare-widget/pull/496 ## [3.5.1] - 2018-07-10 ### Fixed * Now use the correct Facebook logo, consistent with the Facebook [brand guidelines][facebook-brand-guidelines]. [3.5.1]: https://github.com/uploadcare/uploadcare-widget/compare/v3.5.0...v3.5.1 [facebook-brand-guidelines]: https://en.facebookbrand.com/assets/f-logo ## [3.5.0] - 2018-06-28 ### Added * New configuration options: [`audioBitsPerSecond`][uc-widget-option-audiobitspersecond] and [`videoBitsPerSecond`][uc-widget-option-videobitspersecond]. They allow you to adjust the quality of video recording on the camera tab. ### Changed * Start using the [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) format for the changelog at the `HISTORY.markdown` file. * Dropbox icon was updated. ### Fixed * Double call of `dialog.progress`, see [#481][github-pr-481]. [3.5.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.4.0...v3.5.0 [uc-widget-option-audiobitspersecond]: https://uploadcare.com/docs/uploads/widget/config/#option-audio-bits-per-second [uc-widget-option-videobitspersecond]: https://uploadcare.com/docs/uploads/widget/config/#option-video-bits-per-second [github-pr-481]: https://github.com/uploadcare/uploadcare-widget/pull/481 ## [3.4.0] - 2018-05-23 ### Added * New configuration options: [`previewProxy`][uc-widget-option-previewproxy] and [`previewUrlCallback`][uc-widget-option-previewcallback]. Check out our [docs][uc-widget-secure-urls] for more info. * The `AUTHORS.txt` file to the repo to give credit to those contributing to the project. Yoo-hoo, thanks folks 💛 ### Changed * Updated README: * New sections: “Security issues” and “Feedback.” * References to the widget v2. * Table of contents. * Updated the package description. ### Fixed * A not-working button that removes an entry from the file list in a multi-file mode in Edge. * Displaying a wrong image when a set of files gets dragged and dropped onto a widget in a single-file mode, [issue #443][github-issue-443]. * Video seeking in Chrome, [#460][github-pr-460]. * Multipart uploading: no extra headers are now sent. * Previewing videos in Safari on iOS, see [#463][github-pr-463]. * The `this.settings is undefined` error when using the `loadFileGroup` function. [3.4.0]: https://github.com/uploadcare/uploadcare-widget/compare/v3.3.0...v3.4.0 [uc-widget-option-previewproxy]: https://uploadcare.com/docs/uploads/widget/config/#option-preview-proxy [uc-widget-option-previewcallback]: https://uploadcare.com/docs/uploads/widget/config/#option-preview-url-callback [uc-widget-secure-urls]: https://uploadcare.com/docs/uploads/widget/secure_urls/ [github-issue-443]: https://github.com/uploadcare/uploadcare-widget/issues/443 [github-pr-460]: https://github.com/uploadcare/uploadcare-widget/pull/460 [github-pr-463]: https://github.com/uploadcare/uploadcare-widget/pull/463 ## 3.3.0 - 2018-04-25 * Added new locales: Romain (`ro`), Slovak (`sk`), Serbian (`sr`). * Updated locales: Swedish (`sv`), Polish (`pl`). * Added default limit of 1000 files for `multipleMax`. * Fixed preview: now the widget doesn't create a preview image if `previewStep` is off. * Added the new option `integration` for set up info about framework and plugin through which the widget is installed. * Updated requests to Uploadcare Upload API, added the `X-UC-User-Agent` header with info about version of the widget, public key, framework, and plugin. * Updated README: * added link to the new angular wrapper, * update links to docs, * added info about how to use own custom locale immediately ## 3.2.3 - 2018-03-05 * Fixed French (`fr`) locale. * Fixed camera tab: now, if device and browser support the `capture` attribute for the `input[type=file]` element, instead of the video stream, we show only the buttons that give direct access to the camera. ## 3.2.2 - 2018-02-05 * Fixed Swedish (`sv`) locale. * Fixed XHR requests: added responseType to XHR requests to prevent Firefox from parsing responses as XML. ## 3.2.1 - 2017-11-13 * Fixed autocrop: now if multiple is turned on and the crop is specified, crop auto applies to a last uploaded file. * Fixed the problem with drag&drop when the class `.uploadcare--dragging` was not removed from the body when dragging was finished. ## 3.2.0 - 2017-10-30 * Added the `.uploadcare--panel__powered_by` block inside `.uploadcare--panel__content`. * Fixed the blinking problem with `UPLOADCARE_LIVE=true`, see [#277][issue-277], [#281][issue-281], [#366][issue-366], [#384][issue-384], [#411][issue-411]. * Fixed the bug with menu in iOS 11, see [#417][issue-417]. * Update value of the `--color-base` variable in [the config][styles-config] of styles. * Updated bundled styles: * removed the `-webkit` prefix for `transition`, * added the prefix for Edge for `::placeholder` of `.uploadcare--input`. * Updated README: * changed logo of Uploadcare, * added shield with the current version of npm package. [issue-277]: https://github.com/uploadcare/uploadcare-widget/issues/277 [issue-281]: https://github.com/uploadcare/uploadcare-widget/issues/281 [issue-366]: https://github.com/uploadcare/uploadcare-widget/issues/366 [issue-384]: https://github.com/uploadcare/uploadcare-widget/issues/384 [issue-411]: https://github.com/uploadcare/uploadcare-widget/issues/411 [issue-417]: https://github.com/uploadcare/uploadcare-widget/issues/417 [styles-config]: https://github.com/uploadcare/uploadcare-widget/blob/master/app/assets/stylesheets/uploadcare/_config.pcss ## 3.1.4 - 2017-09-22 * Fixed the error of the stream from a webcam in Safari 11. Now the camera tab with taking photos works in Safari 11. * Updated function for start the stream from a webcam: added using the `navigator.mediaDevices.getUserMedia` method if a browser supports these. * Updated the video element, which used for the stream: use the `muted` attribute in HTML template instead of setting up the `volume` property in JS. * Fixed stop video stream: if a browser supports the `getTracks` method, call the `stop` only for tracks, not for the stream, because MediaStream.stop deprecated. * Fixed preview images in the list of files in `multiple` mode: using just one double-sized version of an image in `src` instead of using `srcset` attribute. Now there are high-quality images in browsers that don’t support the `srcset` attribute. * Fixed README: fixed protocol of image URL for the badge of StackShare. ## 3.1.3 - 2017-09-14 * Fixed the disappearance of the footer on the preview tab in IE and Firefox, if users pick a lot of files, issue [#409][issue-409]. * Fixed typo in Spanish (`es`) locale. [issue-409]: https://github.com/uploadcare/uploadcare-widget/issues/409 ## 3.1.2 - 2017-08-18 * Fixed styles to avoid inheriting global styles from `button` or `div[role=button]` for classes: * `uploadcare--button` * `uploadcare--button_muted` * `uploadcare--button_overlay` * `uploadcare--button_primary` * `uploadcare--button_primary` * `uploadcare--crop-sizes__item` * `uploadcare--widget__button` * `uploadcare--widget__button_type_open` * Updated README: added StackShare badge. ## 3.1.1 - 2017-07-24 * Fixed Portuguese (`pt`) locale. * Fixed closing of the dialog when double-clicking on the tabs menu. ## 3.1.0 - 2017-07-19 * Added Korean locale. * Updated Arabic locale. * Added the attribute `type=button` for the `file-source` buttons. * Fixed problems with scrolling and footer's buttons on the iframe tabs (like an Instagram) in Safari for iOS. * Fixed background styles for the dialog and panel. * Added font styles for the panel. * Fixed adding the `uploadcare--page` class to the body when used the `openPanel` method. * Fixed width of the opened mobile menu in UC Browser. * Fixed placement of elements in the footer in multiple mode in old browsers like an IE 10. * Fixed README: * fixed name of default bundle, * moved npm install before CDN, * removed React code, * replaced the image about widget's screenshots with the gif about the widget in action. ## 3.0.1 - 2017-07-03 * Fixed the `Cannot read property 'tabs' of undefined` error, issue [#388][issue-388] * Fixed the `jQuery.Deferred exception: this.state is not a function` error, issue [#387][issue-387] * Removed `dialog_menu-hidden`, added `panel_menu-hidden` instead; now, if the panel doesn't have tabs, the `panel_menu-hidden` class is added to the panel * Updated README: added screenshots and description about browser support [issue-388]: https://github.com/uploadcare/uploadcare-widget/issues/388 [issue-387]: https://github.com/uploadcare/uploadcare-widget/issues/387 ## 3.0.0 - 2017-06-28 * All classes now have the `uploadcare--` prefix instead `uploadcare-` * Changed all HTML markup, used the [classical BEM](https://en.bem.info/methodology/quick-start/) methodology * Updated all styles, used flexbox for layout * Used PostCSS post processing of styles instead Sass * All styles now divided into blocks, see the [`app/assets/stylesheets/uploadcare/blocks`][blocks] folder * Drop IE < 10 support * New design of the widget and the dialog * Updated README, development guide moved to `DEVELOPMENT.md` * Added args for PreviewTab constructor and change few methods to public * Removed all `png` images * Used SVG sprite for icons, all icons now SVG inline * All buttons except `menu__item` and `crop-sizes__item` elements, use `button` tag instead `div` * Added focus for all buttons and they are tabbable now * Updated English (en) locale, added new captions * Migration guide from v2 to v3 [here](https://uploadcare.com/documentation/widget/migration_v2_v3/) [blocks]: https://github.com/uploadcare/uploadcare-widget/tree/master/app/assets/stylesheets/uploadcare/blocks ## 2.11.1 - 2018-05-23 ### Added * The `AUTHORS.txt` file to the repo to give credit to those contributing to the project. Yoo-hoo, thanks folks 💛 ### Changed * Updated README: * New sections: “Security issues” and “Feedback.” * References to the widget v3. * Table of contents. * Updated the package description. ### Fixed * Displaying a wrong image when a set of files gets dragged and dropped onto a widget in a single-file mode, [issue #443][github-issue-443]. * Video seeking in Chrome, [#460][github-pr-460]. * Multipart uploading: no extra headers are now sent. * Previewing videos in Safari on iOS, see [#463][github-pr-463]. * The `this.settings is undefined` error when using the `loadFileGroup` function. [github-issue-443]: https://github.com/uploadcare/uploadcare-widget/issues/443 [github-pr-460]: https://github.com/uploadcare/uploadcare-widget/pull/460 [github-pr-463]: https://github.com/uploadcare/uploadcare-widget/pull/463 ## 2.11.0 - 2018-04-27 * Added default limit of 1000 files for `multipleMax`. * Fixed preview: now the widget doesn't create a preview image if `previewStep` is off. * Added the new option `integration` for set up info about framework and plugin through which the widget is installed. * Updated requests to Uploadcare Upload API, added the `X-UC-User-Agent` header with info about version of the widget, public key, framework, and plugin. * Fixed camera tab: now, if device and browser support the `capture` attribute for the `input[type=file]` element, instead of the video stream, we show only the buttons that give direct access to the camera. * Fixed XHR requests: added responseType to XHR requests to prevent Firefox from parsing responses as XML. * Fixed autocrop: now if multiple is turned on and the crop is specified, crop auto applies to a last uploaded file. * Fixed the problem with drag&drop when the class `.uploadcare-dragging` was not removed from the body when dragging was finished. * Fixed the blinking problem with `UPLOADCARE_LIVE=true`, see [#277][issue-277], [#281][issue-281], [#366][issue-366], [#384][issue-384], [#411][issue-411]. * Fixed the error of the stream from a webcam in Safari 11. Now the camera tab with taking photos works in Safari 11. * Updated function for start the stream from a webcam: added using the `navigator.mediaDevices.getUserMedia` method if a browser supports these. * Updated the video element, which used for the stream: use the `muted` attribute in HTML template instead of setting up the `volume` property in JS. * Fixed stop video stream: if a browser supports the `getTracks` method, call the `stop` only for tracks, not for the stream, because MediaStream.stop deprecated. [issue-277]: https://github.com/uploadcare/uploadcare-widget/issues/277 [issue-281]: https://github.com/uploadcare/uploadcare-widget/issues/281 [issue-366]: https://github.com/uploadcare/uploadcare-widget/issues/366 [issue-384]: https://github.com/uploadcare/uploadcare-widget/issues/384 [issue-411]: https://github.com/uploadcare/uploadcare-widget/issues/411 [issue-417]: https://github.com/uploadcare/uploadcare-widget/issues/417 ## 2.10.4 - 2017-06-22 * Added camera translations to Portuguese (pt) locale * Fixed JS for jQuery 3 compatibility. Now we support jQuery 3.x ## 2.10.3 - 2017-01-16 * Fixed `/group/` request for cases when signed uploads are enabled * Fixed sending message in iframe * Fixed French locale ## 2.10.2 - 2016-11-29 * Fixed critical image loading bug in Firefox 50 * Instagram icon is updated * Fixed tabs visual style * Fixed Swedish locale ## 2.10.1 - 2016-10-20 * Fixed the preview orientation for some images. * Fixed image size on crop tab in IE 11 * Fixed tabs overflow in Safari ## 2.10.0 - 2016-08-19 * Fixed the `Widget` constructor error message. * Added the `_name` attribute for `MultipleWidget` and `Widget` classes. * Added using [`imageSmoothingQuality`](https://html.spec.whatwg.org/multipage/scripting.html#image-smoothing) property where it's supported (except Chrome due to worst quality) instead of our resampling algorithm. * Added the Google Photos tab * Update jQuery dependency. We don't support 3.0.0 just yet. * Built-in jQuery upgraded to 2.2.4. ## 2.9.0 - 2016-05-13 * Added Estonian locale. * `UPLOADCARE_SECURE_SIGNATURE` and `UPLOADCARE_SECURE_EXPIRE` settings for [secure uploads](https://uploadcare.com/documentation/upload/#secure-uploads). * Further Browserify/Webpack compatibility improvements. * Removed deprecated `uploadcare.whenReady` function. ## 2.8.2 - 2016-04-04 * Preview for video captured from the camera. * Fast image preview for files from the camera. ## 2.8.1 - 2016-03-18 * Fixed the permissions request screen on the camera tab. * Fixed `uploadcare.locales` list. * Fixed `uploadcare.start` function in API build. ## 2.8.0 - 2016-03-14 * Now you can capture video right from the camera tab if browser is capable (latest Firefox and Google Chrome at the moment). * We've switched from YUI Compressor to UglifyJS and CSSO. Minified size is reduced up to 15%, gzipped size up to 8%. * CommonJS and Browserify compatibility added. * New library builds (in addition to `uploadcare` and `uploadcare.all`): * `uploadcare.api` — without jQuery and UI. Only upload API client. * `uploadcare.lang.en` — stripped localization to reduce size, only English is included. * `uploadcare.ie8` — with jQuery 1.12.1 (IE8 does not work with jQuery 2+). ## 2.7.0 - 2016-03-06 * Camera tab is disabled on non HTTPS sites due to the latest browsers' rules. * The widget constructors raise errors if no elements ware matched for provided selector and prints warning if more than one element is matched. * Built-in jQuery upgraded to 2.2.1. * File's MIME type is exposed to Javascript info. * Fixed 404 error in console when dialog is used without crop and preview step. ## 2.6.0 - 2016-01-09 * Image crop and preview for local files now works before uploading. This greatly improves user experience. * Autoperfixer is used. Many of unnecessary prefixed properties are removed. * Versioned file names are no longer supported: `https://ucarecdn.com/widget/2.5.9/uploadcare/uploadcare-2.5.9.js` Only unversioned: `https://ucarecdn.com/widget/2.5.9/uploadcare/uploadcare.js` * All files (not just uploaded from URLs) now have `sourceInfo` property in JavaScript API. * Updated Danish locale. * Widget replaces `window.uploadcare` with new version even if it already exists. This solves some compatibility problems. * New dialog's footer design. ## 2.5.9 - 2015-12-07 * Fixed "cannot read property 'getVideoTracks' of undefined" error in case when camera is blocked. ## 2.5.8 - 2015-12-02 * Droped files are appended to widget's list of uploaded files instead of replacing it. * Fixed camera revoking in Google Chrome 47. * New option `multipleMaxStrict`. ## 2.5.7 - 2015-12-01 * Crop presets are moved to the top of crop dialog on mobile layout. * It was impossible to clear widget with both `multiple` and `clearable` options after loading a bad group UUID. * Settings like `cdnBase`, `urlBase`, `socialBase` and `scriptBase` now can be relative. ## 2.5.6 - 2015-11-25 * New option `UPLOADCARE_PASS_WINDOW_OPEN` to work with Cordova InAppBrowser. * Added Czech locale. * Updated Taiwan locale. * Updated Spanish locale. * Updated Polish locale. ## 2.5.5 - 2015-09-22 * Fixed the dialog disappearing in some cases in the mobile layout. ## 2.5.4 - 2015-09-22 * Show remove button on uploading error when widget is clearable. * Optimize parallel uploading of big amount of files at once. * Accept `data-crop="true"` as free. ## 2.5.3 - 2015-09-22 * New Swedish locale. * File info pooling optimization. * Multipart uploading tuning via settings. ## 2.5.2 - 2015-09-13 * File uploading logging via `debugUploads` settings. ## 2.5.1 - 2015-09-01 * The choose file button occasionally was not clickable on iOS 8. ## 2.5.0 - 2015-08-24 * HTTPS is default protocol for CDN. ## 2.4.4 - 2015-08-20 * Fixed `onDialogOpen` event which did not fire when files were dropped. * Optimized info loading for files uploaded from URLs. * Internal `uploadcare.namespace` function accepts namespace name without `uploadcare` prefix. I.e. `uploadcare.files.utils` becomes `files.utils`. ## 2.4.3 - 2015-08-19 * Fixed uploading from url for large files. ## 2.4.2 - 2015-08-17 * Fixes in English, Russian and German locales. ## 2.4.1 - 2015-08-08 * `uploadcare.start()` is fixed and accepts global settings again. ## 2.4.0 - 2015-07-23 * Built-in jQuery upgraded to 2.1.4. This automatically means that widget version with built-in jQuery will no longer work in IE8. But we still support IE8 in version without built-in jQuery. * Uploadcare doesn't expose and doesn't use global `window.JST` object anymore. This enhances widget isolation on the page. ## 2.3.5 - 2015-07-11 * Prevent infinity loop when multiupload dialog is used with crop with some ratio and uploaded image is already has this ratio. * Correct reading of EXIF data from some corrupeted JPEGs. ## 2.3.4 - 2015-06-29 * New crop visual style. * Updated Spanish locale. * Updated Catalan locale. ## 2.3.3 - 2015-06-23 * New Azerbaijan locale. * New Catalan locale. Incomplete. * Updated Taiwan locale. * Updated Turkish locale. ## 2.3.2 - 2015-06-15 * jQuery updated to 1.11.3. * Fixed version with builtin jQuery. ## 2.3.1 - 2015-06-08 * Camera are revoked when user switches on another tab if page runs over HTTPS. ## 2.3.0 - 2015-06-05 * Clicking to image in dialog led to opening of two crop dialogs in some cases. * Dialog api change: undocumented `fileColl.onAnyDone`, `fileColl.onAnyFail` and `onAnyProgress` become a functions with guarantee of callback execution for each object in `fileColl`. ## 2.2.0 - 2015-06-03 * New preview page for multiple images (when flag imagesOnly is set). * Crop now works with multiple files (even when flag imagesOnly is not set). * New Italian locale. * Camera tab is hidden for mobile layout now. Mobile devices have camera or regular file tab. * New `widget.onDialogOpen` callback. * Role plugin removed from built-in jQuery. `@some-role` can't be used anymore in selectors passed to API methods. Use `[role="some-role"]` instead. * Fixed jQuery bug related to promises. https://github.com/jquery/jquery/issues/2013 Progress was not shown in some cases with crop. * `uploadcare.initialize()` now initializes widgets in whole document, not only 'body' descendants. * Custom events `#{status}.uploadcare` are fired on widget instead of form. (works with built-in jQuery only). ## 2.1.6 - 2015-05-28 * Fixed "also choose file from" list on mobile layout. ## 2.1.5 - 2015-05-26 * Fixed live initialization (when a new widget is added to the page after loading). Broken since 2.1.0. * Restored compatibility with IE8. Broken since 2.1.0. ## 2.1.4 - 2015-05-18 * Traditional Chinese locale (zhTW). * Hidden tabs (camera, for example) excluded from list of sources on first dialog's tab. * New method in dialog api: `isTabVisible()`. * New callback in dialog api: `onTabVisibility`. Triggered when some tab is showed or hidden. ## 2.1.3 - 2015-05-15 * Fixed compatibility with jQuery-ui (internal `sortable` plugin renamed to `uploadcareSortble`). ## 2.1.2 - 2015-04-27 * Fixed welcome text when public key is not set. ## 2.1.1 - 2015-04-21 * Fixed error messages in console in jQuery build. ## 2.1.0 - 2015-04-10 * Keyboard navigation. * Widgets are initialized immediately after page loading, not after 100ms. * Role attributes inside the widget were aligned with ARIA. The `uploadcare-uploader` role is still used for widget identification. * Multiple panels's footer is now maintained by panel itself, not by tabs. As a result the footer will appear on custom tabs too. * New `showTab` and `hideTab` methods for dialog api. * `uploadcare.globals()` now includes settings from `uploadcare.start()`. * Removed `white-space: nowrap` around the widget. * Reduced the number of relatively slow `settings.build` and `settings.normalize` calls. ## 2.0.6 - 2015-03-28 * Fix exception when multiple files are uploaded simalteniously with `image-shrink` option and uploading is cancelled. ## 2.0.5 - 2015-03-25 * Added compatibility with [FastClick](https://github.com/ftlabs/fastclick). * Warnings from `image-shrink` option are suppressed. ## 2.0.4 - 2015-03-12 * Fixed error if validation is failed. * Fixed error in case of large file with imagesOnly settings and files larger than 100 MB in old browsers. ## 2.0.3 - 2015-03-10 * Transparent images are automatically shrinked to PNG. * Considering `cdnUrlModifiers` when group is loaded. ## 2.0.2 - 2015-02-25 * Fixed uploading of large files. ## 2.0.1 - 2015-02-24 * Restored compatibility with IE 8-9 and other old browsers. ## 2.0.0 - 2015-02-20 **Compatibility breaking changes in this release.** ### New features and fixes * Resize images on client before uploading (`image-shrink` option). * Autostore option was removed (but not autostore itself). Now file is automatically stored if the project allows autostore. * New option `do-not-store`. Use it when autostore is enabled in the project, but you don’t want to store files uploaded with a particular widget. * `uploadcare.Widget` now can return either single or multiple widgets. * New `uploadcare.SingleWidget` function reproduce old `uploadcare.Widget` behavior — it raises an exception on multiple widgets. * New `sourceInfo` property is added to the info of the files uploaded from social sources. At the moment only extended info about Instagram files is provided. * `dialogApi` for custom tabs is now the same object as dialog and panel objects. `dialogApi` now supports promise interface, and dialog and panel objects have `fileColl`, `addFiles` and `switchTab` properties. New method `resolve` is also added. * Custom tabs constructors now receive tab name as last argument. * Fix group `cdnUrl` property when group creation is failed. * Multi-upload widget does not break when `null` value assigned to it. ### Breaking changes * `path-value` is on by default. Widget will always return file URL, not only when crop is used. * Widget value is no longer cleared when file is failed to upload. * Input value is no longer cleared when a new uploading is started. Previous value remains until upload of a new file is successful. * `dialogApi.dialog` is removed in favor of `dialogApi` itself, which now supports promise interface. * `dialogApi.done` is part of the promise interface and receives a callback (instead of triggering resolving). In order to resolve use `dialogApi.resolve`. * `dialogApi.onSwitched` is removed in favor of `dialogApi.progress` and tab name. * `uploadcare.Circle.listen` now expects progress value to be the first argument of `progress` callback. ## 1.5.5 - 2015-01-28 * Fixed creation of group with modifiers. ## 1.5.4 - 2015-01-19 * Fixed assiging array of files as value to multiple widget. * Fixed filename and progress indication for piped file objects in multiple dialog. * Fixed progress drawing when progress element size is 0. ## 1.5.3 - 2014-12-30 * Fixed the error preventing any file uploading in old versions of Google Chrome. Bug was instroduced in 1.5.0. ## 1.5.2 - 2014-12-26 * New Arabic locale. * New file source Huddle (huddle.com). * Dialog is closed by double click on gray background instead of single click. * New `uploadcare.closeDialog()` method close current active dialog (usefull for single-page applications). ## 1.5.1 - 2014-12-12 * Built-in jQuery updated to 1.11.1 * Validators for `openDialog()`, `openPanel()` and `filesFrom` * Mirror option in camera tab * Capture highest possible video resolution from camera * Go to preview tab after camera shot for multiple widget * Fixed buttons on camera tab for multiple widget * Fixed video preview on camera tab on Android * Fixed English locale for camera dialog * Fixed some typos in the norwegian locale ## 1.5.0 - 2014-12-06 * Camera tab * Progress circle color can be changed through CSS * Version without built-in jQuery ## 1.4.6 - 2014-11-24 * Added Norwegian locale * Improved iOS scrolling performance in some cases * Dropbox added to default tabs list (no additional setup is required anymore) * All default tabs rearranged according to their usage ## 1.4.5 - 2014-11-07 * Restored IE8 compatibility. ## 1.4.4 - 2014-10-31 * Fix conflict with host pages Pusher. Built-in pusher isn't exposed to global namesapse anymore. ## 1.4.3 - 2014-10-16 * Japanese localization. * French localization updated. * Use progressive jpeg for preview and crop. ## 1.4.2 - 2014-08-31 * Fixed ui freeze in IE 10+ after file choosing. ## 1.4.1 - 2014-08-21 * Fixed crop to fixed size when whole image is selected * Fixed progress indication for files smaller than 1kb * Added `accept="image/*"` input attribute for images only widgets ## 1.4.0 - 2014-07-30 * German localization. * Retina icons for all social networks. * Updated "local files" tab for mobile devices. * Widget works on local pages (without web server). * `utils` and `t` are no more exposed to file info. * Fix French and Portuguese locales. ## 1.3.1 - 2014-06-20 * Fixed preview size for wide images in non-webkit browsers. ## 1.3.0 - 2014-06-19 * Multiple cropping presets can be added divided by comma. User can choose any. ## 1.2.3 - 2014-06-05 * Fixed free crop problem introduced in previous version. ## 1.2.2 - 2014-06-04 * Further crop fixes ## 1.2.1 - 2014-06-02 * Fixed croping for `minimum` settings and othr rare cases. * Fixed uploading in IE9- when jQuery not used on page. ## 1.2.0 - 2014-05-22 * Added Flickr as a source. * Added Danish locale. * Fixed French localization. ## 1.1.0 - 2014-05-08 * Added Dutch locale. * `system-dialog` widget settings. * Restored compatibility with some old browsers versions. ## 1.0.1 - 2014-03-28 * Fixed uploading from url. ## 1.0.0 - 2014-03-21 * Mobile version. * Undocumented `fileFrom('event')` method was removed. * Page scrolling disabled when dialog is opened. * Increased active size of crop corners. ## 0.18.3 - 2014-03-05 * New widget settings `preferred-types`. * Fixed tabs order when 'all' or 'default' shortcuts used. * Fixed transparent images crop. ## 0.18.2 - 2014-02-25 * Clear look for close icon. ## 0.18.1 - 2014-02-19 * Added Turkish locale. * Fixed crop on pages with old bootstrap. ## 0.18.0 - 2014-02-10 * Widget now is one button "Choose a file". Progress circle appears only on uploading. * Widget adapts to host page: controls size depends on font size only, height can be adjusted via line-height. * Widget always return CDN urls when crop used (similar to path-value option). * Validators runs every time new file properties available. All unavailable properties are null. * Fixed scrolling on social tabs on touch devices. * Fixed file size labels. * Fixed images in multiple preview in IE8. * Fixed impossible to set null value to widget. * Removed deprecated `preview()` and `previewUrl` fields of `fileInfo` object. ## 0.17.2 - 2014-01-24 * better compatibility with host page markup ## 0.17.1 - 2014-01-13 * Large files uploads in parallel by small pieces with automatic recovering in case of network errors. * Requests aborts after user cancels upload. * Slightly reduced cpu usage during large files uploading. ## 0.17.0 - 2013-12-25 * We now support large files uploads. Merry Christmas. ## 0.16.2 - 2013-12-16 * Removing file from multiupload preview step no longer closes whole dialog. Bug introduced in 0.16.0. ## 0.16.1 - 2013-12-13 * Widget.onChange now fires immediately after user chooses file. ## 0.16.0 - 2013-12-02 * `uploadcare.openPanel()` method added. It allows open panel with tabs embedded in page (no modal mode). * `uploadcare.registerTab()` method added. Now you can add custom tabs to dialogs and panels. * jQuery version updated to 1.10.2. If you use `uploadcare.jQuery`, please check update guide http://jquery.com/upgrade-guide/1.9/ * spelling of `body.uploadcare-dragging` class fixed (it was draging). If you use this class, update your code. * `uploadcare-dragging` class now appear on elements used as target for `receiveDrop` and `uploadDrop` ## 0.15.5 - 2013-11-25 * Skydrive tab added. ## 0.15.4 - 2013-11-18 * Box.com tab added. ## 0.15.3 - 2013-11-05 * Fixed bug, do not allow set value while page loading. ## 0.15.2 - 2013-10-30 * Widget's width can be easily changed in css. * Css is now prepended to head, this allows overriding css rules without `important` keyword. ## 0.15.1 - 2013-10-17 * Tiny replacement of jQuery UI sotrable plugin used. This saves about 12kb of gziped widget size for multiupload documents. ## 0.15.0 - 2013-10-16 * New settings `clearable` allows user to remove uploaded file from widget. It is turned off by default. * Widget does not cleared if user cancels dialog. ## 0.14.2 - 2013-10-15 * Portuguese localization added. * Minimum and maximum limits for number of files in MultipleWidget added. ## 0.14.1 - 2013-10-14 * Chinese localization updated. ## 0.14.0 - 2013-10-11 * French localization was added. * Custom file's validators can be used to restrict user's choice. * Undocumented method `fileInfo.dimensions()` was removed. * Undocumented callback `Dialog.uploadDone` was removed. ## 0.13.5 - 2013-10-09 * `uploadcare.filesFrom` function exposed in api. ## 0.13.4 - 2013-10-05 * Fixed loading from url and social sources. Bug introduced in 0.13.3. ## 0.13.3 - 2013-10-03 * Opening speed is significantly impoved for widget with hundreds of files * Restored compatibility with IE8 and some Firefox versions ## 0.13.2 - 2013-09-30 * Translations fixes ## 0.13.1 - 2013-09-26 * widget size reduced from 341 to 293 kb (from 104 to 93 kb gziped) ## 0.13.0 - 2013-09-26 * Widget no longer accepts urls in `value` HTML-attribute or `value()` method. You should use `widget.value(uploadcare.fileFrom('url', 'http://url/'))`. * Widget now can be used with any custom domain. ## 0.12.5 - 2013-09-23 * switch to preview tab right after selecting files * prevent to request not ready images in multiupload preview ## 0.12.4 - 2013-09-16 * `uploadcare.tabsCss` api fixed ## 0.12.3 - 2013-09-13 * restrictions on the number of files in multiupload group removed ## 0.12.2 - 2013-09-12 * fixed bug introduced in 0.12.0 related to loading info about already uploaded files ## 0.12.1 - 2013-09-12 * crop options "upscale" and "minimum" also applicable to ratio * built-in jQuery (version 1.8.3) now available in `uploadcare.jQuery` ## 0.12.0 - 2013-08-28 * new property `originalImageInfo` of `fileInfo` object * now you can use `fileInfo.cdnUrl` with all operations right after uploading * traffic and preview delay significantly reduced for large images * new option for crop — "minimum". Doesn't allows user to select area less then you specified ## 0.11.2 - 2013-08-13 * add Chinese (Simplified) locale ## 0.11.1 - 2013-08-06 * [drag and drop api](https://uploadcare.com/documentation/javascript_api/#drag-and-drop) * [source tabs styling](https://uploadcare.com/documentation/javascript_api/#sources-style) * widget size reduced from 455 to 346 kb (from 144 to 105 kb gziped) * fixed bug when can't upload new file from uploadcare cdn url * better compatibility with host page markup ## 0.10.1 - 2013-07-11 * evernote is supported as a source of files * if images_only is used, video thumbnails are loaded from the instagram * fixed bug, preventing some of our clients from using uploadcare with AMD