@scayle/storefront-product-listing 0.4.1 → 0.4.2

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.
@@ -39,6 +39,11 @@ export function useProductsByCategory(categoryId, route, {
39
39
  cacheKeyPrefix: cacheKeyPrefix || `PLP:${toValue(categoryId)}`
40
40
  },
41
41
  where: appliedFilter.value,
42
+ // NOTE: We don't want to include trackSearchAnalyticsEvent parameter when paginating,
43
+ // as this logs the search term on every page request.
44
+ // Instead, we log the term only once, when the search is first performed.
45
+ // See: https://scayle.dev/en/developer-guide/products/search#scayle-search-analytics
46
+ trackSearchAnalyticsEvent: !!(params?.page === 1 && appliedFilter.value.term),
42
47
  ...params
43
48
  }),
44
49
  key: fetchingKey || `${toValue(categoryId)}-products`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-product-listing",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Collection of essential composables and utilities to work with product listing",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -57,12 +57,12 @@
57
57
  "@nuxt/schema": "3.13.2",
58
58
  "@nuxt/test-utils": "3.14.4",
59
59
  "@scayle/eslint-config-storefront": "4.3.2",
60
- "@scayle/storefront-nuxt": "7.95.0",
61
- "@types/node": "22.9.0",
60
+ "@scayle/storefront-nuxt": "7.95.1",
61
+ "@types/node": "22.9.1",
62
62
  "@vue/test-utils": "2.4.6",
63
63
  "@vueuse/core": "11.2.0",
64
64
  "dprint": "0.47.5",
65
- "eslint": "9.14.0",
65
+ "eslint": "9.15.0",
66
66
  "happy-dom": "15.11.6",
67
67
  "eslint-formatter-gitlab": "5.1.0",
68
68
  "nuxt": "3.13.2",