govuk_publishing_components 38.4.1 → 39.0.0

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: 25dafad57ab7872e9ebdfff2bc1cd2a3a06b6ce9d089c628a022891f8e3ab4f7
4
- data.tar.gz: 16c3a723cf5b3854fa5ae8c316c44426bceddeb07209c384c95269d21af68210
3
+ metadata.gz: 982f0330db863fed2732e92555a9ff3028e0752c7ba3cf905a11da149b3ee2e4
4
+ data.tar.gz: 9bb1fc599dffea943095bacbbb67d8c1e595932ec988d2d06a1d436e9b6cca98
5
5
  SHA512:
6
- metadata.gz: 8ed0ac57827eef5c9d7eb086614e680acafbbc9c51662a20d0454b859a4ecc733a46e406e66b2f03969945bb8687934c94939edafb82e1b1d7d676491c6f9ad8
7
- data.tar.gz: 6ab5be4ca473ce6316895b63d3a2ab1e32ca2093d8fa2580ae14dd6d560f57f06a0fc9935eec4d9332a10bdacab6a4b898e31c8326e5ed545e0761da45b3858f
6
+ metadata.gz: 8714b0d882b14e4624aaf18c2f9f3f9d995d2c2b3b85df9850a0c5ea3a1124bd46204dc523f963a32b33d6811c05d26091fe525a2e6f0f965963245c98e2f62e
7
+ data.tar.gz: f9b0580f2121d5f2f1291fd38c35b327d1886e0decb042375ada591dbabef26500b0b339db7968568fdc85cf12474924d4037cd420e9db53f826331a8baa0bf1
@@ -60,6 +60,7 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
60
60
  devolved_nations_banner: this.getElementAttribute('data-ga4-devolved-nations-banner') || undefined,
61
61
  cookie_banner: this.getBannerPresence('[data-ga4-cookie-banner]'),
62
62
  intervention: this.getBannerPresence('[data-ga4-intervention-banner]'),
63
+ global_bar: this.getBannerPresence('[data-ga4-global-bar]'),
63
64
  query_string: this.getQueryString(),
64
65
  search_term: this.getSearchTerm(),
65
66
  spelling_suggestion: this.getMetaContent('spelling-suggestion'),
@@ -45,7 +45,7 @@ module GovukPublishingComponents
45
45
  end
46
46
 
47
47
  def parse_documentation(file)
48
- yaml = YAML.load_file(file, aliases: true, permitted_classes: [Symbol, Time])
48
+ yaml = YAML.load_file(file, aliases: true, permitted_classes: [Symbol, Time, Date])
49
49
  { id: File.basename(file, ".yml") }.merge(yaml).with_indifferent_access
50
50
  end
51
51
 
@@ -51,6 +51,7 @@
51
51
  blue_bar_dedupe = !full_width && global_bar.present?
52
52
  body_css_classes = %w(gem-c-layout-for-public govuk-template__body)
53
53
  body_css_classes << "draft" if draft_watermark
54
+ body_css_classes << "global-bar-present" if global_bar.present?
54
55
 
55
56
  blue_bar_wrapper_classes = %w()
56
57
  blue_bar_wrapper_classes << "gem-c-layout-for-public__blue-bar-wrapper--#{blue_bar_background_colour}" if blue_bar_background_colour
@@ -8,7 +8,7 @@ module GovukPublishingComponents
8
8
  def self.current_acceptance_environment
9
9
  return "example" if ENV["HEROKU"]
10
10
 
11
- GOVUK_ENVIRONMENTS.include?(ENV["GOVUK_ENVIRONMENT_NAME"]) ? ENV["GOVUK_ENVIRONMENT_NAME"] : "development"
11
+ GOVUK_ENVIRONMENTS.include?(ENV["GOVUK_ENVIRONMENT"]) ? ENV["GOVUK_ENVIRONMENT"] : "development"
12
12
  end
13
13
  end
14
14
  end
@@ -133,7 +133,7 @@ module GovukPublishingComponents
133
133
  end
134
134
 
135
135
  def ga4_attribute
136
- { type: "start button" }.to_json unless @disable_ga4
136
+ { event_name: "navigation", type: "start button" }.to_json unless @disable_ga4
137
137
  end
138
138
  end
139
139
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "38.4.1".freeze
2
+ VERSION = "39.0.0".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: 38.4.1
4
+ version: 39.0.0
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-05-28 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -1605,7 +1605,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1605
1605
  - !ruby/object:Gem::Version
1606
1606
  version: '0'
1607
1607
  requirements: []
1608
- rubygems_version: 3.5.10
1608
+ rubygems_version: 3.5.11
1609
1609
  signing_key:
1610
1610
  specification_version: 4
1611
1611
  summary: A gem to document components in GOV.UK frontend applications