@shopbite-de/storefront 1.7.4 → 1.7.6

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,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  // Fetch navigation from content
3
- const { data: navigationData } = await useAsyncData("footer-navigation", () =>
3
+ const { data: navigationData } = await useAsyncData("navigation", () =>
4
4
  queryCollection("navigation").first(),
5
5
  );
6
6
 
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- const { navi } = useHeaderNavigation();
2
+ const { navi } = await useHeaderNavigation();
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- const { navi } = useHeaderNavigation();
2
+ const { navi } = await useHeaderNavigation();
3
3
  const loginSlide = ref(false);
4
4
  </script>
5
5
 
@@ -56,7 +56,7 @@ const mainIngredients = computed<Schemas["PropertyGroupOption"][]>(() => {
56
56
  function onVariantSelected(variant: Schemas["Product"]) {
57
57
  price.value = variant.calculatedPrice.totalPrice;
58
58
  label.value = variant.translated.name ?? variant.name;
59
- description.value = variant.description;
59
+ description.value = variant.translated.description ?? variant.description;
60
60
  number.value = variant.productNumber;
61
61
  }
62
62
  </script>
@@ -1,9 +1,9 @@
1
1
  import type { NavigationMenuItem } from "@nuxt/ui";
2
2
 
3
- export const useHeaderNavigation = () => {
3
+ export const useHeaderNavigation = async () => {
4
4
  const route = useRoute();
5
5
 
6
- const { data: navigationData } = useAsyncData("header-navigation", () =>
6
+ const { data: navigationData } = await useAsyncData("navigation", () =>
7
7
  queryCollection("navigation").first(),
8
8
  );
9
9
 
@@ -69,11 +69,13 @@ export function useProductConfigurator() {
69
69
  product: [
70
70
  "id",
71
71
  "name",
72
+ "description",
72
73
  "translated",
73
74
  "productNumber",
74
75
  "options",
75
76
  "properties",
76
77
  "calculatedPrice",
78
+ "translated",
77
79
  ],
78
80
  product_option: ["id", "groupId", "name", "translated", "group"],
79
81
  property: ["id", "name", "translated", "options"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [