Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
No changes.
Happy new year!
No changes.
Happy new year!
Added: Notiflix.Report.*
module: backOverlayClickToClose
option has been added. Default value is false
. It removes the Report Notification when the background overlay element has been clicked. The existing backOverlay
option has to be true
as well. #48
Changed: Code Review/Refactor.
Notiflix.Block.*
: The temporary position class name for the reference element has been changed to a constant text.
Notiflix.Block.*
: The custom class name option was not being set correctly. The temporary position class name for the reference element was not being removed if it was being used with a custom class name.
Notiflix.Confirm.prompt()
: Input maxlength
attribute value should not be directly related to the default answer length.
index.d.ts
:
Notiflix.Notify.*
module: callbackOrOptions
type definition issue has been fixed.Notiflix.Report.*
module: callbackOrOptions
type definition issue has been fixed.Added: Notiflix.Confirm.*
module: The .prompt()
method has been added. (#42)
Notiflix.Confirm.prompt()
method works similarly as window.prompt()
. The client doesn't have to type a correct answer to the input element to proceed unlike the Notiflix.Confirm.ask()
method. The client answer passes to the callback functions as a parameter and this parameter is always a string
.Added: Notiflix.Loading.*
module: The customSvgCode
option has been added for Notiflix.Loading.custom();
method. The default is null
. A text-based (string
) SVG icon can be set to this option. Single quotation marks should be avoided.
Fixed: index.d.ts
: IConfirmOptions
interface: zindex
property type has been fixed.
Removed: index.d.ts
: Following types have been removed:
TNotiflixCallback
TNotifyCallbackOrOptions
TReportCallbackOrOptions
TLoadingMessageOrOptions
TBlockMessageOrOptions
TBlockSelectorOrHTMLElements
Added: index.d.ts
: Namespaces, Functions, and Interfaces: Comments have been added for IntelliSense.
Changed: Code Review/Refactor.
Changed: Notiflix.Block.*
module: The selector
parameter has been changed to selectorOrHTMLElements
. An Array<HTMLElement>
or a NodeListOf<HTMLElement>
can be also used instead of CSS selector(s).
Fixed: Notiflix.Notify.*
module: The background overlay element was not being removed at the end of the call if the backOverlay
option has been set/changed as a parameter option in the next notification instead of the global init function.
Changed: Notiflix.Notify.success
: The childClassName
option, default value has been changed from success
to notiflix-notify-success
.
Changed: Notiflix.Notify.failure
: The childClassName
option, default value has been changed from failure
to notiflix-notify-failure
.
Changed: Notiflix.Notify.warning
: The childClassName
option, default value has been changed from warning
to notiflix-notify-warning
.
Changed: Notiflix.Notify.info
: The childClassName
option, default value has been changed from info
to notiflix-notify-info
.
Changed: Auto-generated src/all-in-one/notiflix-aio.js
file has been moved to the build
directory. (with *.d.ts
)
Added: Auto-generated build/notiflix-notify-aio.js
(with *.d.ts
), and dist/notiflix-notify-aio-3.1.0.min.js
files have been added. These files are only for using the Notify module instead of using all the modules.
Added: Auto-generated build/notiflix-report-aio.js
(with *.d.ts
), and dist/notiflix-report-aio-3.1.0.min.js
files have been added. These files are only for using the Report module instead of using all the modules.
Added: Auto-generated build/notiflix-confirm-aio.js
(with *.d.ts
), and dist/notiflix-confirm-aio-3.1.0.min.js
files have been added. These files are only for using the Confirm module instead of using all the modules.
Added: Auto-generated build/notiflix-loading-aio.js
(with *.d.ts
), and dist/notiflix-loading-aio-3.1.0.min.js
files have been added. These files are only for using the Loading module instead of using all the modules.
Added: Auto-generated build/notiflix-block-aio.js
(with *.d.ts
), and dist/notiflix-block-aio-3.1.0.min.js
files have been added. These files are only for using the Block module instead of using all the modules.
Changed: The documentation website URL has been changed.
Changed: Code Review/Refactor.
index.d.ts
: Types and Interfaces have been exported.