@moduk/frontend 1.1.19 → 1.1.21

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.
@@ -1,10 +1,10 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies-default",
4
+ name: "incident-default",
5
5
  fieldset: {
6
6
  legend: {
7
- text: "Which technologies do you use in your role?",
7
+ text: "Who did you report the incident to?",
8
8
  isPageHeading: true,
9
9
  classes: "govuk-fieldset__legend--l"
10
10
  }
@@ -14,24 +14,24 @@
14
14
  },
15
15
  items: [
16
16
  {
17
- value: "angular",
18
- text: "Angular"
17
+ value: "unit-medic",
18
+ text: "Unit medic"
19
19
  },
20
20
  {
21
- value: "nunjucks",
22
- text: "Nunjucks"
21
+ value: "hospital",
22
+ text: "Hospital"
23
23
  },
24
24
  {
25
- value: "react",
26
- text: "React"
25
+ value: "chain-of-command",
26
+ text: "Chain of command"
27
27
  },
28
28
  {
29
- value: "web-components",
30
- text: "Web components"
29
+ value: "colleague",
30
+ text: "Colleague"
31
31
  },
32
32
  {
33
- value: "another-technology",
34
- text: "Another technology"
33
+ value: "other-person",
34
+ text: "Other person"
35
35
  }
36
36
  ]
37
37
  }) -}}
@@ -1,10 +1,10 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies-not-as-page-heading",
4
+ name: "incident-not-as-page-heading",
5
5
  fieldset: {
6
6
  legend: {
7
- text: "Which technologies do you use in your role?"
7
+ text: "Who did you report the incident to?"
8
8
  }
9
9
  },
10
10
  hint: {
@@ -12,24 +12,24 @@
12
12
  },
13
13
  items: [
14
14
  {
15
- value: "angular",
16
- text: "Angular"
15
+ value: "unit-medic",
16
+ text: "Unit medic"
17
17
  },
18
18
  {
19
- value: "nunjucks",
20
- text: "Nunjucks"
19
+ value: "hospital",
20
+ text: "Hospital"
21
21
  },
22
22
  {
23
- value: "react",
24
- text: "React"
23
+ value: "chain-of-command",
24
+ text: "Chain of command"
25
25
  },
26
26
  {
27
- value: "web-components",
28
- text: "Web components"
27
+ value: "colleague",
28
+ text: "Colleague"
29
29
  },
30
30
  {
31
- value: "another-technology",
32
- text: "Another technology"
31
+ value: "other-person",
32
+ text: "Other person"
33
33
  }
34
34
  ]
35
35
  }) -}}
@@ -1,10 +1,10 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies-with-error-message",
4
+ name: "incident-with-error-message",
5
5
  fieldset: {
6
6
  legend: {
7
- text: "Which technologies do you use in your role?",
7
+ text: "Who did you report the incident to?",
8
8
  isPageHeading: true,
9
9
  classes: "govuk-fieldset__legend--l"
10
10
  }
@@ -13,28 +13,28 @@
13
13
  text: "Select all that apply."
14
14
  },
15
15
  errorMessage: {
16
- text: "Select which technologies you use in your role"
16
+ text: "Select who you reported the incident to"
17
17
  },
18
18
  items: [
19
19
  {
20
- value: "angular",
21
- text: "Angular"
20
+ value: "unit-medic",
21
+ text: "Unit medic"
22
22
  },
23
23
  {
24
- value: "nunjucks",
25
- text: "Nunjucks"
24
+ value: "hospital",
25
+ text: "Hospital"
26
26
  },
27
27
  {
28
- value: "react",
29
- text: "React"
28
+ value: "chain-of-command",
29
+ text: "Chain of command"
30
30
  },
31
31
  {
32
- value: "web-components",
33
- text: "Web components"
32
+ value: "colleague",
33
+ text: "Colleague"
34
34
  },
35
35
  {
36
- value: "another-technology",
37
- text: "Another technology"
36
+ value: "other-person",
37
+ text: "Other person"
38
38
  }
39
39
  ]
40
40
  }) -}}
