@newskit-render/core 2.39.3-alpha.5 → 2.39.3-alpha.7
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.
|
@@ -14,13 +14,14 @@ describe('SectionTitle', () => {
|
|
|
14
14
|
})
|
|
15
15
|
|
|
16
16
|
test('SectionTitle without extra space', () => {
|
|
17
|
-
const
|
|
17
|
+
const document = renderWithTheme(SectionTitle, {
|
|
18
18
|
slice: getPageMock.page.body[0].children[1] as ArticleSlice,
|
|
19
19
|
sectionURL: getPageMock.page.body[0].link.url,
|
|
20
20
|
title: getPageMock.page.body[0].title,
|
|
21
21
|
addTopSpace: true,
|
|
22
22
|
})
|
|
23
|
-
expect(
|
|
23
|
+
expect(document.getByTestId('addTopSpace')).toBeInTheDocument()
|
|
24
|
+
expect(document).toMatchSnapshot()
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
test('SectionTitle alternative titlebar', () => {
|
|
@@ -141,81 +141,214 @@ exports[`SectionTitle SectionTitle with title 1`] = `
|
|
|
141
141
|
`;
|
|
142
142
|
|
|
143
143
|
exports[`SectionTitle SectionTitle without extra space 1`] = `
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
>
|
|
149
|
-
<hr
|
|
150
|
-
aria-hidden="true"
|
|
151
|
-
class="css-90bet9"
|
|
152
|
-
data-testid="divider"
|
|
153
|
-
/>
|
|
154
|
-
</div>
|
|
155
|
-
<div
|
|
156
|
-
class="css-ilgzgo"
|
|
157
|
-
data-testid="SectionTitleBar"
|
|
158
|
-
>
|
|
159
|
-
<div
|
|
160
|
-
class="css-1en1pwn"
|
|
161
|
-
>
|
|
144
|
+
Object {
|
|
145
|
+
"asFragment": [Function],
|
|
146
|
+
"baseElement": <body>
|
|
147
|
+
<div>
|
|
162
148
|
<div
|
|
163
|
-
class="css-
|
|
149
|
+
class="css-1mgwmyt"
|
|
150
|
+
data-testid="addTopSpace"
|
|
164
151
|
>
|
|
165
|
-
<
|
|
166
|
-
|
|
152
|
+
<hr
|
|
153
|
+
aria-hidden="true"
|
|
154
|
+
class="css-90bet9"
|
|
155
|
+
data-testid="divider"
|
|
156
|
+
/>
|
|
157
|
+
</div>
|
|
158
|
+
<div
|
|
159
|
+
class="css-ilgzgo"
|
|
160
|
+
data-testid="SectionTitleBar"
|
|
161
|
+
>
|
|
162
|
+
<div
|
|
163
|
+
class="css-1en1pwn"
|
|
167
164
|
>
|
|
168
|
-
<
|
|
169
|
-
class="
|
|
165
|
+
<div
|
|
166
|
+
class="css-krscqv"
|
|
170
167
|
>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
<section
|
|
169
|
+
class="css-3bvy7k"
|
|
170
|
+
>
|
|
171
|
+
<h3
|
|
172
|
+
class="nk-headline-heading css-4eltk5"
|
|
173
|
+
>
|
|
174
|
+
Section 1
|
|
175
|
+
</h3>
|
|
176
|
+
</section>
|
|
177
|
+
</div>
|
|
178
|
+
<div
|
|
179
|
+
class="css-1h0bvuz"
|
|
180
|
+
>
|
|
181
|
+
<a
|
|
182
|
+
class="css-686sn5"
|
|
183
|
+
href="/section-one"
|
|
184
|
+
>
|
|
185
|
+
<span
|
|
186
|
+
class="css-1xnclyu"
|
|
187
|
+
>
|
|
188
|
+
<span
|
|
189
|
+
class="css-1o99qvy"
|
|
190
|
+
>
|
|
191
|
+
<span
|
|
192
|
+
class="css-14vfegn"
|
|
193
|
+
>
|
|
194
|
+
Link
|
|
195
|
+
</span>
|
|
196
|
+
</span>
|
|
197
|
+
<span
|
|
198
|
+
class="css-1o99qvy"
|
|
199
|
+
>
|
|
200
|
+
<svg
|
|
201
|
+
aria-hidden="true"
|
|
202
|
+
class="css-19o8to0-EmotionIconBase ex0cdmw0"
|
|
203
|
+
fill="currentColor"
|
|
204
|
+
focusable="false"
|
|
205
|
+
overrides="[object Object]"
|
|
206
|
+
viewBox="0 0 24 24"
|
|
207
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
208
|
+
>
|
|
209
|
+
<path
|
|
210
|
+
d="M0 0h24v24H0z"
|
|
211
|
+
fill="none"
|
|
212
|
+
/>
|
|
213
|
+
<path
|
|
214
|
+
d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
215
|
+
/>
|
|
216
|
+
</svg>
|
|
217
|
+
</span>
|
|
218
|
+
</span>
|
|
219
|
+
</a>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
174
222
|
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</body>,
|
|
225
|
+
"container": <div>
|
|
226
|
+
<div
|
|
227
|
+
class="css-1mgwmyt"
|
|
228
|
+
data-testid="addTopSpace"
|
|
229
|
+
>
|
|
230
|
+
<hr
|
|
231
|
+
aria-hidden="true"
|
|
232
|
+
class="css-90bet9"
|
|
233
|
+
data-testid="divider"
|
|
234
|
+
/>
|
|
235
|
+
</div>
|
|
236
|
+
<div
|
|
237
|
+
class="css-ilgzgo"
|
|
238
|
+
data-testid="SectionTitleBar"
|
|
239
|
+
>
|
|
175
240
|
<div
|
|
176
|
-
class="css-
|
|
241
|
+
class="css-1en1pwn"
|
|
177
242
|
>
|
|
178
|
-
<
|
|
179
|
-
class="css-
|
|
180
|
-
href="/section-one"
|
|
243
|
+
<div
|
|
244
|
+
class="css-krscqv"
|
|
181
245
|
>
|
|
182
|
-
<
|
|
183
|
-
class="css-
|
|
246
|
+
<section
|
|
247
|
+
class="css-3bvy7k"
|
|
248
|
+
>
|
|
249
|
+
<h3
|
|
250
|
+
class="nk-headline-heading css-4eltk5"
|
|
251
|
+
>
|
|
252
|
+
Section 1
|
|
253
|
+
</h3>
|
|
254
|
+
</section>
|
|
255
|
+
</div>
|
|
256
|
+
<div
|
|
257
|
+
class="css-1h0bvuz"
|
|
258
|
+
>
|
|
259
|
+
<a
|
|
260
|
+
class="css-686sn5"
|
|
261
|
+
href="/section-one"
|
|
184
262
|
>
|
|
185
263
|
<span
|
|
186
|
-
class="css-
|
|
264
|
+
class="css-1xnclyu"
|
|
187
265
|
>
|
|
188
266
|
<span
|
|
189
|
-
class="css-
|
|
267
|
+
class="css-1o99qvy"
|
|
190
268
|
>
|
|
191
|
-
|
|
269
|
+
<span
|
|
270
|
+
class="css-14vfegn"
|
|
271
|
+
>
|
|
272
|
+
Link
|
|
273
|
+
</span>
|
|
192
274
|
</span>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
class="css-1o99qvy"
|
|
196
|
-
>
|
|
197
|
-
<svg
|
|
198
|
-
aria-hidden="true"
|
|
199
|
-
class="css-19o8to0-EmotionIconBase ex0cdmw0"
|
|
200
|
-
fill="currentColor"
|
|
201
|
-
focusable="false"
|
|
202
|
-
overrides="[object Object]"
|
|
203
|
-
viewBox="0 0 24 24"
|
|
204
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
275
|
+
<span
|
|
276
|
+
class="css-1o99qvy"
|
|
205
277
|
>
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
278
|
+
<svg
|
|
279
|
+
aria-hidden="true"
|
|
280
|
+
class="css-19o8to0-EmotionIconBase ex0cdmw0"
|
|
281
|
+
fill="currentColor"
|
|
282
|
+
focusable="false"
|
|
283
|
+
overrides="[object Object]"
|
|
284
|
+
viewBox="0 0 24 24"
|
|
285
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
286
|
+
>
|
|
287
|
+
<path
|
|
288
|
+
d="M0 0h24v24H0z"
|
|
289
|
+
fill="none"
|
|
290
|
+
/>
|
|
291
|
+
<path
|
|
292
|
+
d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
293
|
+
/>
|
|
294
|
+
</svg>
|
|
295
|
+
</span>
|
|
214
296
|
</span>
|
|
215
|
-
</
|
|
216
|
-
</
|
|
297
|
+
</a>
|
|
298
|
+
</div>
|
|
217
299
|
</div>
|
|
218
300
|
</div>
|
|
219
|
-
</div
|
|
220
|
-
|
|
301
|
+
</div>,
|
|
302
|
+
"debug": [Function],
|
|
303
|
+
"findAllByAltText": [Function],
|
|
304
|
+
"findAllByDisplayValue": [Function],
|
|
305
|
+
"findAllByLabelText": [Function],
|
|
306
|
+
"findAllByPlaceholderText": [Function],
|
|
307
|
+
"findAllByRole": [Function],
|
|
308
|
+
"findAllByTestId": [Function],
|
|
309
|
+
"findAllByText": [Function],
|
|
310
|
+
"findAllByTitle": [Function],
|
|
311
|
+
"findByAltText": [Function],
|
|
312
|
+
"findByDisplayValue": [Function],
|
|
313
|
+
"findByLabelText": [Function],
|
|
314
|
+
"findByPlaceholderText": [Function],
|
|
315
|
+
"findByRole": [Function],
|
|
316
|
+
"findByTestId": [Function],
|
|
317
|
+
"findByText": [Function],
|
|
318
|
+
"findByTitle": [Function],
|
|
319
|
+
"getAllByAltText": [Function],
|
|
320
|
+
"getAllByDisplayValue": [Function],
|
|
321
|
+
"getAllByLabelText": [Function],
|
|
322
|
+
"getAllByPlaceholderText": [Function],
|
|
323
|
+
"getAllByRole": [Function],
|
|
324
|
+
"getAllByTestId": [Function],
|
|
325
|
+
"getAllByText": [Function],
|
|
326
|
+
"getAllByTitle": [Function],
|
|
327
|
+
"getByAltText": [Function],
|
|
328
|
+
"getByDisplayValue": [Function],
|
|
329
|
+
"getByLabelText": [Function],
|
|
330
|
+
"getByPlaceholderText": [Function],
|
|
331
|
+
"getByRole": [Function],
|
|
332
|
+
"getByTestId": [Function],
|
|
333
|
+
"getByText": [Function],
|
|
334
|
+
"getByTitle": [Function],
|
|
335
|
+
"queryAllByAltText": [Function],
|
|
336
|
+
"queryAllByDisplayValue": [Function],
|
|
337
|
+
"queryAllByLabelText": [Function],
|
|
338
|
+
"queryAllByPlaceholderText": [Function],
|
|
339
|
+
"queryAllByRole": [Function],
|
|
340
|
+
"queryAllByTestId": [Function],
|
|
341
|
+
"queryAllByText": [Function],
|
|
342
|
+
"queryAllByTitle": [Function],
|
|
343
|
+
"queryByAltText": [Function],
|
|
344
|
+
"queryByDisplayValue": [Function],
|
|
345
|
+
"queryByLabelText": [Function],
|
|
346
|
+
"queryByPlaceholderText": [Function],
|
|
347
|
+
"queryByRole": [Function],
|
|
348
|
+
"queryByTestId": [Function],
|
|
349
|
+
"queryByText": [Function],
|
|
350
|
+
"queryByTitle": [Function],
|
|
351
|
+
"rerender": [Function],
|
|
352
|
+
"unmount": [Function],
|
|
353
|
+
}
|
|
221
354
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.39.3-alpha.
|
|
3
|
+
"version": "2.39.3-alpha.7",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@emotion-icons/material-outlined": "3.14.0",
|
|
40
40
|
"@emotion/react": "11.10.4",
|
|
41
41
|
"@emotion/styled": "11.10.4",
|
|
42
|
-
"@newskit-render/api": "^1.6.1-alpha.
|
|
43
|
-
"@newskit-render/auth": "^1.3.7-alpha.
|
|
44
|
-
"@newskit-render/checkout": "^2.2.2-alpha.
|
|
45
|
-
"@newskit-render/feature-flags": "^1.4.8-alpha.
|
|
46
|
-
"@newskit-render/feed": "^1.4.11-alpha.
|
|
47
|
-
"@newskit-render/my-account": "^4.1.3-alpha.
|
|
48
|
-
"@newskit-render/shared-components": "^2.1.2-alpha.
|
|
49
|
-
"@newskit-render/standalone-components": "^2.1.4-alpha.
|
|
50
|
-
"@newskit-render/validation": "^1.5.9-alpha.
|
|
42
|
+
"@newskit-render/api": "^1.6.1-alpha.2",
|
|
43
|
+
"@newskit-render/auth": "^1.3.7-alpha.2",
|
|
44
|
+
"@newskit-render/checkout": "^2.2.2-alpha.4",
|
|
45
|
+
"@newskit-render/feature-flags": "^1.4.8-alpha.2",
|
|
46
|
+
"@newskit-render/feed": "^1.4.11-alpha.3",
|
|
47
|
+
"@newskit-render/my-account": "^4.1.3-alpha.4",
|
|
48
|
+
"@newskit-render/shared-components": "^2.1.2-alpha.4",
|
|
49
|
+
"@newskit-render/standalone-components": "^2.1.4-alpha.4",
|
|
50
|
+
"@newskit-render/validation": "^1.5.9-alpha.2",
|
|
51
51
|
"cross-fetch": "3.1.5",
|
|
52
52
|
"graphql": "16.6.0",
|
|
53
53
|
"lodash.get": "4.4.2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"eslint": "8.30.0",
|
|
83
83
|
"eslint-config-airbnb": "19.0.4",
|
|
84
84
|
"eslint-config-airbnb-typescript": "17.0.0",
|
|
85
|
-
"eslint-config-next": "13.
|
|
85
|
+
"eslint-config-next": "13.1.2",
|
|
86
86
|
"eslint-config-prettier": "8.5.0",
|
|
87
87
|
"eslint-import-resolver-typescript": "3.5.2",
|
|
88
88
|
"eslint-loader": "4.0.2",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"eslint-plugin-flowtype": "8.0.3",
|
|
91
91
|
"eslint-plugin-prettier": "4.2.1",
|
|
92
92
|
"jest": "27.4.7",
|
|
93
|
-
"jest-junit": "
|
|
93
|
+
"jest-junit": "15.0.0",
|
|
94
94
|
"jest-watch-typeahead": "0.6.3",
|
|
95
95
|
"lint-staged": "13.1.0",
|
|
96
96
|
"next-transpile-modules": "10.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"prettier-eslint": "11.0.0",
|
|
99
99
|
"prettier-eslint-cli": "5.0.0",
|
|
100
100
|
"ts-jest": "27.1.3",
|
|
101
|
-
"typescript": "4.9.
|
|
101
|
+
"typescript": "4.9.4",
|
|
102
102
|
"wait-on": "6.0.1"
|
|
103
103
|
},
|
|
104
104
|
"precommit": [
|