@contember/react-utils 2.1.0-alpha.36 → 2.1.0-alpha.39

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 (378) hide show
  1. package/dist/development/index.cjs +86 -0
  2. package/dist/development/index.cjs.map +1 -0
  3. package/dist/development/index.js +86 -0
  4. package/dist/development/index.js.map +1 -0
  5. package/dist/development/src/context/createContext.cjs +10 -0
  6. package/dist/development/src/context/createContext.cjs.map +1 -0
  7. package/dist/development/src/context/createContext.js +10 -0
  8. package/dist/development/src/context/createContext.js.map +1 -0
  9. package/dist/development/src/context/createRequiredContext.cjs +18 -0
  10. package/dist/development/src/context/createRequiredContext.cjs.map +1 -0
  11. package/dist/development/src/context/createRequiredContext.js +18 -0
  12. package/dist/development/src/context/createRequiredContext.js.map +1 -0
  13. package/dist/development/src/debug-context/Constants.cjs +25 -0
  14. package/dist/development/src/debug-context/Constants.cjs.map +1 -0
  15. package/dist/development/src/debug-context/Constants.js +25 -0
  16. package/dist/development/src/debug-context/Constants.js.map +1 -0
  17. package/dist/development/src/debug-context/Context.cjs +72 -0
  18. package/dist/development/src/debug-context/Context.cjs.map +1 -0
  19. package/dist/development/src/debug-context/Context.js +72 -0
  20. package/dist/development/src/debug-context/Context.js.map +1 -0
  21. package/dist/development/src/hooks/unwrapRefValue.cjs +11 -0
  22. package/dist/development/src/hooks/unwrapRefValue.cjs.map +1 -0
  23. package/dist/development/src/hooks/unwrapRefValue.js +11 -0
  24. package/dist/development/src/hooks/unwrapRefValue.js.map +1 -0
  25. package/dist/development/src/hooks/useAbortController.cjs +17 -0
  26. package/dist/development/src/hooks/useAbortController.cjs.map +1 -0
  27. package/dist/development/src/hooks/useAbortController.js +17 -0
  28. package/dist/development/src/hooks/useAbortController.js.map +1 -0
  29. package/dist/development/src/hooks/useArrayMapMemo.cjs +11 -0
  30. package/dist/development/src/hooks/useArrayMapMemo.cjs.map +1 -0
  31. package/dist/development/src/hooks/useArrayMapMemo.js +11 -0
  32. package/dist/development/src/hooks/useArrayMapMemo.js.map +1 -0
  33. package/dist/development/src/hooks/useAutoHeightTextArea.cjs +43 -0
  34. package/dist/development/src/hooks/useAutoHeightTextArea.cjs.map +1 -0
  35. package/dist/development/src/hooks/useAutoHeightTextArea.js +43 -0
  36. package/dist/development/src/hooks/useAutoHeightTextArea.js.map +1 -0
  37. package/dist/development/src/hooks/useChildrenAsLabel.cjs +53 -0
  38. package/dist/development/src/hooks/useChildrenAsLabel.cjs.map +1 -0
  39. package/dist/development/src/hooks/useChildrenAsLabel.js +53 -0
  40. package/dist/development/src/hooks/useChildrenAsLabel.js.map +1 -0
  41. package/dist/development/src/hooks/useComposeRef.cjs +31 -0
  42. package/dist/development/src/hooks/useComposeRef.cjs.map +1 -0
  43. package/dist/development/src/hooks/useComposeRef.js +31 -0
  44. package/dist/development/src/hooks/useComposeRef.js.map +1 -0
  45. package/dist/development/src/hooks/useConstantLengthInvariant.cjs +15 -0
  46. package/dist/development/src/hooks/useConstantLengthInvariant.cjs.map +1 -0
  47. package/dist/development/src/hooks/useConstantLengthInvariant.js +15 -0
  48. package/dist/development/src/hooks/useConstantLengthInvariant.js.map +1 -0
  49. package/dist/development/src/hooks/useConstantValueInvariant.cjs +15 -0
  50. package/dist/development/src/hooks/useConstantValueInvariant.cjs.map +1 -0
  51. package/dist/development/src/hooks/useConstantValueInvariant.js +15 -0
  52. package/dist/development/src/hooks/useConstantValueInvariant.js.map +1 -0
  53. package/dist/development/src/hooks/useDebounce.cjs +15 -0
  54. package/dist/development/src/hooks/useDebounce.cjs.map +1 -0
  55. package/dist/development/src/hooks/useDebounce.js +15 -0
  56. package/dist/development/src/hooks/useDebounce.js.map +1 -0
  57. package/dist/development/src/hooks/useDebounceCallback.cjs +19 -0
  58. package/dist/development/src/hooks/useDebounceCallback.cjs.map +1 -0
  59. package/dist/development/src/hooks/useDebounceCallback.js +19 -0
  60. package/dist/development/src/hooks/useDebounceCallback.js.map +1 -0
  61. package/dist/development/src/hooks/useDocumentTitle.cjs +22 -0
  62. package/dist/development/src/hooks/useDocumentTitle.cjs.map +1 -0
  63. package/dist/development/src/hooks/useDocumentTitle.js +22 -0
  64. package/dist/development/src/hooks/useDocumentTitle.js.map +1 -0
  65. package/dist/development/src/hooks/useExpectSameValueReference.cjs +24 -0
  66. package/dist/development/src/hooks/useExpectSameValueReference.cjs.map +1 -0
  67. package/dist/development/src/hooks/useExpectSameValueReference.js +24 -0
  68. package/dist/development/src/hooks/useExpectSameValueReference.js.map +1 -0
  69. package/dist/development/src/hooks/useForceRender.cjs +9 -0
  70. package/dist/development/src/hooks/useForceRender.cjs.map +1 -0
  71. package/dist/development/src/hooks/useForceRender.js +9 -0
  72. package/dist/development/src/hooks/useForceRender.js.map +1 -0
  73. package/dist/development/src/hooks/useId.cjs +13 -0
  74. package/dist/development/src/hooks/useId.cjs.map +1 -0
  75. package/dist/development/src/hooks/useId.js +13 -0
  76. package/dist/development/src/hooks/useId.js.map +1 -0
  77. package/dist/development/src/hooks/useIsMounted.cjs +18 -0
  78. package/dist/development/src/hooks/useIsMounted.cjs.map +1 -0
  79. package/dist/development/src/hooks/useIsMounted.js +18 -0
  80. package/dist/development/src/hooks/useIsMounted.js.map +1 -0
  81. package/dist/development/src/hooks/useObjectMemo.cjs +27 -0
  82. package/dist/development/src/hooks/useObjectMemo.cjs.map +1 -0
  83. package/dist/development/src/hooks/useObjectMemo.js +27 -0
  84. package/dist/development/src/hooks/useObjectMemo.js.map +1 -0
  85. package/dist/development/src/hooks/useOnElementClickOutsideCallback.cjs +20 -0
  86. package/dist/development/src/hooks/useOnElementClickOutsideCallback.cjs.map +1 -0
  87. package/dist/development/src/hooks/useOnElementClickOutsideCallback.js +20 -0
  88. package/dist/development/src/hooks/useOnElementClickOutsideCallback.js.map +1 -0
  89. package/dist/development/src/hooks/useOnElementMouseEnterDelayedCallback.cjs +33 -0
  90. package/dist/development/src/hooks/useOnElementMouseEnterDelayedCallback.cjs.map +1 -0
  91. package/dist/development/src/hooks/useOnElementMouseEnterDelayedCallback.js +33 -0
  92. package/dist/development/src/hooks/useOnElementMouseEnterDelayedCallback.js.map +1 -0
  93. package/dist/development/src/hooks/useOnElementResize.cjs +42 -0
  94. package/dist/development/src/hooks/useOnElementResize.cjs.map +1 -0
  95. package/dist/development/src/hooks/useOnElementResize.js +42 -0
  96. package/dist/development/src/hooks/useOnElementResize.js.map +1 -0
  97. package/dist/development/src/hooks/useOnWindowResize.cjs +36 -0
  98. package/dist/development/src/hooks/useOnWindowResize.cjs.map +1 -0
  99. package/dist/development/src/hooks/useOnWindowResize.js +36 -0
  100. package/dist/development/src/hooks/useOnWindowResize.js.map +1 -0
  101. package/dist/development/src/hooks/usePreviousValue.cjs +12 -0
  102. package/dist/development/src/hooks/usePreviousValue.cjs.map +1 -0
  103. package/dist/development/src/hooks/usePreviousValue.js +12 -0
  104. package/dist/development/src/hooks/usePreviousValue.js.map +1 -0
  105. package/dist/development/src/hooks/useStoredState.cjs +100 -0
  106. package/dist/development/src/hooks/useStoredState.cjs.map +1 -0
  107. package/dist/development/src/hooks/useStoredState.js +100 -0
  108. package/dist/development/src/hooks/useStoredState.js.map +1 -0
  109. package/dist/development/src/hooks/useUpdatedRef.cjs +10 -0
  110. package/dist/development/src/hooks/useUpdatedRef.cjs.map +1 -0
  111. package/dist/development/src/hooks/useUpdatedRef.js +10 -0
  112. package/dist/development/src/hooks/useUpdatedRef.js.map +1 -0
  113. package/dist/development/src/hooks/useWindowSize.cjs +20 -0
  114. package/dist/development/src/hooks/useWindowSize.cjs.map +1 -0
  115. package/dist/development/src/hooks/useWindowSize.js +20 -0
  116. package/dist/development/src/hooks/useWindowSize.js.map +1 -0
  117. package/dist/development/src/referentiallyStable/emptyArray.cjs +5 -0
  118. package/dist/development/src/referentiallyStable/emptyArray.cjs.map +1 -0
  119. package/dist/development/src/referentiallyStable/emptyArray.js +5 -0
  120. package/dist/development/src/referentiallyStable/emptyArray.js.map +1 -0
  121. package/dist/development/src/referentiallyStable/emptyObject.cjs +5 -0
  122. package/dist/development/src/referentiallyStable/emptyObject.cjs.map +1 -0
  123. package/dist/development/src/referentiallyStable/emptyObject.js +5 -0
  124. package/dist/development/src/referentiallyStable/emptyObject.js.map +1 -0
  125. package/dist/development/src/referentiallyStable/identityFunction.cjs +5 -0
  126. package/dist/development/src/referentiallyStable/identityFunction.cjs.map +1 -0
  127. package/dist/development/src/referentiallyStable/identityFunction.js +5 -0
  128. package/dist/development/src/referentiallyStable/identityFunction.js.map +1 -0
  129. package/dist/development/src/referentiallyStable/noop.cjs +5 -0
  130. package/dist/development/src/referentiallyStable/noop.cjs.map +1 -0
  131. package/dist/development/src/referentiallyStable/noop.js +5 -0
  132. package/dist/development/src/referentiallyStable/noop.js.map +1 -0
  133. package/dist/development/src/referentiallyStable/returnFalse.cjs +5 -0
  134. package/dist/development/src/referentiallyStable/returnFalse.cjs.map +1 -0
  135. package/dist/development/src/referentiallyStable/returnFalse.js +5 -0
  136. package/dist/development/src/referentiallyStable/returnFalse.js.map +1 -0
  137. package/dist/development/src/referentiallyStable/returnTrue.cjs +5 -0
  138. package/dist/development/src/referentiallyStable/returnTrue.cjs.map +1 -0
  139. package/dist/development/src/referentiallyStable/returnTrue.js +5 -0
  140. package/dist/development/src/referentiallyStable/returnTrue.js.map +1 -0
  141. package/dist/development/src/referentiallyStable/useReferentiallyStableCallback.cjs +15 -0
  142. package/dist/development/src/referentiallyStable/useReferentiallyStableCallback.cjs.map +1 -0
  143. package/dist/development/src/referentiallyStable/useReferentiallyStableCallback.js +15 -0
  144. package/dist/development/src/referentiallyStable/useReferentiallyStableCallback.js.map +1 -0
  145. package/dist/production/index.cjs +86 -0
  146. package/dist/production/index.cjs.map +1 -0
  147. package/dist/production/index.js +86 -0
  148. package/dist/production/index.js.map +1 -0
  149. package/dist/production/src/context/createContext.cjs +10 -0
  150. package/dist/production/src/context/createContext.cjs.map +1 -0
  151. package/dist/production/src/context/createContext.js +10 -0
  152. package/dist/production/src/context/createContext.js.map +1 -0
  153. package/dist/production/src/context/createRequiredContext.cjs +18 -0
  154. package/dist/production/src/context/createRequiredContext.cjs.map +1 -0
  155. package/dist/production/src/context/createRequiredContext.js +18 -0
  156. package/dist/production/src/context/createRequiredContext.js.map +1 -0
  157. package/dist/production/src/debug-context/Constants.cjs +25 -0
  158. package/dist/production/src/debug-context/Constants.cjs.map +1 -0
  159. package/dist/production/src/debug-context/Constants.js +25 -0
  160. package/dist/production/src/debug-context/Constants.js.map +1 -0
  161. package/dist/production/src/debug-context/Context.cjs +68 -0
  162. package/dist/production/src/debug-context/Context.cjs.map +1 -0
  163. package/dist/production/src/debug-context/Context.js +68 -0
  164. package/dist/production/src/debug-context/Context.js.map +1 -0
  165. package/dist/production/src/hooks/unwrapRefValue.cjs +11 -0
  166. package/dist/production/src/hooks/unwrapRefValue.cjs.map +1 -0
  167. package/dist/production/src/hooks/unwrapRefValue.js +11 -0
  168. package/dist/production/src/hooks/unwrapRefValue.js.map +1 -0
  169. package/dist/production/src/hooks/useAbortController.cjs +17 -0
  170. package/dist/production/src/hooks/useAbortController.cjs.map +1 -0
  171. package/dist/production/src/hooks/useAbortController.js +17 -0
  172. package/dist/production/src/hooks/useAbortController.js.map +1 -0
  173. package/dist/production/src/hooks/useArrayMapMemo.cjs +9 -0
  174. package/dist/production/src/hooks/useArrayMapMemo.cjs.map +1 -0
  175. package/dist/production/src/hooks/useArrayMapMemo.js +9 -0
  176. package/dist/production/src/hooks/useArrayMapMemo.js.map +1 -0
  177. package/dist/production/src/hooks/useAutoHeightTextArea.cjs +43 -0
  178. package/dist/production/src/hooks/useAutoHeightTextArea.cjs.map +1 -0
  179. package/dist/production/src/hooks/useAutoHeightTextArea.js +43 -0
  180. package/dist/production/src/hooks/useAutoHeightTextArea.js.map +1 -0
  181. package/dist/production/src/hooks/useChildrenAsLabel.cjs +51 -0
  182. package/dist/production/src/hooks/useChildrenAsLabel.cjs.map +1 -0
  183. package/dist/production/src/hooks/useChildrenAsLabel.js +51 -0
  184. package/dist/production/src/hooks/useChildrenAsLabel.js.map +1 -0
  185. package/dist/production/src/hooks/useComposeRef.cjs +31 -0
  186. package/dist/production/src/hooks/useComposeRef.cjs.map +1 -0
  187. package/dist/production/src/hooks/useComposeRef.js +31 -0
  188. package/dist/production/src/hooks/useComposeRef.js.map +1 -0
  189. package/dist/production/src/hooks/useConstantLengthInvariant.cjs +6 -0
  190. package/dist/production/src/hooks/useConstantLengthInvariant.cjs.map +1 -0
  191. package/dist/production/src/hooks/useConstantLengthInvariant.js +6 -0
  192. package/dist/production/src/hooks/useConstantLengthInvariant.js.map +1 -0
  193. package/dist/production/src/hooks/useConstantValueInvariant.cjs +6 -0
  194. package/dist/production/src/hooks/useConstantValueInvariant.cjs.map +1 -0
  195. package/dist/production/src/hooks/useConstantValueInvariant.js +6 -0
  196. package/dist/production/src/hooks/useConstantValueInvariant.js.map +1 -0
  197. package/dist/production/src/hooks/useDebounce.cjs +15 -0
  198. package/dist/production/src/hooks/useDebounce.cjs.map +1 -0
  199. package/dist/production/src/hooks/useDebounce.js +15 -0
  200. package/dist/production/src/hooks/useDebounce.js.map +1 -0
  201. package/dist/production/src/hooks/useDebounceCallback.cjs +19 -0
  202. package/dist/production/src/hooks/useDebounceCallback.cjs.map +1 -0
  203. package/dist/production/src/hooks/useDebounceCallback.js +19 -0
  204. package/dist/production/src/hooks/useDebounceCallback.js.map +1 -0
  205. package/dist/production/src/hooks/useDocumentTitle.cjs +22 -0
  206. package/dist/production/src/hooks/useDocumentTitle.cjs.map +1 -0
  207. package/dist/production/src/hooks/useDocumentTitle.js +22 -0
  208. package/dist/production/src/hooks/useDocumentTitle.js.map +1 -0
  209. package/dist/production/src/hooks/useExpectSameValueReference.cjs +15 -0
  210. package/dist/production/src/hooks/useExpectSameValueReference.cjs.map +1 -0
  211. package/dist/production/src/hooks/useExpectSameValueReference.js +15 -0
  212. package/dist/production/src/hooks/useExpectSameValueReference.js.map +1 -0
  213. package/dist/production/src/hooks/useForceRender.cjs +9 -0
  214. package/dist/production/src/hooks/useForceRender.cjs.map +1 -0
  215. package/dist/production/src/hooks/useForceRender.js +9 -0
  216. package/dist/production/src/hooks/useForceRender.js.map +1 -0
  217. package/dist/production/src/hooks/useId.cjs +13 -0
  218. package/dist/production/src/hooks/useId.cjs.map +1 -0
  219. package/dist/production/src/hooks/useId.js +13 -0
  220. package/dist/production/src/hooks/useId.js.map +1 -0
  221. package/dist/production/src/hooks/useIsMounted.cjs +18 -0
  222. package/dist/production/src/hooks/useIsMounted.cjs.map +1 -0
  223. package/dist/production/src/hooks/useIsMounted.js +18 -0
  224. package/dist/production/src/hooks/useIsMounted.js.map +1 -0
  225. package/dist/production/src/hooks/useObjectMemo.cjs +27 -0
  226. package/dist/production/src/hooks/useObjectMemo.cjs.map +1 -0
  227. package/dist/production/src/hooks/useObjectMemo.js +27 -0
  228. package/dist/production/src/hooks/useObjectMemo.js.map +1 -0
  229. package/dist/production/src/hooks/useOnElementClickOutsideCallback.cjs +20 -0
  230. package/dist/production/src/hooks/useOnElementClickOutsideCallback.cjs.map +1 -0
  231. package/dist/production/src/hooks/useOnElementClickOutsideCallback.js +20 -0
  232. package/dist/production/src/hooks/useOnElementClickOutsideCallback.js.map +1 -0
  233. package/dist/production/src/hooks/useOnElementMouseEnterDelayedCallback.cjs +33 -0
  234. package/dist/production/src/hooks/useOnElementMouseEnterDelayedCallback.cjs.map +1 -0
  235. package/dist/production/src/hooks/useOnElementMouseEnterDelayedCallback.js +33 -0
  236. package/dist/production/src/hooks/useOnElementMouseEnterDelayedCallback.js.map +1 -0
  237. package/dist/production/src/hooks/useOnElementResize.cjs +42 -0
  238. package/dist/production/src/hooks/useOnElementResize.cjs.map +1 -0
  239. package/dist/production/src/hooks/useOnElementResize.js +42 -0
  240. package/dist/production/src/hooks/useOnElementResize.js.map +1 -0
  241. package/dist/production/src/hooks/useOnWindowResize.cjs +36 -0
  242. package/dist/production/src/hooks/useOnWindowResize.cjs.map +1 -0
  243. package/dist/production/src/hooks/useOnWindowResize.js +36 -0
  244. package/dist/production/src/hooks/useOnWindowResize.js.map +1 -0
  245. package/dist/production/src/hooks/usePreviousValue.cjs +12 -0
  246. package/dist/production/src/hooks/usePreviousValue.cjs.map +1 -0
  247. package/dist/production/src/hooks/usePreviousValue.js +12 -0
  248. package/dist/production/src/hooks/usePreviousValue.js.map +1 -0
  249. package/dist/production/src/hooks/useStoredState.cjs +100 -0
  250. package/dist/production/src/hooks/useStoredState.cjs.map +1 -0
  251. package/dist/production/src/hooks/useStoredState.js +100 -0
  252. package/dist/production/src/hooks/useStoredState.js.map +1 -0
  253. package/dist/production/src/hooks/useUpdatedRef.cjs +10 -0
  254. package/dist/production/src/hooks/useUpdatedRef.cjs.map +1 -0
  255. package/dist/production/src/hooks/useUpdatedRef.js +10 -0
  256. package/dist/production/src/hooks/useUpdatedRef.js.map +1 -0
  257. package/dist/production/src/hooks/useWindowSize.cjs +20 -0
  258. package/dist/production/src/hooks/useWindowSize.cjs.map +1 -0
  259. package/dist/production/src/hooks/useWindowSize.js +20 -0
  260. package/dist/production/src/hooks/useWindowSize.js.map +1 -0
  261. package/dist/production/src/referentiallyStable/emptyArray.cjs +5 -0
  262. package/dist/production/src/referentiallyStable/emptyArray.cjs.map +1 -0
  263. package/dist/production/src/referentiallyStable/emptyArray.js +5 -0
  264. package/dist/production/src/referentiallyStable/emptyArray.js.map +1 -0
  265. package/dist/production/src/referentiallyStable/emptyObject.cjs +5 -0
  266. package/dist/production/src/referentiallyStable/emptyObject.cjs.map +1 -0
  267. package/dist/production/src/referentiallyStable/emptyObject.js +5 -0
  268. package/dist/production/src/referentiallyStable/emptyObject.js.map +1 -0
  269. package/dist/production/src/referentiallyStable/identityFunction.cjs +5 -0
  270. package/dist/production/src/referentiallyStable/identityFunction.cjs.map +1 -0
  271. package/dist/production/src/referentiallyStable/identityFunction.js +5 -0
  272. package/dist/production/src/referentiallyStable/identityFunction.js.map +1 -0
  273. package/dist/production/src/referentiallyStable/noop.cjs +5 -0
  274. package/dist/production/src/referentiallyStable/noop.cjs.map +1 -0
  275. package/dist/production/src/referentiallyStable/noop.js +5 -0
  276. package/dist/production/src/referentiallyStable/noop.js.map +1 -0
  277. package/dist/production/src/referentiallyStable/returnFalse.cjs +5 -0
  278. package/dist/production/src/referentiallyStable/returnFalse.cjs.map +1 -0
  279. package/dist/production/src/referentiallyStable/returnFalse.js +5 -0
  280. package/dist/production/src/referentiallyStable/returnFalse.js.map +1 -0
  281. package/dist/production/src/referentiallyStable/returnTrue.cjs +5 -0
  282. package/dist/production/src/referentiallyStable/returnTrue.cjs.map +1 -0
  283. package/dist/production/src/referentiallyStable/returnTrue.js +5 -0
  284. package/dist/production/src/referentiallyStable/returnTrue.js.map +1 -0
  285. package/dist/production/src/referentiallyStable/useReferentiallyStableCallback.cjs +15 -0
  286. package/dist/production/src/referentiallyStable/useReferentiallyStableCallback.cjs.map +1 -0
  287. package/dist/production/src/referentiallyStable/useReferentiallyStableCallback.js +15 -0
  288. package/dist/production/src/referentiallyStable/useReferentiallyStableCallback.js.map +1 -0
  289. package/dist/types/context/createContext.d.ts +3 -0
  290. package/dist/types/context/createContext.d.ts.map +1 -0
  291. package/dist/types/context/createRequiredContext.d.ts +3 -0
  292. package/dist/types/context/createRequiredContext.d.ts.map +1 -0
  293. package/dist/types/context/index.d.ts +3 -0
  294. package/dist/types/context/index.d.ts.map +1 -0
  295. package/dist/types/debug-context/Constants.d.ts +6 -0
  296. package/dist/types/debug-context/Constants.d.ts.map +1 -0
  297. package/dist/types/debug-context/Context.d.ts +15 -0
  298. package/dist/types/debug-context/Context.d.ts.map +1 -0
  299. package/dist/types/debug-context/Types.d.ts +13 -0
  300. package/dist/types/debug-context/Types.d.ts.map +1 -0
  301. package/dist/types/debug-context/index.d.ts +4 -0
  302. package/dist/types/debug-context/index.d.ts.map +1 -0
  303. package/dist/types/hooks/index.d.ts +25 -0
  304. package/dist/types/hooks/index.d.ts.map +1 -0
  305. package/dist/types/hooks/unwrapRefValue.d.ts +9 -0
  306. package/dist/types/hooks/unwrapRefValue.d.ts.map +1 -0
  307. package/dist/types/hooks/useAbortController.d.ts +2 -0
  308. package/dist/types/hooks/useAbortController.d.ts.map +1 -0
  309. package/dist/types/hooks/useArrayMapMemo.d.ts +10 -0
  310. package/dist/types/hooks/useArrayMapMemo.d.ts.map +1 -0
  311. package/dist/types/hooks/useAutoHeightTextArea.d.ts +3 -0
  312. package/dist/types/hooks/useAutoHeightTextArea.d.ts.map +1 -0
  313. package/dist/types/hooks/useChildrenAsLabel.d.ts +16 -0
  314. package/dist/types/hooks/useChildrenAsLabel.d.ts.map +1 -0
  315. package/dist/types/hooks/useComposeRef.d.ts +16 -0
  316. package/dist/types/hooks/useComposeRef.d.ts.map +1 -0
  317. package/dist/types/hooks/useConstantLengthInvariant.d.ts +2 -0
  318. package/dist/types/hooks/useConstantLengthInvariant.d.ts.map +1 -0
  319. package/dist/types/hooks/useConstantValueInvariant.d.ts +2 -0
  320. package/dist/types/hooks/useConstantValueInvariant.d.ts.map +1 -0
  321. package/dist/types/hooks/useDebounce.d.ts +2 -0
  322. package/dist/types/hooks/useDebounce.d.ts.map +1 -0
  323. package/dist/types/hooks/useDebounceCallback.d.ts +2 -0
  324. package/dist/types/hooks/useDebounceCallback.d.ts.map +1 -0
  325. package/dist/types/hooks/useDocumentTitle.d.ts +2 -0
  326. package/dist/types/hooks/useDocumentTitle.d.ts.map +1 -0
  327. package/dist/types/hooks/useExpectSameValueReference.d.ts +24 -0
  328. package/dist/types/hooks/useExpectSameValueReference.d.ts.map +1 -0
  329. package/dist/types/hooks/useForceRender.d.ts +2 -0
  330. package/dist/types/hooks/useForceRender.d.ts.map +1 -0
  331. package/dist/types/hooks/useId.d.ts +10 -0
  332. package/dist/types/hooks/useId.d.ts.map +1 -0
  333. package/dist/types/hooks/useIsMounted.d.ts +2 -0
  334. package/dist/types/hooks/useIsMounted.d.ts.map +1 -0
  335. package/dist/types/hooks/useObjectMemo.d.ts +2 -0
  336. package/dist/types/hooks/useObjectMemo.d.ts.map +1 -0
  337. package/dist/types/hooks/useOnElementClickOutsideCallback.d.ts +3 -0
  338. package/dist/types/hooks/useOnElementClickOutsideCallback.d.ts.map +1 -0
  339. package/dist/types/hooks/useOnElementMouseEnterDelayedCallback.d.ts +14 -0
  340. package/dist/types/hooks/useOnElementMouseEnterDelayedCallback.d.ts.map +1 -0
  341. package/dist/types/hooks/useOnElementResize.d.ts +3 -0
  342. package/dist/types/hooks/useOnElementResize.d.ts.map +1 -0
  343. package/dist/types/hooks/useOnWindowResize.d.ts +2 -0
  344. package/dist/types/hooks/useOnWindowResize.d.ts.map +1 -0
  345. package/dist/types/hooks/usePreviousValue.d.ts +2 -0
  346. package/dist/types/hooks/usePreviousValue.d.ts.map +1 -0
  347. package/dist/types/hooks/useStoredState.d.ts +18 -0
  348. package/dist/types/hooks/useStoredState.d.ts.map +1 -0
  349. package/dist/types/hooks/useUpdatedRef.d.ts +8 -0
  350. package/dist/types/hooks/useUpdatedRef.d.ts.map +1 -0
  351. package/dist/types/hooks/useWindowSize.d.ts +5 -0
  352. package/dist/types/hooks/useWindowSize.d.ts.map +1 -0
  353. package/dist/types/index.d.ts +6 -0
  354. package/dist/types/index.d.ts.map +1 -0
  355. package/dist/types/referentiallyStable/emptyArray.d.ts +2 -0
  356. package/dist/types/referentiallyStable/emptyArray.d.ts.map +1 -0
  357. package/dist/types/referentiallyStable/emptyObject.d.ts +2 -0
  358. package/dist/types/referentiallyStable/emptyObject.d.ts.map +1 -0
  359. package/dist/types/referentiallyStable/identityFunction.d.ts +2 -0
  360. package/dist/types/referentiallyStable/identityFunction.d.ts.map +1 -0
  361. package/dist/types/referentiallyStable/index.d.ts +8 -0
  362. package/dist/types/referentiallyStable/index.d.ts.map +1 -0
  363. package/dist/types/referentiallyStable/noop.d.ts +2 -0
  364. package/dist/types/referentiallyStable/noop.d.ts.map +1 -0
  365. package/dist/types/referentiallyStable/returnFalse.d.ts +2 -0
  366. package/dist/types/referentiallyStable/returnFalse.d.ts.map +1 -0
  367. package/dist/types/referentiallyStable/returnTrue.d.ts +2 -0
  368. package/dist/types/referentiallyStable/returnTrue.d.ts.map +1 -0
  369. package/dist/types/referentiallyStable/useReferentiallyStableCallback.d.ts +3 -0
  370. package/dist/types/referentiallyStable/useReferentiallyStableCallback.d.ts.map +1 -0
  371. package/dist/types/tsconfig.tsbuildinfo +1 -0
  372. package/dist/types/types/PropsWithRequiredChildren.d.ts +5 -0
  373. package/dist/types/types/PropsWithRequiredChildren.d.ts.map +1 -0
  374. package/dist/types/types/Serializable.d.ts +4 -0
  375. package/dist/types/types/Serializable.d.ts.map +1 -0
  376. package/dist/types/types/index.d.ts +3 -0
  377. package/dist/types/types/index.d.ts.map +1 -0
  378. package/package.json +4 -4
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ function useUpdatedRef(value) {
5
+ const ref = React.useRef(value);
6
+ ref.current = value;
7
+ return ref;
8
+ }
9
+ exports.useUpdatedRef = useUpdatedRef;
10
+ //# sourceMappingURL=useUpdatedRef.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdatedRef.cjs","sources":["../../../../../packages/react-utils/src/hooks/useUpdatedRef.ts"],"sourcesContent":["import { useRef } from 'react'\n\n/**\n * Returns a stable mutable object with value that is updated upon each call\n *\n * @param value - Value that could update after initial call\n * @returns Mutable ref object with updated value\n */\nexport function useUpdatedRef<T>(value: T) {\n\tconst ref = useRef(value)\n\tref.current = value\n\n\treturn ref\n}\n"],"names":["useRef"],"mappings":";;;AAQO,SAAS,cAAiB,OAAU;AAC1C,QAAM,MAAMA,MAAAA,OAAO,KAAK;AACxB,MAAI,UAAU;AAEd,SAAO;AACR;;"}
@@ -0,0 +1,10 @@
1
+ import { useRef } from "react";
2
+ function useUpdatedRef(value) {
3
+ const ref = useRef(value);
4
+ ref.current = value;
5
+ return ref;
6
+ }
7
+ export {
8
+ useUpdatedRef
9
+ };
10
+ //# sourceMappingURL=useUpdatedRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdatedRef.js","sources":["../../../../../packages/react-utils/src/hooks/useUpdatedRef.ts"],"sourcesContent":["import { useRef } from 'react'\n\n/**\n * Returns a stable mutable object with value that is updated upon each call\n *\n * @param value - Value that could update after initial call\n * @returns Mutable ref object with updated value\n */\nexport function useUpdatedRef<T>(value: T) {\n\tconst ref = useRef(value)\n\tref.current = value\n\n\treturn ref\n}\n"],"names":[],"mappings":";AAQO,SAAS,cAAiB,OAAU;AAC1C,QAAM,MAAM,OAAO,KAAK;AACxB,MAAI,UAAU;AAEd,SAAO;AACR;"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const useOnWindowResize = require("./useOnWindowResize.cjs");
5
+ function useWindowSize() {
6
+ const [width, setWidth] = React.useState(window.innerWidth);
7
+ const [height, setHeight] = React.useState(window.innerHeight);
8
+ useOnWindowResize.useOnWindowResize(() => {
9
+ const { innerHeight, innerWidth } = window;
10
+ if (innerHeight !== height) {
11
+ setHeight(innerHeight);
12
+ }
13
+ if (innerWidth !== width) {
14
+ setWidth(innerWidth);
15
+ }
16
+ });
17
+ return React.useMemo(() => ({ height, width }), [height, width]);
18
+ }
19
+ exports.useWindowSize = useWindowSize;
20
+ //# sourceMappingURL=useWindowSize.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize.cjs","sources":["../../../../../packages/react-utils/src/hooks/useWindowSize.ts"],"sourcesContent":["import { useMemo, useState } from 'react'\nimport { useOnWindowResize } from './useOnWindowResize'\n\nexport function useWindowSize() {\n\tconst [width, setWidth] = useState(window.innerWidth)\n\tconst [height, setHeight] = useState(window.innerHeight)\n\n\tuseOnWindowResize(() => {\n\t\tconst { innerHeight, innerWidth } = window\n\t\tif (innerHeight !== height) {\n\t\t\tsetHeight(innerHeight)\n\t\t}\n\n\t\tif (innerWidth !== width) {\n\t\t\tsetWidth(innerWidth)\n\t\t}\n\t})\n\n\treturn useMemo(() => ({ height, width }), [height, width])\n}\n"],"names":["useState","useOnWindowResize","useMemo"],"mappings":";;;;AAGO,SAAS,gBAAgB;AAC/B,QAAM,CAAC,OAAO,QAAQ,IAAIA,MAAAA,SAAS,OAAO,UAAU;AACpD,QAAM,CAAC,QAAQ,SAAS,IAAIA,MAAAA,SAAS,OAAO,WAAW;AAEvDC,oBAAAA,kBAAkB,MAAM;AACvB,UAAM,EAAE,aAAa,WAAA,IAAe;AACpC,QAAI,gBAAgB,QAAQ;AAC3B,gBAAU,WAAW;AAAA,IACtB;AAEA,QAAI,eAAe,OAAO;AACzB,eAAS,UAAU;AAAA,IACpB;AAAA,EACD,CAAC;AAED,SAAOC,MAAAA,QAAQ,OAAO,EAAE,QAAQ,UAAU,CAAC,QAAQ,KAAK,CAAC;AAC1D;;"}
@@ -0,0 +1,20 @@
1
+ import { useState, useMemo } from "react";
2
+ import { useOnWindowResize } from "./useOnWindowResize.js";
3
+ function useWindowSize() {
4
+ const [width, setWidth] = useState(window.innerWidth);
5
+ const [height, setHeight] = useState(window.innerHeight);
6
+ useOnWindowResize(() => {
7
+ const { innerHeight, innerWidth } = window;
8
+ if (innerHeight !== height) {
9
+ setHeight(innerHeight);
10
+ }
11
+ if (innerWidth !== width) {
12
+ setWidth(innerWidth);
13
+ }
14
+ });
15
+ return useMemo(() => ({ height, width }), [height, width]);
16
+ }
17
+ export {
18
+ useWindowSize
19
+ };
20
+ //# sourceMappingURL=useWindowSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize.js","sources":["../../../../../packages/react-utils/src/hooks/useWindowSize.ts"],"sourcesContent":["import { useMemo, useState } from 'react'\nimport { useOnWindowResize } from './useOnWindowResize'\n\nexport function useWindowSize() {\n\tconst [width, setWidth] = useState(window.innerWidth)\n\tconst [height, setHeight] = useState(window.innerHeight)\n\n\tuseOnWindowResize(() => {\n\t\tconst { innerHeight, innerWidth } = window\n\t\tif (innerHeight !== height) {\n\t\t\tsetHeight(innerHeight)\n\t\t}\n\n\t\tif (innerWidth !== width) {\n\t\t\tsetWidth(innerWidth)\n\t\t}\n\t})\n\n\treturn useMemo(() => ({ height, width }), [height, width])\n}\n"],"names":[],"mappings":";;AAGO,SAAS,gBAAgB;AAC/B,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,OAAO,UAAU;AACpD,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,OAAO,WAAW;AAEvD,oBAAkB,MAAM;AACvB,UAAM,EAAE,aAAa,WAAA,IAAe;AACpC,QAAI,gBAAgB,QAAQ;AAC3B,gBAAU,WAAW;AAAA,IACtB;AAEA,QAAI,eAAe,OAAO;AACzB,eAAS,UAAU;AAAA,IACpB;AAAA,EACD,CAAC;AAED,SAAO,QAAQ,OAAO,EAAE,QAAQ,UAAU,CAAC,QAAQ,KAAK,CAAC;AAC1D;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const emptyArray = Object.freeze([]);
4
+ exports.emptyArray = emptyArray;
5
+ //# sourceMappingURL=emptyArray.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyArray.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/emptyArray.ts"],"sourcesContent":["export const emptyArray = Object.freeze<any>([]) as any[]\n"],"names":[],"mappings":";;AAAO,MAAM,aAAa,OAAO,OAAY,CAAA,CAAE;;"}
@@ -0,0 +1,5 @@
1
+ const emptyArray = Object.freeze([]);
2
+ export {
3
+ emptyArray
4
+ };
5
+ //# sourceMappingURL=emptyArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyArray.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/emptyArray.ts"],"sourcesContent":["export const emptyArray = Object.freeze<any>([]) as any[]\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,OAAO,OAAY,CAAA,CAAE;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const emptyObject = Object.freeze({});
4
+ exports.emptyObject = emptyObject;
5
+ //# sourceMappingURL=emptyObject.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyObject.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/emptyObject.ts"],"sourcesContent":["export const emptyObject = Object.freeze({})\n"],"names":[],"mappings":";;AAAO,MAAM,cAAc,OAAO,OAAO,CAAA,CAAE;;"}
@@ -0,0 +1,5 @@
1
+ const emptyObject = Object.freeze({});
2
+ export {
3
+ emptyObject
4
+ };
5
+ //# sourceMappingURL=emptyObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyObject.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/emptyObject.ts"],"sourcesContent":["export const emptyObject = Object.freeze({})\n"],"names":[],"mappings":"AAAO,MAAM,cAAc,OAAO,OAAO,CAAA,CAAE;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const identityFunction = (value) => value;
4
+ exports.identityFunction = identityFunction;
5
+ //# sourceMappingURL=identityFunction.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identityFunction.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/identityFunction.ts"],"sourcesContent":["export const identityFunction = <Value>(value: Value) => value\n"],"names":[],"mappings":";;AAAO,MAAM,mBAAmB,CAAQ,UAAiB;;"}
@@ -0,0 +1,5 @@
1
+ const identityFunction = (value) => value;
2
+ export {
3
+ identityFunction
4
+ };
5
+ //# sourceMappingURL=identityFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identityFunction.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/identityFunction.ts"],"sourcesContent":["export const identityFunction = <Value>(value: Value) => value\n"],"names":[],"mappings":"AAAO,MAAM,mBAAmB,CAAQ,UAAiB;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const noop = () => void 0;
4
+ exports.noop = noop;
5
+ //# sourceMappingURL=noop.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noop.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/noop.ts"],"sourcesContent":["export const noop = () => undefined\n"],"names":[],"mappings":";;AAAO,MAAM,OAAO,MAAM;;"}
@@ -0,0 +1,5 @@
1
+ const noop = () => void 0;
2
+ export {
3
+ noop
4
+ };
5
+ //# sourceMappingURL=noop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noop.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/noop.ts"],"sourcesContent":["export const noop = () => undefined\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,MAAM;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const returnFalse = () => false;
4
+ exports.returnFalse = returnFalse;
5
+ //# sourceMappingURL=returnFalse.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returnFalse.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/returnFalse.ts"],"sourcesContent":["export const returnFalse = () => false\n"],"names":[],"mappings":";;AAAO,MAAM,cAAc,MAAM;;"}
@@ -0,0 +1,5 @@
1
+ const returnFalse = () => false;
2
+ export {
3
+ returnFalse
4
+ };
5
+ //# sourceMappingURL=returnFalse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returnFalse.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/returnFalse.ts"],"sourcesContent":["export const returnFalse = () => false\n"],"names":[],"mappings":"AAAO,MAAM,cAAc,MAAM;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const returnTrue = () => true;
4
+ exports.returnTrue = returnTrue;
5
+ //# sourceMappingURL=returnTrue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returnTrue.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/returnTrue.ts"],"sourcesContent":["export const returnTrue = () => true\n"],"names":[],"mappings":";;AAAO,MAAM,aAAa,MAAM;;"}
@@ -0,0 +1,5 @@
1
+ const returnTrue = () => true;
2
+ export {
3
+ returnTrue
4
+ };
5
+ //# sourceMappingURL=returnTrue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returnTrue.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/returnTrue.ts"],"sourcesContent":["export const returnTrue = () => true\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,MAAM;"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const useReferentiallyStableCallback = (callback) => {
5
+ const ref = React.useRef(callback);
6
+ ref.current = callback;
7
+ return React.useCallback(
8
+ ((...args) => {
9
+ return ref.current(...args);
10
+ }),
11
+ []
12
+ );
13
+ };
14
+ exports.useReferentiallyStableCallback = useReferentiallyStableCallback;
15
+ //# sourceMappingURL=useReferentiallyStableCallback.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReferentiallyStableCallback.cjs","sources":["../../../../../packages/react-utils/src/referentiallyStable/useReferentiallyStableCallback.ts"],"sourcesContent":["import { useCallback, useRef } from 'react'\n\nexport type NoConstructor<T extends Function> = T extends new(...args: unknown[]) => unknown ? never\n\t: T\n// TODO: Should be possible to remove when React.useEvent() lands\nexport const useReferentiallyStableCallback = <T extends Function>(callback: NoConstructor<T>): T => {\n\tconst ref = useRef(callback)\n\tref.current = callback\n\treturn useCallback<T>(\n\t\t((...args: any[]) => {\n\t\t\treturn ref.current(...args)\n\t\t}) as unknown as T,\n\t\t[],\n\t)\n}\n"],"names":["useRef","useCallback"],"mappings":";;;AAKO,MAAM,iCAAiC,CAAqB,aAAkC;AACpG,QAAM,MAAMA,MAAAA,OAAO,QAAQ;AAC3B,MAAI,UAAU;AACd,SAAOC,MAAAA;AAAAA,KACL,IAAI,SAAgB;AACpB,aAAO,IAAI,QAAQ,GAAG,IAAI;AAAA,IAC3B;AAAA,IACA,CAAA;AAAA,EAAC;AAEH;;"}
@@ -0,0 +1,15 @@
1
+ import { useRef, useCallback } from "react";
2
+ const useReferentiallyStableCallback = (callback) => {
3
+ const ref = useRef(callback);
4
+ ref.current = callback;
5
+ return useCallback(
6
+ ((...args) => {
7
+ return ref.current(...args);
8
+ }),
9
+ []
10
+ );
11
+ };
12
+ export {
13
+ useReferentiallyStableCallback
14
+ };
15
+ //# sourceMappingURL=useReferentiallyStableCallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReferentiallyStableCallback.js","sources":["../../../../../packages/react-utils/src/referentiallyStable/useReferentiallyStableCallback.ts"],"sourcesContent":["import { useCallback, useRef } from 'react'\n\nexport type NoConstructor<T extends Function> = T extends new(...args: unknown[]) => unknown ? never\n\t: T\n// TODO: Should be possible to remove when React.useEvent() lands\nexport const useReferentiallyStableCallback = <T extends Function>(callback: NoConstructor<T>): T => {\n\tconst ref = useRef(callback)\n\tref.current = callback\n\treturn useCallback<T>(\n\t\t((...args: any[]) => {\n\t\t\treturn ref.current(...args)\n\t\t}) as unknown as T,\n\t\t[],\n\t)\n}\n"],"names":[],"mappings":";AAKO,MAAM,iCAAiC,CAAqB,aAAkC;AACpG,QAAM,MAAM,OAAO,QAAQ;AAC3B,MAAI,UAAU;AACd,SAAO;AAAA,KACL,IAAI,SAAgB;AACpB,aAAO,IAAI,QAAQ,GAAG,IAAI;AAAA,IAC3B;AAAA,IACA,CAAA;AAAA,EAAC;AAEH;"}
@@ -0,0 +1,3 @@
1
+ import type { Context, Provider } from 'react';
2
+ export declare function createContext<T>(name: string, initialValue: T): [Context<T>, () => T, Provider<T>];
3
+ //# sourceMappingURL=createContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createContext.d.ts","sourceRoot":"","sources":["../../../src/context/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAG9C,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAKlG"}
@@ -0,0 +1,3 @@
1
+ import type { Context, Provider } from 'react';
2
+ export declare function createRequiredContext<T>(displayName: string): [Context<T>, () => T, Provider<T>];
3
+ //# sourceMappingURL=createRequiredContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRequiredContext.d.ts","sourceRoot":"","sources":["../../../src/context/createRequiredContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAK9C,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAehG"}
@@ -0,0 +1,3 @@
1
+ export * from './createRequiredContext';
2
+ export * from './createContext';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ScopedConsoleContextType } from './Types';
2
+ export declare function noopLog(...parameters: any[]): void;
3
+ export declare function noopLogged<T>(message: string, value: T): T;
4
+ export declare const noopScopedConsole: ScopedConsoleContextType;
5
+ export declare function isNoopScopedConsole(value: unknown): boolean;
6
+ //# sourceMappingURL=Constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/debug-context/Constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAEvD,wBAAgB,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,EAAE,QAAI;AAEhD,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAE1D;AAED,eAAO,MAAM,iBAAiB,EAAE,wBAS9B,CAAA;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE3D"}
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScopedConsoleContextType } from './Types';
3
+ export declare const ScopedConsoleContext: import("react").Context<ScopedConsoleContextType>;
4
+ export declare const useScopedConsoleRef: (prefix: string, override?: boolean) => import("react").RefObject<ScopedConsoleContextType>;
5
+ export type DebugChildrenProps = {
6
+ active?: true;
7
+ children: ReactNode;
8
+ id: string;
9
+ } | {
10
+ active?: false;
11
+ children: ReactNode;
12
+ id?: string;
13
+ };
14
+ export declare const DebugChildren: import("react").NamedExoticComponent<DebugChildrenProps>;
15
+ //# sourceMappingURL=Context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/debug-context/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,SAAS,EAA+B,MAAM,OAAO,CAAA;AAEnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAmClD,eAAO,MAAM,oBAAoB,mDAAiD,CAAA;AAOlF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,MAAM,EAAE,WAAW,OAAO,wDAkBrE,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B;IAAE,MAAM,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,MAAM,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvD,eAAO,MAAM,aAAa,0DAYxB,CAAA"}
@@ -0,0 +1,13 @@
1
+ export type DebugMethod = (...parameters: any[]) => void;
2
+ export type ResultDebuggedMethod = <T>(message: string, value: T) => T;
3
+ export type ScopedConsoleContextType = {
4
+ log: DebugMethod;
5
+ logged: ResultDebuggedMethod;
6
+ warn: DebugMethod;
7
+ warned: ResultDebuggedMethod;
8
+ error: DebugMethod;
9
+ errored: ResultDebuggedMethod;
10
+ trace: DebugMethod;
11
+ traced: ResultDebuggedMethod;
12
+ };
13
+ //# sourceMappingURL=Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../src/debug-context/Types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AACxD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACtC,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,KAAK,EAAE,WAAW,CAAA;IAClB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,KAAK,EAAE,WAAW,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;CAC5B,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Constants';
2
+ export * from './Context';
3
+ export * from './Types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/debug-context/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,25 @@
1
+ export * from './unwrapRefValue';
2
+ export * from './useAbortController';
3
+ export * from './useArrayMapMemo';
4
+ export * from './useAutoHeightTextArea';
5
+ export * from './useChildrenAsLabel';
6
+ export * from './useComposeRef';
7
+ export * from './useConstantLengthInvariant';
8
+ export * from './useConstantValueInvariant';
9
+ export * from './useDebounce';
10
+ export * from './useDebounceCallback';
11
+ export * from './useDocumentTitle';
12
+ export * from './useExpectSameValueReference';
13
+ export * from './useForceRender';
14
+ export * from './useId';
15
+ export * from './useIsMounted';
16
+ export * from './useObjectMemo';
17
+ export * from './useOnElementClickOutsideCallback';
18
+ export * from './useOnElementMouseEnterDelayedCallback';
19
+ export * from './useOnElementResize';
20
+ export * from './useOnWindowResize';
21
+ export * from './usePreviousValue';
22
+ export * from './useStoredState';
23
+ export * from './useUpdatedRef';
24
+ export * from './useWindowSize';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oCAAoC,CAAA;AAClD,cAAc,yCAAyC,CAAA;AACvD,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { RefObject } from 'react';
2
+ export type RefObjectOrElement<T> = T | RefObject<T | null>;
3
+ /**
4
+ * Unwraps a ref object or returns the value if it is not a ref object.
5
+ * @param value - Value to unwrap
6
+ * @returns Unwrapped value
7
+ */
8
+ export declare function unwrapRefValue<T>(value: RefObjectOrElement<T>): T | null;
9
+ //# sourceMappingURL=unwrapRefValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unwrapRefValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/unwrapRefValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAMxE"}
@@ -0,0 +1,2 @@
1
+ export declare const useAbortController: () => () => AbortSignal;
2
+ //# sourceMappingURL=useAbortController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAbortController.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAbortController.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,cAKP,WAOvB,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ⚠️ ONLY USE THIS IF YOU *REALLY* KNOW WHAT YOU'RE DOING! ⚠️
3
+ * ⚠ HERE BE DRAGONS THAT KNOW WHERE YOU LIVE! ⚠
4
+ *
5
+ * This is a bit of React naughtiness that allows us to memoize outputs of Array.prototype.map() based on the contents
6
+ * of the original array, and not its referential equality. That way, if we create a new array with identical items,
7
+ * we get an array that is referentially equal to the previous one.
8
+ */
9
+ export declare const useArrayMapMemo: <Item, OutputItem>(items: Item[], map: (value: Item, index: number, array: Item[]) => OutputItem) => OutputItem[];
10
+ //# sourceMappingURL=useArrayMapMemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useArrayMapMemo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArrayMapMemo.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,EAAE,UAAU,EAC/C,OAAO,IAAI,EAAE,EACb,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,UAAU,KAC5D,UAAU,EAaZ,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { RefObjectOrElement } from './unwrapRefValue';
2
+ export declare const useAutoHeightTextArea: (textAreaRef: RefObjectOrElement<HTMLTextAreaElement>, value: string, minRows: number, maxRows: number) => void;
3
+ //# sourceMappingURL=useAutoHeightTextArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoHeightTextArea.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAutoHeightTextArea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,kBAAkB,CAAA;AAOrE,eAAO,MAAM,qBAAqB,GACjC,aAAa,kBAAkB,CAAC,mBAAmB,CAAC,EACpD,OAAO,MAAM,EACb,SAAS,MAAM,EACf,SAAS,MAAM,SA0Cf,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Walks through the children and returns a string representation of the text content.
4
+ *
5
+ * @param node - The children to walk through.
6
+ * @returns String representation of the text content or undefined if there is no text content.
7
+ */
8
+ export declare function getChildrenAsLabel(node: ReactNode): string | undefined;
9
+ /**
10
+ * Walks through the children and returns a string representation of the text content.
11
+ *
12
+ * @param node - The children to walk through.
13
+ * @returns String representation of the text content or undefined if there is no text content.
14
+ */
15
+ export declare function useChildrenAsLabel(node: ReactNode): string | undefined;
16
+ //# sourceMappingURL=useChildrenAsLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChildrenAsLabel.d.ts","sourceRoot":"","sources":["../../../src/hooks/useChildrenAsLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAW,MAAM,OAAO,CAAA;AAQpD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CA8CtE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAEtE"}
@@ -0,0 +1,16 @@
1
+ import { MutableRefObject, RefCallback } from 'react';
2
+ export type MaybeRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null | undefined;
3
+ export type ComposedRefCallback<T> = RefCallback<T> & {
4
+ current: T | null;
5
+ };
6
+ /**
7
+ * Fills any number of refs with an instance
8
+ *
9
+ * Useful when you need to use outer ref and inner in the same time, e.g. passing element
10
+ * back to forwardedRef an also using the same value within the component locally.
11
+ *
12
+ * @param refs - Rest parameter of refs to fill with instance
13
+ * @returns Returns a function similar to a RefCallback
14
+ */
15
+ export declare function useComposeRef<T>(...refs: MaybeRef<T>[]): ComposedRefCallback<T>;
16
+ //# sourceMappingURL=useComposeRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposeRef.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComposeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAmB,MAAM,OAAO,CAAA;AAEtE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;AACxG,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,CAAA;AAY3E;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAqB/E"}
@@ -0,0 +1,2 @@
1
+ export declare const useConstantLengthInvariant: <Item>(items: Item[], message?: string) => void;
2
+ //# sourceMappingURL=useConstantLengthInvariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConstantLengthInvariant.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConstantLengthInvariant.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,0BAA0B,GAAI,IAAI,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,MAAM,SAS/E,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const useConstantValueInvariant: <Value>(value: Value, message?: string) => void;
2
+ //# sourceMappingURL=useConstantValueInvariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConstantValueInvariant.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConstantValueInvariant.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,GAAI,KAAK,EAAE,OAAO,KAAK,EAAE,UAAU,MAAM,SAS9E,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const useDebounce: <T>(value: T, debounceMs: number) => T;
2
+ //# sourceMappingURL=useDebounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,MAAM,KAAG,CAS7D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const useDebounceCallback: (cb: () => any, debounceMs: number) => () => void;
2
+ //# sourceMappingURL=useDebounceCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounceCallback.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDebounceCallback.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,IAAI,MAAM,GAAG,EAAE,YAAY,MAAM,eAgBpE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function useDocumentTitle(title: string | null | undefined, formatter?: (title: string, initialTitle: string) => string): void;
2
+ //# sourceMappingURL=useDocumentTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDocumentTitle.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,QAkB7H"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Checks whether the next value is the same reference as the previous one
3
+ *
4
+ * If not, it checks whether the values are deeply equal. If not, it logs an error.
5
+ *
6
+ * @param next - Value to be checked.
7
+ * @param shouldThrow - If true, it throws an error instead of logging it. Defaults to false.
8
+ * @returns void
9
+ * -
10
+ * @example
11
+ * ```ts
12
+ * useExpectSameValueReference(style)
13
+ * ```
14
+ * @example
15
+ * ```ts
16
+ * useExpectSameValueReference(style, true)
17
+ * ```
18
+ * @example
19
+ * ```ts
20
+ * useExpectSameValueReference(style, import.meta.env.DEV)
21
+ * ```
22
+ */
23
+ export declare function useExpectSameValueReference<T>(next: T, shouldThrow?: boolean): void;
24
+ //# sourceMappingURL=useExpectSameValueReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExpectSameValueReference.d.ts","sourceRoot":"","sources":["../../../src/hooks/useExpectSameValueReference.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,GAAE,OAAe,QA4BnF"}
@@ -0,0 +1,2 @@
1
+ export declare const useForceRender: () => import("react").ActionDispatch<[]>;
2
+ //# sourceMappingURL=useForceRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForceRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForceRender.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,0CAG1B,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns a unique ID string
3
+ * @internal
4
+ *
5
+ * NOTE: This hook is a temporary solution until we stop supporting React < 18
6
+ *
7
+ * @returns a unique id
8
+ */
9
+ export declare function useId(): string;
10
+ //# sourceMappingURL=useId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../../src/hooks/useId.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wBAAgB,KAAK,WAEpB"}
@@ -0,0 +1,2 @@
1
+ export declare const useIsMounted: () => import("react").RefObject<boolean>;
2
+ //# sourceMappingURL=useIsMounted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMounted.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsMounted.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,0CAYxB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const useObjectMemo: <A extends object>(value: A) => A;
2
+ //# sourceMappingURL=useObjectMemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useObjectMemo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useObjectMemo.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,EAAE,OAAO,CAAC,KAAG,CAM1D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { RefObjectOrElement } from './unwrapRefValue';
2
+ export declare function useOnElementClickOutsideCallback(refOrElement: RefObjectOrElement<HTMLElement>, callback: (event: MouseEvent) => void): void;
3
+ //# sourceMappingURL=useOnElementClickOutsideCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnElementClickOutsideCallback.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnElementClickOutsideCallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,kBAAkB,CAAA;AAErE,wBAAgB,gCAAgC,CAC/C,YAAY,EAAE,kBAAkB,CAAC,WAAW,CAAC,EAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GACnC,IAAI,CAgBN"}