govuk_publishing_components 37.5.0 → 37.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1d4cee2f111d26f80bca4ca6ba57eff76be7e5f25f6c32a3a08c0e0f75e26ca
|
|
4
|
+
data.tar.gz: b23a8eba1118486b5838d6e793c79588794a330ac539f0613d644c54aac4cf77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ebc5e732611c34a1d044a77f8bcac0d02d996c94b5b65c93f826b4b07200184d3a8ef62fe5c457872a198a81889879c25e5f0e779244426c12b1fd614be7eb9
|
|
7
|
+
data.tar.gz: dddce989dc4b96776df68c3b3d0f16eec57f834a48f591b7e8d32a1f7858e37374aeb1c4171335c50765412cfec1da04fb6fd9e6a0ef1521703c1326141875c5
|
|
@@ -10,20 +10,9 @@
|
|
|
10
10
|
classes << "disable-youtube" if disable_youtube_expansions
|
|
11
11
|
classes << "gem-c-govspeak--inverse" if inverse
|
|
12
12
|
|
|
13
|
-
disable_ga4 ||= false
|
|
14
|
-
|
|
15
13
|
data_modules = "govspeak"
|
|
16
|
-
data_modules << " ga4-link-tracker" unless disable_ga4
|
|
17
14
|
data_attributes = { module: data_modules }
|
|
18
15
|
|
|
19
|
-
unless disable_ga4
|
|
20
|
-
data_attributes.merge!({
|
|
21
|
-
ga4_track_links_only: "",
|
|
22
|
-
ga4_limit_to_element_class: "call-to-action, info-notice, help-notice, advisory",
|
|
23
|
-
ga4_link: { "event_name": "navigation", "type": "callout" }.to_json,
|
|
24
|
-
})
|
|
25
|
-
end
|
|
26
|
-
|
|
27
16
|
%>
|
|
28
17
|
|
|
29
18
|
<%= tag.div(class: "gem-c-govspeak govuk-govspeak " + classes.join(" "), data: data_attributes) do %>
|
|
@@ -914,12 +914,3 @@ examples:
|
|
|
914
914
|
<p>Deforested area. Credit: Blue Ventures-Garth Cripps</p>
|
|
915
915
|
</figcaption>
|
|
916
916
|
</figure>
|
|
917
|
-
without_ga4_tracking:
|
|
918
|
-
description: |
|
|
919
|
-
Disables GA4 tracking on the component. Tracking is enabled by default. This adds a data module and data-attributes with JSON data. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
|
920
|
-
data:
|
|
921
|
-
block: |
|
|
922
|
-
<p>
|
|
923
|
-
<a href='https://www.gov.uk'>Hello World</a>
|
|
924
|
-
</p>
|
|
925
|
-
disable_ga4: true
|
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: 37.5.
|
|
4
|
+
version: 37.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: 2024-02-
|
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|