@twreporter/react-article-components 1.4.7-rc.3 → 1.4.7-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/components/article-page.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.4.7-rc.4](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.4.7-rc.3...@twreporter/react-article-components@1.4.7-rc.4) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **react-article-components:** show back to topic when published ([#255](https://github.com/twreporter/twreporter-npm-packages/issues/255)) ([ddfcfa5](https://github.com/twreporter/twreporter-npm-packages/commit/ddfcfa59bc7539ccffb8f4c257cb09a470b6992a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.4.7-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.4.7-rc.2...@twreporter/react-article-components@1.4.7-rc.3) (2022-03-14)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -371,7 +371,7 @@ var Article = /*#__PURE__*/function (_PureComponent) {
|
|
|
371
371
|
var uiManager = new _uiManager["default"](post, relatedTopic);
|
|
372
372
|
var LeadingComponent = uiManager.getLeadingComponent();
|
|
373
373
|
var leadingProps = uiManager.getLeadingComponentProps();
|
|
374
|
-
var backToTopic = leadingProps.topicHref; // only for tablet and below
|
|
374
|
+
var backToTopic = leadingProps && leadingProps.isTopicPublished ? leadingProps.topicHref : ''; // only for tablet and below
|
|
375
375
|
|
|
376
376
|
var metadataAndToolsJSX = /*#__PURE__*/_react["default"].createElement(MetadataAndToolsBlock, null, /*#__PURE__*/_react["default"].createElement(_metadata["default"], {
|
|
377
377
|
categories: post.categories,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-article-components",
|
|
3
|
-
"version": "1.4.7-rc.
|
|
3
|
+
"version": "1.4.7-rc.4",
|
|
4
4
|
"description": "The Reporter react article components, which are used in article page",
|
|
5
5
|
"main": "lib/components/article-page.js",
|
|
6
6
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"files": [
|
|
40
40
|
"lib"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9ce40d34abef730e1f5d808161565f21dd6f9032"
|
|
43
43
|
}
|