Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.0] - 2019-12-15

### Added

- TypeScript declaration file for `Notify.js`

### Changed

- Updated to ES2019

### Removed

- Support for IE 11

## [0.2.0] - 2019-09-30

### Added

- Reworked library to use `window.requestAnimationFrame` instead of `setTimeout` in order to increase performance
- Notifications are queued and will be displayed in the order they're submitted
- Added positioning information/values
- Updated HTML structure to allow for more robust layouts/designs
- Removed the 10 second maximum notification duration

### Removed

- Entire existing codebase due to rewrite

[Unreleased]: https://github.com/codewithkyle/notifyjs/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/codewithkyle/notifyjs/compare/v0.2.0...v1.0.0
[0.2.0]: https://github.com/codewithkyle/notifyjs/compare/v0.1.0...v0.2.0
32 changes: 32 additions & 0 deletions Notify.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
interface NotificationButton {
label: string;
callback: Function;
ariaLabel?: string;
}
interface SnackbarNotification {
message: string;
duration?: number;
closeable?: boolean;
buttons?: Array<NotificationButton>;
position?: string;
element?: HTMLElement;
force?: boolean;
}
export declare class NotificationManager {
private _queue;
private _callback;
private _isRunning;
private _time;
constructor();
private handleCloseClickEvent;
private handleActionButtonClick;
private activateButton;
private createNotification;
private removeNotification;
private startCallback;
private stopCallback;
private animationFrameCallback;
private validateNotification;
notify(notification: SnackbarNotification): void;
}
export {};
120 changes: 54 additions & 66 deletions Notify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading