govuk_publishing_components 31.2.0 → 32.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link-arrow--blue.svg +8 -2
  3. data/app/assets/javascripts/component_guide/accessibility-test.js +0 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +1 -1
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +10 -5
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +2 -2
  7. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +10 -3
  8. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +13 -4
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -6
  10. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +25 -1
  11. data/app/views/govuk_publishing_components/components/_share_links.html.erb +7 -2
  12. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +19 -12
  13. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +10 -2
  14. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -2
  15. data/config/locales/ar.yml +4 -1
  16. data/config/locales/az.yml +4 -1
  17. data/config/locales/be.yml +4 -1
  18. data/config/locales/bg.yml +4 -1
  19. data/config/locales/bn.yml +4 -1
  20. data/config/locales/cs.yml +4 -1
  21. data/config/locales/cy.yml +4 -1
  22. data/config/locales/da.yml +4 -1
  23. data/config/locales/de.yml +4 -1
  24. data/config/locales/dr.yml +4 -1
  25. data/config/locales/el.yml +4 -1
  26. data/config/locales/en.yml +20 -17
  27. data/config/locales/es-419.yml +4 -1
  28. data/config/locales/es.yml +4 -1
  29. data/config/locales/et.yml +4 -1
  30. data/config/locales/fa.yml +4 -1
  31. data/config/locales/fi.yml +4 -1
  32. data/config/locales/fr.yml +4 -1
  33. data/config/locales/gd.yml +4 -1
  34. data/config/locales/gu.yml +4 -1
  35. data/config/locales/he.yml +4 -1
  36. data/config/locales/hi.yml +4 -1
  37. data/config/locales/hr.yml +4 -1
  38. data/config/locales/hu.yml +4 -1
  39. data/config/locales/hy.yml +4 -1
  40. data/config/locales/id.yml +4 -1
  41. data/config/locales/is.yml +4 -1
  42. data/config/locales/it.yml +4 -1
  43. data/config/locales/ja.yml +4 -1
  44. data/config/locales/ka.yml +4 -1
  45. data/config/locales/kk.yml +4 -1
  46. data/config/locales/ko.yml +4 -1
  47. data/config/locales/lt.yml +4 -1
  48. data/config/locales/lv.yml +4 -1
  49. data/config/locales/ms.yml +4 -1
  50. data/config/locales/mt.yml +4 -1
  51. data/config/locales/nl.yml +4 -1
  52. data/config/locales/no.yml +4 -1
  53. data/config/locales/pa-pk.yml +4 -1
  54. data/config/locales/pa.yml +4 -1
  55. data/config/locales/pl.yml +4 -1
  56. data/config/locales/ps.yml +4 -1
  57. data/config/locales/pt.yml +4 -1
  58. data/config/locales/ro.yml +4 -1
  59. data/config/locales/ru.yml +4 -1
  60. data/config/locales/si.yml +4 -1
  61. data/config/locales/sk.yml +4 -1
  62. data/config/locales/sl.yml +4 -1
  63. data/config/locales/so.yml +4 -1
  64. data/config/locales/sq.yml +4 -1
  65. data/config/locales/sr.yml +4 -1
  66. data/config/locales/sv.yml +4 -1
  67. data/config/locales/sw.yml +4 -1
  68. data/config/locales/ta.yml +4 -1
  69. data/config/locales/th.yml +4 -1
  70. data/config/locales/tk.yml +4 -1
  71. data/config/locales/tr.yml +4 -1
  72. data/config/locales/uk.yml +4 -1
  73. data/config/locales/ur.yml +4 -1
  74. data/config/locales/uz.yml +4 -1
  75. data/config/locales/vi.yml +4 -1
  76. data/config/locales/zh-hk.yml +4 -1
  77. data/config/locales/zh-tw.yml +4 -1
  78. data/config/locales/zh.yml +4 -1
  79. data/lib/govuk_publishing_components/version.rb +1 -1
  80. data/node_modules/axe-core/README.md +7 -6
  81. data/node_modules/axe-core/axe.d.ts +1 -0
  82. data/node_modules/axe-core/axe.js +8910 -7200
  83. data/node_modules/axe-core/axe.min.js +2 -2
  84. data/node_modules/axe-core/locales/_template.json +1067 -0
  85. data/node_modules/axe-core/locales/fr.json +1 -1
  86. data/node_modules/axe-core/locales/he.json +1015 -0
  87. data/node_modules/axe-core/locales/no_NB.json +797 -0
  88. data/node_modules/axe-core/package.json +57 -59
  89. data/node_modules/axe-core/sri-history.json +8 -0
  90. metadata +6 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.4.3",
