@stryke/hooks 0.4.24 → 0.4.31
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/CHANGELOG.md +342 -0
- package/README.md +18 -10
- package/dist/index.cjs +1 -192
- package/dist/index.d.cts +18 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.mjs +1 -1
- package/dist/is-function-BhD7GXOO.cjs +1 -0
- package/dist/is-function-md4Ym3I0.mjs +2 -0
- package/dist/is-function-md4Ym3I0.mjs.map +1 -0
- package/dist/navigator-CY6InfsZ.d.cts +23 -0
- package/dist/navigator-CY6InfsZ.d.cts.map +1 -0
- package/dist/navigator-DUOlrD-4.d.mts +23 -0
- package/dist/navigator-DUOlrD-4.d.mts.map +1 -0
- package/dist/use-battery-BkRIfbJz.d.mts +11 -0
- package/dist/use-battery-BkRIfbJz.d.mts.map +1 -0
- package/dist/use-battery-DZZDx003.cjs +1 -0
- package/dist/use-battery-DaA7I4_x.mjs +2 -0
- package/dist/use-battery-DaA7I4_x.mjs.map +1 -0
- package/dist/use-battery-DpuF7GMz.d.cts +11 -0
- package/dist/use-battery-DpuF7GMz.d.cts.map +1 -0
- package/dist/use-battery.cjs +1 -46
- package/dist/use-battery.d.cts +2 -0
- package/dist/use-battery.d.mts +2 -0
- package/dist/use-battery.mjs +1 -1
- package/dist/use-callback-ref-B-95d49K.d.mts +9 -0
- package/dist/use-callback-ref-B-95d49K.d.mts.map +1 -0
- package/dist/use-callback-ref-CloM-Kqk.cjs +1 -0
- package/dist/use-callback-ref-ctiFnQn4.d.cts +9 -0
- package/dist/use-callback-ref-ctiFnQn4.d.cts.map +1 -0
- package/dist/use-callback-ref-otlhGzUu.mjs +2 -0
- package/dist/use-callback-ref-otlhGzUu.mjs.map +1 -0
- package/dist/use-callback-ref.cjs +1 -13
- package/dist/use-callback-ref.d.cts +2 -0
- package/dist/use-callback-ref.d.mts +2 -0
- package/dist/use-callback-ref.mjs +1 -1
- package/dist/use-callback-stable-C3QZzhdC.mjs +2 -0
- package/dist/use-callback-stable-C3QZzhdC.mjs.map +1 -0
- package/dist/use-callback-stable-C5X8ySnU.d.mts +55 -0
- package/dist/use-callback-stable-C5X8ySnU.d.mts.map +1 -0
- package/dist/use-callback-stable-CvXmYtWT.cjs +1 -0
- package/dist/use-callback-stable-D_wCU4yv.d.cts +55 -0
- package/dist/use-callback-stable-D_wCU4yv.d.cts.map +1 -0
- package/dist/use-callback-stable.cjs +1 -10
- package/dist/use-callback-stable.d.cts +2 -0
- package/dist/use-callback-stable.d.mts +2 -0
- package/dist/use-callback-stable.mjs +1 -1
- package/dist/use-click-away-Bpl7sh5j.cjs +1 -0
- package/dist/use-click-away-D-DKaD9B.mjs +2 -0
- package/dist/use-click-away-D-DKaD9B.mjs.map +1 -0
- package/dist/use-click-away-DG8ULjSN.d.cts +14 -0
- package/dist/use-click-away-DG8ULjSN.d.cts.map +1 -0
- package/dist/use-click-away-kc61inYs.d.mts +14 -0
- package/dist/use-click-away-kc61inYs.d.mts.map +1 -0
- package/dist/use-click-away.cjs +1 -22
- package/dist/use-click-away.d.cts +2 -0
- package/dist/use-click-away.d.mts +2 -0
- package/dist/use-click-away.mjs +1 -1
- package/dist/use-compose-refs-BUwJN8zY.cjs +1 -0
- package/dist/use-compose-refs-BysZtFy1.mjs +2 -0
- package/dist/use-compose-refs-BysZtFy1.mjs.map +1 -0
- package/dist/{use-compose-refs.d.ts → use-compose-refs-D1nHM35F.d.cts} +10 -4
- package/dist/use-compose-refs-D1nHM35F.d.cts.map +1 -0
- package/dist/use-compose-refs-Dy3epP6l.d.mts +31 -0
- package/dist/use-compose-refs-Dy3epP6l.d.mts.map +1 -0
- package/dist/use-compose-refs.cjs +1 -21
- package/dist/use-compose-refs.d.cts +2 -0
- package/dist/use-compose-refs.d.mts +2 -0
- package/dist/use-compose-refs.mjs +1 -1
- package/dist/use-copy-to-clipboard-Cls03hBs.mjs +2 -0
- package/dist/use-copy-to-clipboard-Cls03hBs.mjs.map +1 -0
- package/dist/use-copy-to-clipboard-D3QmuRQ2.d.mts +10 -0
- package/dist/use-copy-to-clipboard-D3QmuRQ2.d.mts.map +1 -0
- package/dist/use-copy-to-clipboard-DFTtZkv7.cjs +1 -0
- package/dist/use-copy-to-clipboard-DzccpceW.d.cts +10 -0
- package/dist/use-copy-to-clipboard-DzccpceW.d.cts.map +1 -0
- package/dist/use-copy-to-clipboard.cjs +1 -25
- package/dist/use-copy-to-clipboard.d.cts +2 -0
- package/dist/use-copy-to-clipboard.d.mts +2 -0
- package/dist/use-copy-to-clipboard.mjs +1 -1
- package/dist/use-debounce-B07BBb1-.d.mts +17 -0
- package/dist/use-debounce-B07BBb1-.d.mts.map +1 -0
- package/dist/use-debounce-Bh6vyN-1.d.cts +17 -0
- package/dist/use-debounce-Bh6vyN-1.d.cts.map +1 -0
- package/dist/use-debounce-Cto2Ny5z.mjs +2 -0
- package/dist/use-debounce-Cto2Ny5z.mjs.map +1 -0
- package/dist/use-debounce-DWeScEkQ.cjs +1 -0
- package/dist/use-debounce.cjs +1 -26
- package/dist/use-debounce.d.cts +2 -0
- package/dist/use-debounce.d.mts +2 -0
- package/dist/use-debounce.mjs +1 -1
- package/dist/use-did-finish-ssr-B6M_wlP4.mjs +2 -0
- package/dist/use-did-finish-ssr-B6M_wlP4.mjs.map +1 -0
- package/dist/use-did-finish-ssr-BbXffDj5.cjs +1 -0
- package/dist/use-did-finish-ssr-CBz5xeHc.d.mts +10 -0
- package/dist/use-did-finish-ssr-CBz5xeHc.d.mts.map +1 -0
- package/dist/use-did-finish-ssr-D3CpAwOz.d.cts +10 -0
- package/dist/use-did-finish-ssr-D3CpAwOz.d.cts.map +1 -0
- package/dist/use-did-finish-ssr.cjs +1 -28
- package/dist/use-did-finish-ssr.d.cts +2 -0
- package/dist/use-did-finish-ssr.d.mts +2 -0
- package/dist/use-did-finish-ssr.mjs +1 -1
- package/dist/use-escape-keydown-BsJYLp1N.d.cts +8 -0
- package/dist/use-escape-keydown-BsJYLp1N.d.cts.map +1 -0
- package/dist/use-escape-keydown-CFy25Wk6.mjs +2 -0
- package/dist/use-escape-keydown-CFy25Wk6.mjs.map +1 -0
- package/dist/use-escape-keydown-DgPvPpzz.d.mts +8 -0
- package/dist/use-escape-keydown-DgPvPpzz.d.mts.map +1 -0
- package/dist/use-escape-keydown-ITaT9SqI.cjs +1 -0
- package/dist/use-escape-keydown.cjs +1 -19
- package/dist/use-escape-keydown.d.cts +2 -0
- package/dist/use-escape-keydown.d.mts +2 -0
- package/dist/use-escape-keydown.mjs +1 -1
- package/dist/use-event-CBTGhPhg.mjs +2 -0
- package/dist/use-event-CBTGhPhg.mjs.map +1 -0
- package/dist/use-event-DG39UVbo.cjs +1 -0
- package/dist/{use-event.d.ts → use-event-DHFCg8sl.d.cts} +5 -2
- package/dist/use-event-DHFCg8sl.d.cts.map +1 -0
- package/dist/use-event-DQyUWk4T.d.mts +12 -0
- package/dist/use-event-DQyUWk4T.d.mts.map +1 -0
- package/dist/use-event.cjs +1 -20
- package/dist/use-event.d.cts +2 -0
- package/dist/use-event.d.mts +2 -0
- package/dist/use-event.mjs +1 -1
- package/dist/{use-hover.d.ts → use-hover-CPJ3UcMM.d.mts} +5 -1
- package/dist/use-hover-CPJ3UcMM.d.mts.map +1 -0
- package/dist/use-hover-DCP1g7QG.mjs +2 -0
- package/dist/use-hover-DCP1g7QG.mjs.map +1 -0
- package/dist/use-hover-DeFTY9RX.d.cts +10 -0
- package/dist/use-hover-DeFTY9RX.d.cts.map +1 -0
- package/dist/use-hover-SNRrnUoI.cjs +1 -0
- package/dist/use-hover.cjs +1 -21
- package/dist/use-hover.d.cts +2 -0
- package/dist/use-hover.d.mts +2 -0
- package/dist/use-hover.mjs +1 -1
- package/dist/{use-idle.d.ts → use-idle-Car_0ThE.d.cts} +5 -1
- package/dist/use-idle-Car_0ThE.d.cts.map +1 -0
- package/dist/use-idle-CrCoMyLz.cjs +1 -0
- package/dist/use-idle-DrgoS1jh.mjs +2 -0
- package/dist/use-idle-DrgoS1jh.mjs.map +1 -0
- package/dist/use-idle-DwhHMDDp.d.mts +11 -0
- package/dist/use-idle-DwhHMDDp.d.mts.map +1 -0
- package/dist/use-idle.cjs +1 -27
- package/dist/use-idle.d.cts +2 -0
- package/dist/use-idle.d.mts +2 -0
- package/dist/use-idle.mjs +1 -1
- package/dist/use-isomorphic-layout-effect-Br2hUBEM.cjs +1 -0
- package/dist/use-isomorphic-layout-effect-CwRlvm9E.d.cts +13 -0
- package/dist/use-isomorphic-layout-effect-CwRlvm9E.d.cts.map +1 -0
- package/dist/use-isomorphic-layout-effect-D7uazny2.mjs +2 -0
- package/dist/use-isomorphic-layout-effect-D7uazny2.mjs.map +1 -0
- package/dist/use-isomorphic-layout-effect-IWX2e-IS.d.mts +13 -0
- package/dist/use-isomorphic-layout-effect-IWX2e-IS.d.mts.map +1 -0
- package/dist/use-isomorphic-layout-effect.cjs +1 -9
- package/dist/use-isomorphic-layout-effect.d.cts +2 -0
- package/dist/use-isomorphic-layout-effect.d.mts +2 -0
- package/dist/use-isomorphic-layout-effect.mjs +1 -1
- package/dist/use-keyboard-visible-83MQ2ogF.mjs +2 -0
- package/dist/use-keyboard-visible-83MQ2ogF.mjs.map +1 -0
- package/dist/use-keyboard-visible-BHYBoMGb.cjs +1 -0
- package/dist/use-keyboard-visible-BPIMSGQ1.d.cts +5 -0
- package/dist/use-keyboard-visible-BPIMSGQ1.d.cts.map +1 -0
- package/dist/use-keyboard-visible-iH9veUTt.d.mts +5 -0
- package/dist/use-keyboard-visible-iH9veUTt.d.mts.map +1 -0
- package/dist/use-keyboard-visible.cjs +1 -23
- package/dist/use-keyboard-visible.d.cts +2 -0
- package/dist/use-keyboard-visible.d.mts +2 -0
- package/dist/use-keyboard-visible.mjs +1 -1
- package/dist/{use-memo-stable.d.ts → use-memo-stable-Aqx3eZTS.d.mts} +5 -1
- package/dist/use-memo-stable-Aqx3eZTS.d.mts.map +1 -0
- package/dist/use-memo-stable-DKI3Fj07.mjs +2 -0
- package/dist/use-memo-stable-DKI3Fj07.mjs.map +1 -0
- package/dist/use-memo-stable-DKW_L41q.cjs +1 -0
- package/dist/{use-callback-stable.d.ts → use-memo-stable-i9UN2iWi.d.cts} +7 -7
- package/dist/use-memo-stable-i9UN2iWi.d.cts.map +1 -0
- package/dist/use-memo-stable.cjs +1 -28
- package/dist/use-memo-stable.d.cts +2 -0
- package/dist/use-memo-stable.d.mts +2 -0
- package/dist/use-memo-stable.mjs +1 -1
- package/dist/use-network-state-Bce55hBv.cjs +1 -0
- package/dist/use-network-state-CtGu_gfo.mjs +2 -0
- package/dist/use-network-state-CtGu_gfo.mjs.map +1 -0
- package/dist/use-network-state-DPhNT5_N.d.mts +20 -0
- package/dist/use-network-state-DPhNT5_N.d.mts.map +1 -0
- package/dist/use-network-state-DQegmILl.d.cts +20 -0
- package/dist/use-network-state-DQegmILl.d.cts.map +1 -0
- package/dist/use-network-state.cjs +1 -44
- package/dist/use-network-state.d.cts +2 -0
- package/dist/use-network-state.d.mts +2 -0
- package/dist/use-network-state.mjs +1 -1
- package/dist/use-previous-BNZSuZUn.cjs +1 -0
- package/dist/use-previous-BvOs-yn-.d.cts +5 -0
- package/dist/use-previous-BvOs-yn-.d.cts.map +1 -0
- package/dist/use-previous-ChmuSO8b.d.mts +5 -0
- package/dist/use-previous-ChmuSO8b.d.mts.map +1 -0
- package/dist/use-previous-vtWmTmEN.mjs +2 -0
- package/dist/use-previous-vtWmTmEN.mjs.map +1 -0
- package/dist/use-previous.cjs +1 -14
- package/dist/use-previous.d.cts +2 -0
- package/dist/use-previous.d.mts +2 -0
- package/dist/use-previous.mjs +1 -1
- package/package.json +79 -309
- package/dist/index.d.ts +0 -25
- package/dist/use-battery.d.ts +0 -4
- package/dist/use-callback-ref.d.ts +0 -5
- package/dist/use-click-away.d.ts +0 -7
- package/dist/use-copy-to-clipboard.d.ts +0 -6
- package/dist/use-debounce.d.ts +0 -9
- package/dist/use-did-finish-ssr.d.ts +0 -7
- package/dist/use-escape-keydown.d.ts +0 -4
- package/dist/use-isomorphic-layout-effect.d.ts +0 -7
- package/dist/use-keyboard-visible.d.ts +0 -1
- package/dist/use-network-state.d.ts +0 -13
- package/dist/use-previous.d.ts +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Changelog for Stryke - Hooks
|
|
4
|
+
|
|
5
|
+
## [0.4.30](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.30) (12/07/2025)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **type-checks** to **v0.5.4**
|
|
10
|
+
- Updated **helpers** to **v0.9.21**
|
|
11
|
+
- Updated **types** to **v0.10.18**
|
|
12
|
+
- Updated **env** to **v0.20.32**
|
|
13
|
+
|
|
14
|
+
## [0.4.29](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.29) (12/07/2025)
|
|
15
|
+
|
|
16
|
+
### Miscellaneous
|
|
17
|
+
|
|
18
|
+
- **monorepo:** Format monorepo source files
|
|
19
|
+
([9428936](https://github.com/storm-software/stryke/commit/9428936))
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **type-checks** to **v0.5.3**
|
|
24
|
+
- Updated **helpers** to **v0.9.20**
|
|
25
|
+
- Updated **types** to **v0.10.17**
|
|
26
|
+
- Updated **env** to **v0.20.31**
|
|
27
|
+
|
|
28
|
+
## [0.4.28](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.28) (12/06/2025)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **tools-nx:** Resolved issue inferring build command-line arguments for local
|
|
33
|
+
packages ([de00278](https://github.com/storm-software/stryke/commit/de00278))
|
|
34
|
+
|
|
35
|
+
### Updated Dependencies
|
|
36
|
+
|
|
37
|
+
- Updated **type-checks** to **v0.5.2**
|
|
38
|
+
- Updated **helpers** to **v0.9.19**
|
|
39
|
+
- Updated **types** to **v0.10.16**
|
|
40
|
+
- Updated **env** to **v0.20.30**
|
|
41
|
+
|
|
42
|
+
## [0.4.27](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.27) (12/06/2025)
|
|
43
|
+
|
|
44
|
+
### Updated Dependencies
|
|
45
|
+
|
|
46
|
+
- Updated **type-checks** to **v0.5.1**
|
|
47
|
+
- Updated **helpers** to **v0.9.18**
|
|
48
|
+
- Updated **types** to **v0.10.15**
|
|
49
|
+
- Updated **env** to **v0.20.29**
|
|
50
|
+
|
|
51
|
+
## [0.4.26](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.26) (12/05/2025)
|
|
52
|
+
|
|
53
|
+
### Updated Dependencies
|
|
54
|
+
|
|
55
|
+
- Updated **type-checks** to **v0.5.0**
|
|
56
|
+
- Updated **helpers** to **v0.9.17**
|
|
57
|
+
- Updated **env** to **v0.20.28**
|
|
58
|
+
|
|
59
|
+
## [0.4.25](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.25) (12/05/2025)
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
|
|
63
|
+
- **monorepo:** Update repository to use `tsdown` to build/bundle packages
|
|
64
|
+
([8ceb909](https://github.com/storm-software/stryke/commit/8ceb909))
|
|
65
|
+
|
|
66
|
+
### Updated Dependencies
|
|
67
|
+
|
|
68
|
+
- Updated **type-checks** to **v0.4.5**
|
|
69
|
+
- Updated **helpers** to **v0.9.16**
|
|
70
|
+
- Updated **types** to **v0.10.14**
|
|
71
|
+
- Updated **env** to **v0.20.27**
|
|
72
|
+
|
|
73
|
+
## [0.4.24](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.24) (12/01/2025)
|
|
74
|
+
|
|
75
|
+
### Updated Dependencies
|
|
76
|
+
|
|
77
|
+
- Updated **type-checks** to **v0.4.4**
|
|
78
|
+
- Updated **helpers** to **v0.9.15**
|
|
79
|
+
- Updated **types** to **v0.10.13**
|
|
80
|
+
- Updated **env** to **v0.20.26**
|
|
81
|
+
|
|
82
|
+
## [0.4.23](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.23) (11/30/2025)
|
|
83
|
+
|
|
84
|
+
### Updated Dependencies
|
|
85
|
+
|
|
86
|
+
- Updated **type-checks** to **v0.4.3**
|
|
87
|
+
- Updated **helpers** to **v0.9.14**
|
|
88
|
+
- Updated **types** to **v0.10.12**
|
|
89
|
+
- Updated **env** to **v0.20.25**
|
|
90
|
+
|
|
91
|
+
## [0.4.22](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.22) (11/30/2025)
|
|
92
|
+
|
|
93
|
+
### Updated Dependencies
|
|
94
|
+
|
|
95
|
+
- Updated **type-checks** to **v0.4.2**
|
|
96
|
+
- Updated **helpers** to **v0.9.13**
|
|
97
|
+
- Updated **types** to **v0.10.11**
|
|
98
|
+
- Updated **env** to **v0.20.24**
|
|
99
|
+
|
|
100
|
+
## [0.4.21](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.21) (11/30/2025)
|
|
101
|
+
|
|
102
|
+
### Updated Dependencies
|
|
103
|
+
|
|
104
|
+
- Updated **type-checks** to **v0.4.1**
|
|
105
|
+
- Updated **helpers** to **v0.9.12**
|
|
106
|
+
- Updated **types** to **v0.10.10**
|
|
107
|
+
- Updated **env** to **v0.20.23**
|
|
108
|
+
|
|
109
|
+
## [0.4.20](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.20) (11/30/2025)
|
|
110
|
+
|
|
111
|
+
### Updated Dependencies
|
|
112
|
+
|
|
113
|
+
- Updated **type-checks** to **v0.4.0**
|
|
114
|
+
- Updated **helpers** to **v0.9.11**
|
|
115
|
+
- Updated **types** to **v0.10.9**
|
|
116
|
+
- Updated **env** to **v0.20.22**
|
|
117
|
+
|
|
118
|
+
## [0.4.19](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.19) (11/24/2025)
|
|
119
|
+
|
|
120
|
+
### Updated Dependencies
|
|
121
|
+
|
|
122
|
+
- Updated **type-checks** to **v0.3.18**
|
|
123
|
+
- Updated **helpers** to **v0.9.10**
|
|
124
|
+
- Updated **types** to **v0.10.8**
|
|
125
|
+
- Updated **env** to **v0.20.21**
|
|
126
|
+
|
|
127
|
+
## [0.4.18](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.18) (11/21/2025)
|
|
128
|
+
|
|
129
|
+
### Updated Dependencies
|
|
130
|
+
|
|
131
|
+
- Updated **type-checks** to **v0.3.17**
|
|
132
|
+
- Updated **helpers** to **v0.9.9**
|
|
133
|
+
- Updated **types** to **v0.10.7**
|
|
134
|
+
- Updated **env** to **v0.20.20**
|
|
135
|
+
|
|
136
|
+
## [0.4.17](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.17) (11/21/2025)
|
|
137
|
+
|
|
138
|
+
### Updated Dependencies
|
|
139
|
+
|
|
140
|
+
- Updated **type-checks** to **v0.3.16**
|
|
141
|
+
- Updated **helpers** to **v0.9.8**
|
|
142
|
+
- Updated **types** to **v0.10.6**
|
|
143
|
+
- Updated **env** to **v0.20.19**
|
|
144
|
+
|
|
145
|
+
## [0.4.16](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.16) (11/21/2025)
|
|
146
|
+
|
|
147
|
+
### Updated Dependencies
|
|
148
|
+
|
|
149
|
+
- Updated **env** to **v0.20.18**
|
|
150
|
+
|
|
151
|
+
## [0.4.15](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.15) (11/21/2025)
|
|
152
|
+
|
|
153
|
+
### Updated Dependencies
|
|
154
|
+
|
|
155
|
+
- Updated **type-checks** to **v0.3.15**
|
|
156
|
+
- Updated **helpers** to **v0.9.7**
|
|
157
|
+
- Updated **types** to **v0.10.5**
|
|
158
|
+
- Updated **env** to **v0.20.17**
|
|
159
|
+
|
|
160
|
+
## [0.4.14](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.14) (11/21/2025)
|
|
161
|
+
|
|
162
|
+
### Updated Dependencies
|
|
163
|
+
|
|
164
|
+
- Updated **type-checks** to **v0.3.14**
|
|
165
|
+
- Updated **helpers** to **v0.9.6**
|
|
166
|
+
- Updated **types** to **v0.10.4**
|
|
167
|
+
- Updated **env** to **v0.20.16**
|
|
168
|
+
|
|
169
|
+
## [0.4.13](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.13) (11/21/2025)
|
|
170
|
+
|
|
171
|
+
### Updated Dependencies
|
|
172
|
+
|
|
173
|
+
- Updated **type-checks** to **v0.3.13**
|
|
174
|
+
- Updated **helpers** to **v0.9.5**
|
|
175
|
+
- Updated **types** to **v0.10.3**
|
|
176
|
+
- Updated **env** to **v0.20.15**
|
|
177
|
+
|
|
178
|
+
## [0.4.12](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.12) (11/16/2025)
|
|
179
|
+
|
|
180
|
+
### Updated Dependencies
|
|
181
|
+
|
|
182
|
+
- Updated **env** to **v0.20.14**
|
|
183
|
+
|
|
184
|
+
## [0.4.11](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.11) (11/16/2025)
|
|
185
|
+
|
|
186
|
+
### Updated Dependencies
|
|
187
|
+
|
|
188
|
+
- Updated **type-checks** to **v0.3.12**
|
|
189
|
+
- Updated **helpers** to **v0.9.4**
|
|
190
|
+
- Updated **types** to **v0.10.2**
|
|
191
|
+
- Updated **env** to **v0.20.13**
|
|
192
|
+
|
|
193
|
+
## [0.4.10](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.10) (11/08/2025)
|
|
194
|
+
|
|
195
|
+
### Updated Dependencies
|
|
196
|
+
|
|
197
|
+
- Updated **type-checks** to **v0.3.11**
|
|
198
|
+
- Updated **helpers** to **v0.9.3**
|
|
199
|
+
- Updated **types** to **v0.10.1**
|
|
200
|
+
- Updated **env** to **v0.20.12**
|
|
201
|
+
|
|
202
|
+

|
|
203
|
+
|
|
204
|
+
# Changelog for Stryke - Hooks
|
|
205
|
+
|
|
206
|
+
## [0.4.9](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.9) (2025-08-04)
|
|
207
|
+
|
|
208
|
+
### Bug Fixes
|
|
209
|
+
|
|
210
|
+
- **monorepo:** Resolved repository type-check failures
|
|
211
|
+
([d196ace](https://github.com/storm-software/stryke/commit/d196ace))
|
|
212
|
+
|
|
213
|
+
## [0.4.8](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.8) (2025-06-17)
|
|
214
|
+
|
|
215
|
+
### Miscellaneous
|
|
216
|
+
|
|
217
|
+
- **monorepo:** Reformat repository packages
|
|
218
|
+
|
|
219
|
+
## [0.4.7](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.7) (2025-06-12)
|
|
220
|
+
|
|
221
|
+
### Miscellaneous
|
|
222
|
+
|
|
223
|
+
- **monorepo:** Reformat the repository's README markdown files
|
|
224
|
+
- **monorepo:** Run format script on repository
|
|
225
|
+
|
|
226
|
+
## [0.4.6](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.6) (2025-05-12)
|
|
227
|
+
|
|
228
|
+
### Miscellaneous
|
|
229
|
+
|
|
230
|
+
- **monorepo:** Reformat monorepo source code
|
|
231
|
+
|
|
232
|
+
## [0.4.5](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.5) (2025-04-10)
|
|
233
|
+
|
|
234
|
+
### Miscellaneous
|
|
235
|
+
|
|
236
|
+
- **monorepo:** Format the repository's files
|
|
237
|
+
([1384f3e](https://github.com/storm-software/stryke/commit/1384f3e))
|
|
238
|
+
|
|
239
|
+
## [0.4.4](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.4) (2025-03-28)
|
|
240
|
+
|
|
241
|
+
### Miscellaneous
|
|
242
|
+
|
|
243
|
+
- **monorepo:** Reformat the source files in repository
|
|
244
|
+
([bb8df2c](https://github.com/storm-software/stryke/commit/bb8df2c))
|
|
245
|
+
|
|
246
|
+
## [0.4.3](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.3) (2025-03-23)
|
|
247
|
+
|
|
248
|
+
### Bug Fixes
|
|
249
|
+
|
|
250
|
+
- **monorepo:** Resolve issue with TypeScript compilation
|
|
251
|
+
([72e995f](https://github.com/storm-software/stryke/commit/72e995f))
|
|
252
|
+
|
|
253
|
+
## [0.4.2](https://github.com/storm-software/stryke/releases/tag/hooks%400.4.2) (2025-03-23)
|
|
254
|
+
|
|
255
|
+
### Miscellaneous
|
|
256
|
+
|
|
257
|
+
- **monorepo:** Update base storm software packages
|
|
258
|
+
([8942201](https://github.com/storm-software/stryke/commit/8942201))
|
|
259
|
+
|
|
260
|
+
## 0.4.1 (2025-03-13)
|
|
261
|
+
|
|
262
|
+
### Miscellaneous
|
|
263
|
+
|
|
264
|
+
- **monorepo:** Format monorepo project files
|
|
265
|
+
([f28fdbe](https://github.com/storm-software/stryke/commit/f28fdbe))
|
|
266
|
+
|
|
267
|
+
## 0.4.0 (2025-03-13)
|
|
268
|
+
|
|
269
|
+
### Features
|
|
270
|
+
|
|
271
|
+
- **monorepo:** Split `types` project into `type-checks` and `convert` packages
|
|
272
|
+
([fcc5832](https://github.com/storm-software/stryke/commit/fcc5832))
|
|
273
|
+
|
|
274
|
+
## 0.3.2 (2025-03-13)
|
|
275
|
+
|
|
276
|
+
### Miscellaneous
|
|
277
|
+
|
|
278
|
+
- **monorepo:** Reformat monorepo package files
|
|
279
|
+
([a453428](https://github.com/storm-software/stryke/commit/a453428))
|
|
280
|
+
|
|
281
|
+
## 0.3.1 (2025-02-26)
|
|
282
|
+
|
|
283
|
+
### Miscellaneous
|
|
284
|
+
|
|
285
|
+
- **monorepo:** Reformat monorepo files with `prettier`
|
|
286
|
+
([b5d0302](https://github.com/storm-software/stryke/commit/b5d0302))
|
|
287
|
+
|
|
288
|
+
## 0.3.0 (2025-02-23)
|
|
289
|
+
|
|
290
|
+
### Features
|
|
291
|
+
|
|
292
|
+
- **monorepo:** Update base ESLint packages and run on files
|
|
293
|
+
([c59cb8e](https://github.com/storm-software/stryke/commit/c59cb8e))
|
|
294
|
+
|
|
295
|
+
## 0.2.2 (2025-02-17)
|
|
296
|
+
|
|
297
|
+
### Miscellaneous
|
|
298
|
+
|
|
299
|
+
- **monorepo:** Reformat monorepo files
|
|
300
|
+
([1db5e06](https://github.com/storm-software/stryke/commit/1db5e06))
|
|
301
|
+
|
|
302
|
+
## 0.2.1 (2025-02-15)
|
|
303
|
+
|
|
304
|
+
### Miscellaneous
|
|
305
|
+
|
|
306
|
+
- **monorepo:** Reformat monorepo files
|
|
307
|
+
([69ed6b7](https://github.com/storm-software/stryke/commit/69ed6b7))
|
|
308
|
+
|
|
309
|
+
## 0.2.0 (2025-02-15)
|
|
310
|
+
|
|
311
|
+
### Features
|
|
312
|
+
|
|
313
|
+
- **helpers:** Added the `deepCopy` helper function
|
|
314
|
+
([76b0179](https://github.com/storm-software/stryke/commit/76b0179))
|
|
315
|
+
|
|
316
|
+
## 0.1.4 (2025-02-15)
|
|
317
|
+
|
|
318
|
+
### Miscellaneous
|
|
319
|
+
|
|
320
|
+
- **monorepo:** Reformat workspace files
|
|
321
|
+
([ad2d6a9](https://github.com/storm-software/stryke/commit/ad2d6a9))
|
|
322
|
+
|
|
323
|
+
## 0.1.3 (2025-02-10)
|
|
324
|
+
|
|
325
|
+
### Miscellaneous
|
|
326
|
+
|
|
327
|
+
- **monorepo:** Update versions for unpublished monorepo packages
|
|
328
|
+
([4abef50](https://github.com/storm-software/stryke/commit/4abef50))
|
|
329
|
+
|
|
330
|
+
## 0.1.2 (2025-02-09)
|
|
331
|
+
|
|
332
|
+
### Miscellaneous
|
|
333
|
+
|
|
334
|
+
- **monorepo:** Regenerate repository markdown files
|
|
335
|
+
([e61e39e](https://github.com/storm-software/stryke/commit/e61e39e))
|
|
336
|
+
|
|
337
|
+
## 0.1.1 (2025-02-08)
|
|
338
|
+
|
|
339
|
+
### Miscellaneous
|
|
340
|
+
|
|
341
|
+
- **monorepo:** update auto-merge non-major dependencies
|
|
342
|
+
([#5](https://github.com/storm-software/stryke/pull/5))
|
package/README.md
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light-optimized.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif" width="100%" alt="Storm Software" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
7
13
|
<br />
|
|
8
14
|
|
|
9
15
|
<div align="center">
|
|
@@ -16,13 +22,13 @@
|
|
|
16
22
|
</div>
|
|
17
23
|
|
|
18
24
|
<br />
|
|
19
|
-
This package is part of Storm Software's
|
|
25
|
+
This package is part of Storm Software's **💥 Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
|
|
20
26
|
|
|
21
27
|
<br />
|
|
22
28
|
|
|
23
29
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
24
30
|
|
|
25
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
26
32
|
|
|
27
33
|
> [!IMPORTANT] Important
|
|
28
34
|
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
@@ -45,7 +51,6 @@ A package containing shared hooks that can be used in any React UI project
|
|
|
45
51
|
|
|
46
52
|
<!-- START doctoc -->
|
|
47
53
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
48
|
-
|
|
49
54
|
## Table of Contents
|
|
50
55
|
|
|
51
56
|
- [Installing](#installing)
|
|
@@ -92,10 +97,10 @@ yarn add -D @stryke/hooks
|
|
|
92
97
|
|
|
93
98
|
## Reduced Package Size
|
|
94
99
|
|
|
95
|
-
This project uses [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
This project uses [tsdown](https://tsdown.dev) to package the source code due to
|
|
101
|
+
its ability to remove unused code and ship smaller javascript files thanks to
|
|
102
|
+
code splitting. This helps to greatly reduce the size of the package and to make
|
|
103
|
+
it easier to use in other projects.
|
|
99
104
|
|
|
100
105
|
## Development
|
|
101
106
|
|
|
@@ -236,10 +241,13 @@ specification. Contributions of any kind welcome!
|
|
|
236
241
|
<br />
|
|
237
242
|
|
|
238
243
|
<hr />
|
|
239
|
-
<br />
|
|
240
244
|
|
|
241
245
|
<div align="center">
|
|
242
|
-
<
|
|
246
|
+
<picture>
|
|
247
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
|
|
248
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
|
|
249
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
|
|
250
|
+
</picture>
|
|
243
251
|
</div>
|
|
244
252
|
<br />
|
|
245
253
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,192 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _useBattery = require("./use-battery.cjs");
|
|
7
|
-
Object.keys(_useBattery).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _useBattery[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _useBattery[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _useCallbackRef = require("./use-callback-ref.cjs");
|
|
18
|
-
Object.keys(_useCallbackRef).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _useCallbackRef[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _useCallbackRef[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _useCallbackStable = require("./use-callback-stable.cjs");
|
|
29
|
-
Object.keys(_useCallbackStable).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _useCallbackStable[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _useCallbackStable[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _useClickAway = require("./use-click-away.cjs");
|
|
40
|
-
Object.keys(_useClickAway).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _useClickAway[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _useClickAway[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _useComposeRefs = require("./use-compose-refs.cjs");
|
|
51
|
-
Object.keys(_useComposeRefs).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _useComposeRefs[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _useComposeRefs[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _useCopyToClipboard = require("./use-copy-to-clipboard.cjs");
|
|
62
|
-
Object.keys(_useCopyToClipboard).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _useCopyToClipboard[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _useCopyToClipboard[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _useDebounce = require("./use-debounce.cjs");
|
|
73
|
-
Object.keys(_useDebounce).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _useDebounce[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _useDebounce[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _useDidFinishSsr = require("./use-did-finish-ssr.cjs");
|
|
84
|
-
Object.keys(_useDidFinishSsr).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _useDidFinishSsr[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _useDidFinishSsr[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _useEscapeKeydown = require("./use-escape-keydown.cjs");
|
|
95
|
-
Object.keys(_useEscapeKeydown).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _useEscapeKeydown[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _useEscapeKeydown[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _useEvent = require("./use-event.cjs");
|
|
106
|
-
Object.keys(_useEvent).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _useEvent[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _useEvent[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
var _useHover = require("./use-hover.cjs");
|
|
117
|
-
Object.keys(_useHover).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _useHover[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _useHover[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
var _useIdle = require("./use-idle.cjs");
|
|
128
|
-
Object.keys(_useIdle).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _useIdle[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _useIdle[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
var _useIsomorphicLayoutEffect = require("./use-isomorphic-layout-effect.cjs");
|
|
139
|
-
Object.keys(_useIsomorphicLayoutEffect).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _useIsomorphicLayoutEffect[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function () {
|
|
145
|
-
return _useIsomorphicLayoutEffect[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
var _useKeyboardVisible = require("./use-keyboard-visible.cjs");
|
|
150
|
-
Object.keys(_useKeyboardVisible).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _useKeyboardVisible[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _useKeyboardVisible[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
var _useMemoStable = require("./use-memo-stable.cjs");
|
|
161
|
-
Object.keys(_useMemoStable).forEach(function (key) {
|
|
162
|
-
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] === _useMemoStable[key]) return;
|
|
164
|
-
Object.defineProperty(exports, key, {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return _useMemoStable[key];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var _useNetworkState = require("./use-network-state.cjs");
|
|
172
|
-
Object.keys(_useNetworkState).forEach(function (key) {
|
|
173
|
-
if (key === "default" || key === "__esModule") return;
|
|
174
|
-
if (key in exports && exports[key] === _useNetworkState[key]) return;
|
|
175
|
-
Object.defineProperty(exports, key, {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return _useNetworkState[key];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
var _usePrevious = require("./use-previous.cjs");
|
|
183
|
-
Object.keys(_usePrevious).forEach(function (key) {
|
|
184
|
-
if (key === "default" || key === "__esModule") return;
|
|
185
|
-
if (key in exports && exports[key] === _usePrevious[key]) return;
|
|
186
|
-
Object.defineProperty(exports, key, {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function () {
|
|
189
|
-
return _usePrevious[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
1
|
+
const e=require(`./use-battery-DZZDx003.cjs`),t=require(`./use-callback-ref-CloM-Kqk.cjs`),n=require(`./use-memo-stable-DKW_L41q.cjs`),r=require(`./use-callback-stable-CvXmYtWT.cjs`),i=require(`./use-click-away-Bpl7sh5j.cjs`),a=require(`./use-compose-refs-BUwJN8zY.cjs`),o=require(`./use-copy-to-clipboard-DFTtZkv7.cjs`),s=require(`./use-debounce-DWeScEkQ.cjs`),c=require(`./use-did-finish-ssr-BbXffDj5.cjs`),l=require(`./use-escape-keydown-ITaT9SqI.cjs`),u=require(`./use-isomorphic-layout-effect-Br2hUBEM.cjs`),d=require(`./use-event-DG39UVbo.cjs`),f=require(`./use-hover-SNRrnUoI.cjs`),p=require(`./use-idle-CrCoMyLz.cjs`),m=require(`./use-keyboard-visible-BHYBoMGb.cjs`),h=require(`./use-network-state-Bce55hBv.cjs`),g=require(`./use-previous-BNZSuZUn.cjs`);exports.composeRefs=a.t,exports.setRef=a.n,exports.useBattery=e.t,exports.useCallbackRef=t.t,exports.useCallbackStable=r.t,exports.useClickAway=i.t,exports.useClientValue=c.t,exports.useComposedRefs=a.r,exports.useCopyToClipboard=o.t,exports.useDebounce=s.t,exports.useDebounceValue=s.n,exports.useDidFinishSSR=c.n,exports.useDidFinishSSRSync=c.r,exports.useEscapeKeydown=l.t,exports.useEvent=d.t,exports.useHover=f.t,exports.useIdle=p.t,exports.useIsomorphicLayoutEffect=u.t,exports.useKeyboardVisible=m.t,exports.useMemoStable=n.t,exports.useNetworkState=h.t,exports.useNetworkStateSubscribe=h.n,exports.usePrevious=g.t;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as useBattery } from "./use-battery-DpuF7GMz.cjs";
|
|
2
|
+
import { t as useCallbackRef } from "./use-callback-ref-ctiFnQn4.cjs";
|
|
3
|
+
import { t as useCallbackStable } from "./use-callback-stable-D_wCU4yv.cjs";
|
|
4
|
+
import { t as useClickAway } from "./use-click-away-DG8ULjSN.cjs";
|
|
5
|
+
import { n as setRef, r as useComposedRefs, t as composeRefs } from "./use-compose-refs-D1nHM35F.cjs";
|
|
6
|
+
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-DzccpceW.cjs";
|
|
7
|
+
import { n as useDebounceValue, t as useDebounce } from "./use-debounce-Bh6vyN-1.cjs";
|
|
8
|
+
import { n as useDidFinishSSR, r as useDidFinishSSRSync, t as useClientValue } from "./use-did-finish-ssr-D3CpAwOz.cjs";
|
|
9
|
+
import { t as useEscapeKeydown } from "./use-escape-keydown-BsJYLp1N.cjs";
|
|
10
|
+
import { t as useEvent } from "./use-event-DHFCg8sl.cjs";
|
|
11
|
+
import { t as useHover } from "./use-hover-DeFTY9RX.cjs";
|
|
12
|
+
import { t as useIdle } from "./use-idle-Car_0ThE.cjs";
|
|
13
|
+
import { t as useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect-CwRlvm9E.cjs";
|
|
14
|
+
import { t as useKeyboardVisible } from "./use-keyboard-visible-BPIMSGQ1.cjs";
|
|
15
|
+
import { t as useMemoStable } from "./use-memo-stable-i9UN2iWi.cjs";
|
|
16
|
+
import { n as useNetworkStateSubscribe, t as useNetworkState } from "./use-network-state-DQegmILl.cjs";
|
|
17
|
+
import { t as usePrevious } from "./use-previous-BvOs-yn-.cjs";
|
|
18
|
+
export { composeRefs, setRef, useBattery, useCallbackRef, useCallbackStable, useClickAway, useClientValue, useComposedRefs, useCopyToClipboard, useDebounce, useDebounceValue, useDidFinishSSR, useDidFinishSSRSync, useEscapeKeydown, useEvent, useHover, useIdle, useIsomorphicLayoutEffect, useKeyboardVisible, useMemoStable, useNetworkState, useNetworkStateSubscribe, usePrevious };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as useBattery } from "./use-battery-BkRIfbJz.mjs";
|
|
2
|
+
import { t as useCallbackRef } from "./use-callback-ref-B-95d49K.mjs";
|
|
3
|
+
import { t as useCallbackStable } from "./use-callback-stable-C5X8ySnU.mjs";
|
|
4
|
+
import { t as useClickAway } from "./use-click-away-kc61inYs.mjs";
|
|
5
|
+
import { n as setRef, r as useComposedRefs, t as composeRefs } from "./use-compose-refs-Dy3epP6l.mjs";
|
|
6
|
+
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-D3QmuRQ2.mjs";
|
|
7
|
+
import { n as useDebounceValue, t as useDebounce } from "./use-debounce-B07BBb1-.mjs";
|
|
8
|
+
import { n as useDidFinishSSR, r as useDidFinishSSRSync, t as useClientValue } from "./use-did-finish-ssr-CBz5xeHc.mjs";
|
|
9
|
+
import { t as useEscapeKeydown } from "./use-escape-keydown-DgPvPpzz.mjs";
|
|
10
|
+
import { t as useEvent } from "./use-event-DQyUWk4T.mjs";
|
|
11
|
+
import { t as useHover } from "./use-hover-CPJ3UcMM.mjs";
|
|
12
|
+
import { t as useIdle } from "./use-idle-DwhHMDDp.mjs";
|
|
13
|
+
import { t as useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect-IWX2e-IS.mjs";
|
|
14
|
+
import { t as useKeyboardVisible } from "./use-keyboard-visible-iH9veUTt.mjs";
|
|
15
|
+
import { t as useMemoStable } from "./use-memo-stable-Aqx3eZTS.mjs";
|
|
16
|
+
import { n as useNetworkStateSubscribe, t as useNetworkState } from "./use-network-state-DPhNT5_N.mjs";
|
|
17
|
+
import { t as usePrevious } from "./use-previous-ChmuSO8b.mjs";
|
|
18
|
+
export { composeRefs, setRef, useBattery, useCallbackRef, useCallbackStable, useClickAway, useClientValue, useComposedRefs, useCopyToClipboard, useDebounce, useDebounceValue, useDidFinishSSR, useDidFinishSSRSync, useEscapeKeydown, useEvent, useHover, useIdle, useIsomorphicLayoutEffect, useKeyboardVisible, useMemoStable, useNetworkState, useNetworkStateSubscribe, usePrevious };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./use-battery-DaA7I4_x.mjs";import{t}from"./use-callback-ref-otlhGzUu.mjs";import{t as n}from"./use-memo-stable-DKI3Fj07.mjs";import{t as r}from"./use-callback-stable-C3QZzhdC.mjs";import{t as i}from"./use-click-away-D-DKaD9B.mjs";import{n as a,r as o,t as s}from"./use-compose-refs-BysZtFy1.mjs";import{t as c}from"./use-copy-to-clipboard-Cls03hBs.mjs";import{n as l,t as u}from"./use-debounce-Cto2Ny5z.mjs";import{n as d,r as f,t as p}from"./use-did-finish-ssr-B6M_wlP4.mjs";import{t as m}from"./use-escape-keydown-CFy25Wk6.mjs";import{t as h}from"./use-isomorphic-layout-effect-D7uazny2.mjs";import{t as g}from"./use-event-CBTGhPhg.mjs";import{t as _}from"./use-hover-DCP1g7QG.mjs";import{t as v}from"./use-idle-DrgoS1jh.mjs";import{t as y}from"./use-keyboard-visible-83MQ2ogF.mjs";import{n as b,t as x}from"./use-network-state-CtGu_gfo.mjs";import{t as S}from"./use-previous-vtWmTmEN.mjs";export{s as composeRefs,a as setRef,e as useBattery,t as useCallbackRef,r as useCallbackStable,i as useClickAway,p as useClientValue,o as useComposedRefs,c as useCopyToClipboard,u as useDebounce,l as useDebounceValue,d as useDidFinishSSR,f as useDidFinishSSRSync,m as useEscapeKeydown,g as useEvent,_ as useHover,v as useIdle,h as useIsomorphicLayoutEffect,y as useKeyboardVisible,n as useMemoStable,x as useNetworkState,b as useNetworkStateSubscribe,S as usePrevious};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);function t(t){return e(t)===`[object Function]`}function n(t){return e(t)===`[object AsyncFunction]`}const r=e=>{try{return e instanceof Function||typeof e==`function`||!!(e?.constructor&&e?.call&&e?.apply)||t(e)||n(e)}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);function t(t){return e(t)===`[object Function]`}function n(t){return e(t)===`[object AsyncFunction]`}const r=e=>{try{return e instanceof Function||typeof e==`function`||!!(e?.constructor&&e?.call&&e?.apply)||t(e)||n(e)}catch{return!1}};export{r as t};
|
|
2
|
+
//# sourceMappingURL=is-function-md4Ym3I0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-function-md4Ym3I0.mjs","names":[],"sources":["../../type-checks/src/get-object-tag.ts","../../type-checks/src/is-function.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { AnyFunction } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\nexport function isSyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object Function]\";\n}\n\nexport function isAsyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object AsyncFunction]\";\n}\n\n/**\n * Check if the provided value's type is `Function`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Function`\n */\nexport const isFunction = (value: unknown): value is AnyFunction => {\n try {\n return (\n value instanceof Function ||\n typeof value === \"function\" ||\n Boolean(\n value?.constructor && (value as any)?.call && (value as any)?.apply\n ) ||\n isSyncFunction(value) ||\n isAsyncFunction(value)\n );\n } catch {\n return false;\n }\n};\n"],"mappings":"AAwBA,MAAa,EAAgB,GACvB,GAAS,KACJ,IAAU,IAAA,GAAY,qBAAuB,gBAE/C,OAAO,UAAU,SAAS,KAAK,EAAM,CCP9C,SAAgB,EAAe,EAAmC,CAChE,OAAO,EAAa,EAAM,GAAK,oBAGjC,SAAgB,EAAgB,EAAmC,CACjE,OAAO,EAAa,EAAM,GAAK,yBASjC,MAAa,EAAc,GAAyC,CAClE,GAAI,CACF,OACE,aAAiB,UACjB,OAAO,GAAU,YACjB,GACE,GAAO,aAAgB,GAAe,MAAS,GAAe,QAEhE,EAAe,EAAM,EACrB,EAAgB,EAAM,MAElB,CACN,MAAO"}
|