Releases: renatorib/react-powerplug
Releases · renatorib/react-powerplug
v1.0.0-rc.1
Improvements
- PowerPlug now provides typescript defintions (thanks to @theKashey)
<FocusManager />.blur()function now provide natural blur of focused elements not only state change (thanks to @TrySound)
Chore & bugs
- Prevent changing composed component order after rerender (thanks to @jeetiss)
- Added missing functions to
<FocusManager />children props in flow definitions (thanks to @TrySound) - Added
<Set />docs (thanks to @denisborovikov) - Various docs fixes (thanks to @kpman and @LinusU)
v1.0.0-rc.0
Breaking changes
onChangecallbacks accepts the value equal to initial (thanks to @renatorib)
-<Value initial={0} onChange={({ value }) => console.log(value)}>
+<Value initial={0} onChange={value => console.log(value)}>Affected components: Active, Counter, Focus, FocusManager, Hover, Input, List, Set, Toggle, Touch, Value.
isprefix in values is removed (thanks to @TrySound)
<Hover>
- {({ isHovered, bind }) => null}
+ {({ hovered, bind }) => null}
</Hover>;
<Active>
- {({ isActive, bind }) => null}
+ {({ active, bind }) => null}
</Active>Affected components: Active, Focus, FocusManager, Hover, Touch.
Chore & bugs
v1.0.0-alpha.5
Features
- Added
<Interval />component (thanks to @jedwards1211 and @TrySound) - Allow to push multiple values in
<List />component (thanks to @TrySound) <FocusManager />is now more stable.setTimeoutis replaced with mouse events (thanks to @souporserious)
Chore & bugs
- Fixed
Updater<T>(setfunctions) inference in flow (thanks to @istarkov) - Improved warning about unstable master (thanks to @souporserious)
- Added tests for
onChangefor a bunch of components (thanks to @TrySound) - PowerPlug is now fully treeshakable so it can be safely used by libraries without worrying that user bundle will have unused code (thanks to @TrySound)
v1.0.0-alpha.4
Features
- Added FocusManager component (thanks to @TrySound)
- Added composeEvents utility (thanks to @souporserious)
Chore & bugs
v1.0.0-alpha.3
Chore & bugs
- Improves in flow types (thanks to @TrySound)
v1.0.0-alpha.2
Features
- Added Touch component (thanks to @farskid)
- Added Input component