@twreporter/react-article-components 1.13.0-rc.2 → 1.13.0-rc.3
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,18 @@
|
|
|
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.13.0-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.13.0-rc.2...@twreporter/react-article-components@1.13.0-rc.3) (2024-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* share container bg color & scroll throttle ([a337754](https://github.com/twreporter/twreporter-npm-packages/commit/a337754fca0f4b9cdf2810bb9ff4aaa8363cfa75))
|
|
12
|
+
* translateY 200% ([b07f024](https://github.com/twreporter/twreporter-npm-packages/commit/b07f0241c0c90cb141967e2f57ffff89215a6507))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [1.13.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.13.0-rc.1...@twreporter/react-article-components@1.13.0-rc.2) (2024-03-11)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @twreporter/react-article-components
|
|
@@ -292,7 +292,7 @@ var Article = /*#__PURE__*/function (_PureComponent) {
|
|
|
292
292
|
};
|
|
293
293
|
_this.lastY = 0;
|
|
294
294
|
_this.currentY = 0;
|
|
295
|
-
_this.handleScroll = _.throttle(_this._handleScroll.bind(_assertThisInitialized(_this)),
|
|
295
|
+
_this.handleScroll = _.throttle(_this._handleScroll.bind(_assertThisInitialized(_this)), 500);
|
|
296
296
|
return _this;
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -101,13 +101,13 @@ var ToolBarWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
101
101
|
})(["display:flex;width:100%;justify-content:center;padding:8px;position:fixed;left:0px;bottom:env(safe-area-inset-bottom,0);height:", ";transform:", ";transition:height 200ms,transform 200ms ease-in-out;background-color:", ";border-top:1px solid ", ";z-index:", ";", "{background-color:", ";box-shadow:", ";}", "{bottom:", ";}"], function (props) {
|
|
102
102
|
return props.hideText ? '40px' : '55px';
|
|
103
103
|
}, function (props) {
|
|
104
|
-
return props.isHidden ? 'translateY(
|
|
104
|
+
return props.isHidden ? 'translateY(200%)' : 'tanslateY(0%)';
|
|
105
105
|
}, function (props) {
|
|
106
106
|
return props.bgColor;
|
|
107
107
|
}, function (props) {
|
|
108
108
|
return props.borderColor;
|
|
109
109
|
}, _zIndex["default"].mobileToolBar, ShareContainer, function (props) {
|
|
110
|
-
return props.
|
|
110
|
+
return props.shareByBgColor;
|
|
111
111
|
}, function (props) {
|
|
112
112
|
return props.shadow;
|
|
113
113
|
}, SnackBarContainer, function (props) {
|
|
@@ -481,7 +481,8 @@ var ToolBar = function ToolBar(_ref9) {
|
|
|
481
481
|
|
|
482
482
|
var _getToolBarTheme = (0, _theme2.getToolBarTheme)(themeContext.name),
|
|
483
483
|
bgColor = _getToolBarTheme.bgColor,
|
|
484
|
-
borderColor = _getToolBarTheme.borderColor
|
|
484
|
+
borderColor = _getToolBarTheme.borderColor,
|
|
485
|
+
shareByBgColor = _getToolBarTheme.shareByBgColor;
|
|
485
486
|
|
|
486
487
|
var _useSnackBar = (0, _snackBar.useSnackBar)(),
|
|
487
488
|
showSnackBar = _useSnackBar.showSnackBar,
|
|
@@ -501,6 +502,7 @@ var ToolBar = function ToolBar(_ref9) {
|
|
|
501
502
|
value: contextValue
|
|
502
503
|
}, /*#__PURE__*/_react["default"].createElement(ToolBarWrapper, {
|
|
503
504
|
bgColor: bgColor,
|
|
505
|
+
shareByBgColor: shareByBgColor,
|
|
504
506
|
borderColor: borderColor,
|
|
505
507
|
hideText: hideText,
|
|
506
508
|
className: className,
|
|
@@ -101,13 +101,13 @@ var ToolBarWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
101
101
|
})(["display:flex;width:100%;justify-content:center;padding:8px;position:fixed;left:0px;bottom:env(safe-area-inset-bottom,0);height:", ";transform:", ";transition:height 200ms,transform 200ms ease-in-out;background-color:", ";border-top:1px solid ", ";z-index:", ";", "{background-color:", ";box-shadow:", ";}", "{bottom:", ";}"], function (props) {
|
|
102
102
|
return props.hideText ? '40px' : '55px';
|
|
103
103
|
}, function (props) {
|
|
104
|
-
return props.isHidden ? 'translateY(
|
|
104
|
+
return props.isHidden ? 'translateY(200%)' : 'tanslateY(0%)';
|
|
105
105
|
}, function (props) {
|
|
106
106
|
return props.bgColor;
|
|
107
107
|
}, function (props) {
|
|
108
108
|
return props.borderColor;
|
|
109
109
|
}, _zIndex["default"].mobileToolBar, ShareContainer, function (props) {
|
|
110
|
-
return props.
|
|
110
|
+
return props.shareByBgColor;
|
|
111
111
|
}, function (props) {
|
|
112
112
|
return props.shadow;
|
|
113
113
|
}, SnackBarContainer, function (props) {
|
|
@@ -481,7 +481,8 @@ var ToolBar = function ToolBar(_ref9) {
|
|
|
481
481
|
|
|
482
482
|
var _getToolBarTheme = (0, _theme2.getToolBarTheme)(themeContext.name),
|
|
483
483
|
bgColor = _getToolBarTheme.bgColor,
|
|
484
|
-
borderColor = _getToolBarTheme.borderColor
|
|
484
|
+
borderColor = _getToolBarTheme.borderColor,
|
|
485
|
+
shareByBgColor = _getToolBarTheme.shareByBgColor;
|
|
485
486
|
|
|
486
487
|
var _useSnackBar = (0, _snackBar.useSnackBar)(),
|
|
487
488
|
showSnackBar = _useSnackBar.showSnackBar,
|
|
@@ -501,6 +502,7 @@ var ToolBar = function ToolBar(_ref9) {
|
|
|
501
502
|
value: contextValue
|
|
502
503
|
}, /*#__PURE__*/_react["default"].createElement(ToolBarWrapper, {
|
|
503
504
|
bgColor: bgColor,
|
|
505
|
+
shareByBgColor: shareByBgColor,
|
|
504
506
|
borderColor: borderColor,
|
|
505
507
|
hideText: hideText,
|
|
506
508
|
className: className,
|
|
@@ -18,6 +18,7 @@ var getToolBarTheme = function getToolBarTheme(theme) {
|
|
|
18
18
|
case _theme["default"].article.v2.photo:
|
|
19
19
|
return {
|
|
20
20
|
bgColor: _color.colorPhoto.dark,
|
|
21
|
+
shareByBgColor: _color.colorPhoto.dark,
|
|
21
22
|
borderColor: _color.colorPhoto.heavy
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -25,6 +26,7 @@ var getToolBarTheme = function getToolBarTheme(theme) {
|
|
|
25
26
|
default:
|
|
26
27
|
return {
|
|
27
28
|
bgColor: _color.colorGrayscale.gray100,
|
|
29
|
+
shareByBgColor: _color.colorGrayscale.white,
|
|
28
30
|
borderColor: _color.colorGrayscale.gray300
|
|
29
31
|
};
|
|
30
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-article-components",
|
|
3
|
-
"version": "1.13.0-rc.
|
|
3
|
+
"version": "1.13.0-rc.3",
|
|
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",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"files": [
|
|
41
41
|
"lib"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "db195994d013ad71f1a7a3b0a85153aef45a6622"
|
|
44
44
|
}
|