govuk_publishing_components 27.4.0 → 27.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 701cdbaae0e829d529cf36553c1fa9a0856b552d1933700c1789276209bc131f
4
- data.tar.gz: c2418c0148dfbf76fa3a689f50089d0f797216b68979a1056b3a08b84f56da98
3
+ metadata.gz: 5eeb1e46730d1f7b1bc3eceb3be65497a4c4f0e2d68695b21cca5ce55f617126
4
+ data.tar.gz: 44aeca5c635114770a59d61dc92806bc6bb2b50c582566760fec95967fe65391
5
5
  SHA512:
6
- metadata.gz: 6658563042e32a3a4f9f6bf2d8f883b4f9bfae2c4fdbc7148e3878dbbd0d993e13263af5f7510167467777aac84e225673be2eb29e14dc3474d32046494093a4
7
- data.tar.gz: 864f25f602249724ce5476e06918a9eb181edc0e9fb57ba394e578f0a95faa6790bab96733cc77d4bb69508b1b159dfc203412d7935ccb247b9938928c6fd4b9
6
+ metadata.gz: 548b6ce397891440ccbb4b5cce2c23f8ad5d4097d8b7fc4f4a3ff4c82f6203dcac21416e86c37321bf4c51d555bbd5eb001b5094726e47e1d36f8b0df1380c01
7
+ data.tar.gz: adb5135492b5b1f4db2dcc2157ad0de43d50b367676f64c161209bb91762c4d448c7055fb04acaf6415ddf10f32db900c76629805c80be06537b99287419045d
@@ -8,6 +8,25 @@ var analyticsInit = function () {
8
8
  var linkedDomains = window.GOVUK.analyticsVars.linkedDomains || false
9
9
  }
10
10
 
11
+ window.GOVUK.Analytics.checkDigitalIdentityConsent = function (location) {
12
+ if (!location || !location.search) return
13
+ // this checks for the presence of the Digital Identity cookie consent query parameter and updates our consent cookie accordingly
14
+ // This is so that users don't see multiple cookie banners when they move between the different account management pages, as some will be on GOV.UK and others will be on the DI domain.
15
+ var digitalIdentityConsent = /([?&]cookie_consent=)(accept|reject)/.exec(location.search)
16
+ if (digitalIdentityConsent) {
17
+ if (digitalIdentityConsent[2] === 'accept') {
18
+ window.GOVUK.setConsentCookie({ usage: true })
19
+ // set cookies_preferences_set to true to prevent cookie banner showing
20
+ window.GOVUK.cookie('cookies_preferences_set', 'true')
21
+ } else if (digitalIdentityConsent[2] === 'reject') {
22
+ window.GOVUK.setConsentCookie({ usage: false })
23
+ window.GOVUK.cookie('cookies_preferences_set', 'true')
24
+ }
25
+ }
26
+ }
27
+
28
+ window.GOVUK.Analytics.checkDigitalIdentityConsent(window.location)
29
+
11
30
  var consentCookie = window.GOVUK.getConsentCookie()
12
31
  var dummyAnalytics = {
13
32
  addLinkedTrackerDomain: function () {},
@@ -15,7 +15,6 @@
15
15
 
16
16
  var CONFIG = {
17
17
  '/brexit': percentages,
18
- '/guidance/coronavirus-covid-19-information-for-the-public': percentages,
19
18
  '/government/publications/the-essential-trustee-what-you-need-to-know-cc3/the-essential-trustee-what-you-need-to-know-what-you-need-to-do': [
20
19
  ['Heading', '1. About this guidance'],
21
20
  ['Heading', '2. Trustees’ duties at a glance'],
@@ -147,7 +146,6 @@
147
146
  '/wood-packaging-import-export': [
148
147
  ['Heading', 'Export solid wood packaging']
149
148
  ],
150
- '/guidance/answers-to-the-most-common-topics-asked-about-by-the-public-for-the-coronavirus-press-conference': percentages,
151
149
  '/coronavirus': percentages,
152
150
  '/coronavirus/education-and-childcare': percentages,
153
151
  '/coronavirus/worker-support': percentages,
@@ -164,21 +162,6 @@
164
162
  '/guidance/brexit-guidance-for-individuals-and-families': percentages,
165
163
  '/guidance/brexit-guidance-for-individuals-and-families.cy': percentages,
166
164
  '/guidance/import-and-export-goods-using-preference-agreements': percentages,
167
- '/guidance/red-amber-and-green-list-rules-for-entering-england': [
168
- ['Heading', 'Stay up-to-date'],
169
- ['Heading', 'Red list of countries and territories'],
170
- ['Heading', 'Amber list of countries and territories'],
171
- ['Heading', 'Amber list rules if you are fully UK vaccinated'],
172
- ['Heading', 'Amber list rules if you are not fully UK vaccinated'],
173
- ['Heading', 'Green list countries and territories'],
174
- ['Heading', 'Green list rules'],
175
- ['Heading', 'Ireland, the UK, the Channel Islands and the Isle of Man'],
176
- ['Heading', 'Transit stops in amber or red list countries'],
177
- ['Heading', 'Job and medical exemptions'],
178
- ['Heading', 'Travelling abroad from England'],
179
- ['Heading', 'Demonstrating your COVID-19 vaccination status when travelling abroad'],
180
- ['Heading', 'Foreign, Commonwealth & Development Office travel advice']
181
- ],
182
165
  '/guidance/travel-abroad-from-england-during-coronavirus-covid-19': [
183
166
  ['Heading', 'Before you travel abroad'],
184
167
  ['Heading', '1. Check the rules for the country you’re going to'],
@@ -94,13 +94,13 @@
94
94
 
95
95
  .gem-c-action-link--blue-arrow {
96
96
  &:before {
97
- width: 35px;
98
- height: 30px;
97
+ width: 45px;
98
+ height: 35px;
99
99
  background: image-url("govuk_publishing_components/action-link-arrow--blue.png");
100
100
  background: image-url("govuk_publishing_components/action-link-arrow--blue.svg"), linear-gradient(transparent, transparent);
101
101
  background-repeat: no-repeat;
102
- background-size: 25px auto;
103
- background-position: 0 2px;
102
+ background-size: 35px auto;
103
+ background-position: 0 0;
104
104
  }
105
105
  }
106
106
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "27.4.0".freeze
2
+ VERSION = "27.5.0".freeze
3
3
  end
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: 27.4.0
4
+ version: 27.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: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config