pangea-lib 2.11.19 → 2.11.21

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 +1 @@
1
- export { addNotification, removeNotification, clearNotifications } from './notifications.store';
1
+ export { addNotification, removeNotification, clearNotifications } from './notifications.helpers';
@@ -0,0 +1,6 @@
1
+ import { TextProp } from '../types';
2
+ import { NotificationId, NotificationType } from './notifications.types';
3
+
4
+ export declare function addNotification(type: NotificationType, message: TextProp): void;
5
+ export declare function removeNotification(id: NotificationId): void;
6
+ export declare function clearNotifications(): void;
@@ -1,28 +1,47 @@
1
- import { TextProp } from '../types';
2
- import { NotificationId, NotificationType } from './notifications.types';
3
-
1
+ /// <reference types="node" />
4
2
  export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga-notifications", import('pinia')._UnwrapAll<Pick<{
5
3
  currentId: import('vue').Ref<number>;
6
4
  notifications: import('vue').Ref<{
7
5
  id: number;
8
- type: NotificationType;
9
- message: TextProp;
6
+ type: import('./notifications.types').NotificationType;
7
+ message: import('../types').TextProp;
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
+ };
10
16
  }[]>;
11
- }, "currentId" | "notifications">>, Pick<{
17
+ }, "notifications" | "currentId">>, Pick<{
12
18
  currentId: import('vue').Ref<number>;
13
19
  notifications: import('vue').Ref<{
14
20
  id: number;
15
- type: NotificationType;
16
- message: TextProp;
21
+ type: import('./notifications.types').NotificationType;
22
+ message: import('../types').TextProp;
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
+ };
17
31
  }[]>;
18
32
  }, never>, Pick<{
19
33
  currentId: import('vue').Ref<number>;
20
34
  notifications: import('vue').Ref<{
21
35
  id: number;
22
- type: NotificationType;
23
- message: TextProp;
36
+ type: import('./notifications.types').NotificationType;
37
+ message: import('../types').TextProp;
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>>;
26
- export declare function addNotification(type: NotificationType, message: TextProp): void;
27
- export declare function removeNotification(id: NotificationId): void;
28
- export declare function clearNotifications(): void;
@@ -6,4 +6,6 @@ export type Notification = {
6
6
  id: NotificationId;
7
7
  type: NotificationType;
8
8
  message: TextProp;
9
+ timeout?: NodeJS.Timeout;
9
10
  };
11
+ export type NotificationTimeoutTime = 'none' | number;
@@ -1,5 +1,9 @@
1
1
  export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-options", import('pinia')._UnwrapAll<Pick<{
2
2
  options: import('vue').Ref<{
3
+ notifications: {
4
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
5
+ preventRemove: boolean;
6
+ };
3
7
  button: {
4
8
  type: import('../types').ButtonType;
5
9
  };
@@ -16,6 +20,10 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
16
20
  };
17
21
  };
18
22
  }>;
23
+ notificationsOptions: import('vue').ComputedRef<{
24
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
25
+ preventRemove: boolean;
26
+ }>;
19
27
  buttonOptions: import('vue').ComputedRef<{
20
28
  type: import('../types').ButtonType;
21
29
  }>;
@@ -33,6 +41,10 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
33
41
  }>;
34
42
  }, "options">>, Pick<{
35
43
  options: import('vue').Ref<{
44
+ notifications: {
45
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
46
+ preventRemove: boolean;
47
+ };
36
48
  button: {
37
49
  type: import('../types').ButtonType;
38
50
  };
@@ -49,6 +61,10 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
49
61
  };
50
62
  };
51
63
  }>;
64
+ notificationsOptions: import('vue').ComputedRef<{
65
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
66
+ preventRemove: boolean;
67
+ }>;
52
68
  buttonOptions: import('vue').ComputedRef<{
53
69
  type: import('../types').ButtonType;
54
70
  }>;
@@ -64,8 +80,12 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
64
80
  borderRadius: import('../types').Size;
65
81
  };
66
82
  }>;
67
- }, "buttonOptions" | "formOptions">, Pick<{
83
+ }, "notificationsOptions" | "buttonOptions" | "formOptions">, Pick<{
68
84
  options: import('vue').Ref<{
85
+ notifications: {
86
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
87
+ preventRemove: boolean;
88
+ };
69
89
  button: {
70
90
  type: import('../types').ButtonType;
71
91
  };
@@ -82,6 +102,10 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
82
102
  };
83
103
  };
84
104
  }>;
105
+ notificationsOptions: import('vue').ComputedRef<{
106
+ timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
107
+ preventRemove: boolean;
108
+ }>;
85
109
  buttonOptions: import('vue').ComputedRef<{
86
110
  type: import('../types').ButtonType;
87
111
  }>;
@@ -1,8 +1,13 @@
1
1
  import { DeepPartial } from 'pangea-helpers';
2
2
  import { ButtonType, Size } from '../types';
3
+ import { NotificationTimeoutTime } from '../notifications/notifications.types';
3
4
  import { AppColors } from '../colors/colors.types';
4
5
 
5
6
  export type OptionsStore = {
7
+ notifications: {
8
+ timeoutTime: NotificationTimeoutTime;
9
+ preventRemove: boolean;
10
+ };
6
11
  button: {
7
12
  type: ButtonType;
8
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.19",
4
+ "version": "2.11.21",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"