Releases: jirikavi/AngularJS-Toaster
Releases · jirikavi/AngularJS-Toaster
v3.0.0
Toast instance passed to onShow and onHide
Features
- The toast instance is now passed to the onShowCallback and onHideCallback handlers when invoked.
Documentation
- Documentation for handlers.
Chores
- Cleanup of test dependencies and added new npm scripts to make test execution easier.
Individual tapToDismissOverride
Features
- Added a tapToDismiss override at the individual toast level.
- Moved the toast template to templateCache to allow the template to be easily overriden.
Bug Fixes
- Fix for click handler duplicating events.
Documentation
- Documentation for clear handler.
2.0.0 Consolidate uid/id/toasterId into single toasterId
Features
- all
toaster.pop()
and toaster pop helper methods (toaster.success()
,toaster.error()
, etc) return a toast wrapper object composed of a toasterId and toastId. toast.clear()
accepts either toasterId and toastId arguments or the toast wrapper object returned fromtoast.pop()
.- If a toastId is not provided when creating a new toast, a GUID is generated and assigned to the toast before emitting to receiving containers.
Breaking Changes
- uid and id removed and consolidated into a single toastId
- prevent duplicates now checks for either last body match OR ID match
on any toast, since toastId is now always defined - prevent duplicates no longer removes the toast first if the id is
matched, it just returns and does not add the duplicate toast - id is no longer incremented per toast container.
Improved directiveTemplate validation
- Added additional validation to directiveTemplate based on feedback from
#194 - Added additional documentation to the README to describe the
restrictions. - Added pointer-events:auto to #toaster-container to prevent the toast from being seen in conjunction with Ionic modals.
Added onShow callback
- An onShow callback has been added to match the existing onHide callback.
- README documentation updated to reflect the callback.
- Removed unnecessary gulp references from packages.json and the travis build configuration.
Full baseline release
Full, production ready, stable, semantically versioned release.
- Full test coverage added
- Full CI build integration added.
- Additional documentation added.
0.4.16
- Added a new BodyOutputType: directive, that allows for dynamic rendering and binding of a directive argument and related data.
- Updated README documentation for the directive BodyOutputType.
- Corrected existing README example errors.
- Added new baseline Jasmine tests
0.4.13
- Add option in function toaster.pop() ,
toastId
to define 'uid', use the function 'toaster.clear ()'
var _toaster = {
type: null,
title: null,
body: null,
timeout: null,
toasterId: 'CategoryMenu',
toastId: 'CategoryMenuAlert'
}
- Add option in function toaster.clear()
- toaster.clear(); --> clearAll with ToasterId = undefined;
- toaster.clear('*'); -> ClearAll()
- toaster.clear('clearID'); -> clearAll() with toaster have ToasterId = 'clearID'
- toaster.clear('clearID', 'toastID'); -> Just clearAll with toasts have uid = 'toastID' in ToasterId = 'clearID'.