govuk_publishing_components 38.4.0 → 38.4.2

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: e7ea0b6a93379ec1e7cb8e5b7194c5cc16e237129cdbe224b9a099d79f4ca7ff
4
- data.tar.gz: 567e2f625bd4b773a48f56c13c15d383f4fcdba5c44c9369ae327b8cf5772419
3
+ metadata.gz: ef32d3030ffa13a219217e5da812a2c8f60f4974dfae056b780dba0c2934ae89
4
+ data.tar.gz: 2d3a31d7520cd943e1c79e7054945574f7e36929604d35017372d5444deccdfa
5
5
  SHA512:
6
- metadata.gz: 4b0bd17834a7658027b98c43cf2b2514f4bdb3ee06974e21bd27932a81e4f4ce4a7785468623d92511026e8773ae9af78dccca88c3c1ba0ba88ee89ff06b81aa
7
- data.tar.gz: 1544edbfac9e4d2f5723f220aadd5619b86ff3386dae982d6b53ee9d8e20ba264a52f54ee44a6194b9ae912d8f0684d2a20bd3f0ff33d8d0775ca09cae3b8d86
6
+ metadata.gz: 6c5e9467f9824143658930724739780947e76fa6df8a3e13621305956332e6073f46e9bde4aba41c6a9e4098efc57884437d1e03a4208e29284ca19722f3901f
7
+ data.tar.gz: de095dfa1e550f4f0fce76ddecf9861a0b468e000df4190f92a916e82347e4f3cd5e587f40d6de94077bc732140009f5f9081ba5639dc9f98336e157145e5350
@@ -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
@@ -60,7 +60,7 @@ cy:
60
60
  - Rydyn ni hefyd yn defnyddio cwcis sy'n cael eu gosod gan wefannau eraill i'n helpu i gyflwyno cynnwys o'u gwasanaethau nhw.
61
61
  title: Cwcis ar GOV.UK
62
62
  devolved_nations:
63
- applies_to:
63
+ applies_to: Yn berthnasol i
64
64
  connectors:
65
65
  last_word:
66
66
  two_words:
@@ -72,7 +72,7 @@ cy:
72
72
  detailed_guide:
73
73
  guidance:
74
74
  publication:
75
- wales:
75
+ wales: Gymru
76
76
  feedback:
77
77
  close: Cau
78
78
  dont_include_personal_info: Peidiwch â chynnwys gwybodaeth bersonol neu ariannol fel eich rhif Yswiriant Gwladol neu rif cerdyn credyd.
@@ -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.0".freeze
2
+ VERSION = "38.4.2".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.0
4
+ version: 38.4.2
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-21 00:00:00.000000000 Z
11
+ date: 2024-06-11 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