@times-components/ts-components 1.97.1 → 1.98.1

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,28 @@
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.98.1](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.98.0...@times-components/ts-components@1.98.1) (2024-07-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **TMD-529:** add background colour to image container ([#3883](https://github.com/newsuk/times-components/issues/3883)) ([034e31d](https://github.com/newsuk/times-components/commit/034e31dd00463ff6ec431ca7425179e1ad5495c6))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.98.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.97.1...@times-components/ts-components@1.98.0) (2024-07-02)
18
+
19
+
20
+ ### Features
21
+
22
+ * **TMD-329:** remove placeholder for article image ([#3856](https://github.com/newsuk/times-components/issues/3856)) ([9f1d249](https://github.com/newsuk/times-components/commit/9f1d249ac23312d00cb47a995767deb856e81a71))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.97.1](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.97.0...@times-components/ts-components@1.97.1) (2024-07-02)
7
29
 
8
30
 
package/jest.config.js CHANGED
@@ -37,7 +37,7 @@ const buildConfig = dir => {
37
37
  ],
38
38
  coverageThreshold: {
39
39
  global: {
40
- statements: 96,
40
+ statements: 95.9,
41
41
  branches: 83,
42
42
  lines: 96,
43
43
  functions: 96
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/ts-components",
3
- "version": "1.97.1",
3
+ "version": "1.98.1",
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.10.60",
54
- "@times-components/date-publication": "0.30.33",
55
- "@times-components/icons": "2.22.11",
56
- "@times-components/image": "6.17.20",
57
- "@times-components/link": "3.17.33",
58
- "@times-components/provider": "1.40.34",
53
+ "@times-components/button": "2.10.61",
54
+ "@times-components/date-publication": "0.30.34",
55
+ "@times-components/icons": "2.22.12",
56
+ "@times-components/image": "6.18.1",
57
+ "@times-components/link": "3.17.34",
58
+ "@times-components/provider": "1.40.35",
59
59
  "@times-components/provider-queries": "2.21.1",
60
- "@times-components/related-articles": "6.17.73",
61
- "@times-components/ts-slices": "1.9.21",
62
- "@times-components/ts-styleguide": "1.50.33",
63
- "@times-components/utils": "6.25.1",
60
+ "@times-components/related-articles": "6.17.75",
61
+ "@times-components/ts-slices": "1.9.22",
62
+ "@times-components/ts-styleguide": "1.50.34",
63
+ "@times-components/utils": "6.26.0",
64
64
  "algoliasearch": "4.9.0",
65
65
  "date-fns": "2.28.0",
66
66
  "date-fns-tz": "1.3.3",
@@ -83,7 +83,7 @@
83
83
  "@testing-library/jest-dom": "^5.12.0",
84
84
  "@testing-library/react": "^12.1.2",
85
85
  "@times-components/provider-test-tools": "1.29.3",
86
- "@times-components/storybook": "4.12.33",
86
+ "@times-components/storybook": "4.12.34",
87
87
  "@times-components/test-utils": "2.4.2",
88
88
  "@types/lodash.get": "4.4.6",
89
89
  "@types/lodash.keyby": "4.6.6",
@@ -115,5 +115,5 @@
115
115
  "@testing-library/jest-dom/extend-expect"
116
116
  ]
117
117
  },
118
- "gitHead": "5f2208e4f247d59c6ec09107cb211a362ac80763"
118
+ "gitHead": "14054b4b2f567910b8f5703e311ad2b522f834b3"
119
119
  }
@@ -70,41 +70,16 @@ exports[`<LatestFromSection> renders 1`] = `
70
70
  >
71
71
  <div
72
72
  class="tc-view__TcView-nuazoi-0 fPjBcr"
73
+ style="background-color: rgb(239, 239, 239);"
73
74
  >
74
75
  <div
75
76
  style="padding-bottom: 56.25%;"
76
77
  >
77
78
  <img
78
- class="responsive-sc-1nnon4d-0 iJeVQt"
79
+ class="responsive-sc-1nnon4d-0 bAbKns"
79
80
  loading="lazy"
80
81
  src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fb7fca746-d8ec-11eb-8f14-0bb645f59db0.jpg"
81
82
  />
82
- <div
83
- class="tc-view__TcView-nuazoi-0 fPjBcr"
84
- height="100%"
85
- 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;"
86
- width="100%"
87
- >
88
- <svg
89
- height="auto"
90
- style="max-width: 25%; max-height: 50%;"
91
- version="1.1"
92
- viewBox="145 50 108 120"
93
- width="100%"
94
- >
95
- <g
96
- fill="none"
97
- fill-rule="evenodd"
98
- stroke="none"
99
- stroke-width="1"
100
- >
101
- <path
102
- d="M211.26076,54 L211.231367,54 L147.67512,54 L145,85.7081465 L146.922096,86.4489102 C146.922096,86.4489102 164.867589,68.1355181 168.301115,65.0001546 C171.728017,61.8689133 174.237132,61.0885763 176.436179,60.3527593 C180.998206,59.169681 185.977937,59.2150255 185.977937,59.2150255 L186.109581,59.2150255 L186.109581,156.560932 L169.259886,164.473953 L169.259886,166 L228.735147,166 L228.735147,164.473953 L211.889177,156.560932 L211.889177,59.2150255 L212.01751,59.2150255 C212.01751,59.2150255 216.992272,59.169681 221.558854,60.3527593 C223.757072,61.0885763 226.266601,61.8689133 229.691848,65.0001546 C233.130341,68.1355181 251.071695,86.4489102 251.071695,86.4489102 L253,85.7081465 L250.317842,54 L211.270695,54 L211.242545,54"
103
- fill="#FFFFFF"
104
- />
105
- </g>
106
- </svg>
107
- </div>
108
83
  </div>
109
84
  </div>
110
85
  </div>
@@ -185,41 +160,16 @@ exports[`<LatestFromSection> renders 1`] = `
185
160
  >
186
161
  <div
187
162
  class="tc-view__TcView-nuazoi-0 fPjBcr"
163
+ style="background-color: rgb(239, 239, 239);"
188
164
  >
189
165
  <div
190
166
  style="padding-bottom: 56.25%;"
191
167
  >
192
168
  <img
193
- class="responsive-sc-1nnon4d-0 iJeVQt"
169
+ class="responsive-sc-1nnon4d-0 bAbKns"
194
170
  loading="lazy"
195
171
  src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F65e48858-d913-11eb-b92f-5fe539a30c29.jpg"
196
172
  />
197
- <div
198
- class="tc-view__TcView-nuazoi-0 fPjBcr"
199
- height="100%"
200
- 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;"
201
- width="100%"
202
- >
203
- <svg
204
- height="auto"
205
- style="max-width: 25%; max-height: 50%;"
206
- version="1.1"
207
- viewBox="145 50 108 120"
208
- width="100%"
209
- >
210
- <g
211
- fill="none"
212
- fill-rule="evenodd"
213
- stroke="none"
214
- stroke-width="1"
215
- >
216
- <path
217
- d="M211.26076,54 L211.231367,54 L147.67512,54 L145,85.7081465 L146.922096,86.4489102 C146.922096,86.4489102 164.867589,68.1355181 168.301115,65.0001546 C171.728017,61.8689133 174.237132,61.0885763 176.436179,60.3527593 C180.998206,59.169681 185.977937,59.2150255 185.977937,59.2150255 L186.109581,59.2150255 L186.109581,156.560932 L169.259886,164.473953 L169.259886,166 L228.735147,166 L228.735147,164.473953 L211.889177,156.560932 L211.889177,59.2150255 L212.01751,59.2150255 C212.01751,59.2150255 216.992272,59.169681 221.558854,60.3527593 C223.757072,61.0885763 226.266601,61.8689133 229.691848,65.0001546 C233.130341,68.1355181 251.071695,86.4489102 251.071695,86.4489102 L253,85.7081465 L250.317842,54 L211.270695,54 L211.242545,54"
218
- fill="#FFFFFF"
219
- />
220
- </g>
221
- </svg>
222
- </div>
223
173
  </div>
224
174
  </div>
225
175
  </div>
@@ -300,41 +250,16 @@ exports[`<LatestFromSection> renders 1`] = `
300
250
  >
301
251
  <div
302
252
  class="tc-view__TcView-nuazoi-0 fPjBcr"
253
+ style="background-color: rgb(239, 239, 239);"
303
254
  >
304
255
  <div
305
256
  style="padding-bottom: 56.25%;"
306
257
  >
307
258
  <img
308
- class="responsive-sc-1nnon4d-0 iJeVQt"
259
+ class="responsive-sc-1nnon4d-0 bAbKns"
309
260
  loading="lazy"
310
261
  src="https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F798e1dce-d918-11eb-b92f-5fe539a30c29.jpg"
311
262
  />
312
- <div
313
- class="tc-view__TcView-nuazoi-0 fPjBcr"
314
- height="100%"
315
- 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;"
316
- width="100%"
317
- >
318
- <svg
319
- height="auto"
320
- style="max-width: 25%; max-height: 50%;"
321
- version="1.1"
322
- viewBox="145 50 108 120"
323
- width="100%"
324
- >
325
- <g
326
- fill="none"
327
- fill-rule="evenodd"
328
- stroke="none"
329
- stroke-width="1"
330
- >
331
- <path
332
- d="M211.26076,54 L211.231367,54 L147.67512,54 L145,85.7081465 L146.922096,86.4489102 C146.922096,86.4489102 164.867589,68.1355181 168.301115,65.0001546 C171.728017,61.8689133 174.237132,61.0885763 176.436179,60.3527593 C180.998206,59.169681 185.977937,59.2150255 185.977937,59.2150255 L186.109581,59.2150255 L186.109581,156.560932 L169.259886,164.473953 L169.259886,166 L228.735147,166 L228.735147,164.473953 L211.889177,156.560932 L211.889177,59.2150255 L212.01751,59.2150255 C212.01751,59.2150255 216.992272,59.169681 221.558854,60.3527593 C223.757072,61.0885763 226.266601,61.8689133 229.691848,65.0001546 C233.130341,68.1355181 251.071695,86.4489102 251.071695,86.4489102 L253,85.7081465 L250.317842,54 L211.270695,54 L211.242545,54"
333
- fill="#FFFFFF"
334
- />
335
- </g>
336
- </svg>
337
- </div>
338
263
  </div>
339
264
  </div>
340
265
  </div>