Releases: jonahallibone/react-tilty
Releases · jonahallibone/react-tilty
3.0.0
What's Changed
- Added typescript typing by @au5ton in #14
- TypeScript Conversion by @csandman in #20
- Convert the entire project to TypeScript using the types from #14 as a base
- Fix all issues that came up, especially when using the
strict
TS config - Switch to isomorphic layout config to prevent SSR warnings about
useLayoutEffect
- Fix all issues that came up, especially when using the
- Update
eslint
config to match current preferences (and include TypeScript rules) - Remove the example project as it was not working properly
- Add CodeSandbox CI for testing pull requests
- Update all packages
- Convert the entire project to TypeScript using the types from #14 as a base
New Contributors
Full Changelog: 2.0.1...v3.0.0
v2.0.1
Switched to hooks and native React event listeners.
Breaking changes
- Now has a peer dependency of
>[email protected]
due to the internal use of hooks. - All settings props are now set as base props of the component, no longer using a
settings
object prop ordata-
props. - Remove unused
transition
andglare-prerender
props. - The
max-glare
setting has been changed to the camel casedmaxGlare
base prop.
New Features
- There is now a
glareStyle
prop to add custom styles to the glare on tilt. These will be overwritten by the native styles that are required for the component to function. - There are 3 new event callbacks that can be added to the component,
onMouseEnter
,onMouseMove
, andonMouseLeave
. - The callback for the custom
tiltChange
event can now be added as a proponTiltChange
instead of manually adding an event listener.