@newskit-render/mock 0.35.0 → 0.37.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,40 @@
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.37.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/mock@0.36.0...@newskit-render/mock@0.37.0) (2022-05-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **PPDSR-763:** Integrate Brightcove video ([#706](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/706)) ([497131a](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/497131a83c6e74c2af19aa578e0249dd25fb835a))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.36.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/mock@0.35.0...@newskit-render/mock@0.36.0) (2022-04-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * **PPDSR-689:** Update index pages to use the new layout ([#673](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/673)) ([4d50f65](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/4d50f65af939233ec9d45f35e9ace91e5c1b50f7))
23
+
24
+
25
+
26
+
27
+
28
+ # [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)
29
+
30
+
31
+ ### Features
32
+
33
+ * **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))
34
+ * **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))
35
+
36
+
37
+
38
+
39
+
6
40
  ## [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
41
 
8
42
  **Note:** Version bump only for package @newskit-render/mock
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/mock",
3
- "version": "0.35.0",
3
+ "version": "0.37.1",
4
4
  "description": "Simple rest api with mock data",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -672,7 +672,50 @@ const { crop, video } = require("./media");
672
672
  }
673
673
  ]
674
674
  }
675
- }
675
+ },
676
+ {
677
+ id: "18376388",
678
+ url: "https://www.thesun.co.uk/sport/18376388/man-utd-arsenal-ruben-neves-transfer-blow-barcelona/",
679
+ label: null,
680
+ slug: "man-utd-arsenal-ruben-neves-transfer-blow-barcelona",
681
+ publisher: "SUN_UK",
682
+ headline: "Man Utd & Arsenal handed Neves blow with Wolves ace ‘crazy about Barcelona’",
683
+ kicker: "RU CAMP",
684
+ flags: [
685
+ "Gossip"
686
+ ],
687
+ topics: [],
688
+ template: "theme-football",
689
+ bylines: [
690
+ {
691
+ "value": "Gary Stonehouse",
692
+ "type": "inline"
693
+ }
694
+ ],
695
+ publishedDateTime: "2022-04-26T10:24:05.000Z",
696
+ updatedDateTime: "2022-04-26T18:30:23.000Z",
697
+ summary: {
698
+ children: [
699
+ {
700
+ "text": "PORTUGUESE star has been at Molineux since 2017 and helped them rise from the Championship to the Premier League. He still has two years left on his deal but wants to play in the Champions League."
701
+ }
702
+ ]
703
+ },
704
+ media: {
705
+ // TODO (PPDSR-XXX): In this example accountId is taken directly from Sun sitemap data, ideally this field should be populated in each article query
706
+ accountId: "5067014667001",
707
+ videoId: "6288769193001",
708
+ posterImage: {
709
+ crops: [
710
+ {
711
+ url: "https://www.thesun.co.uk/wp-content/uploads/2021/12/image-5923b09d66.jpg?strip=all&w=600&h=338&crop=1",
712
+ alt: null,
713
+ aspectRatio: null
714
+ }
715
+ ]
716
+ }
717
+ }
718
+ }
676
719
  ]
677
720
 
678
721
 
@@ -116,48 +116,82 @@ const getContentSectionOne = {
116
116
  {
117
117
  type: "slice",
118
118
  attributes: {
119
- name: "SUPPLEMENT_LEAD_AND_4_STACK",
119
+ name: "LEAD_1_FULL_WIDTH",
120
120
  },
121
121
  children: [
122
122
  {
123
123
  type: "article-reference-demo",
124
124
  attributes: {
125
- id: "18032190",
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: "18028215",
145
+ id: "17867694",
132
146
  },
133
147
  },
134
148
  {
135
149
  type: "article-reference-demo",
136
150
  attributes: {
137
- id: "17892378",
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: "18017648",
171
+ id: "17814872",
144
172
  },
145
173
  },
146
174
  {
147
175
  type: "article-reference-demo",
148
176
  attributes: {
149
- id: "18026705",
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: "slice",
189
+ type: 'slice',
156
190
  attributes: {
157
- name: "SECONDARY_4",
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: "SECONDARY_2_AND_2",
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: "17397556",
298
+ id: "18032190",
213
299
  },
214
300
  },
215
301
  {
216
302
  type: "article-reference-demo",
217
303
  attributes: {
218
- id: "17862461",
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
- text: "See more",
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: "SECONDARY_4",
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: "17397556",
382
+ id: "18032190",
276
383
  },
277
384
  },
278
385
  {
279
386
  type: "article-reference-demo",
280
387
  attributes: {
281
- id: "17842504",
388
+ id: "17863493",
282
389
  },
283
390
  },
284
391
  {
285
392
  type: "article-reference-demo",
286
393
  attributes: {
287
- id: "17861129",
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: "18026705",
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: "18017648",
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