@pol-studios/hooks 1.0.0

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.
@@ -0,0 +1,16 @@
1
+ import {
2
+ useHideOnScroll,
3
+ useHidingOnScroll,
4
+ useScrollDirection,
5
+ useScrollPosition,
6
+ useScrollRestoration
7
+ } from "../chunk-GKXIKVGH.js";
8
+ import "../chunk-MMIPLCL4.js";
9
+ import "../chunk-QGM4M3NI.js";
10
+ export {
11
+ useHideOnScroll,
12
+ useHidingOnScroll,
13
+ useScrollDirection,
14
+ useScrollPosition,
15
+ useScrollRestoration
16
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ ChangeTrackingContext,
3
+ ChangeTrackingProvider,
4
+ useChangeTracking,
5
+ useDelayedState,
6
+ useDelayedValue,
7
+ useForceUpdate,
8
+ usePartialState,
9
+ useQueuedState
10
+ } from "../chunk-RX4FIJI6.js";
11
+ import "../chunk-QGM4M3NI.js";
12
+ export {
13
+ ChangeTrackingContext,
14
+ ChangeTrackingProvider,
15
+ useChangeTracking,
16
+ useDelayedState,
17
+ useDelayedValue,
18
+ useForceUpdate,
19
+ usePartialState,
20
+ useQueuedState
21
+ };
@@ -0,0 +1,38 @@
1
+ import {
2
+ IndexedDBService,
3
+ LocalStorageService,
4
+ useIndexedDB,
5
+ useLocalStorage,
6
+ useLocalStorageState,
7
+ useQueuedLocalStorage,
8
+ useQueuedLocalStorageState,
9
+ useSessionStorage,
10
+ useSessionStorageState
11
+ } from "../chunk-EZXGO56T.js";
12
+ import {
13
+ IndexDbProvider,
14
+ LocalStorageProvider,
15
+ indexDbContext,
16
+ localStorageContext,
17
+ useLocalStorageService
18
+ } from "../chunk-OF7JZIAL.js";
19
+ import "../chunk-EVE7TM7O.js";
20
+ import "../chunk-MMIPLCL4.js";
21
+ import "../chunk-QGM4M3NI.js";
22
+ export {
23
+ IndexedDBService as IndexDb,
24
+ IndexDbProvider,
25
+ IndexedDBService,
26
+ LocalStorageProvider,
27
+ LocalStorageService,
28
+ indexDbContext,
29
+ localStorageContext,
30
+ useIndexedDB,
31
+ useLocalStorage,
32
+ useLocalStorageService,
33
+ useLocalStorageState,
34
+ useQueuedLocalStorage,
35
+ useQueuedLocalStorageState,
36
+ useSessionStorage,
37
+ useSessionStorageState
38
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ actionTypes,
3
+ reducer,
4
+ toast,
5
+ useToast,
6
+ useToast_default
7
+ } from "../chunk-VVFZ7HTT.js";
8
+ import "../chunk-QGM4M3NI.js";
9
+ export {
10
+ actionTypes,
11
+ useToast_default as default,
12
+ reducer,
13
+ toast,
14
+ useToast
15
+ };
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@pol-studios/hooks",
3
+ "version": "1.0.0",
4
+ "description": "React hooks for POL applications",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": ["dist"],
10
+ "exports": {
11
+ ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" },
12
+ "./state": { "import": "./dist/state/index.js", "types": "./dist/state/index.d.ts" },
13
+ "./scroll": { "import": "./dist/scroll/index.js", "types": "./dist/scroll/index.d.ts" },
14
+ "./storage": { "import": "./dist/storage/index.js", "types": "./dist/storage/index.d.ts" },
15
+ "./device": { "import": "./dist/device/index.js", "types": "./dist/device/index.d.ts" },
16
+ "./network": { "import": "./dist/network/index.js", "types": "./dist/network/index.d.ts" },
17
+ "./lifecycle": { "import": "./dist/lifecycle/index.js", "types": "./dist/lifecycle/index.d.ts" },
18
+ "./file": { "import": "./dist/file/index.js", "types": "./dist/file/index.d.ts" },
19
+ "./toast": { "import": "./dist/toast/index.js", "types": "./dist/toast/index.d.ts" },
20
+ "./form": { "import": "./dist/form/index.js", "types": "./dist/form/index.d.ts" },
21
+ "./debug": { "import": "./dist/debug/index.js", "types": "./dist/debug/index.d.ts" },
22
+ "./utils": { "import": "./dist/_utils/index.js", "types": "./dist/_utils/index.d.ts" }
23
+ },
24
+ "scripts": {
25
+ "build": "tsup",
26
+ "dev": "tsup --watch",
27
+ "prepublishOnly": "pnpm build"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "peerDependencies": {
33
+ "react": "^18.0.0 || ^19.0.0",
34
+ "react-dom": "^18.0.0 || ^19.0.0",
35
+ "@pol-studios/features": ">=1.0.0",
36
+ "@pol-studios/utils": ">=1.0.0"
37
+ },
38
+ "dependencies": {
39
+ "@tanstack/react-query": "^5.0.0",
40
+ "framer-motion": "^11.0.0",
41
+ "lodash": "^4.17.21"
42
+ },
43
+ "devDependencies": {
44
+ "@pol-studios/features": "workspace:*",
45
+ "@pol-studios/utils": "workspace:*",
46
+ "tsup": "^8.0.0",
47
+ "typescript": "^5.0.0"
48
+ },
49
+ "keywords": ["hooks", "react", "state", "storage", "toast"]
50
+ }