@twreporter/react-components 8.25.2-rc.0 → 8.26.0-rc.1
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
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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
|
+
# [8.26.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.26.0-rc.0...@twreporter/react-components@8.26.0-rc.1) (2024-03-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add publicationAndMerchandise to footer ([aab969c](https://github.com/twreporter/twreporter-npm-packages/commit/aab969c79b62dc1824c64a470dd8dfdd7c5c03d1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [8.26.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.25.2-rc.0...@twreporter/react-components@8.26.0-rc.0) (2024-03-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* change topic listing page title components ([bc79321](https://github.com/twreporter/twreporter-npm-packages/commit/bc793217e4ebb30639685343df295a773a67909f))
|
|
23
|
+
* topic listing page title color ([4fcb3cd](https://github.com/twreporter/twreporter-npm-packages/commit/4fcb3cdad6ece175591230734fb398199a7c0bfb))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [8.25.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.25.1...@twreporter/react-components@8.25.2-rc.0) (2024-02-21)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @twreporter/react-components
|
package/lib/footer/content.js
CHANGED
|
@@ -123,6 +123,11 @@ function getItemGroups(mainOrigin) {
|
|
|
123
123
|
text: '品牌設計規範',
|
|
124
124
|
link: 'https://twreporter.gitbook.io/the-reporter-brand-guidelines',
|
|
125
125
|
target: '_blank'
|
|
126
|
+
}, {
|
|
127
|
+
slug: 'publication-and-merchandise',
|
|
128
|
+
text: '出版品與周邊',
|
|
129
|
+
link: 'https://twreporter.backme.tw/shops/3589?locale=zh-TW',
|
|
130
|
+
target: '_blank'
|
|
126
131
|
}]];
|
|
127
132
|
}
|
|
128
133
|
|
|
@@ -29,6 +29,8 @@ var _font = require("@twreporter/core/lib/constants/font");
|
|
|
29
29
|
|
|
30
30
|
var _titleBar = require("@twreporter/react-components/lib/title-bar");
|
|
31
31
|
|
|
32
|
+
var _headline = require("@twreporter/react-components/lib/text/headline");
|
|
33
|
+
|
|
32
34
|
var _color = require("@twreporter/core/lib/constants/color");
|
|
33
35
|
|
|
34
36
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
@@ -73,6 +75,16 @@ var NoData = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
73
75
|
componentId: "sc-1n6udj1-0"
|
|
74
76
|
})(["width:100%;font-size:16px;color:", ";font-weight:", ";text-align:center;"], _color.colorGrayscale.gray900, _font.fontWeight.normal);
|
|
75
77
|
|
|
78
|
+
var Title2Wrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
79
|
+
displayName: "topics__Title2Wrapper",
|
|
80
|
+
componentId: "sc-1n6udj1-1"
|
|
81
|
+
})(["padding-top:24px;"]);
|
|
82
|
+
|
|
83
|
+
var Gray800H2 = /*#__PURE__*/(0, _styledComponents["default"])(_headline.H2).withConfig({
|
|
84
|
+
displayName: "topics__Gray800H2",
|
|
85
|
+
componentId: "sc-1n6udj1-2"
|
|
86
|
+
})(["color:", ";"], _color.colorGrayscale.gray800);
|
|
87
|
+
|
|
76
88
|
var Topics = /*#__PURE__*/function (_Component) {
|
|
77
89
|
_inherits(Topics, _Component);
|
|
78
90
|
|
|
@@ -166,11 +178,14 @@ var Topics = /*#__PURE__*/function (_Component) {
|
|
|
166
178
|
|
|
167
179
|
topTopicName = _.get(topics, [0, 'topic_name'], '');
|
|
168
180
|
topicUrl = _.get(topics, [0, 'linkTo'], '');
|
|
169
|
-
topSectionJSX = [/*#__PURE__*/_react["default"].createElement(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
181
|
+
topSectionJSX = [/*#__PURE__*/_react["default"].createElement(Gray800H2, {
|
|
182
|
+
text: '深度專題',
|
|
183
|
+
key: "top-title"
|
|
184
|
+
}), /*#__PURE__*/_react["default"].createElement(Title2Wrapper, {
|
|
185
|
+
key: "section-title"
|
|
186
|
+
}, /*#__PURE__*/_react["default"].createElement(_titleBar.Title2, {
|
|
187
|
+
title: _topics.TEXT.SECTION_TITLE_FEATURED
|
|
188
|
+
})), /*#__PURE__*/_react["default"].createElement(_section.TopSectionContent, {
|
|
174
189
|
key: "top-section",
|
|
175
190
|
topicName: topTopicName,
|
|
176
191
|
topicUrl: topicUrl
|
|
@@ -180,9 +195,9 @@ var Topics = /*#__PURE__*/function (_Component) {
|
|
|
180
195
|
}
|
|
181
196
|
|
|
182
197
|
var WrappedListSectionContent = (0, _isFetchingWrapper["default"])( /*#__PURE__*/_react["default"].createElement(_section.ListSectionContent, null, listedTopicsJSX));
|
|
183
|
-
return /*#__PURE__*/_react["default"].createElement(_pageContent["default"], null, topSectionJSX, isFetching && isFirstPage ? null : /*#__PURE__*/_react["default"].createElement(_titleBar.
|
|
184
|
-
|
|
185
|
-
}), /*#__PURE__*/_react["default"].createElement(WrappedListSectionContent, {
|
|
198
|
+
return /*#__PURE__*/_react["default"].createElement(_pageContent["default"], null, topSectionJSX, isFetching && isFirstPage ? null : /*#__PURE__*/_react["default"].createElement(Title2Wrapper, null, /*#__PURE__*/_react["default"].createElement(_titleBar.Title2, {
|
|
199
|
+
title: _topics.TEXT.SECTION_TITLE_OTHERS
|
|
200
|
+
})), /*#__PURE__*/_react["default"].createElement(WrappedListSectionContent, {
|
|
186
201
|
isFetching: isFetching,
|
|
187
202
|
showSpinner: showSpinner
|
|
188
203
|
}));
|
|
@@ -50,9 +50,9 @@ var styles = {
|
|
|
50
50
|
goToTopicMargin: [20, 'auto', 0, 'auto'],
|
|
51
51
|
goToTopicPadding: [14, 0, 14, 0],
|
|
52
52
|
sectionMargin: {
|
|
53
|
-
mobile: [24, 0,
|
|
54
|
-
tablet: [
|
|
55
|
-
desktop: [
|
|
53
|
+
mobile: [24, 0, 24, 0],
|
|
54
|
+
tablet: [24, 0, 24, 0],
|
|
55
|
+
desktop: [24, 0, 24, 0]
|
|
56
56
|
},
|
|
57
57
|
titleMargin: {
|
|
58
58
|
mobile: [0, 0, 24, 0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.26.0-rc.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"chromatic": "npx chromatic --exit-zero-on-changes"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@twreporter/core": "^1.
|
|
19
|
-
"@twreporter/redux": "^7.11.2-rc.
|
|
18
|
+
"@twreporter/core": "^1.19.0-rc.0",
|
|
19
|
+
"@twreporter/redux": "^7.11.2-rc.1",
|
|
20
20
|
"fontfaceobserver-es": "^3.3.3",
|
|
21
21
|
"hoist-non-react-statics": "^2.3.1",
|
|
22
22
|
"lodash": "^4.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-dom": "^16.0.0",
|
|
52
52
|
"storybook": "^7.5.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "3775e082414c9b92bb455f9ad551a3b9321830ab"
|
|
55
55
|
}
|