govuk_publishing_components 28.9.1 → 28.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/cross-domain-tracking.js +55 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics.js +3 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/views/govuk_publishing_components/components/_cards.html.erb +9 -25
- data/app/views/govuk_publishing_components/components/_input.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_lead_paragraph.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_summary_list.html.erb +27 -22
- data/app/views/govuk_publishing_components/components/docs/attachment.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/cards.yml +12 -6
- data/app/views/govuk_publishing_components/components/docs/input.yml +16 -13
- data/app/views/govuk_publishing_components/components/docs/list.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/summary_list.yml +2 -7
- data/lib/govuk_publishing_components/presenters/attachment.rb +3 -7
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6a4c2646d8ee1669ae9211306d03382e424c905c6de355bb5f81b5251da6e10
|
4
|
+
data.tar.gz: 13453d8a1226005ff9535eb9dce3927f450ce1a6ec6acf6daf8170ad9ffeb2e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fcda8c161715befc29844b659249668e5d2ba375f3d398f994e1e3c2348a78635516704e655f95df96aa21a9438d1079cfdb9977944020a3cfe9e7c96611a05
|
7
|
+
data.tar.gz: 7d838cc5bd1295ba3faeab424a0a6d10a5af087601e90d859eaee2a0ecc0222ee41330672800739308d34f7bb662a341f470cb8f74915cc7eb6a328555360a0a
|
@@ -0,0 +1,55 @@
|
|
1
|
+
window.GOVUK = window.GOVUK || {}
|
2
|
+
window.GOVUK.Modules = window.GOVUK.Modules || {};
|
3
|
+
|
4
|
+
(function (Modules) {
|
5
|
+
function CrossDomainTracking ($module) {
|
6
|
+
this.$module = $module
|
7
|
+
Modules.crossDomainLinkedTrackers = Modules.crossDomainLinkedTrackers || []
|
8
|
+
}
|
9
|
+
|
10
|
+
CrossDomainTracking.prototype.init = function () {
|
11
|
+
if (this.isTrackable(this.$module)) {
|
12
|
+
this.addLinkedTrackerDomain(this.$module)
|
13
|
+
} else {
|
14
|
+
this.findTrackableElements()
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
CrossDomainTracking.prototype.isTrackable = function (element) {
|
19
|
+
if (element.getAttribute('href') && element.getAttribute('data-tracking-code') && element.getAttribute('data-tracking-name')) {
|
20
|
+
return true
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
CrossDomainTracking.prototype.findTrackableElements = function () {
|
25
|
+
var links = this.$module.querySelectorAll('a')
|
26
|
+
for (var i = 0; i < links.length; i++) {
|
27
|
+
if (this.isTrackable(links[i])) {
|
28
|
+
this.addLinkedTrackerDomain(links[i])
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
CrossDomainTracking.prototype.addLinkedTrackerDomain = function (element) {
|
34
|
+
var name = element.getAttribute('data-tracking-name')
|
35
|
+
var code = element.getAttribute('data-tracking-code')
|
36
|
+
var trackEvent = (element.getAttribute('data-tracking-track-event') === 'true')
|
37
|
+
|
38
|
+
if (window.GOVUK.analytics !== 'undefined') {
|
39
|
+
if (Modules.crossDomainLinkedTrackers.indexOf(name) === -1) {
|
40
|
+
var hostname = element.hostname
|
41
|
+
window.GOVUK.analytics.addLinkedTrackerDomain(code, name, hostname)
|
42
|
+
Modules.crossDomainLinkedTrackers.push(name)
|
43
|
+
}
|
44
|
+
|
45
|
+
if (trackEvent) {
|
46
|
+
element.addEventListener('click', function (e) {
|
47
|
+
var target = e.target
|
48
|
+
window.GOVUK.analytics.trackEvent('External Link Clicked', target.textContent, { trackerName: name })
|
49
|
+
})
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
Modules.CrossDomainTracking = CrossDomainTracking
|
55
|
+
})(window.GOVUK.Modules)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
// these scripts are specifically ordered
|
2
|
+
|
1
3
|
//= require govuk_publishing_components/lib/cookie-functions
|
2
4
|
//= require govuk_publishing_components/lib/extend-object
|
3
5
|
//= require ./analytics/pii
|
@@ -18,3 +20,4 @@
|
|
18
20
|
//= require ./analytics/explicit-cross-domain-links
|
19
21
|
//= require ./analytics/track-click
|
20
22
|
//= require ./analytics/track-select-change
|
23
|
+
//= require ./analytics/cross-domain-tracking
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
10
10
|
.gem-c-govspeak {
|
11
11
|
.help-notice {
|
12
|
-
$icon-size:
|
12
|
+
$icon-size: 35px;
|
13
13
|
$line-height-mobile: 20px;
|
14
14
|
$line-height-tablet: 25px;
|
15
15
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
sub_heading_level ||= 3
|
5
5
|
two_column_layout ||= false
|
6
6
|
local_assigns ||= nil
|
7
|
+
data_attributes ||= nil
|
7
8
|
|
8
9
|
ul_classes = %w[gem-c-cards__list]
|
9
10
|
ul_classes << 'gem-c-cards__list--two-column-desktop' if two_column_layout
|
@@ -16,8 +17,9 @@
|
|
16
17
|
<%= content_tag(shared_helper.get_heading_level, class: "gem-c-cards__heading govuk-heading-m") do %>
|
17
18
|
<%= heading %>
|
18
19
|
<% end %>
|
19
|
-
<% end %>
|
20
|
-
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
<%= content_tag('ul', class: ul_classes) do %>
|
21
23
|
<%
|
22
24
|
items.each do |item|
|
23
25
|
link = item[:link]
|
@@ -25,33 +27,15 @@
|
|
25
27
|
if !link[:path].present?
|
26
28
|
raise ArgumentError, "The cards component requires a href for all the links"
|
27
29
|
end
|
28
|
-
|
29
|
-
data_attributes = nil
|
30
|
-
attributes = link[:tracking_attributes].presence
|
31
|
-
|
32
|
-
if attributes && attributes[:track_category] && attributes[:track_action]
|
33
|
-
data_attributes = {
|
34
|
-
track_action: attributes[:track_action],
|
35
|
-
track_category: attributes[:track_category],
|
36
|
-
track_dimension_index: attributes[:track_dimension_index],
|
37
|
-
track_dimension: link[:text],
|
38
|
-
track_label: link[:path],
|
39
|
-
}
|
40
|
-
end
|
41
|
-
|
42
|
-
link = capture do
|
43
|
-
link_to(link[:text], link[:path], {
|
44
|
-
class: "govuk-link gem-c-cards__link",
|
45
|
-
data: data_attributes,
|
46
|
-
})
|
47
|
-
end
|
48
30
|
%>
|
49
|
-
|
50
31
|
<li class="gem-c-cards__list-item">
|
51
32
|
<%= content_tag("h#{sub_heading_level}", class: "gem-c-cards__sub-heading govuk-heading-s") do %>
|
52
|
-
<%=
|
33
|
+
<%=
|
34
|
+
link_to link[:text], link[:path],
|
35
|
+
class: "govuk-link gem-c-cards__link",
|
36
|
+
data: link[:data_attributes]
|
37
|
+
%>
|
53
38
|
<% end %>
|
54
|
-
|
55
39
|
<% if item[:description] %>
|
56
40
|
<p class="govuk-body gem-c-cards__description"><%= item[:description] %></p>
|
57
41
|
<% end %>
|
@@ -7,6 +7,7 @@
|
|
7
7
|
describedby ||= nil
|
8
8
|
enterkeyhint ||= nil
|
9
9
|
id ||= "input-#{SecureRandom.hex(4)}"
|
10
|
+
spellcheck ||= "false"
|
10
11
|
type ||= "text"
|
11
12
|
value ||= nil
|
12
13
|
inputmode ||= nil
|
@@ -63,6 +64,7 @@
|
|
63
64
|
inputmode = "numeric"
|
64
65
|
pattern = "[0-9]*"
|
65
66
|
end
|
67
|
+
|
66
68
|
%>
|
67
69
|
|
68
70
|
<%= content_tag :div, class: form_group_css_classes do %>
|
@@ -114,6 +116,7 @@
|
|
114
116
|
name: name,
|
115
117
|
pattern: pattern,
|
116
118
|
readonly: readonly,
|
119
|
+
spellcheck: spellcheck,
|
117
120
|
tabindex: tabindex,
|
118
121
|
type: type,
|
119
122
|
value: value
|
@@ -32,12 +32,10 @@
|
|
32
32
|
|
33
33
|
<% if delete.any? %>
|
34
34
|
<% delete_main_link = capture do %>
|
35
|
-
<%
|
36
|
-
delete_section_link_text = delete[:link_text] || t("components.summary_list.delete")
|
37
|
-
%>
|
35
|
+
<% delete_section_link_text = delete[:link_text] || t("components.summary_list.delete") %>
|
38
36
|
<%= link_to delete.fetch(:href),
|
39
|
-
|
40
|
-
|
37
|
+
class: "govuk-link gem-link--destructive",
|
38
|
+
data: delete.fetch(:data_attributes, {}) do %>
|
41
39
|
<%= delete_section_link_text %><%= tag.span " #{title}", class: "govuk-visually-hidden" unless delete[:link_text_no_enhance] -%>
|
42
40
|
<% end %>
|
43
41
|
<% end %>
|
@@ -62,39 +60,46 @@
|
|
62
60
|
<%= delete_main_link %>
|
63
61
|
<% end %>
|
64
62
|
<% end %>
|
65
|
-
|
66
63
|
<% end %>
|
67
64
|
|
65
|
+
<% any_body_actions = items.detect { |item| item.has_key?("edit") || item.has_key?("delete") } %>
|
68
66
|
<% if items.any? %>
|
69
67
|
<%= tag.dl class: "govuk-summary-list" do %>
|
70
68
|
<% items.each do |item| %>
|
71
|
-
|
69
|
+
<%
|
70
|
+
item_body_actions = (item.fetch(:edit, {}).any? || item.fetch(:delete, {}).any?)
|
71
|
+
|
72
|
+
if any_body_actions.present? && !item_body_actions.present?
|
73
|
+
classes = "govuk-summary-list__row govuk-summary-list__row--no-actions"
|
74
|
+
else
|
75
|
+
classes = "govuk-summary-list__row"
|
76
|
+
end
|
77
|
+
%>
|
78
|
+
<%= tag.div class: classes do %>
|
72
79
|
|
73
80
|
<%= tag.dt item[:field], class: "govuk-summary-list__key" %>
|
74
81
|
<%= tag.dd item[:value], class: "govuk-summary-list__value" %>
|
75
82
|
|
76
83
|
<% if item.fetch(:edit, {}).any? %>
|
77
84
|
<% edit_link = capture do %>
|
78
|
-
<%
|
79
|
-
edit_link_text = item[:edit][:link_text] || t("components.summary_list.edit")
|
80
|
-
%>
|
85
|
+
<% edit_link_text = item[:edit][:link_text] || t("components.summary_list.edit") %>
|
81
86
|
<%= link_to item[:edit].fetch(:href),
|
82
|
-
|
83
|
-
|
84
|
-
<%= edit_link_text
|
87
|
+
class: "govuk-link",
|
88
|
+
data: item[:edit].fetch(:data_attributes, {}) do %>
|
89
|
+
<%= edit_link_text %>
|
90
|
+
<%= tag.span " #{item[:field]}", class: "govuk-visually-hidden" unless item[:edit][:link_text_no_enhance] -%>
|
85
91
|
<% end %>
|
86
92
|
<% end %>
|
87
93
|
<% end %>
|
88
94
|
|
89
95
|
<% if item.fetch(:delete, {}).any? %>
|
90
96
|
<% delete_link = capture do %>
|
91
|
-
<%
|
92
|
-
delete_link_text = item[:delete][:link_text] || t("components.summary_list.delete")
|
93
|
-
%>
|
97
|
+
<% delete_link_text = item[:delete][:link_text] || t("components.summary_list.delete") %>
|
94
98
|
<%= link_to item[:delete].fetch(:href),
|
95
|
-
|
96
|
-
|
97
|
-
<%= delete_link_text
|
99
|
+
class: "govuk-link gem-link--destructive",
|
100
|
+
data: item[:delete].fetch(:data_attributes, {}) do %>
|
101
|
+
<%= delete_link_text %>
|
102
|
+
<%= tag.span " #{item[:field]}", class: "govuk-visually-hidden" unless item[:delete][:link_text_no_enhance] -%>
|
98
103
|
<% end %>
|
99
104
|
<% end %>
|
100
105
|
<% end %>
|
@@ -115,17 +120,17 @@
|
|
115
120
|
<% end %>
|
116
121
|
<% end %>
|
117
122
|
<% else %>
|
123
|
+
<% if edit_link || delete_link %>
|
118
124
|
<%= tag.dd class: "govuk-summary-list__actions" do %>
|
119
125
|
<%= edit_link %>
|
120
126
|
<%= delete_link %>
|
121
127
|
<% end %>
|
122
128
|
<% end %>
|
123
|
-
|
124
129
|
<% end %>
|
125
130
|
<% end %>
|
126
131
|
<% end %>
|
127
132
|
<% end %>
|
128
|
-
|
129
|
-
<%= tag.div block, class: "gem-c-summary__block" if block %>
|
130
133
|
<% end %>
|
134
|
+
<%= tag.div block, class: "gem-c-summary__block" if block %>
|
135
|
+
<% end %>
|
131
136
|
<% end %>
|
@@ -86,7 +86,7 @@ examples:
|
|
86
86
|
file_size: 20000
|
87
87
|
owning_document_content_id: 456_abc
|
88
88
|
attachment_id: 123
|
89
|
-
alternative_format_contact_email:
|
89
|
+
alternative_format_contact_email: govuk_publishing_components@example.com
|
90
90
|
with_data_attributes:
|
91
91
|
data:
|
92
92
|
attachment:
|
@@ -116,24 +116,30 @@ examples:
|
|
116
116
|
text: Benefits
|
117
117
|
path: http://www.gov.uk
|
118
118
|
description: Includes eligibility, appeals, tax credits and Universal Credit
|
119
|
-
|
119
|
+
with_data_attributes:
|
120
120
|
description: |
|
121
|
-
|
121
|
+
Data attributes can be passed to individual links within the component as shown.
|
122
122
|
data:
|
123
123
|
items:
|
124
124
|
- link:
|
125
125
|
text: Benefits
|
126
126
|
path: http://www.gov.uk
|
127
|
-
|
128
|
-
track_action: track_action
|
127
|
+
data_attributes:
|
129
128
|
track_category: homepageClicked
|
129
|
+
track_action: track-action
|
130
|
+
track_label: track-label
|
131
|
+
track_dimension: track-dimension
|
130
132
|
track_dimension_index: 29
|
133
|
+
track_value: 9
|
131
134
|
description: Includes eligibility, appeals, tax credits and Universal Credit
|
132
135
|
- link:
|
133
136
|
text: Births, deaths, marriages and care
|
134
137
|
path: http://www.gov.uk
|
135
|
-
|
136
|
-
track_action: track_action
|
138
|
+
data_attributes:
|
137
139
|
track_category: homepageClicked
|
140
|
+
track_action: track-action
|
141
|
+
track_label: track-label
|
142
|
+
track_dimension: track-dimension
|
138
143
|
track_dimension_index: 29
|
144
|
+
track_value: 9
|
139
145
|
description: Parenting, civil partnerships, divorce and Lasting Power of Attorney
|
@@ -24,12 +24,19 @@ examples:
|
|
24
24
|
text: "What is your name?"
|
25
25
|
name: "name"
|
26
26
|
specific_input_type:
|
27
|
-
description: By default the input will be type="text"
|
27
|
+
description: By default the input will be `type="text"`. This parameter accepts an alternative, e.g. `search` or `email`. `spellcheck="false"` is the default this can be changed by passing a `true` value. Consider adding `autocomplete`. No validation is done on this input.
|
28
28
|
data:
|
29
29
|
label:
|
30
30
|
text: "What is your email address?"
|
31
31
|
name: "address"
|
32
32
|
type: "email"
|
33
|
+
with_autocomplete:
|
34
|
+
data:
|
35
|
+
label:
|
36
|
+
text: "Automatically complete the field with a user's email address (in supporting browsers)"
|
37
|
+
name: "name"
|
38
|
+
type: "email"
|
39
|
+
autocomplete: "email"
|
33
40
|
numeric_input:
|
34
41
|
description: If input is set to `type="number"` we set the component up as described in the [GOV.UK Design System guidance](https://design-system.service.gov.uk/components/text-input/#numbers) adding `inputmode` and `pattern`. These values can be overridden if necessary.
|
35
42
|
data:
|
@@ -46,11 +53,11 @@ examples:
|
|
46
53
|
id: "hasid"
|
47
54
|
with_aria_attributes:
|
48
55
|
description: |
|
49
|
-
The component accepts two possible aria attributes: aria-describedby and aria-controls
|
56
|
+
The component accepts two possible aria attributes: `aria-describedby` and `aria-controls`.
|
50
57
|
|
51
|
-
[aria-describedby](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute) is used to indicate the ID of the element that describes the input. This will be overridden in the event of an error, where the error will be used for the describedby attribute value. This example uses the ID of the main container for demonstration purposes as there aren't any useful elements with IDs in the component guide. In real use this would be passed the ID of an element that correctly described the input.
|
58
|
+
[`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute) is used to indicate the `ID` of the element that describes the input. This will be overridden in the event of an error, where the error will be used for the `describedby` attribute value. This example uses the `ID` of the main container for demonstration purposes as there aren't any useful elements with `IDs` in the component guide. In real use this would be passed the `ID` of an element that correctly described the input.
|
52
59
|
|
53
|
-
aria-controls allows the addition of an aria-controls attribute, for use in places like the finders where the page is updated dynamically after value changes to the input.
|
60
|
+
`aria-controls` allows the addition of an `aria-controls` attribute, for use in places like the finders where the page is updated dynamically after value changes to the input.
|
54
61
|
data:
|
55
62
|
label:
|
56
63
|
text: "This is an example only and may not work with a screen reader"
|
@@ -104,13 +111,6 @@ examples:
|
|
104
111
|
name: "name"
|
105
112
|
value: "You can't type more"
|
106
113
|
maxlength: 10
|
107
|
-
with_autocomplete:
|
108
|
-
data:
|
109
|
-
label:
|
110
|
-
text: "Automatically complete the field with a user's email address (in supporting browsers)"
|
111
|
-
name: "name"
|
112
|
-
type: "email"
|
113
|
-
autocomplete: "email"
|
114
114
|
with_custom_width:
|
115
115
|
data:
|
116
116
|
label:
|
@@ -119,17 +119,20 @@ examples:
|
|
119
119
|
name: "name"
|
120
120
|
width: 10
|
121
121
|
with_search_icon:
|
122
|
+
description: |
|
123
|
+
Adds a search icon, [spellcheck](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck) can also be added to indicate that the element should be, if possible, checked for spelling errors.
|
122
124
|
data:
|
123
125
|
label:
|
124
126
|
text: "Search the internet"
|
125
127
|
name: "search-box"
|
126
128
|
type: "search"
|
127
129
|
search_icon: true
|
130
|
+
spellcheck: true
|
128
131
|
with_label_as_heading:
|
129
132
|
description: |
|
130
|
-
Wraps the label in a heading tag. Valid options are 1 to 6
|
133
|
+
Wraps the label in a heading tag. Valid options are `1` to `6`. To adjust the size of the label/heading, use the `heading_size` option. Valid options are `s`, `m`, `l` and `xl`.
|
131
134
|
|
132
|
-
Based on the [heading/label pattern](https://design-system.service.gov.uk/patterns/question-pages/) in the Design System.
|
135
|
+
Based on the [heading/label pattern](https://design-system.service.gov.uk/patterns/question-pages/) in the GOV.UK Design System.
|
133
136
|
data:
|
134
137
|
label:
|
135
138
|
text: "This is a heading 1 and a label"
|
@@ -66,7 +66,7 @@ examples:
|
|
66
66
|
description: |
|
67
67
|
Sets the margin on the bottom of the list element.
|
68
68
|
|
69
|
-
The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to having a 20px margin.
|
69
|
+
The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to having a `20px` margin.
|
70
70
|
data:
|
71
71
|
margin_bottom: 9
|
72
72
|
<<: *default-example-data
|
@@ -1,6 +1,6 @@
|
|
1
1
|
name: Summary list
|
2
2
|
description: Use the summary list to summarise information, for example, a user’s responses at the end of a form.
|
3
|
-
body: This component extends the [Summary list component in the Design System](https://design-system.service.gov.uk/components/summary-list/) allowing the rendering of multiple groups of lists, and actions at the group level.
|
3
|
+
body: This component extends the [Summary list component in the GOV.UK Design System](https://design-system.service.gov.uk/components/summary-list/) allowing the rendering of multiple groups of lists, and actions at the group level.
|
4
4
|
accessibility_criteria: |
|
5
5
|
Action links in the component must:
|
6
6
|
|
@@ -102,18 +102,13 @@ examples:
|
|
102
102
|
heading_level: 2
|
103
103
|
heading_size: l
|
104
104
|
|
105
|
-
|
105
|
+
with_edit_on_some_individual_items:
|
106
106
|
description: For all links shown in the component, see the <a href="/component-guide/summary_list/with_customised_links">with customised links example</a> for guidance.
|
107
107
|
data:
|
108
108
|
title: "Title, summary and body"
|
109
109
|
items:
|
110
110
|
- field: "Title"
|
111
111
|
value: "Ethical standards for public service providers"
|
112
|
-
edit:
|
113
|
-
href: "edit-title"
|
114
|
-
text: "Edit"
|
115
|
-
data_attributes:
|
116
|
-
gtm: "edit-title"
|
117
112
|
- field: "Summary"
|
118
113
|
value: "Find out more about our reviews on the subject of ethical standards for public service providers, including our 2014 report, 2015 guidance and 2018 follow-up publication."
|
119
114
|
edit:
|
@@ -1,15 +1,11 @@
|
|
1
1
|
module GovukPublishingComponents
|
2
2
|
module Presenters
|
3
3
|
class Attachment
|
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
|
-
|
8
|
-
|
9
|
-
publications@dhsc.gov.uk
|
10
|
-
different.format@hmrc.gov.uk
|
11
|
-
gov.uk.publishing@dvsa.gov.uk
|
12
|
-
publications@phe.gov.uk].freeze
|
7
|
+
# Currently the pilot is paused so there are no participants.
|
8
|
+
EMAILS_IN_ACCESSIBLE_FORMAT_REQUEST_PILOT = %w[govuk_publishing_components@example.com].freeze
|
13
9
|
|
14
10
|
delegate :opendocument?, :document?, :spreadsheet?, to: :content_type
|
15
11
|
|
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: 28.9.
|
4
|
+
version: 28.9.2
|
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-03-
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '3'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '3'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: i18n-coverage
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -437,6 +437,7 @@ files:
|
|
437
437
|
- app/assets/javascripts/govuk_publishing_components/analytics/analytics.js
|
438
438
|
- app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js
|
439
439
|
- app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js
|
440
|
+
- app/assets/javascripts/govuk_publishing_components/analytics/cross-domain-tracking.js
|
440
441
|
- app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js
|
441
442
|
- app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js
|
442
443
|
- app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js
|
@@ -1998,7 +1999,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1998
1999
|
- !ruby/object:Gem::Version
|
1999
2000
|
version: '0'
|
2000
2001
|
requirements: []
|
2001
|
-
rubygems_version: 3.3.
|
2002
|
+
rubygems_version: 3.3.9
|
2002
2003
|
signing_key:
|
2003
2004
|
specification_version: 4
|
2004
2005
|
summary: A gem to document components in GOV.UK frontend applications
|