govuk_publishing_components 34.4.1 → 34.4.2

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: 0d63109c1078fd71c2a1cd25da18616f1209fa78ce12fe896b201113f7c054f0
4
- data.tar.gz: 29f71838f9ddaaf85f77d9968b3c2df7724453df3c7d8e36c35c69c66417bc45
3
+ metadata.gz: 46eb0c57654df81f9449b23710fd6373f928fa85385572cf6d6fe1f1c74b45dc
4
+ data.tar.gz: 5eeb41e690030e82f1733d7591c434a779ccd967631c8bcf90eb72d277d52d35
5
5
  SHA512:
6
- metadata.gz: 69da39ed74e321310cb7f4ac557fe3894e93f94a3d86709143540537d69f25822bea82f2c5d13dc792f72b1690592bbf974be4f306d4ee3cf8017b36378034d5
7
- data.tar.gz: de2fae5d728300c3be7c19528206e4c92eb8aefda3882672e3c76cd4f75b3c696897a08160a23ecc339a8d05ee7b8a854e146530466091f6478992da38da4eed
6
+ metadata.gz: 47d3ec0bc04cc6203f20dbac2e79bd51e2d8e88cc192198838441f128b5d27bcbf4444f763f522df3b0a251643cd1091545a179cc6d250307590590024cfe3f2
7
+ data.tar.gz: 411ffd5781bffd1c60faf5fa2f1e692ded901091c9a7424f17198f940c000c19ada2f3e28b1ea591274d1658c8ebe82a622dddca01a419635520e0749dddf41d
@@ -1,5 +1,6 @@
1
1
  window.GOVUK = window.GOVUK || {}
2
- window.GOVUK.Modules = window.GOVUK.Modules || {};
2
+ window.GOVUK.Modules = window.GOVUK.Modules || {}
3
+ window.GOVUK.analyticsVars = window.GOVUK.analyticsVars || {};
3
4
 
4
5
  (function (Modules) {
5
6
  function AutoScrollTracker ($module) {
@@ -5,16 +5,18 @@
5
5
  // = require ./modules.js
6
6
 
7
7
  document.addEventListener('DOMContentLoaded', function () {
8
- window.GOVUK.modules.start()
8
+ window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
9
+ window.GOVUK.analyticsVars = window.GOVUK.analyticsVars || {}
9
10
 
10
11
  // if statements ensure these functions don't execute during testing
11
12
  if (typeof window.GOVUK.loadAnalytics !== 'undefined') {
12
- window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
13
13
  if (typeof window.GOVUK.analyticsGa4.vars === 'undefined') {
14
14
  window.GOVUK.loadAnalytics.loadGa4()
15
15
  }
16
- if (typeof window.GOVUK.analyticsVars === 'undefined') {
16
+ if (typeof window.GOVUK.analyticsVars.gaProperty === 'undefined') {
17
17
  window.GOVUK.loadAnalytics.loadUa()
18
18
  }
19
19
  }
20
+
21
+ window.GOVUK.modules.start()
20
22
  })
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "34.4.1".freeze
2
+ VERSION = "34.4.2".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: 34.4.1
4
+ version: 34.4.2
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config