govuk_publishing_components 34.4.2 → 34.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +1 -29
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +0 -1
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +2 -2
- data/app/assets/javascripts/govuk_publishing_components/dependencies.js +0 -10
- data/app/assets/javascripts/govuk_publishing_components/load-analytics.js +126 -30
- data/app/assets/javascripts/govuk_publishing_components/modules.js +7 -2
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +8 -4
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +33 -4
- data/config/locales/ar.yml +6 -2
- data/config/locales/az.yml +6 -2
- data/config/locales/be.yml +6 -2
- data/config/locales/bg.yml +6 -2
- data/config/locales/bn.yml +6 -2
- data/config/locales/cs.yml +6 -2
- data/config/locales/cy.yml +6 -2
- data/config/locales/da.yml +6 -2
- data/config/locales/de.yml +6 -2
- data/config/locales/dr.yml +6 -2
- data/config/locales/el.yml +6 -2
- data/config/locales/en.yml +7 -3
- data/config/locales/es-419.yml +6 -2
- data/config/locales/es.yml +6 -2
- data/config/locales/et.yml +6 -2
- data/config/locales/fa.yml +6 -2
- data/config/locales/fi.yml +6 -2
- data/config/locales/fr.yml +6 -2
- data/config/locales/gd.yml +6 -2
- data/config/locales/gu.yml +6 -2
- data/config/locales/he.yml +6 -2
- data/config/locales/hi.yml +6 -2
- data/config/locales/hr.yml +6 -2
- data/config/locales/hu.yml +6 -2
- data/config/locales/hy.yml +6 -2
- data/config/locales/id.yml +6 -2
- data/config/locales/is.yml +6 -2
- data/config/locales/it.yml +6 -2
- data/config/locales/ja.yml +6 -2
- data/config/locales/ka.yml +6 -2
- data/config/locales/kk.yml +6 -2
- data/config/locales/ko.yml +6 -2
- data/config/locales/lt.yml +6 -2
- data/config/locales/lv.yml +6 -2
- data/config/locales/ms.yml +6 -2
- data/config/locales/mt.yml +6 -2
- data/config/locales/nl.yml +6 -2
- data/config/locales/no.yml +6 -2
- data/config/locales/pa-pk.yml +6 -2
- data/config/locales/pa.yml +6 -2
- data/config/locales/pl.yml +6 -2
- data/config/locales/ps.yml +6 -2
- data/config/locales/pt.yml +6 -2
- data/config/locales/ro.yml +6 -2
- data/config/locales/ru.yml +6 -2
- data/config/locales/si.yml +6 -2
- data/config/locales/sk.yml +6 -2
- data/config/locales/sl.yml +6 -2
- data/config/locales/so.yml +6 -2
- data/config/locales/sq.yml +6 -2
- data/config/locales/sr.yml +6 -2
- data/config/locales/sv.yml +6 -2
- data/config/locales/sw.yml +6 -2
- data/config/locales/ta.yml +6 -2
- data/config/locales/th.yml +6 -2
- data/config/locales/tk.yml +6 -2
- data/config/locales/tr.yml +6 -2
- data/config/locales/uk.yml +6 -2
- data/config/locales/ur.yml +6 -2
- data/config/locales/uz.yml +6 -2
- data/config/locales/vi.yml +6 -2
- data/config/locales/zh-hk.yml +6 -2
- data/config/locales/zh-tw.yml +6 -2
- data/config/locales/zh.yml +6 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/README.md +1 -1
- data/node_modules/axe-core/axe.js +175 -129
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/package.json +27 -27
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +3 -4
- 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.
|
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.
|
113
|
-
"@babel/core": "^7.
|
114
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
115
|
-
"@babel/preset-env": "^7.
|
116
|
-
"@babel/runtime-corejs3": "^7.
|
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.
|
119
|
+
"aria-query": "^5.1.3",
|
120
120
|
"browser-driver-manager": "1.0.4",
|
121
|
-
"chai": "
|
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.
|
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.
|
132
|
-
"eslint-config-prettier": "^8.
|
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.
|
146
|
-
"jquery": "^3.6.
|
145
|
+
"husky": "^8.0.3",
|
146
|
+
"jquery": "^3.6.3",
|
147
147
|
"jsdoc": "^3.6.11",
|
148
|
-
"jsdom": "^
|
149
|
-
"karma": "^6.4.
|
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.
|
157
|
-
"lint-staged": "^13.0
|
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.
|
162
|
+
"mocha": "^10.2.0",
|
163
163
|
"node-notifier": "^10.0.1",
|
164
164
|
"npm-run-all": "^4.1.5",
|
165
|
-
"prettier": "^2.
|
165
|
+
"prettier": "^2.8.2",
|
166
166
|
"proxyquire": "^2.1.3",
|
167
|
-
"revalidator": "
|
168
|
-
"selenium-webdriver": "^4.
|
169
|
-
"serve-handler": "^6.1.
|
170
|
-
"sinon": "^
|
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.
|
174
|
-
"typedarray": "^0.0.
|
175
|
-
"typescript": "^4.
|
176
|
-
"uglify-js": "^3.
|
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
|
+
version: 34.5.1
|
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-
|
11
|
+
date: 2023-01-25 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.
|
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
|