sprintify-ui 0.7.0 → 0.7.2

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,7 +1,7 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { App } from 'vue';
3
3
  import { useDialogsStore } from './stores/dialogs';
4
- import { useSnackbarsStore, useNotificationsStore } from './stores/snackbars';
4
+ import { useSnackbarsStore } from './stores/snackbars';
5
5
  import { useSystemAlertStore } from './stores/systemAlerts';
6
6
  import { useClickOutside } from './composables/clickOutside';
7
7
  import { useField } from './composables/field';
@@ -246,7 +246,6 @@ export { messages };
246
246
  export { config };
247
247
  export { useDialogsStore };
248
248
  export { useSnackbarsStore };
249
- export { useNotificationsStore };
250
249
  export { useSystemAlertStore };
251
250
  export { useClickOutside };
252
251
  export { useField };
@@ -8,12 +8,3 @@ export declare const useSnackbarsStore: import("pinia").StoreDefinition<"notific
8
8
  remove(snackbar: Snackbar): void;
9
9
  clear(): void;
10
10
  }>;
11
- export declare const useNotificationsStore: import("pinia").StoreDefinition<"notifications", {
12
- count: number;
13
- snackbars: Snackbar[];
14
- timeouts: Record<number, number>;
15
- }, {}, {
16
- push(options: SnackbarOptions): void;
17
- remove(snackbar: Snackbar): void;
18
- clear(): void;
19
- }>;
@@ -1,6 +1,6 @@
1
1
  import { RouteLocationRaw } from 'vue-router';
2
2
  import { UploadedFile } from './UploadedFile';
3
- import { Notification as AppNotification } from './Notification';
3
+ import { Notification } from './Notification';
4
4
  import { CropType, ResultOptions } from 'croppie';
5
5
  import { Media } from './Media';
6
6
  export type Locales = {
@@ -154,10 +154,11 @@ export interface Snackbar {
154
154
  */
155
155
  export interface NotificationsConfig {
156
156
  count: number;
157
- items: AppNotification[];
157
+ items: Notification[];
158
158
  footerLabel?: string;
159
159
  footerTo?: RouteLocationRaw;
160
160
  }
161
+ export type { Notification };
161
162
  export interface SelectConfigurationOption {
162
163
  value: OptionValue;
163
164
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import QueryString from 'qs';
5
5
  import en from '@/lang/en.json';
6
6
  import fr from '@/lang/fr.json';
7
7
  import { useDialogsStore } from './stores/dialogs';
8
- import { useSnackbarsStore, useNotificationsStore } from './stores/snackbars';
8
+ import { useSnackbarsStore } from './stores/snackbars';
9
9
  import { useSystemAlertStore } from './stores/systemAlerts';
10
10
  import { useClickOutside } from './composables/clickOutside';
11
11
  import { useField } from './composables/field';
@@ -125,7 +125,6 @@ export { config };
125
125
 
126
126
  export { useDialogsStore };
127
127
  export { useSnackbarsStore };
128
- export { useNotificationsStore };
129
128
  export { useSystemAlertStore };
130
129
  export { useClickOutside };
131
130
  export { useField };
@@ -45,5 +45,3 @@ export const useSnackbarsStore = defineStore('notifications', {
45
45
  },
46
46
  },
47
47
  });
48
-
49
- export const useNotificationsStore = useSnackbarsStore;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { RouteLocationRaw } from 'vue-router';
4
4
  import { UploadedFile } from './UploadedFile';
5
- import { Notification as AppNotification } from './Notification';
5
+ import { Notification } from './Notification';
6
6
  import { CropType, ResultOptions } from 'croppie';
7
7
  import { Media } from './Media';
8
8
 
@@ -194,11 +194,13 @@ export interface Snackbar {
194
194
 
195
195
  export interface NotificationsConfig {
196
196
  count: number;
197
- items: AppNotification[];
197
+ items: Notification[];
198
198
  footerLabel?: string;
199
199
  footerTo?: RouteLocationRaw;
200
200
  }
201
201
 
202
+ export type { Notification };
203
+
202
204
  export interface SelectConfigurationOption {
203
205
  value: OptionValue;
204
206
  label: string;