govuk_publishing_components 38.1.0 → 38.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c69d86d5245b59eaef7d07ed4837a3ce3831f64573e7dd8bbe9c53c1e25846ff
4
- data.tar.gz: f69cedba1b515dd31ef091de0e44e9ae4495a1558958bc7c0b8345182262a001
3
+ metadata.gz: e957626449176c29e36bde0d645dda9a4dd296b7f06969cee8fb86c5c9bedd25
4
+ data.tar.gz: 7b8d2a6ea56fb37d014d01aa6cd5dc95fc0f62c99e36011ce8bea4183fd79c58
5
5
  SHA512:
6
- metadata.gz: d61f42c8d324dea942df43d1b7369d80f6cb1ef26010b67116d34cc559fb1e3e55b4a0ced2eebfe57b87aea1d4320b5e84e7ee8f8013f022493eedfa437c9af9
7
- data.tar.gz: 1f37595cb0ad4857820400241b6ac5b7e89be37f3da2e18d57fa242452b25fde3f842b44dee23f92c0661b289dffc3305a9b310cd757a841d0d6e39b60d80b25
6
+ metadata.gz: 5e35fa964443be079e31839687e19811493fb76faa63ec948a619ca57a42cf611868fb590d16e1b92b40c3b2ec534ff94b6433ba6dd2b5cd7e0565ef07cbdcff
7
+ data.tar.gz: 6298895e8212651e27924b5dabe6e56f68ff8bab616051cb8c137e90e11f09b1ea5261a918de6b570729688ebc978cb40538235685525a9634e28425919d1ce7
@@ -1,5 +1,7 @@
1
1
  <%
2
2
  add_gem_component_stylesheet("layout-for-admin")
3
+ js_filename ||= "application"
4
+ css_filename ||= "application"
3
5
 
4
6
  product_name ||= "Publishing"
5
7
  %>
@@ -13,7 +15,7 @@
13
15
  <meta name="viewport" content="width=device-width, initial-scale=1">
14
16
  <%= csrf_meta_tags %>
15
17
  <%= favicon_link_tag "govuk_publishing_components/favicon-#{environment}.png" %>
16
- <%= stylesheet_link_tag "application", media: "all" %>
18
+ <%= stylesheet_link_tag css_filename, media: "all" %>
17
19
  <%= javascript_include_tag "govuk_publishing_components/vendor/modernizr" %>
18
20
  <%= yield :head %>
19
21
  </head>
@@ -22,6 +24,6 @@
22
24
  document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
23
25
  <% end -%>
24
26
  <%= yield %>
25
- <%= javascript_include_tag "application" %>
27
+ <%= javascript_include_tag js_filename %>
26
28
  </body>
27
29
  </html>
@@ -23,3 +23,21 @@ examples:
23
23
  browser_title: 'A page title'
24
24
  block: |
25
25
  <!-- You probably want to use the header, main & footer components here -->
26
+ with_custom_js_filename:
27
+ description: An alternative JS filename can be used in place of the default `application.js` if required (note that this cannot easily be demonstrated here).
28
+ data:
29
+ environment: production
30
+ product_name: Publishing
31
+ browser_title: 'A page title'
32
+ js_filename: "application"
33
+ block: |
34
+ <!-- You probably want to use the header, main & footer components here -->
35
+ with_custom_css_filename:
36
+ description: An alternative JS filename can be used in place of the default `application.scss` if required (note that this cannot easily be demonstrated here).
37
+ data:
38
+ environment: production
39
+ product_name: Publishing
40
+ browser_title: 'A page title'
41
+ css_filename: "application"
42
+ block: |
43
+ <!-- You probably want to use the header, main & footer components here -->
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "38.1.0".freeze
2
+ VERSION = "38.1.1".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: 38.1.0
4
+ version: 38.1.1
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: 2024-04-22 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config