All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
- DEPRECATION WARNING: $saturation: Passing a number without unit % (0) is deprecated. Issue #52
- Removed error which was displayed when you create new toast at the end of old toast's animation.
- New method
closeToasts
. It closes all visible toasts.
- Update
readme.md
- Removed error which was displayed when you get rejected promise.
- Removed comma between buttons in confirmation window
- Dev dependencies
confirm
now has option to hide 'Cancel' button. Read docs to learn more.
- Keyup listeners for popups
async-block
now rejects all keydownspopup
now removes focus on open.Tab
key and its combination keydowns are being omitted to keep focus trapped.Esc
key closes the window.confirm
now set focus toOK
button on open.Tab
key and its combination keydowns are handled to keep focus inside the window.Esc
key closes the window.- Updated docs sections regarding this update
- New GIF in Readme
afterDelete
method toelem
class
demo
link in docs
position
option now works as expected
Massive update which changed a big part of internal logic and added some new features.
- Optional
options
paramater for every public method. It used to override global options per call. - Durations settings for each toast separately. It's available under
options.durations
property. - Minimum durations settings for each async element. It's available under
options.minDurations
property. - New default function which formats errors. It's available under
options.formatError
property. - Now all messages passed to
alert()
method will be formatted byoptions.formatError
. - All toasts and popups methods, now return HTMLElement which was created by them.
- New default messages. It's available under
options.messages
- Enhanced design for toasts and popups.
- Brand new handsome and detailed documentation.
- New JS bundle for modern browsers.
_addToast
method_addPopup
method_afterAsync
method_responseHandler
method, which is specific for_afterAsync
container
getter- Webpack compress bundles to gzip format
- New library gzipped sizes:
4kb
- default bundle,3kb
- modern bundle. - Now icons are use Font Awesome 5 by default.
html
parameter of all elements, now namedmessage
. It's no longer mandatory.options.modal.okLabel
tooptions.labels.confirmOk
options.modal.okLabel
tooptions.labels.confirmCancel
options.modal.okLabel
tooptions.labels.confirmCancel
options.asyncBlockMinDuration
tooptions.minDurations["async-block"]
options.duration
tooptions.durations.global
options.handleReject
tooptions.formatError
- Internal name of
Modal
class changed toPopup
- Change browserlist setting for default bundle
- Rename
defaults.js
file tooptions.js
- Rename
modal.js
file topopup.js
notify
method_runFunction
method_getContainer
methodoptions.modal.maxWidth
property, use CSS instead
- Now NPM dist contains
index.var.js
- Rename
styles.css
tostyle.css
to remove breaking change.
- Update
.npmignore
to decrease package size
- Update
readme.md
test/defaults.spec.js
for testingdefaults.js
file.
- DefaultsDeep function has been changed.
- Change Babel config. Now project supports only 2 last versions of browsers.
- Start using Webpack 4.
webpack.config.js
has been changed. - Start using Yarn instead of NPM.
- Refactoring of
defaults.js
code.
- Remove
lodash.defaultsdeep
dependency. - Remove few old unneeded development dependencies.