Releases: pburtchaell/react-notification
Version 6.5.0
This release adds support for React v15.x and removes all string attribute refs in the <Notification />
component.
Version 6.4.0
This release adds a new property, dismissInOrder
. If dismissInOrder
is set to false, dismiss timers for notifications in the notification stack will start immediately. This is as opposed to the normal behavior of waiting 1 second for each active notification.
Version 6.3.0
This release enables notifications to be programmatically dismissed in a notification stack, preserving the slide-out animation. A deactivate
callback is passed as a parameter to onClick
. When this is called, the animation will deactivate, preserving animation.
onClick: (deactivate) => {
deactivate();
setTimeout(() => this.removeNotification('some UID'), 400);
}
There is a more complete example in the README. Thanks to @ecfairle for the PR. 😄
Version 6.2.0
This release enables permanent notifications. Given dismissAfter
value of false
, the notification will not dismiss after a timeout. Instead, the notification must be dismissed through the onClick
handler.
// permanent notification
<Notification
dismissAfter={false]
onClick={...}
/>
Version 6.1.0
This release fixes a bug with dismissTimeout
in IE9. I am releasing a minor version to be safe.
Version 6.0.0
This release enables dynamic bar positions using two factory functions. The two factory functions enable you to return an object for the style of the notification bar when in two states: either active or inactive.
Example:
function defaultStyleFactory(index, style) {
return Object.assign(
{},
style,
{ bottom: `${2 + index * 4}rem` }
);
}
Release 5.0.7
Resolves issue where onDismiss
would not be fired if isActive
was true
on mount.
Version 5.0.5
Adds:
- Action can now have a type of string, boolean or node
Version 5.0.3
Fixes:
Thanks to @elrumordelaluz for the PR.
Version 5.0.2
Fixes:
- An issue, which is documented in #61, preventing proper timeout behavior when the notification is dismissed. Thanks to @elrumordelaluz for the PR!