Releases: sekoyo/react-image-crop
1.0.0-rc2
1.0.0-rc1
Update to React v15, which has full support for SVG meaning we can get rid of dangerouslySetInnerHtml
and thus improve performance for non-webkit browsers.
Change to ES6 classes.
Add max-width: 100%
to container or else the image can still extend beyond the container bounds in Firefox.
Fix issue with <babel5
The fix in 0.1.8 caused an issue due to the use of import
with babel <5 (#29). Using babel-plugin-add-module-exports
plugin to export the default
for CommonJS fixes this issue.
Workaround for babel6 exporting module under "default" for CommonJS
Fix an issue with the previous patch
0.1.7 Change onComponentMouseTouchDown operator back to &&
Fix inability to select new crop in some browser versions
0.1.6 Bump for #27
Only use props when creating crop state object
Add pre-commit build hook & build the project
Build was missed in the last 2 patch versions, I've added a pre-commit hook to stop this happening until a CI is in place (someday..)
Max-width 100% and extra param for onImageLoaded
It was non-obvious that .ReactCrop--image-copy
also needed max-width
set as seen in #21. Also by providing the image DOM element to onImageLoaded the user could use the image dimensions to decide on an optimum crop (e.g. depending on landscape vs portrait)
Firefox compatibility update
- Make crop darkened background work on Firefox (FF doesn't support clip-path: inset)
- Use
object-assign
package and declare it as a peerDependency