@wordpress/compose 8.4.0 → 8.6.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 (221) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/higher-order/compose.cjs.map +2 -2
  3. package/build/higher-order/if-condition/index.cjs.map +2 -2
  4. package/build/higher-order/pure/index.cjs.map +2 -2
  5. package/build/higher-order/with-global-events/index.cjs.map +2 -2
  6. package/build/higher-order/with-instance-id/index.cjs.map +2 -2
  7. package/build/higher-order/with-safe-timeout/index.cjs +1 -1
  8. package/build/higher-order/with-safe-timeout/index.cjs.map +2 -2
  9. package/build/higher-order/with-state/index.cjs.map +2 -2
  10. package/build/hooks/use-async-list/index.cjs.map +2 -2
  11. package/build/hooks/use-constrained-tabbing/index.cjs.map +2 -2
  12. package/build/hooks/use-copy-on-click/index.cjs.map +2 -2
  13. package/build/hooks/use-copy-to-clipboard/index.cjs.map +2 -2
  14. package/build/hooks/use-debounce/index.cjs.map +2 -2
  15. package/build/hooks/use-debounced-input/index.cjs.map +2 -2
  16. package/build/hooks/use-dialog/index.cjs.map +2 -2
  17. package/build/hooks/use-disabled/index.cjs.map +2 -2
  18. package/build/hooks/use-dragging/index.cjs.map +2 -2
  19. package/build/hooks/use-drop-zone/index.cjs.map +2 -2
  20. package/build/hooks/use-event/index.cjs.map +2 -2
  21. package/build/hooks/use-fixed-window-list/index.cjs +98 -92
  22. package/build/hooks/use-fixed-window-list/index.cjs.map +3 -3
  23. package/build/hooks/use-focus-outside/index.cjs.map +2 -2
  24. package/build/hooks/use-focus-return/index.cjs.map +2 -2
  25. package/build/hooks/use-focusable-iframe/index.cjs.map +2 -2
  26. package/build/hooks/use-instance-id/index.cjs.map +2 -2
  27. package/build/hooks/use-isomorphic-layout-effect/index.cjs.map +2 -2
  28. package/build/hooks/use-keyboard-shortcut/index.cjs.map +2 -2
  29. package/build/hooks/use-media-query/index.cjs.map +2 -2
  30. package/build/hooks/use-merge-refs/index.cjs.map +2 -2
  31. package/build/hooks/use-observable-value/index.cjs.map +2 -2
  32. package/build/hooks/use-previous/index.cjs.map +2 -2
  33. package/build/hooks/use-reduced-motion/index.cjs.map +2 -2
  34. package/build/hooks/use-ref-effect/index.cjs.map +2 -2
  35. package/build/hooks/use-resize-observer/index.cjs.map +2 -2
  36. package/build/hooks/use-resize-observer/legacy/index.cjs.map +2 -2
  37. package/build/hooks/use-resize-observer/use-resize-observer.cjs.map +2 -2
  38. package/build/hooks/use-state-with-history/index.cjs.map +2 -2
  39. package/build/hooks/use-throttle/index.cjs.map +2 -2
  40. package/build/hooks/use-viewport-match/index.cjs +1 -1
  41. package/build/hooks/use-viewport-match/index.cjs.map +2 -2
  42. package/build/hooks/use-warn-on-change/index.cjs.map +2 -2
  43. package/build/lock-unlock.cjs.map +2 -2
  44. package/build/private-apis.cjs.map +2 -2
  45. package/build/utils/create-higher-order-component/index.cjs.map +2 -2
  46. package/build/utils/throttle/index.cjs.map +2 -2
  47. package/build-module/higher-order/compose.mjs.map +2 -2
  48. package/build-module/higher-order/if-condition/index.mjs.map +2 -2
  49. package/build-module/higher-order/pure/index.mjs.map +2 -2
  50. package/build-module/higher-order/with-global-events/index.mjs.map +2 -2
  51. package/build-module/higher-order/with-instance-id/index.mjs.map +2 -2
  52. package/build-module/higher-order/with-safe-timeout/index.mjs +1 -1
  53. package/build-module/higher-order/with-safe-timeout/index.mjs.map +2 -2
  54. package/build-module/higher-order/with-state/index.mjs.map +2 -2
  55. package/build-module/hooks/use-async-list/index.mjs.map +2 -2
  56. package/build-module/hooks/use-constrained-tabbing/index.mjs.map +2 -2
  57. package/build-module/hooks/use-copy-on-click/index.mjs.map +2 -2
  58. package/build-module/hooks/use-copy-to-clipboard/index.mjs.map +2 -2
  59. package/build-module/hooks/use-debounce/index.mjs.map +2 -2
  60. package/build-module/hooks/use-debounced-input/index.mjs.map +2 -2
  61. package/build-module/hooks/use-dialog/index.mjs.map +2 -2
  62. package/build-module/hooks/use-disabled/index.mjs.map +2 -2
  63. package/build-module/hooks/use-dragging/index.mjs.map +2 -2
  64. package/build-module/hooks/use-drop-zone/index.mjs.map +2 -2
  65. package/build-module/hooks/use-event/index.mjs.map +2 -2
  66. package/build-module/hooks/use-fixed-window-list/index.mjs +89 -93
  67. package/build-module/hooks/use-fixed-window-list/index.mjs.map +2 -2
  68. package/build-module/hooks/use-focus-outside/index.mjs.map +2 -2
  69. package/build-module/hooks/use-focus-return/index.mjs.map +2 -2
  70. package/build-module/hooks/use-focusable-iframe/index.mjs.map +2 -2
  71. package/build-module/hooks/use-instance-id/index.mjs.map +2 -2
  72. package/build-module/hooks/use-isomorphic-layout-effect/index.mjs.map +2 -2
  73. package/build-module/hooks/use-keyboard-shortcut/index.mjs.map +2 -2
  74. package/build-module/hooks/use-media-query/index.mjs.map +2 -2
  75. package/build-module/hooks/use-merge-refs/index.mjs.map +2 -2
  76. package/build-module/hooks/use-observable-value/index.mjs.map +2 -2
  77. package/build-module/hooks/use-previous/index.mjs.map +2 -2
  78. package/build-module/hooks/use-reduced-motion/index.mjs.map +2 -2
  79. package/build-module/hooks/use-ref-effect/index.mjs.map +2 -2
  80. package/build-module/hooks/use-resize-observer/index.mjs.map +2 -2
  81. package/build-module/hooks/use-resize-observer/legacy/index.mjs.map +2 -2
  82. package/build-module/hooks/use-resize-observer/use-resize-observer.mjs.map +2 -2
  83. package/build-module/hooks/use-state-with-history/index.mjs.map +2 -2
  84. package/build-module/hooks/use-throttle/index.mjs.map +2 -2
  85. package/build-module/hooks/use-viewport-match/index.mjs +1 -1
  86. package/build-module/hooks/use-viewport-match/index.mjs.map +2 -2
  87. package/build-module/hooks/use-warn-on-change/index.mjs.map +2 -2
  88. package/build-module/lock-unlock.mjs.map +2 -2
  89. package/build-module/private-apis.mjs.map +2 -2
  90. package/build-module/utils/create-higher-order-component/index.mjs.map +2 -2
  91. package/build-module/utils/throttle/index.mjs.map +2 -2
  92. package/build-types/higher-order/compose.d.ts.map +1 -1
  93. package/build-types/higher-order/if-condition/index.d.ts +0 -3
  94. package/build-types/higher-order/if-condition/index.d.ts.map +1 -1
  95. package/build-types/higher-order/pure/index.d.ts +0 -3
  96. package/build-types/higher-order/pure/index.d.ts.map +1 -1
  97. package/build-types/higher-order/with-global-events/index.d.ts.map +1 -1
  98. package/build-types/higher-order/with-instance-id/index.d.ts +0 -3
  99. package/build-types/higher-order/with-instance-id/index.d.ts.map +1 -1
  100. package/build-types/higher-order/with-safe-timeout/index.d.ts +0 -3
  101. package/build-types/higher-order/with-safe-timeout/index.d.ts.map +1 -1
  102. package/build-types/higher-order/with-state/index.d.ts.map +1 -1
  103. package/build-types/hooks/use-async-list/index.d.ts.map +1 -1
  104. package/build-types/hooks/use-constrained-tabbing/index.d.ts.map +1 -1
  105. package/build-types/hooks/use-copy-on-click/index.d.ts.map +1 -1
  106. package/build-types/hooks/use-copy-to-clipboard/index.d.ts.map +1 -1
  107. package/build-types/hooks/use-debounce/index.d.ts.map +1 -1
  108. package/build-types/hooks/use-debounced-input/index.d.ts.map +1 -1
  109. package/build-types/hooks/use-dialog/index.d.ts +0 -3
  110. package/build-types/hooks/use-dialog/index.d.ts.map +1 -1
  111. package/build-types/hooks/use-disabled/index.d.ts.map +1 -1
  112. package/build-types/hooks/use-dragging/index.d.ts.map +1 -1
  113. package/build-types/hooks/use-drop-zone/index.d.ts.map +1 -1
  114. package/build-types/hooks/use-event/index.d.ts.map +1 -1
  115. package/build-types/hooks/use-fixed-window-list/index.d.ts +1 -1
  116. package/build-types/hooks/use-fixed-window-list/index.d.ts.map +1 -1
  117. package/build-types/hooks/use-focus-outside/index.d.ts.map +1 -1
  118. package/build-types/hooks/use-focus-return/index.d.ts.map +1 -1
  119. package/build-types/hooks/use-focusable-iframe/index.d.ts +0 -3
  120. package/build-types/hooks/use-focusable-iframe/index.d.ts.map +1 -1
  121. package/build-types/hooks/use-instance-id/index.d.ts.map +1 -1
  122. package/build-types/hooks/use-isomorphic-layout-effect/index.d.ts +0 -3
  123. package/build-types/hooks/use-isomorphic-layout-effect/index.d.ts.map +1 -1
  124. package/build-types/hooks/use-keyboard-shortcut/index.d.ts +0 -3
  125. package/build-types/hooks/use-keyboard-shortcut/index.d.ts.map +1 -1
  126. package/build-types/hooks/use-media-query/index.d.ts.map +1 -1
  127. package/build-types/hooks/use-merge-refs/index.d.ts.map +1 -1
  128. package/build-types/hooks/use-observable-value/index.d.ts +0 -3
  129. package/build-types/hooks/use-observable-value/index.d.ts.map +1 -1
  130. package/build-types/hooks/use-previous/index.d.ts.map +1 -1
  131. package/build-types/hooks/use-reduced-motion/index.d.ts.map +1 -1
  132. package/build-types/hooks/use-ref-effect/index.d.ts +0 -3
  133. package/build-types/hooks/use-ref-effect/index.d.ts.map +1 -1
  134. package/build-types/hooks/use-resize-observer/index.d.ts +1 -4
  135. package/build-types/hooks/use-resize-observer/index.d.ts.map +1 -1
  136. package/build-types/hooks/use-resize-observer/legacy/index.d.ts +0 -3
  137. package/build-types/hooks/use-resize-observer/legacy/index.d.ts.map +1 -1
  138. package/build-types/hooks/use-resize-observer/use-resize-observer.d.ts.map +1 -1
  139. package/build-types/hooks/use-state-with-history/index.d.ts.map +1 -1
  140. package/build-types/hooks/use-throttle/index.d.ts.map +1 -1
  141. package/build-types/hooks/use-viewport-match/index.d.ts.map +1 -1
  142. package/build-types/hooks/use-warn-on-change/index.d.ts.map +1 -1
  143. package/build-types/lock-unlock.d.ts.map +1 -1
  144. package/build-types/private-apis.d.ts.map +1 -1
  145. package/build-types/utils/create-higher-order-component/index.d.ts.map +1 -1
  146. package/build-types/utils/throttle/index.d.ts +0 -39
  147. package/build-types/utils/throttle/index.d.ts.map +1 -1
  148. package/package.json +10 -10
  149. package/src/higher-order/compose.ts +0 -3
  150. package/src/higher-order/if-condition/index.tsx +0 -7
  151. package/src/higher-order/pure/index.tsx +0 -11
  152. package/src/higher-order/pure/test/index.js +0 -11
  153. package/src/higher-order/test/compose.ts +0 -3
  154. package/src/higher-order/test/pipe.ts +0 -3
  155. package/src/higher-order/with-global-events/index.js +0 -8
  156. package/src/higher-order/with-global-events/test/index.js +0 -11
  157. package/src/higher-order/with-global-events/test/listener.js +0 -3
  158. package/src/higher-order/with-instance-id/README.md +0 -3
  159. package/src/higher-order/with-instance-id/index.tsx +1 -4
  160. package/src/higher-order/with-instance-id/test/index.js +0 -7
  161. package/src/higher-order/with-safe-timeout/README.md +0 -3
  162. package/src/higher-order/with-safe-timeout/index.tsx +1 -8
  163. package/src/higher-order/with-state/README.md +0 -3
  164. package/src/higher-order/with-state/index.js +0 -7
  165. package/src/higher-order/with-state/test/index.js +0 -7
  166. package/src/hooks/use-async-list/index.ts +0 -3
  167. package/src/hooks/use-constrained-tabbing/index.ts +0 -7
  168. package/src/hooks/use-copy-on-click/index.ts +0 -7
  169. package/src/hooks/use-copy-on-click/test/index.tsx +0 -11
  170. package/src/hooks/use-copy-to-clipboard/index.ts +0 -7
  171. package/src/hooks/use-copy-to-clipboard/test/index.tsx +0 -7
  172. package/src/hooks/use-debounce/index.ts +0 -11
  173. package/src/hooks/use-debounced-input/index.ts +0 -7
  174. package/src/hooks/use-dialog/index.ts +0 -11
  175. package/src/hooks/use-dialog/test/index.tsx +0 -7
  176. package/src/hooks/use-disabled/index.ts +0 -3
  177. package/src/hooks/use-disabled/test/index.js +0 -11
  178. package/src/hooks/use-dragging/README.md +0 -3
  179. package/src/hooks/use-dragging/index.ts +0 -7
  180. package/src/hooks/use-drop-zone/index.ts +0 -3
  181. package/src/hooks/use-drop-zone/test/index.js +0 -11
  182. package/src/hooks/use-event/index.ts +0 -3
  183. package/src/hooks/use-fixed-window-list/index.ts +128 -116
  184. package/src/hooks/use-focus-outside/index.ts +0 -3
  185. package/src/hooks/use-focus-outside/test/index.js +0 -7
  186. package/src/hooks/use-focus-return/index.ts +0 -3
  187. package/src/hooks/use-focusable-iframe/index.ts +0 -7
  188. package/src/hooks/use-instance-id/README.md +0 -3
  189. package/src/hooks/use-instance-id/index.ts +0 -3
  190. package/src/hooks/use-instance-id/test/index.js +0 -7
  191. package/src/hooks/use-isomorphic-layout-effect/index.ts +0 -3
  192. package/src/hooks/use-keyboard-shortcut/index.ts +0 -7
  193. package/src/hooks/use-media-query/index.ts +0 -3
  194. package/src/hooks/use-media-query/test/index.js +0 -7
  195. package/src/hooks/use-media-query/test/ssr.js +0 -8
  196. package/src/hooks/use-merge-refs/index.ts +0 -3
  197. package/src/hooks/use-merge-refs/test/index.js +0 -11
  198. package/src/hooks/use-observable-value/index.ts +0 -7
  199. package/src/hooks/use-observable-value/test/index.js +0 -7
  200. package/src/hooks/use-previous/README.md +0 -3
  201. package/src/hooks/use-previous/index.ts +0 -3
  202. package/src/hooks/use-reduced-motion/index.ts +0 -3
  203. package/src/hooks/use-ref-effect/index.ts +0 -7
  204. package/src/hooks/use-resize-observer/index.ts +1 -7
  205. package/src/hooks/use-resize-observer/legacy/index.tsx +0 -10
  206. package/src/hooks/use-resize-observer/use-resize-observer.ts +0 -6
  207. package/src/hooks/use-state-with-history/index.ts +0 -3
  208. package/src/hooks/use-state-with-history/test/index.js +0 -7
  209. package/src/hooks/use-throttle/index.ts +0 -11
  210. package/src/hooks/use-viewport-match/index.ts +3 -8
  211. package/src/hooks/use-viewport-match/test/index.js +6 -15
  212. package/src/hooks/use-warn-on-change/index.ts +0 -3
  213. package/src/lock-unlock.ts +0 -3
  214. package/src/private-apis.ts +0 -3
  215. package/src/utils/create-higher-order-component/index.ts +0 -3
  216. package/src/utils/create-higher-order-component/test/index.js +0 -7
  217. package/src/utils/debounce/test/index.ts +0 -3
  218. package/src/utils/observable-map/test/index.js +0 -3
  219. package/src/utils/subscribe-delegated-listener/test/index.js +0 -3
  220. package/src/utils/throttle/index.ts +0 -4
  221. package/src/utils/throttle/test/index.ts +0 -3
