Update dependencies
Add peer dependencies for React 16
Update react-motion #63
Support React 15.5.0 PropTypes #58
Update react-motion and resize-observer-polyfill dependency version
Fix build on NPM
Replace minivents
with mitt
Add tabbable
so we can trap focus within current slides
Use ResizeObserver.default
if available. Fixes #48
Only require ResizeObserver
polyfill when window
is available
Stop observing view after it has been removed
Apply spring config prop in Frame
component
Fix old destroy
method left over from window resize
Listen for hydration event to update Frame
component size
Use resize-observer-polyfill to make sure the pager is always calculated with proper view dimensions
Hide view visually until it has been added to the pager
General cleanup
emit viewChange
when viewsToShow
options have changed
beforeViewChange
-> onViewChange
afterViewChange
-> onRest
Allow autoSize
prop to size width
and/or height
Use verticalAlign: top
on views to keep them in frame when using autoSize
Added mandatory View
component that replaces previous views that were cloned. This will help us keep some control over props that need to be applied.
Fixes updating props after mount
Fixes the indices in callbacks to return proper indices in view
Replaced from
, to
object returned in beforeViewChange
callback with currentIndicies
No more absolute positioning! This is cool because now we can use things like flexbox and not get weird values due to absolute positioned views.
General cleanup
Fixes Avoid call to window in window-less environment #28
Fixes beforeViewChange
being called twice
Fixes onScroll
callback to allow use of setState
Moved main props to the Track
component
Added ViewPager
wrapper component. It was a hard decision to add another component, but this will allow some cool animations and other features.
Added AnimatedView
component to allow animations that are relative to the pager.
Updated animation-bus
to 0.2.0
Major Update again, sorry for the big changes. This has been a rough road, but I feel it has finally smoothed out and I'm very happy with where everything is at.
Name Change
react-motion-slider
-> react-view-pager
Breaking Changes
Props changed
currentIndex
&& currentKey
-> currentView
slidesToShow
-> viewsToShow
slidesToMove
-> viewsToMove
vertical
-> axis
autoHeight
-> autoSize
Props added
contain
animations
accessibility
onSwipeStart
onSwipeMove
onSwipeEnd
onScroll
beforeViewChange
afterViewChange
Use constructor in Slider
to fix undefined props in IE10
Fix npm build
Refactored all code... again. Props are mostly the same, some new ones added. Future changes will be documented better.
Breaking Changes Upgraded to React Motion 0.3.0
Breaking Changes Refactored almost all code, somewhat similiar API, touch support and some other props were removed for now, will be back in soon
Slider now moves directly to new slides rather than running through everything in between
If using a custom component be sure to pass the style
prop passed in to apply proper styles for moving slides around. Look in example folder for implementation.
Breaking Changes
defaultSlide
prop is now currentKey
, pass the slides key to navigate to it
exposed as the component Slider
now instead of and an object