@times-components/ts-components 1.15.1 → 1.15.2
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 +8 -0
- package/jest.config.js +1 -1
- package/package.json +16 -17
- package/src/components/latest-from-section/__tests__/__snapshots__/LatestFromSection.test.tsx.snap +14 -14
- package/src/components/newsletter-puff/__tests__/__snapshots__/InlineNewsletterPuff.test.tsx.snap +5 -5
- package/src/components/newsletter-puff/__tests__/__snapshots__/NewsletterPuffLink.test.tsx.snap +1 -1
- package/src/components/newsletter-puff/__tests__/__snapshots__/PreviewNewsletterPuff.test.tsx.snap +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [1.15.2](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.15.1...@times-components/ts-components@1.15.2) (2021-12-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/ts-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.15.1](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.15.0...@times-components/ts-components@1.15.1) (2021-11-25)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @times-components/ts-components
|
package/jest.config.js
CHANGED
|
@@ -9,7 +9,7 @@ const buildConfig = dir => {
|
|
|
9
9
|
return {
|
|
10
10
|
rootDir: path.join(dir, '../..'),
|
|
11
11
|
preset: 'react-native-web',
|
|
12
|
-
moduleFileExtensions: ['
|
|
12
|
+
moduleFileExtensions: ['js', 'ts', 'tsx', 'node', 'json'],
|
|
13
13
|
transformIgnorePatterns: [],
|
|
14
14
|
testEnvironment: 'jest-environment-jsdom-sixteen',
|
|
15
15
|
setupFiles: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/ts-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Reuseable Typescript React Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dev": "dist/index.js",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"fix:prettier": "prettier \"src/**/*.{ts,tsx}\" \"__tests__/**/*.tsx\" --write",
|
|
28
28
|
"fix:tslint": "tslint --fix --project .",
|
|
29
29
|
"lint": "tslint --project . && prettier \"src/**/*.{ts,tsx}\" --list-different",
|
|
30
|
-
"test": "jest",
|
|
31
30
|
"test:lint": "tslint --project . && prettier \"src/**/*.{ts,tsx}\" --list-different",
|
|
32
31
|
"test:unit": "jest --coverage",
|
|
33
32
|
"watch:tests": "run-s clean build:module && run-p \"build:module -- -w\" \"test:unit -- --watch\"",
|
|
@@ -50,17 +49,17 @@
|
|
|
50
49
|
"node": ">=8.9"
|
|
51
50
|
},
|
|
52
51
|
"dependencies": {
|
|
53
|
-
"@times-components/button": "2.4.
|
|
54
|
-
"@times-components/date-publication": "0.21.
|
|
55
|
-
"@times-components/icons": "2.16.
|
|
56
|
-
"@times-components/image": "6.8.
|
|
57
|
-
"@times-components/link": "3.6.
|
|
58
|
-
"@times-components/provider": "1.27.
|
|
59
|
-
"@times-components/provider-queries": "2.15.
|
|
60
|
-
"@times-components/related-articles": "6.6.
|
|
61
|
-
"@times-components/styleguide": "3.38.
|
|
62
|
-
"@times-components/ts-slices": "1.1.
|
|
63
|
-
"@times-components/utils": "6.5.
|
|
52
|
+
"@times-components/button": "2.4.66",
|
|
53
|
+
"@times-components/date-publication": "0.21.63",
|
|
54
|
+
"@times-components/icons": "2.16.5",
|
|
55
|
+
"@times-components/image": "6.8.8",
|
|
56
|
+
"@times-components/link": "3.6.46",
|
|
57
|
+
"@times-components/provider": "1.27.2",
|
|
58
|
+
"@times-components/provider-queries": "2.15.3",
|
|
59
|
+
"@times-components/related-articles": "6.6.18",
|
|
60
|
+
"@times-components/styleguide": "3.38.24",
|
|
61
|
+
"@times-components/ts-slices": "1.1.7",
|
|
62
|
+
"@times-components/utils": "6.5.8",
|
|
64
63
|
"algoliasearch": "4.9.0",
|
|
65
64
|
"graphql": "14.2.1",
|
|
66
65
|
"isomorphic-unfetch": "3.1.0",
|
|
@@ -80,9 +79,9 @@
|
|
|
80
79
|
"@storybook/react": "5.3.18",
|
|
81
80
|
"@testing-library/jest-dom": "^5.12.0",
|
|
82
81
|
"@testing-library/react": "^11.2.6",
|
|
83
|
-
"@times-components/provider-test-tools": "1.20.
|
|
84
|
-
"@times-components/storybook": "4.1.
|
|
85
|
-
"@times-components/test-utils": "2.3.
|
|
82
|
+
"@times-components/provider-test-tools": "1.20.2",
|
|
83
|
+
"@times-components/storybook": "4.1.68",
|
|
84
|
+
"@times-components/test-utils": "2.3.10",
|
|
86
85
|
"@types/graphql": "14.0.3",
|
|
87
86
|
"@types/jest": "24.9.1",
|
|
88
87
|
"@types/lodash.get": "4.4.6",
|
|
@@ -117,5 +116,5 @@
|
|
|
117
116
|
"@testing-library/jest-dom/extend-expect"
|
|
118
117
|
]
|
|
119
118
|
},
|
|
120
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "eec604346ec793e27892f0522ab81cafde40fd9e"
|
|
121
120
|
}
|
package/src/components/latest-from-section/__tests__/__snapshots__/LatestFromSection.test.tsx.snap
CHANGED
|
@@ -66,22 +66,22 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
66
66
|
</h3>
|
|
67
67
|
</div>
|
|
68
68
|
<div
|
|
69
|
-
class="
|
|
69
|
+
class="config__Base-bs1997-0 config__Base-bs1997-2 ETkHz config__Base-bs1997-0 config__Base-bs1997-2 ETkHz css-view-1dbjc4n"
|
|
70
70
|
>
|
|
71
71
|
<div
|
|
72
|
-
class="
|
|
72
|
+
class="responsive__SliceContainer-sc-1kirgpc-0 ioiqOj responsive__SliceContainer-sc-1kirgpc-0 ioiqOj css-view-1dbjc4n"
|
|
73
73
|
>
|
|
74
74
|
<div
|
|
75
|
-
class="
|
|
75
|
+
class="responsive__Base-sc-1lqbq6a-1 responsive__Base-sc-1lqbq6a-2 responsive__Base-sc-1lqbq6a-4 gpRihd responsive__Base-sc-1lqbq6a-1 responsive__Base-sc-1lqbq6a-2 responsive__Base-sc-1lqbq6a-4 gpRihd css-view-1dbjc4n"
|
|
76
76
|
>
|
|
77
77
|
<div
|
|
78
|
-
class="
|
|
78
|
+
class="responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx css-view-1dbjc4n"
|
|
79
79
|
>
|
|
80
80
|
<div
|
|
81
81
|
data-testid="related-article-item"
|
|
82
82
|
>
|
|
83
83
|
<a
|
|
84
|
-
class="
|
|
84
|
+
class="link__RespLink-sc-1ocvixa-0 dfMuic"
|
|
85
85
|
href="https://www.thetimes.co.uk/article/the-entire-tour-de-france-bows-to-the-greatness-of-mark-cavendish-2zq0zgfmn"
|
|
86
86
|
>
|
|
87
87
|
<div
|
|
@@ -102,7 +102,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
102
102
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 56.25%;"
|
|
103
103
|
>
|
|
104
104
|
<img
|
|
105
|
-
class="
|
|
105
|
+
class="responsive-sc-1nnon4d-0 fwlcWP"
|
|
106
106
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fb7fca746-d8ec-11eb-8f14-0bb645f59db0.jpg?resize=200&quality=3"
|
|
107
107
|
/>
|
|
108
108
|
<div
|
|
@@ -220,16 +220,16 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
220
220
|
</div>
|
|
221
221
|
</div>
|
|
222
222
|
<div
|
|
223
|
-
class="
|
|
223
|
+
class="responsive-sc-1kirgpc-1 fAXubH responsive-sc-1kirgpc-1 fAXubH css-view-1dbjc4n"
|
|
224
224
|
/>
|
|
225
225
|
<div
|
|
226
|
-
class="
|
|
226
|
+
class="responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx css-view-1dbjc4n"
|
|
227
227
|
>
|
|
228
228
|
<div
|
|
229
229
|
data-testid="related-article-item"
|
|
230
230
|
>
|
|
231
231
|
<a
|
|
232
|
-
class="
|
|
232
|
+
class="link__RespLink-sc-1ocvixa-0 dfMuic"
|
|
233
233
|
href="https://www.thetimes.co.uk/article/jordan-pickford-repels-everything-germans-muster-ktkcvc85p"
|
|
234
234
|
>
|
|
235
235
|
<div
|
|
@@ -250,7 +250,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
250
250
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 56.25%;"
|
|
251
251
|
>
|
|
252
252
|
<img
|
|
253
|
-
class="
|
|
253
|
+
class="responsive-sc-1nnon4d-0 fwlcWP"
|
|
254
254
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F65e48858-d913-11eb-b92f-5fe539a30c29.jpg?resize=200&quality=3"
|
|
255
255
|
/>
|
|
256
256
|
<div
|
|
@@ -368,16 +368,16 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
368
368
|
</div>
|
|
369
369
|
</div>
|
|
370
370
|
<div
|
|
371
|
-
class="
|
|
371
|
+
class="responsive-sc-1kirgpc-1 fAXubH responsive-sc-1kirgpc-1 fAXubH css-view-1dbjc4n"
|
|
372
372
|
/>
|
|
373
373
|
<div
|
|
374
|
-
class="
|
|
374
|
+
class="responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx responsive__ChildContainer-sc-1lqbq6a-0 hdJTrx css-view-1dbjc4n"
|
|
375
375
|
>
|
|
376
376
|
<div
|
|
377
377
|
data-testid="related-article-item"
|
|
378
378
|
>
|
|
379
379
|
<a
|
|
380
|
-
class="
|
|
380
|
+
class="link__RespLink-sc-1ocvixa-0 dfMuic"
|
|
381
381
|
href="https://www.thetimes.co.uk/article/the-tactical-masterstrokes-behind-englands-ruthless-win-s2s5j6k8l"
|
|
382
382
|
>
|
|
383
383
|
<div
|
|
@@ -398,7 +398,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
398
398
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 56.25%;"
|
|
399
399
|
>
|
|
400
400
|
<img
|
|
401
|
-
class="
|
|
401
|
+
class="responsive-sc-1nnon4d-0 fwlcWP"
|
|
402
402
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F798e1dce-d918-11eb-b92f-5fe539a30c29.jpg?resize=200&quality=3"
|
|
403
403
|
/>
|
|
404
404
|
<div
|
package/src/components/newsletter-puff/__tests__/__snapshots__/InlineNewsletterPuff.test.tsx.snap
CHANGED
|
@@ -16,7 +16,7 @@ exports[`Inline Newsletter Puff Clicking Subscribe renders 'saving' when the but
|
|
|
16
16
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 70.42253521126761%;"
|
|
17
17
|
>
|
|
18
18
|
<img
|
|
19
|
-
class="
|
|
19
|
+
class="responsive-sc-1nnon4d-0 iJeVQt"
|
|
20
20
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
21
21
|
/>
|
|
22
22
|
<div
|
|
@@ -96,7 +96,7 @@ exports[`Inline Newsletter Puff Manage preferences renders the success view aft
|
|
|
96
96
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 70.42253521126761%;"
|
|
97
97
|
>
|
|
98
98
|
<img
|
|
99
|
-
class="
|
|
99
|
+
class="responsive-sc-1nnon4d-0 iJeVQt"
|
|
100
100
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
101
101
|
/>
|
|
102
102
|
<div
|
|
@@ -138,7 +138,7 @@ exports[`Inline Newsletter Puff Manage preferences renders the success view aft
|
|
|
138
138
|
class="sc-bdVaJa sc-gZMcBi hBIkUX"
|
|
139
139
|
>
|
|
140
140
|
<a
|
|
141
|
-
class="
|
|
141
|
+
class="link__RespLink-sc-1ocvixa-0 dfMuic"
|
|
142
142
|
href="https://home.thetimes.co.uk/myNews"
|
|
143
143
|
>
|
|
144
144
|
<div
|
|
@@ -234,7 +234,7 @@ exports[`Inline Newsletter Puff renders signup state 1`] = `
|
|
|
234
234
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 70.42253521126761%;"
|
|
235
235
|
>
|
|
236
236
|
<img
|
|
237
|
-
class="
|
|
237
|
+
class="responsive-sc-1nnon4d-0 iJeVQt"
|
|
238
238
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
239
239
|
/>
|
|
240
240
|
<div
|
|
@@ -314,7 +314,7 @@ exports[`Inline Newsletter Puff renders signup view when not already subscribed
|
|
|
314
314
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 70.42253521126761%;"
|
|
315
315
|
>
|
|
316
316
|
<img
|
|
317
|
-
class="
|
|
317
|
+
class="responsive-sc-1nnon4d-0 iJeVQt"
|
|
318
318
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
319
319
|
/>
|
|
320
320
|
<div
|
package/src/components/newsletter-puff/__tests__/__snapshots__/PreviewNewsletterPuff.test.tsx.snap
CHANGED
|
@@ -16,7 +16,7 @@ exports[`Preview Newsletter Puff renders 1`] = `
|
|
|
16
16
|
style="display: table; height: 0px; overflow: hidden; position: relative; width: 100%; padding-bottom: 70.42253521126761%;"
|
|
17
17
|
>
|
|
18
18
|
<img
|
|
19
|
-
class="
|
|
19
|
+
class="responsive-sc-1nnon4d-0 iJeVQt"
|
|
20
20
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
21
21
|
/>
|
|
22
22
|
<div
|