@financial-times/dotcom-types-navigation 2.5.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.
Files changed (2) hide show
  1. package/index.d.ts +1 -0
  2. package/package.json +12 -4
package/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export type TNavMenuItem = {
50
50
  selected?: boolean
51
51
  meganav?: TNavMeganav[]
52
52
  disableTracking?: boolean
53
+ index?: number
53
54
  }
54
55
 
55
56
  export type TNavMeganav = INavMeganavSections | INavMeganavArticles
package/package.json CHANGED
@@ -1,24 +1,32 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-types-navigation",
3
- "version": "2.5.2",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "clean": "npm run clean:node_modules",
10
- "clean:node_modules": "rm -rf node_modules"
10
+ "clean:node_modules": "rm -rf node_modules",
11
+ "preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
11
12
  },
12
13
  "keywords": [],
13
14
  "author": "",
14
15
  "license": "MIT",
15
16
  "engines": {
16
- "node": ">= 12.0.0"
17
+ "node": ">= 12.0.0",
18
+ "npm": "7.x || 8.x"
17
19
  },
18
20
  "repository": {
19
21
  "type": "git",
20
22
  "repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
21
23
  "directory": "packages/dotcom-types-navigation"
22
24
  },
23
- "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-types-navigation"
25
+ "homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-types-navigation",
26
+ "volta": {
27
+ "extends": "../../package.json"
28
+ },
29
+ "devDependencies": {
30
+ "check-engine": "^1.10.1"
31
+ }
24
32
  }