4
+ "version": "4.5.1",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -86,14 +86,11 @@
86
86
  "integration:apg": "mocha test/aria-practices/*.spec.js",
87
87
  "integration:chrome": "npm run integration -- browser=Chrome",
88
88
  "integration:firefox": "npm run integration -- browser=Firefox",
89
- "integration:ie": "npm run integration -- browser=IE",
90
89
  "test:integration": "npm run test:integration:chrome",
91
90
  "test:integration:chrome": "start-server-and-test 9876 integration:chrome",
92
91
  "test:integration:firefox": "start-server-and-test 9876 integration:firefox",
93
- "test:integration:ie": "start-server-and-test 9876 integration:ie",
94
92
  "test:examples": "node ./doc/examples/test-examples",
95
- "test:act": "karma start test/act-mapping/karma.config.js",
96
- "test:act:debug": "npm run test:act -- --no-single-run --browsers=Chrome",
93
+ "test:act": "mocha test/act-rules/*.spec.js",
97
94
  "test:apg": "start-server-and-test 9876 integration:apg",
98
95
  "test:locales": "mocha test/test-locales.js",
99
96
  "test:virtual-rules": "mocha test/test-virtual-rules.js",
@@ -105,79 +102,80 @@
105
102
  "next-release": "standard-version --scripts.prebump=./build/next-version.js --skip.commit=true --skip.tag=true",
106
103
  "sri-update": "grunt build && node build/sri-update && git add sri-history.json",
107
104
  "sri-validate": "node build/sri-update --validate",
108
- "fmt": "prettier --write .*.json *.{json,md,js} **/*.ts './{.circleci,.github,build,doc,lib,locales,test,typings}/**/*.{json,md,js,ts,html}'"
105
+ "fmt": "prettier --write .",
106
+ "prepare": "husky install",
107
+ "prebuild": "node ./build/check-node-version.js",
108
+ "pretest": "node ./build/check-node-version.js",
109
+ "postbuild": "prettier --write ./locales/_template.json ./doc/rule-descriptions.md"
109
110
  },
110
111
  "devDependencies": {
111
- "@axe-core/webdriverjs": "^4.3.2",
112
- "@babel/core": "^7.5.4",
113
- "@babel/plugin-proposal-object-rest-spread": "^7.5.4",
114
- "@babel/polyfill": "^7.4.4",
115
- "@babel/preset-env": "^7.5.4",
112
+ "@axe-core/webdriverjs": "^4.4.3",
113
+ "@babel/core": "^7.18.6",
114
+ "@babel/plugin-proposal-object-rest-spread": "^7.18.6",
115
+ "@babel/preset-env": "^7.18.6",
116
+ "@babel/runtime-corejs3": "^7.18.6",
116
117
  "@deque/dot": "^1.1.5",
117
- "act-rules.github.io": "github:act-rules/act-rules.github.io#a5d7336e020fd04fd429f94c651102f8ab255f01",
118
- "aria-practices": "github:w3c/aria-practices#f7de7ec3a53534018237f24cb9e610f26c30c367",
119
- "aria-query": "^3.0.0",
120
- "browser-driver-manager": "1.0.3",
121
- "chai": "~4.2.0",
122
- "chalk": "^4.1.0",
118
+ "aria-practices": "github:w3c/aria-practices#edbf534",
119
+ "aria-query": "^5.0.0",
120
+ "browser-driver-manager": "1.0.4",
121
+ "chai": "~4.3.6",
122
+ "chalk": "^4.x",
123
123
  "chromedriver": "latest",
124
124
  "clone": "^2.1.2",
125
- "conventional-commits-parser": "^3.1.0",
126
- "css-selector-parser": "^1.3.0",
127
- "emoji-regex": "8.0.0",
128
- "es6-promise": "^4.2.6",
129
- "esbuild": "^0.7.19",
130
- "eslint": "^7.27.0",
131
- "eslint-config-prettier": "^6.2.0",
125
+ "conventional-commits-parser": "^3.2.4",
126
+ "core-js": "^3.23.5",
127
+ "css-selector-parser": "^1.4.1",
128
+ "emoji-regex": "^10.2.1",
129
+ "es6-promise": "^4.2.8",
130
+ "esbuild": "^0.15.10",
131
+ "eslint": "^8.19.0",
132
+ "eslint-config-prettier": "^8.5.0",
132
133
  "eslint-plugin-mocha-no-only": "^1.1.1",
133
- "execa": "^2.0.2",
134
- "globby": "^10.0.0",
135
- "grunt": "^1.0.3",
134
+ "execa": "5.x",
135
+ "globby": "11.x",
136
+ "grunt": "^1.5.3",
136
137
  "grunt-babel": "^8.0.0",
137
138
  "grunt-bytesize": "^0.2.0",
138
- "grunt-contrib-clean": "^2.0.0",
139
- "grunt-contrib-concat": "^1.0.1",
140
- "grunt-contrib-uglify": "^4.0.0",
139
+ "grunt-contrib-clean": "^2.0.1",
140
+ "grunt-contrib-concat": "^2.1.0",
141
+ "grunt-contrib-uglify": "^5.2.2",
141
142
  "grunt-contrib-watch": "^1.1.0",
142
- "html-entities": "^1.2.0",
143
- "http-server": "^14.1.0",
144
- "husky": "^3.1.0",
145
- "jquery": "^3.0.0",
146
- "jsdoc": "^3.6.10",
147
- "jsdom": "^16.3.0",
148
- "karma": "^6.3.16",
143
+ "html-entities": "1.x",
144
+ "http-server": "^14.1.1",
145
+ "husky": "^8.0.1",
146
+ "jquery": "^3.6.0",
147
+ "jsdoc": "^3.6.11",
148
+ "jsdom": "^20.0.0",
149
+ "karma": "^6.4.0",
149
150
  "karma-chai": "^0.1.0",
150
- "karma-chrome-launcher": "^3.1.0",
151
- "karma-firefox-launcher": "^2.1.0",
151
+ "karma-chrome-launcher": "^3.1.1",
152
+ "karma-firefox-launcher": "^2.1.2",
152
153
  "karma-ie-launcher": "^1.0.0",
153
154
  "karma-mocha": "^2.0.1",
154
155
  "karma-sinon": "^1.0.5",
155
- "karma-spec-reporter": "0.0.33",
156
- "lint-staged": "^11.2.6",
157
- "make-dir": "^3.0.0",
158
- "markdown-table": "^1.1.2",
159
- "memoizee": "^0.4.14",
156
+ "karma-spec-reporter": "0.0.34",
157
+ "lint-staged": "^13.0.3",
158
+ "make-dir": "^3.1.0",
159
+ "markdown-table": "2.x",
160
+ "memoizee": "^0.4.15",
160
161
  "minami": "^1.2.3",
161
- "mocha": "^9.2.0",
162
- "node-notifier": "^8.0.1",
162
+ "mocha": "^10.0.0",
163
+ "node-notifier": "^10.0.1",
163
164
  "npm-run-all": "^4.1.5",
164
- "prettier": "^1.17.1",
165
+ "prettier": "^2.7.1",
165
166
  "proxyquire": "^2.1.3",
166
167
  "revalidator": "~0.3.1",
167
- "selenium-webdriver": "~3.6.0",
168
- "sinon": "^7.5.0",
168
+ "selenium-webdriver": "^4.5.0",
169
+ "serve-handler": "^6.1.3",
170
+ "sinon": "^11.1.2",
169
171
  "sri-toolbox": "^0.2.0",
170
- "standard-version": "^9.0.0",
171
- "start-server-and-test": "^1.11.7",
172
+ "standard-version": "^9.5.0",
173
+ "start-server-and-test": "^1.14.0",
172
174
  "typedarray": "^0.0.6",
173
- "typescript": "^3.5.3",
174
- "uglify-js": "^3.4.4",
175
- "weakmap-polyfill": "^2.0.0"
176
- },
177
- "husky": {
178
- "hooks": {
179
- "pre-commit": "grunt configure && lint-staged"
180
- }
175
+ "typescript": "^4.7.4",
176
+ "uglify-js": "^3.16.2",
177
+ "wcag-act-rules": "github:w3c/wcag-act-rules#a60a4e62f2",
178
+ "weakmap-polyfill": "^2.0.4"
181
179
  },
