metadata_presenter 2.15.3 → 2.15.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c193e65ab0f33ff31b7493e07470de7020282d5bf194e7bfe3263ca7466b8c3b
4
- data.tar.gz: 7ae63df4cd59d812f375a716a1d04785ca1ad050577ca5cfa5ec3c355be78282
3
+ metadata.gz: d9e3440c00ba0d6f409a1bbf12067692b52b5fc9f82d236c4914e1ddee934b96
4
+ data.tar.gz: 0ebdbe91b53ec56f5af3b8a6c2fefd0c6e72eae410843e26120198afe4513e73
5
5
  SHA512:
6
- metadata.gz: 3df3cf7faee63fe939f79cdb59df22c6263beb1cb65f34878e7a8062da829f4c883bc085a5f7bd435ff4f1f39696d220d6e92db3163bab66816e60786ce3fa4f
7
- data.tar.gz: e84b4bc9e3a506d3f9161f17884cda0ce40d22859b11f002885978763b77db546404aeb36648dbd5da932b4d49061b6ccdeafa26a2e1551c38e3c2272284a13a
6
+ metadata.gz: c79b50a7ead0b35d3fca70af9c7f4a51b7d66a79963b7cc0f63dc1bbf9711fbfc8bdb3b4b9f39c20a092d63c166b23591b50a402b2b1cea6c13a50902c60f11b
7
+ data.tar.gz: faa1fab939c694bfe663c2dd0df71cd567f423af222e8a84fe16e05eeb572d2d6f2a36382b7efedfba7c7fb2afed7f2f3e655187d135bac84fc0e4949658bb11
@@ -17,7 +17,7 @@ Rails.application.config.supported_components =
17
17
  content: %w(content)
18
18
  },
19
19
  multiplequestions: {
20
- input: %w(text textarea number date radios checkboxes email),
20
+ input: %w(text textarea email number date radios checkboxes),
21
21
  content: %w(content)
22
22
  },
