@loomhq/lens 10.65.0 → 10.65.1

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.
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
13
13
  import FocusTrap from 'focus-trap-react';
14
14
  import { getColorValue, getPlacement, getRadius, getShadow, getSize, getSizeValue, u, } from '../../utilities';
15
15
  import React, { useEffect } from 'react';
16
- import { usePreventScroll } from '../../hooks/use-prevent-scroll';
16
+ import usePreventScroll from '../../hooks/use-prevent-scroll';
17
17
  import Backdrop from '../backdrop/backdrop';
18
18
  import Container from '../container/container';
19
19
  import IconButton from '../icon-button/icon-button';
@@ -1,3 +1,4 @@
1
1
  export { default as useMedia } from "./use-media.js";
2
2
  export { default as useOnClickOutside } from "./use-on-click-outside.js";
3
3
  export { default as useFocusedElement } from "./use-focused-element";
4
+ export { default as usePreventScroll } from "./use-prevent-scroll";
@@ -6,4 +6,5 @@
6
6
  * are passed to html or body, whichever level makes more sense
7
7
  * for your application.
8
8
  **/
9
- export declare function usePreventScroll(level: 'body' | 'html', enabled?: boolean): void;
9
+ declare function usePreventScroll(level: 'body' | 'html', enabled?: boolean): void;
10
+ export default usePreventScroll;
@@ -7,7 +7,7 @@ import { useLayoutEffect } from 'react';
7
7
  * are passed to html or body, whichever level makes more sense
8
8
  * for your application.
9
9
  **/
10
- export function usePreventScroll(level, enabled) {
10
+ function usePreventScroll(level, enabled) {
11
11
  const safeDocument = document;
12
12
  useLayoutEffect(() => {
13
13
  const html = safeDocument === null || safeDocument === void 0 ? void 0 : safeDocument.documentElement;
@@ -70,3 +70,4 @@ export function usePreventScroll(level, enabled) {
70
70
  // TODO(LNS-215): Clear styles on return to make utility more extendable for other uses
71
71
  }, [safeDocument, enabled, level]);
72
72
  }
73
+ export default usePreventScroll;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.65.0",
3
+ "version": "10.65.1",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",