@times-components/article 7.11.7 → 7.12.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.12.0](https://github.com/newsuk/times-components/compare/@times-components/article@7.11.7...@times-components/article@7.12.0) (2022-09-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **TDP-000:** Remove latest from section ([#3146](https://github.com/newsuk/times-components/issues/3146)) ([7ac0fc3](https://github.com/newsuk/times-components/commit/7ac0fc30b87ca98641997c0d7421c356e8b46917))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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)
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.11.7",
3
+ "version": "7.12.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.7",
56
- "@times-components/article-magazine-comment": "3.55.7",
57
- "@times-components/article-magazine-standard": "3.54.7",
58
- "@times-components/article-main-comment": "2.53.7",
59
- "@times-components/article-main-standard": "3.60.7",
55
+ "@times-components/article-in-depth": "3.57.0",
56
+ "@times-components/article-magazine-comment": "3.56.0",
57
+ "@times-components/article-magazine-standard": "3.55.0",
58
+ "@times-components/article-main-comment": "2.54.0",
59
+ "@times-components/article-main-standard": "3.61.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": "ad0eb24711fc1dc791f954baeb35fb28410b87c8"
77
+ "gitHead": "d6ce891cb47a7bd75fb96fa21bb0f5d8b1a6e856"
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 =>
@@ -226,7 +225,6 @@ const renderArticle = ({
226
225
  isTeaser,
227
226
  isMeteredExpired,
228
227
  additionalRelatedArticlesFlag,
229
- latestFromSectionFlag,
230
228
  algoliaSearchKeys
231
229
  }) => (
232
230
  <ArticleProvider debounceTimeMs={0} id={id}>
@@ -288,10 +286,6 @@ const renderArticle = ({
288
286
  refetch={refetch}
289
287
  additionalRelatedArticlesFlag={additionalRelatedArticlesFlag}
290
288
  algoliaSearchKeys={algoliaSearchKeys}
291
- latestFromSectionFlag={latestFromSectionFlag}
292
- latestFromSection={latestFromSection.find(
293
- ({ section: sectionName }) => sectionName === section
294
- )}
295
289
  commentingConfig={commentingConfig}
296
290
  />
297
291
  </ContextProviderWithDefaults>
@@ -355,11 +349,7 @@ const renderArticleConfig = ({
355
349
  false,
356
350
  "User State"
357
351
  );
358
- const latestFromSectionFlag = boolean(
359
- "Latest from Section",
360
- false,
361
- "User State"
362
- );
352
+
363
353
  return (
364
354
  <Fragment>
365
355
  {link}
@@ -392,7 +382,6 @@ const renderArticleConfig = ({
392
382
  section,
393
383
  template,
394
384
  additionalRelatedArticlesFlag,
395
- latestFromSectionFlag,
396
385
  algoliaSearchKeys
397
386
  })}
398
387
  </ArticleConfigurator>