govuk_publishing_components 21.68.0 → 23.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg +4 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics.js +16 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +85 -0
  6. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +30 -0
  7. data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +120 -0
  8. data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +41 -0
  9. data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +101 -0
  10. data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +51 -0
  11. data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +56 -0
  12. data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +198 -0
  13. data/app/assets/javascripts/govuk_publishing_components/analytics/init.js +48 -0
  14. data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +38 -0
  15. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +129 -0
  16. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +74 -0
  17. data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +39 -0
  18. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +513 -0
  19. data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +132 -0
  20. data/app/assets/javascripts/govuk_publishing_components/lib/track-click.js +61 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +26 -6
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +23 -20
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +7 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +95 -45
  25. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
  26. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +8 -13
  27. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +8 -12
  28. data/app/views/govuk_publishing_components/components/_input.html.erb +17 -4
  29. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
  30. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +6 -5
  31. data/app/views/govuk_publishing_components/components/_panel.html.erb +5 -2
  32. data/app/views/govuk_publishing_components/components/_print_link.html.erb +26 -11
  33. data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
  34. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +20 -9
  35. data/app/views/govuk_publishing_components/components/docs/action_link.yml +8 -0
  36. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +0 -37
  37. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -6
  38. data/app/views/govuk_publishing_components/components/docs/input.yml +7 -3
  39. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -3
  40. data/app/views/govuk_publishing_components/components/docs/panel.yml +4 -0
  41. data/app/views/govuk_publishing_components/components/docs/print_link.yml +5 -0
  42. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -1
  43. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -1
  44. data/config/initializers/assets.rb +1 -0
  45. data/config/locales/et.yml +4 -0
  46. data/config/locales/fr.yml +4 -0
  47. data/lib/govuk_publishing_components/version.rb +1 -1
  48. metadata +23 -2
@@ -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
@@ -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.68.0".freeze
2
+ VERSION = "23.2.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.68.0
4
+ version: 23.2.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-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-28 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
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