@spash/frontlib 0.0.22 → 0.0.24-beta.1
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/assets/style.css +2 -2
- package/dist/main.d.ts +29 -0
- package/dist/main.js +6499 -6287
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -558,6 +558,19 @@ export declare interface Team {
|
|
|
558
558
|
ngtvId?: number;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
+
declare interface Toast {
|
|
562
|
+
id: number;
|
|
563
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
564
|
+
message: string;
|
|
565
|
+
timeout: number;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
declare interface ToastOptions {
|
|
569
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
570
|
+
message: string;
|
|
571
|
+
timeout: number;
|
|
572
|
+
}
|
|
573
|
+
|
|
561
574
|
export declare const useAdServer: () => {
|
|
562
575
|
hasAdServerContent: Ref<boolean, boolean>;
|
|
563
576
|
initAdServer: () => void;
|
|
@@ -659,4 +672,20 @@ export declare const useTheme: () => {
|
|
|
659
672
|
|
|
660
673
|
export declare const useTimeout: () => void;
|
|
661
674
|
|
|
675
|
+
export declare const useToaster: () => {
|
|
676
|
+
toasts: Ref< {
|
|
677
|
+
id: number;
|
|
678
|
+
type?: "error" | "success" | "warning" | "info" | undefined;
|
|
679
|
+
message: string;
|
|
680
|
+
timeout: number;
|
|
681
|
+
}[], Toast[] | {
|
|
682
|
+
id: number;
|
|
683
|
+
type?: "error" | "success" | "warning" | "info" | undefined;
|
|
684
|
+
message: string;
|
|
685
|
+
timeout: number;
|
|
686
|
+
}[]>;
|
|
687
|
+
addToast: (options: ToastOptions) => void;
|
|
688
|
+
removeToast: (id: number) => void;
|
|
689
|
+
};
|
|
690
|
+
|
|
662
691
|
export { }
|