@fluentui/react-utilities 9.18.17 → 9.18.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/dist/index.d.ts +1 -2
  3. package/lib/compose/index.js +11 -9
  4. package/lib/compose/index.js.map +1 -1
  5. package/lib/compose/isResolvedShorthand.js +2 -2
  6. package/lib/compose/isResolvedShorthand.js.map +1 -1
  7. package/lib/events/index.js +1 -1
  8. package/lib/events/index.js.map +1 -1
  9. package/lib/hooks/index.js +13 -13
  10. package/lib/hooks/index.js.map +1 -1
  11. package/lib/hooks/useForceUpdate.js +2 -2
  12. package/lib/hooks/useForceUpdate.js.map +1 -1
  13. package/lib/selection/index.js +1 -2
  14. package/lib/selection/index.js.map +1 -1
  15. package/lib/ssr/index.js +2 -2
  16. package/lib/ssr/index.js.map +1 -1
  17. package/lib/trigger/index.js +3 -4
  18. package/lib/trigger/index.js.map +1 -1
  19. package/lib/utils/index.js +10 -9
  20. package/lib/utils/index.js.map +1 -1
  21. package/lib/virtualParent/index.js +3 -3
  22. package/lib/virtualParent/index.js.map +1 -1
  23. package/lib-commonjs/compose/index.js +43 -13
  24. package/lib-commonjs/compose/index.js.map +1 -1
  25. package/lib-commonjs/compose/isResolvedShorthand.js +3 -2
  26. package/lib-commonjs/compose/isResolvedShorthand.js.map +1 -1
  27. package/lib-commonjs/events/index.js +18 -2
  28. package/lib-commonjs/events/index.js.map +1 -1
  29. package/lib-commonjs/hooks/index.js +66 -14
  30. package/lib-commonjs/hooks/index.js.map +1 -1
  31. package/lib-commonjs/hooks/useForceUpdate.js +3 -2
  32. package/lib-commonjs/hooks/useForceUpdate.js.map +1 -1
  33. package/lib-commonjs/selection/index.js +7 -3
  34. package/lib-commonjs/selection/index.js.map +1 -1
  35. package/lib-commonjs/ssr/index.js +28 -3
  36. package/lib-commonjs/ssr/index.js.map +1 -1
  37. package/lib-commonjs/trigger/index.js +20 -5
  38. package/lib-commonjs/trigger/index.js.map +1 -1
  39. package/lib-commonjs/utils/index.js +132 -10
  40. package/lib-commonjs/utils/index.js.map +1 -1
  41. package/lib-commonjs/virtualParent/index.js +20 -4
  42. package/lib-commonjs/virtualParent/index.js.map +1 -1
  43. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,19 +1,29 @@
1
1
  # Change Log - @fluentui/react-utilities
2
2
 
