@rocketsearch/vue-uappi 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketsearch/vue-uappi",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Rocket Search para storefronts Uappi em Vue 3 + Vite + Pinia: busca, autocomplete, vitrines, banners e eventos",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/runtime/rocket.js CHANGED
@@ -94,8 +94,10 @@ export function sectionFromNivel (nivel) {
94
94
  // Vocabulário da API de vitrines/banners (pageType): product|category|home|search|cart|checkout.
95
95
  export function pageTypeFromSection (section) {
96
96
  if (section === 'pdp') return 'product';
97
- if (section === 'list' || section === 'brand') return 'category';
98
- if (section === 'other') return '';
97
+ // Landing (list) não é categoria: as vitrines dela vêm só do <RocketLanding> (pageType=custom + customKey).
98
+ // Mandada como category, toda vitrine de categoria vazava para a landing (ROC-709).
99
+ if (section === 'brand') return 'category';
100
+ if (section === 'list' || section === 'other') return '';
99
101
  return section || '';
100
102
  }
101
103