openlawteam / openlaw-elements

Render React form components and sections from an OpenLaw template.
https://docs.openlaw.io/openlaw-elements/
Apache License 2.0
15 stars 11 forks source link

Bump react-image-crop from 6.0.18 to 8.6.5 #138

Open dependabot[bot] opened 4 years ago

dependabot[bot] commented 4 years ago

Bumps react-image-crop from 6.0.18 to 8.6.5.

Release notes

Sourced from react-image-crop's releases.

8.6.5

This release address three accessibility issues:

  • Removes the tabIndex on the crop selection div in favor of the tabIndex on the root div. Apps can style the focus border as needed to provide a visual indicator that the cropper is selected.
  • Increases the nudge step to 1px and the large nudge step to 10px to match better with other crop experiences.
  • Renames nudgeStepLarge to nudgeStepMedium to allow adding a new variable for nudging with the cmd/ctrl key. When using the cmd/ctrl key nudge it will move the crop selection by 100px. This handles the keybindings based on the current platform so if mac is detected the cmd key will be used otherwise the ctrl key will be used.

Credits to @mskelton

8.6.4

  • Remove code which was trying to detect invalid aspect crops. This was dangerous for percentage crops due to rounding %->pixel issues which made the crop hard to accurately validate and could cause infinite recursion. Now only crops which are missing a width or height are completed for you.
  • Removing this code also fixes an issue when setting a crop minWidth/minHeight

8.6.3

Do not use this version, it has been deprecated due to a critical bug introduced.

8.6.2

  • Fix resizing from an edge with aspect ratio percentage crop causing "Error: Maximum update depth exceeded." #347
  • Fix the darkened background of the crop flickering off when resizing through 0,0

8.6.1

  • Minor visual regression fix introduced in 8.6.0 when crop has 0,0 dimensions

8.6.0

  • Fix #346 visual regression in 8.5.0 (background flicker) when crop size becomes 0

  • Fix #345 dragging crop through 0,0 on mobile looses the crop and you have to start drawing again

  • Potential fix for #324 where crop box can "reset" back to 0,0 position when touching an edge

  • #342 Add back 4 side cropping on mobile with a new strategy to keep the corner boxes the same size and hide the others, but invisibly have a wider surface to drag from (defaults to 24px):

Screenshot 2020-03-30 at 4 20 16 PM

8.5.0

  • Remove black background on crop component as this causes transparent images with black fills to be invisible #330

8.4.3

  • Fixes issue of crop being incorrectly determined as invalid if there is margin/padding applied to the image element (P.S you shouldn't be doing this anyway) but also hopefully fixes hard to replicate issue #324

  • Added event so that custom media (e.g. video) can inform the component when it's loaded so the component can render the initial crop #319 e.g.

<video
  onLoadStart={e => {
    // You must inform ReactCrop when your media has loaded.
    e.target.dispatchEvent(new Event('medialoaded', { bubbles: true }));
  }}

8.4.2

  • Non functional change. lib was accidentally not published in 8.4.0 and 8.4.1 which contains the .scss file. Fixes #323
Commits
  • bf2f5ad Patch bump
  • 514bd1a Merge branch 'master' of github.com:DominicTobias/react-image-crop
  • 65f406b Improve nudging (#381)
  • e0d0091 Updated README.md (#379)
  • ec6aaae Drop support for IE from browserlist
  • 1e16cc7 Add NOTES.md to gitignore
  • f3796ae Fix completing of crop code which fixes critical infinite loop bug regressed ...
  • 2985bdc Only patch bump
  • b4b1057 Abandon fixing invalid aspect crops unless width or height is missing
  • 6114898 Update README.md
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)