@@ -1,40 +1,32 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies-with-item-hint",
4
+ name: "nationality-with-item-hint",
5
5
  fieldset: {
6
6
  legend: {
7
- text: "Which technologies do you use in your role?",
7
+ text: "What is your nationality?",
8
8
  isPageHeading: true,
9
9
  classes: "govuk-fieldset__legend--l"
10
10
  }
11
11
  },
12
12
  hint: {
13
- text: "Select all that apply."
13
+ text: "If you have dual nationality, select all options that are relevant to you."
14
14
  },
15
15
  items: [
16
16
  {
17
- value: "angular",
18
- text: "Angular"
19
- },
20
- {
21
- value: "nunjucks",
22
- text: "Nunjucks"
23
- },
24
- {
25
- value: "react",
26
- text: "React"
27
- },
28
- {
29
- value: "web-components",
30
- text: "Web components",
17
+ value: "british",
18
+ text: "British",
31
19
  hint: {
32
- text: "including any frameworks based on web component technology"
20
+ text: "including English, Scottish, Welsh and Northern Irish"
33
21
  }
34
22
  },
35
23
  {
36
- value: "another-technology",
37
- text: "Another technology"
24
+ value: "irish",
25
+ text: "Irish"
26
+ },
27
+ {
28
+ value: "another-country",
29
+ text: "Citizen of another country"
38
30
  }
39
31
  ]
40
32
  }) -}}
@@ -1,10 +1,10 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies-with-none-option",
4
+ name: "incident-with-none-option",
5
5
  fieldset: {
6
6
  legend: {
7
- text: "Which technologies do you use in your role?",
7
+ text: "Who did you report the incident to?",
8
8
  isPageHeading: true,
9
9
  classes: "govuk-fieldset__legend--l"
10
10
  }
@@ -14,27 +14,31 @@
14
14
  },
15
15
  items: [
16
16
  {
17
- value: "angular",
18
- text: "Angular"
17
+ value: "unit-medic",
18
+ text: "Unit medic"
19
19
  },
20
20
  {
21
- value: "nunjucks",
22
- text: "Nunjucks"
21
+ value: "hospital",
22
+ text: "Hospital"
23
23
  },
24
24
  {
25
- value: "react",
26
- text: "React"
25
+ value: "chain-of-command",
26
+ text: "Chain of command"
27
27
  },
28
28
  {
29
- value: "web-components",
30
- text: "Web components"
29
+ value: "colleague",
30
+ text: "Colleague"
31
+ },
32
+ {
33
+ value: "other-person",
34
+ text: "Other person"
31
35
  },
32
36
  {
33
37
  divider: "or"
34
38
  },
35
39
  {
36
40
  value: "none",
37
- text: "I do not use any of these technologies",
41
+ text: "I did not report the incident",
38
42
  behaviour: "exclusive"
39
43
  }
40
44
  ]
@@ -14,7 +14,7 @@
14
14
  text: "For example, 27 3 2023"
15
15
  },
16
16
  errorMessage: {
17
- text: "The start date of the contract cannot be more than six months ago"
17
+ text: "Contract start date must be in the future"
18
18
  },
19
19
  items: [
20
20
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
5
5
  "main": "dist/lib/index.js",
6
6
  "sass": "src/css/index.scss",
@@ -88,11 +88,11 @@
88
88
  "@11ty/eleventy": "^2.0.0",
89
89
  "@axe-core/playwright": "^4.7.1",
90
90
  "@babel/cli": "^7.21.0",
91
- "@babel/core": "^7.21.4",
92
- "@babel/preset-env": "^7.21.4",
91
+ "@babel/core": "^7.22.1",
92
+ "@babel/preset-env": "^7.22.4",
93
93
  "@babel/preset-react": "^7.22.3",
94
94
  "@babel/preset-typescript": "^7.21.5",
95
- "@commitlint/cli": "^17.6.3",
95
+ "@commitlint/cli": "^17.6.5",
96
96
  "@commitlint/config-conventional": "^17.4.4",
97
97
  "@playwright/test": "^1.32.3",
98
98
  "@release-it/conventional-changelog": "^5.1.1",