All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- lock down dependencies to specific versions
- upgrade some dev dependencies
- upgrade
react-use
- Replace temporary focus-options-polyfill with package now that it's fixed
- Added CJS & UMD minified builds
- resolved prod issue where CSS wasn't included in
sideEffects
Complete rewrite with breaking changes so we can move forward with the project.
Please see the README.md for the new API and migrating from v3 to v4.
- resolved a few security issues
- Support Preact by using
React.Fragment
(PR #152)
- Support for
React.StrictMode
(PR #151)
- Fixes JS error when
_allowTabNavigation
is called before image ref (PR #150)
- Resolved issue #139 where
zoomMargin
wouldn't accept a number in string format
- Resolved issue #137 where broken images would continue allowing the component to function
- Now ensures an
image
prop'sonLoad
callback is adequately sent to the consumer
- Resolved issue where we were calculating
imageCenterX
withwindow.innerWidth
instead ofdocument.body.clientWidth
(PR: #133)
- Changed shield in README
- Resolved issue #128 where initializing with isZoomed={true} was throwing errors.
- removed the Firefox check and apply the flicker "fix" to all browsers equally
- Resolved Firefox issue where switching an image's
src
attribute causes an obnoxious "flicker" effect (#96)
AUTHORS
file
AUTHORS
file (#107)
- Fixed issue where quickly, repeatedly triggering the zoom and unzoom actions had some lingering timeout actions that no longer existing on a component, throwing errors in the console (#106)
- Fixed issue where hitting the tab key on a zoomed imaged would allow an element in behind the image to receive focus. Further actions could then be taken on the focused element, causing the DOM to end up in undesired states.
- Fixed issue where hitting the tab key on a zoomed imaged would allow an element in behind the image to receive focus. Further actions could then be taken on the focused element, causing the DOM to end up in undesired states.
- Fixed readme rebase issue
- Fixed issue from #89 where
hasAlreadyLoaded
was preventing thezoomImage
source from displaying whenshouldReplaceImage
was set tofalse
.
- Includes the keyboard navigation and clicking updates from 2.0.5 and 2.0.6 for React >16
- Fixed issue where clicking to open & close a zoomable image resulted in the focusing of that element which could cause the page to scroll it completely into view and leave an outline on the image (aka focus) when it was not accessed via the keyboard.
- Fixed issue where updating other image attributes after mounting was not respected; the image was cached in
this.state
when only thesrc
should have been.
- Now supporting keyboard interaction for accessibility (#70). Classified this as a bug and therefore a patch version.
- Now supporting keyboard interaction for accessibility (#70). Classified this as a bug and therefore a patch version.
- support for React v16, making use of such things as its portals concept
- support for React < v16
shouldRespectMaxDimension
was allowing images that were already rendered at their maximum size to be "zoomed," thus creating the issue where they don't actually zoom and instead just moved to the center of the screen.
- Fixed undefined method call (underscore was missing...c'mon eslint)
- Fixed original image not staying hidden until unzoom is complete
- Dev: eslint & prettier for code formatting and double-dhecking
- Changelog (so meta...)
- When in controlled mode (
isZoomed
is provided), theonUnzoom
callback will fire when the component normally would have closed
- Differentiation between controlled & uncontrolled modes (when
isZoomed
is passed vs letting component control itself)
- Removed preload functionality
- Support for the component immediately zooming if
isZoomed={true}
is provided on mount