- Update
article-page:LeadingBlock
styles - Update
article-page:BodyBackground
styles
- Remove
isRequired
if prop could not be provided - Add default props since
isRequired
is removed
- Take
hero_image_size
into account when rendering separation line after leading
- Use
hero_image
as fallback for related:thumbnail
- Add
Slider
,ImageDiff
, andAudio
components forBody
- Provide
primary
,secondary
andbase
colors for default theme - Support
extend
,normal
,fullscreen
andsmall
leading block with default theme
- Provide
primary
,secondary
andbase
colors for photo theme - Support
extend
,normal
,fullscreen
andsmall
leading block with photo theme
- Introduce
UIManager(src/managers/ui-manager.js)
to handle theme and layout
- Pass
className
prop to body:${component} - Refactor components/body/index.js: give body:${component} specified css by styled(body.${component})
- Shift left -10px due to border-(left|right) on articlePage
- Fix body:slideshow bug: description not rendered if current slide index is more than 6
- Fix body:centered-quote bug:
by
->quoteBy
- Fix link of donation box(generated by SSR) does not contain utm query param
- Fix category link bug: category id -> category path segment
- Handle iframe wider than embedded container
- URL origin replacement: storage.googleapis.com -> www.twreporter.org
- body:slideshow updated: img tag -> img-with-placeholder
- src/utils/media-query -> @twreporter/core/lib/utils/media-query
- Render bookmark widget on aside:mobile
- Update dependencies
- Take shared
prop-types
from@twreporter/core
- Remove
state.fontLevel
ofarticle-page.js
- Remove
fontSizeOffset
from aside:metadata
-
Update
src/components/article-page.js
- Prop naming change:
defaultFontLevel
->fontLevel
- Add
onFontLevelChange
prop - fontLevel update: base -> small, large -> medium, xLarge -> large
- Prop naming change:
-
Handle line breaks
- Update blockquote, paragraph, list, and annotation
- Fix missing props of BookmarkWidget
- Update dependencies
- Init the repo