@fluentui/react-utilities 9.26.5 → 9.74.3-experimental.esm.20260709-49ee7a20cf.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 -2
- package/dist/index.d.cts +1249 -0
- package/lib/compose/assertSlots.js +3 -3
- package/lib/compose/assertSlots.js.map +1 -1
- package/lib/compose/deprecated/getSlots.js +4 -4
- package/lib/compose/deprecated/getSlots.js.map +1 -1
- package/lib/compose/deprecated/resolveShorthand.js +1 -1
- package/lib/compose/deprecated/resolveShorthand.js.map +1 -1
- package/lib/compose/getIntrinsicElementProps.js +1 -1
- package/lib/compose/getIntrinsicElementProps.js.map +1 -1
- package/lib/compose/getSlotClassNameProp.js +1 -1
- package/lib/compose/getSlotClassNameProp.js.map +1 -1
- package/lib/compose/index.js +10 -10
- package/lib/compose/index.js.map +1 -1
- package/lib/compose/isResolvedShorthand.js +1 -1
- package/lib/compose/isSlot.js +1 -1
- package/lib/compose/isSlot.js.map +1 -1
- package/lib/compose/slot.js +2 -2
- package/lib/compose/slot.js.map +1 -1
- package/lib/events/index.js +1 -1
- package/lib/events/index.js.map +1 -1
- package/lib/hooks/index.js +14 -14
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAnimationFrame.js +2 -2
- package/lib/hooks/useAnimationFrame.js.map +1 -1
- package/lib/hooks/useApplyScrollbarWidth.js +2 -2
- package/lib/hooks/useApplyScrollbarWidth.js.map +1 -1
- package/lib/hooks/useBrowserTimer.js +1 -1
- package/lib/hooks/useControllableState.js +1 -1
- package/lib/hooks/useEventCallback.js +2 -2
- package/lib/hooks/useEventCallback.js.map +1 -1
- package/lib/hooks/useFirstMount.js +1 -1
- package/lib/hooks/useForceUpdate.js +1 -1
- package/lib/hooks/useId.js +2 -2
- package/lib/hooks/useId.js.map +1 -1
- package/lib/hooks/useIsomorphicLayoutEffect.js +2 -2
- package/lib/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/lib/hooks/useMergedRefs.js +1 -1
- package/lib/hooks/useOnClickOutside.js +3 -3
- package/lib/hooks/useOnClickOutside.js.map +1 -1
- package/lib/hooks/useOnScrollOutside.js +2 -2
- package/lib/hooks/useOnScrollOutside.js.map +1 -1
- package/lib/hooks/usePrevious.js +1 -1
- package/lib/hooks/useScrollbarWidth.js +2 -2
- package/lib/hooks/useScrollbarWidth.js.map +1 -1
- package/lib/hooks/useTimeout.js +2 -2
- package/lib/hooks/useTimeout.js.map +1 -1
- package/lib/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/lib/selection/index.js +1 -1
- package/lib/selection/index.js.map +1 -1
- package/lib/selection/useSelection.js +3 -3
- package/lib/selection/useSelection.js.map +1 -1
- package/lib/ssr/SSRContext.js +2 -2
- package/lib/ssr/SSRContext.js.map +1 -1
- package/lib/ssr/index.js +2 -2
- package/lib/ssr/index.js.map +1 -1
- package/lib/trigger/applyTriggerPropsToChildren.js +2 -2
- package/lib/trigger/applyTriggerPropsToChildren.js.map +1 -1
- package/lib/trigger/getTriggerChild.js +2 -2
- package/lib/trigger/getTriggerChild.js.map +1 -1
- package/lib/trigger/index.js +3 -3
- package/lib/trigger/index.js.map +1 -1
- package/lib/utils/getNativeElementProps.js +1 -1
- package/lib/utils/getNativeElementProps.js.map +1 -1
- package/lib/utils/getReactElementRef.js +1 -1
- package/lib/utils/index.js +11 -11
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/isInteractiveHTMLElement.js +1 -1
- package/lib/utils/isInteractiveHTMLElement.js.map +1 -1
- package/lib/virtualParent/elementContains.js +1 -1
- package/lib/virtualParent/elementContains.js.map +1 -1
- package/lib/virtualParent/getParent.js +1 -1
- package/lib/virtualParent/getParent.js.map +1 -1
- package/lib/virtualParent/index.js +3 -3
- package/lib/virtualParent/index.js.map +1 -1
- package/lib-commonjs/compose/{assertSlots.js → assertSlots.cjs} +3 -3
- package/lib-commonjs/compose/deprecated/{getSlots.js → getSlots.cjs} +3 -3
- package/lib-commonjs/compose/deprecated/{resolveShorthand.js → resolveShorthand.cjs} +1 -1
- package/lib-commonjs/compose/{getIntrinsicElementProps.js → getIntrinsicElementProps.cjs} +1 -1
- package/lib-commonjs/compose/{getSlotClassNameProp.js → getSlotClassNameProp.cjs} +1 -1
- package/lib-commonjs/compose/{index.js → index.cjs} +10 -10
- package/lib-commonjs/compose/{isSlot.js → isSlot.cjs} +1 -1
- package/lib-commonjs/compose/{slot.js → slot.cjs} +1 -1
- package/lib-commonjs/events/{index.js → index.cjs} +1 -1
- package/lib-commonjs/hooks/{index.js → index.cjs} +14 -14
- package/lib-commonjs/hooks/{useAnimationFrame.js → useAnimationFrame.cjs} +1 -1
- package/lib-commonjs/hooks/{useApplyScrollbarWidth.js → useApplyScrollbarWidth.cjs} +1 -1
- package/lib-commonjs/hooks/{useEventCallback.js → useEventCallback.cjs} +1 -1
- package/lib-commonjs/hooks/{useId.js → useId.cjs} +1 -1
- package/lib-commonjs/hooks/{useIsomorphicLayoutEffect.js → useIsomorphicLayoutEffect.cjs} +1 -1
- package/lib-commonjs/hooks/{useOnClickOutside.js → useOnClickOutside.cjs} +1 -1
- package/lib-commonjs/hooks/{useOnScrollOutside.js → useOnScrollOutside.cjs} +1 -1
- package/lib-commonjs/hooks/{useScrollbarWidth.js → useScrollbarWidth.cjs} +1 -1
- package/lib-commonjs/hooks/{useTimeout.js → useTimeout.cjs} +1 -1
- package/lib-commonjs/{index.js → index.cjs} +8 -8
- package/lib-commonjs/selection/{index.js → index.cjs} +1 -1
- package/lib-commonjs/selection/{useSelection.js → useSelection.cjs} +2 -2
- package/lib-commonjs/ssr/{SSRContext.js → SSRContext.cjs} +1 -1
- package/lib-commonjs/ssr/{index.js → index.cjs} +2 -2
- package/lib-commonjs/trigger/{applyTriggerPropsToChildren.js → applyTriggerPropsToChildren.cjs} +1 -1
- package/lib-commonjs/trigger/{getTriggerChild.js → getTriggerChild.cjs} +1 -1
- package/lib-commonjs/trigger/{index.js → index.cjs} +3 -3
- package/lib-commonjs/utils/{getNativeElementProps.js → getNativeElementProps.cjs} +1 -1
- package/lib-commonjs/utils/{index.js → index.cjs} +11 -11
- package/lib-commonjs/utils/{isInteractiveHTMLElement.js → isInteractiveHTMLElement.cjs} +1 -1
- package/lib-commonjs/virtualParent/{elementContains.js → elementContains.cjs} +1 -1
- package/lib-commonjs/virtualParent/{getParent.js → getParent.cjs} +1 -1
- package/lib-commonjs/virtualParent/{index.js → index.cjs} +3 -3
- package/package.json +16 -15
- /package/lib-commonjs/compose/{assertSlots.js.map → assertSlots.cjs.map} +0 -0
- /package/lib-commonjs/compose/{constants.js → constants.cjs} +0 -0
- /package/lib-commonjs/compose/{constants.js.map → constants.cjs.map} +0 -0
- /package/lib-commonjs/compose/deprecated/{getSlots.js.map → getSlots.cjs.map} +0 -0
- /package/lib-commonjs/compose/deprecated/{getSlotsNext.js → getSlotsNext.cjs} +0 -0
- /package/lib-commonjs/compose/deprecated/{getSlotsNext.js.map → getSlotsNext.cjs.map} +0 -0
- /package/lib-commonjs/compose/deprecated/{resolveShorthand.js.map → resolveShorthand.cjs.map} +0 -0
- /package/lib-commonjs/compose/{getIntrinsicElementProps.js.map → getIntrinsicElementProps.cjs.map} +0 -0
- /package/lib-commonjs/compose/{getSlotClassNameProp.js.map → getSlotClassNameProp.cjs.map} +0 -0
- /package/lib-commonjs/compose/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/compose/{isResolvedShorthand.js → isResolvedShorthand.cjs} +0 -0
- /package/lib-commonjs/compose/{isResolvedShorthand.js.map → isResolvedShorthand.cjs.map} +0 -0
- /package/lib-commonjs/compose/{isSlot.js.map → isSlot.cjs.map} +0 -0
- /package/lib-commonjs/compose/{slot.js.map → slot.cjs.map} +0 -0
- /package/lib-commonjs/compose/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/compose/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/events/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/events/{mouseTouchHelpers.js → mouseTouchHelpers.cjs} +0 -0
- /package/lib-commonjs/events/{mouseTouchHelpers.js.map → mouseTouchHelpers.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useAnimationFrame.js.map → useAnimationFrame.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useApplyScrollbarWidth.js.map → useApplyScrollbarWidth.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useBrowserTimer.js → useBrowserTimer.cjs} +0 -0
- /package/lib-commonjs/hooks/{useBrowserTimer.js.map → useBrowserTimer.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useControllableState.js → useControllableState.cjs} +0 -0
- /package/lib-commonjs/hooks/{useControllableState.js.map → useControllableState.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useEventCallback.js.map → useEventCallback.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useFirstMount.js → useFirstMount.cjs} +0 -0
- /package/lib-commonjs/hooks/{useFirstMount.js.map → useFirstMount.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useForceUpdate.js → useForceUpdate.cjs} +0 -0
- /package/lib-commonjs/hooks/{useForceUpdate.js.map → useForceUpdate.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useId.js.map → useId.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useIsomorphicLayoutEffect.js.map → useIsomorphicLayoutEffect.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useMergedRefs.js → useMergedRefs.cjs} +0 -0
- /package/lib-commonjs/hooks/{useMergedRefs.js.map → useMergedRefs.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useOnClickOutside.js.map → useOnClickOutside.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useOnScrollOutside.js.map → useOnScrollOutside.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{usePrevious.js → usePrevious.cjs} +0 -0
- /package/lib-commonjs/hooks/{usePrevious.js.map → usePrevious.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useScrollbarWidth.js.map → useScrollbarWidth.cjs.map} +0 -0
- /package/lib-commonjs/hooks/{useTimeout.js.map → useTimeout.cjs.map} +0 -0
- /package/lib-commonjs/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/selection/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/selection/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/selection/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/selection/{useSelection.js.map → useSelection.cjs.map} +0 -0
- /package/lib-commonjs/ssr/{SSRContext.js.map → SSRContext.cjs.map} +0 -0
- /package/lib-commonjs/ssr/{canUseDOM.js → canUseDOM.cjs} +0 -0
- /package/lib-commonjs/ssr/{canUseDOM.js.map → canUseDOM.cjs.map} +0 -0
- /package/lib-commonjs/ssr/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/trigger/{applyTriggerPropsToChildren.js.map → applyTriggerPropsToChildren.cjs.map} +0 -0
- /package/lib-commonjs/trigger/{getTriggerChild.js.map → getTriggerChild.cjs.map} +0 -0
- /package/lib-commonjs/trigger/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/trigger/{isFluentTrigger.js → isFluentTrigger.cjs} +0 -0
- /package/lib-commonjs/trigger/{isFluentTrigger.js.map → isFluentTrigger.cjs.map} +0 -0
- /package/lib-commonjs/trigger/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/trigger/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/utils/{clamp.js → clamp.cjs} +0 -0
- /package/lib-commonjs/utils/{clamp.js.map → clamp.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createSetFromIterable.js → createSetFromIterable.cjs} +0 -0
- /package/lib-commonjs/utils/{createSetFromIterable.js.map → createSetFromIterable.cjs.map} +0 -0
- /package/lib-commonjs/utils/{getNativeElementProps.js.map → getNativeElementProps.cjs.map} +0 -0
- /package/lib-commonjs/utils/{getRTLSafeKey.js → getRTLSafeKey.cjs} +0 -0
- /package/lib-commonjs/utils/{getRTLSafeKey.js.map → getRTLSafeKey.cjs.map} +0 -0
- /package/lib-commonjs/utils/{getReactCallbackName.js → getReactCallbackName.cjs} +0 -0
- /package/lib-commonjs/utils/{getReactCallbackName.js.map → getReactCallbackName.cjs.map} +0 -0
- /package/lib-commonjs/utils/{getReactElementRef.js → getReactElementRef.cjs} +0 -0
- /package/lib-commonjs/utils/{getReactElementRef.js.map → getReactElementRef.cjs.map} +0 -0
- /package/lib-commonjs/utils/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/utils/{isHTMLElement.js → isHTMLElement.cjs} +0 -0
- /package/lib-commonjs/utils/{isHTMLElement.js.map → isHTMLElement.cjs.map} +0 -0
- /package/lib-commonjs/utils/{isInteractiveHTMLElement.js.map → isInteractiveHTMLElement.cjs.map} +0 -0
- /package/lib-commonjs/utils/{measureScrollBarWidth.js → measureScrollBarWidth.cjs} +0 -0
- /package/lib-commonjs/utils/{measureScrollBarWidth.js.map → measureScrollBarWidth.cjs.map} +0 -0
- /package/lib-commonjs/utils/{mergeCallbacks.js → mergeCallbacks.cjs} +0 -0
- /package/lib-commonjs/utils/{mergeCallbacks.js.map → mergeCallbacks.cjs.map} +0 -0
- /package/lib-commonjs/utils/{omit.js → omit.cjs} +0 -0
- /package/lib-commonjs/utils/{omit.js.map → omit.cjs.map} +0 -0
- /package/lib-commonjs/utils/{priorityQueue.js → priorityQueue.cjs} +0 -0
- /package/lib-commonjs/utils/{priorityQueue.js.map → priorityQueue.cjs.map} +0 -0
- /package/lib-commonjs/utils/{properties.js → properties.cjs} +0 -0
- /package/lib-commonjs/utils/{properties.js.map → properties.cjs.map} +0 -0
- /package/lib-commonjs/utils/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/utils/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{elementContains.js.map → elementContains.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{getParent.js.map → getParent.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{isVirtualElement.js → isVirtualElement.cjs} +0 -0
- /package/lib-commonjs/virtualParent/{isVirtualElement.js.map → isVirtualElement.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{setVirtualParent.js → setVirtualParent.cjs} +0 -0
- /package/lib-commonjs/virtualParent/{setVirtualParent.js.map → setVirtualParent.cjs.map} +0 -0
- /package/lib-commonjs/virtualParent/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/virtualParent/{types.js.map → types.cjs.map} +0 -0
|
@@ -58,17 +58,17 @@ _export(exports, {
|
|
|
58
58
|
return _useTimeout.useTimeout;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
const _useAnimationFrame = require("./useAnimationFrame");
|
|
62
|
-
const _useApplyScrollbarWidth = require("./useApplyScrollbarWidth");
|
|
63
|
-
const _useControllableState = require("./useControllableState");
|
|
64
|
-
const _useEventCallback = require("./useEventCallback");
|
|
65
|
-
const _useFirstMount = require("./useFirstMount");
|
|
66
|
-
const _useForceUpdate = require("./useForceUpdate");
|
|
67
|
-
const _useId = require("./useId");
|
|
68
|
-
const _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect");
|
|
69
|
-
const _useMergedRefs = require("./useMergedRefs");
|
|
70
|
-
const _useOnClickOutside = require("./useOnClickOutside");
|
|
71
|
-
const _useOnScrollOutside = require("./useOnScrollOutside");
|
|
72
|
-
const _usePrevious = require("./usePrevious");
|
|
73
|
-
const _useScrollbarWidth = require("./useScrollbarWidth");
|
|
74
|
-
const _useTimeout = require("./useTimeout");
|
|
61
|
+
const _useAnimationFrame = require("./useAnimationFrame.cjs");
|
|
62
|
+
const _useApplyScrollbarWidth = require("./useApplyScrollbarWidth.cjs");
|
|
63
|
+
const _useControllableState = require("./useControllableState.cjs");
|
|
64
|
+
const _useEventCallback = require("./useEventCallback.cjs");
|
|
65
|
+
const _useFirstMount = require("./useFirstMount.cjs");
|
|
66
|
+
const _useForceUpdate = require("./useForceUpdate.cjs");
|
|
67
|
+
const _useId = require("./useId.cjs");
|
|
68
|
+
const _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect.cjs");
|
|
69
|
+
const _useMergedRefs = require("./useMergedRefs.cjs");
|
|
70
|
+
const _useOnClickOutside = require("./useOnClickOutside.cjs");
|
|
71
|
+
const _useOnScrollOutside = require("./useOnScrollOutside.cjs");
|
|
72
|
+
const _usePrevious = require("./usePrevious.cjs");
|
|
73
|
+
const _useScrollbarWidth = require("./useScrollbarWidth.cjs");
|
|
74
|
+
const _useTimeout = require("./useTimeout.cjs");
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "useAnimationFrame", {
|
|
|
9
9
|
return useAnimationFrame;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
const _useBrowserTimer = require("./useBrowserTimer");
|
|
12
|
+
const _useBrowserTimer = require("./useBrowserTimer.cjs");
|
|
13
13
|
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
14
14
|
const setAnimationFrameNoop = (callback)=>{
|
|
15
15
|
callback(0);
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "useApplyScrollbarWidth", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _measureScrollBarWidth = require("../utils/measureScrollBarWidth");
|
|
14
|
+
const _measureScrollBarWidth = require("../utils/measureScrollBarWidth.cjs");
|
|
15
15
|
const cache = new WeakMap();
|
|
16
16
|
function useApplyScrollbarWidth(options = {}) {
|
|
17
17
|
const { force, property = 'width' } = options;
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "useEventCallback", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect");
|
|
14
|
+
const _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect.cjs");
|
|
15
15
|
const useEventCallback = (fn)=>{
|
|
16
16
|
const callbackRef = _react.useRef(()=>{
|
|
17
17
|
throw new Error('Cannot call an event handler while rendering');
|
|
@@ -22,7 +22,7 @@ _export(exports, {
|
|
|
22
22
|
});
|
|
23
23
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
24
24
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
25
|
-
const _index = require("../ssr/index");
|
|
25
|
+
const _index = require("../ssr/index.cjs");
|
|
26
26
|
const IdPrefixContext = _react.createContext(undefined);
|
|
27
27
|
const IdPrefixProvider = IdPrefixContext.Provider;
|
|
28
28
|
function useIdPrefix() {
|
|
@@ -11,5 +11,5 @@ Object.defineProperty(exports, "useIsomorphicLayoutEffect", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _index = require("../ssr/index");
|
|
14
|
+
const _index = require("../ssr/index.cjs");
|
|
15
15
|
const useIsomorphicLayoutEffect = (0, _index.canUseDOM)() ? _react.useLayoutEffect : _react.useEffect;
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "useOnClickOutside", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _useEventCallback = require("./useEventCallback");
|
|
14
|
+
const _useEventCallback = require("./useEventCallback.cjs");
|
|
15
15
|
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
16
16
|
const DEFAULT_CONTAINS = (parent, child)=>!!(parent === null || parent === void 0 ? void 0 : parent.contains(child));
|
|
17
17
|
const useOnClickOutside = (options)=>{
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "useOnScrollOutside", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _useEventCallback = require("./useEventCallback");
|
|
14
|
+
const _useEventCallback = require("./useEventCallback.cjs");
|
|
15
15
|
const useOnScrollOutside = (options)=>{
|
|
16
16
|
const { refs, callback, element, disabled, contains: containsProp } = options;
|
|
17
17
|
const listener = (0, _useEventCallback.useEventCallback)((ev)=>{
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "useScrollbarWidth", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _measureScrollBarWidth = require("../utils/measureScrollBarWidth");
|
|
14
|
+
const _measureScrollBarWidth = require("../utils/measureScrollBarWidth.cjs");
|
|
15
15
|
const cache = new WeakMap();
|
|
16
16
|
function useScrollbarWidth(options) {
|
|
17
17
|
const { targetDocument, force } = options;
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "useTimeout", {
|
|
|
9
9
|
return useTimeout;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
const _useBrowserTimer = require("./useBrowserTimer");
|
|
12
|
+
const _useBrowserTimer = require("./useBrowserTimer.cjs");
|
|
13
13
|
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
14
14
|
const setTimeoutNoop = (_callback)=>-1;
|
|
15
15
|
const clearTimeoutNoop = (_handle)=>undefined;
|
|
@@ -167,11 +167,11 @@ _export(exports, {
|
|
|
167
167
|
return _index1.useTimeout;
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
|
-
const _index = require("./compose/index");
|
|
171
|
-
const _index1 = require("./hooks/index");
|
|
172
|
-
const _index2 = require("./ssr/index");
|
|
173
|
-
const _index3 = require("./utils/index");
|
|
174
|
-
const _index4 = require("./trigger/index");
|
|
175
|
-
const _index5 = require("./events/index");
|
|
176
|
-
const _index6 = require("./selection/index");
|
|
177
|
-
const _index7 = require("./virtualParent/index");
|
|
170
|
+
const _index = require("./compose/index.cjs");
|
|
171
|
+
const _index1 = require("./hooks/index.cjs");
|
|
172
|
+
const _index2 = require("./ssr/index.cjs");
|
|
173
|
+
const _index3 = require("./utils/index.cjs");
|
|
174
|
+
const _index4 = require("./trigger/index.cjs");
|
|
175
|
+
const _index5 = require("./events/index.cjs");
|
|
176
|
+
const _index6 = require("./selection/index.cjs");
|
|
177
|
+
const _index7 = require("./virtualParent/index.cjs");
|
|
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "useSelection", {
|
|
|
11
11
|
});
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
13
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _useControllableState = require("../hooks/useControllableState");
|
|
15
|
-
const _createSetFromIterable = require("../utils/createSetFromIterable");
|
|
14
|
+
const _useControllableState = require("../hooks/useControllableState.cjs");
|
|
15
|
+
const _createSetFromIterable = require("../utils/createSetFromIterable.cjs");
|
|
16
16
|
function useSelectionState(params) {
|
|
17
17
|
const [selected, setSelected] = (0, _useControllableState.useControllableState)({
|
|
18
18
|
initialState: new Set(),
|
|
@@ -28,7 +28,7 @@ _export(exports, {
|
|
|
28
28
|
});
|
|
29
29
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
30
30
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
31
|
-
const _canUseDOM = require("./canUseDOM");
|
|
31
|
+
const _canUseDOM = require("./canUseDOM.cjs");
|
|
32
32
|
const defaultSSRContextValue = {
|
|
33
33
|
current: 0
|
|
34
34
|
};
|
package/lib-commonjs/trigger/{applyTriggerPropsToChildren.js → applyTriggerPropsToChildren.cjs}
RENAMED
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "applyTriggerPropsToChildren", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _isFluentTrigger = require("./isFluentTrigger");
|
|
13
|
+
const _isFluentTrigger = require("./isFluentTrigger.cjs");
|
|
14
14
|
function applyTriggerPropsToChildren(children, triggerChildProps) {
|
|
15
15
|
if (typeof children === 'function') {
|
|
16
16
|
return children(triggerChildProps);
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "getTriggerChild", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
-
const _isFluentTrigger = require("./isFluentTrigger");
|
|
13
|
+
const _isFluentTrigger = require("./isFluentTrigger.cjs");
|
|
14
14
|
function getTriggerChild(children) {
|
|
15
15
|
if (!_react.isValidElement(children)) {
|
|
16
16
|
return null;
|
|
@@ -19,6 +19,6 @@ _export(exports, {
|
|
|
19
19
|
return _isFluentTrigger.isFluentTrigger;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const _applyTriggerPropsToChildren = require("./applyTriggerPropsToChildren");
|
|
23
|
-
const _getTriggerChild = require("./getTriggerChild");
|
|
24
|
-
const _isFluentTrigger = require("./isFluentTrigger");
|
|
22
|
+
const _applyTriggerPropsToChildren = require("./applyTriggerPropsToChildren.cjs");
|
|
23
|
+
const _getTriggerChild = require("./getTriggerChild.cjs");
|
|
24
|
+
const _isFluentTrigger = require("./isFluentTrigger.cjs");
|
|
@@ -16,7 +16,7 @@ _export(exports, {
|
|
|
16
16
|
return getPartitionedNativeProps;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const _properties = require("./properties");
|
|
19
|
+
const _properties = require("./properties.cjs");
|
|
20
20
|
const nativeElementMap = {
|
|
21
21
|
label: _properties.labelProperties,
|
|
22
22
|
audio: _properties.audioProperties,
|
|
@@ -131,14 +131,14 @@ _export(exports, {
|
|
|
131
131
|
return _properties.videoProperties;
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
const _clamp = require("./clamp");
|
|
135
|
-
const _getNativeElementProps = require("./getNativeElementProps");
|
|
136
|
-
const _getReactElementRef = require("./getReactElementRef");
|
|
137
|
-
const _getRTLSafeKey = require("./getRTLSafeKey");
|
|
138
|
-
const _mergeCallbacks = require("./mergeCallbacks");
|
|
139
|
-
const _omit = require("./omit");
|
|
140
|
-
const _properties = require("./properties");
|
|
141
|
-
const _isHTMLElement = require("./isHTMLElement");
|
|
142
|
-
const _isInteractiveHTMLElement = require("./isInteractiveHTMLElement");
|
|
143
|
-
const _priorityQueue = require("./priorityQueue");
|
|
144
|
-
const _measureScrollBarWidth = require("./measureScrollBarWidth");
|
|
134
|
+
const _clamp = require("./clamp.cjs");
|
|
135
|
+
const _getNativeElementProps = require("./getNativeElementProps.cjs");
|
|
136
|
+
const _getReactElementRef = require("./getReactElementRef.cjs");
|
|
137
|
+
const _getRTLSafeKey = require("./getRTLSafeKey.cjs");
|
|
138
|
+
const _mergeCallbacks = require("./mergeCallbacks.cjs");
|
|
139
|
+
const _omit = require("./omit.cjs");
|
|
140
|
+
const _properties = require("./properties.cjs");
|
|
141
|
+
const _isHTMLElement = require("./isHTMLElement.cjs");
|
|
142
|
+
const _isInteractiveHTMLElement = require("./isInteractiveHTMLElement.cjs");
|
|
143
|
+
const _priorityQueue = require("./priorityQueue.cjs");
|
|
144
|
+
const _measureScrollBarWidth = require("./measureScrollBarWidth.cjs");
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "isInteractiveHTMLElement", {
|
|
|
8
8
|
return isInteractiveHTMLElement;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const _isHTMLElement = require("./isHTMLElement");
|
|
11
|
+
const _isHTMLElement = require("./isHTMLElement.cjs");
|
|
12
12
|
function isInteractiveHTMLElement(element) {
|
|
13
13
|
if (!(0, _isHTMLElement.isHTMLElement)(element)) {
|
|
14
14
|
return false;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "elementContains", {
|
|
|
8
8
|
return elementContains;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const _getParent = require("./getParent");
|
|
11
|
+
const _getParent = require("./getParent.cjs");
|
|
12
12
|
function elementContains(parent, child) {
|
|
13
13
|
if (!parent || !child) {
|
|
14
14
|
return false;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "getParent", {
|
|
|
8
8
|
return getParent;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const _isVirtualElement = require("./isVirtualElement");
|
|
11
|
+
const _isVirtualElement = require("./isVirtualElement.cjs");
|
|
12
12
|
/**
|
|
13
13
|
* Gets the virtual parent given the child element, if it exists.
|
|
14
14
|
* @internal
|
|
@@ -19,6 +19,6 @@ _export(exports, {
|
|
|
19
19
|
return _setVirtualParent.setVirtualParent;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const _elementContains = require("./elementContains");
|
|
23
|
-
const _setVirtualParent = require("./setVirtualParent");
|
|
24
|
-
const _getParent = require("./getParent");
|
|
22
|
+
const _elementContains = require("./elementContains.cjs");
|
|
23
|
+
const _setVirtualParent = require("./setVirtualParent.cjs");
|
|
24
|
+
const _getParent = require("./getParent.cjs");
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-utilities",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.74.3-experimental.esm.20260709-49ee7a20cf.0",
|
|
4
4
|
"description": "A set of general React-specific utilities.",
|
|
5
|
-
"main": "lib-commonjs/index.
|
|
5
|
+
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -12,33 +12,34 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui/keyboard-keys": "
|
|
16
|
-
"@fluentui/react-shared-contexts": "
|
|
15
|
+
"@fluentui/keyboard-keys": "9.74.3-experimental.esm.20260709-49ee7a20cf.0",
|
|
16
|
+
"@fluentui/react-shared-contexts": "9.74.3-experimental.esm.20260709-49ee7a20cf.0",
|
|
17
17
|
"@swc/helpers": "^0.5.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@types/react": ">=16.14.0 <20.0.0",
|
|
21
21
|
"react": ">=16.14.0 <20.0.0"
|
|
22
22
|
},
|
|
23
|
-
"beachball": {
|
|
24
|
-
"disallowedChangeTypes": [
|
|
25
|
-
"major",
|
|
26
|
-
"prerelease"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
23
|
+
"beachball": {},
|
|
29
24
|
"exports": {
|
|
30
25
|
".": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
"import": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"default": "./lib/index.js"
|
|
29
|
+
},
|
|
30
|
+
"require": {
|
|
31
|
+
"types": "./dist/index.d.cts",
|
|
32
|
+
"default": "./lib-commonjs/index.cjs"
|
|
33
|
+
}
|
|
35
34
|
},
|
|
36
35
|
"./package.json": "./package.json"
|
|
37
36
|
},
|
|
38
37
|
"files": [
|
|
39
38
|
"*.md",
|
|
40
39
|
"dist/*.d.ts",
|
|
40
|
+
"dist/*.d.cts",
|
|
41
41
|
"lib",
|
|
42
42
|
"lib-commonjs"
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
"type": "module"
|
|
44
45
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib-commonjs/compose/deprecated/{resolveShorthand.js.map → resolveShorthand.cjs.map}
RENAMED
|
File without changes
|
/package/lib-commonjs/compose/{getIntrinsicElementProps.js.map → getIntrinsicElementProps.cjs.map}
RENAMED
|
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
|
/package/lib-commonjs/hooks/{useApplyScrollbarWidth.js.map → useApplyScrollbarWidth.cjs.map}
RENAMED
|
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
|
/package/lib-commonjs/hooks/{useIsomorphicLayoutEffect.js.map → useIsomorphicLayoutEffect.cjs.map}
RENAMED
|
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
|
/package/lib-commonjs/utils/{isInteractiveHTMLElement.js.map → isInteractiveHTMLElement.cjs.map}
RENAMED
|
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
|