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 +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +1 -0
- data/app/models/govuk_publishing_components/component_docs.rb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -0
- data/lib/govuk_publishing_components/app_helpers/environment.rb +1 -1
- data/lib/govuk_publishing_components/presenters/button_helper.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 982f0330db863fed2732e92555a9ff3028e0752c7ba3cf905a11da149b3ee2e4
|
4
|
+
data.tar.gz: 9bb1fc599dffea943095bacbbb67d8c1e595932ec988d2d06a1d436e9b6cca98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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["
|
11
|
+
GOVUK_ENVIRONMENTS.include?(ENV["GOVUK_ENVIRONMENT"]) ? ENV["GOVUK_ENVIRONMENT"] : "development"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
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:
|
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-
|
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.
|
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
|