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 +4 -4
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +5 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/package.json +2 -2
- data/node_modules/govuk-frontend/package.json +2 -2
- data/node_modules/jquery/package.json +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 417ac5b68c2937c585f441854215684db548772993c21ca5fcd4cda7a34fdf0f
|
4
|
+
data.tar.gz: 206dc5df8e79d3d92c3a0bcc8e2823a41d6f61b5bfd1ecf6df1ce5dd01cd7004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05bab4bb91aaf768e8998f8be4c3088600ee4c75e7bf8873d9023421e5e686937118d021efaa939f8bbc2e2020520369099dfcb1bda1c14dd5eb1883ffde045d
|
7
|
+
data.tar.gz: 266f2889088edc5bf591597d3d6608fe023171e1d8b53895c5cd887b4a845e85e2ed61d690e3f7c85bb0f6e62b05c8648b87639ff3c8f53c5f7702c7c6c1bcc5
|
data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js
CHANGED
@@ -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[
|
127
|
-
label: { transport: 'beacon', label:
|
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)
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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-
|
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
|