@times-components/article 7.14.6 → 7.15.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,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.1](https://github.com/newsuk/times-components/compare/@times-components/article@7.15.0...@times-components/article@7.15.1) (2023-07-18)
7
+
8
+ **Note:** Version bump only for package @times-components/article
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [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)
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.14.6",
3
+ "version": "7.15.1",
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.73.10",
57
- "@times-components/article-magazine-comment": "3.71.9",
58
- "@times-components/article-magazine-standard": "3.71.9",
59
- "@times-components/article-main-comment": "2.67.30",
60
- "@times-components/article-main-standard": "3.77.5",
56
+ "@times-components/article-in-depth": "3.74.1",
57
+ "@times-components/article-magazine-comment": "3.71.11",
58
+ "@times-components/article-magazine-standard": "3.71.11",
59
+ "@times-components/article-main-comment": "2.67.32",
60
+ "@times-components/article-main-standard": "3.78.1",
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": "5f98948986e4bd93b643721f0cac2c43ceb47587"
78
+ "gitHead": "335d9940ed76defa03d3a434a53215aabea680f3"
79
79
  }
@@ -219,7 +219,7 @@ const renderArticle = ({
219
219
  template,
220
220
  isTeaser,
221
221
  isMeteredExpired,
222
- hasUpdate
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
- hasUpdate={hasUpdate}
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
- hasUpdate
366
+ showUpdate
366
367
  })}
367
368
  </ArticleConfigurator>
368
369
  }