govuk_publishing_components 37.5.0 → 37.5.1

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: 9ae79b74c7f168d201da93dd67100925c6e89c34ea187b924fd9a4b93abc6b28
4
- data.tar.gz: a0386e47e87e26590be08d1671be29add20066d965d1998b370ab26dd21d629e
3
+ metadata.gz: f1d4cee2f111d26f80bca4ca6ba57eff76be7e5f25f6c32a3a08c0e0f75e26ca
4
+ data.tar.gz: b23a8eba1118486b5838d6e793c79588794a330ac539f0613d644c54aac4cf77
5
5
  SHA512:
6
- metadata.gz: fb9f0fe2fce0cfbce193404c2e0f8a1e7842fdb4d011e96c698c00a999c59d71518b94463ce1ae8369fbc60e72ba0f53d5c590cb947aba2d8d4eb8052d36752b
7
- data.tar.gz: a3cd14147b0f1d842f8d8688f6d3dfdc0adbea71588406b3b80b0b97240452fcdf3a9c5a3c366bd59836d6cef5811d8af1410ed6d8cfbe592ad442315d13df81
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
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "37.5.0".freeze
2
+ VERSION = "37.5.1".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: 37.5.0
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-27 00:00:00.000000000 Z
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