govuk_publishing_components 29.3.0 → 29.4.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/custom-dimensions.js +1 -0
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +0 -2
- data/config/locales/en.yml +2 -2
- data/lib/govuk_publishing_components/presenters/meta_tags.rb +4 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -4
- data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 831296f6233744d3d669b023b5f8243ee118f51ce7b1ba3b8c5f510346b87b9c
|
4
|
+
data.tar.gz: 7d01de1a9e86110a92c486394cf5a1ee509ca3421037cac5b6281b5ecb209690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0cf8c3cebef33691aab437ff16219573f6d7b0132b266cc28178ae8a06c8e3034ed04275611876cccff7e63418ab38bf7564e17cb1ba98bc2fa877b8743f32c
|
7
|
+
data.tar.gz: 86bb5adec0ebb031efc467ec4bc566f790a1e466fdd454edf4fdca1e94946db467d660d9413943146a720271f34ef97e35d0fda6801d0de01559b832111b73bb
|
@@ -57,6 +57,7 @@
|
|
57
57
|
'rendering-application': { dimension: 20 },
|
58
58
|
'search-autocomplete-status': { dimension: 21 },
|
59
59
|
'navigation-legacy': { dimension: 30, defaultValue: 'none' },
|
60
|
+
'navigation-list-type': { dimension: 31, defaultValue: 'none' },
|
60
61
|
'navigation-page-type': { dimension: 32, defaultValue: 'none' },
|
61
62
|
'taxon-slug': { dimension: 56, defaultValue: 'other' },
|
62
63
|
'taxon-id': { dimension: 57, defaultValue: 'other' },
|
data/config/locales/en.yml
CHANGED
@@ -177,8 +177,8 @@ en:
|
|
177
177
|
navigation_search_heading: Search and popular pages
|
178
178
|
navigation_search_subheading: Search
|
179
179
|
popular_links:
|
180
|
-
- label: '
|
181
|
-
href: "/
|
180
|
+
- label: 'Moving to the UK from Ukraine'
|
181
|
+
href: "/guidance/move-to-the-uk-if-youre-from-ukraine"
|
182
182
|
- label: 'Coronavirus (COVID-19)'
|
183
183
|
href: "/coronavirus"
|
184
184
|
- label: Find a job
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module GovukPublishingComponents
|
2
2
|
module Presenters
|
3
3
|
class MetaTags
|
4
|
+
FORMATS_THAT_MIGHT_INCLUDE_POSTCODES = %w[smart_answer finder local_transaction place special_route transaction].freeze
|
5
|
+
|
4
6
|
attr_reader :content_item, :details, :links, :local_assigns, :request
|
5
7
|
|
6
8
|
def initialize(content_item, local_assigns, request)
|
@@ -31,6 +33,7 @@ module GovukPublishingComponents
|
|
31
33
|
meta_tags["govuk:schema-name"] = content_item[:schema_name] if content_item[:schema_name]
|
32
34
|
meta_tags["govuk:content-id"] = content_item[:content_id] if content_item[:content_id]
|
33
35
|
meta_tags["govuk:navigation-page-type"] = content_item[:navigation_page_type] if content_item[:navigation_page_type]
|
36
|
+
meta_tags["govuk:navigation-list-type"] = content_item[:navigation_list_type] if content_item[:navigation_list_type]
|
34
37
|
meta_tags["govuk:section"] = content_item[:section] if content_item[:section]
|
35
38
|
meta_tags["govuk:withdrawn"] = "withdrawn" if content_item[:withdrawn_notice].present?
|
36
39
|
meta_tags["govuk:content-has-history"] = "true" if has_content_history?
|
@@ -148,8 +151,7 @@ module GovukPublishingComponents
|
|
148
151
|
# document_type
|
149
152
|
return local_assigns[:strip_postcode_pii] if local_assigns.key?(:strip_postcode_pii)
|
150
153
|
|
151
|
-
|
152
|
-
formats_that_might_include_postcodes.include?(content_item[:document_type])
|
154
|
+
FORMATS_THAT_MIGHT_INCLUDE_POSTCODES.include?(content_item[:document_type])
|
153
155
|
end
|
154
156
|
end
|
155
157
|
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: 29.
|
4
|
+
version: 29.4.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: 2022-04-
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -464,7 +464,6 @@ files:
|
|
464
464
|
- app/assets/javascripts/govuk_publishing_components/components/error-summary.js
|
465
465
|
- app/assets/javascripts/govuk_publishing_components/components/feedback.js
|
466
466
|
- app/assets/javascripts/govuk_publishing_components/components/govspeak.js
|
467
|
-
- app/assets/javascripts/govuk_publishing_components/components/intervention.js
|
468
467
|
- app/assets/javascripts/govuk_publishing_components/components/layout-header.js
|
469
468
|
- app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
|
470
469
|
- app/assets/javascripts/govuk_publishing_components/components/metadata.js
|
@@ -1891,7 +1890,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1891
1890
|
- !ruby/object:Gem::Version
|
1892
1891
|
version: '0'
|
1893
1892
|
requirements: []
|
1894
|
-
rubygems_version: 3.3.
|
1893
|
+
rubygems_version: 3.3.11
|
1895
1894
|
signing_key:
|
1896
1895
|
specification_version: 4
|
1897
1896
|
summary: A gem to document components in GOV.UK frontend applications
|
@@ -1,17 +0,0 @@
|
|
1
|
-
window.GOVUK = window.GOVUK || {}
|
2
|
-
window.GOVUK.Modules = window.GOVUK.Modules || {};
|
3
|
-
|
4
|
-
(function (Modules) {
|
5
|
-
function Intervention ($module) {
|
6
|
-
this.$module = $module
|
7
|
-
}
|
8
|
-
|
9
|
-
Intervention.prototype.init = function () {
|
10
|
-
if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
|
11
|
-
// Send a tracking event when this component is shown
|
12
|
-
window.GOVUK.analytics.trackEvent('interventionBanner', 'interventionShown')
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
Modules.Intervention = Intervention
|
17
|
-
})(window.GOVUK.Modules)
|