@@ -1,6 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { RefCallback } from 'react';
5
2
  /**
6
3
  * Dispatches a bubbling focus event when the iframe receives focus. Use
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-focusable-iframe/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAOzC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,WAAW,CAAE,iBAAiB,CAAE,CA0B7E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-focusable-iframe/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,WAAW,CAAE,iBAAiB,CAAE,CA0B7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-instance-id/index.ts"],"names":[],"mappings":"AAmBA;;;;;;;;;;;GAWG;AACH,iBAAS,aAAa,CAAE,MAAM,EAAE,MAAM,GAAI,MAAM,CAAC;AACjD,iBAAS,aAAa,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,MAAM,CAAC;AACjE,iBAAS,aAAa,CAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,CAAC,GACb,CAAC,CAAC;eAyBU,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-instance-id/index.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;GAWG;AACH,iBAAS,aAAa,CAAE,MAAM,EAAE,MAAM,GAAI,MAAM,CAAC;AACjD,iBAAS,aAAa,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,MAAM,CAAC;AACjE,iBAAS,aAAa,CAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,CAAC,GACb,CAAC,CAAC;eAyBU,aAAa"}
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useLayoutEffect } from '@wordpress/element';
5
2
  /**
6
3
  * Preferred over direct usage of `useLayoutEffect` when supporting
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-isomorphic-layout-effect/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAa,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEhE;;;;GAIG;AACH,QAAA,MAAM,yBAAyB,wBAC6B,CAAC;eAE9C,yBAAyB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-isomorphic-layout-effect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEhE;;;;GAIG;AACH,QAAA,MAAM,yBAAyB,wBAC6B,CAAC;eAE9C,yBAAyB"}
@@ -1,8 +1,5 @@
1
1
  import 'mousetrap/plugins/global-bind/mousetrap-global-bind.js';
2
2
  import type { ExtendedKeyboardEvent } from 'mousetrap';
3
- /**
4
- * WordPress dependencies
5
- */
6
3
  import type { RefObject } from '@wordpress/element';