23
23
  singlequestion: {
@@ -2,7 +2,7 @@
2
2
  "_id": "component.email",
3
3
  "_type": "email",
4
4
  "errors": {},
5
- "label": "Question",
5
+ "label": "Email address question",
6
6
  "hint": "",
7
7
  "name": "component-name",
8
8
  "validation": {
@@ -358,8 +358,8 @@
358
358
  "before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally."
359
359
  },
360
360
  {
361
- "_id": "page.thisisareallylongnamethatshouldcauseavisualissue",
362
- "url": "thisisareallylongnamethatshouldcauseavisualissue",
361
+ "_id": "page.page-a",
362
+ "url": "page-a",
363
363
  "body": "Body section",
364
364
  "lede": "",
365
365
  "_type": "page.singlequestion",
@@ -367,9 +367,9 @@
367
367
  "heading": "",
368
368
  "components": [
369
369
  {
370
- "_id": "thisisareallylongnamethatshouldcauseavisualissue_text_1",
370
+ "_id": "page-a_text_1",
371
371
  "hint": "",
372
- "name": "thisisareallylongnamethatshouldcauseavisualissue_text_1",
372
+ "name": "page-a_text_1",
373
373
  "_type": "text",
374
374
  "_uuid": "bcedde64-8996-4911-9426-fafaf91008e0",
375
375
  "label": "Page A",
@@ -281,8 +281,8 @@
281
281
  "before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally."
282
282
  },
283
283
  {
284
- "_id": "page.thisisareallylongnamethatshouldcauseavisualissue",
285
- "url": "thisisareallylongnamethatshouldcauseavisualissue",
284
+ "_id": "page.page-a",
285
+ "url": "page-a",
286
286
  "body": "Body section",
287
287
  "lede": "",
288
288
  "_type": "page.singlequestion",
@@ -290,9 +290,9 @@
290
290
  "heading": "",
291
291
  "components": [
292
292
  {
293
- "_id": "thisisareallylongnamethatshouldcauseavisualissue_text_1",
293
+ "_id": "page-a_text_1",
294
294
  "hint": "",
295
- "name": "thisisareallylongnamethatshouldcauseavisualissue_text_1",
295
+ "name": "page-a_text_1",
296
296
  "_type": "text",
297
297
  "_uuid": "bcedde64-8996-4911-9426-fafaf91008e0",
298
298
  "label": "Page A",
@@ -11,10 +11,10 @@
11
11
  "9e1ba77f-f1e5-42f4-b090-437aa9af7f73": {
12
12
  "_type": "flow.page",
13
13
  "next": {
14
- "default": "df1ba645-f748-46d0-ad75-f34112653e37"
14
+ "default": "adcb61c3-52b1-479b-be51-1bb610876d54"
15
15
  }
16
16
  },
17
- "df1ba645-f748-46d0-ad75-f34112653e37": {
17
+ "adcb61c3-52b1-479b-be51-1bb610876d54": {
18
18
  "_type": "flow.page",
19
19
  "next": {
20
20
  "default": "4b8c6bf3-878a-4446-9198-48351b3e2185"
@@ -63,12 +63,6 @@
63
63
  }
64
64
  },
65
65
  "80420693-d6f2-4fce-a860-777ca774a6f5": {
66
- "_type": "flow.page",
67
- "next": {
68
- "default": "adcb61c3-52b1-479b-be51-1bb610876d54"
69
- }
70
- },
71
- "adcb61c3-52b1-479b-be51-1bb610876d54" : {
72
66
  "_type": "flow.page",
73
67
  "next": {
74
68
  "default": "2ef7d11e-0307-49e9-9fe2-345dc528dd66"
@@ -133,35 +127,23 @@
133
127
  "_id": "page.email-address",
134
128
  "url": "email-address",
135
129
  "body": "Body section",
136
- "lede": "",
137
130
  "_type": "page.singlequestion",
138
- "_uuid": "df1ba645-f748-46d0-ad75-f34112653e37",
131
+ "_uuid": "adcb61c3-52b1-479b-be51-1bb610876d54",
139
132
  "heading": "Question",
140
133
  "components": [
141
134
  {
142
- "_id": "email-address_text_1",
135
+ "_id": "email-address_email_1",
143
136
  "hint": "",
144
- "name": "email-address_text_1",
145
- "_type": "text",
146
- "_uuid": "f27e5788-e784-4bfd-8b21-2fab8ce95abb",
137
+ "name": "email-address_email_1",
138
+ "_type": "email",
139
+ "_uuid": "482cb2d0-fda7-4e5c-9591-96dcb546e181",
147
140
  "label": "Email address",
148
- "errors": {
149
- "format": {},
150
- "required": {
151
- "any": "Enter an email address"
152
- },
153
- "max_length": {
154
- "any": "%{control} is too long."
155
- },
156
- "min_length": {
157
- "any": "%{control} is too short."
158
- }
159
- },
141
+ "errors": {},
160
142
  "collection": "components",
161
143
  "validation": {
162
144
  "required": true,
163
- "max_length": 30,
164
- "min_length": 2
145
+ "email": true,
146
+ "max_length": 256
165
147
  }
166
148
  }
167
149
  ]
@@ -182,7 +164,18 @@
182
164
  "_type": "text",
183
165
  "_uuid": "5ad372fa-ed35-477f-b471-4d444f991210",
184
166
  "label": "Parent name",
185
- "errors": {},
167
+ "errors": {
168
+ "format": {},
169
+ "required": {
170
+ "any": "Enter a parent name"
171
+ },
172
+ "max_length": {
173
+ "any": "%{control} is too long."
174
+ },
175
+ "min_length": {
176
+ "any": "%{control} is too short."
177
+ }
178
+ },
186
179
  "collection": "components",
187
180
  "validation": {
188
181
  "required": false,
@@ -509,31 +502,6 @@
509
502
  "add_component": "content",
510
503
  "section_heading": "Chain of Command"
511
504
  },
512
- {
513
- "_id": "page.email",
514
- "url": "email",
515
- "body": "Body section",
516
- "_type": "page.singlequestion",
517
- "_uuid": "adcb61c3-52b1-479b-be51-1bb610876d54",
518
- "heading": "Email",
519
- "components": [
520
- {
521
- "_id": "email-address_email_1",
522
- "hint": "",
523
- "name": "email-address_email_1",
524
- "_type": "email",
525
- "_uuid": "482cb2d0-fda7-4e5c-9591-96dcb546e181",
526
- "label": "Email address",
527
- "errors": {},
528
- "collection": "components",
529
- "validation": {
530
- "required": true,
531
- "email": true,
532
- "max_length": 256
533
- }
534
- }
535
- ]
536
- },
537
505
  {
538
506
  "_id": "page.dog-picture",
539
507
  "url": "dog-picture",
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.15.3'.freeze
2
+ VERSION = '2.15.7'.freeze
3
3
  end
@@ -11,13 +11,10 @@
11
11
  },
12
12
  "allOf": [
13
13
  {
14
- "$ref": "http://gov.uk/schema/v1.0.0/definition/field"
14
+ "$ref": "definition.field"
15
15
  },
16
16
  {
17
- "$ref": "http://gov.uk/schema/v1.0.0/definition/widthclass/input"
17
+ "$ref": "definition.width_class.input"
18
18
  }
19
- ],
20
- "validation": {
21
- "format": "email"
22
- }
19
+ ]
23
20
  }
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.15.3
4
+ version: 2.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder