@dative-gpi/foundation-shared-components 1.0.86 → 1.0.87

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.
@@ -2,13 +2,17 @@ import { computed, ref } from "vue";
2
2
 
3
3
  let initialized = false;
4
4
 
5
- const windowHeight = ref(window.outerHeight);
6
- const windowWidth = ref(window.outerWidth);
5
+ const windowHeight = ref(window.innerHeight);
6
+ const windowWidth = ref(window.innerWidth);
7
+
8
+ const windowOuterWidth = ref(window.outerWidth);
7
9
 
8
10
  export const useBreakpoints = () => {
9
11
  const onSizeChange = (): void => {
10
- windowHeight.value = window.outerHeight;
11
- windowWidth.value = window.outerWidth;
12
+ windowHeight.value = window.innerHeight;
13
+ windowWidth.value = window.innerWidth;
14
+
15
+ windowOuterWidth.value = window.outerWidth;
12
16
  };
13
17
 
14
18
  const isTouchScreenEnabled = computed((): boolean => {
@@ -16,11 +20,11 @@ export const useBreakpoints = () => {
16
20
  });
17
21
 
18
22
  const isMobileSized = computed((): boolean => {
19
- return windowWidth.value < 1264;
23
+ return windowOuterWidth.value < 1264;
20
24
  });
21
25
 
22
26
  const isExtraSmall = computed((): boolean => {
23
- return windowWidth.value < 600;
27
+ return windowOuterWidth.value < 600;
24
28
  });
25
29
 
26
30
  if (!initialized) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.86",
4
+ "version": "1.0.87",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.86",
14
- "@dative-gpi/foundation-shared-services": "1.0.86"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.87",
14
+ "@dative-gpi/foundation-shared-services": "1.0.87"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "5de195b233970af6cc7c2f8cdf52fb97ff952269"
38
+ "gitHead": "180b62cf6fa6a72b6eff933df6f245c7cdc341db"
39
39
  }