This repository has been archived by the owner on Oct 18, 2019. It is now read-only.
Releases: twreporter/twreporter-react-components
Releases · twreporter/twreporter-react-components
v6.1.1
v6.1.0
Major change
Dependencies Upgrade:
- react-router@^3.0.0 -> react-router-dom@^4.0.0
- react@^16.0.0 -> react@^16.3.0
- react-dom@^16.0.0 -> react-dom@^16.3.0
- styled-components@^3.0.0 -> styled-components@^4.0.0
styled-components@^4.0.0
styled.extend
->styled()
innerRef
->ref
keyframes
withcss
helper
react-router-dom@^4.0.0
import { Link } from 'react-router'
->import Link from 'react-router-dom/Link'
- add
shared/components/link-wrapper.js
, which rendera
tag whento
is undefined - pass history object:
import browserHistory from 'react-router-lib-browserHistory'
->withRouter()
Miscellaneous
- Replace the
OutboundLink
ofreact-ga
with customizedTrackedLink
- Remove built-in Header in latest-section of index-page
- Remove text-decoration of links in Footer
- Add rel="noopener noreferrer" to external links
Version 4.0.6
Patches
- To provide footer to other projects which doesn't have react-router#95
Version v4.0.5
Patches
- Bug fix. Replace url prefix of images resources in production state
Version 4.0.4
Patches
- Add
srcSet
andsizes
toimg-wrapper.js
so that images of different sizes will be rendered on resolution demand
Version 4.0.3
Patches
- Changes the text of politicsAndEconomy in categoryConfigs.(政治.經濟 -> 政經.產業)
Version 4.0.2
patches
- Update confirmation component. Show warning icon on demand
- Add more side bar handling for edge cases
Version 4.0.1
patches
- Update props of
Pagination
- Update
.babelrc
to remove unsupported svg attributes
Version 4.0.0
Major Change
- Delete index-page/src/components/side-bar.js
Feature
- Create a Side Bar High Order Component in side-bar/components/side-bar.js
Version 3.0.0
Major Change
Problem to Solve
ifAuthenticated
and signOutAction
were passed from parent(client) React components by context
to Header
component, but that would be problems if middle level components which not re-rendering. Hence, Header
component won't re-render either.
Solution
Parent(Client) React component should replace ifAuthenticated
and signOutAction
by Header.AuthenticationContext
, which use observer pattern
to make Header
component re-render.
Features
- Move bookmark to @twreporter/registration
- Update page slides to contain bookmark service
- Add AuthenticationContext which is used as react.context to avoid not re-rendering problem