@shopbite-de/storefront 1.14.3 → 1.14.4

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.
package/app/app.vue CHANGED
@@ -1,22 +1,15 @@
1
1
  <script setup lang="ts">
2
2
  import type { Schemas } from "#shopware";
3
- import * as Sentry from "@sentry/nuxt";
4
3
  import type { Toast } from "#ui/composables/useToast";
5
4
 
6
5
  // Composables
7
6
  const toast = useToast();
8
7
  const appConfig = useAppConfig();
9
- const runtimeConfig = useRuntimeConfig();
10
8
  const { apiClient } = useShopwareContext();
11
9
  const { refresh: refreshToppings } = useShopBiteConfig();
12
10
  const { refreshCart } = useCart();
13
11
  const { getWishlistProducts } = useWishlist();
14
12
 
15
- // Initialize Sentry
16
- Sentry.init({
17
- dsn: runtimeConfig.public.sentry.dsn,
18
- });
19
-
20
13
  const {
21
14
  getNextOpeningTime,
22
15
  isStoreOpen,
@@ -58,7 +58,7 @@ const {
58
58
  defaultSearchCriteria: searchCriteria,
59
59
  });
60
60
 
61
- const { category } = useCategory(categoryId);
61
+ const { category } = await useCategory(categoryId);
62
62
 
63
63
  useCategorySeo(category);
64
64
 
@@ -1,6 +1,6 @@
1
1
  import { encodeForQuery } from "@shopware/api-client/helpers";
2
2
 
3
- export function useCategory(categoryId: Ref<string>) {
3
+ export async function useCategory(categoryId: Ref<string>) {
4
4
  const { apiClient } = useShopwareContext();
5
5
 
6
6
  const criteria = encodeForQuery({
@@ -17,7 +17,7 @@ export function useCategory(categoryId: Ref<string>) {
17
17
 
18
18
  const cacheKey = computed(() => `category-${categoryId.value}`);
19
19
 
20
- const { data } = useAsyncData(cacheKey, async () => {
20
+ const { data } = await useAsyncData(cacheKey, async () => {
21
21
  const response = await apiClient.invoke(
22
22
  "readCategoryGet get /category/{navigationId}",
23
23
  {
package/nuxt.config.ts CHANGED
@@ -66,9 +66,6 @@ export default defineNuxtConfig({
66
66
  countryId: "",
67
67
  },
68
68
  storeUrl: "",
69
- sentry: {
70
- dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
71
- },
72
69
  },
73
70
  },
74
71
 
@@ -184,6 +181,9 @@ export default defineNuxtConfig({
184
181
  ],
185
182
  },
186
183
  $production: {
184
+ sentry: {
185
+ dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
186
+ },
187
187
  scripts: {
188
188
  registry: {
189
189
  matomoAnalytics: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.14.3",
3
+ "version": "1.14.4",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [
@@ -28,7 +28,7 @@ test("Simple Checkout As Recurring Customer", async ({ page }) => {
28
28
 
29
29
  async function clearCart(page: Page) {
30
30
  const cartButton = page
31
- .locator("button .i-lucide\\:shopping-cart")
31
+ .locator("button .i-lucide\\:shopping-bag")
32
32
  .locator("..");
33
33
 
34
34
  await expect(cartButton).toBeVisible({ timeout: 5000 });