Skip to content

Releases: sekoyo/react-image-crop

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)

10.0.0-beta.3

06 Mar 16:27
Compare
Choose a tag to compare
10.0.0-beta.3 Pre-release
Pre-release
  • Fixed v10 regression relating to wrong pointer coords when web page is scrolled

10.0.0-beta.2

04 Mar 16:55
Compare
Choose a tag to compare
10.0.0-beta.2 Pre-release
Pre-release
  • When setting an initial crop there was a possible race condition that would mean that the initial onComplete before user input might not get called