@financial-times/dotcom-ui-header 2.6.2 → 3.0.0
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/browser.js +1 -1
- package/package.json +15 -6
- package/styles.scss +1 -1
- package/bower.json +0 -9
package/browser.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/dotcom-ui-header",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "component.js",
|
|
@@ -16,29 +16,38 @@
|
|
|
16
16
|
"build": "npm run build:node",
|
|
17
17
|
"build:node": "npm run tsc -- --module commonjs --outDir ./dist/node",
|
|
18
18
|
"build:svg-to-react": "node scripts/convertSvgsToReactComponents.js",
|
|
19
|
-
"dev": "npm run build:node -- --watch"
|
|
19
|
+
"dev": "npm run build:node -- --watch",
|
|
20
|
+
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [],
|
|
22
23
|
"author": "",
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@financial-times/dotcom-types-navigation": "^
|
|
26
|
+
"@financial-times/dotcom-types-navigation": "^3.0.0",
|
|
27
|
+
"@financial-times/o-header": "^9.2.0",
|
|
28
|
+
"n-topic-search": "^3.0.0",
|
|
29
|
+
"n-ui-foundations": "^7.0.0"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
32
|
"@financial-times/logo-images": "^1.10.1",
|
|
29
33
|
"@svgr/core": "^5.0.0",
|
|
30
|
-
"camelcase": "^6.0.0"
|
|
34
|
+
"camelcase": "^6.0.0",
|
|
35
|
+
"check-engine": "^1.10.1"
|
|
31
36
|
},
|
|
32
37
|
"peerDependencies": {
|
|
33
38
|
"react": "^16.8.6"
|
|
34
39
|
},
|
|
35
40
|
"engines": {
|
|
36
|
-
"node": ">= 12.0.0"
|
|
41
|
+
"node": ">= 12.0.0",
|
|
42
|
+
"npm": "7.x || 8.x"
|
|
37
43
|
},
|
|
38
44
|
"repository": {
|
|
39
45
|
"type": "git",
|
|
40
46
|
"repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
|
|
41
47
|
"directory": "packages/dotcom-ui-header"
|
|
42
48
|
},
|
|
43
|
-
"homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-header"
|
|
49
|
+
"homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-header",
|
|
50
|
+
"volta": {
|
|
51
|
+
"extends": "../../package.json"
|
|
52
|
+
}
|
|
44
53
|
}
|
package/styles.scss
CHANGED
|
@@ -5,7 +5,7 @@ $system-code: 'page-kit-header' !default;
|
|
|
5
5
|
|
|
6
6
|
// We don't need the sub-brand or transparent header styles so disable them.
|
|
7
7
|
// TODO: move drawer styles into a separate stylesheet which can be lazy loaded?
|
|
8
|
-
@import "o-header/main";
|
|
8
|
+
@import "@financial-times/o-header/main";
|
|
9
9
|
@include oHeader(('top', 'nav', 'subnav', 'search', 'megamenu', 'drawer', 'anon', 'sticky', 'simple'));
|
|
10
10
|
|
|
11
11
|
@import "src/header";
|