All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.12.2 (2019-04-03)
- pass all available gatsby link props through (0b7a1f0)
1.12.1 (2019-03-28)
- remove hardcoded morph duration (e139199)
1.12.0 (2019-03-28)
- Add anilink morph animation (86c24ce)
1.11.1 (2019-03-28)
- reinstate position relative so that z-index works!! (12f0e51)
1.11.0 (2019-03-28)
- move react to peerdependencies to prevent it being loaded twice. (cf0bc7a)
- remove unneeded position relative on tl-wrapper element (747124b)
1.10.0 (2019-03-28)
- move react to peerdependencies to prevent it being loaded twice. (cf0bc7a)
- add useTransitionState hook (5b16766)
1.9.5 (2019-03-27)
- update scroll position after the new page is visible (36e5000)
- update the transition renderer after the appear after delay (8640edf)
1.9.4 (2019-03-27)
- move appearAfter logic to transition renderer (561d843)
1.9.3 (2019-03-27)
- prevent page from flickering on load (1d800bb)
1.9.2 (2019-03-27)
- don't change page opacity to hide (9d69a8e)
- reset pages promises after transitions when using the new trigger prop (6654337)
1.9.1 (2019-03-26)
- only call trigger function if it exists! (6ec1b08)
1.9.0 (2019-03-26)
- add trigger prop to TransitionLink. (08d303b)
- improve performance by preventing extra renders (af3a2bc)
1.8.0 (2019-03-26)
- improve performance by preventing extra renders (af3a2bc)
1.7.1 (2019-03-25)
1.7.0 (2019-03-25)
- prevent the back button during transitions (f879140)
1.6.2 (2019-03-25)
- make publishing workflow easier & bump version to fix incorrect publish (b5e3e14)
- 56: fixed missing scrollingElement in some browsers; (b3aad7b)
- Add missing parenthesis on link (f19dfc5)
- Update example site name for yarn workspaces (2c58795)
- added property to configure swipe offset; (ac95547)
Pass onClick handlers through to TransitionLink
Thanks to @lsirivong, onClick handlers get passed through to AniLink and TransitionLink.
- Properly reset scroll position when clicking a link with no transition #21
- More accurately calculate when the transition is complete #22
- don't pass all props through to gatsby-link, just pass activeStyle and className
- only apply min height to the site wrapper when not in transition to fix some transition glitches for the swipe animation
- prevent the fade transition from jumping the exiting page to the top of the screen
- default fade transition default length is now 800ms instead of 400ms
Not all props were being passed through to gatsby link when using AniLink, this fixes that. This also fixes some inconsistencies in the documentation and the "duration" prop in AniLink.
Fix gatsby build error from last release
Fix scroll jumping on save during development.
Previously, saving your components or pages would cause the page to jump to the top, meaning you would have to scroll down to the component you were working on over and over. This fixes that.
This should also fix the issue where footers in layout components weren't pushed down by the contents of your page.
Improved saved scroll position jumping + small refactor
This releases fixes WebpackError: ReferenceError: GATSBY_LAYOUT_COMPONENT_PATH is not defined
Prior to this release, GSAP needed to be installed for TransitionLink to not throw errors. Now, the AniLink component is moved to it's own file and will need to be imported as default from "gatsby-plugin-transition-link/AniLink".
It looks like an earlier release also broke layout functionality and that has been fixed with this release. If you were getting the error
warning in ../gatsby-plugin-transition-link/src/components/Layout.js
Critical dependency: the request of a dependency is an expression
v1.2.2 fixes this.
- Not all page props were being passed to layouts
- Pathname wasn't being passed to the onEnter function which is using it