govuk_publishing_components 34.4.1 → 34.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js +2 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +1 -29
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +0 -1
  5. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +2 -2
  6. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +3 -11
  7. data/app/assets/javascripts/govuk_publishing_components/load-analytics.js +126 -30
  8. data/app/assets/javascripts/govuk_publishing_components/modules.js +7 -2
  9. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +8 -4
  10. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +3 -3
  12. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +33 -4
  13. data/config/locales/ar.yml +6 -2
  14. data/config/locales/az.yml +6 -2
  15. data/config/locales/be.yml +6 -2
  16. data/config/locales/bg.yml +6 -2
  17. data/config/locales/bn.yml +6 -2
  18. data/config/locales/cs.yml +6 -2
  19. data/config/locales/cy.yml +6 -2
  20. data/config/locales/da.yml +6 -2
  21. data/config/locales/de.yml +6 -2
  22. data/config/locales/dr.yml +6 -2
  23. data/config/locales/el.yml +6 -2
  24. data/config/locales/en.yml +7 -3
  25. data/config/locales/es-419.yml +6 -2
  26. data/config/locales/es.yml +6 -2
  27. data/config/locales/et.yml +6 -2
  28. data/config/locales/fa.yml +6 -2
  29. data/config/locales/fi.yml +6 -2
  30. data/config/locales/fr.yml +6 -2
  31. data/config/locales/gd.yml +6 -2
  32. data/config/locales/gu.yml +6 -2
  33. data/config/locales/he.yml +6 -2
  34. data/config/locales/hi.yml +6 -2
  35. data/config/locales/hr.yml +6 -2
  36. data/config/locales/hu.yml +6 -2
  37. data/config/locales/hy.yml +6 -2
  38. data/config/locales/id.yml +6 -2
  39. data/config/locales/is.yml +6 -2
  40. data/config/locales/it.yml +6 -2
  41. data/config/locales/ja.yml +6 -2
  42. data/config/locales/ka.yml +6 -2
  43. data/config/locales/kk.yml +6 -2
  44. data/config/locales/ko.yml +6 -2
  45. data/config/locales/lt.yml +6 -2
  46. data/config/locales/lv.yml +6 -2
  47. data/config/locales/ms.yml +6 -2
  48. data/config/locales/mt.yml +6 -2
  49. data/config/locales/nl.yml +6 -2
  50. data/config/locales/no.yml +6 -2
  51. data/config/locales/pa-pk.yml +6 -2
  52. data/config/locales/pa.yml +6 -2
  53. data/config/locales/pl.yml +6 -2
  54. data/config/locales/ps.yml +6 -2
  55. data/config/locales/pt.yml +6 -2
  56. data/config/locales/ro.yml +6 -2
  57. data/config/locales/ru.yml +6 -2
  58. data/config/locales/si.yml +6 -2
  59. data/config/locales/sk.yml +6 -2
  60. data/config/locales/sl.yml +6 -2
  61. data/config/locales/so.yml +6 -2
  62. data/config/locales/sq.yml +6 -2
  63. data/config/locales/sr.yml +6 -2
  64. data/config/locales/sv.yml +6 -2
  65. data/config/locales/sw.yml +6 -2
  66. data/config/locales/ta.yml +6 -2
  67. data/config/locales/th.yml +6 -2
  68. data/config/locales/tk.yml +6 -2
  69. data/config/locales/tr.yml +6 -2
  70. data/config/locales/uk.yml +6 -2
  71. data/config/locales/ur.yml +6 -2
  72. data/config/locales/uz.yml +6 -2
  73. data/config/locales/vi.yml +6 -2
  74. data/config/locales/zh-hk.yml +6 -2
  75. data/config/locales/zh-tw.yml +6 -2
  76. data/config/locales/zh.yml +6 -2
  77. data/lib/govuk_publishing_components/version.rb +1 -1
  78. data/node_modules/axe-core/README.md +1 -1
  79. data/node_modules/axe-core/axe.js +175 -129
  80. data/node_modules/axe-core/axe.min.js +2 -2
  81. data/node_modules/axe-core/package.json +27 -27
  82. data/node_modules/axe-core/sri-history.json +4 -0
  83. metadata +3 -4
  84. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js +0 -28
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.6.2",
4
+ "version": "4.6.3",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -109,27 +109,27 @@
109
109
  "postbuild": "prettier --write ./locales/_template.json ./doc/rule-descriptions.md"
110
110
  },
111
111
  "devDependencies": {
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",
112
+ "@axe-core/webdriverjs": "^4.5.2",
113
+ "@babel/core": "^7.20.12",
114
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
115
+ "@babel/preset-env": "^7.20.2",
116
+ "@babel/runtime-corejs3": "^7.20.7",
117
117
  "@deque/dot": "^1.1.5",
118
118
  "aria-practices": "github:w3c/aria-practices#edbf534",
119
- "aria-query": "^5.0.0",
119
+ "aria-query": "^5.1.3",
120
120
  "browser-driver-manager": "1.0.4",
121
- "chai": "~4.3.6",
121
+ "chai": "^4.3.7",
122
122
  "chalk": "^4.x",
123
123
  "chromedriver": "latest",
124
124
  "clone": "^2.1.2",
125
125
  "conventional-commits-parser": "^3.2.4",
126
- "core-js": "^3.23.5",
126
+ "core-js": "^3.27.1",
127
127
  "css-selector-parser": "^1.4.1",
128
128
  "emoji-regex": "^10.2.1",
129
129
  "es6-promise": "^4.2.8",
130
130
  "esbuild": "^0.10.x",
131
- "eslint": "^8.19.0",
132
- "eslint-config-prettier": "^8.5.0",
131
+ "eslint": "^8.31.0",
132
+ "eslint-config-prettier": "^8.6.0",
133
133
  "eslint-plugin-mocha-no-only": "^1.1.1",
134
134
  "execa": "5.x",
135
135
  "globby": "11.x",
@@ -142,38 +142,38 @@
142
142
  "grunt-contrib-watch": "^1.1.0",
143
143
  "html-entities": "1.x",
144
144
  "http-server": "^14.1.1",
145
- "husky": "^8.0.1",
146
- "jquery": "^3.6.0",
145
+ "husky": "^8.0.3",
146
+ "jquery": "^3.6.3",
147
147
  "jsdoc": "^3.6.11",
148
- "jsdom": "^20.0.0",
149
- "karma": "^6.4.0",
148
+ "jsdom": "^21.0.0",
149
+ "karma": "^6.4.1",
150
150
  "karma-chai": "^0.1.0",
151
151
  "karma-chrome-launcher": "^3.1.1",
152
152
  "karma-firefox-launcher": "^2.1.2",
153
153
  "karma-ie-launcher": "^1.0.0",
154
154
  "karma-mocha": "^2.0.1",
155
155
  "karma-sinon": "^1.0.5",
156
- "karma-spec-reporter": "0.0.34",
157
- "lint-staged": "^13.0.3",
156
+ "karma-spec-reporter": "^0.0.36",
157
+ "lint-staged": "^13.1.0",
158
158
  "make-dir": "^3.1.0",
159
159
  "markdown-table": "2.x",
160
160
  "memoizee": "^0.4.15",
161
161
  "minami": "^1.2.3",
162
- "mocha": "^10.0.0",
162
+ "mocha": "^10.2.0",
163
163
  "node-notifier": "^10.0.1",
164
164
  "npm-run-all": "^4.1.5",
165
- "prettier": "^2.7.1",
165
+ "prettier": "^2.8.2",
166
166
  "proxyquire": "^2.1.3",
167
- "revalidator": "~0.3.1",
168
- "selenium-webdriver": "^4.5.0",
169
- "serve-handler": "^6.1.3",
170
- "sinon": "^11.1.2",
167
+ "revalidator": "^0.3.1",
168
+ "selenium-webdriver": "^4.7.1",
169
+ "serve-handler": "^6.1.5",
170
+ "sinon": "^15.0.1",
171
171
  "sri-toolbox": "^0.2.0",
172
172
  "standard-version": "^9.5.0",
173
- "start-server-and-test": "^1.14.0",
174
- "typedarray": "^0.0.6",
175
- "typescript": "^4.7.4",
176
- "uglify-js": "^3.16.2",
173
+ "start-server-and-test": "^1.15.2",
174
+ "typedarray": "^0.0.7",
175
+ "typescript": "^4.9.4",
176
+ "uglify-js": "^3.17.4",
177
177
  "wcag-act-rules": "github:w3c/wcag-act-rules#9416ea6",
178
178
  "weakmap-polyfill": "^2.0.4"
179
179
  },
