@mi1y/toast-mi1y 0.0.1 → 0.0.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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import '../toast.css';
3
3
  import { toast } from "../toasts/store.js";
4
- import type { Toast } from "../toasts/interfaces.js";
4
+ import type { Toast as ToastType } from "../toasts/interfaces.js";
5
5
  import { fly } from 'svelte/transition';
6
6
 
7
7
  let hoveredToastId= $state<string | null>(null);
@@ -41,7 +41,7 @@ function pauseTimer(toastId: string) {
41
41
  hoveredToastId = toastId;
42
42
 
43
43
  if (!pausedToasts.has(toastId)) {
44
- const toastItem = $toastsStore.find((t: Toast) => t.id === toastId);
44
+ const toastItem = $toastsStore.find((t: ToastType) => t.id === toastId);
45
45
  if (toastItem && toastItem.duration > 0) {
46
46
  const remainingDuration = toastItem.duration;
47
47
  pausedToasts.set(toastId, {
@@ -1,5 +1,4 @@
1
1
  import '../toast.css';
2
- import type { Toast } from "../toasts/interfaces.js";
3
2
  declare const Toast: import("svelte").Component<Record<string, never>, {}, "">;
4
3
  type Toast = ReturnType<typeof Toast>;
5
4
  export default Toast;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { toast } from './toasts/store.js';
2
- export { default as InitToast } from './components/toast.svelte';
1
+ export { toast } from "./toasts/store.js";
2
+ export { default as InitToast } from "./components/toast.svelte";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { toast } from './toasts/store.js';
2
- export { default as InitToast } from './components/toast.svelte';
2
+ export { default as InitToast } from './components/toast.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mi1y/toast-mi1y",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "A simple and flexible toast notification library for Svelte 5",
5
5
  "keywords": [
6
6
  "svelte",