@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.
- package/CHANGELOG.md +13 -0
- package/build/higher-order/compose.cjs.map +2 -2
- package/build/higher-order/if-condition/index.cjs.map +2 -2
- package/build/higher-order/pure/index.cjs.map +2 -2
- package/build/higher-order/with-global-events/index.cjs.map +2 -2
- package/build/higher-order/with-instance-id/index.cjs.map +2 -2
- package/build/higher-order/with-safe-timeout/index.cjs +1 -1
- package/build/higher-order/with-safe-timeout/index.cjs.map +2 -2
- package/build/higher-order/with-state/index.cjs.map +2 -2
- package/build/hooks/use-async-list/index.cjs.map +2 -2
- package/build/hooks/use-constrained-tabbing/index.cjs.map +2 -2
- package/build/hooks/use-copy-on-click/index.cjs.map +2 -2
- package/build/hooks/use-copy-to-clipboard/index.cjs.map +2 -2
- package/build/hooks/use-debounce/index.cjs.map +2 -2
- package/build/hooks/use-debounced-input/index.cjs.map +2 -2
- package/build/hooks/use-dialog/index.cjs.map +2 -2
- package/build/hooks/use-disabled/index.cjs.map +2 -2
- package/build/hooks/use-dragging/index.cjs.map +2 -2
- package/build/hooks/use-drop-zone/index.cjs.map +2 -2
- package/build/hooks/use-event/index.cjs.map +2 -2
- package/build/hooks/use-fixed-window-list/index.cjs +98 -92
- package/build/hooks/use-fixed-window-list/index.cjs.map +3 -3
- package/build/hooks/use-focus-outside/index.cjs.map +2 -2
- package/build/hooks/use-focus-return/index.cjs.map +2 -2
- package/build/hooks/use-focusable-iframe/index.cjs.map +2 -2
- package/build/hooks/use-instance-id/index.cjs.map +2 -2
- package/build/hooks/use-isomorphic-layout-effect/index.cjs.map +2 -2
- package/build/hooks/use-keyboard-shortcut/index.cjs.map +2 -2
- package/build/hooks/use-media-query/index.cjs.map +2 -2
- package/build/hooks/use-merge-refs/index.cjs.map +2 -2
- package/build/hooks/use-observable-value/index.cjs.map +2 -2
- package/build/hooks/use-previous/index.cjs.map +2 -2
- package/build/hooks/use-reduced-motion/index.cjs.map +2 -2
- package/build/hooks/use-ref-effect/index.cjs.map +2 -2
- package/build/hooks/use-resize-observer/index.cjs.map +2 -2
- package/build/hooks/use-resize-observer/legacy/index.cjs.map +2 -2
- package/build/hooks/use-resize-observer/use-resize-observer.cjs.map +2 -2
- package/build/hooks/use-state-with-history/index.cjs.map +2 -2
- package/build/hooks/use-throttle/index.cjs.map +2 -2
- package/build/hooks/use-viewport-match/index.cjs +1 -1
- package/build/hooks/use-viewport-match/index.cjs.map +2 -2
- package/build/hooks/use-warn-on-change/index.cjs.map +2 -2
- package/build/lock-unlock.cjs.map +2 -2
- package/build/private-apis.cjs.map +2 -2
- package/build/utils/create-higher-order-component/index.cjs.map +2 -2
- package/build/utils/throttle/index.cjs.map +2 -2
- package/build-module/higher-order/compose.mjs.map +2 -2
- package/build-module/higher-order/if-condition/index.mjs.map +2 -2
- package/build-module/higher-order/pure/index.mjs.map +2 -2
- package/build-module/higher-order/with-global-events/index.mjs.map +2 -2
- package/build-module/higher-order/with-instance-id/index.mjs.map +2 -2
- package/build-module/higher-order/with-safe-timeout/index.mjs +1 -1
- package/build-module/higher-order/with-safe-timeout/index.mjs.map +2 -2
- package/build-module/higher-order/with-state/index.mjs.map +2 -2
- package/build-module/hooks/use-async-list/index.mjs.map +2 -2
- package/build-module/hooks/use-constrained-tabbing/index.mjs.map +2 -2
- package/build-module/hooks/use-copy-on-click/index.mjs.map +2 -2
- package/build-module/hooks/use-copy-to-clipboard/index.mjs.map +2 -2
- package/build-module/hooks/use-debounce/index.mjs.map +2 -2
- package/build-module/hooks/use-debounced-input/index.mjs.map +2 -2
- package/build-module/hooks/use-dialog/index.mjs.map +2 -2
- package/build-module/hooks/use-disabled/index.mjs.map +2 -2
- package/build-module/hooks/use-dragging/index.mjs.map +2 -2
- package/build-module/hooks/use-drop-zone/index.mjs.map +2 -2
- package/build-module/hooks/use-event/index.mjs.map +2 -2
- package/build-module/hooks/use-fixed-window-list/index.mjs +89 -93
- package/build-module/hooks/use-fixed-window-list/index.mjs.map +2 -2
- package/build-module/hooks/use-focus-outside/index.mjs.map +2 -2
- package/build-module/hooks/use-focus-return/index.mjs.map +2 -2
- package/build-module/hooks/use-focusable-iframe/index.mjs.map +2 -2
- package/build-module/hooks/use-instance-id/index.mjs.map +2 -2
- package/build-module/hooks/use-isomorphic-layout-effect/index.mjs.map +2 -2
- package/build-module/hooks/use-keyboard-shortcut/index.mjs.map +2 -2
- package/build-module/hooks/use-media-query/index.mjs.map +2 -2
- package/build-module/hooks/use-merge-refs/index.mjs.map +2 -2
- package/build-module/hooks/use-observable-value/index.mjs.map +2 -2
- package/build-module/hooks/use-previous/index.mjs.map +2 -2
- package/build-module/hooks/use-reduced-motion/index.mjs.map +2 -2
- package/build-module/hooks/use-ref-effect/index.mjs.map +2 -2
- package/build-module/hooks/use-resize-observer/index.mjs.map +2 -2
- package/build-module/hooks/use-resize-observer/legacy/index.mjs.map +2 -2
- package/build-module/hooks/use-resize-observer/use-resize-observer.mjs.map +2 -2
- package/build-module/hooks/use-state-with-history/index.mjs.map +2 -2
- package/build-module/hooks/use-throttle/index.mjs.map +2 -2
- package/build-module/hooks/use-viewport-match/index.mjs +1 -1
- package/build-module/hooks/use-viewport-match/index.mjs.map +2 -2
- package/build-module/hooks/use-warn-on-change/index.mjs.map +2 -2
- package/build-module/lock-unlock.mjs.map +2 -2
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/utils/create-higher-order-component/index.mjs.map +2 -2
- package/build-module/utils/throttle/index.mjs.map +2 -2
- package/build-types/higher-order/compose.d.ts.map +1 -1
- package/build-types/higher-order/if-condition/index.d.ts +0 -3
- package/build-types/higher-order/if-condition/index.d.ts.map +1 -1
- package/build-types/higher-order/pure/index.d.ts +0 -3
- package/build-types/higher-order/pure/index.d.ts.map +1 -1
- package/build-types/higher-order/with-global-events/index.d.ts.map +1 -1
- package/build-types/higher-order/with-instance-id/index.d.ts +0 -3
- package/build-types/higher-order/with-instance-id/index.d.ts.map +1 -1
- package/build-types/higher-order/with-safe-timeout/index.d.ts +0 -3
- package/build-types/higher-order/with-safe-timeout/index.d.ts.map +1 -1
- package/build-types/higher-order/with-state/index.d.ts.map +1 -1
- package/build-types/hooks/use-async-list/index.d.ts.map +1 -1
- package/build-types/hooks/use-constrained-tabbing/index.d.ts.map +1 -1
- package/build-types/hooks/use-copy-on-click/index.d.ts.map +1 -1
- package/build-types/hooks/use-copy-to-clipboard/index.d.ts.map +1 -1
- package/build-types/hooks/use-debounce/index.d.ts.map +1 -1
- package/build-types/hooks/use-debounced-input/index.d.ts.map +1 -1
- package/build-types/hooks/use-dialog/index.d.ts +0 -3
- package/build-types/hooks/use-dialog/index.d.ts.map +1 -1
- package/build-types/hooks/use-disabled/index.d.ts.map +1 -1
- package/build-types/hooks/use-dragging/index.d.ts.map +1 -1
- package/build-types/hooks/use-drop-zone/index.d.ts.map +1 -1
- package/build-types/hooks/use-event/index.d.ts.map +1 -1
- package/build-types/hooks/use-fixed-window-list/index.d.ts +1 -1
- package/build-types/hooks/use-fixed-window-list/index.d.ts.map +1 -1
- package/build-types/hooks/use-focus-outside/index.d.ts.map +1 -1
- package/build-types/hooks/use-focus-return/index.d.ts.map +1 -1
- package/build-types/hooks/use-focusable-iframe/index.d.ts +0 -3
- package/build-types/hooks/use-focusable-iframe/index.d.ts.map +1 -1
- package/build-types/hooks/use-instance-id/index.d.ts.map +1 -1
- package/build-types/hooks/use-isomorphic-layout-effect/index.d.ts +0 -3
- package/build-types/hooks/use-isomorphic-layout-effect/index.d.ts.map +1 -1
- package/build-types/hooks/use-keyboard-shortcut/index.d.ts +0 -3
- package/build-types/hooks/use-keyboard-shortcut/index.d.ts.map +1 -1
- package/build-types/hooks/use-media-query/index.d.ts.map +1 -1
- package/build-types/hooks/use-merge-refs/index.d.ts.map +1 -1
- package/build-types/hooks/use-observable-value/index.d.ts +0 -3
- package/build-types/hooks/use-observable-value/index.d.ts.map +1 -1
- package/build-types/hooks/use-previous/index.d.ts.map +1 -1
- package/build-types/hooks/use-reduced-motion/index.d.ts.map +1 -1
- package/build-types/hooks/use-ref-effect/index.d.ts +0 -3
- package/build-types/hooks/use-ref-effect/index.d.ts.map +1 -1
- package/build-types/hooks/use-resize-observer/index.d.ts +1 -4
- package/build-types/hooks/use-resize-observer/index.d.ts.map +1 -1
- package/build-types/hooks/use-resize-observer/legacy/index.d.ts +0 -3
- package/build-types/hooks/use-resize-observer/legacy/index.d.ts.map +1 -1
- package/build-types/hooks/use-resize-observer/use-resize-observer.d.ts.map +1 -1
- package/build-types/hooks/use-state-with-history/index.d.ts.map +1 -1
- package/build-types/hooks/use-throttle/index.d.ts.map +1 -1
- package/build-types/hooks/use-viewport-match/index.d.ts.map +1 -1
- package/build-types/hooks/use-warn-on-change/index.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/utils/create-higher-order-component/index.d.ts.map +1 -1
- package/build-types/utils/throttle/index.d.ts +0 -39
- package/build-types/utils/throttle/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/higher-order/compose.ts +0 -3
- package/src/higher-order/if-condition/index.tsx +0 -7
- package/src/higher-order/pure/index.tsx +0 -11
- package/src/higher-order/pure/test/index.js +0 -11
- package/src/higher-order/test/compose.ts +0 -3
- package/src/higher-order/test/pipe.ts +0 -3
- package/src/higher-order/with-global-events/index.js +0 -8
- package/src/higher-order/with-global-events/test/index.js +0 -11
- package/src/higher-order/with-global-events/test/listener.js +0 -3
- package/src/higher-order/with-instance-id/README.md +0 -3
- package/src/higher-order/with-instance-id/index.tsx +1 -4
- package/src/higher-order/with-instance-id/test/index.js +0 -7
- package/src/higher-order/with-safe-timeout/README.md +0 -3
- package/src/higher-order/with-safe-timeout/index.tsx +1 -8
- package/src/higher-order/with-state/README.md +0 -3
- package/src/higher-order/with-state/index.js +0 -7
- package/src/higher-order/with-state/test/index.js +0 -7
- package/src/hooks/use-async-list/index.ts +0 -3
- package/src/hooks/use-constrained-tabbing/index.ts +0 -7
- package/src/hooks/use-copy-on-click/index.ts +0 -7
- package/src/hooks/use-copy-on-click/test/index.tsx +0 -11
- package/src/hooks/use-copy-to-clipboard/index.ts +0 -7
- package/src/hooks/use-copy-to-clipboard/test/index.tsx +0 -7
- package/src/hooks/use-debounce/index.ts +0 -11
- package/src/hooks/use-debounced-input/index.ts +0 -7
- package/src/hooks/use-dialog/index.ts +0 -11
- package/src/hooks/use-dialog/test/index.tsx +0 -7
- package/src/hooks/use-disabled/index.ts +0 -3
- package/src/hooks/use-disabled/test/index.js +0 -11
- package/src/hooks/use-dragging/README.md +0 -3
- package/src/hooks/use-dragging/index.ts +0 -7
- package/src/hooks/use-drop-zone/index.ts +0 -3
- package/src/hooks/use-drop-zone/test/index.js +0 -11
- package/src/hooks/use-event/index.ts +0 -3
- package/src/hooks/use-fixed-window-list/index.ts +128 -116
- package/src/hooks/use-focus-outside/index.ts +0 -3
- package/src/hooks/use-focus-outside/test/index.js +0 -7
- package/src/hooks/use-focus-return/index.ts +0 -3
- package/src/hooks/use-focusable-iframe/index.ts +0 -7
- package/src/hooks/use-instance-id/README.md +0 -3
- package/src/hooks/use-instance-id/index.ts +0 -3
- package/src/hooks/use-instance-id/test/index.js +0 -7
- package/src/hooks/use-isomorphic-layout-effect/index.ts +0 -3
- package/src/hooks/use-keyboard-shortcut/index.ts +0 -7
- package/src/hooks/use-media-query/index.ts +0 -3
- package/src/hooks/use-media-query/test/index.js +0 -7
- package/src/hooks/use-media-query/test/ssr.js +0 -8
- package/src/hooks/use-merge-refs/index.ts +0 -3
- package/src/hooks/use-merge-refs/test/index.js +0 -11
- package/src/hooks/use-observable-value/index.ts +0 -7
- package/src/hooks/use-observable-value/test/index.js +0 -7
- package/src/hooks/use-previous/README.md +0 -3
- package/src/hooks/use-previous/index.ts +0 -3
- package/src/hooks/use-reduced-motion/index.ts +0 -3
- package/src/hooks/use-ref-effect/index.ts +0 -7
- package/src/hooks/use-resize-observer/index.ts +1 -7
- package/src/hooks/use-resize-observer/legacy/index.tsx +0 -10
- package/src/hooks/use-resize-observer/use-resize-observer.ts +0 -6
- package/src/hooks/use-state-with-history/index.ts +0 -3
- package/src/hooks/use-state-with-history/test/index.js +0 -7
- package/src/hooks/use-throttle/index.ts +0 -11
- package/src/hooks/use-viewport-match/index.ts +3 -8
- package/src/hooks/use-viewport-match/test/index.js +6 -15
- package/src/hooks/use-warn-on-change/index.ts +0 -3
- package/src/lock-unlock.ts +0 -3
- package/src/private-apis.ts +0 -3
- package/src/utils/create-higher-order-component/index.ts +0 -3
- package/src/utils/create-higher-order-component/test/index.js +0 -7
- package/src/utils/debounce/test/index.ts +0 -3
- package/src/utils/observable-map/test/index.js +0 -3
- package/src/utils/subscribe-delegated-listener/test/index.js +0 -3
- package/src/utils/throttle/index.ts +0 -4
- package/src/utils/throttle/test/index.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-focusable-iframe/index.ts"],"names":[],"mappings":"AAAA
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-isomorphic-layout-effect/index.ts"],"names":[],"mappings":"AAAA
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-keyboard-shortcut/index.ts"],"names":[],"mappings":"
|
|
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":"
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-observable-value/index.ts"],"names":[],"mappings":"
|
|
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":"
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-ref-effect/index.ts"],"names":[],"mappings":"AAAA
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-resize-observer/legacy/index.tsx"],"names":[],"mappings":"AAAA
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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.
|
|
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.
|
|
50
|
-
"@wordpress/dom": "^4.
|
|
51
|
-
"@wordpress/element": "^8.
|
|
52
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
53
|
-
"@wordpress/keycodes": "^4.
|
|
54
|
-
"@wordpress/priority-queue": "^3.
|
|
55
|
-
"@wordpress/private-apis": "^1.
|
|
56
|
-
"@wordpress/undo-manager": "^1.
|
|
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": "
|
|
80
|
+
"gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
|
|
81
81
|
}
|
|
@@ -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,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 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-
|
|
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
|
-
* 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-
|
|
62
|
+
// @ts-expect-error `LibraryManagedAttributes` cannot see the injected timeout props.
|
|
70
63
|
<OriginalComponent
|
|
71
64
|
{ ...this.props }
|
|
72
65
|
setTimeout={ this.setTimeout }
|
|
@@ -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,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
|
|