Releases: dominictobias/react-image-crop
Releases · dominictobias/react-image-crop
10.0.7
- Infer correct output type (
PixelCrop
orPercentCrop
) depending on input inmakeAspectCrop
andcenterCrop
(thanks: @corymharper) - Fix minWidth/minHeight for aspect crops when one or the other wasn't specified
10.0.6
10.0.5
10.0.4
10.0.3
10.0.2
No changes just a fix for SSR that was regressed in 10.0.1.
Trying to assign document
to a variable on load caused issues with some SSR setups (e.g. NextJS). Now document is by default as a function that is evaluated during render to fix this.
If you wish to override document you can choose to keep it a function so that it works better with SSR:
class IframeReactCrop extends ReactCrop {
get document() {
return window.top.document
}
}
10.0.1
10.0.0
No changes since beta. Refer to https://github.com/DominicTobias/react-image-crop/releases/tag/10.0.0-beta.0 for breaking changes
10.0.0-beta.5
max-height
on ReactCrop works without needing to apply CSS on other elements
10.0.0-beta.4
- Simplify and fix the calling of
onComplete
when a new crop is created (without user input)