metadata_presenter 2.15.2 → 2.15.6

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: ed17e32c3e0222e86ec8935840dd5830d8ed5390275ec2aa66a667765a2a654c
4
- data.tar.gz: 33a20608a8f1af401191298821709f81df9da87635daecaf04ff56c03e6f79c0
3
+ metadata.gz: 317f9738775d4f54ec39b2a26022a7d10849ea62f9dbe11a5d3438f934fe68a6
4
+ data.tar.gz: a06c2f83f04f48dfce34b257bbade85f4ebc1600b277391583689a2e8989dbfd
5
5
  SHA512:
6
- metadata.gz: 6def253d26c9e957934d524a0d2dca9c5871cc7867114c7904d739338da7526967853583d8f2274deb7f751cd98aea9de956d2acf1af519b8853a1947784320f
7
- data.tar.gz: 0e0075aa9e08a231f76ebe37bfa4767a051617606d6a7889d7a515c1dc8d2bfc2b8c65b6b44f901066b8a7fd86b9331f37ee9f02788195b67308d9652d4a0d4b
6
+ metadata.gz: ffd0e8343e0cdc239992f13703f180bfb9ca0a956e777ffb035ad59bdd302453aae62d3f67d8107cb9fc22d54a5d81b7a661d102a9e556fad6daf3933adf9d20
7
+ data.tar.gz: 2c4e98e7c2890061e4e3a9f34a7b337e22fdf3c2aceda4da7d52b7f46818098d72f02ac4080b381cda115bd4c63295ad110a86c41025a9fb0f94b330130e8e10
@@ -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,11 +2,12 @@
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": {
9
9
  "email": true,
10
+ "max_length": 256,
10
11
  "required": true
11
12
  }
12
13
  }
@@ -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.2'.freeze
2
+ VERSION = '2.15.6'.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.2
4
+ version: 2.15.6
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-11 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder