@transferwise/components 0.0.0-experimental-e2e607f → 0.0.0-experimental-706cb0c
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/build/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { useTheme, ThemeProvider } from '@wise/components-theming';
|
|
|
10
10
|
import { formatDate, formatNumber, formatMoney, formatAmount } from '@transferwise/formatting';
|
|
11
11
|
import { Transition, Listbox } from '@headlessui/react';
|
|
12
12
|
import mergeProps from 'merge-props';
|
|
13
|
-
import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
|
13
|
+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
14
14
|
import { useFloating, useDismiss, useRole, useInteractions, FloatingPortal, FloatingFocusManager, offset, flip, shift, size, autoUpdate } from '@floating-ui/react';
|
|
15
15
|
import { FocusScope } from '@react-aria/focus';
|
|
16
16
|
import { usePreventScroll } from '@react-aria/overlays';
|
|
@@ -1717,6 +1717,7 @@ const useHasIntersected = ({
|
|
|
1717
1717
|
return [hasIntersected];
|
|
1718
1718
|
};
|
|
1719
1719
|
|
|
1720
|
+
// eslint-disable-next-line import/extensions
|
|
1720
1721
|
function useMedia(query) {
|
|
1721
1722
|
return useSyncExternalStore(onStoreChange => {
|
|
1722
1723
|
const mediaQueryList = window.matchMedia(query);
|