@uxf/core-react 11.124.0 → 11.125.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.
@@ -35,10 +35,10 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ViewportHeightPolyfill = ViewportHeightPolyfill;
38
- const use_is_mounted_1 = require("@uxf/core-react/hooks/use-is-mounted");
39
- const use_on_mount_1 = require("@uxf/core-react/hooks/use-on-mount");
40
38
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
41
39
  const react_1 = __importStar(require("react"));
40
+ const use_is_mounted_1 = require("@uxf/core-react/hooks/use-is-mounted");
41
+ const use_on_mount_1 = require("@uxf/core-react/hooks/use-on-mount");
42
42
  function ViewportHeightPolyfill() {
43
43
  const isMounted = (0, use_is_mounted_1.useIsMounted)();
44
44
  const [viewportHeight, setViewportHeight] = (0, react_1.useState)();
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useMediaQuery = useMediaQuery;
5
- const use_latest_1 = require("@uxf/core-react/hooks/use-latest");
6
5
  const react_1 = require("react");
6
+ const use_latest_1 = require("@uxf/core-react/hooks/use-latest");
7
7
  function useMediaQuery(mediaQueryString, callback, isSSR = true) {
8
8
  const [isMatching, setIsMatching] = (0, react_1.useState)(isSSR ? false : window.matchMedia(mediaQueryString).matches);
9
9
  const latestCallback = (0, use_latest_1.useLatest)(callback);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/core-react",
3
- "version": "11.124.0",
3
+ "version": "11.125.0",
4
4
  "description": "UXF Core",
5
5
  "author": "UX Fans s.r.o",
6
6
  "license": "MIT",
@@ -1,3 +1,5 @@
1
- import { DOWN, LEFT, RIGHT, SwipeableDirectionCallbacks, SwipeableHandlers, SwipeableProps, SwipeCallback, SwipeDirections, SwipeEventData, TapCallback, UP, Vector2 } from "./types";
2
- export { DOWN, LEFT, RIGHT, UP, type SwipeableDirectionCallbacks, type SwipeableHandlers, type SwipeableProps, type SwipeCallback, type SwipeDirections, type SwipeEventData, type TapCallback, type Vector2, };
1
+ import { DOWN, LEFT, RIGHT, UP } from "./types";
2
+ import type { SwipeableHandlers, SwipeableProps } from "./types";
3
+ export { DOWN, LEFT, RIGHT, UP };
4
+ export type { SwipeableDirectionCallbacks, SwipeableHandlers, SwipeableProps, SwipeCallback, SwipeDirections, SwipeEventData, TapCallback, Vector2, } from "./types";
3
5
  export declare function useSwipeable(options: SwipeableProps): SwipeableHandlers;