@times-components/article 7.14.5 → 7.15.0
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/package.json +7 -7
- package/showcase-helper.js +6 -5
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
|
+
# [7.15.0](https://github.com/newsuk/times-components/compare/@times-components/article@7.14.6...@times-components/article@7.15.0) (2023-07-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **TMRX-1250:** Live updates behind a flag ([#3429](https://github.com/newsuk/times-components/issues/3429)) ([2fe0200](https://github.com/newsuk/times-components/commit/2fe02005cde5042d7d2ad69c879d0b9a4c0411fc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.14.6](https://github.com/newsuk/times-components/compare/@times-components/article@7.14.5...@times-components/article@7.14.6) (2023-07-17)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @times-components/article
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [7.14.5](https://github.com/newsuk/times-components/compare/@times-components/article@7.14.4...@times-components/article@7.14.5) (2023-07-17)
|
|
7
26
|
|
|
8
27
|
**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.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"description": "The article",
|
|
5
5
|
"main": "dist/article",
|
|
6
6
|
"dev": "src/article",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@times-components/ad": "2.21.29",
|
|
56
|
-
"@times-components/article-in-depth": "3.
|
|
57
|
-
"@times-components/article-magazine-comment": "3.71.
|
|
58
|
-
"@times-components/article-magazine-standard": "3.71.
|
|
59
|
-
"@times-components/article-main-comment": "2.67.
|
|
60
|
-
"@times-components/article-main-standard": "3.
|
|
56
|
+
"@times-components/article-in-depth": "3.74.0",
|
|
57
|
+
"@times-components/article-magazine-comment": "3.71.10",
|
|
58
|
+
"@times-components/article-magazine-standard": "3.71.10",
|
|
59
|
+
"@times-components/article-main-comment": "2.67.31",
|
|
60
|
+
"@times-components/article-main-standard": "3.78.0",
|
|
61
61
|
"@times-components/context": "1.10.26",
|
|
62
62
|
"@times-components/message-bar": "0.7.30",
|
|
63
63
|
"@times-components/provider": "1.38.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7228c5ba4b74077a1d6d0a7754d3110ef16a930f"
|
|
79
79
|
}
|
package/showcase-helper.js
CHANGED
|
@@ -219,7 +219,7 @@ const renderArticle = ({
|
|
|
219
219
|
template,
|
|
220
220
|
isTeaser,
|
|
221
221
|
isMeteredExpired,
|
|
222
|
-
|
|
222
|
+
showUpdate
|
|
223
223
|
}) => (
|
|
224
224
|
<ArticleProvider debounceTimeMs={0} id={id}>
|
|
225
225
|
{({ article, error, refetch }) => {
|
|
@@ -279,7 +279,7 @@ const renderArticle = ({
|
|
|
279
279
|
)}
|
|
280
280
|
refetch={refetch}
|
|
281
281
|
commentingConfig={commentingConfig}
|
|
282
|
-
|
|
282
|
+
showUpdate={showUpdate}
|
|
283
283
|
/>
|
|
284
284
|
</ContextProviderWithDefaults>
|
|
285
285
|
);
|
|
@@ -314,7 +314,6 @@ const renderArticleConfig = ({
|
|
|
314
314
|
const withPullQuote = boolean("Pull Quote", false);
|
|
315
315
|
const withStandfirst = boolean("Standfirst", true);
|
|
316
316
|
const withVideo = boolean("Video", true);
|
|
317
|
-
const hasUpdate = boolean("HasUpdate", false);
|
|
318
317
|
const scale = hasScaling ? selectScales(select) : null;
|
|
319
318
|
const section = selectSection(select);
|
|
320
319
|
const template = selectTemplate(select);
|
|
@@ -330,6 +329,7 @@ const renderArticleConfig = ({
|
|
|
330
329
|
const user = (global.nuk && global.nuk.user) || {};
|
|
331
330
|
const { isLoggedIn, isMeteredExpired, isShared } = user;
|
|
332
331
|
const isTeaser = !isShared && (isMeteredExpired || !isLoggedIn);
|
|
332
|
+
const showUpdate = boolean("Show Update", true);
|
|
333
333
|
|
|
334
334
|
return (
|
|
335
335
|
<Fragment>
|
|
@@ -346,7 +346,8 @@ const renderArticleConfig = ({
|
|
|
346
346
|
withPullQuote,
|
|
347
347
|
withStandfirst,
|
|
348
348
|
withVideo,
|
|
349
|
-
withTeasedContent: isTeaser
|
|
349
|
+
withTeasedContent: isTeaser,
|
|
350
|
+
showUpdate
|
|
350
351
|
})}
|
|
351
352
|
id={id}
|
|
352
353
|
>
|
|
@@ -362,7 +363,7 @@ const renderArticleConfig = ({
|
|
|
362
363
|
scale,
|
|
363
364
|
section,
|
|
364
365
|
template,
|
|
365
|
-
|
|
366
|
+
showUpdate
|
|
366
367
|
})}
|
|
367
368
|
</ArticleConfigurator>
|
|
368
369
|
}
|