Skip to content

Releases: dominictobias/react-image-crop

10.0.7

08 Sep 21:17
Compare
Choose a tag to compare
  • Infer correct output type (PixelCrop or PercentCrop) depending on input in makeAspectCrop and centerCrop (thanks: @corymharper)
  • Fix minWidth/minHeight for aspect crops when one or the other wasn't specified

10.0.6

15 Aug 22:30
Compare
Choose a tag to compare
  • Fix key press issue when controlling crop with keyboard #503 (thanks: @mskelton)
  • Better aria labels for crop handles (thanks: @mskelton)

10.0.5

30 Jul 13:27
Compare
Choose a tag to compare
  • Fixes a small jump that occurs when resizing a drag handle not exactly from the corner of the crop #502

10.0.4

14 Jun 10:07
Compare
Choose a tag to compare
  • A slightly modified and improved fix for #491 as it wasn't fixed for horizontal edges

10.0.3

13 Jun 21:33
Compare
Choose a tag to compare
  • Fix #491 (Tabbing to a drag handle which is on the edge can cause the crop media (e.g. image) to scroll slightly in the container - since the browser tries to make things which are tabbed to entirely visible)

10.0.2

05 Jun 11:12
Compare
Choose a tag to compare

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

11 May 21:55
Compare
Choose a tag to compare
  • No change other than the ability to override document when using ReactCrop in an iframe. Fixes #482
class IframeReactCrop extends ReactCrop {
  constructor(props: ReactCropProps) {
    super(props)
    this.document = window.top.document
  }
}

10.0.0

20 Mar 14:54
Compare
Choose a tag to compare

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

13 Mar 13:58
Compare
Choose a tag to compare
10.0.0-beta.5 Pre-release
Pre-release
  • max-height on ReactCrop works without needing to apply CSS on other elements

10.0.0-beta.4

07 Mar 13:24
Compare
Choose a tag to compare
10.0.0-beta.4 Pre-release
Pre-release
  • Simplify and fix the calling of onComplete when a new crop is created (without user input)