@cimpress/react-components
Advanced tools
Comparing version 2.1.13 to 2.1.14
@@ -7,2 +7,7 @@ # MCP MEX React Components | ||
###### 2018-04-19 | ||
*[Notifications] | ||
- updated default attachment to be at the bottom, so notification list will always show below, this solves a bug where a short page of content with larger amount of notiifcations would open above the page and not be visible. | ||
- added the ability to pass in your own custom constraints for the tether object to be used in the notification. | ||
###### 2018-04-10 | ||
@@ -9,0 +14,0 @@ **Bug Fixes** |
@@ -88,3 +88,4 @@ 'use strict'; | ||
dateTimeComponent = _props.dateTimeComponent, | ||
viewAllComponent = _props.viewAllComponent; | ||
viewAllComponent = _props.viewAllComponent, | ||
constraints = _props.constraints; | ||
@@ -111,4 +112,9 @@ | ||
message, | ||
' ', | ||
link | ||
link && _react2.default.createElement( | ||
'span', | ||
{ onClick: function onClick() { | ||
return _this2.handleClose(); | ||
} }, | ||
viewAllComponent | ||
) | ||
) | ||
@@ -137,3 +143,9 @@ ); | ||
), | ||
viewAllComponent | ||
viewAllComponent && _react2.default.createElement( | ||
'div', | ||
{ onClick: function onClick() { | ||
return _this2.handleClose(); | ||
} }, | ||
viewAllComponent | ||
) | ||
), | ||
@@ -152,2 +164,3 @@ notifications.length ? formattedNotifications : errorMessage ? error : noNotificationsText | ||
variety: 'popover', | ||
constraints: constraints, | ||
style: { margin: '0 8px 0 0' } }, | ||
@@ -189,3 +202,4 @@ _react2.default.createElement( | ||
onClose: _propTypes2.default.func, | ||
onOpen: _propTypes2.default.func | ||
onOpen: _propTypes2.default.func, | ||
constraints: _propTypes2.default.arrayOf(_propTypes2.default.object) | ||
}; | ||
@@ -198,3 +212,8 @@ | ||
numberUnread: 0, | ||
dateTimeComponent: _SimpleDate2.default | ||
dateTimeComponent: _SimpleDate2.default, | ||
constraints: [{ | ||
to: 'scrollParent', | ||
attachment: 'bottom', | ||
pin: ['left', 'right'] | ||
}] | ||
}; |
{ | ||
"name": "@cimpress/react-components", | ||
"version": "2.1.13", | ||
"version": "2.1.14", | ||
"description": "React components to support the MCP styleguide", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
276160
4592