@companieshouse/ch-node-utils 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companieshouse/ch-node-utils",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "author": "companieshouse",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -6,6 +6,11 @@
6
6
  {% set _cdnImageRootPath = _cdnImageRootPath + "/rebrand" %}
7
7
  {% endif %}
8
8
 
9
+ {% set _cdnManifestRootPath = cdnHost + "/static/govuk-frontend/v" + govukFrontendVersion %}
10
+ {% if govukRebrand %}
11
+ {% set _cdnManifestRootPath = _cdnManifestRootPath + "/rebrand" %}
12
+ {% endif %}
13
+
9
14
  {# GOV.UK Frontend Page Template option for Open Graph https://design-system.service.gov.uk/styles/page-template/#options #}
10
15
  {% set opengraphImageUrl = _cdnImageRootPath + "/govuk-opengraph-image.png" %}
11
16
 
@@ -15,6 +20,7 @@
15
20
  <link rel="icon" sizes="any" href="{{ _cdnImageRootPath }}/favicon.svg" type="image/svg+xml">
16
21
  <link rel="mask-icon" href="{{ _cdnImageRootPath }}/govuk-icon-mask.svg" color="{{ themeColor }}">
17
22
  <link rel="apple-touch-icon" href="{{ _cdnImageRootPath }}/govuk-icon-180.png">
23
+ <link rel="manifest" href="{{ _cdnManifestRootPath }}/manifest.json">
18
24
  {% endblock %}
19
25
 
20
26
  {% block head %}
@@ -46,7 +46,7 @@ It receives:
46
46
  </li>
47
47
  {% for item in menuItems %}
48
48
  <li>
49
- <a class="govuk-link" id="{{ item.id }}" href="{{ item.href }}">{{ item.displayText }}</a>
49
+ <a class="govuk-link" id="{{ item.id }}" data-event-id="{{ item.id }}-nav-link" href="{{ item.href }}">{{ item.displayText }}</a>
50
50
  </li>
51
51
  {% endfor %}
52
52
  </ul>