@nice-digital/global-nav 4.1.708-GN-165-IconsDep → 4.1.709
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/lib/Footer/Footer.module.scss +15 -1
- package/lib/Header/Header.module.scss +1 -1
- package/lib/Header/Nav/Dropdown/Components/Button.module.scss +1 -2
- package/lib/Header/Nav/Dropdown/Components/index.js +1 -1
- package/lib/Header/Nav/NavLinks/NavLinks.module.scss +1 -1
- package/lib/Header/Search/Autocomplete/Autocomplete.js +1 -1
- package/lib/Header/Search/Autocomplete/suggester/phrase-finder.js +1 -1
- package/lib/Header/Search/Autocomplete/suggester/term-finder.js +1 -1
- package/lib/Header/Search/Autocomplete/suggester/tokenizer.js +2 -2
- package/lib/renderer.js +1 -1
- package/lib/tracker/index.js +1 -1
- package/package.json +37 -38
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
background: $colour-footer-background;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
color: $colour-footer-text;
|
|
10
|
-
contain-intrinsic-size:
|
|
10
|
+
contain-intrinsic-size: 100vw rem(1090); /* stylelint-disable-line */
|
|
11
11
|
content-visibility: auto; /* stylelint-disable-line */
|
|
12
12
|
font-family: unquote($nds-font-family-sans);
|
|
13
13
|
margin: rem($nds-spacing-large 0 0 0);
|
|
@@ -23,6 +23,20 @@
|
|
|
23
23
|
a {
|
|
24
24
|
font-weight: normal; // To override Pathways global anchor style
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
// Estimates of intrinsic height across breakpoints
|
|
28
|
+
@include mq($from: xs) {
|
|
29
|
+
contain-intrinsic-height: rem(930);
|
|
30
|
+
}
|
|
31
|
+
@include mq($from: sm) {
|
|
32
|
+
contain-intrinsic-height: rem(540);
|
|
33
|
+
}
|
|
34
|
+
@include mq($from: md) {
|
|
35
|
+
contain-intrinsic-height: rem(450);
|
|
36
|
+
}
|
|
37
|
+
@include mq($from: lg) {
|
|
38
|
+
contain-intrinsic-height: rem(495);
|
|
39
|
+
}
|
|
26
40
|
}
|
|
27
41
|
|
|
28
42
|
.container {
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
// Mostly copied from nds-button
|
|
4
4
|
|
|
5
|
-
$nds-button-shadow-colour: rgba(0, 0, 0,
|
|
5
|
+
$nds-button-shadow-colour: rgba(0, 0, 0, 20%);
|
|
6
6
|
$nds-button-border-radius: em(3px);
|
|
7
7
|
|
|
8
8
|
.button {
|
|
9
9
|
border: em(1px) solid $nds-colour-btn-primary-text;
|
|
10
|
-
border-radius: $nds-button-border-radius;
|
|
11
10
|
box-shadow: 0 em(3px) em(6px) 0 $nds-button-shadow-colour;
|
|
12
11
|
color: $nds-colour-nice-white !important;
|
|
13
12
|
display: inline-block;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.More = exports.StandardsAndIndicators = exports.LifeSciences = exports.Guidance = exports.CKS = exports.BNFc = exports.BNF = exports.AboutUs = void 0;
|
|
5
5
|
|
|
6
6
|
var _AboutUs = require("./AboutUs");
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.rateLimitWait = void 0;
|
|
7
7
|
|
|
8
8
|
var _newArrowCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/newArrowCheck"));
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
4
|
exports.findPhrase = findPhrase;
|
|
6
5
|
exports.highlightPhrase = highlightPhrase;
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
// Finds a phrase within a suggested term
|
|
9
9
|
function findPhrase(queryTokens, suggestionTokens) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports
|
|
4
|
+
exports.whitespaceTokenizer = whitespaceTokenizer;
|
|
5
5
|
exports.normalizeTokens = normalizeTokens;
|
|
6
6
|
exports.tokenize = tokenize;
|
|
7
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @typedef Token
|
package/lib/renderer.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.renderFooter = exports.renderHeader = exports.footerId = exports.headerId = void 0;
|
|
7
7
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
|
package/lib/tracker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.trackEvent = exports.
|
|
4
|
+
exports.trackEvent = exports.ensureDataLayer = exports.footerClickEventAction = exports.headerClickEventAction = exports.defaultEventCategory = exports.eventName = exports.eventTimeout = void 0;
|
|
5
5
|
var eventTimeout = 2000;
|
|
6
6
|
exports.eventTimeout = eventTimeout;
|
|
7
7
|
var eventName = "GlobalNav";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/global-nav",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.709",
|
|
4
4
|
"description": "Global header and footer components for NICE digital services",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./types.d.ts",
|
|
@@ -51,79 +51,78 @@
|
|
|
51
51
|
"node": ">= 12"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@babel/cli": "^7.16
|
|
55
|
-
"@babel/core": "^7.
|
|
54
|
+
"@babel/cli": "^7.13.16",
|
|
55
|
+
"@babel/core": "^7.14.2",
|
|
56
56
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
57
|
-
"@babel/plugin-transform-member-expression-literals": "^7.
|
|
58
|
-
"@babel/plugin-transform-property-literals": "^7.
|
|
59
|
-
"@babel/plugin-transform-react-jsx": "^7.
|
|
60
|
-
"@babel/plugin-transform-reserved-words": "^7.
|
|
61
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
62
|
-
"@babel/preset-env": "^7.
|
|
63
|
-
"@babel/preset-react": "^7.
|
|
64
|
-
"@nice-digital/
|
|
57
|
+
"@babel/plugin-transform-member-expression-literals": "^7.12.13",
|
|
58
|
+
"@babel/plugin-transform-property-literals": "^7.12.13",
|
|
59
|
+
"@babel/plugin-transform-react-jsx": "^7.13.12",
|
|
60
|
+
"@babel/plugin-transform-reserved-words": "^7.12.13",
|
|
61
|
+
"@babel/plugin-transform-runtime": "^7.14.2",
|
|
62
|
+
"@babel/preset-env": "^7.14.2",
|
|
63
|
+
"@babel/preset-react": "^7.13.13",
|
|
64
|
+
"@nice-digital/design-system": "^1.2.30",
|
|
65
65
|
"@nice-digital/eslint-config": "^1.0.3",
|
|
66
66
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
|
67
|
-
"autoprefixer": "^10.
|
|
67
|
+
"autoprefixer": "^10.2.5",
|
|
68
68
|
"babel-eslint": "^10.1.0",
|
|
69
69
|
"babel-jest": "^26.6.3",
|
|
70
|
-
"babel-loader": "^8.2.
|
|
70
|
+
"babel-loader": "^8.2.2",
|
|
71
71
|
"clean-webpack-plugin": "^3.0.0",
|
|
72
72
|
"copy-webpack-plugin": "^8.1.1",
|
|
73
|
-
"core-js": "^3.
|
|
73
|
+
"core-js": "^3.12.1",
|
|
74
74
|
"cross-env": "^7.0.3",
|
|
75
|
-
"css-loader": "^5.2.
|
|
75
|
+
"css-loader": "^5.2.4",
|
|
76
76
|
"enzyme": "^3.11.0",
|
|
77
77
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
78
78
|
"enzyme-to-json": "^3.6.2",
|
|
79
79
|
"es3ify-loader": "^0.2.0",
|
|
80
|
-
"eslint": "^7.
|
|
80
|
+
"eslint": "^7.26.0",
|
|
81
81
|
"eslint-config-prettier": "^8.3.0",
|
|
82
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
83
|
-
"eslint-plugin-prettier": "^3.4.
|
|
84
|
-
"eslint-plugin-react": "^7.
|
|
85
|
-
"eslint-webpack-plugin": "^2.
|
|
82
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
83
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
84
|
+
"eslint-plugin-react": "^7.23.2",
|
|
85
|
+
"eslint-webpack-plugin": "^2.5.4",
|
|
86
86
|
"file-loader": "^6.2.0",
|
|
87
|
-
"html-webpack-plugin": "^5.
|
|
87
|
+
"html-webpack-plugin": "^5.3.1",
|
|
88
88
|
"identity-obj-proxy": "^3.0.0",
|
|
89
89
|
"jest": "^26.6.3",
|
|
90
90
|
"jest-teamcity-reporter": "^0.9.0",
|
|
91
91
|
"mockdate": "^3.0.5",
|
|
92
92
|
"npm-audit-reporter-teamcity": "^0.3.1",
|
|
93
|
-
"postcss": "^8.
|
|
93
|
+
"postcss": "^8.2.15",
|
|
94
94
|
"postcss-loader": "^5.2.0",
|
|
95
|
-
"prettier": "^2.
|
|
96
|
-
"promise-polyfill": "^8.2.
|
|
95
|
+
"prettier": "^2.3.0",
|
|
96
|
+
"promise-polyfill": "^8.2.0",
|
|
97
97
|
"react": "^16.14.0",
|
|
98
98
|
"react-dom": "^16.14.0",
|
|
99
99
|
"react-refresh": "^0.10.0",
|
|
100
|
-
"sass": "^1.
|
|
100
|
+
"sass": "^1.32.13",
|
|
101
101
|
"sass-loader": "^11.1.1",
|
|
102
102
|
"source-map-loader": "^2.0.1",
|
|
103
103
|
"style-loader": "^2.0.0",
|
|
104
104
|
"stylelint": "^13.13.1",
|
|
105
105
|
"stylelint-config-standard": "^22.0.0",
|
|
106
106
|
"stylelint-order": "^4.1.0",
|
|
107
|
-
"stylelint-scss": "^3.
|
|
108
|
-
"stylelint-webpack-plugin": "^2.
|
|
109
|
-
"terser-webpack-plugin": "^5.
|
|
110
|
-
"webpack": "^5.
|
|
111
|
-
"webpack-cli": "^4.
|
|
112
|
-
"webpack-dev-server": "^3.11.
|
|
107
|
+
"stylelint-scss": "^3.19.0",
|
|
108
|
+
"stylelint-webpack-plugin": "^2.1.1",
|
|
109
|
+
"terser-webpack-plugin": "^5.1.2",
|
|
110
|
+
"webpack": "^5.37.0",
|
|
111
|
+
"webpack-cli": "^4.7.0",
|
|
112
|
+
"webpack-dev-server": "^3.11.2",
|
|
113
113
|
"webpack-merge": "^5.7.3"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@babel/runtime": "^7.
|
|
117
|
-
"@nice-digital/
|
|
118
|
-
"@
|
|
119
|
-
"@use-it/event-listener": "^0.1.7",
|
|
116
|
+
"@babel/runtime": "^7.14.0",
|
|
117
|
+
"@nice-digital/browserslist-config": "^2.0.1",
|
|
118
|
+
"@use-it/event-listener": "^0.1.6",
|
|
120
119
|
"accessible-autocomplete": "^2.0.3",
|
|
121
120
|
"classnames": "^2.3.1",
|
|
122
121
|
"es5-polyfill": "0.0.6",
|
|
123
|
-
"focus-trap-react": "^8.
|
|
122
|
+
"focus-trap-react": "^8.7.0",
|
|
124
123
|
"js-cookie": "^2.2.1",
|
|
125
|
-
"prop-types": "^15.
|
|
126
|
-
"react-shadow-root": "^6.1.
|
|
124
|
+
"prop-types": "^15.7.2",
|
|
125
|
+
"react-shadow-root": "^6.1.0",
|
|
127
126
|
"unfetch": "^4.2.0"
|
|
128
127
|
},
|
|
129
128
|
"files": [
|