pangea-lib 2.11.21 → 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.
package/dist/main.es.js
CHANGED
|
@@ -33109,7 +33109,7 @@ const co1 = /* @__PURE__ */ k2(eo1, [["__scopeId", "data-v-a4cd40df"]]), ao1 = /
|
|
|
33109
33109
|
});
|
|
33110
33110
|
function bh1(e, c) {
|
|
33111
33111
|
const a = n6().currentId++, t = { id: a, type: e, message: c, timeout: void 0 }, n = d6().notificationsOptions.timeoutTime;
|
|
33112
|
-
n !== "none" && (t.timeout = setTimeout(() => gg(a), n)), n6().notifications.push(t);
|
|
33112
|
+
return n !== "none" && (t.timeout = setTimeout(() => gg(a), n)), n6().notifications.push(t), a;
|
|
33113
33113
|
}
|
|
33114
33114
|
function gg(e) {
|
|
33115
33115
|
const c = n6().notifications.find((t) => t.id === e);
|
|
@@ -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):
|
|
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;
|