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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fd7d68de807a05d01e46427e93dc8ed2bb444494f535b65dfdf981922ff030c
4
- data.tar.gz: fdccf680599fd06ea9bea981bf5c12aea5b5c30d47a5597bdae4a43e3d5494e0
3
+ metadata.gz: 831296f6233744d3d669b023b5f8243ee118f51ce7b1ba3b8c5f510346b87b9c
4
+ data.tar.gz: 7d01de1a9e86110a92c486394cf5a1ee509ca3421037cac5b6281b5ecb209690
5
5
  SHA512:
6
- metadata.gz: 336dc812fed04cbf9a394af91162f43aecac81e8104e47c81a0affb0b8b9a8d284114704fec01a0ad9d259d717d3697d90efcfa9e3abce9cc7fb4576ef84ef41
7
- data.tar.gz: 654f0eea37003f7315ed72668de4ca540cd7c365bb85566791075f3d54e0fc10b042fbf5bd4cbbdba49eadf70a8c9240809c322cffd9aa09f81148ae13cacb62
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' },
@@ -6,9 +6,7 @@
6
6
  hide ||= false
7
7
  new_tab ||= false
8
8
 
9
-
10
9
  data_attributes ||= {}
11
- data_attributes[:module] = 'intervention'
12
10
  suggestion_data_attributes ||= {}
13
11
  dismiss_data_attributes ||= {}
14
12
 
@@ -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: 'Invasion of Ukraine'
181
- href: "/government/topical-events/russian-invasion-of-ukraine-uk-government-response"
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
- formats_that_might_include_postcodes = %w[smart_answer finder]
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
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "29.3.0".freeze
2
+ VERSION = "29.4.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: 29.3.0
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-04 00:00:00.000000000 Z
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.10
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)