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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg +4 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics.js +16 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +85 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +30 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +120 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +41 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +101 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +51 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +56 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +198 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/init.js.erb +50 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +38 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +129 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +74 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +39 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +513 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +132 -0
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +15 -3
- data/app/assets/javascripts/govuk_publishing_components/lib/track-click.js +61 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +26 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +10 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +23 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +95 -45
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +8 -13
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +8 -12
- data/app/views/govuk_publishing_components/components/_input.html.erb +17 -4
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +6 -5
- data/app/views/govuk_publishing_components/components/_panel.html.erb +5 -2
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +12 -4
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +20 -9
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +8 -0
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +0 -37
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -6
- data/app/views/govuk_publishing_components/components/docs/input.yml +7 -3
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -3
- data/app/views/govuk_publishing_components/components/docs/panel.yml +4 -0
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -1
- data/config/initializers/assets.rb +1 -0
- data/config/locales/en.yml +1 -1
- data/config/locales/et.yml +4 -0
- data/config/locales/fr.yml +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +24 -3
@@ -11,10 +11,12 @@
|
|
11
11
|
GOV.UK
|
12
12
|
</span>
|
13
13
|
</span>
|
14
|
-
<%
|
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
|
data/config/locales/en.yml
CHANGED
@@ -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
|
-
|
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."
|
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:
|
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-
|
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.
|
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
|