govuk_publishing_components 41.1.2 → 42.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +0 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +0 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +0 -1
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +0 -1
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +0 -1
  7. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +0 -2
  8. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +0 -4
  9. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +0 -1
  10. data/app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js +0 -1
  11. data/app/assets/javascripts/govuk_publishing_components/lib.js +0 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +1 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -2
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +6 -6
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +5 -5
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +3 -3
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +2 -2
  25. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +1 -1
  26. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +6 -1
  27. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -5
  28. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +9 -0
  29. data/config/initializers/assets.rb +1 -8
  30. data/lib/govuk_publishing_components/version.rb +1 -1
  31. metadata +2 -29
  32. data/app/assets/config/govuk_publishing_components_sassc-rails_manifest.js +0 -90
  33. data/app/assets/javascripts/govuk_publishing_components/ie.js +0 -2
  34. data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +0 -4
  35. data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +0 -487
  36. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/all.js +0 -1
  37. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js +0 -23
  38. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js +0 -8
  39. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js +0 -9
  40. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/DOMTokenList.js +0 -273
  41. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Date/now.js +0 -21
  42. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js +0 -34
  43. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js +0 -592
  44. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js +0 -57
  45. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/dataset.js +0 -303
  46. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/matches.js +0 -32
  47. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/nextElementSibling.js +0 -257
  48. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/previousElementSibling.js +0 -257
  49. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element.js +0 -148
  50. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Event.js +0 -506
  51. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Function/prototype/bind.js +0 -253
  52. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Object/defineProperty.js +0 -94
  53. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/String/prototype/trim.js +0 -22
  54. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Window.js +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8abc5426ad47fe2518e790ff7de038018877885b9e0878174b9c77e6241d24ff
4
- data.tar.gz: fa85ed659a1a181745fcc246cb858dba49cdf8f8dd6cec58a8f88eb977f08b4b
3
+ metadata.gz: 53ba3400854819c86b537f469c0fbb470770a6e2f07883c45deed6719ecfa736
4
+ data.tar.gz: 64598aed656f03a98d30c5e2aee89f8349b84556e3c02a792e7c6acfbd0f16f3
5
5
  SHA512:
6
- metadata.gz: f0eebd7502ca7164363b503cbdb2c33ac53b59ed85e5fea9f8a7660c1f842c823e7c8d3fc761eade6fc0e59642fe67c03a8e5aee9854fafc0dd7a5f79144c750
7
- data.tar.gz: 89112bb0725fc797dfa3958e168d898c8d73038564282eee3c0b39bd42331b6d76459d1c5edfdcd2f35e3d8dee3349ab7c38098d139657b8e89a1b079df5892f
6
+ metadata.gz: a22d5a04f588b36863ab34d37138c0079e597b319f2eeb7d1847250ff72a8c00b2438336f1e8dc6a30e800add4ac778b435320704908f45476579a97329cc816
7
+ data.tar.gz: 0bb05292aea85d4bf2266c391f88bd0d27bf5a13f5229ff6865519acfba394fc81bfeffbc85453834114c82fe90c7593bc797fc963bc12551e04179f7c5be91b
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {};
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js
2
1
  ;(function (global) {
3
2
  'use strict'
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
4
3
 
@@ -1,4 +1,3 @@
1
- // = require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
4
3
  window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analyticsModules || {};
@@ -1,5 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
-
3
1
  window.GOVUK = window.GOVUK || {}
4
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
5
3
 
@@ -1,7 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
- //= require ../vendor/polyfills/closest.js
3
- //= require ../vendor/polyfills/indexOf.js
4
-
5
1
  window.GOVUK = window.GOVUK || {}
6
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
7
3
 
@@ -1,4 +1,3 @@
1
- //= require ../../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
1
  // This is a non-jQuery version of Magna Charta: https://github.com/alphagov/magna-charta
3
2
  window.GOVUK = window.GOVUK || {}
4
3
  window.GOVUK.Modules = window.GOVUK.Modules || {};
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
1
  /*
3
2
  Toggle the class 'focus' on input boxes on element focus/blur
4
3
  Used by the search component but generic enough for reuse
@@ -1,2 +1 @@
1
- // = require_tree ./vendor/polyfills/
2
1
  // = require_tree ./lib
@@ -17,7 +17,7 @@
17
17
  display: block !important; // stylelint-disable-line declaration-no-important
18
18
  }
19
19
 
20
- .js-enabled .govuk-accordion__section-content[hidden] {
20
+ .govuk-frontend-supported .govuk-accordion__section-content[hidden] {
21
21
  @supports (content-visibility: hidden) {
22
22
  content-visibility: auto;
23
23
  }
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
 
27
- .js-enabled {
27
+ .govuk-frontend-supported {
28
28
  .gem-c-contextual-guidance__wrapper {
29
29
  display: none;
30
30
 
@@ -13,7 +13,7 @@
13
13
  background-color: #263135;
14
14
  }
15
15
 
16
- .js-enabled .gem-c-layout-for-public__global-banner-wrapper {
16
+ .govuk-frontend-supported .gem-c-layout-for-public__global-banner-wrapper {
17
17
  margin-top: - govuk-spacing(2);
18
18
  min-height: govuk-spacing(2);
19
19
  position: relative;
@@ -87,10 +87,10 @@
87
87
  display: none;
88
88
  }
89
89
 
90
- .js-enabled .gem-c-metadata__toggle-wrap {
90
+ .govuk-frontend-supported .gem-c-metadata__toggle-wrap {
91
91
  display: block;
92
92
  }
93
93
 
94
- .js-enabled .gem-c-metadata__toggle-items.js-hidden {
94
+ .govuk-frontend-supported .gem-c-metadata__toggle-items.js-hidden {
95
95
  display: none;
96
96
  }
@@ -123,7 +123,7 @@
123
123
  padding-left: 33px;
124
124
  }
125
125
 
126
- .js-enabled {
126
+ .govuk-frontend-supported {
127
127
  .gem-c-option-select__heading {
128
128
  position: relative;
129
129
  padding: 10px 8px 5px 43px;
@@ -11,7 +11,7 @@ $gem-c-print-link-background-height: 18px;
11
11
  display: block;
12
12
  }
13
13
 
14
- .js-enabled {
14
+ .govuk-frontend-supported {
15
15
  .gem-c-print-link {
16
16
  display: block;
17
17
  }
@@ -63,7 +63,7 @@
63
63
  @include govuk-link-common;
64
64
  @include govuk-link-style-no-visited-state;
65
65
 
66
- .js-enabled & {
66
+ .govuk-frontend-supported & {
67
67
  display: inline-block;
68
68
  }
69
69
  }
@@ -105,7 +105,7 @@
105
105
  }
106
106
 
107
107
  &.js-hidden {
108
- .js-enabled & {
108
+ .govuk-frontend-supported & {
109
109
  display: none;
110
110
  }
111
111
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- .js-enabled {
76
+ .govuk-frontend-supported {
77
77
  .gem-c-reorderable-list__item {
78
78
  @include govuk-media-query($from: desktop) {
79
79
  cursor: move;
@@ -37,7 +37,7 @@ $large-input-size: 50px;
37
37
  @include govuk-font($size: 19, $line-height: $input-size);
38
38
  }
39
39
 
40
- .js-enabled & {
40
+ .govuk-frontend-supported & {
41
41
  position: absolute;
42
42
  left: 2px;
43
43
  top: 2px;
@@ -50,7 +50,7 @@ $large-input-size: 50px;
50
50
 
51
51
  // match label colour with the label component colour
52
52
  // when javascript is enabled and inline_label option is set to false
53
- .js-enabled .gem-c-search--separate-label & {
53
+ .govuk-frontend-supported .gem-c-search--separate-label & {
54
54
  color: $govuk-text-colour;
55
55
  }
56
56
  }
@@ -76,7 +76,7 @@ $large-input-size: 50px;
76
76
  -webkit-appearance: none;
77
77
  -moz-appearance: none;
78
78
  appearance: none;
79
- @include govuk-font($size: 19, $line-height: (28 / 19));
79
+ @include govuk-font($size: 19, $line-height: calc(28 / 19));
80
80
 
81
81
  @include govuk-media-query($from: tablet) {
82
82
  height: govuk-em(40, 19);
@@ -190,7 +190,7 @@ $large-input-size: 50px;
190
190
  }
191
191
  }
192
192
 
193
- .js-enabled & {
193
+ .govuk-frontend-supported & {
194
194
  .gem-c-search__label {
195
195
  color: $govuk-secondary-text-colour;
196
196
  }
@@ -246,7 +246,7 @@ $large-input-size: 50px;
246
246
  }
247
247
  }
248
248
 
249
- .js-enabled & {
249
+ .govuk-frontend-supported & {
250
250
  .gem-c-search__label {
251
251
  color: $govuk-secondary-text-colour;
252
252
  }
@@ -313,7 +313,7 @@ $large-input-size: 50px;
313
313
  }
314
314
 
315
315
  @include govuk-media-query($until: tablet) {
316
- .js-enabled & {
316
+ .govuk-frontend-supported & {
317
317
  display: block;
318
318
  }
319
319
  }
@@ -31,7 +31,7 @@
31
31
  margin-right: govuk-spacing(1);
32
32
  }
33
33
 
34
- .js-enabled .gem-c-single-page-notification-button.js-personalisation-enhancement {
34
+ .govuk-frontend-supported .gem-c-single-page-notification-button.js-personalisation-enhancement {
35
35
  opacity: 0;
36
36
 
37
37
  &.gem-c-single-page-notification-button--visible {
@@ -17,12 +17,12 @@ $top-border: solid 1px govuk-colour("mid-grey");
17
17
 
18
18
  @mixin step-nav-line-position {
19
19
  left: 0;
20
- margin-left: govuk-em(($number-circle-size / 2) - ($stroke-width / 2), 16);
20
+ margin-left: govuk-em(calc($number-circle-size / 2) - calc($stroke-width / 2), 16);
21
21
  }
22
22
 
23
23
  @mixin step-nav-line-position-large {
24
24
  left: 0;
25
- margin-left: govuk-em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
25
+ margin-left: govuk-em(calc($number-circle-size-large / 2) - calc($stroke-width / 2), 16);
26
26
  }
27
27
 
28
28
  // custom mixin as govuk-font does undesirable things at different breakpoints
@@ -56,7 +56,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
56
56
  }
57
57
  }
58
58
 
59
- .js-enabled &.js-hidden {
59
+ .govuk-frontend-supported &.js-hidden {
60
60
  display: none;
61
61
  }
62
62
  }
@@ -385,7 +385,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
385
385
  padding-top: govuk-spacing(2);
386
386
  }
387
387
 
388
- .js-enabled & {
388
+ .govuk-frontend-supported & {
389
389
  padding: 0;
390
390
  }
391
391
 
@@ -425,7 +425,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
425
425
  @include step-nav-font(16, $tablet-size: 19);
426
426
  }
427
427
 
428
- .js-enabled &.js-hidden {
428
+ .govuk-frontend-supported &.js-hidden {
429
429
  display: none;
430
430
  }
431
431
  }
@@ -63,7 +63,7 @@
63
63
  background-color: $gem-secondary-button-background-colour;
64
64
  @include govuk-font(19, $weight: bold);
65
65
 
66
- .js-enabled & {
66
+ .govuk-frontend-supported & {
67
67
  display: inline-block;
68
68
  }
69
69
 
@@ -98,13 +98,13 @@
98
98
  margin-bottom: govuk-spacing(3);
99
99
  background: govuk-colour("light-grey");
100
100
 
101
- .js-enabled &.js-hidden {
101
+ .govuk-frontend-supported &.js-hidden {
102
102
  display: none;
103
103
  }
104
104
  }
105
105
 
106
106
  .gem-c-subscription-links__feed-hidden-description {
107
- .js-enabled & {
107
+ .govuk-frontend-supported & {
108
108
  @include govuk-visually-hidden;
109
109
  }
110
110
  }
@@ -1,7 +1,7 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
  @import "govuk/components/tabs/tabs";
3
3
 
4
- .js-enabled {
4
+ .govuk-frontend-supported {
5
5
  .gem-c-tabs__panel--no-border {
6
6
  padding-right: 0;
7
7
  padding-left: 0;
@@ -24,7 +24,7 @@ li.govuk-tabs__list-item { // stylelint-disable-line selector-no-qualifying-type
24
24
  margin-left: govuk-spacing(5);
25
25
  }
26
26
 
27
- .js-enabled { // stylelint-disable-line no-duplicate-selectors
27
+ .govuk-frontend-supported { // stylelint-disable-line no-duplicate-selectors
28
28
  @include govuk-media-query($from: tablet) {
29
29
  ul.govuk-tabs__list { // stylelint-disable-line selector-no-qualifying-type
30
30
  margin-bottom: 0;
@@ -48,7 +48,7 @@
48
48
  /// }
49
49
  ///
50
50
  @mixin columns($items, $columns, $selector: "*", $flow: row) {
51
- $rows: ceil($items / $columns);
51
+ $rows: ceil(calc($items / $columns));
52
52
 
53
53
  display: -ms-grid;
54
54
  display: grid;
@@ -5,6 +5,7 @@
5
5
  css_filename ||= "application"
6
6
 
7
7
  product_name ||= "Publishing"
8
+ use_type_module ||= false
8
9
  %>
9
10
 
10
11
  <!DOCTYPE html>
@@ -28,6 +29,10 @@
28
29
  document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
29
30
  <% end -%>
30
31
  <%= yield %>
31
- <%= javascript_include_tag js_filename %>
32
+ <% if use_type_module %>
33
+ <%= javascript_include_tag js_filename, type: "module" %>
34
+ <% else %>
35
+ <%= javascript_include_tag js_filename %>
36
+ <% end %>
32
37
  </body>
33
38
  </html>
@@ -74,12 +74,11 @@
74
74
 
75
75
  <% # Used for Google Analytics 4 debugging. Must be placed before load-analytics script. %>
76
76
  <meta name="govuk:components_gem_version" content="<%= GovukPublishingComponents::VERSION %>" />
77
- <%= javascript_include_tag "govuk_publishing_components/load-analytics" %>
77
+ <%= javascript_include_tag "govuk_publishing_components/load-analytics", type: "module" %>
78
78
 
79
79
  <%= csrf_meta_tags %>
80
80
 
81
81
  <%= stylesheet_link_tag "application", media: "all" %>
82
- <!--[if lt IE 9]><%= javascript_include_tag "govuk_publishing_components/ie", integrity: true, crossorigin: "anonymous" %><![endif]-->
83
82
  <link rel="icon" sizes="48x48" href="<%= asset_path 'favicon.ico' %>">
84
83
  <link rel="icon" sizes="any" href="<%= asset_path 'favicon.svg' %>" type="image/svg+xml">
85
84
  <link rel="mask-icon" href="<%= asset_path 'govuk-icon-mask.svg' %>" color="#0b0c0c">
@@ -87,8 +86,6 @@
87
86
 
88
87
  <meta name="theme-color" content="#0b0c0c" />
89
88
  <meta name="viewport" content="width=device-width, initial-scale=1">
90
- <% # Ensure that older IE versions always render with the correct rendering engine %>
91
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
92
89
 
93
90
  <% # The default og:image is added below :head so that scrapers see any custom metatags first, and this is just a fallback %>
94
91
  <meta property="og:image" content="<%= asset_url("govuk-opengraph-image.png", host: Plek.website_root) %>">
@@ -185,7 +182,7 @@
185
182
  meta: layout_helper.footer_meta,
186
183
  } %>
187
184
  <% end %>
188
- <%= javascript_include_tag 'application' %>
185
+ <%= javascript_include_tag 'application', type: "module" %>
189
186
  <% if GovukPublishingComponents::Config.use_es6_components %>
190
187
  <%= javascript_include_tag 'es6-components', type: "module" %>
191
188
  <% end %>
@@ -50,3 +50,12 @@ examples:
50
50
  css_filename: "application"
51
51
  block: |
52
52
  <!-- You probably want to use the header, main & footer components here -->
53
+ with_type_module:
54
+ description: Adds 'type=module' to the javascript_include_tag. By default, use_type_module is false.
55
+ data:
56
+ environment: production
57
+ product_name: Publishing
58
+ browser_title: 'A page title'
59
+ use_type_module: true
60
+ block: |
61
+ <!-- You probably want to use the header, main & footer components here -->
@@ -6,14 +6,7 @@ return unless Rails.application.config.respond_to?(:assets)
6
6
  #
7
7
  # In future we may want applications to link directly to this from their
8
8
  # manifest file as the use of `config.assets.precompile` is discouraged
9
- # from version 4: https://github.com/rails/sprockets/blob/58cca17aa447fcee17703e4ab4dbfaab630e7ed4/UPGRADING.md
10
- # Rails.application.config.assets.precompile += %w[govuk_publishing_components_manifest.js]
11
-
12
- if Gem.loaded_specs.key?("dartsass-rails")
13
- Rails.application.config.assets.precompile += %w[govuk_publishing_components_manifest.js]
14
- elsif Gem.loaded_specs.key?("sassc-rails")
15
- Rails.application.config.assets.precompile += %w[govuk_publishing_components_sassc-rails_manifest.js]
16
- end
9
+ Rails.application.config.assets.precompile += %w[govuk_publishing_components_manifest.js]
17
10
 
18
11
  Rails.application.config.assets.paths += %W[
19
12
  #{__dir__}/../../node_modules/govuk-frontend/dist/govuk/assets/images
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "41.1.2".freeze
2
+ VERSION = "42.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 41.1.2
4
+ version: 42.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -356,7 +356,6 @@ files:
356
356
  - LICENCE.md
357
357
  - README.md
358
358
  - app/assets/config/govuk_publishing_components_manifest.js
359
- - app/assets/config/govuk_publishing_components_sassc-rails_manifest.js
360
359
  - app/assets/images/govuk_publishing_components/action-link-arrow--dark.png
361
360
  - app/assets/images/govuk_publishing_components/action-link-arrow--dark.svg
362
361
  - app/assets/images/govuk_publishing_components/action-link-arrow--light.png
@@ -460,7 +459,6 @@ files:
460
459
  - app/assets/javascripts/govuk_publishing_components/components/tabs.js
461
460
  - app/assets/javascripts/govuk_publishing_components/dependencies.js
462
461
  - app/assets/javascripts/govuk_publishing_components/domain-config.js
463
- - app/assets/javascripts/govuk_publishing_components/ie.js
464
462
  - app/assets/javascripts/govuk_publishing_components/lib.js
465
463
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js
466
464
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-settings.js
@@ -477,30 +475,9 @@ files:
477
475
  - app/assets/javascripts/govuk_publishing_components/modules.js
478
476
  - app/assets/javascripts/govuk_publishing_components/rum-loader.js
479
477
  - app/assets/javascripts/govuk_publishing_components/single-consent-functions.js
480
- - app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js
481
- - app/assets/javascripts/govuk_publishing_components/vendor/json2.js
482
478
  - app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-measurer.js
483
479
  - app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js
484
480
  - app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js
485
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/DOMTokenList.js
486
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Date/now.js
487
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
488
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element.js
489
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
490
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js
491
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/dataset.js
492
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/matches.js
493
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/nextElementSibling.js
494
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/previousElementSibling.js
495
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Event.js
496
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Function/prototype/bind.js
497
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Object/defineProperty.js
498
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/String/prototype/trim.js
499
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Window.js
500
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/all.js
501
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js
502
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js
503
- - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js
504
481
  - app/assets/stylesheets/component_guide/application.scss
505
482
  - app/assets/stylesheets/govuk_publishing_components/_all_components.scss
506
483
  - app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss
@@ -1826,11 +1803,7 @@ homepage: https://github.com/alphagov/govuk_publishing_components
1826
1803
  licenses:
1827
1804
  - MIT
1828
1805
  metadata: {}
1829
- post_install_message: govuk_publishing_components has now migrated to dartsass-rails
1830
- from sassc-rails for stylesheet compilation since LibSass is deprecated. While both
1831
- implementations are supported, it is recommended to update your application to use
1832
- the latest implementation of Sass (dartsass-rails). You can find further details
1833
- in the docs - https://docs.publishing.service.gov.uk/manual/migrate-to-dart-sass-from-libsass.html.
1806
+ post_install_message:
1834
1807
  rdoc_options: []
1835
1808
  require_paths:
1836
1809
  - lib
@@ -1,90 +0,0 @@
1
- // Pre-compile image and font assets from here and govuk-frontend
2
- //= link_tree ../images
3
- //= link_tree ../../../node_modules/govuk-frontend/dist/govuk/assets/images
4
- //= link_tree ../../../node_modules/govuk-frontend/dist/govuk/assets/fonts
5
-
6
- // Create asset files of each of the files in these directory
7
- //= link_directory ../javascripts/component_guide
8
- //= link_directory ../javascripts/govuk_publishing_components
9
-
10
- // Pre-compile these specific files
11
- //= link govuk_publishing_components/vendor/modernizr.js
12
- //= link govuk_publishing_components/vendor/lux/lux-reporter.js
13
- //= link govuk_publishing_components/vendor/lux/lux-measurer.js
14
- //= link component_guide/application.css
15
-
16
- // components
17
- //= link govuk_publishing_components/components/_accordion.css
18
- //= link govuk_publishing_components/components/_action-link.css
19
- //= link govuk_publishing_components/components/_attachment.css
20
- //= link govuk_publishing_components/components/_attachment-link.css
21
- //= link govuk_publishing_components/components/_back-link.css
22
- //= link govuk_publishing_components/components/_big-number.css
23
- //= link govuk_publishing_components/components/_breadcrumbs.css
24
- //= link govuk_publishing_components/components/_button.css
25
- //= link govuk_publishing_components/components/_cards.css
26
- //= link govuk_publishing_components/components/_character-count.css
27
- //= link govuk_publishing_components/components/_checkboxes.css
28
- //= link govuk_publishing_components/components/_contents-list.css
29
- //= link govuk_publishing_components/components/_contextual-guidance.css
30
- //= link govuk_publishing_components/components/_contextual-sidebar.css
31
- //= link govuk_publishing_components/components/_cookie-banner.css
32
- //= link govuk_publishing_components/components/_copy-to-clipboard.css
33
- //= link govuk_publishing_components/components/_cross-service-header.css
34
- //= link govuk_publishing_components/components/_date-input.css
35
- //= link govuk_publishing_components/components/_details.css
36
- //= link govuk_publishing_components/components/_devolved-nations.css
37
- //= link govuk_publishing_components/components/_document-list.css
38
- //= link govuk_publishing_components/components/_emergency-banner.css
39
- //= link govuk_publishing_components/components/_error-alert.css
40
- //= link govuk_publishing_components/components/_error-message.css
41
- //= link govuk_publishing_components/components/_error-summary.css
42
- //= link govuk_publishing_components/components/_feedback.css
43
- //= link govuk_publishing_components/components/_fieldset.css
44
- //= link govuk_publishing_components/components/_file-upload.css
45
- //= link govuk_publishing_components/components/_govspeak-html-publication.css
46
- //= link govuk_publishing_components/components/_govspeak.css
47
- //= link govuk_publishing_components/components/_heading.css
48
- //= link govuk_publishing_components/components/_hint.css
49
- //= link govuk_publishing_components/components/_image-card.css
50
- //= link govuk_publishing_components/components/_input.css
51
- //= link govuk_publishing_components/components/_inset-text.css
52
- //= link govuk_publishing_components/components/_intervention.css
53
- //= link govuk_publishing_components/components/_inverse-header.css
54
- //= link govuk_publishing_components/components/_label.css
55
- //= link govuk_publishing_components/components/_layout-footer.css
56
- //= link govuk_publishing_components/components/_layout-for-admin.css
57
- //= link govuk_publishing_components/components/_layout-for-public.css
58
- //= link govuk_publishing_components/components/_layout-header.css
59
- //= link govuk_publishing_components/components/_layout-super-navigation-header.css
60
- //= link govuk_publishing_components/components/_lead-paragraph.css
61
- //= link govuk_publishing_components/components/_metadata.css
62
- //= link govuk_publishing_components/components/_modal-dialogue.css
63
- //= link govuk_publishing_components/components/_notice.css
64
- //= link govuk_publishing_components/components/_option-select.css
65
- //= link govuk_publishing_components/components/_organisation-logo.css
66
- //= link govuk_publishing_components/components/_panel.css
67
- //= link govuk_publishing_components/components/_phase-banner.css
68
- //= link govuk_publishing_components/components/_previous-and-next-navigation.css
69
- //= link govuk_publishing_components/components/_print-link.css
70
- //= link govuk_publishing_components/components/_radio.css
71
- //= link govuk_publishing_components/components/_related-navigation.css
72
- //= link govuk_publishing_components/components/_reorderable-list.css
73
- //= link govuk_publishing_components/components/_search.css
74
- //= link govuk_publishing_components/components/_select.css
75
- //= link govuk_publishing_components/components/_share-links.css
76
- //= link govuk_publishing_components/components/_signup-link.css
77
- //= link govuk_publishing_components/components/_single-page-notification-button.css
78
- //= link govuk_publishing_components/components/_skip-link.css
79
- //= link govuk_publishing_components/components/_step-by-step-nav-header.css
80
- //= link govuk_publishing_components/components/_step-by-step-nav-related.css
81
- //= link govuk_publishing_components/components/_step-by-step-nav.css
82
- //= link govuk_publishing_components/components/_subscription-links.css
83
- //= link govuk_publishing_components/components/_success-alert.css
84
- //= link govuk_publishing_components/components/_summary-list.css
85
- //= link govuk_publishing_components/components/_tabs.css
86
- //= link govuk_publishing_components/components/_table.css
87
- //= link govuk_publishing_components/components/_textarea.css
88
- //= link govuk_publishing_components/components/_title.css
89
- //= link govuk_publishing_components/components/_translation-nav.css
90
- //= link govuk_publishing_components/components/_warning-text.css
@@ -1,2 +0,0 @@
1
- // = require ./vendor/html5shiv-printshiv.js
2
- // = require ./vendor/json2
@@ -1,4 +0,0 @@
1
- /**
2
- * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
3
- */
4
- !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),y.elements=c+" "+a,j(b)}function f(a){var b=x[a[v]];return b||(b={},w++,a[v]=w,x[w]=b),b}function g(a,c,d){if(c||(c=b),q)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():u.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||t.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),q)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return y.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(y,b.frag)}function j(a){a||(a=b);var d=f(a);return!y.shivCSS||p||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),q||i(a,d),a}function k(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(l(b)));return g}function l(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(A+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function m(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+A+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function n(a){for(var b=a.length;b--;)a[b].removeNode()}function o(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,e,g=f(a),h=a.namespaces,i=a.parentWindow;return!B||a.printShived?a:("undefined"==typeof h[A]&&h.add(A),i.attachEvent("onbeforeprint",function(){b();for(var f,g,h,i=a.styleSheets,j=[],l=i.length,n=Array(l);l--;)n[l]=i[l];for(;h=n.pop();)if(!h.disabled&&z.test(h.media)){try{f=h.imports,g=f.length}catch(o){g=0}for(l=0;g>l;l++)n.push(f[l]);try{j.push(h.cssText)}catch(o){}}j=m(j.reverse().join("")),e=k(a),d=c(a,j)}),i.attachEvent("onafterprint",function(){n(e),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var p,q,r="3.7.3",s=a.html5||{},t=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,v="_html5shiv",w=0,x={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",p="hidden"in a,q=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){p=!0,q=!0}}();var y={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:r,shivCSS:s.shivCSS!==!1,supportsUnknownElements:q,shivMethods:s.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=y,j(b);var z=/^$|\b(?:all|print)\b/,A="html5shiv",B=!q&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();y.type+=" print",y.shivPrint=o,o(b),"object"==typeof module&&module.exports&&(module.exports=y)}("undefined"!=typeof window?window:this,document);