hof 20.0.0-beta.9 → 21.0.0-instrumentation-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
  2. package/.nyc_output/processinfo/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/components/date/index.js +1 -3
  5. package/components/date/templates/date.html +12 -15
  6. package/components/index.js +1 -0
  7. package/components/notify/index.js +60 -0
  8. package/components/notify/notify.js +25 -0
  9. package/config/sanitisation-rules.js +20 -17
  10. package/controller/base-controller.js +5 -3
  11. package/controller/controller.js +0 -39
  12. package/frontend/govuk-template/build/config.js +2 -2
  13. package/frontend/govuk-template/build/index.js +2 -2
  14. package/frontend/govuk-template/govuk_template.html +109 -0
  15. package/frontend/govuk-template/index.js +4 -4
  16. package/frontend/template-mixins/mixins/template-mixins.js +9 -20
  17. package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
  18. package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
  19. package/frontend/template-mixins/partials/forms/input-text-group.html +9 -12
  20. package/frontend/template-mixins/partials/forms/option-group.html +26 -33
  21. package/frontend/template-mixins/partials/forms/select.html +5 -10
  22. package/frontend/template-mixins/partials/forms/textarea-group.html +6 -15
  23. package/frontend/template-mixins/partials/mixins/panel.html +4 -3
  24. package/frontend/template-partials/views/accessibility.html +4 -4
  25. package/frontend/template-partials/views/cookies.html +1 -1
  26. package/frontend/template-partials/views/layout.html +22 -22
  27. package/frontend/template-partials/views/partials/back.html +1 -1
  28. package/frontend/template-partials/views/partials/bullet-list.html +1 -1
  29. package/frontend/template-partials/views/partials/confirmation-alert.html +3 -4
  30. package/frontend/template-partials/views/partials/continue.html +1 -1
  31. package/frontend/template-partials/views/partials/cookie-banner.html +24 -27
  32. package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
  33. package/frontend/template-partials/views/partials/external-link.html +1 -1
  34. package/frontend/template-partials/views/partials/form.html +1 -1
  35. package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
  36. package/frontend/template-partials/views/partials/navigation.html +6 -7
  37. package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
  38. package/frontend/template-partials/views/partials/table.html +7 -7
  39. package/frontend/template-partials/views/partials/validation-list.html +2 -2
  40. package/frontend/template-partials/views/partials/validation-summary.html +13 -14
  41. package/frontend/template-partials/views/session-timeout.html +1 -1
  42. package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
  43. package/frontend/themes/gov-uk/client-js/index.js +1 -6
  44. package/frontend/themes/gov-uk/styles/_cookie-banner.scss +1 -51
  45. package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
  46. package/frontend/themes/gov-uk/views/partials/form.html +9 -0
  47. package/frontend/themes/gov-uk/views/partials/forms/option-group.html +28 -0
  48. package/frontend/themes/gov-uk/views/partials/mixins/panel.html +3 -0
  49. package/frontend/themes/gov-uk/views/partials/validation-summary.html +24 -0
  50. package/frontend/toolkit/assets/javascript/character-count.js +4 -4
  51. package/frontend/toolkit/assets/javascript/form-focus.js +10 -1
  52. package/frontend/toolkit/assets/javascript/validation.js +6 -1
  53. package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
  54. package/index.js +1 -6
  55. package/lib/settings.js +2 -18
  56. package/middleware/errors.js +3 -0
  57. package/middleware/monitor.js +20 -0
  58. package/middleware/not-found.js +3 -0
  59. package/middleware/rate-limiter.js +0 -1
  60. package/package.json +5 -4
  61. package/sandbox/apps/sandbox/fields.js +11 -23
  62. package/sandbox/apps/sandbox/index.js +1 -5
  63. package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -9
  64. package/sandbox/apps/sandbox/translations/src/en/journey.json +1 -4
  65. package/sandbox/apps/sandbox/translations/src/en/pages.json +29 -2
  66. package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
  67. package/sandbox/apps/sandbox/views/confirmation.html +15 -0
  68. package/sandbox/assets/js/index.js +1 -1
  69. package/sandbox/assets/scss/app.scss +16 -68
  70. package/sandbox/package.json +1 -4
  71. package/sandbox/yarn.lock +0 -767
  72. package/wizard/index.js +13 -0
  73. package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  74. package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  75. package/.vscode/settings.json +0 -6
  76. package/frontend/govuk-template/build/govuk_template.html +0 -104
  77. package/frontend/govuk-template/govuk_template_generated.html +0 -104
  78. package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -38
  79. package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
  80. package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
  81. package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
  82. package/sandbox/.env +0 -1
  83. package/sandbox/apps/sandbox/translations/en/default.json +0 -203
  84. package/sandbox/public/css/app.css +0 -9439
  85. package/sandbox/public/images/icons/icon-caret-left.png +0 -0
  86. package/sandbox/public/images/icons/icon-complete.png +0 -0
  87. package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
  88. package/sandbox/public/js/bundle.js +0 -35644
