@admin-layout/tailwind-travel-pro 12.2.4-alpha.99 → 12.2.5-alpha.15

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,5 +1,7 @@
1
- export declare function useWindowSize(): {
2
- width: number;
3
- height: number;
4
- };
1
+ import { useWindowSize as useSharedWindowSize } from '@admin-layout/tailwind-ui';
2
+ /**
3
+ * The hydration-safe hook from @admin-layout/tailwind-ui, kept as a real module here so
4
+ * `lib/hooks/useWindowSize.js` stays importable (Rollup emits no file for a pure re-export).
5
+ */
6
+ export declare function useWindowSize(): ReturnType<typeof useSharedWindowSize>;
5
7
  //# sourceMappingURL=useWindowSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa;;;EAsB5B"}
1
+ {"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEjF;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAEtE"}
@@ -1,20 +1,7 @@
1
- import {useState,useEffect}from'react';function useWindowSize() {
2
- const [windowSize, setWindowSize] = useState({
3
- width: typeof window !== 'undefined' ? window.innerWidth : 0,
4
- // Check if window is defined
5
- height: typeof window !== 'undefined' ? window.innerHeight : 0 // Check if window is defined
6
- });
7
- useEffect(() => {
8
- function handleResize() {
9
- setWindowSize({
10
- width: window.innerWidth,
11
- height: window.innerHeight
12
- });
13
- }
14
- // Add event listener for window resize
15
- window.addEventListener('resize', handleResize);
16
- // Cleanup the event listener on component unmount
17
- return () => window.removeEventListener('resize', handleResize);
18
- }, []);
19
- return windowSize;
1
+ import {useWindowSize as useWindowSize$1}from'@admin-layout/tailwind-ui';/**
2
+ * The hydration-safe hook from @admin-layout/tailwind-ui, kept as a real module here so
3
+ * `lib/hooks/useWindowSize.js` stays importable (Rollup emits no file for a pure re-export).
4
+ */
5
+ function useWindowSize() {
6
+ return useWindowSize$1();
20
7
  }export{useWindowSize};//# sourceMappingURL=useWindowSize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":[],"mappings":"gDAEgB,aAAa,GAAA;AACzB,EAAA,MAAA,CAAA,UAAO,EAAU,iBAAgB;AAC7B,IAAA,KAAA,EAAA,OAAO,MAAO,KAAM,WAAK,GAAA,MAAc,CAAA,cAAiB;AACxD;AACH,IAAA,MAAE,EAAA,OAAA,MAAA,KAAA,WAAA,GAAA,MAAA,CAAA,WAAA,GAAA,CAAA;IAEH;AACI,EAAA,SAAA,CAAA,MAAS;AACL,IAAA,SAAA,YAAa,GAAC;mBACV,CAAA;qBACA,CAAM,UAAS;AAClB,QAAA,MAAC,EAAC,MAAA,CAAA;QACP;;AAGA;UAEA,CAAA,gBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;;IAEJ,OAAO,MAAA,MAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AAEP,EAAA,CAAA,EAAA,EAAA,CAAA;AACJ,EAAC,OAAA,UAAA;"}
1
+ {"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":["useSharedWindowSize"],"mappings":"yEAEA;;;AAGG;SACa,aAAa,GAAA;SACzBA,eAAO,EAAmB;AAC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/tailwind-travel-pro",
3
- "version": "12.2.4-alpha.99",
3
+ "version": "12.2.5-alpha.15",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -21,8 +21,8 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@admin-layout/tailwind-design-pro": "12.2.4-alpha.99",
25
- "@admin-layout/tailwind-ui": "12.2.4-alpha.98",
24
+ "@admin-layout/tailwind-design-pro": "12.2.5-alpha.15",
25
+ "@admin-layout/tailwind-ui": "12.2.5-alpha.15",
26
26
  "@cdmbase/react-splide": "^0.7.12",
27
27
  "@react-google-maps/api": "^2.20.7",
28
28
  "@vis.gl/react-google-maps": "^1.5.4",
@@ -30,7 +30,7 @@
30
30
  "react-rating": "^2.0.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@adminide-stack/extension-api": "13.4.1-alpha.315",
33
+ "@adminide-stack/extension-api": "13.5.3-alpha.403",
34
34
  "@tailwindcss/aspect-ratio": "^0.4.2",
35
35
  "@tailwindcss/forms": "^0.5.4",
36
36
  "@tailwindcss/typography": "^0.5.9",
@@ -43,8 +43,8 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "42782577683e6a958a370e0d10e850aeb3ede953",
47
46
  "typescript": {
48
47
  "definition": "lib/index.d.ts"
49
- }
48
+ },
49
+ "gitHead": "d82d5b9a4f67eb3aa67b6b3aa13501e07d5acf3b"
50
50
  }