Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Releases: twreporter/twreporter-react-components

v6.1.1

15 Feb 10:54
2ff05c0
Compare
Choose a tag to compare

Update Footer and ErrorMessage for standalone usage #129

For standalone error page in membership-fe (twreporter/membership-fe#69)

  • Update styles of Footer for standalone usage
  • Replace react-router-dom/Link with <a> in Error for standalone usage

v6.1.0

12 Feb 06:42
Compare
Choose a tag to compare

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 with css 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 render a tag when to is undefined
  • pass history object: import browserHistory from 'react-router-lib-browserHistory' -> withRouter()

Miscellaneous

  • Replace the OutboundLink of react-ga with customized TrackedLink
  • 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

13 Apr 07:52
Compare
Choose a tag to compare

Patches

  • To provide footer to other projects which doesn't have react-router#95

Version v4.0.5

13 Apr 07:52
339ecd6
Compare
Choose a tag to compare

Patches

  • Bug fix. Replace url prefix of images resources in production state

Version 4.0.4

13 Apr 07:51
da1c411
Compare
Choose a tag to compare

Patches

  • Add srcSet and sizes to img-wrapper.js so that images of different sizes will be rendered on resolution demand

Version 4.0.3

13 Apr 07:51
Compare
Choose a tag to compare

Patches

  • Changes the text of politicsAndEconomy in categoryConfigs.(政治.經濟 -> 政經.產業)

Version 4.0.2

02 Mar 08:18
Compare
Choose a tag to compare

patches

  • Update confirmation component. Show warning icon on demand
  • Add more side bar handling for edge cases

Version 4.0.1

02 Mar 08:17
Compare
Choose a tag to compare

patches

  • Update props of Pagination
  • Update .babelrc to remove unsupported svg attributes

Version 4.0.0

30 Jan 06:13
Compare
Choose a tag to compare

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

17 Jan 02:51
Compare
Choose a tag to compare

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