@financial-times/dotcom-ui-header 2.6.1 → 4.1.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 CHANGED
@@ -1,4 +1,4 @@
1
- import Header from 'o-header'
1
+ import Header from '@financial-times/o-header'
2
2
  import TopicSearch from 'n-topic-search'
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-header",
3
- "version": "2.6.1",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "browser": "browser.js",
6
6
  "main": "component.js",
@@ -16,29 +16,41 @@
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": "^2.6.1"
26
+ "@financial-times/dotcom-types-navigation": "^4.1.0",
27
+ "n-topic-search": "^3.2.3",
28
+ "n-ui-foundations": "^7.0.0"
26
29
  },
27
30
  "devDependencies": {
28
31
  "@financial-times/logo-images": "^1.10.1",
29
32
  "@svgr/core": "^5.0.0",
30
- "camelcase": "^6.0.0"
33
+ "camelcase": "^6.0.0",
34
+ "check-engine": "^1.10.1",
35
+ "@financial-times/o-header": "^9.2.0",
36
+ "react": "^16.8.6"
31
37
  },
32
38
  "peerDependencies": {
33
- "react": "^16.8.6"
39
+ "@financial-times/o-header": "^9.2.0",
40
+ "@financial-times/logo-images": "^1.10.1",
41
+ "react": "16.x || 17.x"
34
42
  },
35
43
  "engines": {
36
- "node": ">= 12.0.0"
44
+ "node": ">= 12.0.0",
45
+ "npm": "7.x || 8.x"
37
46
  },
38
47
  "repository": {
39
48
  "type": "git",
40
49
  "repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
41
50
  "directory": "packages/dotcom-ui-header"
42
51
  },
43
- "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-header"
52
+ "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-header",
53
+ "volta": {
54
+ "extends": "../../package.json"
55
+ }
44
56
  }
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";
package/bower.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "name": "dotcom-ui-header",
3
- "dependencies": {
4
- "o-header": "^8.5.0",
5
- "n-topic-search": "^3.0.0",
6
- "n-ui-foundations": "^6.0.0"
7
- },
8
- "main": ["browser.js", "styles.scss"]
9
- }