@times-components/article 7.11.6 → 7.13.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,36 @@
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.13.0](https://github.com/newsuk/times-components/compare/@times-components/article@7.12.0...@times-components/article@7.13.0) (2022-09-07)
7
+
8
+
9
+ ### Features
10
+
11
+ * **TDP-000:** Remove algolia related articles and various TS imports ([#3147](https://github.com/newsuk/times-components/issues/3147)) ([c5601b4](https://github.com/newsuk/times-components/commit/c5601b41933f35a7a545a6f1c5b9297d76677305))
12
+
13
+
14
+
15
+
16
+
17
+ # [7.12.0](https://github.com/newsuk/times-components/compare/@times-components/article@7.11.7...@times-components/article@7.12.0) (2022-09-06)
18
+
19
+
20
+ ### Features
21
+
22
+ * **TDP-000:** Remove latest from section ([#3146](https://github.com/newsuk/times-components/issues/3146)) ([7ac0fc3](https://github.com/newsuk/times-components/commit/7ac0fc30b87ca98641997c0d7421c356e8b46917))
23
+
24
+
25
+
26
+
27
+
28
+ ## [7.11.7](https://github.com/newsuk/times-components/compare/@times-components/article@7.11.6...@times-components/article@7.11.7) (2022-09-06)
29
+
30
+ **Note:** Version bump only for package @times-components/article
31
+
32
+
33
+
34
+
35
+
6
36
  ## [7.11.6](https://github.com/newsuk/times-components/compare/@times-components/article@7.11.5...@times-components/article@7.11.6) (2022-09-06)
7
37
 
8
38
  **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.11.6",
3
+ "version": "7.13.0",
4
4
  "description": "The article",
5
5
  "main": "dist/article",
6
6
  "dev": "src/article",
@@ -52,11 +52,11 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@times-components/ad": "2.21.0",
55
- "@times-components/article-in-depth": "3.56.6",
56
- "@times-components/article-magazine-comment": "3.55.6",
57
- "@times-components/article-magazine-standard": "3.54.6",
58
- "@times-components/article-main-comment": "2.53.6",
59
- "@times-components/article-main-standard": "3.60.6",
55
+ "@times-components/article-in-depth": "3.58.0",
56
+ "@times-components/article-magazine-comment": "3.57.0",
57
+ "@times-components/article-magazine-standard": "3.56.0",
58
+ "@times-components/article-main-comment": "2.55.0",
59
+ "@times-components/article-main-standard": "3.62.0",
60
60
  "@times-components/context": "1.10.0",
61
61
  "@times-components/message-bar": "0.7.0",
62
62
  "@times-components/provider": "1.33.0",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "e90c03ee656dd8283628d4baa423999c6508f9e5"
77
+ "gitHead": "f1539bfcbc22266c4820bd682c47f562a1032487"
78
78
  }
@@ -16,7 +16,6 @@ import { sections } from "@times-components/storybook";
16
16
  import { scales, themeFactory } from "@times-components/ts-styleguide";
17
17
  import storybookReporter from "@times-components/tealium-utils";
18
18
 
19
- import { latestFromSection } from "./fixtures/full-article";
20
19
  import Article, { templates } from "./src/article";
21
20
 
22
21
  const preventDefaultedAction = decorateAction =>
@@ -224,10 +223,7 @@ const renderArticle = ({
224
223
  section,
225
224
  template,
226
225
  isTeaser,
227
- isMeteredExpired,
228
- additionalRelatedArticlesFlag,
229
- latestFromSectionFlag,
230
- algoliaSearchKeys
226
+ isMeteredExpired
231
227
  }) => (
232
228
  <ArticleProvider debounceTimeMs={0} id={id}>
233
229
  {({ article, error, refetch }) => {
@@ -286,12 +282,6 @@ const renderArticle = ({
286
282
  "onVideoPress"
287
283
  )}
288
284
  refetch={refetch}
289
- additionalRelatedArticlesFlag={additionalRelatedArticlesFlag}
290
- algoliaSearchKeys={algoliaSearchKeys}
291
- latestFromSectionFlag={latestFromSectionFlag}
292
- latestFromSection={latestFromSection.find(
293
- ({ section: sectionName }) => sectionName === section
294
- )}
295
285
  commentingConfig={commentingConfig}
296
286
  />
297
287
  </ContextProviderWithDefaults>
@@ -344,22 +334,6 @@ const renderArticleConfig = ({
344
334
  const { isLoggedIn, isMeteredExpired, isShared } = user;
345
335
  const isTeaser = !isShared && (isMeteredExpired || !isLoggedIn);
346
336
 
347
- const algoliaSearchKeys = {
348
- applicationId: "",
349
- apiKey: "",
350
- indexName: ""
351
- };
352
-
353
- const additionalRelatedArticlesFlag = boolean(
354
- "Additional Featured Articles",
355
- false,
356
- "User State"
357
- );
358
- const latestFromSectionFlag = boolean(
359
- "Latest from Section",
360
- false,
361
- "User State"
362
- );
363
337
  return (
364
338
  <Fragment>
365
339
  {link}
@@ -390,10 +364,7 @@ const renderArticleConfig = ({
390
364
  isMeteredExpired,
391
365
  scale,
392
366
  section,
393
- template,
394
- additionalRelatedArticlesFlag,
395
- latestFromSectionFlag,
396
- algoliaSearchKeys
367
+ template
397
368
  })}
398
369
  </ArticleConfigurator>
399
370
  }