kitzo 3.1.2 → 3.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/index.d.ts CHANGED
@@ -189,6 +189,8 @@ export declare function useDebouncedCallback<Args extends unknown[]>(callback: (
189
189
  */
190
190
  export declare function useLocalStorage<T>(key: string, initialValue: T, options?: Options_2<T>): [T, Dispatch<SetStateAction<T>>];
191
191
 
192
+ export declare function useMounted(): boolean;
193
+
192
194
  /**
193
195
  * A React hook that manages UI overlays (modal, drawer, popover, etc.)
194
196
  * and synchronizes them with the browser navigation history.
package/dist/index.js CHANGED
@@ -1,22 +1,24 @@
1
1
  import { Toaster as r } from "./react/components/toast/Toaster.js";
2
2
  import { Tooltip as p } from "./react/components/tooltip/Tooltip.js";
3
3
  import { toast as m } from "./react/components/toast/service/triggerToasts.js";
4
- import { useCopy as s } from "./react/hooks/useCopy.js";
4
+ import { useCopy as x } from "./react/hooks/useCopy.js";
5
5
  import { useDebounce as a } from "./react/hooks/useDebounce.js";
6
6
  import { useDebouncedCallback as c } from "./react/hooks/useDebouncedCallback.js";
7
- import { useLocalStorage as i } from "./react/hooks/useLocalStorage.js";
8
- import { useOverlay as T } from "./react/hooks/useOverlay.js";
9
- import { useThrottle as y } from "./react/hooks/useThrottle.js";
10
- import { useWindowSize as D } from "./react/hooks/useWindowSize.js";
7
+ import { useLocalStorage as b } from "./react/hooks/useLocalStorage.js";
8
+ import { useMounted as i } from "./react/hooks/useMounted.js";
9
+ import { useOverlay as y } from "./react/hooks/useOverlay.js";
10
+ import { useThrottle as D } from "./react/hooks/useThrottle.js";
11
+ import { useWindowSize as g } from "./react/hooks/useWindowSize.js";
11
12
  export {
12
13
  r as Toaster,
13
14
  p as Tooltip,
14
15
  m as toast,
15
- s as useCopy,
16
+ x as useCopy,
16
17
  a as useDebounce,
17
18
  c as useDebouncedCallback,
18
- i as useLocalStorage,
19
- T as useOverlay,
20
- y as useThrottle,
21
- D as useWindowSize
19
+ b as useLocalStorage,
20
+ i as useMounted,
21
+ y as useOverlay,
22
+ D as useThrottle,
23
+ g as useWindowSize
22
24
  };
@@ -0,0 +1,10 @@
1
+ import { useState as u, useEffect as o } from "react";
2
+ function r() {
3
+ const [e, t] = u(!1);
4
+ return o(() => {
5
+ t(!0);
6
+ }, []), e;
7
+ }
8
+ export {
9
+ r as useMounted
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitzo",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "A lightweight production-ready React micro-utility library providing essential components, hooks, and functions for modern web applications.",
5
5
  "type": "module",
6
6
  "files": [