metadata_presenter 2.4.1 → 2.4.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.
@@ -0,0 +1,560 @@
1
+ {
2
+ "_id": "service.base",
3
+ "_type": "service.base",
4
+ "flow": {
5
+ "cf6dc32f-502c-4215-8c27-1151a45735bb": {
6
+ "_type": "flow.page",
7
+ "next": {
8
+ "default": "68fbb180-9a2a-48f6-9da6-545e28b8d35a"
9
+ }
10
+ },
11
+ "68fbb180-9a2a-48f6-9da6-545e28b8d35a": {
12
+ "_type": "flow.page",
13
+ "next": {
14
+ "default": "e8708909-922e-4eaf-87a5-096f7a713fcb"
15
+ }
16
+ },
17
+ "e8708909-922e-4eaf-87a5-096f7a713fcb": {
18
+ "_type": "flow.page",
19
+ "next": {
20
+ "default": "65a2e01a-57dc-4702-8e41-ed8f9921ac7d"
21
+ }
22
+ },
23
+ "65a2e01a-57dc-4702-8e41-ed8f9921ac7d": {
24
+ "_type": "flow.page",
25
+ "next": {
26
+ "default": "09e91fd9-7a46-4840-adbc-244d545cfef7"
27
+ }
28
+ },
29
+ "09e91fd9-7a46-4840-adbc-244d545cfef7": {
30
+ "_type": "flow.branch",
31
+ "title": "Branching point 1",
32
+ "next": {
33
+ "default": "520fde26-8124-4c67-a550-cd38d2ef304d",
34
+ "conditionals": [
35
+ {
36
+ "_type": "if",
37
+ "next": "37a94466-97fa-427f-88b2-09b369435d0d",
38
+ "expressions": [
39
+ {
40
+ "operator": "is",
41
+ "page": "65a2e01a-57dc-4702-8e41-ed8f9921ac7d",
42
+ "component": "ac41be35-914e-4b22-8683-f5477716b7d4",
43
+ "field": "c5571937-9388-4411-b5fa-34ddf9bc4ca0"
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ }
49
+ },
50
+ "37a94466-97fa-427f-88b2-09b369435d0d": {
51
+ "_type": "flow.page",
52
+ "next": {
53
+ "default": "13ecf9bd-5064-4cad-baf8-3dfa091928cb"
54
+ }
55
+ },
56
+ "13ecf9bd-5064-4cad-baf8-3dfa091928cb": {
57
+ "_type": "flow.page",
58
+ "next": {
59
+ "default": "e337070b-f636-49a3-a65c-f506675265f0"
60
+ }
61
+ },
62
+ "520fde26-8124-4c67-a550-cd38d2ef304d": {
63
+ "_type": "flow.page",
64
+ "next": {
65
+ "default": "ffadeb22-063b-4e4f-9502-bd753c706b1d"
66
+ }
67
+ },
68
+ "3a584d15-6805-4a21-bc05-b61c3be47857": {
69
+ "_type": "flow.page",
70
+ "next": {
71
+ "default": "2c7deb33-19eb-4569-86d6-462e3d828d87"
72
+ }
73
+ },
74
+ "be130ac1-f33d-4845-807d-89b23b90d205": {
75
+ "_type": "flow.page",
76
+ "next": {
77
+ "default": "e337070b-f636-49a3-a65c-f506675265f0"
78
+ }
79
+ },
80
+ "ffadeb22-063b-4e4f-9502-bd753c706b1d": {
81
+ "_type": "flow.branch",
82
+ "title": "Branching point 2",
83
+ "next": {
84
+ "default": "3a584d15-6805-4a21-bc05-b61c3be47857",
85
+ "conditionals": [
86
+ {
87
+ "_type": "if",
88
+ "next": "13ecf9bd-5064-4cad-baf8-3dfa091928cb",
89
+ "expressions": [
90
+ {
91
+ "operator": "is",
92
+ "page": "65a2e01a-57dc-4702-8e41-ed8f9921ac7d",
93
+ "component": "ac41be35-914e-4b22-8683-f5477716b7d4",
94
+ "field": "c5571937-9388-4411-b5fa-34ddf9bc4ca0"
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "_type": "if",
100
+ "next": "be130ac1-f33d-4845-807d-89b23b90d205",
101
+ "expressions": [
102
+ {
103
+ "operator": "is",
104
+ "page": "65a2e01a-57dc-4702-8e41-ed8f9921ac7d",
105
+ "component": "ac41be35-914e-4b22-8683-f5477716b7d4",
106
+ "field": "67160ff1-6f7c-43a8-8bf6-49b3d5f450f6"
107
+ }
108
+ ]
109
+ }
110
+ ]
111
+ }
112
+ },
113
+ "2c7deb33-19eb-4569-86d6-462e3d828d87": {
114
+ "_type": "flow.page",
115
+ "next": {
116
+ "default": "d80a2225-63c3-4944-873f-504b61311a15"
117
+ }
118
+ },
119
+ "d80a2225-63c3-4944-873f-504b61311a15": {
120
+ "_type": "flow.page",
121
+ "next": {
122
+ "default": "e337070b-f636-49a3-a65c-f506675265f0"
123
+ }
124
+ },
125
+ "e337070b-f636-49a3-a65c-f506675265f0": {
126
+ "_type": "flow.page",
127
+ "next": {
128
+ "default": "778e364b-9a7f-4829-8eb2-510e08f156a3"
129
+ }
130
+ },
131
+ "778e364b-9a7f-4829-8eb2-510e08f156a3": {
132
+ "_type": "flow.page",
133
+ "next": {
134
+ "default": ""
135
+ }
136
+ }
137
+ },
138
+ "pages": [
139
+ {
140
+ "_id": "page.start",
141
+ "url": "/",
142
+ "body": "Start page body",
143
+ "_type": "page.start",
144
+ "_uuid": "cf6dc32f-502c-4215-8c27-1151a45735bb",
145
+ "heading": "Branching Fixture 4",
146
+ "before_you_start": "Start page before you start"
147
+ },
148
+ {
149
+ "_id": "page.b",
150
+ "url": "page-b",
151
+ "body": "Page B body",
152
+ "lede": "",
153
+ "_type": "page.singlequestion",
154
+ "_uuid": "68fbb180-9a2a-48f6-9da6-545e28b8d35a",
155
+ "heading": "Page B",
156
+ "components": [
157
+ {
158
+ "_id": "page-b_text_1",
159
+ "hint": "",
160
+ "name": "page-b_text_1",
161
+ "_type": "text",
162
+ "_uuid": "509f0dc1-3066-4af3-8bd7-9aef99fdf22e",
163
+ "label": "Page B",
164
+ "errors": {},
165
+ "collection": "components",
166
+ "validation": {
167
+ "required": true,
168
+ "max_length": 20,
169
+ "min_length": 2
170
+ }
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "_id": "page.c",
176
+ "url": "page-c",
177
+ "body": "Page C body",
178
+ "lede": "",
179
+ "_type": "page.singlequestion",
180
+ "_uuid": "e8708909-922e-4eaf-87a5-096f7a713fcb",
181
+ "heading": "Page C",
182
+ "components": [
183
+ {
184
+ "_id": "page-c_text_1",
185
+ "hint": "",
186
+ "name": "page-c_text_1",
187
+ "_type": "text",
188
+ "_uuid": "fda1e5a1-ed5f-49c9-a943-dc930a520984",
189
+ "label": "Page C",
190
+ "errors": {},
191
+ "collection": "components",
192
+ "validation": {
193
+ "required": true,
194
+ "max_length": 20,
195
+ "min_length": 2
196
+ }
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "_id": "page.d",
202
+ "url": "page-d",
203
+ "body": "Page D body",
204
+ "lede": "",
205
+ "_type": "page.singlequestion",
206
+ "_uuid": "65a2e01a-57dc-4702-8e41-ed8f9921ac7d",
207
+ "heading": "Page D",
208
+ "components": [
209
+ {
210
+ "_id": "page-d_radios_1",
211
+ "hint": "",
212
+ "name": "page-d_radios_1",
213
+ "_type": "radios",
214
+ "_uuid": "ac41be35-914e-4b22-8683-f5477716b7d4",
215
+ "items": [
216
+ {
217
+ "_id": "page-d_radios_1_item_1",
218
+ "hint": "",
219
+ "name": "page-d_radios_1",
220
+ "_type": "radio",
221
+ "_uuid": "c5571937-9388-4411-b5fa-34ddf9bc4ca0",
222
+ "label": "Item 1",
223
+ "value": "value-1",
224
+ "errors": {},
225
+ "legend": "Item 1",
226
+ "collection": "components",
227
+ "validation": {
228
+ "required": true
229
+ }
230
+ },
231
+ {
232
+ "_id": "page-d_radios_1_item_2",
233
+ "hint": "",
234
+ "name": "page-d_radios_1",
235
+ "_type": "radio",
236
+ "_uuid": "67160ff1-6f7c-43a8-8bf6-49b3d5f450f6",
237
+ "label": "Item 2",
238
+ "value": "value-2",
239
+ "errors": {},
240
+ "legend": "Item 2",
241
+ "collection": "components",
242
+ "validation": {
243
+ "required": true
244
+ }
245
+ },
246
+ {
247
+ "_id": "page-d_radios_1_item_3",
248
+ "hint": "",
249
+ "name": "page-d_radios_1",
250
+ "_type": "radio",
251
+ "_uuid": "ea223fa3-06d0-4111-a7e9-c6b9012d7928",
252
+ "label": "Item 3",
253
+ "value": "value-3",
254
+ "errors": {},
255
+ "legend": "Item 3",
256
+ "collection": "components",
257
+ "validation": {
258
+ "required": true
259
+ }
260
+ }
261
+ ],
262
+ "errors": {},
263
+ "legend": "Page D",
264
+ "collection": "components",
265
+ "validation": {
266
+ "required": true
267
+ }
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "_id": "page.e",
273
+ "url": "page-e",
274
+ "body": "Page E body",
275
+ "lede": "",
276
+ "_type": "page.singlequestion",
277
+ "_uuid": "37a94466-97fa-427f-88b2-09b369435d0d",
278
+ "heading": "Page E",
279
+ "components": [
280
+ {
281
+ "_id": "page-e_text_1",
282
+ "hint": "",
283
+ "name": "page-e_text_1",
284
+ "_type": "text",
285
+ "_uuid": "d4295f66-7882-4673-bf0e-c9c9b627cb10",
286
+ "label": "Page E",
287
+ "errors": {},
288
+ "collection": "components",
289
+ "validation": {
290
+ "required": true,
291
+ "max_length": 20,
292
+ "min_length": 2
293
+ }
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "_id": "page.f",
299
+ "url": "page-f",
300
+ "body": "Page F body",
301
+ "lede": "",
302
+ "_type": "page.singlequestion",
303
+ "_uuid": "13ecf9bd-5064-4cad-baf8-3dfa091928cb",
304
+ "heading": "Page F",
305
+ "components": [
306
+ {
307
+ "_id": "page-f_text_1",
308
+ "hint": "",
309
+ "name": "page-f_text_1",
310
+ "_type": "text",
311
+ "_uuid": "f837fabd-044a-441c-b204-fcec79648b41",
312
+ "label": "Page F",
313
+ "errors": {},
314
+ "collection": "components",
315
+ "validation": {
316
+ "required": true,
317
+ "max_length": 20,
318
+ "min_length": 2
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "_id": "page.g",
325
+ "url": "page-g",
326
+ "body": "Page G body",
327
+ "lede": "",
328
+ "_type": "page.singlequestion",
329
+ "_uuid": "3a584d15-6805-4a21-bc05-b61c3be47857",
330
+ "heading": "Page G",
331
+ "components": [
332
+ {
333
+ "_id": "page-g_text_1",
334
+ "hint": "",
335
+ "name": "page-g_text_1",
336
+ "_type": "text",
337
+ "_uuid": "fa91e9cd-d935-4c15-bd92-5b6fafd81a91",
338
+ "label": "Page G",
339
+ "errors": {},
340
+ "collection": "components",
341
+ "validation": {
342
+ "required": true,
343
+ "max_length": 20,
344
+ "min_length": 2
345
+ }
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "_id": "page.i",
351
+ "url": "page-i",
352
+ "body": "Page I body",
353
+ "lede": "",
354
+ "_type": "page.singlequestion",
355
+ "_uuid": "520fde26-8124-4c67-a550-cd38d2ef304d",
356
+ "heading": "Page I",
357
+ "components": [
358
+ {
359
+ "_id": "page-i_text_1",
360
+ "hint": "",
361
+ "name": "page-i_text_1",
362
+ "_type": "text",
363
+ "_uuid": "ebd99204-0f15-4e6e-a937-c6da30b140f8",
364
+ "label": "Page I",
365
+ "errors": {},
366
+ "collection": "components",
367
+ "validation": {
368
+ "required": true,
369
+ "max_length": 20,
370
+ "min_length": 2
371
+ }
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "_id": "page.k",
377
+ "url": "page-k",
378
+ "body": "Page K body",
379
+ "lede": "",
380
+ "_type": "page.singlequestion",
381
+ "_uuid": "be130ac1-f33d-4845-807d-89b23b90d205",
382
+ "heading": "Page K",
383
+ "components": [
384
+ {
385
+ "_id": "page-k_text_1",
386
+ "hint": "",
387
+ "name": "page-k_text_1",
388
+ "_type": "text",
389
+ "_uuid": "ebd99204-0f15-4e6e-a937-c6da30b140f8",
390
+ "label": "Page K",
391
+ "errors": {},
392
+ "collection": "components",
393
+ "validation": {
394
+ "required": true,
395
+ "max_length": 20,
396
+ "min_length": 2
397
+ }
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "_id": "page.l",
403
+ "url": "page-l",
404
+ "body": "Page L body",
405
+ "lede": "",
406
+ "_type": "page.singlequestion",
407
+ "_uuid": "2c7deb33-19eb-4569-86d6-462e3d828d87",
408
+ "heading": "Page L",
409
+ "components": [
410
+ {
411
+ "_id": "page-l_text_1",
412
+ "hint": "",
413
+ "name": "page-l_text_1",
414
+ "_type": "text",
415
+ "_uuid": "ae38d9b2-e0d9-4f5c-8e38-c8c96b66cad9",
416
+ "label": "Page L",
417
+ "errors": {},
418
+ "collection": "components",
419
+ "validation": {
420
+ "required": true,
421
+ "max_length": 20,
422
+ "min_length": 2
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "_id": "page.m",
429
+ "url": "page-m",
430
+ "body": "Page M body",
431
+ "lede": "",
432
+ "_type": "page.singlequestion",
433
+ "_uuid": "d80a2225-63c3-4944-873f-504b61311a15",
434
+ "heading": "Page M",
435
+ "components": [
436
+ {
437
+ "_id": "page-m_text_1",
438
+ "hint": "",
439
+ "name": "page-m_text_1",
440
+ "_type": "text",
441
+ "_uuid": "147bb557-b2cf-4ba3-bbb3-7dc757cbb7e6",
442
+ "label": "Page M",
443
+ "errors": {},
444
+ "collection": "components",
445
+ "validation": {
446
+ "required": true,
447
+ "max_length": 20,
448
+ "min_length": 2
449
+ }
450
+ }
451
+ ]
452
+ },
453
+ {
454
+ "_id": "page.check-answers",
455
+ "url": "check-answers",
456
+ "_type": "page.checkanswers",
457
+ "_uuid": "e337070b-f636-49a3-a65c-f506675265f0",
458
+ "heading": "Check your answers",
459
+ "send_body": "By submitting this application you confirm that, to the best of your knowledge, the details you are providing are correct.",
460
+ "components": [
461
+ {
462
+ "_id": "check-answers_content_2",
463
+ "name": "check-answers_content_2",
464
+ "_type": "content",
465
+ "_uuid": "b065ff4f-90c5-4ba2-b4ac-c984a9dd2470",
466
+ "content": "Take the cannoli.",
467
+ "collection": "components"
468
+ }
469
+ ],
470
+ "send_heading": "Now send your application",
471
+ "add_component": "content",
472
+ "extra_components": [
473
+ {
474
+ "_id": "check-answers_content_1",
475
+ "name": "check-answers_content_1",
476
+ "_type": "content",
477
+ "_uuid": "3e6ef27e-91a6-402f-8291-b7ce669e824e",
478
+ "content": "Check yourself before you wreck yourself.",
479
+ "collection": "extra_components"
480
+ }
481
+ ],
482
+ "add_extra_component": "content"
483
+ },
484
+ {
485
+ "_id": "page.confirmation",
486
+ "url": "confirmation",
487
+ "body": "Some day I will be the most powerful Jedi ever!",
488
+ "lede": "",
489
+ "_type": "page.confirmation",
490
+ "_uuid": "778e364b-9a7f-4829-8eb2-510e08f156a3",
491
+ "heading": "Complaint sent",
492
+ "components": []
493
+ }
494
+ ],
495
+ "locale": "en",
496
+ "created_at": "2021-04-21T13:10:19Z",
497
+ "created_by": "099d5bf5-5f7b-444c-86ee-9e189cc1a369",
498
+ "service_id": "ea3bfb09-fc6d-4464-b025-9d6aadafc593",
499
+ "version_id": "429a8039-75b3-42b8-84dc-230fb371c71d",
500
+ "service_name": "Branching Fixture 4",
501
+ "configuration": {
502
+ "meta": {
503
+ "_id": "config.meta",
504
+ "_type": "config.meta",
505
+ "items": [
506
+ {
507
+ "_id": "config.meta--link",
508
+ "href": "cookies",
509
+ "text": "Cookies",
510
+ "_type": "link"
511
+ },
512
+ {
513
+ "_id": "config.meta--link--2",
514
+ "href": "privacy",
515
+ "text": "Privacy",
516
+ "_type": "link"
517
+ },
518
+ {
519
+ "_id": "config.meta--link--3",
520
+ "href": "accessibility",
521
+ "text": "Accessibility",
522
+ "_type": "link"
523
+ }
524
+ ]
525
+ },
526
+ "service": {
527
+ "_id": "config.service",
528
+ "_type": "config.service"
529
+ }
530
+ },
531
+ "standalone_pages": [
532
+ {
533
+ "_id": "page.cookies",
534
+ "url": "cookies",
535
+ "body": "Cookies body",
536
+ "_type": "page.standalone",
537
+ "_uuid": "fd52e7c0-03f7-4001-ae7e-f2e4142b0ccc",
538
+ "heading": "Cookies",
539
+ "components": []
540
+ },
541
+ {
542
+ "_id": "page.privacy",
543
+ "url": "privacy",
544
+ "body": "Privacy body",
545
+ "_type": "page.standalone",
546
+ "_uuid": "4b86fe8c-7723-4cce-9378-7b2510279e04",
547
+ "heading": "Privacy notice",
548
+ "components": []
549
+ },
550
+ {
551
+ "_id": "page.accessibility",
552
+ "url": "accessibility",
553
+ "body": "Accessibility body",
554
+ "_type": "page.standalone",
555
+ "_uuid": "c439c7fd-f411-4e11-8598-4023934bac93",
556
+ "heading": "Accessibility statement",
557
+ "components": []
558
+ }
559
+ ]
560
+ }
Binary file
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.4.1'.freeze
2
+ VERSION = '2.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-09 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder
@@ -160,16 +160,16 @@ dependencies:
160
160
  name: rubocop
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - "~>"
163
+ - - ">="
164
164
  - !ruby/object:Gem::Version
165
- version: 1.15.0
165
+ version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - "~>"
170
+ - - ">="
171
171
  - !ruby/object:Gem::Version
172
- version: 1.15.0
172
+ version: '0'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: rubocop-govuk
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -380,6 +380,20 @@ files:
380
380
  - default_metadata/string/error.virus_scan.json
381
381
  - default_text/content.json
382
382
  - fixtures/branching.json
383
+ - fixtures/branching_2.json
384
+ - fixtures/branching_2.png
385
+ - fixtures/branching_3.json
386
+ - fixtures/branching_3.png
387
+ - fixtures/branching_4.json
388
+ - fixtures/branching_4.png
389
+ - fixtures/branching_5.json
390
+ - fixtures/branching_5.png
391
+ - fixtures/branching_6.json
392
+ - fixtures/branching_6.png
393
+ - fixtures/branching_7.json
394
+ - fixtures/branching_7.png
395
+ - fixtures/branching_8.json
396
+ - fixtures/branching_8.png
383
397
  - fixtures/invalid_content_page.json
384
398
  - fixtures/no_component_page.json
385
399
  - fixtures/non_finished_service.json