@websolutespa/bom-mixer-hooks 2.0.1-next.2 → 3.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +268 -261
  2. package/dist/index.d.ts +6 -5
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +52 -47
  5. package/dist/index.js.map +1 -1
  6. package/package.json +14 -14
  7. package/src/useApi/useApi.test.tsx +6 -7
  8. package/src/useAutosizeTextArea/useAutosizeTextArea.ts +2 -0
  9. package/src/useBodyScroll/useBodyScroll.ts +2 -0
  10. package/src/useBreakpoint/useBreakpoint.ts +2 -0
  11. package/src/useClickAnyWhere/useClickAnyWhere.ts +2 -0
  12. package/src/useClickOut/useClickOut.ts +4 -2
  13. package/src/useCollectionApi/useCollectionApi.test.tsx +6 -7
  14. package/src/useCurrentState/useCurrentState.ts +2 -0
  15. package/src/useDebounce/useDebounce.ts +2 -0
  16. package/src/useDebounceCallback/useDebounceCallback.ts +3 -1
  17. package/src/useDebugChangedProps/useDebugChangedProps.ts +2 -0
  18. package/src/useDomObserver/useDomObserver.ts +2 -0
  19. package/src/useElementSize/useElementSize.ts +4 -2
  20. package/src/useEventListener/useEventListener.ts +2 -0
  21. package/src/useExtra/useExtra.tsx +3 -1
  22. package/src/useFilters/useFilters.ts +2 -0
  23. package/src/useFocusTrap/useFocusTrap.ts +2 -0
  24. package/src/useGenericContext/useGenericContext.ts +3 -1
  25. package/src/useGeolocation/useGeolocation.ts +2 -0
  26. package/src/useHttp/useHttp.test.tsx +6 -7
  27. package/src/useHttp/useHttp.ts +2 -0
  28. package/src/useIdle/useIdle.ts +2 -0
  29. package/src/useInfiniteLoader/useInfiniteLoader.ts +2 -0
  30. package/src/useIntersectionObserver/useIntersectionObserver.ts +2 -0
  31. package/src/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts +2 -0
  32. package/src/useKeyboard/useKeyboard.ts +1 -0
  33. package/src/useLabel/useLabel.tsx +2 -0
  34. package/src/useLayout/useLayout.default.ts +7 -0
  35. package/src/useLayout/useLayout.tsx +12 -3
  36. package/src/useLazyModules/useLazyModules.tsx +3 -1
  37. package/src/useMetaData/useMetaData.tsx +18 -4
  38. package/src/useMounted/useMounted.ts +3 -1
  39. package/src/usePage/usePage.tsx +2 -0
  40. package/src/usePageLoading/usePageLoading.ts +2 -0
  41. package/src/usePagination/usePagination.ts +2 -0
  42. package/src/usePaginationLegacy/usePaginationLegacy.ts +2 -0
  43. package/src/usePortal/usePortal.ts +2 -0
  44. package/src/usePrevious/usePrevious.ts +2 -0
  45. package/src/useRealSize/useRealSize.ts +2 -0
  46. package/src/useReducedMotion/useReducedMotionLocal.ts +2 -0
  47. package/src/useSSR/useSSR.ts +2 -0
  48. package/src/useScroll/useScroll.ts +3 -1
  49. package/src/useScrollDirection/useScrollDirection.ts +3 -1
  50. package/src/useScrolled/useScrolled.ts +3 -1
  51. package/src/useSearchParams/useSearchParams.ts +38 -19
  52. package/src/useSearchParamsEncoded/useSearchParamsEncoded.ts +25 -14
  53. package/src/useSearchParamsQs/useSearchParamsQs.ts +23 -12
  54. package/src/useSorting/useSorting.ts +2 -0
  55. package/src/useSyncedRef/useSyncedRef.ts +2 -0
  56. package/src/useUnmountEffect/useUnmountEffect.ts +2 -0
  57. package/src/useWindowSize/useWindowSize.ts +3 -1
package/CHANGELOG.md CHANGED
@@ -1,261 +1,268 @@
1
- # @websolutespa/bom-mixer-hooks
2
-
3
- ## 2.0.1-next.2
4
-
5
- ### Patch Changes
6
-
7
- - Updating: dependencies and build step
8
-
9
- ## 2.0.1-next.0
10
-
11
- ### Major Changes
12
-
13
- - e74b305: Release: Payload 3.7.0
14
-
15
- ### Patch Changes
16
-
17
- - Updated dependencies [e74b305]
18
- - @websolutespa/bom-mixer-models@2.0.1-next.0
19
- - @websolutespa/bom-mixer-store@2.0.1-next.0
20
- - @websolutespa/bom-core@2.0.1-next.0
21
-
22
- ## 1.9.2
23
-
24
- ### Patch Changes
25
-
26
- - 4c2d7a6: Added: useScrollDirection
27
-
28
- ## 1.9.1
29
-
30
- ### Patch Changes
31
-
32
- - Modified: MetaData Meta added xDefault
33
- - Updated dependencies
34
- - @websolutespa/bom-mixer-models@1.9.5
35
-
36
- ## 1.9.0
37
-
38
- ### Minor Changes
39
-
40
- - Modified: usePagination
41
- - Added: useMetaData
42
-
43
- ## 1.8.11
44
-
45
- ### Patch Changes
46
-
47
- - Modified: usePage typings
48
- - Updated dependencies
49
- - Updated dependencies
50
- - @websolutespa/bom-mixer-store@1.8.11
51
- - @websolutespa/bom-mixer-models@1.8.18
52
-
53
- ## 1.8.10
54
-
55
- ### Patch Changes
56
-
57
- - 88267c3: Modified: useAutosizeTextArea
58
-
59
- ## 1.8.9
60
-
61
- ### Patch Changes
62
-
63
- - 3a7fc91: Added: useAutosizeTextArea, useColorScheme, useFocusTrap, useReducedMotion
64
-
65
- ## 1.8.8
66
-
67
- ### Patch Changes
68
-
69
- - Modified: useGenericContext returning context
70
-
71
- ## 1.8.7
72
-
73
- ### Patch Changes
74
-
75
- - b43eb2e: Modified: useSearchParams shallow routing
76
-
77
- ## 1.8.6
78
-
79
- ### Patch Changes
80
-
81
- - Modified: SearchParamsEncoded
82
-
83
- ## 1.8.5
84
-
85
- ### Patch Changes
86
-
87
- - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs scroll false
88
-
89
- ## 1.8.4
90
-
91
- ### Patch Changes
92
-
93
- - Modified: usePageLoading, shallow routes do not fire loading state
94
-
95
- ## 1.8.3
96
-
97
- ### Patch Changes
98
-
99
- - Added: usePageLoading
100
- - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs
101
-
102
- ## 1.8.2
103
-
104
- ### Patch Changes
105
-
106
- - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs added pushParams
107
-
108
- ## 1.8.1
109
-
110
- ### Patch Changes
111
-
112
- - Updated dependencies
113
- - @websolutespa/bom-core@1.8.5
114
-
115
- ## 1.8.0
116
-
117
- ### Minor Changes
118
-
119
- - f8a1d97: Modified: removed sample hooks
120
- - Updated dependencies [f8a1d97]
121
- - @websolutespa/bom-mixer-models@1.8.0
122
- - @websolutespa/bom-mixer-store@1.8.0
123
- - @websolutespa/bom-core@1.8.0
124
-
125
- ## 1.7.5
126
-
127
- ### Patch Changes
128
-
129
- - Added: getRemoteApiRequestOptions, getLocalApiRequestOptions
130
- - Updated dependencies
131
- - @websolutespa/bom-mixer-store@1.7.7
132
-
133
- ## 1.7.4
134
-
135
- ### Patch Changes
136
-
137
- - Fixing: downgrading eslint to v8.56.0
138
- - Updated dependencies
139
- - @websolutespa/bom-mixer-models@1.7.6
140
- - @websolutespa/bom-mixer-store@1.7.5
141
- - @websolutespa/bom-core@1.7.8
142
-
143
- ## 1.7.3
144
-
145
- ### Patch Changes
146
-
147
- - Modified: useIntersectionObserver
148
-
149
- ## 1.7.2
150
-
151
- ### Patch Changes
152
-
153
- - Updating: dependencies
154
- - Updated dependencies
155
- - @websolutespa/bom-mixer-models@1.7.2
156
- - @websolutespa/bom-mixer-store@1.7.3
157
- - @websolutespa/bom-core@1.7.3
158
-
159
- ## 1.7.1
160
-
161
- ### Patch Changes
162
-
163
- - aa41666: Added: useIntersectionObserver
164
-
165
- ## 1.7.0
166
-
167
- ### Minor Changes
168
-
169
- - 28e86bd: Modified: IPage, Store services & decorators
170
- - Updated dependencies [28e86bd]
171
- - @websolutespa/bom-mixer-models@1.7.0
172
- - @websolutespa/bom-mixer-store@1.7.0
173
- - @websolutespa/bom-core@1.7.0
174
-
175
- ## 1.4.2
176
-
177
- ### Patch Changes
178
-
179
- - Modified: IFeatureType
180
- - Updated dependencies
181
- - @websolutespa/bom-mixer-models@1.5.4
182
- - @websolutespa/bom-mixer-store@1.4.3
183
- - @websolutespa/bom-core@0.6.5
184
-
185
- ## 1.4.1
186
-
187
- ### Patch Changes
188
-
189
- - Added: useCollectionApi, useExtra
190
- - Modified: usePagination, useSearchParamsQs
191
- - Updated dependencies
192
- - @websolutespa/bom-mixer-models@1.5.2
193
- - @websolutespa/bom-core@0.6.2
194
-
195
- ## 1.4.0
196
-
197
- ### Minor Changes
198
-
199
- - Added useLazyModules
200
-
201
- ## 1.3.0
202
-
203
- ### Minor Changes
204
-
205
- - Added: useSearchParamsQs
206
- - Modified: useSearchParamsEncoded, useSearchParams, useScrollTo
207
-
208
- ## 1.2.1
209
-
210
- ### Patch Changes
211
-
212
- - Added: LabelService
213
- - Modified: useLabels, useScrollTo
214
-
215
- ## 1.2.0
216
-
217
- ### Minor Changes
218
-
219
- - Updating: next 13
220
-
221
- ## 1.1.0
222
-
223
- ### Minor Changes
224
-
225
- - Modified: useHttp, useApi
226
-
227
- ## 1.0.0
228
-
229
- ### Minor Changes
230
-
231
- - Added: useScrolled
232
-
233
- ## 0.2.2
234
-
235
- ### Patch Changes
236
-
237
- - Modified: useBreakpoint theme mediaQuery
238
-
239
- ## 0.2.1
240
-
241
- ### Patch Changes
242
-
243
- - Added: source files
244
-
245
- ## 0.2.0
246
-
247
- ### Minor Changes
248
-
249
- - Added: splat routes
250
-
251
- ## 0.1.0
252
-
253
- ### Minor Changes
254
-
255
- - Added: @websolutespa/bom-core
256
-
257
- ## 0.0.2
258
-
259
- ### Patch Changes
260
-
261
- - Added: first release
1
+ # @websolutespa/bom-mixer-hooks
2
+
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Release: Bom 3.0
8
+
9
+ ## 1.9.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Added: IApp global
14
+ - Updated dependencies
15
+ - @websolutespa/bom-mixer-models@1.10.3
16
+ - @websolutespa/bom-mixer-store@1.10.1
17
+ - @websolutespa/bom-core@1.8.24
18
+
19
+ ## 1.9.3
20
+
21
+ ### Patch Changes
22
+
23
+ - 0c7f05f: Modified: useMetaData canonical
24
+ - Updated dependencies [0c7f05f]
25
+ - Updated dependencies [0c7f05f]
26
+ - @websolutespa/bom-mixer-models@1.10.1
27
+ - @websolutespa/bom-core@1.8.23
28
+
29
+ ## 1.9.2
30
+
31
+ ### Patch Changes
32
+
33
+ - 4c2d7a6: Added: useScrollDirection
34
+
35
+ ## 1.9.1
36
+
37
+ ### Patch Changes
38
+
39
+ - Modified: MetaData Meta added xDefault
40
+ - Updated dependencies
41
+ - @websolutespa/bom-mixer-models@1.9.5
42
+
43
+ ## 1.9.0
44
+
45
+ ### Minor Changes
46
+
47
+ - Modified: usePagination
48
+ - Added: useMetaData
49
+
50
+ ## 1.8.11
51
+
52
+ ### Patch Changes
53
+
54
+ - Modified: usePage typings
55
+ - Updated dependencies
56
+ - Updated dependencies
57
+ - @websolutespa/bom-mixer-store@1.8.11
58
+ - @websolutespa/bom-mixer-models@1.8.18
59
+
60
+ ## 1.8.10
61
+
62
+ ### Patch Changes
63
+
64
+ - 88267c3: Modified: useAutosizeTextArea
65
+
66
+ ## 1.8.9
67
+
68
+ ### Patch Changes
69
+
70
+ - 3a7fc91: Added: useAutosizeTextArea, useColorScheme, useFocusTrap, useReducedMotion
71
+
72
+ ## 1.8.8
73
+
74
+ ### Patch Changes
75
+
76
+ - Modified: useGenericContext returning context
77
+
78
+ ## 1.8.7
79
+
80
+ ### Patch Changes
81
+
82
+ - b43eb2e: Modified: useSearchParams shallow routing
83
+
84
+ ## 1.8.6
85
+
86
+ ### Patch Changes
87
+
88
+ - Modified: SearchParamsEncoded
89
+
90
+ ## 1.8.5
91
+
92
+ ### Patch Changes
93
+
94
+ - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs scroll false
95
+
96
+ ## 1.8.4
97
+
98
+ ### Patch Changes
99
+
100
+ - Modified: usePageLoading, shallow routes do not fire loading state
101
+
102
+ ## 1.8.3
103
+
104
+ ### Patch Changes
105
+
106
+ - Added: usePageLoading
107
+ - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs
108
+
109
+ ## 1.8.2
110
+
111
+ ### Patch Changes
112
+
113
+ - Modified: useSearchParams, useSearchParamsEncoded, useSearchParamsQs added pushParams
114
+
115
+ ## 1.8.1
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies
120
+ - @websolutespa/bom-core@1.8.5
121
+
122
+ ## 1.8.0
123
+
124
+ ### Minor Changes
125
+
126
+ - f8a1d97: Modified: removed sample hooks
127
+ - Updated dependencies [f8a1d97]
128
+ - @websolutespa/bom-mixer-models@1.8.0
129
+ - @websolutespa/bom-mixer-store@1.8.0
130
+ - @websolutespa/bom-core@1.8.0
131
+
132
+ ## 1.7.5
133
+
134
+ ### Patch Changes
135
+
136
+ - Added: getRemoteApiRequestOptions, getLocalApiRequestOptions
137
+ - Updated dependencies
138
+ - @websolutespa/bom-mixer-store@1.7.7
139
+
140
+ ## 1.7.4
141
+
142
+ ### Patch Changes
143
+
144
+ - Fixing: downgrading eslint to v8.56.0
145
+ - Updated dependencies
146
+ - @websolutespa/bom-mixer-models@1.7.6
147
+ - @websolutespa/bom-mixer-store@1.7.5
148
+ - @websolutespa/bom-core@1.7.8
149
+
150
+ ## 1.7.3
151
+
152
+ ### Patch Changes
153
+
154
+ - Modified: useIntersectionObserver
155
+
156
+ ## 1.7.2
157
+
158
+ ### Patch Changes
159
+
160
+ - Updating: dependencies
161
+ - Updated dependencies
162
+ - @websolutespa/bom-mixer-models@1.7.2
163
+ - @websolutespa/bom-mixer-store@1.7.3
164
+ - @websolutespa/bom-core@1.7.3
165
+
166
+ ## 1.7.1
167
+
168
+ ### Patch Changes
169
+
170
+ - aa41666: Added: useIntersectionObserver
171
+
172
+ ## 1.7.0
173
+
174
+ ### Minor Changes
175
+
176
+ - 28e86bd: Modified: IPage, Store services & decorators
177
+ - Updated dependencies [28e86bd]
178
+ - @websolutespa/bom-mixer-models@1.7.0
179
+ - @websolutespa/bom-mixer-store@1.7.0
180
+ - @websolutespa/bom-core@1.7.0
181
+
182
+ ## 1.4.2
183
+
184
+ ### Patch Changes
185
+
186
+ - Modified: IFeatureType
187
+ - Updated dependencies
188
+ - @websolutespa/bom-mixer-models@1.5.4
189
+ - @websolutespa/bom-mixer-store@1.4.3
190
+ - @websolutespa/bom-core@0.6.5
191
+
192
+ ## 1.4.1
193
+
194
+ ### Patch Changes
195
+
196
+ - Added: useCollectionApi, useExtra
197
+ - Modified: usePagination, useSearchParamsQs
198
+ - Updated dependencies
199
+ - @websolutespa/bom-mixer-models@1.5.2
200
+ - @websolutespa/bom-core@0.6.2
201
+
202
+ ## 1.4.0
203
+
204
+ ### Minor Changes
205
+
206
+ - Added useLazyModules
207
+
208
+ ## 1.3.0
209
+
210
+ ### Minor Changes
211
+
212
+ - Added: useSearchParamsQs
213
+ - Modified: useSearchParamsEncoded, useSearchParams, useScrollTo
214
+
215
+ ## 1.2.1
216
+
217
+ ### Patch Changes
218
+
219
+ - Added: LabelService
220
+ - Modified: useLabels, useScrollTo
221
+
222
+ ## 1.2.0
223
+
224
+ ### Minor Changes
225
+
226
+ - Updating: next 13
227
+
228
+ ## 1.1.0
229
+
230
+ ### Minor Changes
231
+
232
+ - Modified: useHttp, useApi
233
+
234
+ ## 1.0.0
235
+
236
+ ### Minor Changes
237
+
238
+ - Added: useScrolled
239
+
240
+ ## 0.2.2
241
+
242
+ ### Patch Changes
243
+
244
+ - Modified: useBreakpoint theme mediaQuery
245
+
246
+ ## 0.2.1
247
+
248
+ ### Patch Changes
249
+
250
+ - Added: source files
251
+
252
+ ## 0.2.0
253
+
254
+ ### Minor Changes
255
+
256
+ - Added: splat routes
257
+
258
+ ## 0.1.0
259
+
260
+ ### Minor Changes
261
+
262
+ - Added: @websolutespa/bom-core
263
+
264
+ ## 0.0.2
265
+
266
+ ### Patch Changes
267
+
268
+ - Added: first release
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ApiRequestOptions } from "@websolutespa/bom-mixer-store";
2
2
  import * as _websolutespa_bom_core0 from "@websolutespa/bom-core";
3
- import { IEquatable, IFeatureType, ILabel, ILayout, ILocalizable, ILocalized, IPage, QueryParams } from "@websolutespa/bom-core";
3
+ import { IAppExtended, IEquatable, IFeatureType, ILabel, ILayout, ILocalizable, ILocalized, IPage, QueryParams } from "@websolutespa/bom-core";
4
4
  import * as react0 from "react";
5
5
  import React$1, { CSSProperties, ComponentProps, Dispatch, MutableRefObject, RefObject, SetStateAction, useEffect } from "react";
6
6
  import * as zustand0 from "zustand";
@@ -57,7 +57,7 @@ declare function useClickAnyWhere(handler: (event: MouseEvent) => void): void;
57
57
  //#endregion
58
58
  //#region src/useClickOut/useClickOut.d.ts
59
59
  type ClickOutGetContainer = () => HTMLElement | null;
60
- declare function useClickOut(ref: MutableRefObject<HTMLElement | null>, handler: (event: MouseEvent) => void): void;
60
+ declare function useClickOut(ref: RefObject<HTMLElement | null>, handler: (event: MouseEvent) => void): void;
61
61
  //# sourceMappingURL=useClickOut.d.ts.map
62
62
  //#endregion
63
63
  //#region src/useCollectionApi/local.collection.d.ts
