vue-smart-toast 0.1.1 → 0.1.3
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/types/sonner/hooks.d.ts +0 -3
- package/dist/types/store.d.ts +1 -0
- package/dist/vue-smart-toast.js +308 -302
- package/dist/vue-smart-toast.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type Ref } from 'vue';
|
|
2
2
|
import type { SwipeDirection, ToasterProps, ToastT } from './types';
|
|
3
|
-
export declare function useIsDocumentHidden(): {
|
|
4
|
-
isDocumentHidden: Ref<boolean, boolean>;
|
|
5
|
-
};
|
|
6
3
|
export declare function cn(...classes: (string | undefined)[]): string;
|
|
7
4
|
export declare function getDefaultSwipeDirections(position: string): Array<SwipeDirection>;
|
|
8
5
|
export declare function assignOffset(defaultOffset: ToasterProps['offset'], mobileOffset: ToasterProps['mobileOffset']): CSSProperties;
|
package/dist/types/store.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ type StoreToastOptions = Omit<ToastOptions, 'type'> & {
|
|
|
4
4
|
type?: InternalToastType;
|
|
5
5
|
};
|
|
6
6
|
export declare function upsertToast(options: StoreToastOptions): ToastId;
|
|
7
|
+
export declare function setDefaultToastDuration(duration: number | undefined): () => void;
|
|
7
8
|
export declare function dismissToast(id?: ToastId, automatic?: boolean): void;
|
|
8
9
|
export declare function clearToasts(): void;
|
|
9
10
|
export declare function destroyStore(): void;
|