Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Releases: pburtchaell/react-notification

Version 6.5.0

23 Nov 15:51
Compare
Choose a tag to compare

This release adds support for React v15.x and removes all string attribute refs in the <Notification /> component.

Version 6.4.0

14 Nov 20:54
Compare
Choose a tag to compare

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

16 Oct 01:41
Compare
Choose a tag to compare

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

16 Sep 15:16
Compare
Choose a tag to compare

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

07 Aug 03:13
Compare
Choose a tag to compare

This release fixes a bug with dismissTimeout in IE9. I am releasing a minor version to be safe.

Version 6.0.0

21 Jul 18:04
Compare
Choose a tag to compare

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

26 Jun 18:56
Compare
Choose a tag to compare

Resolves issue where onDismiss would not be fired if isActive was true on mount.

Version 5.0.5

09 Jun 17:07
Compare
Choose a tag to compare

Adds:

  • Action can now have a type of string, boolean or node

Version 5.0.3

11 Apr 11:52
Compare
Choose a tag to compare

Fixes:

  • Stacked notifications can now have an onClick prop and an action button, which resolves #46 and #63

Thanks to @elrumordelaluz for the PR.

Version 5.0.2

05 Apr 18:23
Compare
Choose a tag to compare

Fixes:

  • An issue, which is documented in #61, preventing proper timeout behavior when the notification is dismissed. Thanks to @elrumordelaluz for the PR!