@@ -202,7 +202,7 @@ declare function ExtraProvider({
202
202
  extra
203
203
  }: {
204
204
  children?: React$1.ReactNode;
205
- extra: IExtra;
205
+ extra?: IExtra;
206
206
  }): React$1.JSX.Element;
207
207
  //#endregion
208
208
  //#region src/useFilters/filter.d.ts
@@ -468,7 +468,6 @@ declare function parseParams(label: string, params: Record<string, any>): string
468
468
  //#endregion
469
469
  //#region src/useLayout/useLayout.d.ts
470
470
  type ILayoutContext = ILayout;
471
- declare const useLayout: () => ILayout;
472
471
  declare function LayoutProvider({
473
472
  children,
474
473
  layout
@@ -476,6 +475,8 @@ declare function LayoutProvider({
476
475
  children?: React$1.ReactNode;
477
476
  layout: ILayout;
478
477
  }): React$1.JSX.Element;
478
+ type UseLayout = <T extends IAppExtended = IAppExtended>() => ILayout<T>;
479
+ declare const useLayout: UseLayout;
479
480
  //#endregion
480
481
  //#region src/useLazyModules/useLazyModules.d.ts
481
482
  type ILazyModulesContext = ILazyModules;
@@ -485,7 +486,7 @@ declare function LazyModulesProvider({
485
486
  modules
486
487
  }: {
487
488
  children?: React$1.ReactNode;
488
- modules: ILazyModules;
489
+ modules?: ILazyModules;
489
490
  }): React$1.JSX.Element;
490
491
  //#endregion
491
492
  //#region src/useMetaData/useMetaData.d.ts