@newskit-render/mock 0.35.0 → 0.36.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 +12 -0
- package/package.json +1 -1
- package/src/pages/body-genarator.js +253 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
# [0.35.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/mock@0.33.1...@newskit-render/mock@0.35.0) (2022-04-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PPDSR-XXX:** fix build step to deploy cra and core ([#683](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/683)) ([0a5c092](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/0a5c09280e0cf138cdd0a554d0dd8f47f4196eb7))
|
|
12
|
+
* **PPDSR-XXX:** fix create-render-app build ([#681](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/681)) ([ff14ff4](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/ff14ff4238ccb2c45ea1e56f02b9bcd163e14abd))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [0.33.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/mock@0.33.0...@newskit-render/mock@0.33.1) (2022-03-28)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @newskit-render/mock
|
package/package.json
CHANGED
|
@@ -116,48 +116,82 @@ const getContentSectionOne = {
|
|
|
116
116
|
{
|
|
117
117
|
type: "slice",
|
|
118
118
|
attributes: {
|
|
119
|
-
name: "
|
|
119
|
+
name: "LEAD_1_FULL_WIDTH",
|
|
120
120
|
},
|
|
121
121
|
children: [
|
|
122
122
|
{
|
|
123
123
|
type: "article-reference-demo",
|
|
124
124
|
attributes: {
|
|
125
|
-
id: "
|
|
125
|
+
id: "17842504",
|
|
126
|
+
},
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: "slice",
|
|
132
|
+
attributes: {
|
|
133
|
+
name: "SECONDARY_3",
|
|
134
|
+
},
|
|
135
|
+
children: [
|
|
136
|
+
{
|
|
137
|
+
type: "article-reference-demo",
|
|
138
|
+
attributes: {
|
|
139
|
+
id: "17814872",
|
|
126
140
|
},
|
|
127
141
|
},
|
|
128
142
|
{
|
|
129
143
|
type: "article-reference-demo",
|
|
130
144
|
attributes: {
|
|
131
|
-
id: "
|
|
145
|
+
id: "17867694",
|
|
132
146
|
},
|
|
133
147
|
},
|
|
134
148
|
{
|
|
135
149
|
type: "article-reference-demo",
|
|
136
150
|
attributes: {
|
|
137
|
-
id: "
|
|
151
|
+
id: "17863493",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
type: 'slice',
|
|
158
|
+
attributes: {
|
|
159
|
+
name:'SUPPLEMENT_LEAD_AND_4_STACK'
|
|
160
|
+
},
|
|
161
|
+
children: [
|
|
162
|
+
{
|
|
163
|
+
type: "article-reference-demo",
|
|
164
|
+
attributes: {
|
|
165
|
+
id: "17861129",
|
|
138
166
|
},
|
|
139
167
|
},
|
|
140
168
|
{
|
|
141
169
|
type: "article-reference-demo",
|
|
142
170
|
attributes: {
|
|
143
|
-
id: "
|
|
171
|
+
id: "17814872",
|
|
144
172
|
},
|
|
145
173
|
},
|
|
146
174
|
{
|
|
147
175
|
type: "article-reference-demo",
|
|
148
176
|
attributes: {
|
|
149
|
-
id: "
|
|
177
|
+
id: "17867694",
|
|
150
178
|
},
|
|
151
179
|
},
|
|
152
|
-
|
|
180
|
+
{
|
|
181
|
+
type: "article-reference-demo",
|
|
182
|
+
attributes: {
|
|
183
|
+
id: "17863493",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
]
|
|
153
187
|
},
|
|
154
188
|
{
|
|
155
|
-
type:
|
|
189
|
+
type: 'slice',
|
|
156
190
|
attributes: {
|
|
157
|
-
name:
|
|
191
|
+
name:'SECONDARY_4'
|
|
158
192
|
},
|
|
159
193
|
children: [
|
|
160
|
-
|
|
194
|
+
{
|
|
161
195
|
type: "article-reference-demo",
|
|
162
196
|
attributes: {
|
|
163
197
|
id: "17861129",
|
|
@@ -181,8 +215,60 @@ const getContentSectionOne = {
|
|
|
181
215
|
id: "17863493",
|
|
182
216
|
},
|
|
183
217
|
},
|
|
184
|
-
]
|
|
218
|
+
]
|
|
185
219
|
},
|
|
220
|
+
{
|
|
221
|
+
type: 'slice',
|
|
222
|
+
attributes: {
|
|
223
|
+
name:'SECONDARY_2_AND_2'
|
|
224
|
+
},
|
|
225
|
+
children: [
|
|
226
|
+
{
|
|
227
|
+
type: "article-reference-demo",
|
|
228
|
+
attributes: {
|
|
229
|
+
id: "17867694",
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: "article-reference-demo",
|
|
234
|
+
attributes: {
|
|
235
|
+
id: "17863493",
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
type: 'slice',
|
|
242
|
+
attributes: {
|
|
243
|
+
name: 'SECONDARY_4'
|
|
244
|
+
},
|
|
245
|
+
children: [
|
|
246
|
+
{
|
|
247
|
+
type: "article-reference-demo",
|
|
248
|
+
attributes: {
|
|
249
|
+
id: "17861129",
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: "article-reference-demo",
|
|
254
|
+
attributes: {
|
|
255
|
+
id: "17814872",
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
type: "article-reference-demo",
|
|
260
|
+
attributes: {
|
|
261
|
+
id: "17867694",
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type: "article-reference-demo",
|
|
266
|
+
attributes: {
|
|
267
|
+
id: "17863493",
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
]
|
|
271
|
+
}
|
|
186
272
|
],
|
|
187
273
|
};
|
|
188
274
|
|
|
@@ -203,19 +289,37 @@ const getContentSectionTwo = {
|
|
|
203
289
|
{
|
|
204
290
|
type: "slice",
|
|
205
291
|
attributes: {
|
|
206
|
-
name: "
|
|
292
|
+
name: "SUPPLEMENT_LEAD_AND_4_STACK",
|
|
207
293
|
},
|
|
208
294
|
children: [
|
|
209
295
|
{
|
|
210
296
|
type: "article-reference-demo",
|
|
211
297
|
attributes: {
|
|
212
|
-
id: "
|
|
298
|
+
id: "18032190",
|
|
213
299
|
},
|
|
214
300
|
},
|
|
215
301
|
{
|
|
216
302
|
type: "article-reference-demo",
|
|
217
303
|
attributes: {
|
|
218
|
-
id: "
|
|
304
|
+
id: "17863493",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
type: "article-reference-demo",
|
|
309
|
+
attributes: {
|
|
310
|
+
id: "17867694",
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
type: "article-reference-demo",
|
|
315
|
+
attributes: {
|
|
316
|
+
id: "17814872",
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
type: "article-reference-demo",
|
|
321
|
+
attributes: {
|
|
322
|
+
id: "17861129",
|
|
219
323
|
},
|
|
220
324
|
}
|
|
221
325
|
],
|
|
@@ -246,45 +350,48 @@ const getContentSectionTwo = {
|
|
|
246
350
|
}
|
|
247
351
|
],
|
|
248
352
|
},
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const getContentSectionThree = {
|
|
253
|
-
id: "123a4567-e89b-12d3-a456-426655440004",
|
|
254
|
-
type: "collection",
|
|
255
|
-
attributes: {
|
|
256
|
-
title: "Section Three",
|
|
257
|
-
link: {
|
|
258
|
-
type: "hyperlink",
|
|
353
|
+
{
|
|
354
|
+
type: 'slice',
|
|
259
355
|
attributes: {
|
|
260
|
-
|
|
261
|
-
url: "/section-three",
|
|
356
|
+
name:'SECONDARY_2_AND_2'
|
|
262
357
|
},
|
|
358
|
+
children: [
|
|
359
|
+
{
|
|
360
|
+
type: "article-reference-demo",
|
|
361
|
+
attributes: {
|
|
362
|
+
id: "17867694",
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
type: "article-reference-demo",
|
|
367
|
+
attributes: {
|
|
368
|
+
id: "17863493",
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
]
|
|
263
372
|
},
|
|
264
|
-
},
|
|
265
|
-
children: [
|
|
266
373
|
{
|
|
267
374
|
type: "slice",
|
|
268
375
|
attributes: {
|
|
269
|
-
name: "
|
|
376
|
+
name: "SUPPLEMENT_LEAD_AND_4_STACK",
|
|
270
377
|
},
|
|
271
378
|
children: [
|
|
272
379
|
{
|
|
273
380
|
type: "article-reference-demo",
|
|
274
381
|
attributes: {
|
|
275
|
-
id: "
|
|
382
|
+
id: "18032190",
|
|
276
383
|
},
|
|
277
384
|
},
|
|
278
385
|
{
|
|
279
386
|
type: "article-reference-demo",
|
|
280
387
|
attributes: {
|
|
281
|
-
id: "
|
|
388
|
+
id: "17863493",
|
|
282
389
|
},
|
|
283
390
|
},
|
|
284
391
|
{
|
|
285
392
|
type: "article-reference-demo",
|
|
286
393
|
attributes: {
|
|
287
|
-
id: "
|
|
394
|
+
id: "17867694",
|
|
288
395
|
},
|
|
289
396
|
},
|
|
290
397
|
{
|
|
@@ -293,6 +400,83 @@ const getContentSectionThree = {
|
|
|
293
400
|
id: "17814872",
|
|
294
401
|
},
|
|
295
402
|
},
|
|
403
|
+
{
|
|
404
|
+
type: "article-reference-demo",
|
|
405
|
+
attributes: {
|
|
406
|
+
id: "17861129",
|
|
407
|
+
},
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: "slice",
|
|
413
|
+
attributes: {
|
|
414
|
+
name: "LEAD_1_FULL_WIDTH",
|
|
415
|
+
},
|
|
416
|
+
children: [
|
|
417
|
+
{
|
|
418
|
+
type: "article-reference-demo",
|
|
419
|
+
attributes: {
|
|
420
|
+
id: "17842504",
|
|
421
|
+
},
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
type: "slice",
|
|
427
|
+
attributes: {
|
|
428
|
+
name: "SECONDARY_3",
|
|
429
|
+
},
|
|
430
|
+
children: [
|
|
431
|
+
{
|
|
432
|
+
type: "article-reference-demo",
|
|
433
|
+
attributes: {
|
|
434
|
+
id: "17856463",
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
type: "article-reference-demo",
|
|
439
|
+
attributes: {
|
|
440
|
+
id: "17851099",
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
type: "article-reference-demo",
|
|
445
|
+
attributes: {
|
|
446
|
+
id: "17842387",
|
|
447
|
+
},
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
const getContentSectionThree = {
|
|
455
|
+
id: "123a4567-e89b-12d3-a456-426655440004",
|
|
456
|
+
type: "collection",
|
|
457
|
+
attributes: {
|
|
458
|
+
title: "Section Three",
|
|
459
|
+
link: {
|
|
460
|
+
type: "hyperlink",
|
|
461
|
+
attributes: {
|
|
462
|
+
text: "See more",
|
|
463
|
+
url: "/section-three",
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
},
|
|
467
|
+
children: [
|
|
468
|
+
{
|
|
469
|
+
type: "slice",
|
|
470
|
+
attributes: {
|
|
471
|
+
name: "LEAD_1_FULL_WIDTH",
|
|
472
|
+
},
|
|
473
|
+
children: [
|
|
474
|
+
{
|
|
475
|
+
type: "article-reference-demo",
|
|
476
|
+
attributes: {
|
|
477
|
+
id: "17842504",
|
|
478
|
+
},
|
|
479
|
+
}
|
|
296
480
|
],
|
|
297
481
|
},
|
|
298
482
|
{
|
|
@@ -342,15 +526,36 @@ const getContentSectionThree = {
|
|
|
342
526
|
{
|
|
343
527
|
type: "article-reference-demo",
|
|
344
528
|
attributes: {
|
|
345
|
-
id: "
|
|
529
|
+
id: "17397556",
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
type: "article-reference-demo",
|
|
534
|
+
attributes: {
|
|
535
|
+
id: "17842504",
|
|
346
536
|
},
|
|
347
537
|
},
|
|
348
538
|
{
|
|
349
539
|
type: "article-reference-demo",
|
|
350
540
|
attributes: {
|
|
351
|
-
id: "
|
|
541
|
+
id: "17861129",
|
|
352
542
|
},
|
|
353
543
|
},
|
|
544
|
+
{
|
|
545
|
+
type: "article-reference-demo",
|
|
546
|
+
attributes: {
|
|
547
|
+
id: "17814872",
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
},
|
|
552
|
+
|
|
553
|
+
{
|
|
554
|
+
type: "slice",
|
|
555
|
+
attributes: {
|
|
556
|
+
name: "SECONDARY_2_AND_2",
|
|
557
|
+
},
|
|
558
|
+
children: [
|
|
354
559
|
{
|
|
355
560
|
type: "article-reference-demo",
|
|
356
561
|
attributes: {
|
|
@@ -365,6 +570,20 @@ const getContentSectionThree = {
|
|
|
365
570
|
},
|
|
366
571
|
],
|
|
367
572
|
},
|
|
573
|
+
{
|
|
574
|
+
type: "slice",
|
|
575
|
+
attributes: {
|
|
576
|
+
name: "LEAD_1_FULL_WIDTH",
|
|
577
|
+
},
|
|
578
|
+
children: [
|
|
579
|
+
{
|
|
580
|
+
type: "article-reference-demo",
|
|
581
|
+
attributes: {
|
|
582
|
+
id: "17842504",
|
|
583
|
+
},
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
},
|
|
368
587
|
],
|
|
369
588
|
};
|
|
370
589
|
|