hof 20.0.0-beta.9 → 20.0.0-redis-beta.32-redis-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/.github/workflows/automate-publish.yml +1 -1
  2. package/.github/workflows/automate-tag.yml +4 -4
  3. package/.nyc_output/cb764db8-e9f0-43bb-b3b1-7af57bb79bb5.json +1 -0
  4. package/.nyc_output/processinfo/cb764db8-e9f0-43bb-b3b1-7af57bb79bb5.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -1
  6. package/README.md +329 -256
  7. package/components/index.js +2 -1
  8. package/components/notify/index.js +60 -0
  9. package/components/notify/notify.js +25 -0
  10. package/config/hof-defaults.js +2 -1
  11. package/controller/controller.js +14 -4
  12. package/frontend/template-mixins/mixins/template-mixins.js +7 -3
  13. package/frontend/template-mixins/partials/forms/checkbox-group.html +10 -1
  14. package/frontend/template-mixins/partials/forms/input-text-date.html +1 -1
  15. package/frontend/template-mixins/partials/forms/input-text-group.html +5 -3
  16. package/frontend/template-mixins/partials/forms/option-group.html +9 -0
  17. package/frontend/template-mixins/partials/forms/select.html +1 -1
  18. package/frontend/template-mixins/partials/forms/textarea-group.html +2 -2
  19. package/frontend/template-partials/views/layout.html +10 -3
  20. package/frontend/template-partials/views/partials/cookie-banner.html +1 -1
  21. package/frontend/template-partials/views/partials/form.html +2 -1
  22. package/frontend/template-partials/views/partials/warn.html +7 -0
  23. package/frontend/themes/gov-uk/styles/govuk.scss +4 -0
  24. package/frontend/themes/gov-uk/styles/modules/_validation.scss +2 -2
  25. package/frontend/toolkit/assets/javascript/form-focus.js +10 -1
  26. package/frontend/toolkit/assets/javascript/progressive-reveal.js +3 -1
  27. package/frontend/toolkit/assets/javascript/validation.js +6 -1
  28. package/lib/health.js +1 -1
  29. package/lib/sessions.js +1 -1
  30. package/middleware/rate-limiter.js +3 -1
  31. package/package.json +4 -3
  32. package/sandbox/apps/sandbox/fields.js +1 -0
  33. package/sandbox/apps/sandbox/index.js +1 -5
  34. package/sandbox/apps/sandbox/translations/en/default.json +36 -15
  35. package/sandbox/assets/scss/app.scss +0 -52
  36. package/sandbox/package.json +2 -0
  37. package/sandbox/public/css/app.css +21 -6666
  38. package/sandbox/public/js/bundle.js +37 -2793
  39. package/sandbox/server.js +2 -1
  40. package/sandbox/yarn.lock +39 -564
  41. package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  42. package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  43. package/.vscode/settings.json +0 -6
  44. package/frontend/govuk-template/govuk_template_generated.html +0 -104
  45. package/sandbox/.env +0 -1
