@moduk/frontend 1.0.5 → 1.0.7
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/dist/client/moduk-frontend.umd.js +1 -1
- package/dist/client/moduk-frontend.umd.js.map +1 -1
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +0 -1
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-description-and-error-list.njk +16 -0
- package/dist/lib/nunjucks/moduk/components/error-summary/__tests__/macro.test.ts +1 -1
- package/package.json +13 -14
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
{% endset -%}
|
|
7
7
|
|
|
8
8
|
{{ modukCookieBanner({
|
|
9
|
-
ariaLabel: "Cookies on
|
|
9
|
+
ariaLabel: "Cookies on [name of service]",
|
|
10
10
|
messages: [
|
|
11
11
|
{
|
|
12
|
-
headingText: "Cookies on
|
|
12
|
+
headingText: "Cookies on [name of service]",
|
|
13
13
|
html: html,
|
|
14
14
|
actions: [
|
|
15
15
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
|
|
2
|
+
|
|
3
|
+
{{ modukErrorSummary({
|
|
4
|
+
titleText: "There is a problem",
|
|
5
|
+
descriptionText: "There have been some errors when trying to submit your application.",
|
|
6
|
+
errorList: [
|
|
7
|
+
{
|
|
8
|
+
text: "The start date of the contract must include a year",
|
|
9
|
+
href: "#incorect-date-format"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Enter your full name",
|
|
13
|
+
href: "#full-name-input"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}) -}}
|
|
@@ -4,7 +4,7 @@ import { render, renderFile } from '../../../../../test-utils'
|
|
|
4
4
|
|
|
5
5
|
describe('error summary', async () => {
|
|
6
6
|
it('renders the content when using the text property', () => {
|
|
7
|
-
const element = renderFile('moduk/components/error-summary/__examples__/
|
|
7
|
+
const element = renderFile('moduk/components/error-summary/__examples__/with-description-and-error-list.njk')
|
|
8
8
|
expect(element).toHaveTextContent('There is a problem')
|
|
9
9
|
})
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
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",
|
|
@@ -81,42 +81,41 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@11ty/eleventy": "^2.0.0",
|
|
83
83
|
"@axe-core/playwright": "^4.6.0",
|
|
84
|
-
"@babel/cli": "^7.
|
|
84
|
+
"@babel/cli": "^7.21.0",
|
|
85
85
|
"@babel/core": "^7.21.0",
|
|
86
86
|
"@babel/preset-env": "^7.20.2",
|
|
87
87
|
"@babel/preset-typescript": "^7.21.0",
|
|
88
88
|
"@commitlint/cli": "^17.4.4",
|
|
89
89
|
"@commitlint/config-conventional": "^17.4.4",
|
|
90
|
-
"@playwright/test": "^1.
|
|
90
|
+
"@playwright/test": "^1.31.2",
|
|
91
91
|
"@release-it/conventional-changelog": "^5.1.1",
|
|
92
|
-
"@testing-library/dom": "^
|
|
92
|
+
"@testing-library/dom": "^9.0.1",
|
|
93
93
|
"@testing-library/jest-dom": "^5.16.5",
|
|
94
|
-
"@types/
|
|
95
|
-
"@types/
|
|
96
|
-
"@
|
|
97
|
-
"@typescript-eslint/
|
|
98
|
-
"@typescript-eslint/parser": "^5.53.0",
|
|
94
|
+
"@types/lodash": "^4.14.191",
|
|
95
|
+
"@types/nunjucks": "^3.2.2",
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
97
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
99
98
|
"autoprefixer": "^10.4.13",
|
|
100
99
|
"babel-loader": "^9.1.2",
|
|
101
100
|
"dprint": "^0.34.5",
|
|
102
|
-
"eslint": "^8.
|
|
101
|
+
"eslint": "^8.36.0",
|
|
103
102
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
104
103
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
105
104
|
"eslint-plugin-import": "^2.27.5",
|
|
106
105
|
"eslint-plugin-unicorn": "^46.0.0",
|
|
107
|
-
"glob": "^
|
|
106
|
+
"glob": "^9.2.1",
|
|
108
107
|
"happy-dom": "^8.9.0",
|
|
109
108
|
"husky": "^8.0.3",
|
|
110
109
|
"lint-staged": "^13.1.2",
|
|
111
110
|
"postcss-cli": "^10.1.0",
|
|
112
111
|
"postcss-fail-on-warn": "^0.2.1",
|
|
113
|
-
"release-it": "^15.
|
|
112
|
+
"release-it": "^15.7.0",
|
|
114
113
|
"sass": "^1.58.3",
|
|
115
114
|
"shx": "^0.3.4",
|
|
116
115
|
"ts-node": "^10.9.1",
|
|
117
116
|
"typescript": "^4.9.5",
|
|
118
|
-
"vitest": "^0.
|
|
119
|
-
"webpack": "^5.
|
|
117
|
+
"vitest": "^0.29.2",
|
|
118
|
+
"webpack": "^5.76.0",
|
|
120
119
|
"webpack-cli": "^5.0.1"
|
|
121
120
|
},
|
|
122
121
|
"lint-staged": {
|