Add support for redux 5 and react-redux 9 Thanks to @printfn
Minimal improvements in functions isString and isBrowser Thanks to @cyber2017
Updated dependencies react@17 Thanks to @Szabadember
Fixes: [#262] Thanks to @IgorGorbov
Fixes: [#269] Thanks to @uxtx
Fixes: [#238]
disableCloseButtonFocus
can be passed as a options in the toast methods in
order to prevent the auto focus.
Fix getState
is not a function
Now you can define the toastr state path via a function
<ReduxToastr
{...anotherProps}
getState={(state) => state.toastr} // This is the default
/>
[#245] Fix W3C validation errors
Allow latest react-redux as peer dependency [#230]
Fixies [#220]
add css prefix.
Confirm can take a custom component.
- Toastr
position
, now you can have toastr in different location by specifying theposition
option. - Toastr
attention
, this will add a shadow in the background of the toastr
Add the position
on toastr
,
Custom id
for the toastr
and confirm
Fix animation side effect. (issue)[#102]
Add method removeByType
.
Migrate frm less to scss
Add light style. toastr option icon can be a react component. change to inline svg.
Add option preventDuplicates
add showCloseButton
in the confirm
props
clsoe confirm on esc
and enter
Fix time-travel issue #43
add extra options to the toastr
, now u can prevent the toastr
closing on mouseLeave and on Click.
{
removeOnHover: false,
removeOnClick: false
}
Add the font-icons to the lib folder.
Remove dangerouslysetinnerhtml
and implment component
option
.
instead of using the dangerouslysetinnerhtml
now you can pass a react component in the toastr
options
so is up to you what and how you wanna display your toastr
change ReduxToastr props name from confirm
to confirmOptions
the message
method can close automaticly you you provide a timeout
in the message
options
Improve the code end fix issue
fix issue
Nothing new just some problems with npm readme.md file
You don't need to add the google font link to the head of you project