@@ -2,7 +2,6 @@
2
2
  "fields": {
3
3
  "landing-page-radio": {
4
4
  "legend": "Which form would you like to explore?",
5
- "hint": "Choose one of the options below and press continue.",
6
5
  "options": {
7
6
  "basic-form": {
8
7
  "label": "Basic form"
@@ -16,10 +15,10 @@
16
15
  }
17
16
  },
18
17
  "name": {
19
- "label": "What is your full name?"
18
+ "label": "Full name"
20
19
  },
21
20
  "dateOfBirth": {
22
- "legend": "What is your date of birth?",
21
+ "legend": "Date of birth",
23
22
  "hint": "For example, 31 10 1990"
24
23
  },
25
24
  "building": {
@@ -57,7 +56,7 @@
57
56
  }
58
57
  },
59
58
  "countryOfHearing": {
60
- "legend": "What country was the appeal lodged?",
59
+ "label": "Country of hearing",
61
60
  "options": {
62
61
  "englandAndWales": {
63
62
  "label": "England and Wales"
@@ -71,7 +70,7 @@
71
70
  }
72
71
  },
73
72
  "email": {
74
- "label": "Enter your email address"
73
+ "label": "Email address"
75
74
  },
76
75
  "phone": {
77
76
  "label": "Phone number",
@@ -81,42 +80,64 @@
81
80
  "legend": "International phone number"
82
81
  },
83
82
  "complaintDetails": {
84
- "label": "Complaint details",
85
- "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
83
+ "label": "Complaint details"
86
84
  },
87
85
  "countrySelect": {
88
- "label": "Which country are you based in?",
86
+ "label": "Select a country",
89
87
  "hint": "Start to type the country name and options will appear"
90
88
  },
91
89
  "appealStages": {
92
90
  "label": "Appeal stage",
93
- "hint": "Choose an appeal stage from the drop down menu",
94
91
  "options": {
95
92
  "null": "Select..."
96
93
  }
97
94
  }
98
95
  },
99
96
  "journey": {
100
- "header": "HOF Bootstrap Sandbox Form",
101
- "confirmation": {
102
- "details": "Your reference number <br><strong>HDJ2123F</strong>"
103
- }
97
+ "header": "HOF Bootstrap Sandbox Form"
104
98
  },
105
99
  "pages": {
106
100
  "landing-page": {
107
- "header": "Landing page"
101
+ "header": "Landing page",
102
+ "intro": "Choose one of the options below and press continue."
108
103
  },
109
104
  "build-your-own-form": {
110
105
  "title": "Build your own form",
111
106
  "subheader": "Access the build your own form guidance link"
112
107
  },
108
+ "name": {
109
+ "header": "What is your full name?"
110
+ },
111
+ "dob": {
112
+ "header": "What is your date of birth?"
113
+ },
113
114
  "address": {
114
115
  "header": "What is your address in the UK?",
115
116
  "intro": "If you have no fixed address, enter an address where we can contact you."
116
117
  },
118
+ "checkboxes": {
119
+ "header": "Where does your money come from each month?"
120
+ },
121
+ "radio": {
122
+ "header": "What country was the appeal lodged?"
123
+ },
124
+ "country-select": {
125
+ "header": "What country is your address located?"
126
+ },
127
+ "email": {
128
+ "header": "Enter your email address"
129
+ },
117
130
  "phone-number": {
118
131
  "header": "Enter your phone number"
119
132
  },
133
+ "text-input-area": {
134
+ "header": "What are the details of your complaint?",
135
+ "intro": "Briefly summarise your complaint. Include anything that can help our investigation."
136
+ },
137
+ "select": {
138
+ "header": "What is the appeal stage?",
139
+ "intro": "Choose an appeal stage from the drop down menu"
140
+ },
120
141
  "confirm": {
121
142
  "header": "Check your answers before submitting your application.",
122
143
  "sections": {
@@ -194,7 +215,7 @@
194
215
  },
195
216
  "complaintDetails": {
196
217
  "default": "Enter details about why you are making a complaint",
197
- "maxlength": "Keep to the {{maxlength}} character limit"
218
+ "maxlength": "Keep to the 5000 character limit"
198
219
  },
199
220
  "appealStages": {
200
221
  "required": "Select an appeal stage from the list"
@@ -1,6 +1,5 @@
1
1
 
2
2
  @import "../../../frontend/themes/gov-uk/styles/govuk";
3
- @import "../../../node_modules/govuk-frontend/govuk/all";
4
3
 
5
4
  //autocomplete styling
6
5
  .tt-menu {
@@ -26,54 +25,3 @@
26
25
  .twitter-typeahead {
27
26
  width: 100%;
28
27
  }
29
-
30
- // govuk cookie banner styling
31
- .govuk-banner--success {
32
- border-color: #00703c;
33
- color: #00703c;
34
- }
35
-
36
- .govuk-banner {
37
- border: 5px solid #1d70b8;
38
- font-size: 0;
39
- margin-bottom: 30px;
40
- padding: 10px;
41
- }
42
-
43
- .govuk-banner__icon{
44
- display: inline-block;
45
- }
46
-
47
- .govuk-banner__message {
48
- font-family: "GDS Transport", Arial, sans-serif;
49
- -webkit-font-smoothing: antialiased;
50
- font-weight: 400;
51
- font-size: 1rem;
52
- line-height: 1.25;
53
- color: #0b0c0c;
54
- display: block;
55
- overflow: hidden;
56
- display: inline-block;
57
- margin-left: 10px;
58
- }
59
-
60
- .govuk-banner__assistive {
61
- position: absolute !important;
62
- width: 1px !important;
63
- height: 1px !important;
64
- margin: 0 !important;
65
- padding: 0 !important;
66
- overflow: hidden !important;
67
- clip: rect(0 0 0 0) !important;
68
- clip-path: inset(50%) !important;
69
- border: 0 !important;
70
- white-space: nowrap !important;
71
- }
72
-
73
- .cookie-table-holder > table > tbody > tr > td:first-child{
74
- font-weight:bold;
75
- }
76
-
77
- .js-enabled #global-cookie-message {
78
- display: none;
79
- }
@@ -15,7 +15,9 @@
15
15
  },
16
16
  "author": "",
17
17
  "dependencies": {
18
+ "govuk-frontend": "3.14",
18
19
  "jquery": "^3.6.0",
20
+ "sass": "^1.53.0",
19
21
  "typeahead-aria": "^1.0.4"
20
22
  },
21
23
  "devDependencies": {