Releases: pburtchaell/react-notification
Version 6.8.5
- Fixes a bug with the
actionprop type to allow all types
Version 6.8.4
- Adds new TypeScript definitions.
- Fixes installation error from the
generate-lockfilenpm script. - Updates examples to use Parcel.
- Improves ESLint support for future versions (yet disabled for current version).
Version 6.8.3
Updates Typescript definitions.
Edit:
This release is deprecated due to an installation error. Please use v6.8.4.
Version 6.8.2
Adds TS definitions, thanks to @corydeppen.
Version 6.8.1
Adds support for React version 16.
Version 6.7.1
Adds support for using React elements as the title.
Version 6.7.0
This release enhances custom styles by passing the notification object as a parameter to barStyleFactory and activeBarStyleFactory.
This will enable you to add custom styles to different notifications—useful if you have to style different notification "types" with different colors, for example.
function defaultStyleFactory(index, style, notification) {
return Object.assign(
....
);
}Version 6.6.2
Removes react-addons-test-utils from dependencies, which was erroneously added in version 6.6.1.
Version 6.6.1
Adds prop-types package as dependency, as per the discussion here.
Version 6.6.0
Changes to dismissAfter on notification
Perviously, if dismissAfter was set to false, it was impossible to switch the value back to a number and automatically dismiss the notification after timeout. Now, it is possible to set dismissAfter to a number after it was set to false.
Thanks to @kof for implementing this feature in #108. 🎉
onClick can be added to notification stack
Previously, onClick could only be fired locally for each component. Now, it is possible to have one global onClick handler on the notification stack itself. This handler will be called for each clicked notification.
Thanks to @Gargron for writing the initial code for this feature in #97. 🎉