@@ -1,203 +0,0 @@
1
- {
2
- "fields": {
3
- "landing-page-radio": {
4
- "legend": "Which form would you like to explore?",
5
- "hint": "Choose one of the options below and press continue.",
6
- "options": {
7
- "basic-form": {
8
- "label": "Basic form"
9
- },
10
- "complex-form": {
11
- "label": "Complex form"
12
- },
13
- "build-your-own-form": {
14
- "label": "Build your own form"
15
- }
16
- }
17
- },
18
- "name": {
19
- "label": "What is your full name?"
20
- },
21
- "dateOfBirth": {
22
- "legend": "What is your date of birth?",
23
- "hint": "For example, 31 10 1990"
24
- },
25
- "building": {
26
- "label": "Building and street"
27
- },
28
- "street": {
29
- "label": "Address line 2"
30
- },
31
- "townOrCity": {
32
- "label": "Town or city"
33
- },
34
- "postcode": {
35
- "label": "Postcode"
36
- },
37
- "incomeTypes": {
38
- "label": "Sources of income",
39
- "legend": "Select the options where you receive income from",
40
- "hint": "Select all options that apply to you.",
41
- "options": {
42
- "salary": {
43
- "label": "Salary"
44
- },
45
- "universal_credit": {
46
- "label": "Universal Credit"
47
- },
48
- "child_benefit": {
49
- "label": "Child Benefit"
50
- },
51
- "housing_benefit": {
52
- "label": "Housing Benefit"
53
- },
54
- "other": {
55
- "label": "Other"
56
- }
57
- }
58
- },
59
- "countryOfHearing": {
60
- "legend": "What country was the appeal lodged?",
61
- "options": {
62
- "englandAndWales": {
63
- "label": "England and Wales"
64
- },
65
- "scotland": {
66
- "label": "Scotland"
67
- },
68
- "northernIreland": {
69
- "label": "Northern Ireland"
70
- }
71
- }
72
- },
73
- "email": {
74
- "label": "Enter your email address"
75
- },
76
- "phone": {
77
- "label": "Phone number",
78
- "hint": "International phone numbers require the international dialling code, for example +33235066182"
79
- },
80
- "int-phone-number": {
81
- "legend": "International phone number"
82
- },
83
- "complaintDetails": {
84
- "label": "Complaint details",
85
- "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
86
- },
87
- "countrySelect": {
88
- "label": "Which country are you based in?",
89
- "hint": "Start to type the country name and options will appear"
90
- },
91
- "appealStages": {
92
- "label": "Appeal stage",
93
- "hint": "Choose an appeal stage from the drop down menu",
94
- "options": {
95
- "null": "Select..."
96
- }
97
- }
98
- },
99
- "journey": {
100
- "header": "HOF Bootstrap Sandbox Form",
101
- "confirmation": {
102
- "details": "Your reference number <br><strong>HDJ2123F</strong>"
103
- }
104
- },
105
- "pages": {
106
- "landing-page": {
107
- "header": "Landing page"
108
- },
109
- "build-your-own-form": {
110
- "title": "Build your own form",
111
- "subheader": "Access the build your own form guidance link"
112
- },
113
- "address": {
114
- "header": "What is your address in the UK?",
115
- "intro": "If you have no fixed address, enter an address where we can contact you."
116
- },
117
- "phone-number": {
118
- "header": "Enter your phone number"
119
- },
120
- "confirm": {
121
- "header": "Check your answers before submitting your application.",
122
- "sections": {
123
- "applicantsDetails": {
124
- "header": "Applicant's details"
125
- },
126
- "address": {
127
- "header": "Address"
128
- },
129
- "income": {
130
- "header": "Income"
131
- },
132
- "appealDetails": {
133
- "header": "Appeal details"
134
- },
135
- "countrySelect": {
136
- "header": "Country of residence"
137
- },
138
- "contactDetails": {
139
- "header": "Contact details"
140
- },
141
- "complaintDetails": {
142
- "header": "Complaint details"
143
- }
144
- }
145
- },
146
- "confirmation": {
147
- "title": "Application sent",
148
- "alert": "Application sent",
149
- "subheader": "What happens next",
150
- "content": "We’ll contact you with the decision of your application or if we need more information from you."
151
- }
152
- },
153
- "validation": {
154
- "landing-page-radio": {
155
- "required": "Select an option below and press continue"
156
- },
157
- "name": {
158
- "default": "Enter your full name"
159
- },
160
- "dateOfBirth": {
161
- "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
162
- "after": "Enter a date after 1 1 1900",
163
- "before": "Enter a date that is in the past"
164
- },
165
- "building": {
166
- "default": "Enter details of your building and street"
167
- },
168
- "townOrCity": {
169
- "default": "Enter a town or city",
170
- "regex": "Enter a town or city without including digits"
171
- },
172
- "postcode": {
173
- "default": "Enter your postcode"
174
- },
175
- "incomeTypes": {
176
- "default": "Select all options that apply to you."
177
- },
178
- "countryOfHearing": {
179
- "default": "Select where the appeal hearing is to be held"
180
- },
181
- "countrySelect": {
182
- "default": "Enter a valid country of residence",
183
- "required": "Enter your country of residence"
184
- },
185
- "email": {
186
- "default": "Enter your email address in the correct format"
187
- },
188
- "phone": {
189
- "default": "Enter your phone number"
190
- },
191
- "int-phone-number": {
192
- "required": "Enter an international phone number",
193
- "internationalPhoneNumber": "Enter a valid international phone number"
194
- },
195
- "complaintDetails": {
196
- "default": "Enter details about why you are making a complaint",
197
- "maxlength": "Keep to the {{maxlength}} character limit"
198
- },
199
- "appealStages": {
200
- "required": "Select an appeal stage from the list"
201
- }
202
- }
203
- }