@pisell/private-materials 6.4.17 → 6.4.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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -2,4 +2,4 @@ interface UseWindowSizeOptions {
2
2
  debounceMs?: number;
3
3
  }
4
4
  export declare const useWindowSize: (options?: UseWindowSizeOptions) => void;
5
- export {};
5
+ export default useWindowSize;
@@ -30,4 +30,5 @@ export var useWindowSize = function useWindowSize() {
30
30
  clearTimeout(timeoutId);
31
31
  };
32
32
  }, [debounceMs]);
33
- };
33
+ };
34
+ export default useWindowSize;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -2,4 +2,4 @@ interface UseWindowSizeOptions {
2
2
  debounceMs?: number;
3
3
  }
4
4
  export declare const useWindowSize: (options?: UseWindowSizeOptions) => void;
5
- export {};
5
+ export default useWindowSize;
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/hooks/useWindowSize.ts
20
20
  var useWindowSize_exports = {};
21
21
  __export(useWindowSize_exports, {
22
+ default: () => useWindowSize_default,
22
23
  useWindowSize: () => useWindowSize
23
24
  });
24
25
  module.exports = __toCommonJS(useWindowSize_exports);
@@ -50,6 +51,7 @@ var useWindowSize = (options = {}) => {
50
51
  };
51
52
  }, [debounceMs]);
52
53
  };
54
+ var useWindowSize_default = useWindowSize;
53
55
  // Annotate the CommonJS export names for ESM import in node:
54
56
  0 && (module.exports = {
55
57
  useWindowSize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.17",
3
+ "version": "6.4.18",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
62
  "@pisell/date-picker": "3.0.7",
63
- "@pisell/materials": "6.4.3",
64
63
  "@pisell/icon": "0.0.11",
65
- "@pisell/utils": "3.0.2"
64
+ "@pisell/utils": "3.0.2",
65
+ "@pisell/materials": "6.4.3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",