@financial-times/dotcom-ui-footer 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 Footer from 'o-footer'
1
+ import Footer from '@financial-times/o-footer'
2
2
 
3
3
  /**
4
4
  * @typedef FooterOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-footer",
3
- "version": "2.6.1",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "main": "component.js",
6
6
  "styles": "styles.scss",
@@ -15,24 +15,35 @@
15
15
  "clean:install": "npm run clean && npm i",
16
16
  "build": "npm run build:node",
17
17
  "build:node": "npm run tsc -- --module commonjs --outDir ./dist/node",
18
- "dev": "npm run build:node -- --watch"
18
+ "dev": "npm run build:node -- --watch",
19
+ "preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
19
20
  },
20
21
  "keywords": [],
21
22
  "author": "",
22
23
  "license": "MIT",
23
24
  "dependencies": {
24
- "@financial-times/dotcom-types-navigation": "^2.6.1"
25
+ "@financial-times/dotcom-types-navigation": "^4.1.0"
25
26
  },
26
27
  "peerDependencies": {
27
- "react": "^16.8.6"
28
+ "react": "16.x || 17.x",
29
+ "@financial-times/o-footer": "^9.2.0"
28
30
  },
29
31
  "engines": {
30
- "node": ">= 12.0.0"
32
+ "node": ">= 12.0.0",
33
+ "npm": "7.x || 8.x"
31
34
  },
32
35
  "repository": {
33
36
  "type": "git",
34
37
  "repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
35
38
  "directory": "packages/dotcom-ui-footer"
36
39
  },
37
- "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-footer"
40
+ "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-footer",
41
+ "volta": {
42
+ "extends": "../../package.json"
43
+ },
44
+ "devDependencies": {
45
+ "check-engine": "^1.10.1",
46
+ "@financial-times/o-footer": "^9.2.0",
47
+ "react": "^16.8.6"
48
+ }
38
49
  }
package/styles.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  // This will be overridden by dotcom-ui-layout, it's necessary here for storybook builds
2
2
  $system-code: 'page-kit-footer' !default;
3
3
 
4
- @import 'o-footer/main';
4
+ @import '@financial-times/o-footer/main';
5
5
  @include oFooter();
package/bower.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "name": "dotcom-ui-footer",
3
- "dependencies": {
4
- "o-footer": "9.0.1-bower"
5
- },
6
- "main": [
7
- "browser.js",
8
- "styles.scss"
9
- ]
10
- }