7
4
  type KeyboardShortcutConfig = {
8
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-keyboard-shortcut/index.ts"],"names":[],"mappings":"AAIA,OAAO,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,KAAK,sBAAsB,GAAG;IAC7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAE,WAAW,CAAE,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,iBAAS,mBAAmB,CAC3B,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAC5B,QAAQ,EAAE,CAAE,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,KAAM,IAAI,EAC7D,EACC,UAAkB,EAClB,SAAqB,EACrB,UAAkB,EAClB,MAAM,GACN,GAAE,OAAO,CAAE,sBAAsB,CAAO,QA4DzC;eAEc,mBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-keyboard-shortcut/index.ts"],"names":[],"mappings":"AACA,OAAO,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,KAAK,sBAAsB,GAAG;IAC7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAE,WAAW,CAAE,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,iBAAS,mBAAmB,CAC3B,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAC5B,QAAQ,EAAE,CAAE,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,KAAM,IAAI,EAC7D,EACC,UAAkB,EAClB,SAAqB,EACrB,UAAkB,EAClB,MAAM,GACN,GAAE,OAAO,CAAE,sBAAsB,CAAO,QA4DzC;eAEc,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-media-query/index.ts"],"names":[],"mappings":"AAuEA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACpC,KAAK,CAAC,EAAE,MAAM,EAGd,IAAI,GAAE,MAAM,GAAG,SAEH,GACV,OAAO,CAQT"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-media-query/index.ts"],"names":[],"mappings":"AAoEA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACpC,KAAK,CAAC,EAAE,MAAM,EAGd,IAAI,GAAE,MAAM,GAAG,SAEH,GACV,OAAO,CAQT"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-merge-refs/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,GAAG,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AA+BhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,CAAC,EACtC,IAAI,EAAE,GAAG,CAAE,CAAC,CAAE,EAAE,GACd,WAAW,CAAE,CAAC,CAAE,CA8DlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-merge-refs/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,GAAG,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AA+BhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,CAAC,EACtC,IAAI,EAAE,GAAG,CAAE,CAAC,CAAE,EAAE,GACd,WAAW,CAAE,CAAC,CAAE,CA8DlB"}
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { ObservableMap } from '../../utils/observable-map';
5
2
  /**
6
3
  * React hook that lets you observe an entry in an `ObservableMap`. The hook returns the
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-observable-value/index.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,CAAC,EAAE,CAAC,EAC/C,GAAG,EAAE,aAAa,CAAE,CAAC,EAAE,CAAC,CAAE,EAC1B,IAAI,EAAE,CAAC,GACL,CAAC,GAAG,SAAS,CASf"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-observable-value/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,CAAC,EAAE,CAAC,EAC/C,GAAG,EAAE,aAAa,CAAE,CAAC,EAAE,CAAC,CAAE,EAC1B,IAAI,EAAE,CAAC,GACL,CAAC,GAAG,SAAS,CASf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-previous/index.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,CAAC,EAAI,KAAK,EAAE,CAAC,GAAI,CAAC,GAAG,SAAS,CAUlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-previous/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,CAAC,EAAI,KAAK,EAAE,CAAC,GAAI,CAAC,GAAG,SAAS,CAUlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reduced-motion/index.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,QAAO,OACuB,CAAC;eAEtC,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reduced-motion/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,QAAO,OACuB,CAAC;eAEtC,gBAAgB"}
@@ -1,6 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { DependencyList, RefCallback } from 'react';
5
2
  /**
6
3
  * Effect-like ref callback. Just like with `useEffect`, this allows you to
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-ref-effect/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAOzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,QAAQ,GAAG,IAAI,EACpD,QAAQ,EAAE,CAAE,IAAI,EAAE,QAAQ,KAAM,CAAE,MAAM,IAAI,CAAE,GAAG,IAAI,EACrD,YAAY,EAAE,cAAc,GAC1B,WAAW,CAAE,QAAQ,GAAG,IAAI,CAAE,CAShC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-ref-effect/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,QAAQ,GAAG,IAAI,EACpD,QAAQ,EAAE,CAAE,IAAI,EAAE,QAAQ,KAAM,CAAE,MAAM,IAAI,CAAE,GAAG,IAAI,EACrD,YAAY,EAAE,cAAc,GAC1B,WAAW,CAAE,QAAQ,GAAG,IAAI,CAAE,CAShC"}
@@ -1,8 +1,5 @@
1
- import type { ObservedSize } from './legacy';
2
- /**
3
- * External dependencies
4
- */
5
1
  import type { ReactElement } from 'react';
