@times-components/article 7.8.35 → 7.8.39

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,41 @@
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.8.39](https://github.com/newsuk/times-components/compare/@times-components/article@7.8.38...@times-components/article@7.8.39) (2022-01-12)
7
+
8
+ **Note:** Version bump only for package @times-components/article
9
+
10
+
11
+
12
+
13
+
14
+ ## [7.8.38](https://github.com/newsuk/times-components/compare/@times-components/article@7.8.37...@times-components/article@7.8.38) (2022-01-10)
15
+
16
+ **Note:** Version bump only for package @times-components/article
17
+
18
+
19
+
20
+
21
+
22
+ ## [7.8.37](https://github.com/newsuk/times-components/compare/@times-components/article@7.8.36...@times-components/article@7.8.37) (2022-01-10)
23
+
24
+ **Note:** Version bump only for package @times-components/article
25
+
26
+
27
+
28
+
29
+
30
+ ## [7.8.36](https://github.com/newsuk/times-components/compare/@times-components/article@7.8.35...@times-components/article@7.8.36) (2022-01-07)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **TPD-997:** Remove inline related articles flag ([#2834](https://github.com/newsuk/times-components/issues/2834)) ([ffc332a](https://github.com/newsuk/times-components/commit/ffc332a0bf096e5436427b990a495bb3caff80ff))
36
+
37
+
38
+
39
+
40
+
6
41
  ## [7.8.35](https://github.com/newsuk/times-components/compare/@times-components/article@7.8.34...@times-components/article@7.8.35) (2022-01-04)
7
42
 
8
43
  **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.8.35",
3
+ "version": "7.8.39",
4
4
  "description": "The article",
5
5
  "main": "dist/article",
6
6
  "dev": "src/article",
@@ -61,11 +61,11 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@times-components/ad": "2.16.4",
64
- "@times-components/article-in-depth": "3.36.9",
65
- "@times-components/article-magazine-comment": "3.36.9",
66
- "@times-components/article-magazine-standard": "3.36.9",
67
- "@times-components/article-main-comment": "2.36.9",
68
- "@times-components/article-main-standard": "3.41.9",
64
+ "@times-components/article-in-depth": "3.36.13",
65
+ "@times-components/article-magazine-comment": "3.36.13",
66
+ "@times-components/article-magazine-standard": "3.36.13",
67
+ "@times-components/article-main-comment": "2.36.13",
68
+ "@times-components/article-main-standard": "3.41.13",
69
69
  "@times-components/context": "1.2.30",
70
70
  "@times-components/message-bar": "0.3.71",
71
71
  "@times-components/provider": "1.28.2",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "9e3b5b54bd93aef2a74f940a95ebee8206b15fc4"
88
+ "gitHead": "d5a16b72d293e7600172c78d6de2f09b24c2f846"
89
89
  }
@@ -38,6 +38,15 @@ const STANDFIRST = 128;
38
38
  const VIDEO = 256;
39
39
  const TEASED_CONTENT = 512;
40
40
 
41
+ const commentingConfig = {
42
+ account: {
43
+ current: process.env.STORYBOOK_COMMENTING_CURRENT_ID || "sp_pCQgrRiN",
44
+ readOnly: process.env.STORYBOOK_COMMENTING_READONLY_ID || "sp_pCQgrRiN"
45
+ },
46
+ switchOver:
47
+ process.env.STORYBOOK_COMMENTING_SWITCHOVER || "2023-10-10T16:00:00.000Z"
48
+ };
49
+
41
50
  export const makeArticleConfiguration = ({
42
51
  withFlags,
43
52
  withHeadline,
@@ -217,7 +226,6 @@ const renderArticle = ({
217
226
  isTeaser,
218
227
  isMeteredExpired,
219
228
  additionalRelatedArticlesFlag,
220
- inlineRelatedArticlesFlag,
221
229
  latestFromSectionFlag,
222
230
  algoliaSearchKeys
223
231
  }) => (
@@ -279,12 +287,12 @@ const renderArticle = ({
279
287
  )}
280
288
  refetch={refetch}
281
289
  additionalRelatedArticlesFlag={additionalRelatedArticlesFlag}
282
- inlineRelatedArticlesFlag={inlineRelatedArticlesFlag}
283
290
  algoliaSearchKeys={algoliaSearchKeys}
284
291
  latestFromSectionFlag={latestFromSectionFlag}
285
292
  latestFromSection={latestFromSection.find(
286
293
  ({ section: sectionName }) => sectionName === section
287
294
  )}
295
+ commentingConfig={commentingConfig}
288
296
  />
289
297
  </ContextProviderWithDefaults>
290
298
  );
@@ -347,11 +355,6 @@ const renderArticleConfig = ({
347
355
  false,
348
356
  "User State"
349
357
  );
350
- const inlineRelatedArticlesFlag = boolean(
351
- "Inline Related Articles",
352
- false,
353
- "User State"
354
- );
355
358
  const latestFromSectionFlag = boolean(
356
359
  "Latest from Section",
357
360
  false,
@@ -389,7 +392,6 @@ const renderArticleConfig = ({
389
392
  section,
390
393
  template,
391
394
  additionalRelatedArticlesFlag,
392
- inlineRelatedArticlesFlag,
393
395
  latestFromSectionFlag,
394
396
  algoliaSearchKeys
395
397
  })}