@times-components/article 7.11.5 → 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 +27 -0
- package/package.json +7 -7
- package/showcase-helper.js +1 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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
|
+
|
|
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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @times-components/article
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @times-components/article
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [7.11.5](https://github.com/newsuk/times-components/compare/@times-components/article@7.11.4...@times-components/article@7.11.5) (2022-09-06)
|
|
7
34
|
|
|
8
35
|
**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.
|
|
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
|
-
"@times-components/article-magazine-comment": "3.
|
|
57
|
-
"@times-components/article-magazine-standard": "3.
|
|
58
|
-
"@times-components/article-main-comment": "2.
|
|
59
|
-
"@times-components/article-main-standard": "3.
|
|
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": "
|
|
77
|
+
"gitHead": "d6ce891cb47a7bd75fb96fa21bb0f5d8b1a6e856"
|
|
78
78
|
}
|
package/showcase-helper.js
CHANGED
|
@@ -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
|
-
|
|
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>
|