@financial-times/dotcom-types-navigation 4.1.0 → 5.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.
Files changed (2) hide show
  1. package/index.d.ts +7 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export type TNavMenusForEdition = { [key in TNavMenuKeysForEdition]: TNavMenu }
29
29
  export type TNavigationData = TNavMenusForEdition &
30
30
  TNavSubNavigation & {
31
31
  editions: TNavEditions
32
+ subscribeAction?: TNavAction
32
33
  currentPath?: string
33
34
  }
34
35
 
@@ -86,3 +87,9 @@ export type TNavEdition = {
86
87
  id: string
87
88
  url: string
88
89
  }
90
+
91
+ export type TNavAction = {
92
+ name: string
93
+ id: string
94
+ url: string
95
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-types-navigation",
3
- "version": "4.1.0",
3
+ "version": "5.1.0",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "author": "",
15
15
  "license": "MIT",
16
16
  "engines": {
17
- "node": ">= 12.0.0",
17
+ "node": ">= 14.0.0",
18
18
  "npm": "7.x || 8.x"
19
19
  },
20
20
  "repository": {