nextemos 2.3.7 → 2.3.9

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.
@@ -11,8 +11,8 @@ const react_1 = require("react");
11
11
  */
12
12
  const useWindowSize = () => {
13
13
  const [windowSize, setWindowSize] = (0, react_1.useState)({
14
- width: window.innerWidth,
15
- height: window.innerHeight,
14
+ width: 0,
15
+ height: 0,
16
16
  });
17
17
  /**
18
18
  * handleResize
@@ -36,10 +36,16 @@ const useWindowSize = () => {
36
36
  * @params {Array} [] An array of dependencies. When empty, it means the useEffect runs once after the initial render.
37
37
  */
38
38
  (0, react_1.useEffect)(() => {
39
- window.addEventListener('resize', handleResize);
40
- return () => {
41
- window.removeEventListener('resize', handleResize);
42
- };
39
+ if (typeof window !== 'undefined') {
40
+ setWindowSize({
41
+ width: window.innerWidth,
42
+ height: window.innerHeight,
43
+ });
44
+ window.addEventListener('resize', handleResize);
45
+ return () => {
46
+ window.removeEventListener('resize', handleResize);
47
+ };
48
+ }
43
49
  }, []);
44
50
  return windowSize;
45
51
  };
@@ -60,7 +60,7 @@ export interface Banner {
60
60
  /**
61
61
  * Banner ile ilişkili dynamic type verileri.
62
62
  */
63
- extensionData: Object;
63
+ extensionData: any;
64
64
  /**
65
65
  * Banner ile ilişkili içerik öğesi için tanımlayıcı.
66
66
  */
@@ -13,7 +13,7 @@ export interface IBlogPost {
13
13
  targetLink: string;
14
14
  imageLink: string;
15
15
  isApproved: boolean;
16
- extensionData: Object;
16
+ extensionData: any;
17
17
  updatedAtUtc: string;
18
18
  updatedBy: number;
19
19
  createdAtUtc: string;
@@ -40,7 +40,7 @@ export interface IBlogCategory {
40
40
  path: string;
41
41
  hierarchy: number[];
42
42
  blogPostBlogCategoryMappings: BlogPostBlogCategoryMapping[];
43
- extensionData: Object;
43
+ extensionData: any;
44
44
  }
45
45
  /**
46
46
  * Blog etiketini temsil eden arayüz
@@ -108,8 +108,10 @@ export interface IChildCategory {
108
108
  name: string;
109
109
  key: string;
110
110
  description: string;
111
+ className: string;
111
112
  hierarchyField: string;
112
113
  path: string;
114
+ extensionData: any;
113
115
  childCategories?: IChildCategory[];
114
116
  }
115
117
  /**
@@ -130,7 +132,7 @@ export interface ICategoryTreeItem {
130
132
  path: string;
131
133
  hierarchy: number[];
132
134
  blogPostBlogCategoryMappings: BlogPostBlogCategoryMapping[];
133
- extensionData: object;
135
+ extensionData: any;
134
136
  childCategories?: IChildCategory[];
135
137
  }
136
138
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",