govuk_publishing_components 21.55.2 → 21.55.3

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: 1b11f193106c7f8e22efc13ef5bbd2c342d1785eb3b115ebe583b647688c5aae
4
- data.tar.gz: 7f108f279a4f9b8bd39f9c068894631046a3622876ad0e33cd0b4425ea0bc31d
3
+ metadata.gz: 417ac5b68c2937c585f441854215684db548772993c21ca5fcd4cda7a34fdf0f
4
+ data.tar.gz: 206dc5df8e79d3d92c3a0bcc8e2823a41d6f61b5bfd1ecf6df1ce5dd01cd7004
5
5
  SHA512:
6
- metadata.gz: 2b1a19a275e8610a96b3071f6ef29bb3462f04b61f6d625d0a0e9f2287a98bf9b577d1c3ebacbac2f35bf805f3c95b867afc35deceb734dea015c327b9242527
7
- data.tar.gz: 7a18630041fda4328d384c42e1e1de1579413ec29e5a9b620eb4a33fe84039aaeb30275bc56dd8985983d09f0c666d45017337c37b3ce335137ff24c8c123270
6
+ metadata.gz: 05bab4bb91aaf768e8998f8be4c3088600ee4c75e7bf8873d9023421e5e686937118d021efaa939f8bbc2e2020520369099dfcb1bda1c14dd5eb1883ffde045d
7
+ data.tar.gz: 266f2889088edc5bf591597d3d6608fe023171e1d8b53895c5cd887b4a845e85e2ed61d690e3f7c85bb0f6e62b05c8648b87639ff3c8f53c5f7702c7c6c1bcc5
@@ -109,6 +109,8 @@
109
109
  event.target.f.title = videoTitle + ' (video)'
110
110
  },
111
111
  onStateChange: function (event) {
112
+ var eventData = event.data
113
+ var eventTarget = event.target
112
114
  var states = {
113
115
  "-1": "VideoUnstarted",
114
116
  "0": "VideoEnded",
@@ -117,14 +119,13 @@
117
119
  "3": "VideoBuffering",
118
120
  "5": "VideoCued"
119
121
  }
120
-
121
- if (states[event.data] && options.tracking && options.tracking.hasTracking
122
+ if (states[eventData] && options.tracking && options.tracking.hasTracking
122
123
  && window.GOVUK.analytics && window.GOVUK.analytics.trackEvent)
123
124
  {
124
125
  var tracking = {
125
126
  category: options.tracking.category,
126
- action: states[event.data],
127
- label: { transport: 'beacon', label: event.target.getVideoUrl() }
127
+ action: states[eventData],
128
+ label: { transport: 'beacon', label: eventTarget.getVideoData && eventTarget.getVideoData().title }
128
129
  }
129
130
 
130
131
  window.GOVUK.analytics.trackEvent(tracking.category, tracking.action, tracking.label)
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.55.2".freeze
2
+ VERSION = "21.55.3".freeze
3
3
  end
@@ -10,7 +10,7 @@
10
10
  "spec": ">=3.5.4 <4.0.0",
11
11
  "type": "range"
12
12
  },
13
- "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2"
13
+ "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ"
14
14
  ]
15
15
  ],
16
16
  "_from": "axe-core@>=3.5.4 <4.0.0",
@@ -45,7 +45,7 @@
45
45
  "_shasum": "5a7b49ba8c989cd59cde219810ccfb0b7cf72e97",
46
46
  "_shrinkwrap": null,
47
47
  "_spec": "axe-core@^3.5.4",
48
- "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2",
48
+ "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
49
49
  "bugs": {
50
50
  "url": "https://github.com/dequelabs/axe-core/issues"
51
51
  },
@@ -10,7 +10,7 @@
10
10
  "spec": ">=3.7.0 <4.0.0",
11
11
  "type": "range"
12
12
  },
13
- "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2"
13
+ "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ"
14
14
  ]
15
15
  ],
16
16
  "_from": "govuk-frontend@>=3.7.0 <4.0.0",
@@ -45,7 +45,7 @@
45
45
  "_shasum": "2eb2130c3c9f7c701c7ecdb300cc91106275a414",
46
46
  "_shrinkwrap": null,
47
47
  "_spec": "govuk-frontend@^3.7.0",
48
- "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2",
48
+ "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
49
49
  "author": {
50
50
  "name": "GOV.UK Design System Team",
51
51
  "email": "design-system-developers@digital.cabinet-office.gov.uk",
@@ -10,7 +10,7 @@
10
10
  "spec": "1.12.4",
11
11
  "type": "version"
12
12
  },
13
- "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2"
13
+ "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ"
14
14
  ]
15
15
  ],
16
16
  "_from": "jquery@1.12.4",
@@ -44,7 +44,7 @@
44
44
  "_shasum": "01e1dfba290fe73deba77ceeacb0f9ba2fec9e0c",
45
45
  "_shrinkwrap": null,
46
46
  "_spec": "jquery@1.12.4",
47
- "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ@2",
47
+ "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
48
48
  "author": {
49
49
  "name": "jQuery Foundation and other contributors",
50
50
  "url": "https://github.com/jquery/jquery/blob/1.12-stable/AUTHORS.txt"
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: 21.55.2
4
+ version: 21.55.3
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: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters