govuk_publishing_components 21.67.1 → 23.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png +0 -0
  4. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg +4 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics.js +16 -0
  6. data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +85 -0
  7. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +30 -0
  8. data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +120 -0
  9. data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +41 -0
  10. data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +101 -0
  11. data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +51 -0
  12. data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +56 -0
  13. data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +198 -0
  14. data/app/assets/javascripts/govuk_publishing_components/analytics/init.js.erb +50 -0
  15. data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +38 -0
  16. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +129 -0
  17. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +74 -0
  18. data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +39 -0
  19. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +513 -0
  20. data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +132 -0
  21. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +15 -3
  22. data/app/assets/javascripts/govuk_publishing_components/lib/track-click.js +61 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +26 -6
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +10 -2
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +23 -18
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +95 -45
  27. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
  28. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +8 -13
  29. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +8 -12
  30. data/app/views/govuk_publishing_components/components/_input.html.erb +17 -4
  31. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
  32. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +6 -5
  33. data/app/views/govuk_publishing_components/components/_panel.html.erb +5 -2
  34. data/app/views/govuk_publishing_components/components/_print_link.html.erb +12 -4
  35. data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
  36. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +20 -9
  37. data/app/views/govuk_publishing_components/components/docs/action_link.yml +8 -0
  38. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +0 -37
  39. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -6
  40. data/app/views/govuk_publishing_components/components/docs/input.yml +7 -3
  41. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -3
  42. data/app/views/govuk_publishing_components/components/docs/panel.yml +4 -0
  43. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +5 -5
  44. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -1
  45. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -1
  46. data/config/initializers/assets.rb +1 -0
  47. data/config/locales/en.yml +1 -1
  48. data/config/locales/et.yml +4 -0
  49. data/config/locales/fr.yml +4 -0
  50. data/lib/govuk_publishing_components/version.rb +1 -1
  51. metadata +24 -3
@@ -11,10 +11,12 @@
11
11
  GOV.UK
12
12
  </span>
13
13
  </span>
14
- <% unless public_environment %>
14
+ <% if product_name %>
15
15
  <span class="govuk-header__product-name gem-c-header__product-name">
16
16
  <%= product_name %>
17
17
  </span>
18
+ <% end %>
19
+ <% if environment %>
18
20
  <span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
19
21
  <%= environment %>
20
22
  </span>
@@ -2,7 +2,6 @@
2
2
  <form id="search" class="gem-c-layout-header__search-form govuk-clearfix" action="/search" method="get" role="search">
3
3
  <%= render "govuk_publishing_components/components/search", {
4
4
  id: "site-search-text",
5
- label_text: "Search",
6
5
  no_border: true,
7
6
  margin_bottom: 0
8
7
  } %>
@@ -11,6 +11,7 @@ Rails.application.config.assets.precompile += %w[
11
11
  govuk_publishing_components/ie.js
12
12
  govuk_publishing_components/modules.js
13
13
  govuk_publishing_components/vendor/modernizr.js
14
+ govuk_publishing_components/analytics.js
14
15
  govuk_publishing_components/component_guide.css
15
16
  govuk_publishing_components/favicon-development.png
16
17
  govuk_publishing_components/favicon-example.png
@@ -44,7 +44,7 @@ en:
44
44
  is_useful: "this page is useful"
45
45
  is_not_useful: "this page is not useful"
46
46
  thank_you_for_feedback: "Thank you for your feedback"
47
- anything_wrong: "Is there anything wrong with this page?"
47
+ something_wrong: "There is something wrong with this page"
48
48
  close: "Close"
49
49
  help_us_improve_govuk: "Help us improve GOV.UK"
50
50
  more_about_visit: "To help us improve GOV.UK, we’d like to know more about your visit today. We’ll send you a link to a feedback form. It will take only 2 minutes to fill in. Don’t worry we won’t send you spam or share your email address with anyone."
@@ -0,0 +1,4 @@
1
+ et:
2
+ components:
3
+ contents_list:
4
+ contents: Sisukord
@@ -0,0 +1,4 @@
1
+ fr:
2
+ components:
3
+ contents_list:
4
+ contents: Contenu
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.67.1".freeze
2
+ VERSION = "23.0.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: 21.67.1
4
+ version: 23.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: 2020-09-28 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -318,6 +318,8 @@ files:
318
318
  - app/assets/images/govuk_publishing_components/action-link--nhs.svg
319
319
  - app/assets/images/govuk_publishing_components/action-link-arrow--dark.png
320
320
  - app/assets/images/govuk_publishing_components/action-link-arrow--dark.svg
321
+ - app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png
322
+ - app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg
321
323
  - app/assets/images/govuk_publishing_components/action-link-arrow--simple.png
322
324
  - app/assets/images/govuk_publishing_components/action-link-arrow--simple.svg
323
325
  - app/assets/images/govuk_publishing_components/action-link-arrow--transparent.svg
@@ -395,6 +397,22 @@ files:
395
397
  - app/assets/javascripts/component_guide/vendor/matches-polyfill.min.js
396
398
  - app/assets/javascripts/component_guide/visual-regression.js
397
399
  - app/assets/javascripts/govuk_publishing_components/all_components.js
400
+ - app/assets/javascripts/govuk_publishing_components/analytics.js
401
+ - app/assets/javascripts/govuk_publishing_components/analytics/analytics.js
402
+ - app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js
403
+ - app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js
404
+ - app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js
405
+ - app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js
406
+ - app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js
407
+ - app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js
408
+ - app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js
409
+ - app/assets/javascripts/govuk_publishing_components/analytics/init.js.erb
410
+ - app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js
411
+ - app/assets/javascripts/govuk_publishing_components/analytics/page-content.js
412
+ - app/assets/javascripts/govuk_publishing_components/analytics/pii.js
413
+ - app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js
414
+ - app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js
415
+ - app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js
398
416
  - app/assets/javascripts/govuk_publishing_components/components/accordion.js
399
417
  - app/assets/javascripts/govuk_publishing_components/components/button.js
400
418
  - app/assets/javascripts/govuk_publishing_components/components/character-count.js
@@ -427,6 +445,7 @@ files:
427
445
  - app/assets/javascripts/govuk_publishing_components/lib/select.js
428
446
  - app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js
429
447
  - app/assets/javascripts/govuk_publishing_components/lib/toggle.js
448
+ - app/assets/javascripts/govuk_publishing_components/lib/track-click.js
430
449
  - app/assets/javascripts/govuk_publishing_components/modules.js
431
450
  - app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js
432
451
  - app/assets/javascripts/govuk_publishing_components/vendor/json2.js
@@ -746,6 +765,8 @@ files:
746
765
  - config/initializers/assets.rb
747
766
  - config/locales/cy.yml
748
767
  - config/locales/en.yml
768
+ - config/locales/et.yml
769
+ - config/locales/fr.yml
749
770
  - config/routes.rb
750
771
  - lib/generators/govuk_publishing_components/USAGE
751
772
  - lib/generators/govuk_publishing_components/component_generator.rb
@@ -1803,7 +1824,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1803
1824
  - !ruby/object:Gem::Version
1804
1825
  version: '0'
1805
1826
  requirements: []
1806
- rubygems_version: 3.0.3
1827
+ rubygems_version: 3.1.4
1807
1828
  signing_key:
1808
1829
  specification_version: 4
1809
1830
  summary: A gem to document components in GOV.UK frontend applications