3
- This log was last generated on Mon, 11 Nov 2024 09:55:03 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 06 Dec 2024 12:49:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.18.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.18.18)
8
+
9
+ Fri, 06 Dec 2024 12:49:18 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.18.17..@fluentui/react-utilities_v9.18.18)
11
+
12
+ ### Patches
13
+
14
+ - chore: remove usage of "export *" ([PR #33380](https://github.com/microsoft/fluentui/pull/33380) by olfedias@microsoft.com)
15
+ - Bump @fluentui/react-shared-contexts to v9.21.1 ([PR #33414](https://github.com/microsoft/fluentui/pull/33414) by beachball)
16
+
7
17
  ## [9.18.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.18.17)
8
18
 
9
- Mon, 11 Nov 2024 09:55:03 GMT
19
+ Mon, 11 Nov 2024 10:00:38 GMT
10
20
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.18.16..@fluentui/react-utilities_v9.18.17)
11
21
 
12
22
  ### Patches
13
23
 
14
24
  - chore: replace npm-scripts and just-scrtips with nx inferred tasks ([PR #33074](https://github.com/microsoft/fluentui/pull/33074) by martinhochel@microsoft.com)
15
- - Bump @fluentui/keyboard-keys to v9.0.8 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
16
- - Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
25
+ - Bump @fluentui/keyboard-keys to v9.0.8 ([PR #33238](https://github.com/microsoft/fluentui/pull/33238) by beachball)
26
+ - Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #33238](https://github.com/microsoft/fluentui/pull/33238) by beachball)
17
27
 
18
28
  ## [9.18.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.18.16)
19
29
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { DispatchWithoutAction } from 'react';
2
1
  import * as React_2 from 'react';
3
2
 
4
3
  /**
@@ -871,7 +870,7 @@ export declare function useFirstMount(): boolean;
871
870
  * @internal
872
871
  * Forces a re-render, similar to `forceUpdate` in class components.
873
872
  */
874
- export declare function useForceUpdate(): DispatchWithoutAction;
873
+ export declare function useForceUpdate(): React_2.DispatchWithoutAction;
875
874
 
876
875
  /**
877
876
  * Hook to generate a unique ID.
@@ -1,11 +1,13 @@
1
1
  import * as slot from './slot';
2
- export * from './types';
3
- export * from './isResolvedShorthand';
4
- export * from './constants';
5
- export * from './isSlot';
6
- export * from './assertSlots';
7
- export * from './getIntrinsicElementProps';
8
- export * from './deprecated/getSlots';
9
- export * from './deprecated/resolveShorthand';
10
- export * from './deprecated/getSlotsNext';
2
+ export { isResolvedShorthand } from './isResolvedShorthand';
3
+ export { SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from './constants';
4
+ export { isSlot } from './isSlot';
5
+ export { assertSlots } from './assertSlots';
6
+ export { getIntrinsicElementProps } from './getIntrinsicElementProps';
7
+ // eslint-disable-next-line deprecation/deprecation
8
+ export { getSlots } from './deprecated/getSlots';
9
+ // eslint-disable-next-line deprecation/deprecation
10
+ export { resolveShorthand } from './deprecated/resolveShorthand';
11
+ // eslint-disable-next-line deprecation/deprecation
12
+ export { getSlotsNext } from './deprecated/getSlotsNext';
11
13
  export { slot };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/compose/index.ts"],"sourcesContent":["import * as slot from './slot';\n\nexport * from './types';\nexport * from './isResolvedShorthand';\nexport * from './constants';\nexport * from './isSlot';\nexport * from './assertSlots';\nexport * from './getIntrinsicElementProps';\n\nexport * from './deprecated/getSlots';\nexport * from './deprecated/resolveShorthand';\nexport * from './deprecated/getSlotsNext';\n\nexport { slot };\nexport type { SlotOptions } from './slot';\n"],"names":["slot"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,YAAYA,UAAU,SAAS;AAE/B,cAAc,UAAU;AACxB,cAAc,wBAAwB;AACtC,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,gBAAgB;AAC9B,cAAc,6BAA6B;AAE3C,cAAc,wBAAwB;AACtC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAE1C,SAASA,IAAI,GAAG"}
1
+ {"version":3,"sources":["../src/compose/index.ts"],"sourcesContent":["import * as slot from './slot';\n\nexport type {\n AsIntrinsicElement,\n ComponentProps,\n ComponentState,\n EventData,\n EventHandler,\n ExtractSlotProps,\n ForwardRefComponent,\n InferredElementRefType,\n IsSingleton,\n PropsWithoutChildren,\n PropsWithoutRef,\n Slot,\n SlotClassNames,\n SlotComponentType,\n SlotPropsRecord,\n SlotRenderFunction,\n SlotShorthandValue,\n UnknownSlotProps,\n} from './types';\nexport { isResolvedShorthand } from './isResolvedShorthand';\nexport { SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from './constants';\nexport { isSlot } from './isSlot';\nexport { assertSlots } from './assertSlots';\nexport { getIntrinsicElementProps } from './getIntrinsicElementProps';\n\n// eslint-disable-next-line deprecation/deprecation\nexport type { ObjectSlotProps, Slots } from './deprecated/getSlots';\n// eslint-disable-next-line deprecation/deprecation\nexport { getSlots } from './deprecated/getSlots';\n// eslint-disable-next-line deprecation/deprecation\nexport type { ResolveShorthandFunction, ResolveShorthandOptions } from './deprecated/resolveShorthand';\n// eslint-disable-next-line deprecation/deprecation\nexport { resolveShorthand } from './deprecated/resolveShorthand';\n// eslint-disable-next-line deprecation/deprecation\nexport { getSlotsNext } from './deprecated/getSlotsNext';\n\nexport { slot };\nexport type { SlotOptions } from './slot';\n"],"names":["slot","isResolvedShorthand","SLOT_ELEMENT_TYPE_SYMBOL","SLOT_RENDER_FUNCTION_SYMBOL","isSlot","assertSlots","getIntrinsicElementProps","getSlots","resolveShorthand","getSlotsNext"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,UAAU,SAAS;AAsB/B,SAASC,mBAAmB,QAAQ,wBAAwB;AAC5D,SAASC,wBAAwB,EAAEC,2BAA2B,QAAQ,cAAc;AACpF,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,wBAAwB,QAAQ,6BAA6B;AAItE,mDAAmD;AACnD,SAASC,QAAQ,QAAQ,wBAAwB;AAGjD,mDAAmD;AACnD,SAASC,gBAAgB,QAAQ,gCAAgC;AACjE,mDAAmD;AACnD,SAASC,YAAY,QAAQ,4BAA4B;AAEzD,SAAST,IAAI,GAAG"}
@@ -1,4 +1,4 @@
1
- import { isValidElement } from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * Guard method that validates if a shorthand is a slot
4
4
  * can be used to extends properties provided by a slot
@@ -29,5 +29,5 @@ import { isValidElement } from 'react';
29
29
  * })
30
30
  * ```
31
31
  */ export function isResolvedShorthand(shorthand) {
32
- return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !isValidElement(shorthand);
32
+ return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !React.isValidElement(shorthand);
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/compose/isResolvedShorthand.ts"],"sourcesContent":["import { isValidElement } from 'react';\nimport type { ExtractSlotProps, Slot, UnknownSlotProps } from './types';\n\n/**\n * Guard method that validates if a shorthand is a slot\n * can be used to extends properties provided by a slot\n *\n * @example\n * ```\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(event => {\n * if (isResolvedShorthand(backdrop)) {\n * backdrop.onClick?.(event)\n * }\n * // do something after passing click down the line\n * }),\n * },\n * })\n * ```\n * @example\n * ```\n * const handleBackDropClick = (event) => {\n * // do your thing\n * }\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(\n * mergeCallbacks(isResolvedShorthand(backdrop) ? backdrop.onClick : undefined, handleBackdropClick)\n * )\n * })\n * ```\n */\nexport function isResolvedShorthand<Shorthand extends Slot<UnknownSlotProps>>(\n shorthand?: Shorthand,\n): shorthand is ExtractSlotProps<Shorthand> {\n return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !isValidElement(shorthand);\n}\n"],"names":["isValidElement","isResolvedShorthand","shorthand","Array","isArray"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,cAAc,QAAQ,QAAQ;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BC,GACD,OAAO,SAASC,oBACdC,SAAqB;IAErB,OAAOA,cAAc,QAAQ,OAAOA,cAAc,YAAY,CAACC,MAAMC,OAAO,CAACF,cAAc,CAACF,eAAeE;AAC7G"}
1
+ {"version":3,"sources":["../src/compose/isResolvedShorthand.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ExtractSlotProps, Slot, UnknownSlotProps } from './types';\n\n/**\n * Guard method that validates if a shorthand is a slot\n * can be used to extends properties provided by a slot\n *\n * @example\n * ```\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(event => {\n * if (isResolvedShorthand(backdrop)) {\n * backdrop.onClick?.(event)\n * }\n * // do something after passing click down the line\n * }),\n * },\n * })\n * ```\n * @example\n * ```\n * const handleBackDropClick = (event) => {\n * // do your thing\n * }\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(\n * mergeCallbacks(isResolvedShorthand(backdrop) ? backdrop.onClick : undefined, handleBackdropClick)\n * )\n * })\n * ```\n */\nexport function isResolvedShorthand<Shorthand extends Slot<UnknownSlotProps>>(\n shorthand?: Shorthand,\n): shorthand is ExtractSlotProps<Shorthand> {\n return (\n shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !React.isValidElement(shorthand)\n );\n}\n"],"names":["React","isResolvedShorthand","shorthand","Array","isArray","isValidElement"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BC,GACD,OAAO,SAASC,oBACdC,SAAqB;IAErB,OACEA,cAAc,QAAQ,OAAOA,cAAc,YAAY,CAACC,MAAMC,OAAO,CAACF,cAAc,CAACF,MAAMK,cAAc,CAACH;AAE9G"}
@@ -1 +1 @@
1
- export * from './mouseTouchHelpers';
1
+ export { getEventClientCoords, isMouseEvent, isTouchEvent } from './mouseTouchHelpers';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events/index.ts"],"sourcesContent":["export * from './mouseTouchHelpers';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,sBAAsB"}
1
+ {"version":3,"sources":["../src/events/index.ts"],"sourcesContent":["export type { NativeTouchOrMouseEvent, ReactTouchOrMouseEvent, TouchOrMouseEvent } from './mouseTouchHelpers';\nexport { getEventClientCoords, isMouseEvent, isTouchEvent } from './mouseTouchHelpers';\n"],"names":["getEventClientCoords","isMouseEvent","isTouchEvent"],"rangeMappings":"","mappings":"AACA,SAASA,oBAAoB,EAAEC,YAAY,EAAEC,YAAY,QAAQ,sBAAsB"}
@@ -1,13 +1,13 @@
1
- export * from './useAnimationFrame';
2
- export * from './useControllableState';
3
- export * from './useEventCallback';
4
- export * from './useFirstMount';
5
- export * from './useForceUpdate';
6
- export * from './useId';
7
- export * from './useIsomorphicLayoutEffect';
8
- export * from './useMergedRefs';
9
- export * from './useOnClickOutside';
10
- export * from './useOnScrollOutside';
11
- export * from './usePrevious';
12
- export * from './useScrollbarWidth';
13
- export * from './useTimeout';
1
+ export { useAnimationFrame } from './useAnimationFrame';
2
+ export { useControllableState } from './useControllableState';
3
+ export { useEventCallback } from './useEventCallback';
4
+ export { useFirstMount } from './useFirstMount';
5
+ export { useForceUpdate } from './useForceUpdate';
6
+ export { IdPrefixProvider, resetIdsForTests, useId } from './useId';
7
+ export { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
8
+ export { useMergedRefs } from './useMergedRefs';
9
+ export { useOnClickOutside } from './useOnClickOutside';
10
+ export { useOnScrollOutside } from './useOnScrollOutside';
11
+ export { usePrevious } from './usePrevious';
12
+ export { useScrollbarWidth } from './useScrollbarWidth';
13
+ export { useTimeout } from './useTimeout';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/index.ts"],"sourcesContent":["export * from './useAnimationFrame';\nexport * from './useControllableState';\nexport * from './useEventCallback';\nexport * from './useFirstMount';\nexport * from './useForceUpdate';\nexport * from './useId';\nexport * from './useIsomorphicLayoutEffect';\nexport * from './useMergedRefs';\nexport * from './useOnClickOutside';\nexport * from './useOnScrollOutside';\nexport * from './usePrevious';\nexport * from './useScrollbarWidth';\nexport * from './useTimeout';\n"],"names":[],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,yBAAyB;AACvC,cAAc,qBAAqB;AACnC,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,UAAU;AACxB,cAAc,8BAA8B;AAC5C,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,uBAAuB;AACrC,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,eAAe"}
1
+ {"version":3,"sources":["../src/hooks/index.ts"],"sourcesContent":["export { useAnimationFrame } from './useAnimationFrame';\nexport type { UseControllableStateOptions } from './useControllableState';\nexport { useControllableState } from './useControllableState';\nexport { useEventCallback } from './useEventCallback';\nexport { useFirstMount } from './useFirstMount';\nexport { useForceUpdate } from './useForceUpdate';\nexport { IdPrefixProvider, resetIdsForTests, useId } from './useId';\nexport { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';\nexport type { RefObjectFunction } from './useMergedRefs';\nexport { useMergedRefs } from './useMergedRefs';\nexport type { UseOnClickOrScrollOutsideOptions } from './useOnClickOutside';\nexport { useOnClickOutside } from './useOnClickOutside';\nexport { useOnScrollOutside } from './useOnScrollOutside';\nexport { usePrevious } from './usePrevious';\nexport { useScrollbarWidth } from './useScrollbarWidth';\nexport { useTimeout } from './useTimeout';\n"],"names":["useAnimationFrame","useControllableState","useEventCallback","useFirstMount","useForceUpdate","IdPrefixProvider","resetIdsForTests","useId","useIsomorphicLayoutEffect","useMergedRefs","useOnClickOutside","useOnScrollOutside","usePrevious","useScrollbarWidth","useTimeout"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,SAASA,iBAAiB,QAAQ,sBAAsB;AAExD,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,gBAAgB,QAAQ,qBAAqB;AACtD,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,gBAAgB,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,UAAU;AACpE,SAASC,yBAAyB,QAAQ,8BAA8B;AAExE,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,UAAU,QAAQ,eAAe"}
@@ -1,7 +1,7 @@
1
- import { useReducer } from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * @internal
4
4
  * Forces a re-render, similar to `forceUpdate` in class components.
5
5
  */ export function useForceUpdate() {
6
- return useReducer((x)=>x + 1, 0)[1];
6
+ return React.useReducer((x)=>x + 1, 0)[1];
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/useForceUpdate.ts"],"sourcesContent":["import { useReducer } from 'react';\n\n/**\n * @internal\n * Forces a re-render, similar to `forceUpdate` in class components.\n */\nexport function useForceUpdate() {\n return useReducer(x => x + 1, 0)[1];\n}\n"],"names":["useReducer","useForceUpdate","x"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,QAAQ;AAEnC;;;CAGC,GACD,OAAO,SAASC;IACd,OAAOD,WAAWE,CAAAA,IAAKA,IAAI,GAAG,EAAE,CAAC,EAAE;AACrC"}
1
+ {"version":3,"sources":["../src/hooks/useForceUpdate.ts"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n * Forces a re-render, similar to `forceUpdate` in class components.\n */\nexport function useForceUpdate() {\n return React.useReducer(x => x + 1, 0)[1];\n}\n"],"names":["React","useForceUpdate","useReducer","x"],"rangeMappings":";;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B;;;CAGC,GACD,OAAO,SAASC;IACd,OAAOD,MAAME,UAAU,CAACC,CAAAA,IAAKA,IAAI,GAAG,EAAE,CAAC,EAAE;AAC3C"}
@@ -1,2 +1 @@
1
- export * from './types';
2
- export * from './useSelection';
1
+ export { useSelection } from './useSelection';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/selection/index.ts"],"sourcesContent":["export * from './types';\nexport * from './useSelection';\n"],"names":[],"rangeMappings":";","mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,iBAAiB"}
1
+ {"version":3,"sources":["../src/selection/index.ts"],"sourcesContent":["export type {\n OnSelectionChangeCallback,\n OnSelectionChangeData,\n SelectionHookParams,\n SelectionItemId,\n SelectionMethods,\n SelectionMode,\n} from './types';\nexport { useSelection } from './useSelection';\n"],"names":["useSelection"],"rangeMappings":"","mappings":"AAQA,SAASA,YAAY,QAAQ,iBAAiB"}
package/lib/ssr/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './canUseDOM';
2
- export * from './SSRContext';
1
+ export { canUseDOM } from './canUseDOM';
2
+ export { SSRContext, SSRProvider, defaultSSRContextValue, useIsSSR, useSSRContext } from './SSRContext';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ssr/index.ts"],"sourcesContent":["export * from './canUseDOM';\nexport * from './SSRContext';\n"],"names":[],"rangeMappings":";","mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,eAAe"}
1
+ {"version":3,"sources":["../src/ssr/index.ts"],"sourcesContent":["export { canUseDOM } from './canUseDOM';\nexport type { SSRContextValue } from './SSRContext';\nexport { SSRContext, SSRProvider, defaultSSRContextValue, useIsSSR, useSSRContext } from './SSRContext';\n"],"names":["canUseDOM","SSRContext","SSRProvider","defaultSSRContextValue","useIsSSR","useSSRContext"],"rangeMappings":";","mappings":"AAAA,SAASA,SAAS,QAAQ,cAAc;AAExC,SAASC,UAAU,EAAEC,WAAW,EAAEC,sBAAsB,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,eAAe"}
@@ -1,4 +1,3 @@
1
- export * from './applyTriggerPropsToChildren';
2
- export * from './getTriggerChild';
3
- export * from './isFluentTrigger';
4
- export * from './types';
1
+ export { applyTriggerPropsToChildren } from './applyTriggerPropsToChildren';
2
+ export { getTriggerChild } from './getTriggerChild';
3
+ export { isFluentTrigger } from './isFluentTrigger';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/trigger/index.ts"],"sourcesContent":["export * from './applyTriggerPropsToChildren';\nexport * from './getTriggerChild';\nexport * from './isFluentTrigger';\nexport * from './types';\n"],"names":[],"rangeMappings":";;;","mappings":"AAAA,cAAc,gCAAgC;AAC9C,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,UAAU"}
1
+ {"version":3,"sources":["../src/trigger/index.ts"],"sourcesContent":["export { applyTriggerPropsToChildren } from './applyTriggerPropsToChildren';\nexport { getTriggerChild } from './getTriggerChild';\nexport { isFluentTrigger } from './isFluentTrigger';\nexport type { FluentTriggerComponent, TriggerProps } from './types';\n"],"names":["applyTriggerPropsToChildren","getTriggerChild","isFluentTrigger"],"rangeMappings":";;","mappings":"AAAA,SAASA,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,eAAe,QAAQ,oBAAoB;AACpD,SAASC,eAAe,QAAQ,oBAAoB"}
@@ -1,9 +1,10 @@
1
- export * from './clamp';
2
- export * from './getNativeElementProps';
3
- export * from './getRTLSafeKey';
4
- export * from './mergeCallbacks';
5
- export * from './omit';
6
- export * from './properties';
7
- export * from './isHTMLElement';
8
- export * from './isInteractiveHTMLElement';
9
- export * from './priorityQueue';
1
+ export { clamp } from './clamp';
2
+ export { // eslint-disable-next-line deprecation/deprecation
3
+ getNativeElementProps, getPartitionedNativeProps } from './getNativeElementProps';
4
+ export { getRTLSafeKey } from './getRTLSafeKey';
5
+ export { mergeCallbacks } from './mergeCallbacks';
6
+ export { omit } from './omit';
7
+ export { anchorProperties, audioProperties, baseElementEvents, baseElementProperties, buttonProperties, colGroupProperties, colProperties, dialogProperties, divProperties, fieldsetProperties, formProperties, getNativeProps, htmlElementProperties, iframeProperties, imgProperties, inputProperties, labelProperties, liProperties, microdataProperties, olProperties, optionProperties, selectProperties, tableProperties, tdProperties, textAreaProperties, thProperties, timeProperties, trProperties, videoProperties } from './properties';
8
+ export { isHTMLElement } from './isHTMLElement';
9
+ export { isInteractiveHTMLElement } from './isInteractiveHTMLElement';
10
+ export { createPriorityQueue } from './priorityQueue';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["export * from './clamp';\nexport * from './getNativeElementProps';\nexport * from './getRTLSafeKey';\nexport * from './mergeCallbacks';\nexport * from './omit';\nexport * from './properties';\nexport * from './isHTMLElement';\nexport * from './isInteractiveHTMLElement';\nexport * from './priorityQueue';\n"],"names":[],"rangeMappings":";;;;;;;;","mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,0BAA0B;AACxC,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C,cAAc,kBAAkB"}
1
+ {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["export { clamp } from './clamp';\nexport {\n // eslint-disable-next-line deprecation/deprecation\n getNativeElementProps,\n getPartitionedNativeProps,\n} from './getNativeElementProps';\nexport { getRTLSafeKey } from './getRTLSafeKey';\nexport { mergeCallbacks } from './mergeCallbacks';\nexport { omit } from './omit';\nexport {\n anchorProperties,\n audioProperties,\n baseElementEvents,\n baseElementProperties,\n buttonProperties,\n colGroupProperties,\n colProperties,\n dialogProperties,\n divProperties,\n fieldsetProperties,\n formProperties,\n getNativeProps,\n htmlElementProperties,\n iframeProperties,\n imgProperties,\n inputProperties,\n labelProperties,\n liProperties,\n microdataProperties,\n olProperties,\n optionProperties,\n selectProperties,\n tableProperties,\n tdProperties,\n textAreaProperties,\n thProperties,\n timeProperties,\n trProperties,\n videoProperties,\n} from './properties';\nexport { isHTMLElement } from './isHTMLElement';\nexport { isInteractiveHTMLElement } from './isInteractiveHTMLElement';\nexport type { PriorityQueue, PriorityQueueCompareFn } from './priorityQueue';\nexport { createPriorityQueue } from './priorityQueue';\n"],"names":["clamp","getNativeElementProps","getPartitionedNativeProps","getRTLSafeKey","mergeCallbacks","omit","anchorProperties","audioProperties","baseElementEvents","baseElementProperties","buttonProperties","colGroupProperties","colProperties","dialogProperties","divProperties","fieldsetProperties","formProperties","getNativeProps","htmlElementProperties","iframeProperties","imgProperties","inputProperties","labelProperties","liProperties","microdataProperties","olProperties","optionProperties","selectProperties","tableProperties","tdProperties","textAreaProperties","thProperties","timeProperties","trProperties","videoProperties","isHTMLElement","isInteractiveHTMLElement","createPriorityQueue"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,SAASA,KAAK,QAAQ,UAAU;AAChC,SACE,mDAAmD;AACnDC,qBAAqB,EACrBC,yBAAyB,QACpB,0BAA0B;AACjC,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SACEC,gBAAgB,EAChBC,eAAe,EACfC,iBAAiB,EACjBC,qBAAqB,EACrBC,gBAAgB,EAChBC,kBAAkB,EAClBC,aAAa,EACbC,gBAAgB,EAChBC,aAAa,EACbC,kBAAkB,EAClBC,cAAc,EACdC,cAAc,EACdC,qBAAqB,EACrBC,gBAAgB,EAChBC,aAAa,EACbC,eAAe,EACfC,eAAe,EACfC,YAAY,EACZC,mBAAmB,EACnBC,YAAY,EACZC,gBAAgB,EAChBC,gBAAgB,EAChBC,eAAe,EACfC,YAAY,EACZC,kBAAkB,EAClBC,YAAY,EACZC,cAAc,EACdC,YAAY,EACZC,eAAe,QACV,eAAe;AACtB,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,wBAAwB,QAAQ,6BAA6B;AAEtE,SAASC,mBAAmB,QAAQ,kBAAkB"}
@@ -1,3 +1,3 @@
1
- export * from './elementContains';
2
- export * from './setVirtualParent';
3
- export * from './getParent';
1
+ export { elementContains } from './elementContains';
2
+ export { setVirtualParent } from './setVirtualParent';
3
+ export { getParent } from './getParent';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/virtualParent/index.ts"],"sourcesContent":["export * from './elementContains';\nexport * from './setVirtualParent';\nexport * from './getParent';\n"],"names":[],"rangeMappings":";;","mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,cAAc"}
1
+ {"version":3,"sources":["../src/virtualParent/index.ts"],"sourcesContent":["export { elementContains } from './elementContains';\nexport { setVirtualParent } from './setVirtualParent';\nexport { getParent } from './getParent';\n"],"names":["elementContains","setVirtualParent","getParent"],"rangeMappings":";;","mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AACpD,SAASC,gBAAgB,QAAQ,qBAAqB;AACtD,SAASC,SAAS,QAAQ,cAAc"}
@@ -2,21 +2,51 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "slot", {
6
- enumerable: true,
7
- get: function() {
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ SLOT_ELEMENT_TYPE_SYMBOL: function() {
13
+ return _constants.SLOT_ELEMENT_TYPE_SYMBOL;
14
+ },
15
+ SLOT_RENDER_FUNCTION_SYMBOL: function() {
16
+ return _constants.SLOT_RENDER_FUNCTION_SYMBOL;
17
+ },
18
+ assertSlots: function() {
19
+ return _assertSlots.assertSlots;
20
+ },
21
+ getIntrinsicElementProps: function() {
22
+ return _getIntrinsicElementProps.getIntrinsicElementProps;
23
+ },
24
+ getSlots: function() {
25
+ return _getSlots.getSlots;
26
+ },
27
+ getSlotsNext: function() {
28
+ return _getSlotsNext.getSlotsNext;
29
+ },
30
+ isResolvedShorthand: function() {
31
+ return _isResolvedShorthand.isResolvedShorthand;
32
+ },
33
+ isSlot: function() {
34
+ return _isSlot.isSlot;
35
+ },
36
+ resolveShorthand: function() {
37
+ return _resolveShorthand.resolveShorthand;
38
+ },
39
+ slot: function() {
8
40
  return _slot;
9
41
  }
10
42
  });
11
- const _export_star = require("@swc/helpers/_/_export_star");
12
43
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
44
  const _slot = /*#__PURE__*/ _interop_require_wildcard._(require("./slot"));
14
- _export_star._(require("./types"), exports);
15
- _export_star._(require("./isResolvedShorthand"), exports);
16
- _export_star._(require("./constants"), exports);
17
- _export_star._(require("./isSlot"), exports);
18
- _export_star._(require("./assertSlots"), exports);
19
- _export_star._(require("./getIntrinsicElementProps"), exports);
20
- _export_star._(require("./deprecated/getSlots"), exports);
21
- _export_star._(require("./deprecated/resolveShorthand"), exports);
22
- _export_star._(require("./deprecated/getSlotsNext"), exports);
45
+ const _isResolvedShorthand = require("./isResolvedShorthand");
46
+ const _constants = require("./constants");
47
+ const _isSlot = require("./isSlot");
48
+ const _assertSlots = require("./assertSlots");
49
+ const _getIntrinsicElementProps = require("./getIntrinsicElementProps");
50
+ const _getSlots = require("./deprecated/getSlots");
51
+ const _resolveShorthand = require("./deprecated/resolveShorthand");
52
+ const _getSlotsNext = require("./deprecated/getSlotsNext");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/compose/index.ts"],"sourcesContent":["import * as slot from './slot';\n\nexport * from './types';\nexport * from './isResolvedShorthand';\nexport * from './constants';\nexport * from './isSlot';\nexport * from './assertSlots';\nexport * from './getIntrinsicElementProps';\n\nexport * from './deprecated/getSlots';\nexport * from './deprecated/resolveShorthand';\nexport * from './deprecated/getSlotsNext';\n\nexport { slot };\nexport type { SlotOptions } from './slot';\n"],"names":["slot"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaSA;;;eAAAA;;;;;gEAba;uBAER;uBACA;uBACA;uBACA;uBACA;uBACA;uBAEA;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/compose/index.ts"],"sourcesContent":["import * as slot from './slot';\n\nexport type {\n AsIntrinsicElement,\n ComponentProps,\n ComponentState,\n EventData,\n EventHandler,\n ExtractSlotProps,\n ForwardRefComponent,\n InferredElementRefType,\n IsSingleton,\n PropsWithoutChildren,\n PropsWithoutRef,\n Slot,\n SlotClassNames,\n SlotComponentType,\n SlotPropsRecord,\n SlotRenderFunction,\n SlotShorthandValue,\n UnknownSlotProps,\n} from './types';\nexport { isResolvedShorthand } from './isResolvedShorthand';\nexport { SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from './constants';\nexport { isSlot } from './isSlot';\nexport { assertSlots } from './assertSlots';\nexport { getIntrinsicElementProps } from './getIntrinsicElementProps';\n\n// eslint-disable-next-line deprecation/deprecation\nexport type { ObjectSlotProps, Slots } from './deprecated/getSlots';\n// eslint-disable-next-line deprecation/deprecation\nexport { getSlots } from './deprecated/getSlots';\n// eslint-disable-next-line deprecation/deprecation\nexport type { ResolveShorthandFunction, ResolveShorthandOptions } from './deprecated/resolveShorthand';\n// eslint-disable-next-line deprecation/deprecation\nexport { resolveShorthand } from './deprecated/resolveShorthand';\n// eslint-disable-next-line deprecation/deprecation\nexport { getSlotsNext } from './deprecated/getSlotsNext';\n\nexport { slot };\nexport type { SlotOptions } from './slot';\n"],"names":["SLOT_ELEMENT_TYPE_SYMBOL","SLOT_RENDER_FUNCTION_SYMBOL","assertSlots","getIntrinsicElementProps","getSlots","getSlotsNext","isResolvedShorthand","isSlot","resolveShorthand","slot"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAuBSA,wBAAwB;eAAxBA,mCAAwB;;IAAEC,2BAA2B;eAA3BA,sCAA2B;;IAErDC,WAAW;eAAXA,wBAAW;;IACXC,wBAAwB;eAAxBA,kDAAwB;;IAKxBC,QAAQ;eAARA,kBAAQ;;IAMRC,YAAY;eAAZA,0BAAY;;IAfZC,mBAAmB;eAAnBA,wCAAmB;;IAEnBC,MAAM;eAANA,cAAM;;IAWNC,gBAAgB;eAAhBA,kCAAgB;;IAIhBC,IAAI;eAAJA;;;;gEAvCa;qCAsBc;2BACkC;wBAC/C;6BACK;0CACa;0BAKhB;kCAIQ;8BAEJ"}
@@ -8,7 +8,8 @@ Object.defineProperty(exports, "isResolvedShorthand", {
8
8
  return isResolvedShorthand;
9
9
  }
10
10
  });
11
- const _react = require("react");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
12
13
  function isResolvedShorthand(shorthand) {
13
- return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !(0, _react.isValidElement)(shorthand);
14
+ return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !_react.isValidElement(shorthand);
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/compose/isResolvedShorthand.ts"],"sourcesContent":["import { isValidElement } from 'react';\nimport type { ExtractSlotProps, Slot, UnknownSlotProps } from './types';\n\n/**\n * Guard method that validates if a shorthand is a slot\n * can be used to extends properties provided by a slot\n *\n * @example\n * ```\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(event => {\n * if (isResolvedShorthand(backdrop)) {\n * backdrop.onClick?.(event)\n * }\n * // do something after passing click down the line\n * }),\n * },\n * })\n * ```\n * @example\n * ```\n * const handleBackDropClick = (event) => {\n * // do your thing\n * }\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(\n * mergeCallbacks(isResolvedShorthand(backdrop) ? backdrop.onClick : undefined, handleBackdropClick)\n * )\n * })\n * ```\n */\nexport function isResolvedShorthand<Shorthand extends Slot<UnknownSlotProps>>(\n shorthand?: Shorthand,\n): shorthand is ExtractSlotProps<Shorthand> {\n return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !isValidElement(shorthand);\n}\n"],"names":["isResolvedShorthand","shorthand","Array","isArray","isValidElement"],"rangeMappings":";;;;;;;;;;;;;","mappings":";;;;+BAiCgBA;;;eAAAA;;;uBAjCe;AAiCxB,SAASA,oBACdC,SAAqB;IAErB,OAAOA,cAAc,QAAQ,OAAOA,cAAc,YAAY,CAACC,MAAMC,OAAO,CAACF,cAAc,CAACG,IAAAA,qBAAc,EAACH;AAC7G"}
1
+ {"version":3,"sources":["../src/compose/isResolvedShorthand.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ExtractSlotProps, Slot, UnknownSlotProps } from './types';\n\n/**\n * Guard method that validates if a shorthand is a slot\n * can be used to extends properties provided by a slot\n *\n * @example\n * ```\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(event => {\n * if (isResolvedShorthand(backdrop)) {\n * backdrop.onClick?.(event)\n * }\n * // do something after passing click down the line\n * }),\n * },\n * })\n * ```\n * @example\n * ```\n * const handleBackDropClick = (event) => {\n * // do your thing\n * }\n * const backdropSlot = resolveShorthand(backdrop, {\n * defaultProps: {\n * onClick: useEventCallback(\n * mergeCallbacks(isResolvedShorthand(backdrop) ? backdrop.onClick : undefined, handleBackdropClick)\n * )\n * })\n * ```\n */\nexport function isResolvedShorthand<Shorthand extends Slot<UnknownSlotProps>>(\n shorthand?: Shorthand,\n): shorthand is ExtractSlotProps<Shorthand> {\n return (\n shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !React.isValidElement(shorthand)\n );\n}\n"],"names":["isResolvedShorthand","shorthand","Array","isArray","React","isValidElement"],"rangeMappings":";;;;;;;;;;;;;;","mappings":";;;;+BAiCgBA;;;eAAAA;;;;iEAjCO;AAiChB,SAASA,oBACdC,SAAqB;IAErB,OACEA,cAAc,QAAQ,OAAOA,cAAc,YAAY,CAACC,MAAMC,OAAO,CAACF,cAAc,CAACG,OAAMC,cAAc,CAACJ;AAE9G"}
@@ -2,5 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./mouseTouchHelpers"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ getEventClientCoords: function() {
13
+ return _mouseTouchHelpers.getEventClientCoords;
14
+ },
15
+ isMouseEvent: function() {
16
+ return _mouseTouchHelpers.isMouseEvent;
17
+ },
18
+ isTouchEvent: function() {
19
+ return _mouseTouchHelpers.isTouchEvent;
20
+ }
21
+ });
22
+ const _mouseTouchHelpers = require("./mouseTouchHelpers");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events/index.ts"],"sourcesContent":["export * from './mouseTouchHelpers';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
1
+ {"version":3,"sources":["../src/events/index.ts"],"sourcesContent":["export type { NativeTouchOrMouseEvent, ReactTouchOrMouseEvent, TouchOrMouseEvent } from './mouseTouchHelpers';\nexport { getEventClientCoords, isMouseEvent, isTouchEvent } from './mouseTouchHelpers';\n"],"names":["getEventClientCoords","isMouseEvent","isTouchEvent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,oBAAoB;eAApBA,uCAAoB;;IAAEC,YAAY;eAAZA,+BAAY;;IAAEC,YAAY;eAAZA,+BAAY;;;mCAAQ"}
@@ -2,17 +2,69 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./useAnimationFrame"), exports);
7
- _export_star._(require("./useControllableState"), exports);
8
- _export_star._(require("./useEventCallback"), exports);
9
- _export_star._(require("./useFirstMount"), exports);
10
- _export_star._(require("./useForceUpdate"), exports);
11
- _export_star._(require("./useId"), exports);
12
- _export_star._(require("./useIsomorphicLayoutEffect"), exports);
13
- _export_star._(require("./useMergedRefs"), exports);
14
- _export_star._(require("./useOnClickOutside"), exports);
15
- _export_star._(require("./useOnScrollOutside"), exports);
16
- _export_star._(require("./usePrevious"), exports);
17
- _export_star._(require("./useScrollbarWidth"), exports);
18
- _export_star._(require("./useTimeout"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ IdPrefixProvider: function() {
13
+ return _useId.IdPrefixProvider;
14
+ },
15
+ resetIdsForTests: function() {
16
+ return _useId.resetIdsForTests;
17
+ },
18
+ useAnimationFrame: function() {
19
+ return _useAnimationFrame.useAnimationFrame;
20
+ },
21
+ useControllableState: function() {
22
+ return _useControllableState.useControllableState;
23
+ },
24
+ useEventCallback: function() {
25
+ return _useEventCallback.useEventCallback;
26
+ },
27
+ useFirstMount: function() {
28
+ return _useFirstMount.useFirstMount;
29
+ },
30
+ useForceUpdate: function() {
31
+ return _useForceUpdate.useForceUpdate;
32
+ },
33
+ useId: function() {
34
+ return _useId.useId;
35
+ },
36
+ useIsomorphicLayoutEffect: function() {
37
+ return _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect;
38
+ },
39
+ useMergedRefs: function() {
40
+ return _useMergedRefs.useMergedRefs;
41
+ },
42
+ useOnClickOutside: function() {
43
+ return _useOnClickOutside.useOnClickOutside;
44
+ },
45
+ useOnScrollOutside: function() {
46
+ return _useOnScrollOutside.useOnScrollOutside;
47
+ },
48
+ usePrevious: function() {
49
+ return _usePrevious.usePrevious;
50
+ },
51
+ useScrollbarWidth: function() {
52
+ return _useScrollbarWidth.useScrollbarWidth;
53
+ },
54
+ useTimeout: function() {
55
+ return _useTimeout.useTimeout;
56
+ }
57
+ });
58
+ const _useAnimationFrame = require("./useAnimationFrame");
59
+ const _useControllableState = require("./useControllableState");
60
+ const _useEventCallback = require("./useEventCallback");
61
+ const _useFirstMount = require("./useFirstMount");
62
+ const _useForceUpdate = require("./useForceUpdate");
63
+ const _useId = require("./useId");
64
+ const _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect");
65
+ const _useMergedRefs = require("./useMergedRefs");
66
+ const _useOnClickOutside = require("./useOnClickOutside");
67
+ const _useOnScrollOutside = require("./useOnScrollOutside");
68
+ const _usePrevious = require("./usePrevious");
69
+ const _useScrollbarWidth = require("./useScrollbarWidth");
70
+ const _useTimeout = require("./useTimeout");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/index.ts"],"sourcesContent":["export * from './useAnimationFrame';\nexport * from './useControllableState';\nexport * from './useEventCallback';\nexport * from './useFirstMount';\nexport * from './useForceUpdate';\nexport * from './useId';\nexport * from './useIsomorphicLayoutEffect';\nexport * from './useMergedRefs';\nexport * from './useOnClickOutside';\nexport * from './useOnScrollOutside';\nexport * from './usePrevious';\nexport * from './useScrollbarWidth';\nexport * from './useTimeout';\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/hooks/index.ts"],"sourcesContent":["export { useAnimationFrame } from './useAnimationFrame';\nexport type { UseControllableStateOptions } from './useControllableState';\nexport { useControllableState } from './useControllableState';\nexport { useEventCallback } from './useEventCallback';\nexport { useFirstMount } from './useFirstMount';\nexport { useForceUpdate } from './useForceUpdate';\nexport { IdPrefixProvider, resetIdsForTests, useId } from './useId';\nexport { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';\nexport type { RefObjectFunction } from './useMergedRefs';\nexport { useMergedRefs } from './useMergedRefs';\nexport type { UseOnClickOrScrollOutsideOptions } from './useOnClickOutside';\nexport { useOnClickOutside } from './useOnClickOutside';\nexport { useOnScrollOutside } from './useOnScrollOutside';\nexport { usePrevious } from './usePrevious';\nexport { useScrollbarWidth } from './useScrollbarWidth';\nexport { useTimeout } from './useTimeout';\n"],"names":["IdPrefixProvider","resetIdsForTests","useAnimationFrame","useControllableState","useEventCallback","useFirstMount","useForceUpdate","useId","useIsomorphicLayoutEffect","useMergedRefs","useOnClickOutside","useOnScrollOutside","usePrevious","useScrollbarWidth","useTimeout"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMSA,gBAAgB;eAAhBA,uBAAgB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IANlCC,iBAAiB;eAAjBA,oCAAiB;;IAEjBC,oBAAoB;eAApBA,0CAAoB;;IACpBC,gBAAgB;eAAhBA,kCAAgB;;IAChBC,aAAa;eAAbA,4BAAa;;IACbC,cAAc;eAAdA,8BAAc;;IACsBC,KAAK;eAALA,YAAK;;IACzCC,yBAAyB;eAAzBA,oDAAyB;;IAEzBC,aAAa;eAAbA,4BAAa;;IAEbC,iBAAiB;eAAjBA,oCAAiB;;IACjBC,kBAAkB;eAAlBA,sCAAkB;;IAClBC,WAAW;eAAXA,wBAAW;;IACXC,iBAAiB;eAAjBA,oCAAiB;;IACjBC,UAAU;eAAVA,sBAAU;;;mCAfe;sCAEG;kCACJ;+BACH;gCACC;uBAC2B;2CAChB;+BAEZ;mCAEI;oCACC;6BACP;mCACM;4BACP"}
@@ -8,7 +8,8 @@ Object.defineProperty(exports, "useForceUpdate", {
8
8
  return useForceUpdate;
9
9
  }
10
10
  });
11
- const _react = require("react");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
12
13
  function useForceUpdate() {
13
- return (0, _react.useReducer)((x)=>x + 1, 0)[1];
14
+ return _react.useReducer((x)=>x + 1, 0)[1];
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/useForceUpdate.ts"],"sourcesContent":["import { useReducer } from 'react';\n\n/**\n * @internal\n * Forces a re-render, similar to `forceUpdate` in class components.\n */\nexport function useForceUpdate() {\n return useReducer(x => x + 1, 0)[1];\n}\n"],"names":["useForceUpdate","useReducer","x"],"rangeMappings":";;;;;;;;;;;;;","mappings":";;;;+BAMgBA;;;eAAAA;;;uBANW;AAMpB,SAASA;IACd,OAAOC,IAAAA,iBAAU,EAACC,CAAAA,IAAKA,IAAI,GAAG,EAAE,CAAC,EAAE;AACrC"}
1
+ {"version":3,"sources":["../src/hooks/useForceUpdate.ts"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n * Forces a re-render, similar to `forceUpdate` in class components.\n */\nexport function useForceUpdate() {\n return React.useReducer(x => x + 1, 0)[1];\n}\n"],"names":["useForceUpdate","React","useReducer","x"],"rangeMappings":";;;;;;;;;;;;;;","mappings":";;;;+BAKgBA;;;eAAAA;;;;iEALO;AAKhB,SAASA;IACd,OAAOC,OAAMC,UAAU,CAACC,CAAAA,IAAKA,IAAI,GAAG,EAAE,CAAC,EAAE;AAC3C"}
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./types"), exports);
7
- _export_star._(require("./useSelection"), exports);
5
+ Object.defineProperty(exports, "useSelection", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _useSelection.useSelection;
9
+ }
10
+ });
11
+ const _useSelection = require("./useSelection");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/selection/index.ts"],"sourcesContent":["export * from './types';\nexport * from './useSelection';\n"],"names":[],"rangeMappings":";;;;;;","mappings":";;;;;uBAAc;uBACA"}
1
+ {"version":3,"sources":["../src/selection/index.ts"],"sourcesContent":["export type {\n OnSelectionChangeCallback,\n OnSelectionChangeData,\n SelectionHookParams,\n SelectionItemId,\n SelectionMethods,\n SelectionMode,\n} from './types';\nexport { useSelection } from './useSelection';\n"],"names":["useSelection"],"rangeMappings":";;;;;;;;;;","mappings":";;;;+BAQSA;;;eAAAA,0BAAY;;;8BAAQ"}
@@ -2,6 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./canUseDOM"), exports);
7
- _export_star._(require("./SSRContext"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ SSRContext: function() {
13
+ return _SSRContext.SSRContext;
14
+ },
15
+ SSRProvider: function() {
16
+ return _SSRContext.SSRProvider;
17
+ },
18
+ canUseDOM: function() {
19
+ return _canUseDOM.canUseDOM;
20
+ },
21
+ defaultSSRContextValue: function() {
22
+ return _SSRContext.defaultSSRContextValue;
23
+ },
24
+ useIsSSR: function() {
25
+ return _SSRContext.useIsSSR;
26
+ },
27
+ useSSRContext: function() {
28
+ return _SSRContext.useSSRContext;
29
+ }
30
+ });
31
+ const _canUseDOM = require("./canUseDOM");
32
+ const _SSRContext = require("./SSRContext");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ssr/index.ts"],"sourcesContent":["export * from './canUseDOM';\nexport * from './SSRContext';\n"],"names":[],"rangeMappings":";;;;;;","mappings":";;;;;uBAAc;uBACA"}
1
+ {"version":3,"sources":["../src/ssr/index.ts"],"sourcesContent":["export { canUseDOM } from './canUseDOM';\nexport type { SSRContextValue } from './SSRContext';\nexport { SSRContext, SSRProvider, defaultSSRContextValue, useIsSSR, useSSRContext } from './SSRContext';\n"],"names":["SSRContext","SSRProvider","canUseDOM","defaultSSRContextValue","useIsSSR","useSSRContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAESA,UAAU;eAAVA,sBAAU;;IAAEC,WAAW;eAAXA,uBAAW;;IAFvBC,SAAS;eAATA,oBAAS;;IAEgBC,sBAAsB;eAAtBA,kCAAsB;;IAAEC,QAAQ;eAARA,oBAAQ;;IAAEC,aAAa;eAAbA,yBAAa;;;2BAFvD;4BAE+D"}
@@ -2,8 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./applyTriggerPropsToChildren"), exports);
7
- _export_star._(require("./getTriggerChild"), exports);
8
- _export_star._(require("./isFluentTrigger"), exports);
9
- _export_star._(require("./types"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ applyTriggerPropsToChildren: function() {
13
+ return _applyTriggerPropsToChildren.applyTriggerPropsToChildren;
14
+ },
15
+ getTriggerChild: function() {
16
+ return _getTriggerChild.getTriggerChild;
17
+ },
18
+ isFluentTrigger: function() {
19
+ return _isFluentTrigger.isFluentTrigger;
20
+ }
21
+ });
22
+ const _applyTriggerPropsToChildren = require("./applyTriggerPropsToChildren");
23
+ const _getTriggerChild = require("./getTriggerChild");
24
+ const _isFluentTrigger = require("./isFluentTrigger");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/trigger/index.ts"],"sourcesContent":["export * from './applyTriggerPropsToChildren';\nexport * from './getTriggerChild';\nexport * from './isFluentTrigger';\nexport * from './types';\n"],"names":[],"rangeMappings":";;;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/trigger/index.ts"],"sourcesContent":["export { applyTriggerPropsToChildren } from './applyTriggerPropsToChildren';\nexport { getTriggerChild } from './getTriggerChild';\nexport { isFluentTrigger } from './isFluentTrigger';\nexport type { FluentTriggerComponent, TriggerProps } from './types';\n"],"names":["applyTriggerPropsToChildren","getTriggerChild","isFluentTrigger"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,2BAA2B;eAA3BA,wDAA2B;;IAC3BC,eAAe;eAAfA,gCAAe;;IACfC,eAAe;eAAfA,gCAAe;;;6CAFoB;iCACZ;iCACA"}
@@ -2,13 +2,135 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./clamp"), exports);
7
- _export_star._(require("./getNativeElementProps"), exports);
8
- _export_star._(require("./getRTLSafeKey"), exports);
9
- _export_star._(require("./mergeCallbacks"), exports);
10
- _export_star._(require("./omit"), exports);
11
- _export_star._(require("./properties"), exports);
12
- _export_star._(require("./isHTMLElement"), exports);
13
- _export_star._(require("./isInteractiveHTMLElement"), exports);
14
- _export_star._(require("./priorityQueue"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ anchorProperties: function() {
13
+ return _properties.anchorProperties;
14
+ },
15
+ audioProperties: function() {
16
+ return _properties.audioProperties;
17
+ },
18
+ baseElementEvents: function() {
19
+ return _properties.baseElementEvents;
20
+ },
21
+ baseElementProperties: function() {
22
+ return _properties.baseElementProperties;
23
+ },
24
+ buttonProperties: function() {
25
+ return _properties.buttonProperties;
26
+ },
27
+ clamp: function() {
28
+ return _clamp.clamp;
29
+ },
30
+ colGroupProperties: function() {
31
+ return _properties.colGroupProperties;
32
+ },
33
+ colProperties: function() {
34
+ return _properties.colProperties;
35
+ },
36
+ createPriorityQueue: function() {
37
+ return _priorityQueue.createPriorityQueue;
38
+ },
39
+ dialogProperties: function() {
40
+ return _properties.dialogProperties;
41
+ },
42
+ divProperties: function() {
43
+ return _properties.divProperties;
44
+ },
45
+ fieldsetProperties: function() {
46
+ return _properties.fieldsetProperties;
47
+ },
48
+ formProperties: function() {
49
+ return _properties.formProperties;
50
+ },
51
+ // eslint-disable-next-line deprecation/deprecation
52
+ getNativeElementProps: function() {
53
+ return _getNativeElementProps.getNativeElementProps;
54
+ },
55
+ getNativeProps: function() {
56
+ return _properties.getNativeProps;
57
+ },
58
+ getPartitionedNativeProps: function() {
59
+ return _getNativeElementProps.getPartitionedNativeProps;
60
+ },
61
+ getRTLSafeKey: function() {
62
+ return _getRTLSafeKey.getRTLSafeKey;
63
+ },
64
+ htmlElementProperties: function() {
65
+ return _properties.htmlElementProperties;
66
+ },
67
+ iframeProperties: function() {
68
+ return _properties.iframeProperties;
69
+ },
70
+ imgProperties: function() {
71
+ return _properties.imgProperties;
72
+ },
73
+ inputProperties: function() {
74
+ return _properties.inputProperties;
75
+ },
76
+ isHTMLElement: function() {
77
+ return _isHTMLElement.isHTMLElement;
78
+ },
79
+ isInteractiveHTMLElement: function() {
80
+ return _isInteractiveHTMLElement.isInteractiveHTMLElement;
81
+ },
82
+ labelProperties: function() {
83
+ return _properties.labelProperties;
84
+ },
85
+ liProperties: function() {
86
+ return _properties.liProperties;
87
+ },
88
+ mergeCallbacks: function() {
89
+ return _mergeCallbacks.mergeCallbacks;
90
+ },
91
+ microdataProperties: function() {
92
+ return _properties.microdataProperties;
93
+ },
94
+ olProperties: function() {
95
+ return _properties.olProperties;
96
+ },
97
+ omit: function() {
98
+ return _omit.omit;
99
+ },
100
+ optionProperties: function() {
101
+ return _properties.optionProperties;
102
+ },
103
+ selectProperties: function() {
104
+ return _properties.selectProperties;
105
+ },
106
+ tableProperties: function() {
107
+ return _properties.tableProperties;
108
+ },
109
+ tdProperties: function() {
110
+ return _properties.tdProperties;
111
+ },
112
+ textAreaProperties: function() {
113
+ return _properties.textAreaProperties;
114
+ },
115
+ thProperties: function() {
116
+ return _properties.thProperties;
117
+ },
118
+ timeProperties: function() {
119
+ return _properties.timeProperties;
120
+ },
121
+ trProperties: function() {
122
+ return _properties.trProperties;
123
+ },
124
+ videoProperties: function() {
125
+ return _properties.videoProperties;
126
+ }
127
+ });
128
+ const _clamp = require("./clamp");
129
+ const _getNativeElementProps = require("./getNativeElementProps");
130
+ const _getRTLSafeKey = require("./getRTLSafeKey");
131
+ const _mergeCallbacks = require("./mergeCallbacks");
132
+ const _omit = require("./omit");
133
+ const _properties = require("./properties");
134
+ const _isHTMLElement = require("./isHTMLElement");
135
+ const _isInteractiveHTMLElement = require("./isInteractiveHTMLElement");
136
+ const _priorityQueue = require("./priorityQueue");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["export * from './clamp';\nexport * from './getNativeElementProps';\nexport * from './getRTLSafeKey';\nexport * from './mergeCallbacks';\nexport * from './omit';\nexport * from './properties';\nexport * from './isHTMLElement';\nexport * from './isInteractiveHTMLElement';\nexport * from './priorityQueue';\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["export { clamp } from './clamp';\nexport {\n // eslint-disable-next-line deprecation/deprecation\n getNativeElementProps,\n getPartitionedNativeProps,\n} from './getNativeElementProps';\nexport { getRTLSafeKey } from './getRTLSafeKey';\nexport { mergeCallbacks } from './mergeCallbacks';\nexport { omit } from './omit';\nexport {\n anchorProperties,\n audioProperties,\n baseElementEvents,\n baseElementProperties,\n buttonProperties,\n colGroupProperties,\n colProperties,\n dialogProperties,\n divProperties,\n fieldsetProperties,\n formProperties,\n getNativeProps,\n htmlElementProperties,\n iframeProperties,\n imgProperties,\n inputProperties,\n labelProperties,\n liProperties,\n microdataProperties,\n olProperties,\n optionProperties,\n selectProperties,\n tableProperties,\n tdProperties,\n textAreaProperties,\n thProperties,\n timeProperties,\n trProperties,\n videoProperties,\n} from './properties';\nexport { isHTMLElement } from './isHTMLElement';\nexport { isInteractiveHTMLElement } from './isInteractiveHTMLElement';\nexport type { PriorityQueue, PriorityQueueCompareFn } from './priorityQueue';\nexport { createPriorityQueue } from './priorityQueue';\n"],"names":["anchorProperties","audioProperties","baseElementEvents","baseElementProperties","buttonProperties","clamp","colGroupProperties","colProperties","createPriorityQueue","dialogProperties","divProperties","fieldsetProperties","formProperties","getNativeElementProps","getNativeProps","getPartitionedNativeProps","getRTLSafeKey","htmlElementProperties","iframeProperties","imgProperties","inputProperties","isHTMLElement","isInteractiveHTMLElement","labelProperties","liProperties","mergeCallbacks","microdataProperties","olProperties","omit","optionProperties","selectProperties","tableProperties","tdProperties","textAreaProperties","thProperties","timeProperties","trProperties","videoProperties"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAUEA,gBAAgB;eAAhBA,4BAAgB;;IAChBC,eAAe;eAAfA,2BAAe;;IACfC,iBAAiB;eAAjBA,6BAAiB;;IACjBC,qBAAqB;eAArBA,iCAAqB;;IACrBC,gBAAgB;eAAhBA,4BAAgB;;IAdTC,KAAK;eAALA,YAAK;;IAeZC,kBAAkB;eAAlBA,8BAAkB;;IAClBC,aAAa;eAAbA,yBAAa;;IA2BNC,mBAAmB;eAAnBA,kCAAmB;;IA1B1BC,gBAAgB;eAAhBA,4BAAgB;;IAChBC,aAAa;eAAbA,yBAAa;;IACbC,kBAAkB;eAAlBA,8BAAkB;;IAClBC,cAAc;eAAdA,0BAAc;;IAlBd,mDAAmD;IACnDC,qBAAqB;eAArBA,4CAAqB;;IAkBrBC,cAAc;eAAdA,0BAAc;;IAjBdC,yBAAyB;eAAzBA,gDAAyB;;IAElBC,aAAa;eAAbA,4BAAa;;IAgBpBC,qBAAqB;eAArBA,iCAAqB;;IACrBC,gBAAgB;eAAhBA,4BAAgB;;IAChBC,aAAa;eAAbA,yBAAa;;IACbC,eAAe;eAAfA,2BAAe;;IAeRC,aAAa;eAAbA,4BAAa;;IACbC,wBAAwB;eAAxBA,kDAAwB;;IAf/BC,eAAe;eAAfA,2BAAe;;IACfC,YAAY;eAAZA,wBAAY;;IApBLC,cAAc;eAAdA,8BAAc;;IAqBrBC,mBAAmB;eAAnBA,+BAAmB;;IACnBC,YAAY;eAAZA,wBAAY;;IArBLC,IAAI;eAAJA,UAAI;;IAsBXC,gBAAgB;eAAhBA,4BAAgB;;IAChBC,gBAAgB;eAAhBA,4BAAgB;;IAChBC,eAAe;eAAfA,2BAAe;;IACfC,YAAY;eAAZA,wBAAY;;IACZC,kBAAkB;eAAlBA,8BAAkB;;IAClBC,YAAY;eAAZA,wBAAY;;IACZC,cAAc;eAAdA,0BAAc;;IACdC,YAAY;eAAZA,wBAAY;;IACZC,eAAe;eAAfA,2BAAe;;;uBAtCK;uCAKf;+BACuB;gCACC;sBACV;4BA+Bd;+BACuB;0CACW;+BAEL"}
@@ -2,7 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./elementContains"), exports);
7
- _export_star._(require("./setVirtualParent"), exports);
8
- _export_star._(require("./getParent"), exports);
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ elementContains: function() {
13
+ return _elementContains.elementContains;
14
+ },
15
+ getParent: function() {
16
+ return _getParent.getParent;
17
+ },
18
+ setVirtualParent: function() {
19
+ return _setVirtualParent.setVirtualParent;
20
+ }
21
+ });
22
+ const _elementContains = require("./elementContains");
23
+ const _setVirtualParent = require("./setVirtualParent");
24
+ const _getParent = require("./getParent");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/virtualParent/index.ts"],"sourcesContent":["export * from './elementContains';\nexport * from './setVirtualParent';\nexport * from './getParent';\n"],"names":[],"rangeMappings":";;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/virtualParent/index.ts"],"sourcesContent":["export { elementContains } from './elementContains';\nexport { setVirtualParent } from './setVirtualParent';\nexport { getParent } from './getParent';\n"],"names":["elementContains","getParent","setVirtualParent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,eAAe;eAAfA,gCAAe;;IAEfC,SAAS;eAATA,oBAAS;;IADTC,gBAAgB;eAAhBA,kCAAgB;;;iCADO;kCACC;2BACP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-utilities",
3
- "version": "9.18.17",
3
+ "version": "9.18.18",
4
4
  "description": "A set of general React-specific utilities.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@fluentui/keyboard-keys": "^9.0.8",
21
- "@fluentui/react-shared-contexts": "^9.21.0",
21
+ "@fluentui/react-shared-contexts": "^9.21.1",
22
22
  "@swc/helpers": "^0.5.1"
23
23
  },
24
24
  "peerDependencies": {