You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@
20
20
- New `idStrategy` parameter, which defines how a default ID is generated if none is provided.
21
21
- New `updateNotification` method that updates a _currently visible_ notification.
22
22
- New `shakeNotification` method that shakes a _currently visible_ notification to attract the user's attention and optionally resets the `duration` timer.
23
+
- New `isNotificationVisible` method: Returns a boolean indicating if any notification is currently visible.
24
+
- New methods: `updateById`, `shakeById`, `isVisibleById`, and `hideById`. These methods only affect a notification if the provided ID matches the one of the currently visible notification.
23
25
- Calling `showNotification` returns `update`, `hide`, `shake`, and `isVisible` functions for manipulating the notification.
24
26
- You can mount multiple instances of `NotifierWrapper`/`NotifierRoot` and still control them using global `Notifier.*` methods. The most recently mounted instance is controlled first; if it unmounts, control reverts to the previously mounted instance.
25
27
- It's possible to broadcast commands to all mounted instances of Notifier via `Notifier.broadcast.*`. This can be used, for example, to hide all notifications or clear the queue and hide them using `Notifier.broadcast.hideNotification()`.
/** Shakes currently visible notification to attract the user's attention. If pass true as the first parameter, the `duration` timer will reset(prolong) */
441
441
shakeNotification(resetTimer?: boolean): void;
442
442
443
+
/** Is any notification currently visible. */
444
+
isNotificationVisible(): boolean;
445
+
443
446
/** Hide currently visible notification and run callback function when notification completely hidden. */
0 commit comments