@financial-times/dotcom-ui-header 7.1.1 → 7.1.3

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/README.md +2 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -35,7 +35,7 @@ import { Header, Drawer } from '@financial-times/dotcom-ui-header'
35
35
 
36
36
  const SiteHeader = (props) => (
37
37
  <Header data={props.navigationData} userIsLoggedIn={props.userIsLoggedIn} />
38
- <Drawer data={props.navigationData} userIsLoggedIn={props.userIsLoggedIn} />
38
+ <Drawer data={props.navigationData} userIsLoggedIn={props.userIsLoggedIn} userIsSubscribed={props.userIsSubscribed} />
39
39
  )
40
40
  ```
41
41
 
@@ -71,6 +71,7 @@ All header components with the exception of `<LogoOnly />` require the following
71
71
  | variant | 'simple' \| 'large-logo' \| string | true | 'simple' | Adds a class name to the header element
72
72
  | userIsAnonymous | boolean | true | true | Marks a user as anonymous - can be set by middleware included with n-express |
73
73
  | userIsLoggedIn | boolean | true | false | Marks a user as logged in - can be set by middleware included with n-express |
74
+ | userIsSubscribed | boolean | true | false | Marks a user as subscribed - set by middleware(ammit task in preflight) included with n-express |
74
75
  | showUserNavigation | boolean | true | true | Show user navigation options such as `Sign out` or `Subscribe` |
75
76
  | showSubNavigation | boolean | true | true | Show the sub-navigation component which may include the crumbtrail |
76
77
  | showStickyHeader | boolean | true | true | Enable rendering of the sticky header component |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-header",
3
- "version": "7.1.1",
3
+ "version": "7.1.3",
4
4
  "description": "",
5
5
  "browser": "browser.js",
6
6
  "main": "component.js",
@@ -23,7 +23,7 @@
23
23
  "author": "",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@financial-times/dotcom-types-navigation": "^7.1.1",
26
+ "@financial-times/dotcom-types-navigation": "^7.1.3",
27
27
  "n-topic-search": "^4.0.0",
28
28
  "n-ui-foundations": "^9.0.0"
29
29
  },