182
180
  "lint-staged": {
183
181
  "*.{md,json,ts,html}": [
@@ -310,5 +310,13 @@
310
310
  "4.4.3": {
311
311
  "axe.js": "sha256-R+pmfA40BsLNJsCD6FrO4KRXoV2mV3NKNUZuxFSJk6g=",
312
312
  "axe.min.js": "sha256-aX6mx+3/D+KJt7vs8f97kBUkm8g0tAmjSM0GDfgK66A="
313
+ },
314
+ "4.5.0": {
315
+ "axe.js": "sha256-AYLBIQscniY92RkIlsESUAIu3cOplhUmJ3Y4/DKR4SE=",
316
+ "axe.min.js": "sha256-cdG6H1F9kSiSIpyWgjGYXkbV3mcfc6/SvE7Zbq2km/A="
317
+ },
318
+ "4.5.1": {
319
+ "axe.js": "sha256-IkK+029qUdULyO88zkDU2TeO5kQB8AjncJvjmFKqBHQ=",
320
+ "axe.min.js": "sha256-Ost3Bp9ymk0FCZFL9pOU2g/ph8u06GuVCm8go6W+THw="
313
321
  }
314
322
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 31.2.0
4
+ version: 32.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -966,14 +966,17 @@ files:
966
966
  - node_modules/axe-core/axe.d.ts
967
967
  - node_modules/axe-core/axe.js
968
968
  - node_modules/axe-core/axe.min.js
969
+ - node_modules/axe-core/locales/_template.json
969
970
  - node_modules/axe-core/locales/da.json
970
971
  - node_modules/axe-core/locales/de.json
971
972
  - node_modules/axe-core/locales/es.json
972
973
  - node_modules/axe-core/locales/eu.json
973
974
  - node_modules/axe-core/locales/fr.json
975
+ - node_modules/axe-core/locales/he.json
974
976
  - node_modules/axe-core/locales/ja.json
975
977
  - node_modules/axe-core/locales/ko.json
976
978
  - node_modules/axe-core/locales/nl.json
979
+ - node_modules/axe-core/locales/no_NB.json
977
980
  - node_modules/axe-core/locales/pl.json
978
981
  - node_modules/axe-core/locales/pt_BR.json
979
982
  - node_modules/axe-core/package.json
@@ -1361,7 +1364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1361
1364
  - !ruby/object:Gem::Version
1362
1365
  version: '0'
1363
1366
  requirements: []
1364
- rubygems_version: 3.3.24
1367
+ rubygems_version: 3.3.25
1365
1368
  signing_key:
1366
1369
  specification_version: 4
1367
1370
  summary: A gem to document components in GOV.UK frontend applications