govuk_publishing_components 29.6.0 → 29.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +72 -73
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +11 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/gtm-click-tracking.js +49 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +1 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +0 -1
  7. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +20 -6
  8. data/app/assets/javascripts/govuk_publishing_components/modules.js +0 -1
  9. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-measurer.js +37 -0
  10. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +166 -142
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +11 -4
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  14. data/app/controllers/govuk_publishing_components/audit_controller.rb +1 -4
  15. data/app/models/govuk_publishing_components/audit_components.rb +61 -24
  16. data/app/views/govuk_publishing_components/audit/_applications.html.erb +8 -3
  17. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +82 -0
  18. data/app/views/govuk_publishing_components/audit/_components.html.erb +2 -47
  19. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  20. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/_attachment.html.erb +1 -1
  22. data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
  23. data/app/views/govuk_publishing_components/components/_cards.html.erb +13 -11
  24. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +4 -5
  25. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  26. data/app/views/govuk_publishing_components/components/docs/document_list.yml +4 -4
  27. data/app/views/govuk_publishing_components/components/docs/heading.yml +1 -1
  28. data/app/views/govuk_publishing_components/components/docs/image_card.yml +1 -1
  29. data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +4 -4
  30. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  31. data/app/views/govuk_publishing_components/components/docs/share_links.yml +1 -1
  32. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +1 -1
  33. data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +1 -2
  34. data/config/locales/en.yml +0 -2
  35. data/lib/generators/govuk_publishing_components/templates/_component.html.erb +1 -1
  36. data/lib/govuk_publishing_components/app_helpers/brand_helper.rb +1 -1
  37. data/lib/govuk_publishing_components/presenters/{attachment.rb → attachment_helper.rb} +1 -2
  38. data/lib/govuk_publishing_components/version.rb +1 -1
  39. data/lib/govuk_publishing_components.rb +1 -1
  40. metadata +7 -4
@@ -60,7 +60,7 @@ examples:
60
60
  context:
61
61
  right_to_left: true
62
62
  with_branding:
63
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
63
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown.
64
64
  data:
65
65
  brand: 'wales-office'
66
66
  translations:
@@ -134,4 +134,3 @@ examples:
134
134
  dimension29: 'dimension29Welsh'
135
135
  context:
136
136
  dark_background: true
137
-
@@ -175,8 +175,6 @@ en:
175
175
  href: "/browse/childcare-parenting"
176
176
  - label: Citizenship and living in the UK
177
177
  href: "/browse/citizenship"
178
- - label: Coronavirus (COVID‑19)
179
- href: "/coronavirus"
180
178
  - label: Crime, justice and the law
181
179
  href: "/browse/justice"
182
180
  - label: Disabled people
@@ -1,3 +1,3 @@
1
1
  <div class="<%= @component_prefix %><%= @public_name %>">
2
- <h2><a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_conventions.md">How to build a component</a></h2>
2
+ <h2><a href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_conventions.md">How to build a component</a></h2>
3
3
  </div>
@@ -7,7 +7,7 @@ module GovukPublishingComponents
7
7
 
8
8
  # Apply government organisation branding to individual components, specifically
9
9
  # link colour and border colour
10
- # see https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md
10
+ # see https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md
11
11
 
12
12
  def brand_class
13
13
  "brand--#{@brand}" if @brand
@@ -1,13 +1,12 @@
1
1
  module GovukPublishingComponents
2
2
  module Presenters
3
- class Attachment
3
+ class AttachmentHelper
4
4
  # Various departments are taking part in a pilot to use a form
5
5
  # rather than direct email for users to request accessible formats. When the pilot
6
6
  # scheme is rolled out further this can be removed.
7
7
  # Currently DfE, DWP and DVSA are participating in the pilot.
8
8
  EMAILS_IN_ACCESSIBLE_FORMAT_REQUEST_PILOT = %w[govuk_publishing_components@example.com
9
9
  alternative.formats@education.gov.uk
10
- accessible.formats@dwp.gov.uk
11
10
  gov.uk.publishing@dvsa.gov.uk].freeze
12
11
 
13
12
  delegate :opendocument?, :document?, :spreadsheet?, to: :content_type
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "29.6.0".freeze
2
+ VERSION = "29.9.0".freeze
3
3
  end
@@ -5,7 +5,7 @@ require "govuk_personalisation"
5
5
  require "govuk_publishing_components/config"
6
6
  require "govuk_publishing_components/engine"
7
7
  require "govuk_publishing_components/presenters/shared_helper"
8
- require "govuk_publishing_components/presenters/attachment"
8
+ require "govuk_publishing_components/presenters/attachment_helper"
9
9
  require "govuk_publishing_components/presenters/big_number_helper"
10
10
  require "govuk_publishing_components/presenters/breadcrumbs"
11
11
  require "govuk_publishing_components/presenters/breadcrumb_selector"
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.6.0
4
+ version: 29.9.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-26 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -433,6 +433,8 @@ files:
433
433
  - app/assets/javascripts/component_guide/vendor/bind-polyfill.js
434
434
  - app/assets/javascripts/component_guide/vendor/matches-polyfill.min.js
435
435
  - app/assets/javascripts/govuk_publishing_components/all_components.js
436
+ - app/assets/javascripts/govuk_publishing_components/analytics-ga4.js
437
+ - app/assets/javascripts/govuk_publishing_components/analytics-ga4/gtm-click-tracking.js
436
438
  - app/assets/javascripts/govuk_publishing_components/analytics.js
437
439
  - app/assets/javascripts/govuk_publishing_components/analytics/analytics.js
438
440
  - app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js
@@ -636,6 +638,7 @@ files:
636
638
  - app/models/govuk_publishing_components/component_example.rb
637
639
  - app/models/govuk_publishing_components/shared_accessibility_criteria.rb
638
640
  - app/views/govuk_publishing_components/audit/_applications.html.erb
641
+ - app/views/govuk_publishing_components/audit/_component_contents.html.erb
639
642
  - app/views/govuk_publishing_components/audit/_components.html.erb
640
643
  - app/views/govuk_publishing_components/audit/show.html.erb
641
644
  - app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb
@@ -899,7 +902,7 @@ files:
899
902
  - lib/govuk_publishing_components/config.rb
900
903
  - lib/govuk_publishing_components/engine.rb
901
904
  - lib/govuk_publishing_components/minitest/component_guide_test.rb
902
- - lib/govuk_publishing_components/presenters/attachment.rb
905
+ - lib/govuk_publishing_components/presenters/attachment_helper.rb
903
906
  - lib/govuk_publishing_components/presenters/big_number_helper.rb
904
907
  - lib/govuk_publishing_components/presenters/breadcrumb_selector.rb
905
908
  - lib/govuk_publishing_components/presenters/breadcrumbs.rb
@@ -1890,7 +1893,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1890
1893
  - !ruby/object:Gem::Version
1891
1894
  version: '0'
1892
1895
  requirements: []
1893
- rubygems_version: 3.3.12
1896
+ rubygems_version: 3.3.14
1894
1897
  signing_key:
1895
1898
  specification_version: 4
1896
1899
  summary: A gem to document components in GOV.UK frontend applications