@times-components/article 7.13.129 → 7.14.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 CHANGED
@@ -3,6 +3,17 @@
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.14.0](https://github.com/newsuk/times-components/compare/@times-components/article@7.13.129...@times-components/article@7.14.0) (2023-07-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **TMRX-1250:** Pass hasUpdate from render ([#3419](https://github.com/newsuk/times-components/issues/3419)) ([232dc06](https://github.com/newsuk/times-components/commit/232dc065cdea3325f0faf9c8cf1823def3682e05))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.13.129](https://github.com/newsuk/times-components/compare/@times-components/article@7.13.128...@times-components/article@7.13.129) (2023-07-11)
7
18
 
8
19
  **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.13.129",
3
+ "version": "7.14.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.73.3",
57
- "@times-components/article-magazine-comment": "3.71.3",
58
- "@times-components/article-magazine-standard": "3.71.3",
59
- "@times-components/article-main-comment": "2.67.24",
60
- "@times-components/article-main-standard": "3.76.3",
56
+ "@times-components/article-in-depth": "3.73.4",
57
+ "@times-components/article-magazine-comment": "3.71.4",
58
+ "@times-components/article-magazine-standard": "3.71.4",
59
+ "@times-components/article-main-comment": "2.67.25",
60
+ "@times-components/article-main-standard": "3.77.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": "7282feed24a82185cc0308334a9648761263f565"
78
+ "gitHead": "fd88018d7b2bd8a8002d82ca591379a9c0dd7329"
79
79
  }
@@ -218,7 +218,8 @@ const renderArticle = ({
218
218
  section,
219
219
  template,
220
220
  isTeaser,
221
- isMeteredExpired
221
+ isMeteredExpired,
222
+ hasUpdate
222
223
  }) => (
223
224
  <ArticleProvider debounceTimeMs={0} id={id}>
224
225
  {({ article, error, refetch }) => {
@@ -278,6 +279,7 @@ const renderArticle = ({
278
279
  )}
279
280
  refetch={refetch}
280
281
  commentingConfig={commentingConfig}
282
+ hasUpdate={hasUpdate}
281
283
  />
282
284
  </ContextProviderWithDefaults>
283
285
  );
@@ -312,7 +314,7 @@ const renderArticleConfig = ({
312
314
  const withPullQuote = boolean("Pull Quote", false);
313
315
  const withStandfirst = boolean("Standfirst", true);
314
316
  const withVideo = boolean("Video", true);
315
-
317
+ const hasUpdate = boolean("HasUpdate", false);
316
318
  const scale = hasScaling ? selectScales(select) : null;
317
319
  const section = selectSection(select);
318
320
  const template = selectTemplate(select);
@@ -359,7 +361,8 @@ const renderArticleConfig = ({
359
361
  isMeteredExpired,
360
362
  scale,
361
363
  section,
362
- template
364
+ template,
365
+ hasUpdate
363
366
  })}
364
367
  </ArticleConfigurator>
365
368
  }