@twreporter/react-article-components 1.10.0 → 1.10.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 +19 -0
- package/lib/components/body/headings.js +4 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.10.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.10.1-rc.0...@twreporter/react-article-components@1.10.1) (2023-12-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @twreporter/react-article-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.10.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.10.0...@twreporter/react-article-components@1.10.1-rc.0) (2023-12-21)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **react-article-components:** filter html tag for text render ([3ead77c](https://github.com/twreporter/twreporter-npm-packages/commit/3ead77ce32e47e5b66ae64390aeb698c90ab02e0))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.10.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.10.0-rc.5...@twreporter/react-article-components@1.10.0) (2023-12-13)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @twreporter/react-article-components
|
|
@@ -52,18 +52,20 @@ var StyledH2 = /*#__PURE__*/(0, _styledComponents["default"])(_headline.H3).with
|
|
|
52
52
|
var H1 = function H1(props) {
|
|
53
53
|
var content = _.get(props, 'data.content.0', '');
|
|
54
54
|
|
|
55
|
+
var text = content.split(/<strong>|<\/strong>/).filter(Boolean).join('');
|
|
55
56
|
return /*#__PURE__*/_react["default"].createElement(StyledH1, {
|
|
56
57
|
className: _.get(props, 'className', ''),
|
|
57
|
-
text:
|
|
58
|
+
text: text
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
var H2 = function H2(props) {
|
|
62
63
|
var content = _.get(props, 'data.content.0', '');
|
|
63
64
|
|
|
65
|
+
var text = content.split(/<strong>|<\/strong>/).filter(Boolean).join('');
|
|
64
66
|
return /*#__PURE__*/_react["default"].createElement(StyledH2, {
|
|
65
67
|
className: _.get(props, 'className', ''),
|
|
66
|
-
text:
|
|
68
|
+
text: text
|
|
67
69
|
});
|
|
68
70
|
};
|
|
69
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-article-components",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
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": "892edd515a90f13c82aea69d4b4ca311f2f0d37c"
|
|
44
44
|
}
|