@dwp/govuk-casa 9.6.6 → 9.7.0
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.
- package/locales/cy/error.json +1 -0
- package/locales/en/error.json +1 -0
- package/package.json +15 -15
- package/views/casa/components/character-count/template.njk +1 -0
- package/views/casa/components/checkboxes/template.njk +1 -0
- package/views/casa/components/date-input/template.njk +1 -0
- package/views/casa/components/input/template.njk +1 -0
- package/views/casa/components/postal-address-object/template.njk +5 -0
- package/views/casa/components/radios/template.njk +1 -0
- package/views/casa/components/select/template.njk +1 -0
- package/views/casa/components/textarea/template.njk +1 -0
package/locales/cy/error.json
CHANGED
package/locales/en/error.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dwp/govuk-casa",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"description": "A framework for building GOVUK Collect-And-Submit-Applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"govuk-frontend": "5.14.0",
|
|
64
64
|
"helmet": "8.1.0",
|
|
65
65
|
"i18next": "25.10.10",
|
|
66
|
-
"i18next-http-middleware": "3.9.
|
|
66
|
+
"i18next-http-middleware": "3.9.6",
|
|
67
67
|
"js-yaml": "4.1.1",
|
|
68
68
|
"lodash": "4.18.1",
|
|
69
69
|
"luxon": "3.7.2",
|
|
70
70
|
"nunjucks": "3.2.4",
|
|
71
|
-
"path-to-regexp": "8.4.
|
|
71
|
+
"path-to-regexp": "8.4.2",
|
|
72
72
|
"rfdc": "1.4.1",
|
|
73
|
-
"validator": "13.15.
|
|
73
|
+
"validator": "13.15.35"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@dwp/casa-spiderplan": "4.6.2",
|
|
@@ -80,28 +80,28 @@
|
|
|
80
80
|
"@dwp/eslint-config-base": "9.0.2",
|
|
81
81
|
"@types/express": "5.0.6",
|
|
82
82
|
"@types/luxon": "3.7.1",
|
|
83
|
-
"@types/node": "25.
|
|
83
|
+
"@types/node": "25.6.0",
|
|
84
84
|
"@types/nunjucks": "3.2.6",
|
|
85
|
-
"c8": "
|
|
85
|
+
"c8": "11.0.0",
|
|
86
86
|
"chai": "6.2.2",
|
|
87
87
|
"cheerio": "1.0.0",
|
|
88
|
-
"commitlint": "20.
|
|
88
|
+
"commitlint": "20.5.3",
|
|
89
89
|
"docdash": "2.0.2",
|
|
90
|
-
"eslint": "9.39.
|
|
90
|
+
"eslint": "9.39.4",
|
|
91
91
|
"eslint-plugin-import": "2.32.0",
|
|
92
|
-
"eslint-plugin-jsdoc": "62.
|
|
92
|
+
"eslint-plugin-jsdoc": "62.9.0",
|
|
93
93
|
"eslint-plugin-security": "3.0.1",
|
|
94
|
-
"eslint-plugin-sonarjs": "3.0.
|
|
95
|
-
"fast-check": "4.
|
|
94
|
+
"eslint-plugin-sonarjs": "3.0.7",
|
|
95
|
+
"fast-check": "4.7.0",
|
|
96
96
|
"jsdoc": "4.0.5",
|
|
97
97
|
"jsdoc-tsimport-plugin": "1.0.5",
|
|
98
98
|
"mocha": "11.7.5",
|
|
99
|
-
"prettier": "3.8.
|
|
99
|
+
"prettier": "3.8.3",
|
|
100
100
|
"prettier-plugin-jsdoc": "1.8.0",
|
|
101
|
-
"sass": "1.
|
|
102
|
-
"sinon": "
|
|
101
|
+
"sass": "1.99.0",
|
|
102
|
+
"sinon": "22.0.0",
|
|
103
103
|
"supertest": "7.2.2",
|
|
104
|
-
"ts-api-utils": "2.
|
|
104
|
+
"ts-api-utils": "2.5.0",
|
|
105
105
|
"typescript": "5.9.3"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
other: t("common:form.characterCount.words.overLimitOther")
|
|
50
50
|
} if params.maxwords,
|
|
51
51
|
errorMessage: {
|
|
52
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
52
53
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
53
54
|
attributes: {
|
|
54
55
|
'data-ga-question': params.label.text or params.label.html | striptags
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
attributes: mergedAttributes,
|
|
39
39
|
items: mergedItems,
|
|
40
40
|
errorMessage: {
|
|
41
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
41
42
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
42
43
|
attributes: {
|
|
43
44
|
'data-ga-question': params.fieldset.legend.text or params.fieldset.legend.html | striptags
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
})
|
|
48
48
|
],
|
|
49
49
|
errorMessage: {
|
|
50
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
50
51
|
text: t(params.casaErrors[params.namePrefix][0].inline, params.casaErrors[params.namePrefix][0].variables),
|
|
51
52
|
attributes: {
|
|
52
53
|
'data-ga-question': params.fieldset.legend.text or params.fieldset.legend.html | striptags
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
id: params.id if params.id else 'f-' + params.name,
|
|
16
16
|
attributes: mergedAttributes,
|
|
17
17
|
errorMessage: {
|
|
18
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
18
19
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
19
20
|
attributes: {
|
|
20
21
|
'data-ga-question': params.label.text or params.label.html | striptags
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
attributes: fieldAttributes,
|
|
22
22
|
errorMessage: {
|
|
23
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
23
24
|
text: t(fieldAddress1Errors[0].inline, fieldAddress1Errors[0].variables),
|
|
24
25
|
attributes: {
|
|
25
26
|
'data-ga-question': t('macros:postalAddressObject.address1') | striptags
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
},
|
|
43
44
|
attributes: fieldAttributes,
|
|
44
45
|
errorMessage: {
|
|
46
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
45
47
|
text: t(fieldAddress2Errors[0].inline, fieldAddress2Errors[0].variables),
|
|
46
48
|
attributes: {
|
|
47
49
|
'data-ga-question': t('macros:postalAddressObject.address2') | striptags
|
|
@@ -67,6 +69,7 @@
|
|
|
67
69
|
},
|
|
68
70
|
attributes: fieldAttributes,
|
|
69
71
|
errorMessage: {
|
|
72
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
70
73
|
text: t(fieldErrors[0].inline, fieldErrors[0].variables),
|
|
71
74
|
attributes: {
|
|
72
75
|
'data-ga-question': t('macros:postalAddressObject.address3')
|
|
@@ -91,6 +94,7 @@
|
|
|
91
94
|
},
|
|
92
95
|
attributes: fieldAttributes,
|
|
93
96
|
errorMessage: {
|
|
97
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
94
98
|
text: t(fieldErrors[0].inline, fieldErrors[0].variables),
|
|
95
99
|
attributes: {
|
|
96
100
|
'data-ga-question': t('macros:postalAddressObject.address4')
|
|
@@ -115,6 +119,7 @@
|
|
|
115
119
|
},
|
|
116
120
|
attributes: fieldAttributes,
|
|
117
121
|
errorMessage: {
|
|
122
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
118
123
|
text: t(fieldErrors[0].inline, fieldErrors[0].variables),
|
|
119
124
|
attributes: {
|
|
120
125
|
'data-ga-question': t('macros:postalAddressObject.postcode')
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
attributes: mergedAttributes,
|
|
31
31
|
items: mergedItems,
|
|
32
32
|
errorMessage: {
|
|
33
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
33
34
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
34
35
|
attributes: {
|
|
35
36
|
'data-ga-question': params.fieldset.legend.text or params.fieldset.legend.html | striptags
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
attributes: mergedAttributes,
|
|
31
31
|
items: mergedItems,
|
|
32
32
|
errorMessage: {
|
|
33
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
33
34
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
34
35
|
attributes: {
|
|
35
36
|
'data-ga-question': params.label.text or params.label.html | striptags
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
id: params.id if params.id else 'f-' + params.name,
|
|
16
16
|
attributes: mergedAttributes,
|
|
17
17
|
errorMessage: {
|
|
18
|
+
visuallyHiddenText: t('error:visuallyHiddenText'),
|
|
18
19
|
text: t(params.casaErrors[params.name][0].inline, params.casaErrors[params.name][0].variables),
|
|
19
20
|
attributes: {
|
|
20
21
|
'data-ga-question': params.label.text or params.label.html | striptags
|