Skip to content

Commit

Permalink
Bumped version to 1.0.33 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
fragsalat committed Nov 22, 2017
1 parent 88e5bda commit 445dc75
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 21 deletions.
16 changes: 11 additions & 5 deletions dist/amd/ws-header/ws-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
'a',
{
className: 'application-name',
href: '#'
href: this.props.rootUrl
},
this.props.appLogo && _imports.React.createElement(
'figure',
Expand Down Expand Up @@ -303,7 +303,7 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
_imports.React.createElement(
'ul',
null,
_imports.React.createElement(
this.props.showLocale && _imports.React.createElement(
'li',
null,
_imports.React.createElement(_wsDropdown.WSDropdown, {
Expand All @@ -318,7 +318,7 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
type: 'anchor'
})
),
!this.state.isLoggedIn ? _imports.React.createElement(
this.props.showAuthorization && (!this.state.isLoggedIn ? _imports.React.createElement(
'li',
{ onClick: function onClick() {
return _this4.login();
Expand All @@ -338,7 +338,7 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
null,
_imports.React.createElement('span', { className: 'icon icon24 icon-power' })
)
)
))
)
)
),
Expand Down Expand Up @@ -408,6 +408,9 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
links: [],
appName: 'Zalando',
appLogo: null,
rootUrl: '#',
showLocale: true,
showAuthorization: true,
onLocaleChange: function onLocaleChange() {},
onAuthChange: function onAuthChange() {}
}
Expand All @@ -423,7 +426,10 @@ define(['exports', '../imports', './storage/cookie-storage', './storage/local-st
appName: _imports.PropTypes.string,
appLogo: _imports.PropTypes.string,
onLocaleChange: _imports.PropTypes.func,
onAuthChange: _imports.PropTypes.func
onAuthChange: _imports.PropTypes.func,
rootUrl: _imports.PropTypes.string,
showLocale: _imports.PropTypes.bool,
showAuthorization: _imports.PropTypes.bool
}
});
});
16 changes: 11 additions & 5 deletions dist/commonjs/ws-header/ws-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ var WSHeader = exports.WSHeader = function (_Component) {
'a',
{
className: 'application-name',
href: '#'
href: this.props.rootUrl
},
this.props.appLogo && _imports.React.createElement(
'figure',
Expand Down Expand Up @@ -272,7 +272,7 @@ var WSHeader = exports.WSHeader = function (_Component) {
_imports.React.createElement(
'ul',
null,
_imports.React.createElement(
this.props.showLocale && _imports.React.createElement(
'li',
null,
_imports.React.createElement(_wsDropdown.WSDropdown, {
Expand All @@ -287,7 +287,7 @@ var WSHeader = exports.WSHeader = function (_Component) {
type: 'anchor'
})
),
!this.state.isLoggedIn ? _imports.React.createElement(
this.props.showAuthorization && (!this.state.isLoggedIn ? _imports.React.createElement(
'li',
{ onClick: function onClick() {
return _this4.login();
Expand All @@ -307,7 +307,7 @@ var WSHeader = exports.WSHeader = function (_Component) {
null,
_imports.React.createElement('span', { className: 'icon icon24 icon-power' })
)
)
))
)
)
),
Expand Down Expand Up @@ -377,6 +377,9 @@ Object.defineProperty(WSHeader, 'defaultProps', {
links: [],
appName: 'Zalando',
appLogo: null,
rootUrl: '#',
showLocale: true,
showAuthorization: true,
onLocaleChange: function onLocaleChange() {},
onAuthChange: function onAuthChange() {}
}
Expand All @@ -392,6 +395,9 @@ Object.defineProperty(WSHeader, 'propTypes', {
appName: _imports.PropTypes.string,
appLogo: _imports.PropTypes.string,
onLocaleChange: _imports.PropTypes.func,
onAuthChange: _imports.PropTypes.func
onAuthChange: _imports.PropTypes.func,
rootUrl: _imports.PropTypes.string,
showLocale: _imports.PropTypes.bool,
showAuthorization: _imports.PropTypes.bool
}
});
16 changes: 11 additions & 5 deletions dist/es2015/ws-header/ws-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export var WSHeader = function (_Component) {
'a',
{
className: 'application-name',
href: '#'
href: this.props.rootUrl
},
this.props.appLogo && React.createElement(
'figure',
Expand Down Expand Up @@ -261,7 +261,7 @@ export var WSHeader = function (_Component) {
React.createElement(
'ul',
null,
React.createElement(
this.props.showLocale && React.createElement(
'li',
null,
React.createElement(WSDropdown, {
Expand All @@ -276,7 +276,7 @@ export var WSHeader = function (_Component) {
type: 'anchor'
})
),
!this.state.isLoggedIn ? React.createElement(
this.props.showAuthorization && (!this.state.isLoggedIn ? React.createElement(
'li',
{ onClick: function onClick() {
return _this4.login();
Expand All @@ -296,7 +296,7 @@ export var WSHeader = function (_Component) {
null,
React.createElement('span', { className: 'icon icon24 icon-power' })
)
)
))
)
)
),
Expand Down Expand Up @@ -365,6 +365,9 @@ Object.defineProperty(WSHeader, 'defaultProps', {
links: [],
appName: 'Zalando',
appLogo: null,
rootUrl: '#',
showLocale: true,
showAuthorization: true,
onLocaleChange: function onLocaleChange() {},
onAuthChange: function onAuthChange() {}
}
Expand All @@ -380,6 +383,9 @@ Object.defineProperty(WSHeader, 'propTypes', {
appName: PropTypes.string,
appLogo: PropTypes.string,
onLocaleChange: PropTypes.func,
onAuthChange: PropTypes.func
onAuthChange: PropTypes.func,
rootUrl: PropTypes.string,
showLocale: PropTypes.bool,
showAuthorization: PropTypes.bool
}
});
16 changes: 11 additions & 5 deletions dist/system/ws-header/ws-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
'a',
{
className: 'application-name',
href: '#'
href: this.props.rootUrl
},
this.props.appLogo && React.createElement(
'figure',
Expand Down Expand Up @@ -315,7 +315,7 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
React.createElement(
'ul',
null,
React.createElement(
this.props.showLocale && React.createElement(
'li',
null,
React.createElement(WSDropdown, {
Expand All @@ -330,7 +330,7 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
type: 'anchor'
})
),
!this.state.isLoggedIn ? React.createElement(
this.props.showAuthorization && (!this.state.isLoggedIn ? React.createElement(
'li',
{ onClick: function onClick() {
return _this4.login();
Expand All @@ -350,7 +350,7 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
null,
React.createElement('span', { className: 'icon icon24 icon-power' })
)
)
))
)
)
),
Expand Down Expand Up @@ -422,6 +422,9 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
links: [],
appName: 'Zalando',
appLogo: null,
rootUrl: '#',
showLocale: true,
showAuthorization: true,
onLocaleChange: function onLocaleChange() {},
onAuthChange: function onAuthChange() {}
}
Expand All @@ -437,7 +440,10 @@ System.register(['../imports', './storage/cookie-storage', './storage/local-stor
appName: PropTypes.string,
appLogo: PropTypes.string,
onLocaleChange: PropTypes.func,
onAuthChange: PropTypes.func
onAuthChange: PropTypes.func,
rootUrl: PropTypes.string,
showLocale: PropTypes.bool,
showAuthorization: PropTypes.bool
}
});
}
Expand Down
5 changes: 5 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="1.0.33"></a>
## [1.0.33](https://github.com/fabric-design/components/compare/1.0.32...1.0.33) (2017-11-22)



<a name="1.0.32"></a>
## [1.0.32](https://github.com/fabric-design/components/compare/1.0.31...1.0.32) (2017-11-22)

Expand Down
15 changes: 15 additions & 0 deletions doc/api/ws-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ It will resolve null when no access token is present and therefore the user isn'

- `props`

**Properties**

- `props` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** React properties object
- `props.loginUrl` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the application login url
- `props.businessPartnerId` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the application businessPartnerId
- `props.clientId` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the application yourturn clientId
- `props.links` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)>** property used to set the list of links with multiple levels
- `props.appName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the application name
- `props.appLogo` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the application image logo
- `props.rootUrl` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** property used to set the root application url
- `props.showLocale` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Flag used to show the locale dropdown
- `props.showAuthorization` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Flag to show the login area
- `props.onLocaleChange` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Function used to propagate data
- `props.onAuthChange` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Function used to propagate data

### constructor

**Parameters**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabric-components",
"version": "1.0.32",
"version": "1.0.33",
"description": "",
"scripts": {
"start": "webpack-dev-server --progress --colors --content-base build webpack.config.js",
Expand Down

0 comments on commit 445dc75

Please sign in to comment.