@times-components/ts-components 1.29.0 → 1.30.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 +27 -0
- package/dist/components/latest-from-section/__tests__/LatestFromSection.test.js +1 -8
- package/package.json +14 -14
- package/src/components/latest-from-section/__tests__/LatestFromSection.test.tsx +0 -12
- package/src/components/latest-from-section/__tests__/__snapshots__/LatestFromSection.test.tsx.snap +15 -35
- package/src/components/newsletter-puff/__tests__/__snapshots__/AutoNewsletterPuff.test.tsx.snap +16 -8
- package/src/components/newsletter-puff/__tests__/__snapshots__/InlineNewsletterPuff.test.tsx.snap +24 -18
- package/src/components/newsletter-puff/__tests__/__snapshots__/PreviewNewsletterPuff.test.tsx.snap +5 -4
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
|
+
## [1.30.2](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.30.1...@times-components/ts-components@1.30.2) (2022-04-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/ts-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.30.1](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.30.0...@times-components/ts-components@1.30.1) (2022-04-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @times-components/ts-components
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [1.30.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.29.0...@times-components/ts-components@1.30.0) (2022-04-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **TDP-1703:** removed react-native use of its own <Image/> component ([#2906](https://github.com/newsuk/times-components/issues/2906)) ([2717c6f](https://github.com/newsuk/times-components/commit/2717c6f5005b195f9805ff63002bfa8b1ef026c3))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [1.29.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.28.1...@times-components/ts-components@1.29.0) (2022-04-05)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -19,12 +19,5 @@ describe('<LatestFromSection>', () => {
|
|
|
19
19
|
const { asFragment } = render(React.createElement(LatestFromSection, { analyticsStream: jest.fn(), latestFromSection: { section: 'Sport', items: [] } }));
|
|
20
20
|
expect(asFragment()).toMatchSnapshot();
|
|
21
21
|
});
|
|
22
|
-
it('no data ', () => {
|
|
23
|
-
const { asFragment } = render(React.createElement(LatestFromSection, { analyticsStream: jest.fn(), latestFromSection: {
|
|
24
|
-
section: 'Sport',
|
|
25
|
-
items: []
|
|
26
|
-
} }));
|
|
27
|
-
expect(asFragment()).toMatchSnapshot();
|
|
28
|
-
});
|
|
29
22
|
});
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGF0ZXN0RnJvbVNlY3Rpb24udGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2xhdGVzdC1mcm9tLXNlY3Rpb24vX190ZXN0c19fL0xhdGVzdEZyb21TZWN0aW9uLnRlc3QudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNoRCxPQUFPLEtBQUssTUFBTSxPQUFPLENBQUM7QUFDMUIsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsUUFBUSxDQUFDLHFCQUFxQixFQUFFLEdBQUcsRUFBRTtJQUNuQyxVQUFVLENBQUMsR0FBRyxFQUFFO1FBQ2QsTUFBTSxDQUFDLElBQUksR0FBRztZQUNaLGNBQWMsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO2dCQUNyQixhQUFhO2dCQUNiLGVBQWUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsUUFBUSxFQUFFLGVBQWUsRUFBRSxDQUFDO2FBQ3ZELENBQUM7U0FDSCxDQUFDO0lBQ0osQ0FBQyxDQUFDLENBQUM7SUFFSCxFQUFFLENBQUMsVUFBVSxFQUFFLEdBQUcsRUFBRTtRQUNsQixNQUFNLEVBQUUsVUFBVSxFQUFFLEdBQUcsTUFBTSxDQUMzQixvQkFBQyxpQkFBaUIsSUFDaEIsZUFBZSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFDMUIsaUJBQWlCLEVBQUUsaUJBQWlCLENBQUMsQ0FBQyxDQUFDLEdBQ3ZDLENBQ0gsQ0FBQztRQUNGLE1BQU0sQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUFDO0lBQ3pDLENBQUMsQ0FBQyxDQUFDO0lBQ0gsRUFBRSxDQUFDLFVBQVUsRUFBRSxHQUFHLEVBQUU7UUFDbEIsTUFBTSxFQUFFLFVBQVUsRUFBRSxHQUFHLE1BQU0sQ0FDM0Isb0JBQUMsaUJBQWlCLElBQ2hCLGVBQWUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQzFCLGlCQUFpQixFQUFFLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFLEdBQ2xELENBQ0gsQ0FBQztRQUNGLE1BQU0sQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUFDO0lBQ3pDLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/ts-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.2",
|
|
4
4
|
"description": "Reuseable Typescript React Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dev": "dist/index.js",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
"node": ">=8.9"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@times-components/button": "2.5.
|
|
54
|
-
"@times-components/date-publication": "0.22.
|
|
55
|
-
"@times-components/icons": "2.16.
|
|
56
|
-
"@times-components/image": "6.
|
|
57
|
-
"@times-components/link": "3.
|
|
58
|
-
"@times-components/provider": "1.30.
|
|
53
|
+
"@times-components/button": "2.5.1",
|
|
54
|
+
"@times-components/date-publication": "0.22.2",
|
|
55
|
+
"@times-components/icons": "2.16.12",
|
|
56
|
+
"@times-components/image": "6.10.1",
|
|
57
|
+
"@times-components/link": "3.8.1",
|
|
58
|
+
"@times-components/provider": "1.30.5",
|
|
59
59
|
"@times-components/provider-queries": "2.15.3",
|
|
60
|
-
"@times-components/related-articles": "6.7.
|
|
61
|
-
"@times-components/styleguide": "3.38.
|
|
62
|
-
"@times-components/ts-slices": "1.3.
|
|
63
|
-
"@times-components/utils": "6.
|
|
60
|
+
"@times-components/related-articles": "6.7.6",
|
|
61
|
+
"@times-components/styleguide": "3.38.31",
|
|
62
|
+
"@times-components/ts-slices": "1.3.2",
|
|
63
|
+
"@times-components/utils": "6.7.0",
|
|
64
64
|
"algoliasearch": "4.9.0",
|
|
65
65
|
"date-fns": "2.28.0",
|
|
66
66
|
"graphql": "14.2.1",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@storybook/react": "5.3.18",
|
|
82
82
|
"@testing-library/jest-dom": "^5.12.0",
|
|
83
83
|
"@testing-library/react": "^12.1.2",
|
|
84
|
-
"@times-components/provider-test-tools": "1.
|
|
85
|
-
"@times-components/storybook": "4.2.
|
|
84
|
+
"@times-components/provider-test-tools": "1.26.0",
|
|
85
|
+
"@times-components/storybook": "4.2.1",
|
|
86
86
|
"@times-components/test-utils": "2.3.10",
|
|
87
87
|
"@types/graphql": "14.0.3",
|
|
88
88
|
"@types/jest": "24.9.1",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"@testing-library/jest-dom/extend-expect"
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "676b642157efc0d07a81903a0a2d449e5cbf902e"
|
|
122
122
|
}
|
|
@@ -30,16 +30,4 @@ describe('<LatestFromSection>', () => {
|
|
|
30
30
|
);
|
|
31
31
|
expect(asFragment()).toMatchSnapshot();
|
|
32
32
|
});
|
|
33
|
-
it('no data ', () => {
|
|
34
|
-
const { asFragment } = render(
|
|
35
|
-
<LatestFromSection
|
|
36
|
-
analyticsStream={jest.fn()}
|
|
37
|
-
latestFromSection={{
|
|
38
|
-
section: 'Sport',
|
|
39
|
-
items: []
|
|
40
|
-
}}
|
|
41
|
-
/>
|
|
42
|
-
);
|
|
43
|
-
expect(asFragment()).toMatchSnapshot();
|
|
44
|
-
});
|
|
45
33
|
});
|
package/src/components/latest-from-section/__tests__/__snapshots__/LatestFromSection.test.tsx.snap
CHANGED
|
@@ -23,29 +23,6 @@ exports[`<LatestFromSection> no data 1`] = `
|
|
|
23
23
|
</DocumentFragment>
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
exports[`<LatestFromSection> no data 2`] = `
|
|
27
|
-
<DocumentFragment>
|
|
28
|
-
<div
|
|
29
|
-
class="css-view-1dbjc4n"
|
|
30
|
-
>
|
|
31
|
-
<div
|
|
32
|
-
class="css-view-1dbjc4n"
|
|
33
|
-
style="align-items: center; border-bottom-color: rgba(219,219,219,1.00); border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgba(219,219,219,1.00); border-top-width: 1px; display: flex; justify-content: center; padding: 15px 15px 15px 15px;"
|
|
34
|
-
>
|
|
35
|
-
<h3
|
|
36
|
-
aria-level="3"
|
|
37
|
-
class="css-reset-4rbku5 css-text-901oao"
|
|
38
|
-
dir="auto"
|
|
39
|
-
role="heading"
|
|
40
|
-
style="color: rgb(51, 51, 51); font-family: TimesModern-Bold; font-size: 25px; line-height: 27px; padding-top: 5px;"
|
|
41
|
-
>
|
|
42
|
-
Latest from Sport
|
|
43
|
-
</h3>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</DocumentFragment>
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
26
|
exports[`<LatestFromSection> renders 1`] = `
|
|
50
27
|
<DocumentFragment>
|
|
51
28
|
<div
|
|
@@ -96,8 +73,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
96
73
|
style="flex-grow: 1; flex-shrink: 1; flex-basis: 0%; margin-bottom: 10px; min-width: 100%;"
|
|
97
74
|
>
|
|
98
75
|
<div
|
|
99
|
-
class="
|
|
100
|
-
data-testid="Image"
|
|
76
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
101
77
|
>
|
|
102
78
|
<div
|
|
103
79
|
style="padding-bottom: 56.25%;"
|
|
@@ -107,8 +83,10 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
107
83
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fb7fca746-d8ec-11eb-8f14-0bb645f59db0.jpg?resize=200&quality=3"
|
|
108
84
|
/>
|
|
109
85
|
<div
|
|
110
|
-
class="
|
|
111
|
-
|
|
86
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
87
|
+
height="100%"
|
|
88
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
89
|
+
width="100%"
|
|
112
90
|
>
|
|
113
91
|
<svg
|
|
114
92
|
height="auto"
|
|
@@ -243,8 +221,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
243
221
|
style="flex-grow: 1; flex-shrink: 1; flex-basis: 0%; margin-bottom: 10px; min-width: 100%;"
|
|
244
222
|
>
|
|
245
223
|
<div
|
|
246
|
-
class="
|
|
247
|
-
data-testid="Image"
|
|
224
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
248
225
|
>
|
|
249
226
|
<div
|
|
250
227
|
style="padding-bottom: 56.25%;"
|
|
@@ -254,8 +231,10 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
254
231
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F65e48858-d913-11eb-b92f-5fe539a30c29.jpg?resize=200&quality=3"
|
|
255
232
|
/>
|
|
256
233
|
<div
|
|
257
|
-
class="
|
|
258
|
-
|
|
234
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
235
|
+
height="100%"
|
|
236
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
237
|
+
width="100%"
|
|
259
238
|
>
|
|
260
239
|
<svg
|
|
261
240
|
height="auto"
|
|
@@ -390,8 +369,7 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
390
369
|
style="flex-grow: 1; flex-shrink: 1; flex-basis: 0%; margin-bottom: 10px; min-width: 100%;"
|
|
391
370
|
>
|
|
392
371
|
<div
|
|
393
|
-
class="
|
|
394
|
-
data-testid="Image"
|
|
372
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
395
373
|
>
|
|
396
374
|
<div
|
|
397
375
|
style="padding-bottom: 56.25%;"
|
|
@@ -401,8 +379,10 @@ exports[`<LatestFromSection> renders 1`] = `
|
|
|
401
379
|
src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F798e1dce-d918-11eb-b92f-5fe539a30c29.jpg?resize=200&quality=3"
|
|
402
380
|
/>
|
|
403
381
|
<div
|
|
404
|
-
class="
|
|
405
|
-
|
|
382
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
383
|
+
height="100%"
|
|
384
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
385
|
+
width="100%"
|
|
406
386
|
>
|
|
407
387
|
<svg
|
|
408
388
|
height="auto"
|
package/src/components/newsletter-puff/__tests__/__snapshots__/AutoNewsletterPuff.test.tsx.snap
CHANGED
|
@@ -10,8 +10,10 @@ exports[`<AutoNewsletterPuff> display function always renders 1`] = `
|
|
|
10
10
|
style="height: 257px;"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="
|
|
14
|
-
|
|
13
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
14
|
+
height="100%"
|
|
15
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
16
|
+
width="100%"
|
|
15
17
|
>
|
|
16
18
|
<svg
|
|
17
19
|
height="auto"
|
|
@@ -47,8 +49,10 @@ exports[`<AutoNewsletterPuff> display function doesnt render without consent 1`]
|
|
|
47
49
|
style="height: 257px;"
|
|
48
50
|
>
|
|
49
51
|
<div
|
|
50
|
-
class="
|
|
51
|
-
|
|
52
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
53
|
+
height="100%"
|
|
54
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
55
|
+
width="100%"
|
|
52
56
|
>
|
|
53
57
|
<svg
|
|
54
58
|
height="auto"
|
|
@@ -84,8 +88,10 @@ exports[`<AutoNewsletterPuff> using a display function [1, 3] count = 1 1`] = `
|
|
|
84
88
|
style="height: 257px;"
|
|
85
89
|
>
|
|
86
90
|
<div
|
|
87
|
-
class="
|
|
88
|
-
|
|
91
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
92
|
+
height="100%"
|
|
93
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
94
|
+
width="100%"
|
|
89
95
|
>
|
|
90
96
|
<svg
|
|
91
97
|
height="auto"
|
|
@@ -121,8 +127,10 @@ exports[`<AutoNewsletterPuff> using a display function [1, 3] count = 2 1`] = `
|
|
|
121
127
|
style="height: 257px;"
|
|
122
128
|
>
|
|
123
129
|
<div
|
|
124
|
-
class="
|
|
125
|
-
|
|
130
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
131
|
+
height="100%"
|
|
132
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
133
|
+
width="100%"
|
|
126
134
|
>
|
|
127
135
|
<svg
|
|
128
136
|
height="auto"
|
package/src/components/newsletter-puff/__tests__/__snapshots__/InlineNewsletterPuff.test.tsx.snap
CHANGED
|
@@ -10,8 +10,7 @@ exports[`Inline Newsletter Puff Clicking Subscribe renders 'saving' when the but
|
|
|
10
10
|
class="sc-bdVaJa sc-bxivhb fstdFq"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="
|
|
14
|
-
data-testid="Image"
|
|
13
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
15
14
|
>
|
|
16
15
|
<div
|
|
17
16
|
style="padding-bottom: 70.42253521126761%;"
|
|
@@ -21,8 +20,10 @@ exports[`Inline Newsletter Puff Clicking Subscribe renders 'saving' when the but
|
|
|
21
20
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
22
21
|
/>
|
|
23
22
|
<div
|
|
24
|
-
class="
|
|
25
|
-
|
|
23
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
24
|
+
height="100%"
|
|
25
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
26
|
+
width="100%"
|
|
26
27
|
>
|
|
27
28
|
<svg
|
|
28
29
|
height="auto"
|
|
@@ -91,8 +92,7 @@ exports[`Inline Newsletter Puff Manage preferences renders the success view aft
|
|
|
91
92
|
class="sc-bdVaJa sc-bxivhb fstdFq"
|
|
92
93
|
>
|
|
93
94
|
<div
|
|
94
|
-
class="
|
|
95
|
-
data-testid="Image"
|
|
95
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
96
96
|
>
|
|
97
97
|
<div
|
|
98
98
|
style="padding-bottom: 70.42253521126761%;"
|
|
@@ -102,8 +102,10 @@ exports[`Inline Newsletter Puff Manage preferences renders the success view aft
|
|
|
102
102
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
103
103
|
/>
|
|
104
104
|
<div
|
|
105
|
-
class="
|
|
106
|
-
|
|
105
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
106
|
+
height="100%"
|
|
107
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
108
|
+
width="100%"
|
|
107
109
|
>
|
|
108
110
|
<svg
|
|
109
111
|
height="auto"
|
|
@@ -192,8 +194,10 @@ exports[`Inline Newsletter Puff renders placeholder when loading 1`] = `
|
|
|
192
194
|
style="height: 257px;"
|
|
193
195
|
>
|
|
194
196
|
<div
|
|
195
|
-
class="
|
|
196
|
-
|
|
197
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
198
|
+
height="100%"
|
|
199
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
200
|
+
width="100%"
|
|
197
201
|
>
|
|
198
202
|
<svg
|
|
199
203
|
height="auto"
|
|
@@ -230,8 +234,7 @@ exports[`Inline Newsletter Puff renders signup state 1`] = `
|
|
|
230
234
|
class="sc-bdVaJa sc-bxivhb fstdFq"
|
|
231
235
|
>
|
|
232
236
|
<div
|
|
233
|
-
class="
|
|
234
|
-
data-testid="Image"
|
|
237
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
235
238
|
>
|
|
236
239
|
<div
|
|
237
240
|
style="padding-bottom: 70.42253521126761%;"
|
|
@@ -241,8 +244,10 @@ exports[`Inline Newsletter Puff renders signup state 1`] = `
|
|
|
241
244
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
242
245
|
/>
|
|
243
246
|
<div
|
|
244
|
-
class="
|
|
245
|
-
|
|
247
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
248
|
+
height="100%"
|
|
249
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
250
|
+
width="100%"
|
|
246
251
|
>
|
|
247
252
|
<svg
|
|
248
253
|
height="auto"
|
|
@@ -311,8 +316,7 @@ exports[`Inline Newsletter Puff renders signup view when not already subscribed
|
|
|
311
316
|
class="sc-bdVaJa sc-bxivhb fstdFq"
|
|
312
317
|
>
|
|
313
318
|
<div
|
|
314
|
-
class="
|
|
315
|
-
data-testid="Image"
|
|
319
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
316
320
|
>
|
|
317
321
|
<div
|
|
318
322
|
style="padding-bottom: 70.42253521126761%;"
|
|
@@ -322,8 +326,10 @@ exports[`Inline Newsletter Puff renders signup view when not already subscribed
|
|
|
322
326
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
323
327
|
/>
|
|
324
328
|
<div
|
|
325
|
-
class="
|
|
326
|
-
|
|
329
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
330
|
+
height="100%"
|
|
331
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
332
|
+
width="100%"
|
|
327
333
|
>
|
|
328
334
|
<svg
|
|
329
335
|
height="auto"
|
package/src/components/newsletter-puff/__tests__/__snapshots__/PreviewNewsletterPuff.test.tsx.snap
CHANGED
|
@@ -10,8 +10,7 @@ exports[`Preview Newsletter Puff renders 1`] = `
|
|
|
10
10
|
class="sc-bdVaJa sc-bxivhb fstdFq"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="
|
|
14
|
-
data-testid="Image"
|
|
13
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
15
14
|
>
|
|
16
15
|
<div
|
|
17
16
|
style="padding-bottom: 70.42253521126761%;"
|
|
@@ -21,8 +20,10 @@ exports[`Preview Newsletter Puff renders 1`] = `
|
|
|
21
20
|
src="https://nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com/uploads/2aa9050e6c3d4de682f11a4802ebba96.jpg"
|
|
22
21
|
/>
|
|
23
22
|
<div
|
|
24
|
-
class="
|
|
25
|
-
|
|
23
|
+
class="tc-view__TcView-nuazoi-0 fPjBcr"
|
|
24
|
+
height="100%"
|
|
25
|
+
style="align-items: center; background-color: rgb(237, 237, 237); bottom: 0px; justify-content: center; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 0; border-radius: 0;"
|
|
26
|
+
width="100%"
|
|
26
27
|
>
|
|
27
28
|
<svg
|
|
28
29
|
height="auto"
|