pangea-lib 4.0.353 → 4.0.355

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,5 @@ import { StrOrFn } from '../types';
4
4
  export declare abstract class Notifications {
5
5
  static Add(type: NotificationType, message: StrOrFn): number;
6
6
  static Remove(id: NotificationId): void;
7
+ static TogglePause(id: NotificationId): void;
7
8
  }
@@ -6,6 +6,10 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
6
6
  id: number;
7
7
  type: import('./notifications.types').NotificationType;
8
8
  message: import('../types').StrOrFn;
9
+ duration: number;
10
+ remaining: number;
11
+ endAt: number;
12
+ paused: boolean;
9
13
  timeout?: {
10
14
  ref: () => NodeJS.Timeout;
11
15
  unref: () => NodeJS.Timeout;
@@ -21,6 +25,10 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
21
25
  id: number;
22
26
  type: import('./notifications.types').NotificationType;
23
27
  message: import('../types').StrOrFn;
28
+ duration: number;
29
+ remaining: number;
30
+ endAt: number;
31
+ paused: boolean;
24
32
  timeout?: {
25
33
  ref: () => NodeJS.Timeout;
26
34
  unref: () => NodeJS.Timeout;
@@ -36,6 +44,10 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
36
44
  id: number;
37
45
  type: import('./notifications.types').NotificationType;
38
46
  message: import('../types').StrOrFn;
47
+ duration: number;
48
+ remaining: number;
49
+ endAt: number;
50
+ paused: boolean;
39
51
  timeout?: {
40
52
  ref: () => NodeJS.Timeout;
41
53
  unref: () => NodeJS.Timeout;
@@ -6,6 +6,10 @@ export type Notification = {
6
6
  id: NotificationId;
7
7
  type: NotificationType;
8
8
  message: StrOrFn;
9
+ duration: number;
10
+ remaining: number;
11
+ endAt: number;
12
+ paused: boolean;
9
13
  timeout?: NodeJS.Timeout;
10
14
  };
11
15
  export type NotificationTimeoutTime = 'none' | number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.353",
4
+ "version": "4.0.355",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",