@times-components/article 7.16.103 → 7.16.104
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 +8 -0
- package/package.json +15 -15
- package/showcase-helper.js +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [7.16.104](https://github.com/newsuk/times-components/compare/@times-components/article@7.16.103...@times-components/article@7.16.104) (2023-10-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/article
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [7.16.103](https://github.com/newsuk/times-components/compare/@times-components/article@7.16.102...@times-components/article@7.16.103) (2023-10-17)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @times-components/article
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/article",
|
|
3
|
-
"version": "7.16.
|
|
3
|
+
"version": "7.16.104",
|
|
4
4
|
"description": "The article",
|
|
5
5
|
"main": "dist/article",
|
|
6
6
|
"dev": "src/article",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
37
37
|
"@times-components/jest-configurator-web": "0.8.1",
|
|
38
38
|
"@times-components/provider-test-tools": "1.29.1",
|
|
39
|
-
"@times-components/storybook": "4.11.
|
|
39
|
+
"@times-components/storybook": "4.11.1",
|
|
40
40
|
"@times-components/tealium-utils": "0.9.0",
|
|
41
|
-
"@times-components/user-state": "0.5.
|
|
41
|
+
"@times-components/user-state": "0.5.8",
|
|
42
42
|
"@times-components/webpack-configurator": "2.1.0",
|
|
43
43
|
"babel-jest": "24.8.0",
|
|
44
44
|
"babel-loader": "8.0.5",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"webpack": "4.30.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@times-components/ad": "2.21.
|
|
56
|
-
"@times-components/article-in-depth": "3.76.
|
|
57
|
-
"@times-components/article-magazine-comment": "3.72.
|
|
58
|
-
"@times-components/article-magazine-standard": "3.72.
|
|
59
|
-
"@times-components/article-main-comment": "2.70.
|
|
60
|
-
"@times-components/article-main-standard": "3.80.
|
|
61
|
-
"@times-components/context": "1.10.
|
|
62
|
-
"@times-components/message-bar": "0.7.
|
|
63
|
-
"@times-components/provider": "1.39.
|
|
64
|
-
"@times-components/responsive": "0.16.
|
|
65
|
-
"@times-components/ts-styleguide": "1.47.
|
|
55
|
+
"@times-components/ad": "2.21.40",
|
|
56
|
+
"@times-components/article-in-depth": "3.76.65",
|
|
57
|
+
"@times-components/article-magazine-comment": "3.72.65",
|
|
58
|
+
"@times-components/article-magazine-standard": "3.72.65",
|
|
59
|
+
"@times-components/article-main-comment": "2.70.51",
|
|
60
|
+
"@times-components/article-main-standard": "3.80.65",
|
|
61
|
+
"@times-components/context": "1.10.35",
|
|
62
|
+
"@times-components/message-bar": "0.7.41",
|
|
63
|
+
"@times-components/provider": "1.39.1",
|
|
64
|
+
"@times-components/responsive": "0.16.2",
|
|
65
|
+
"@times-components/ts-styleguide": "1.47.1"
|
|
66
66
|
},
|
|
67
67
|
"resolutions": {
|
|
68
68
|
"react": "16.9.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "6297bacfb3fbd62c0ce4a9b32c0e63c7bd9b300e"
|
|
79
79
|
}
|
package/showcase-helper.js
CHANGED
|
@@ -217,8 +217,7 @@ const renderArticle = ({
|
|
|
217
217
|
scale,
|
|
218
218
|
section,
|
|
219
219
|
template,
|
|
220
|
-
isTeaser
|
|
221
|
-
isMeteredExpired
|
|
220
|
+
isTeaser
|
|
222
221
|
}) => (
|
|
223
222
|
<ArticleProvider debounceTimeMs={0} id={id}>
|
|
224
223
|
{({ article, error, refetch }) => {
|
|
@@ -243,8 +242,7 @@ const renderArticle = ({
|
|
|
243
242
|
scale: scale || defaults.theme.scale
|
|
244
243
|
},
|
|
245
244
|
user: {
|
|
246
|
-
isLoggedIn: !isTeaser
|
|
247
|
-
isMeteredExpired
|
|
245
|
+
isLoggedIn: !isTeaser
|
|
248
246
|
}
|
|
249
247
|
}}
|
|
250
248
|
>
|
|
@@ -325,8 +323,8 @@ const renderArticleConfig = ({
|
|
|
325
323
|
: null;
|
|
326
324
|
|
|
327
325
|
const user = (global.nuk && global.nuk.user) || {};
|
|
328
|
-
const { isLoggedIn,
|
|
329
|
-
const isTeaser = !isShared &&
|
|
326
|
+
const { isLoggedIn, isShared } = user;
|
|
327
|
+
const isTeaser = !isShared && !isLoggedIn;
|
|
330
328
|
|
|
331
329
|
return (
|
|
332
330
|
<Fragment>
|
|
@@ -355,7 +353,6 @@ const renderArticleConfig = ({
|
|
|
355
353
|
inDepthBackgroundColour,
|
|
356
354
|
inDepthTextColour,
|
|
357
355
|
isTeaser,
|
|
358
|
-
isMeteredExpired,
|
|
359
356
|
scale,
|
|
360
357
|
section,
|
|
361
358
|
template
|