pangea-lib 2.11.20 → 2.11.22

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.
@@ -1,6 +1,6 @@
1
1
  import { TextProp } from '../types';
2
2
  import { NotificationId, NotificationType } from './notifications.types';
3
3
 
4
- export declare function addNotification(type: NotificationType, message: TextProp): void;
4
+ export declare function addNotification(type: NotificationType, message: TextProp): number;
5
5
  export declare function removeNotification(id: NotificationId): void;
6
6
  export declare function clearNotifications(): void;
@@ -1,10 +1,18 @@
1
+ /// <reference types="node" />
1
2
  export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga-notifications", import('pinia')._UnwrapAll<Pick<{
2
3
  currentId: import('vue').Ref<number>;
3
4
  notifications: import('vue').Ref<{
4
5
  id: number;
5
6
  type: import('./notifications.types').NotificationType;
6
7
  message: import('../types').TextProp;
7
- timeoutId: number;
8
+ timeout?: {
9
+ ref: () => NodeJS.Timeout;
10
+ unref: () => NodeJS.Timeout;
11
+ hasRef: () => boolean;
12
+ refresh: () => NodeJS.Timeout;
13
+ [Symbol.toPrimitive]: () => number;
14
+ [Symbol.dispose]: () => void;
15
+ };
8
16
  }[]>;
9
17
  }, "notifications" | "currentId">>, Pick<{
10
18
  currentId: import('vue').Ref<number>;
@@ -12,7 +20,14 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
12
20
  id: number;
13
21
  type: import('./notifications.types').NotificationType;
14
22
  message: import('../types').TextProp;
15
- timeoutId: number;
23
+ timeout?: {
24
+ ref: () => NodeJS.Timeout;
25
+ unref: () => NodeJS.Timeout;
26
+ hasRef: () => boolean;
27
+ refresh: () => NodeJS.Timeout;
28
+ [Symbol.toPrimitive]: () => number;
29
+ [Symbol.dispose]: () => void;
30
+ };
16
31
  }[]>;
17
32
  }, never>, Pick<{
18
33
  currentId: import('vue').Ref<number>;
@@ -20,6 +35,13 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
20
35
  id: number;
21
36
  type: import('./notifications.types').NotificationType;
22
37
  message: import('../types').TextProp;
23
- timeoutId: number;
38
+ timeout?: {
39
+ ref: () => NodeJS.Timeout;
40
+ unref: () => NodeJS.Timeout;
41
+ hasRef: () => boolean;
42
+ refresh: () => NodeJS.Timeout;
43
+ [Symbol.toPrimitive]: () => number;
44
+ [Symbol.dispose]: () => void;
45
+ };
24
46
  }[]>;
25
47
  }, never>>;
@@ -6,6 +6,6 @@ export type Notification = {
6
6
  id: NotificationId;
7
7
  type: NotificationType;
8
8
  message: TextProp;
9
- timeoutId: number;
9
+ timeout?: NodeJS.Timeout;
10
10
  };
11
- export type NotificationTimeout = 'none' | number;
11
+ export type NotificationTimeoutTime = 'none' | number;
@@ -1,7 +1,7 @@
1
1
  export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-options", import('pinia')._UnwrapAll<Pick<{
2
2
  options: import('vue').Ref<{
3
3
  notifications: {
4
- timeout: import('../notifications/notifications.types').NotificationTimeout;
4
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
5
5
  preventRemove: boolean;
6
6
  };
7
7
  button: {
@@ -21,7 +21,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
21
21
  };
22
22
  }>;
23
23
  notificationsOptions: import('vue').ComputedRef<{
24
- timeout: import('../notifications/notifications.types').NotificationTimeout;
24
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
25
25
  preventRemove: boolean;
26
26
  }>;
27
27
  buttonOptions: import('vue').ComputedRef<{
@@ -42,7 +42,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
42
42
  }, "options">>, Pick<{
43
43
  options: import('vue').Ref<{
44
44
  notifications: {
45
- timeout: import('../notifications/notifications.types').NotificationTimeout;
45
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
46
46
  preventRemove: boolean;
47
47
  };
48
48
  button: {
@@ -62,7 +62,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
62
62
  };
63
63
  }>;
64
64
  notificationsOptions: import('vue').ComputedRef<{
65
- timeout: import('../notifications/notifications.types').NotificationTimeout;
65
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
66
66
  preventRemove: boolean;
67
67
  }>;
68
68
  buttonOptions: import('vue').ComputedRef<{
@@ -83,7 +83,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
83
83
  }, "notificationsOptions" | "buttonOptions" | "formOptions">, Pick<{
84
84
  options: import('vue').Ref<{
85
85
  notifications: {
86
- timeout: import('../notifications/notifications.types').NotificationTimeout;
86
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
87
87
  preventRemove: boolean;
88
88
  };
89
89
  button: {
@@ -103,7 +103,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
103
103
  };
104
104
  }>;
105
105
  notificationsOptions: import('vue').ComputedRef<{
106
- timeout: import('../notifications/notifications.types').NotificationTimeout;
106
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
107
107
  preventRemove: boolean;
108
108
  }>;
109
109
  buttonOptions: import('vue').ComputedRef<{
@@ -1,11 +1,11 @@
1
1
  import { DeepPartial } from 'pangea-helpers';
2
2
  import { ButtonType, Size } from '../types';
3
- import { NotificationTimeout } from '../notifications/notifications.types';
3
+ import { NotificationTimeoutTime } from '../notifications/notifications.types';
4
4
  import { AppColors } from '../colors/colors.types';
5
5
 
6
6
  export type OptionsStore = {
7
7
  notifications: {
8
- timeout: NotificationTimeout;
8
+ timeoutTime: NotificationTimeoutTime;
9
9
  preventRemove: boolean;
10
10
  };
11
11
  button: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.20",
4
+ "version": "2.11.22",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"