@@ -334,5 +334,9 @@
334
334
  "4.6.2": {
335
335
  "axe.js": "sha256-6BCLF6TcLdHG7Ok3yyV7HOKF/Se1yJQgzgAiz3AnzX0=",
336
336
  "axe.min.js": "sha256-US+MWxPC7r+aFzKfSCl+effrzN0Qoz4tS2wxlIpmsCM="
337
+ },
338
+ "4.6.3": {
339
+ "axe.js": "sha256-N8N7PwDRFNyzsL80UoXAE5ibkfu/KJ71Ixw0zWYX+yM=",
340
+ "axe.min.js": "sha256-vOhlk9sgryrpUZOv6801a9uYhuG6Z/NBJmOJb0aAQQQ="
337
341
  }
338
342
  }
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: 34.4.1
4
+ version: 34.5.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: 2023-01-13 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -446,7 +446,6 @@ files:
446
446
  - app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js
447
447
  - app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-schemas.js
448
448
  - app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js
449
- - app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js
450
449
  - app/assets/javascripts/govuk_publishing_components/analytics-ga4/pii-remover.js
451
450
  - app/assets/javascripts/govuk_publishing_components/analytics.js
452
451
  - app/assets/javascripts/govuk_publishing_components/analytics/analytics.js
@@ -1374,7 +1373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1374
1373
  - !ruby/object:Gem::Version
1375
1374
  version: '0'
1376
1375
  requirements: []
1377
- rubygems_version: 3.4.3
1376
+ rubygems_version: 3.4.5
1378
1377
  signing_key:
1379
1378
  specification_version: 4
1380
1379
  summary: A gem to document components in GOV.UK frontend applications
@@ -1,28 +0,0 @@
1
- window.GOVUK = window.GOVUK || {}
2
- window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
3
-
4
- var initFunction = function () {
5
- // to be added: digital identity consent mechanism
6
-
7
- var consentCookie = window.GOVUK.getConsentCookie()
8
-
9
- if (consentCookie && consentCookie.usage) {
10
- window.GOVUK.analyticsGa4.vars.internalDomains = []
11
- window.GOVUK.analyticsGa4.vars.internalDomains.push(window.GOVUK.analyticsGa4.core.trackFunctions.getHostname())
12
- window.GOVUK.analyticsGa4.core.trackFunctions.appendDomainsWithoutWWW(window.GOVUK.analyticsGa4.vars.internalDomains)
13
- window.GOVUK.analyticsGa4.core.load()
14
-
15
- var analyticsModules = window.GOVUK.analyticsGa4.analyticsModules
16
- for (var property in analyticsModules) {
17
- var module = analyticsModules[property]
18
- if (typeof module.init === 'function') {
19
- module.init()
20
- }
21
- }
22
- // to be added: cross domain tracking code
23
- } else {
24
- window.addEventListener('cookie-consent', window.GOVUK.analyticsGa4.init)
25
- }
26
- }
27
-
28
- window.GOVUK.analyticsGa4.init = initFunction