diff --git a/CHANGELOG.md b/CHANGELOG.md index 09da013..33bf2f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All the changes made to toastify-js library. +## [1.8.0] - 2020-05-29 + +* Add option to provide a node instead of text +* Updated docs: permanent toast duration + ## [1.7.0] - 2020-03-01 * To be able to set `stopOnFocus` for toasts without close icon diff --git a/README.md b/README.md index 92e4323..b828692 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg) ![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg) -[![toastify-js](https://img.shields.io/badge/toastify--js-1.7.0-brightgreen.svg)](https://www.npmjs.com/package/toastify-js) +[![toastify-js](https://img.shields.io/badge/toastify--js-1.8.0-brightgreen.svg)](https://www.npmjs.com/package/toastify-js) Toastify is a lightweight, vanilla JS toast notification library. @@ -109,6 +109,7 @@ Multiple classes also can be assigned as a string, with spaces between class nam | Option Key | type | Usage | Defaults | |-----------------|----------------------|----------------------------------------------------------------------------|-------------| | text | string | Message to be displayed in the toast | "Hi there!" | +| node | ELEMENT_NODE | Provide a node to be mounted inside the toast. `node` takes higher precedence over `text` | | | duration | number | Duration for which the toast should be displayed.
-1 for permanent toast | 3000 | | selector | string | CSS Selector on which the toast should be added | body | | destination | URL string | URL to which the browser should be navigated on click of the toast | | @@ -137,92 +138,157 @@ Multiple classes also can be assigned as a string, with spaces between class nam
- haydster7 -
haydster7
+ caiomoura1994
caiomoura1994
- fiatjaf -
fiatjaf
+ rndevfx
rndevfx
- victorfeijo -
victorfeijo
+ 1ess
1ess
- t12ung -
t12ung
+ d4rn0k
d4rn0k
- Tadaz -
Tadaz
+ danielkaiser80
danielkaiser80
- mort3za -
mort3za
+ skjnldsv
skjnldsv
- Wachiwi -
Wachiwi
+ chasedeanda
chasedeanda
- gavinhungry -
gavinhungry
+ Wachiwi
Wachiwi
- juliushaertl -
juliushaertl
+ gavinhungry
gavinhungry
- skjnldsv -
skjnldsv
+ haydster7
haydster7
- danielkaiser80 -
danielkaiser80
+ juliushaertl
juliushaertl
- d4rn0k -
d4rn0k
+ mort3za
mort3za
- GodzzZZZ -
GodzzZZZ
+ Tadaz
Tadaz
- caiomoura1994 -
caiomoura1994
+ t12ung
t12ung
- rndevfx -
rndevfx
+ victorfeijo
victorfeijo
- apvarun -
apvarun
+ fiatjaf
fiatjaf
+ ## License diff --git a/package.json b/package.json index 9ca5f71..de8b72e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "toastify-js", - "version": "1.7.0", + "version": "1.8.0", "description": "Toastify is a lightweight, vanilla JS toast notification library.", "main": "./src/toastify.js", diff --git a/src/toastify.css b/src/toastify.css index df3b680..3fd3b6a 100644 --- a/src/toastify.css +++ b/src/toastify.css @@ -1,5 +1,5 @@ /*! - * Toastify js 1.7.0 + * Toastify js 1.8.0 * https://github.com/apvarun/toastify-js * @license MIT licensed * diff --git a/src/toastify.js b/src/toastify.js index 90f8f68..bf6016b 100644 --- a/src/toastify.js +++ b/src/toastify.js @@ -1,5 +1,5 @@ /*! - * Toastify js 1.7.0 + * Toastify js 1.8.0 * https://github.com/apvarun/toastify-js * @license MIT licensed * @@ -18,7 +18,7 @@ return new Toastify.lib.init(options); }, // Library version - version = "1.7.0"; + version = "1.8.0"; // Defining the prototype of the object Toastify.lib = Toastify.prototype = {