2
+ import type { ObservedSize } from './legacy';
6
3
  /**
7
4
  * Sets up a [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/Resize_Observer_API)
8
5
  * for an HTML or SVG element.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,CAAC,SAAS,OAAO;AAC3D;;GAEG;AACH,QAAQ,EAAE,sBAAsB;AAChC;;GAEG;AACH,OAAO,CAAC,EAAE,qBAAqB,GAC7B,CAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,KAAM,IAAI,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,IAAI,CAAE,YAAY,EAAE,YAAY,CAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,CAAC,SAAS,OAAO;AAC3D;;GAEG;AACH,QAAQ,EAAE,sBAAsB;AAChC;;GAEG;AACH,OAAO,CAAC,EAAE,qBAAqB,GAC7B,CAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,KAAM,IAAI,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,IAAI,CAAE,YAAY,EAAE,YAAY,CAAE,CAAC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ReactElement } from 'react';
5
2
  export type ObservedSize = {
6
3
  width: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-resize-observer/legacy/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1C,MAAM,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAwFF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,IAAI;IAClD,YAAY;IACZ,YAAY;CACZ,CAeA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-resize-observer/legacy/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAwFF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,IAAI;IAClD,YAAY;IACZ,YAAY;CACZ,CAeA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer/use-resize-observer.ts"],"names":[],"mappings":"AAcA,wBAAgB,iBAAiB,CAAE,CAAC,SAAS,WAAW,EACvD,QAAQ,EAAE,sBAAsB,EAChC,qBAAqB,GAAE,qBAA0B,GAC/C,CAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,KAAM,IAAI,CAyBhC"}
1
+ {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer/use-resize-observer.ts"],"names":[],"mappings":"AAQA,wBAAgB,iBAAiB,CAAE,CAAC,SAAS,WAAW,EACvD,QAAQ,EAAE,sBAAsB,EAChC,qBAAqB,GAAE,qBAA0B,GAC/C,CAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,KAAM,IAAI,CAyBhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-state-with-history/index.ts"],"names":[],"mappings":"AAqEA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,CAAC,EAAI,YAAY,EAAE,CAAC;IAQ/D,KAAK;IACL,QAAQ,aAA2B,CAAC,YAAY,OAAO;IAOvD,OAAO;IACP,OAAO;IACP,IAAI;IAGJ,IAAI;EAIL"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-state-with-history/index.ts"],"names":[],"mappings":"AAkEA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,CAAC,EAAI,YAAY,EAAE,CAAC;IAQ/D,KAAK;IACL,QAAQ,aAA2B,CAAC,YAAY,OAAO;IAOvD,OAAO;IACP,OAAO;IACP,IAAI;IAGJ,IAAI;EAIL"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-throttle/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,KAAK,SAAS,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,IAAI,EAC5E,EAAE,EAAE,KAAK,EACT,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,eAAe,GACvB,aAAa,CAAE,KAAK,CAAE,CAOxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-throttle/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,KAAK,SAAS,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,IAAI,EAC5E,EAAE,EAAE,KAAK,EACT,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,eAAe,GACvB,aAAa,CAAE,KAAK,CAAE,CAOxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-viewport-match/index.ts"],"names":[],"mappings":"AAUA,KAAK,UAAU,GACZ,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC;AACZ,KAAK,gBAAgB,GAAG,IAAI,GAAG,GAAG,CAAC;kCAyDlC,UAAU,EAAE,UAAU,EACtB,QAAQ,GAAE,gBAAuB,EAGjC,IAAI,GAAE,MAAM,GAAG,SAEH,GACV,OAAO;;;;eAmBK,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-viewport-match/index.ts"],"names":[],"mappings":"AAGA,KAAK,UAAU,GACZ,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC;AACZ,KAAK,gBAAgB,GAAG,IAAI,GAAG,GAAG,CAAC;kCAyDlC,UAAU,EAAE,UAAU,EACtB,QAAQ,GAAE,gBAAuB,EAGjC,IAAI,GAAE,MAAM,GAAG,SAEH,GACV,OAAO;;;;eAqBK,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-warn-on-change/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAS,eAAe,CACvB,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,GAAG,CAAE,GAAG,GAAG,EAAE,EACrC,MAAM,GAAE,MAA2B,GACjC,IAAI,CAaN;eAEc,eAAe"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-warn-on-change/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAS,eAAe,CACvB,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,GAAG,CAAE,GAAG,GAAG,EAAE,EACrC,MAAM,GAAE,MAA2B,GACjC,IAAI,CAaN;eAEc,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
1
+ {"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAEA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,WAAW,IAAK,CAAC"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,WAAW,IAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/create-higher-order-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,QAAQ,CAAE,CAAC,IAAK,CAAC,SAAS,aAAa,CAAE,MAAM,CAAC,CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAEpE,MAAM,MAAM,oBAAoB,CAAE,CAAC,EAAE,CAAC,IAAK,IAAI,CAAE,QAAQ,CAAE,CAAC,CAAE,EAAE,MAAM,CAAC,CAAE,CAAC;AAE1E,MAAM,MAAM,iBAAiB,CAAE,CAAC,EAAE,CAAC,IAAK,aAAa,CACpD,oBAAoB,CAAE,CAAC,EAAE,CAAC,CAAE,GAAG,CAAC,CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,SAAS,aAAa,CAAE,GAAG,CAAE,EACnC,MAAM,SAAS,aAAa,CAAE,GAAG,CAAE,EACjC,YAAY,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,MAAM,EAAE,YAAY,EAAE,MAAM,WACjD,MAAM,YAKtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/create-higher-order-component/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,QAAQ,CAAE,CAAC,IAAK,CAAC,SAAS,aAAa,CAAE,MAAM,CAAC,CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAEpE,MAAM,MAAM,oBAAoB,CAAE,CAAC,EAAE,CAAC,IAAK,IAAI,CAAE,QAAQ,CAAE,CAAC,CAAE,EAAE,MAAM,CAAC,CAAE,CAAC;AAE1E,MAAM,MAAM,iBAAiB,CAAE,CAAC,EAAE,CAAC,IAAK,aAAa,CACpD,oBAAoB,CAAE,CAAC,EAAE,CAAC,CAAE,GAAG,CAAC,CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,SAAS,aAAa,CAAE,GAAG,CAAE,EACnC,MAAM,SAAS,aAAa,CAAE,GAAG,CAAE,EACjC,YAAY,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,MAAM,EAAE,YAAY,EAAE,MAAM,WACjD,MAAM,YAKtB"}
@@ -1,42 +1,3 @@
1
- /**
2
- * Parts of this source were derived and modified from lodash,
3
- * released under the MIT license.
4
- *
5
- * https://github.com/lodash/lodash
6
- *
7
- * Copyright JS Foundation and other contributors <https://js.foundation/>
8
- *
9
- * Based on Underscore.js, copyright Jeremy Ashkenas,
10
- * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
11
- *
12
- * This software consists of voluntary contributions made by many
13
- * individuals. For exact contribution history, see the revision history
14
- * available at https://github.com/lodash/lodash
15
- *
16
- * The following license applies to all parts of this software except as
17
- * documented below:
18
- *
19
- * ====
20
- *
21
- * Permission is hereby granted, free of charge, to any person obtaining
22
- * a copy of this software and associated documentation files (the
23
- * "Software"), to deal in the Software without restriction, including
24
- * without limitation the rights to use, copy, modify, merge, publish,
25
- * distribute, sublicense, and/or sell copies of the Software, and to
26
- * permit persons to whom the Software is furnished to do so, subject to
27
- * the following conditions:
28
- *
29
- * The above copyright notice and this permission notice shall be
30
- * included in all copies or substantial portions of the Software.
31
- *
32
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
34
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
36
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
37
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
38
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39
- */
40
1
  export interface ThrottleOptions {
41
2
  leading?: boolean;
42
3
  trailing?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/throttle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAOH,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,QAAQ,GAAK,SAAS,SAAS,CAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAM,OAAO,QACtE,SAAS,QACT,MAAM,YACF,eAAe;;;;;CAczB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/throttle/index.ts"],"names":[],"mappings":"AAyCA,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,QAAQ,GAAK,SAAS,SAAS,CAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAM,OAAO,QACtE,SAAS,QACT,MAAM,YACF,eAAe;;;;;CAczB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/compose",
3
- "version": "8.4.0",
3
+ "version": "8.6.0",
4
4
  "description": "WordPress higher-order components (HOCs).",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -46,14 +46,14 @@
46
46
  "sideEffects": false,
47
47
  "dependencies": {
48
48
  "@types/mousetrap": "^1.6.8",
49
- "@wordpress/deprecated": "^4.51.0",
50
- "@wordpress/dom": "^4.51.0",
51
- "@wordpress/element": "^8.3.0",
52
- "@wordpress/is-shallow-equal": "^5.51.0",
53
- "@wordpress/keycodes": "^4.51.0",
54
- "@wordpress/priority-queue": "^3.51.0",
55
- "@wordpress/private-apis": "^1.51.0",
56
- "@wordpress/undo-manager": "^1.51.0",
49
+ "@wordpress/deprecated": "^4.53.0",
50
+ "@wordpress/dom": "^4.53.0",
51
+ "@wordpress/element": "^8.5.0",
52
+ "@wordpress/is-shallow-equal": "^5.53.0",
53
+ "@wordpress/keycodes": "^4.53.0",
54
+ "@wordpress/priority-queue": "^3.53.0",
55
+ "@wordpress/private-apis": "^1.53.0",
56
+ "@wordpress/undo-manager": "^1.53.0",
57
57
  "change-case": "^4.1.2",
58
58
  "mousetrap": "^1.6.5",
59
59
  "use-memo-one": "^1.1.1"
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
80
+ "gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
81
81
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import { basePipe } from './pipe';
5
2
 
6
3
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ComponentType } from 'react';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
10
3
 
11
4
  /**
@@ -1,18 +1,7 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ComponentType, ComponentClass } from 'react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { isShallowEqual } from '@wordpress/is-shallow-equal';
10
3
  import { Component } from '@wordpress/element';
11
4
  import deprecated from '@wordpress/deprecated';
12
-
13
- /**
14
- * Internal dependencies
15
- */
16
5
  import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
17
6
 
18
7
  /**
@@ -1,16 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen } from '@testing-library/react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { logged } from '@wordpress/deprecated';
10
-
11
- /**
12
- * Internal dependencies
13
- */
14
3
  import pure from '../';
15
4
 
16
5
  describe( 'pure', () => {
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import compose from '../compose';
5
2
 
6
3
  describe( 'compose', () => {
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import pipe from '../pipe';
5
2
 
6
3
  describe( 'pipe', () => {
@@ -1,12 +1,5 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { Component, forwardRef } from '@wordpress/element';
5
2
  import deprecated from '@wordpress/deprecated';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
11
4
  import Listener from './listener';
12
5
 
@@ -40,7 +33,6 @@ export default function withGlobalEvents( eventTypesToHandlers ) {
40
33
  alternative: 'useEffect',
41
34
  } );
42
35
 
43
- // @ts-ignore We don't need to fix the type-related issues because this is deprecated.
44
36
  return createHigherOrderComponent( ( WrappedComponent ) => {
45
37
  class Wrapper extends Component {
46
38
  constructor( /** @type {any} */ props ) {
@@ -1,16 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen } from '@testing-library/react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { Component } from '@wordpress/element';
10
-
11
- /**
12
- * Internal dependencies
13
- */
14
3
  import withGlobalEvents from '../';
15
4
  import Listener from '../listener';
16
5
 
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import Listener from '../listener';
5
2
 
6
3
  describe( 'Listener', () => {
@@ -6,9 +6,6 @@ Wrapping a component with `withInstanceId` provides a unique `instanceId` to ser
6
6
  ## Usage
7
7
 
8
8
  ```jsx
9
- /**
10
- * WordPress dependencies
11
- */
12
9
  import { withInstanceId } from '@wordpress/compose';
13
10
 
14
11
  function MyCustomElement( { instanceId } ) {
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type {
5
2
  WithInjectedProps,
6
3
  WithoutInjectedProps,
@@ -19,7 +16,7 @@ const withInstanceId = createHigherOrderComponent(
19
16
  ) => {
20
17
  return ( props: WithoutInjectedProps< C, InstanceIdProps > ) => {
21
18
  const instanceId = useInstanceId( WrappedComponent );
22
- // @ts-ignore
19
+ // @ts-expect-error `LibraryManagedAttributes` cannot see the injected `instanceId` prop.
23
20
  return <WrappedComponent { ...props } instanceId={ instanceId } />;
24
21
  };
25
22
  },
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen } from '@testing-library/react';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import withInstanceId from '../';
10
3
 
11
4
  describe( 'withInstanceId', () => {
@@ -5,9 +5,6 @@
5
5
  ## Usage
6
6
 
7
7
  ```jsx
8
- /**
9
- * WordPress dependencies
10
- */
11
8
  import { withSafeTimeout } from '@wordpress/compose';
12
9
 
13
10
  function MyEffectfulComponent( { setTimeout } ) {
@@ -1,11 +1,4 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { Component } from '@wordpress/element';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import type {
10
3
  WithInjectedProps,
11
4
  WithoutInjectedProps,
@@ -66,7 +59,7 @@ const withSafeTimeout = createHigherOrderComponent(
66
59
 
67
60
  render() {
68
61
  return (
69
- // @ts-ignore
62
+ // @ts-expect-error `LibraryManagedAttributes` cannot see the injected timeout props.
70
63
  <OriginalComponent
71
64
  { ...this.props }
72
65
  setTimeout={ this.setTimeout }
@@ -9,9 +9,6 @@ Wrapping a component with `withState` provides state as props to the wrapped com
9
9
  ## Usage
10
10
 
11
11
  ```jsx
12
- /**
13
- * WordPress dependencies
14
- */
15
12
  import { withState } from '@wordpress/compose';
16
13
 
17
14
  function MyCounter( { count, setState } ) {
@@ -1,12 +1,5 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { Component } from '@wordpress/element';
5
2
  import deprecated from '@wordpress/deprecated';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
11
4
 
12
5
  /**
@@ -1,12 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen } from '@testing-library/react';
5
2
  import userEvent from '@testing-library/user-event';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import withState from '../';
11
4
 
12
5
  describe( 'withState', () => {
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { flushSync, useEffect, useState } from '@wordpress/element';
5
2
  import { createQueue } from '@wordpress/priority-queue';
6
3
 
@@ -1,11 +1,4 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { focus } from '@wordpress/dom';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import useRefEffect from '../use-ref-effect';
10
3
 
11
4
  /**
@@ -1,13 +1,6 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useEffect, useState } from '@wordpress/element';
5
2
  import deprecated from '@wordpress/deprecated';
6
3
  import type { RefObject } from 'react';
7
-
8
- /**
9
- * Internal dependencies
10
- */
11
4
  import { restoreFocus, copyToClipboard } from '../use-copy-to-clipboard';
12
5
 
13
6
  /**
@@ -1,18 +1,7 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen, act } from '@testing-library/react';
5
2
  import userEvent from '@testing-library/user-event';
6
-
7
- /**
8
- * WordPress dependencies
9
- */
10
3
  import deprecated from '@wordpress/deprecated';
11
4
  import { useRef } from '@wordpress/element';
12
-
13
- /**
14
- * Internal dependencies
15
- */
16
5
  import useCopyOnClick from '../';
17
6
 
18
7
  jest.mock( '@wordpress/deprecated' );
@@ -1,12 +1,5 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useRef, useLayoutEffect } from '@wordpress/element';
5
2
  import type { MutableRefObject, RefCallback } from 'react';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import useRefEffect from '../use-ref-effect';
11
4
 
12
5
  /**
@@ -1,12 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { render, screen, act } from '@testing-library/react';
5
2
  import userEvent from '@testing-library/user-event';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import useCopyToClipboard, { copyToClipboard, restoreFocus } from '../';
11
4
 
12
5
  interface TestComponentProps {
@@ -1,16 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { useMemoOne } from 'use-memo-one';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { useEffect } from '@wordpress/element';
10
-
11
- /**
12
- * Internal dependencies
13
- */
14
3
  import { debounce } from '../../utils/debounce';
15
4
  import type { DebounceOptions, DebouncedFunc } from '../../utils/debounce';
16
5
 
@@ -1,11 +1,4 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useEffect, useState } from '@wordpress/element';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import useDebounce from '../use-debounce';
10
3
 
11
4
  /**