@wordpress/compose 7.36.1-next.8fd3f8831.0 → 7.37.1-next.79a2f3cdd.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/LICENSE.md +1 -1
- package/build/higher-order/with-global-events/index.cjs +2 -2
- package/build/higher-order/with-instance-id/index.cjs +1 -1
- package/build/higher-order/with-state/index.cjs +1 -1
- package/build/hooks/use-constrained-tabbing/index.cjs +1 -1
- package/build/hooks/use-copy-on-click/index.cjs +2 -2
- package/build/hooks/use-copy-to-clipboard/index.cjs +2 -2
- package/build/hooks/use-debounced-input/index.cjs +1 -1
- package/build/hooks/use-dialog/index.cjs +5 -5
- package/build/hooks/use-disabled/index.cjs +1 -1
- package/build/hooks/use-dragging/index.cjs +1 -1
- package/build/hooks/use-drop-zone/index.cjs +2 -2
- package/build/hooks/use-focus-on-mount/index.cjs +1 -1
- package/build/hooks/use-focusable-iframe/index.cjs +1 -1
- package/build/hooks/use-keyboard-shortcut/index.cjs +1 -1
- package/build/hooks/use-reduced-motion/index.cjs +1 -1
- package/build/hooks/use-resize-observer/index.cjs +1 -1
- package/build/hooks/use-resize-observer/use-resize-observer.cjs +1 -1
- package/build/hooks/use-viewport-match/index.cjs +1 -1
- package/build/hooks/use-warn-on-change/index.cjs +1 -1
- package/build/index.cjs +38 -38
- package/build-module/higher-order/{compose.js → compose.mjs} +2 -2
- package/build-module/higher-order/if-condition/{index.js → index.mjs} +2 -2
- package/build-module/higher-order/{pipe.js → pipe.mjs} +1 -1
- package/build-module/higher-order/pure/{index.js → index.mjs} +2 -2
- package/build-module/higher-order/with-global-events/{index.js → index.mjs} +3 -3
- package/build-module/higher-order/with-global-events/{listener.js → listener.mjs} +1 -1
- package/build-module/higher-order/with-instance-id/{index.js → index.mjs} +3 -3
- package/build-module/higher-order/with-safe-timeout/{index.js → index.mjs} +2 -2
- package/build-module/higher-order/with-state/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-async-list/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-constrained-tabbing/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-copy-on-click/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-copy-to-clipboard/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-debounce/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-debounced-input/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-dialog/{index.js → index.mjs} +6 -6
- package/build-module/hooks/use-disabled/{index.js → index.mjs} +3 -3
- package/build-module/hooks/use-dragging/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-drop-zone/{index.js → index.mjs} +3 -3
- package/build-module/hooks/use-event/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-fixed-window-list/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-focus-on-mount/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-focus-outside/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-focus-return/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-focusable-iframe/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-instance-id/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-isomorphic-layout-effect/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-keyboard-shortcut/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-media-query/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-merge-refs/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-observable-value/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-previous/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-reduced-motion/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-ref-effect/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-resize-observer/{index.js → index.mjs} +3 -3
- package/build-module/hooks/use-resize-observer/legacy/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-resize-observer/{use-resize-observer.js → use-resize-observer.mjs} +2 -2
- package/build-module/hooks/use-state-with-history/{index.js → index.mjs} +1 -1
- package/build-module/hooks/use-throttle/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-viewport-match/{index.js → index.mjs} +2 -2
- package/build-module/hooks/use-warn-on-change/{index.js → index.mjs} +2 -2
- package/build-module/{index.js → index.mjs} +43 -43
- package/build-module/utils/create-higher-order-component/{index.js → index.mjs} +1 -1
- package/build-module/utils/debounce/{index.js → index.mjs} +1 -1
- package/build-module/utils/observable-map/{index.js → index.mjs} +1 -1
- package/build-module/utils/throttle/{index.js → index.mjs} +2 -2
- package/package.json +14 -12
- /package/build-module/higher-order/{compose.js.map → compose.mjs.map} +0 -0
- /package/build-module/higher-order/if-condition/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/higher-order/{pipe.js.map → pipe.mjs.map} +0 -0
- /package/build-module/higher-order/pure/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/higher-order/with-global-events/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/higher-order/with-global-events/{listener.js.map → listener.mjs.map} +0 -0
- /package/build-module/higher-order/with-instance-id/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/higher-order/with-safe-timeout/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/higher-order/with-state/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-async-list/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-constrained-tabbing/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-copy-on-click/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-copy-to-clipboard/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-debounce/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-debounced-input/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-dialog/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-disabled/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-dragging/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-drop-zone/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-event/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-fixed-window-list/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-focus-on-mount/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-focus-outside/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-focus-return/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-focusable-iframe/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-instance-id/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-isomorphic-layout-effect/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-keyboard-shortcut/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-media-query/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-merge-refs/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-observable-value/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-previous/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-reduced-motion/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-ref-effect/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-resize-observer/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-resize-observer/legacy/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-resize-observer/{use-resize-observer.js.map → use-resize-observer.mjs.map} +0 -0
- /package/build-module/hooks/use-state-with-history/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-throttle/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-viewport-match/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/use-warn-on-change/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/create-higher-order-component/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/debounce/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/observable-map/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/throttle/{index.js.map → index.mjs.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-focusable-iframe/index.ts
|
|
2
|
-
import useRefEffect from "../use-ref-effect/index.
|
|
2
|
+
import useRefEffect from "../use-ref-effect/index.mjs";
|
|
3
3
|
function useFocusableIframe() {
|
|
4
4
|
return useRefEffect((element) => {
|
|
5
5
|
const { ownerDocument } = element;
|
|
@@ -24,4 +24,4 @@ function useFocusableIframe() {
|
|
|
24
24
|
export {
|
|
25
25
|
useFocusableIframe as default
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=index.
|
|
27
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-reduced-motion/index.js
|
|
2
|
-
import useMediaQuery from "../use-media-query/index.
|
|
2
|
+
import useMediaQuery from "../use-media-query/index.mjs";
|
|
3
3
|
var useReducedMotion = () => useMediaQuery("(prefers-reduced-motion: reduce)");
|
|
4
4
|
var use_reduced_motion_default = useReducedMotion;
|
|
5
5
|
export {
|
|
6
6
|
use_reduced_motion_default as default
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=index.
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-resize-observer/index.ts
|
|
2
|
-
import { useResizeObserver as _useResizeObserver } from "./use-resize-observer.
|
|
3
|
-
import _useLegacyResizeObserver from "./legacy/index.
|
|
2
|
+
import { useResizeObserver as _useResizeObserver } from "./use-resize-observer.mjs";
|
|
3
|
+
import _useLegacyResizeObserver from "./legacy/index.mjs";
|
|
4
4
|
function useResizeObserver(callback, options = {}) {
|
|
5
5
|
return callback ? _useResizeObserver(callback, options) : _useLegacyResizeObserver();
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
useResizeObserver as default
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=index.
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-resize-observer/legacy/index.tsx
|
|
2
2
|
import { useCallback, useRef, useState } from "@wordpress/element";
|
|
3
|
-
import { useResizeObserver } from "../use-resize-observer.
|
|
3
|
+
import { useResizeObserver } from "../use-resize-observer.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
var extractSize = (entry) => {
|
|
6
6
|
let entrySize;
|
|
@@ -60,4 +60,4 @@ function useLegacyResizeObserver() {
|
|
|
60
60
|
export {
|
|
61
61
|
useLegacyResizeObserver as default
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=index.
|
|
63
|
+
//# sourceMappingURL=index.mjs.map
|
package/build-module/hooks/use-resize-observer/{use-resize-observer.js → use-resize-observer.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-resize-observer/use-resize-observer.ts
|
|
2
2
|
import { useRef } from "@wordpress/element";
|
|
3
|
-
import useEvent from "../use-event/index.
|
|
3
|
+
import useEvent from "../use-event/index.mjs";
|
|
4
4
|
function useResizeObserver(callback, resizeObserverOptions = {}) {
|
|
5
5
|
const callbackEvent = useEvent(callback);
|
|
6
6
|
const observedElementRef = useRef();
|
|
@@ -23,4 +23,4 @@ function useResizeObserver(callback, resizeObserverOptions = {}) {
|
|
|
23
23
|
export {
|
|
24
24
|
useResizeObserver
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=use-resize-observer.
|
|
26
|
+
//# sourceMappingURL=use-resize-observer.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-throttle/index.js
|
|
2
2
|
import { useMemoOne } from "use-memo-one";
|
|
3
3
|
import { useEffect } from "@wordpress/element";
|
|
4
|
-
import { throttle } from "../../utils/throttle/index.
|
|
4
|
+
import { throttle } from "../../utils/throttle/index.mjs";
|
|
5
5
|
function useThrottle(fn, wait, options) {
|
|
6
6
|
const throttled = useMemoOne(
|
|
7
7
|
() => throttle(fn, wait ?? 0, options),
|
|
@@ -13,4 +13,4 @@ function useThrottle(fn, wait, options) {
|
|
|
13
13
|
export {
|
|
14
14
|
useThrottle as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=index.
|
|
16
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-viewport-match/index.js
|
|
2
2
|
import { createContext, useContext } from "@wordpress/element";
|
|
3
|
-
import useMediaQuery from "../use-media-query/index.
|
|
3
|
+
import useMediaQuery from "../use-media-query/index.mjs";
|
|
4
4
|
var BREAKPOINTS = {
|
|
5
5
|
xhuge: 1920,
|
|
6
6
|
huge: 1440,
|
|
@@ -41,4 +41,4 @@ var use_viewport_match_default = useViewportMatch;
|
|
|
41
41
|
export {
|
|
42
42
|
use_viewport_match_default as default
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=index.
|
|
44
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/compose/src/hooks/use-warn-on-change/index.js
|
|
2
|
-
import usePrevious from "../use-previous/index.
|
|
2
|
+
import usePrevious from "../use-previous/index.mjs";
|
|
3
3
|
function useWarnOnChange(object, prefix = "Change detection") {
|
|
4
4
|
const previousValues = usePrevious(object);
|
|
5
5
|
Object.entries(previousValues ?? []).forEach(([key, value]) => {
|
|
@@ -23,4 +23,4 @@ var use_warn_on_change_default = useWarnOnChange;
|
|
|
23
23
|
export {
|
|
24
24
|
use_warn_on_change_default as default
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=index.
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
// packages/compose/src/index.js
|
|
2
|
-
export * from "./utils/create-higher-order-component/index.
|
|
3
|
-
export * from "./utils/debounce/index.
|
|
4
|
-
export * from "./utils/throttle/index.
|
|
5
|
-
export * from "./utils/observable-map/index.
|
|
6
|
-
import { default as default2 } from "./higher-order/compose.
|
|
7
|
-
import { default as default3 } from "./higher-order/pipe.
|
|
8
|
-
import { default as default4 } from "./higher-order/if-condition/index.
|
|
9
|
-
import { default as default5 } from "./higher-order/pure/index.
|
|
10
|
-
import { default as default6 } from "./higher-order/with-global-events/index.
|
|
11
|
-
import { default as default7 } from "./higher-order/with-instance-id/index.
|
|
12
|
-
import { default as default8 } from "./higher-order/with-safe-timeout/index.
|
|
13
|
-
import { default as default9 } from "./higher-order/with-state/index.
|
|
14
|
-
import { default as default10 } from "./hooks/use-constrained-tabbing/index.
|
|
15
|
-
import { default as default11 } from "./hooks/use-copy-on-click/index.
|
|
16
|
-
import { default as default12 } from "./hooks/use-copy-to-clipboard/index.
|
|
17
|
-
import { default as default13 } from "./hooks/use-dialog/index.
|
|
18
|
-
import { default as default14 } from "./hooks/use-disabled/index.
|
|
19
|
-
import { default as default15 } from "./hooks/use-event/index.
|
|
20
|
-
import { default as default16 } from "./hooks/use-dragging/index.
|
|
21
|
-
import { default as default17 } from "./hooks/use-focus-on-mount/index.
|
|
22
|
-
import { default as default18 } from "./hooks/use-focus-outside/index.
|
|
23
|
-
import { default as default19 } from "./hooks/use-focus-return/index.
|
|
24
|
-
import { default as default20 } from "./hooks/use-instance-id/index.
|
|
25
|
-
import { default as default21 } from "./hooks/use-isomorphic-layout-effect/index.
|
|
26
|
-
import { default as default22 } from "./hooks/use-keyboard-shortcut/index.
|
|
27
|
-
import { default as default23 } from "./hooks/use-media-query/index.
|
|
28
|
-
import { default as default24 } from "./hooks/use-previous/index.
|
|
29
|
-
import { default as default25 } from "./hooks/use-reduced-motion/index.
|
|
30
|
-
import { default as default26 } from "./hooks/use-state-with-history/index.
|
|
31
|
-
import { default as default27 } from "./hooks/use-viewport-match/index.
|
|
32
|
-
import { default as default28 } from "./hooks/use-resize-observer/index.
|
|
33
|
-
import { default as default29 } from "./hooks/use-async-list/index.
|
|
34
|
-
import { default as default30 } from "./hooks/use-warn-on-change/index.
|
|
35
|
-
import { default as default31 } from "./hooks/use-debounce/index.
|
|
36
|
-
import { default as default32 } from "./hooks/use-debounced-input/index.
|
|
37
|
-
import { default as default33 } from "./hooks/use-throttle/index.
|
|
38
|
-
import { default as default34 } from "./hooks/use-merge-refs/index.
|
|
39
|
-
import { default as default35 } from "./hooks/use-ref-effect/index.
|
|
40
|
-
import { default as default36 } from "./hooks/use-drop-zone/index.
|
|
41
|
-
import { default as default37 } from "./hooks/use-focusable-iframe/index.
|
|
42
|
-
import { default as default38 } from "./hooks/use-fixed-window-list/index.
|
|
43
|
-
import { default as default39 } from "./hooks/use-observable-value/index.
|
|
2
|
+
export * from "./utils/create-higher-order-component/index.mjs";
|
|
3
|
+
export * from "./utils/debounce/index.mjs";
|
|
4
|
+
export * from "./utils/throttle/index.mjs";
|
|
5
|
+
export * from "./utils/observable-map/index.mjs";
|
|
6
|
+
import { default as default2 } from "./higher-order/compose.mjs";
|
|
7
|
+
import { default as default3 } from "./higher-order/pipe.mjs";
|
|
8
|
+
import { default as default4 } from "./higher-order/if-condition/index.mjs";
|
|
9
|
+
import { default as default5 } from "./higher-order/pure/index.mjs";
|
|
10
|
+
import { default as default6 } from "./higher-order/with-global-events/index.mjs";
|
|
11
|
+
import { default as default7 } from "./higher-order/with-instance-id/index.mjs";
|
|
12
|
+
import { default as default8 } from "./higher-order/with-safe-timeout/index.mjs";
|
|
13
|
+
import { default as default9 } from "./higher-order/with-state/index.mjs";
|
|
14
|
+
import { default as default10 } from "./hooks/use-constrained-tabbing/index.mjs";
|
|
15
|
+
import { default as default11 } from "./hooks/use-copy-on-click/index.mjs";
|
|
16
|
+
import { default as default12 } from "./hooks/use-copy-to-clipboard/index.mjs";
|
|
17
|
+
import { default as default13 } from "./hooks/use-dialog/index.mjs";
|
|
18
|
+
import { default as default14 } from "./hooks/use-disabled/index.mjs";
|
|
19
|
+
import { default as default15 } from "./hooks/use-event/index.mjs";
|
|
20
|
+
import { default as default16 } from "./hooks/use-dragging/index.mjs";
|
|
21
|
+
import { default as default17 } from "./hooks/use-focus-on-mount/index.mjs";
|
|
22
|
+
import { default as default18 } from "./hooks/use-focus-outside/index.mjs";
|
|
23
|
+
import { default as default19 } from "./hooks/use-focus-return/index.mjs";
|
|
24
|
+
import { default as default20 } from "./hooks/use-instance-id/index.mjs";
|
|
25
|
+
import { default as default21 } from "./hooks/use-isomorphic-layout-effect/index.mjs";
|
|
26
|
+
import { default as default22 } from "./hooks/use-keyboard-shortcut/index.mjs";
|
|
27
|
+
import { default as default23 } from "./hooks/use-media-query/index.mjs";
|
|
28
|
+
import { default as default24 } from "./hooks/use-previous/index.mjs";
|
|
29
|
+
import { default as default25 } from "./hooks/use-reduced-motion/index.mjs";
|
|
30
|
+
import { default as default26 } from "./hooks/use-state-with-history/index.mjs";
|
|
31
|
+
import { default as default27 } from "./hooks/use-viewport-match/index.mjs";
|
|
32
|
+
import { default as default28 } from "./hooks/use-resize-observer/index.mjs";
|
|
33
|
+
import { default as default29 } from "./hooks/use-async-list/index.mjs";
|
|
34
|
+
import { default as default30 } from "./hooks/use-warn-on-change/index.mjs";
|
|
35
|
+
import { default as default31 } from "./hooks/use-debounce/index.mjs";
|
|
36
|
+
import { default as default32 } from "./hooks/use-debounced-input/index.mjs";
|
|
37
|
+
import { default as default33 } from "./hooks/use-throttle/index.mjs";
|
|
38
|
+
import { default as default34 } from "./hooks/use-merge-refs/index.mjs";
|
|
39
|
+
import { default as default35 } from "./hooks/use-ref-effect/index.mjs";
|
|
40
|
+
import { default as default36 } from "./hooks/use-drop-zone/index.mjs";
|
|
41
|
+
import { default as default37 } from "./hooks/use-focusable-iframe/index.mjs";
|
|
42
|
+
import { default as default38 } from "./hooks/use-fixed-window-list/index.mjs";
|
|
43
|
+
import { default as default39 } from "./hooks/use-observable-value/index.mjs";
|
|
44
44
|
export {
|
|
45
45
|
default13 as __experimentalUseDialog,
|
|
46
46
|
default16 as __experimentalUseDragging,
|
|
@@ -81,4 +81,4 @@ export {
|
|
|
81
81
|
default8 as withSafeTimeout,
|
|
82
82
|
default9 as withState
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=index.
|
|
84
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/compose/src/utils/throttle/index.ts
|
|
2
|
-
import { debounce } from "../debounce/index.
|
|
2
|
+
import { debounce } from "../debounce/index.mjs";
|
|
3
3
|
var throttle = (func, wait, options) => {
|
|
4
4
|
let leading = true;
|
|
5
5
|
let trailing = true;
|
|
@@ -16,4 +16,4 @@ var throttle = (func, wait, options) => {
|
|
|
16
16
|
export {
|
|
17
17
|
throttle
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=index.
|
|
19
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/compose",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.37.1-next.79a2f3cdd.0",
|
|
4
4
|
"description": "WordPress higher-order components (HOCs).",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,13 +31,12 @@
|
|
|
31
31
|
"build-types",
|
|
32
32
|
"*.md"
|
|
33
33
|
],
|
|
34
|
-
"type": "module",
|
|
35
34
|
"main": "build/index.cjs",
|
|
36
|
-
"module": "build-module/index.
|
|
35
|
+
"module": "build-module/index.mjs",
|
|
37
36
|
"exports": {
|
|
38
37
|
".": {
|
|
39
38
|
"types": "./build-types/index.d.ts",
|
|
40
|
-
"import": "./build-module/index.
|
|
39
|
+
"import": "./build-module/index.mjs",
|
|
41
40
|
"require": "./build/index.cjs"
|
|
42
41
|
},
|
|
43
42
|
"./package.json": "./package.json"
|
|
@@ -48,23 +47,26 @@
|
|
|
48
47
|
"sideEffects": false,
|
|
49
48
|
"dependencies": {
|
|
50
49
|
"@types/mousetrap": "^1.6.8",
|
|
51
|
-
"@wordpress/deprecated": "^4.
|
|
52
|
-
"@wordpress/dom": "^4.
|
|
53
|
-
"@wordpress/element": "^6.
|
|
54
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
55
|
-
"@wordpress/keycodes": "^4.
|
|
56
|
-
"@wordpress/priority-queue": "^3.
|
|
57
|
-
"@wordpress/undo-manager": "^1.
|
|
50
|
+
"@wordpress/deprecated": "^4.37.1-next.79a2f3cdd.0",
|
|
51
|
+
"@wordpress/dom": "^4.37.1-next.79a2f3cdd.0",
|
|
52
|
+
"@wordpress/element": "^6.37.1-next.79a2f3cdd.0",
|
|
53
|
+
"@wordpress/is-shallow-equal": "^5.37.1-next.79a2f3cdd.0",
|
|
54
|
+
"@wordpress/keycodes": "^4.38.1-next.79a2f3cdd.0",
|
|
55
|
+
"@wordpress/priority-queue": "^3.37.1-next.79a2f3cdd.0",
|
|
56
|
+
"@wordpress/undo-manager": "^1.37.1-next.79a2f3cdd.0",
|
|
58
57
|
"change-case": "^4.1.2",
|
|
59
58
|
"clipboard": "^2.0.11",
|
|
60
59
|
"mousetrap": "^1.6.5",
|
|
61
60
|
"use-memo-one": "^1.1.1"
|
|
62
61
|
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"mock-match-media": "0.4.2"
|
|
64
|
+
},
|
|
63
65
|
"peerDependencies": {
|
|
64
66
|
"react": "^18.0.0"
|
|
65
67
|
},
|
|
66
68
|
"publishConfig": {
|
|
67
69
|
"access": "public"
|
|
68
70
|
},
|
|
69
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
|
|
70
72
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|