@nice-digital/global-nav 4.1.784 → 4.1.785

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.
@@ -42,7 +42,9 @@ var Services = /*#__PURE__*/function (_Component) {
42
42
  "aria-label": "Our services"
43
43
  }, /*#__PURE__*/_react["default"].createElement("ul", {
44
44
  className: _ServicesModule["default"].list
45
- }, _services["default"].external.map(function (link) {
45
+ }, _services["default"].external.filter(function (item) {
46
+ return item.footer;
47
+ }).map(function (link) {
46
48
  var _this = this;
47
49
 
48
50
  if (link.nestedLinks) {
@@ -0,0 +1,23 @@
1
+ {
2
+ "rootUrl": "https://rootUrl.org.uk",
3
+ "external": [
4
+ {
5
+ "href": "https://url1/",
6
+ "text": "First link",
7
+ "id": "link1",
8
+ "footer": true
9
+ },
10
+ {
11
+ "href": "https://url2/",
12
+ "text": "Second link",
13
+ "id": "link2",
14
+ "footer": false
15
+ },
16
+ {
17
+ "href": "https://url3/",
18
+ "text": "Third link",
19
+ "id": "link3",
20
+ "footer": true
21
+ }
22
+ ]
23
+ }
package/lib/services.json CHANGED
@@ -6,13 +6,15 @@
6
6
  "text": "Guidance",
7
7
  "id": "guidance",
8
8
  "dropdown": true,
9
- "dropdownComponent": "Guidance"
9
+ "dropdownComponent": "Guidance",
10
+ "footer": true
10
11
  },
11
12
  {
12
13
  "href": "https://pathways.nice.org.uk",
13
14
  "text": "NICE Pathways",
14
15
  "id": "pathways",
15
16
  "dropdown": false,
17
+ "footer": true,
16
18
  "links": [
17
19
  {
18
20
  "text": "Browse",
@@ -37,14 +39,16 @@
37
39
  "text": "Standards and indicators",
38
40
  "id": "standards-and-indicators",
39
41
  "dropdown": true,
40
- "dropdownComponent": "StandardsAndIndicators"
42
+ "dropdownComponent": "StandardsAndIndicators",
43
+ "footer": true
41
44
  },
42
45
  {
43
46
  "href": "https://www.nice.org.uk/about/what-we-do/life-sciences",
44
47
  "text": "Life sciences",
45
48
  "id": "life-sciences",
46
49
  "dropdown": true,
47
- "dropdownComponent": "LifeSciences"
50
+ "dropdownComponent": "LifeSciences",
51
+ "footer": true
48
52
  },
49
53
  {
50
54
  "href": "https://bnf.nice.org.uk",
@@ -54,6 +58,7 @@
54
58
  "id": "bnf",
55
59
  "dropdown": true,
56
60
  "dropdownComponent": "BNF",
61
+ "footer": true,
57
62
  "links": [
58
63
  {
59
64
  "text": "Drugs",
@@ -85,6 +90,7 @@
85
90
  "id": "bnfc",
86
91
  "dropdown": true,
87
92
  "dropdownComponent": "BNFc",
93
+ "footer": true,
88
94
  "links": [
89
95
  {
90
96
  "text": "Drugs",
@@ -116,6 +122,7 @@
116
122
  "id": "cks",
117
123
  "dropdown": true,
118
124
  "dropdownComponent": "CKS",
125
+ "footer": true,
119
126
  "links": [
120
127
  {
121
128
  "image": "cks",
@@ -145,7 +152,8 @@
145
152
  "text": "About",
146
153
  "id": "about",
147
154
  "dropdown": true,
148
- "dropdownComponent": "AboutUs"
155
+ "dropdownComponent": "AboutUs",
156
+ "footer": false
149
157
  },
150
158
  {
151
159
  "href": "#more",
@@ -153,6 +161,7 @@
153
161
  "id": "more",
154
162
  "dropdown": true,
155
163
  "dropdownComponent": "More",
164
+ "footer": true,
156
165
  "nestedLinks": [
157
166
  {
158
167
  "href": "https://www.evidence.nhs.uk",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/global-nav",
3
- "version": "4.1.784",
3
+ "version": "4.1.785",
4
4
  "description": "Global header and footer components for NICE digital services",
5
5
  "main": "lib/index.js",
6
6
  "types": "./types.d.ts",