@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.
- package/dist/_utils/index.js +29 -0
- package/dist/chunk-AIS4L5ID.js +151 -0
- package/dist/chunk-BHNC4MM6.js +29 -0
- package/dist/chunk-BKB34ZQJ.js +41 -0
- package/dist/chunk-EVE7TM7O.js +67 -0
- package/dist/chunk-EZXGO56T.js +370 -0
- package/dist/chunk-GKXIKVGH.js +157 -0
- package/dist/chunk-IFSEJVAF.js +135 -0
- package/dist/chunk-MMIPLCL4.js +4149 -0
- package/dist/chunk-OF7JZIAL.js +39 -0
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/chunk-RX4FIJI6.js +130 -0
- package/dist/chunk-VVFZ7HTT.js +133 -0
- package/dist/chunk-XIISC67B.js +67 -0
- package/dist/debug/index.js +14 -0
- package/dist/device/index.js +24 -0
- package/dist/file/index.js +12 -0
- package/dist/form/index.js +13 -0
- package/dist/index.js +192 -0
- package/dist/lifecycle/index.js +12 -0
- package/dist/network/index.js +12 -0
- package/dist/scroll/index.js +16 -0
- package/dist/state/index.js +21 -0
- package/dist/storage/index.js +38 -0
- package/dist/toast/index.js +15 -0
- package/package.json +50 -0
|
@@ -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
|
+
};
|
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
|
+
}
|