@thorprovider/storefront 0.11.0 → 0.13.0

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.
Files changed (25) hide show
  1. package/README.md +19 -6
  2. package/assets/templates/app/lib/__STOREFRONT__/footer-content.ts +241 -0
  3. package/assets/templates/app/lib/__STOREFRONT__/registry.tsx +8 -24
  4. package/assets/templates/app/lib/__STOREFRONT__/schema.ts +5 -3
  5. package/assets/templates/app/lib/__STOREFRONT__/shell/content.ts +14 -13
  6. package/assets/templates/app/lib/__STOREFRONT__/shell/props.ts +7 -2
  7. package/assets/templates/app/lib/__STOREFRONT__/views/sections/index.ts +2 -1
  8. package/assets/templates/app/lib/__STOREFRONT__/views/sections/products.client.tsx +52 -1
  9. package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.universal-main-menu.ts +136 -0
  10. package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-main-menu.client.tsx +19 -0
  11. package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-main-menu.tsx +16 -0
  12. package/assets/templates/views/home/assembly/assembly.json +7 -0
  13. package/bin/storefront.js +54 -19
  14. package/package.json +1 -1
  15. package/recipes/recipes.json +3 -1
  16. package/recipes/sections.json +13 -3
  17. package/scripts/candidate.mjs +1 -1
  18. package/scripts/default-sections.mjs +1 -0
  19. package/scripts/file-classes.mjs +3 -0
  20. package/scripts/scaffold-env.mjs +48 -0
  21. package/skills/sf-view-gen/assets/recipes/recipes.json +3 -1
  22. package/skills/sf-view-gen/assets/recipes/sections.json +13 -3
  23. package/skills/sf-view-gen/assets/templates/views/sections/schema.universal-main-menu.ts +136 -0
  24. package/skills/sf-view-gen/assets/templates/views/sections/universal-main-menu.client.tsx +19 -0
  25. package/skills/sf-view-gen/assets/templates/views/sections/universal-main-menu.tsx +16 -0
@@ -0,0 +1,16 @@
1
+ // Optional section fragment: universal-main-menu (mirrors recipes/sections.json)
2
+ // Server-side part: element type + zod catalog entry. The component mappings
3
+ // live in universal-main-menu.client.tsx ('use client') and are composed via composeSections.
4
+
5
+ import { universalMainMenuPropsSchema } from './schema.universal-main-menu'
6
+
7
+ export const universalMainMenuSection = {
8
+ elementType: 'UniversalMainMenu',
9
+ catalog: {
10
+ UniversalMainMenu: {
11
+ props: universalMainMenuPropsSchema,
12
+ description: 'UniversalMainMenu presentation section (delivery universal-main-menu).',
13
+ },
14
+ },
15
+ registryModule: './universal-main-menu.client',
16
+ }
@@ -56,6 +56,13 @@
56
56
  "registryExport": "universalBannerRegistry",
57
57
  "propsModule": "./content",
58
58
  "defaultProps": "{\"data\":{\"banner\":{\"carouselNext\":\"Banner siguiente\",\"carouselPrevious\":\"Banner anterior\",\"carouselRole\":\"Carrusel de banners\",\"carouselStatus\":\"Banner {page} de {pages}\",\"storyNext\":\"Historia siguiente\",\"storyPrevious\":\"Historia anterior\",\"storyRole\":\"Historias de banners\"},\"campaign\":{\"banners\":[{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Lámpara de mesa con luz cálida sobre una estantería\",\"badge\":\"Nuevo\",\"ctas\":[{\"id\":\"cta-lighting\",\"label\":\"Ver iluminación\",\"target\":{\"id\":\"iluminacion\",\"kind\":\"category\"},\"tone\":\"primary\"}],\"description\":\"Piezas de latón y cerámica pensadas para durar.\",\"name\":\"Luz cálida\",\"subtitle\":\"Lámparas de mesa y de pie\",\"target\":{\"id\":\"iluminacion\",\"kind\":\"category\"},\"title\":\"Luz cálida para las tardes cortas\"},\"id\":\"banner-lighting\",\"media\":{\"desktop\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'900'%20viewBox%3D'0%200%201600%20900'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%231e293b'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%230f766e'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'1248'%20cy%3D'252'%20r%3D'180'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'1440'%20cy%3D'558'%20r%3D'108'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'81'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"mobile\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'640'%20height%3D'960'%20viewBox%3D'0%200%20640%20960'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%231e293b'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%230f766e'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'499'%20cy%3D'269'%20r%3D'192'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'576'%20cy%3D'595'%20r%3D'115'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'86'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"tablet\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1024'%20height%3D'768'%20viewBox%3D'0%200%201024%20768'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%231e293b'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%230f766e'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'799'%20cy%3D'215'%20r%3D'154'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'922'%20cy%3D'476'%20r%3D'92'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'69'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\"},\"presentation\":{\"align\":\"center\",\"aspect\":\"photo\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"overlay\",\"overlay\":\"scrim\",\"overlayOpacity\":\"medium\",\"padding\":\"lg\",\"radius\":\"2xl\",\"surface\":\"card\",\"textScale\":\"md\",\"width\":\"full\"},\"responsive\":{\"base\":{\"padding\":\"md\",\"textScale\":\"sm\"}},\"visible\":true},{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Abrigo de lana colgado frente a una ventana\",\"ctas\":[{\"id\":\"cta-winter\",\"label\":\"Ver colección\",\"target\":{\"id\":\"invierno\",\"kind\":\"collection\"},\"tone\":\"secondary\"}],\"description\":\"Tres colores, tallas de la XS a la XXL.\",\"name\":\"Abrigo de invierno\",\"subtitle\":\"Lana virgen, corte recto\",\"title\":\"Abrigo de invierno\"},\"id\":\"banner-winter\",\"media\":{\"desktop\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'900'%20viewBox%3D'0%200%201600%20900'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%237c2d12'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23b45309'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'1248'%20cy%3D'252'%20r%3D'180'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'1440'%20cy%3D'558'%20r%3D'108'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'81'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"mobile\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'640'%20height%3D'960'%20viewBox%3D'0%200%20640%20960'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%237c2d12'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23b45309'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'499'%20cy%3D'269'%20r%3D'192'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'576'%20cy%3D'595'%20r%3D'115'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'86'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"tablet\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1024'%20height%3D'768'%20viewBox%3D'0%200%201024%20768'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%237c2d12'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23b45309'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'799'%20cy%3D'215'%20r%3D'154'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'922'%20cy%3D'476'%20r%3D'92'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'69'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\"},\"presentation\":{\"align\":\"start\",\"aspect\":\"video\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"split\",\"overlay\":\"none\",\"overlayOpacity\":\"medium\",\"padding\":\"lg\",\"radius\":\"2xl\",\"splitSide\":\"media-start\",\"surface\":\"card\",\"textScale\":\"md\",\"width\":\"full\"},\"responsive\":{\"base\":{\"hiddenFields\":[\"description\"],\"padding\":\"sm\",\"textScale\":\"sm\"}},\"visible\":true},{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Composición abstracta con la frase Encuentra tu pieza\",\"ctas\":[],\"name\":\"Encuentra tu pieza\",\"target\":{\"kind\":\"search\",\"query\":\"cerámica\"}},\"id\":\"banner-search\",\"media\":{\"desktop\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1200'%20height%3D'1200'%20viewBox%3D'0%200%201200%201200'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23312e81'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%236d28d9'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'936'%20cy%3D'336'%20r%3D'240'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'1080'%20cy%3D'744'%20r%3D'144'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'108'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3EEncuentra%20tu%20pieza%3C%2Ftext%3E%3C%2Fsvg%3E\",\"mobile\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'640'%20height%3D'640'%20viewBox%3D'0%200%20640%20640'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23312e81'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%236d28d9'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'499'%20cy%3D'179'%20r%3D'128'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'576'%20cy%3D'397'%20r%3D'77'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'58'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3EEncuentra%20tu%20pieza%3C%2Ftext%3E%3C%2Fsvg%3E\",\"tablet\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'900'%20height%3D'900'%20viewBox%3D'0%200%20900%20900'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23312e81'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%236d28d9'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'702'%20cy%3D'252'%20r%3D'180'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'810'%20cy%3D'558'%20r%3D'108'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'81'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3EEncuentra%20tu%20pieza%3C%2Ftext%3E%3C%2Fsvg%3E\"},\"presentation\":{\"align\":\"center\",\"aspect\":\"square\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"image-only\",\"overlay\":\"none\",\"overlayOpacity\":\"medium\",\"padding\":\"none\",\"radius\":\"2xl\",\"surface\":\"none\",\"textScale\":\"md\",\"width\":\"full\"},\"visible\":true},{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Selección del archivo\",\"ctas\":[],\"description\":\"Banner sin imagen: la caja conserva su tamaño y su nombre accesible.\",\"name\":\"Archivo sin imagen\",\"target\":{\"kind\":\"external\",\"url\":\"https://example.test/archivo\"},\"title\":\"Selección del archivo\"},\"id\":\"banner-archive\",\"media\":{},\"presentation\":{\"align\":\"start\",\"aspect\":\"photo\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"split\",\"overlay\":\"none\",\"overlayOpacity\":\"medium\",\"padding\":\"lg\",\"radius\":\"2xl\",\"splitSide\":\"media-end\",\"surface\":\"card\",\"textScale\":\"md\",\"width\":\"full\"},\"visible\":true},{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Composición de la próxima campaña\",\"ctas\":[],\"description\":\"Programada para diciembre: no ocupa espacio hasta entonces.\",\"name\":\"Próxima campaña\",\"title\":\"Próxima campaña\"},\"id\":\"banner-future\",\"media\":{\"desktop\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'900'%20viewBox%3D'0%200%201600%20900'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23134e4a'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%230d9488'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'1248'%20cy%3D'252'%20r%3D'180'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'1440'%20cy%3D'558'%20r%3D'108'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'81'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"mobile\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'640'%20height%3D'960'%20viewBox%3D'0%200%20640%20960'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23134e4a'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%230d9488'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'499'%20cy%3D'269'%20r%3D'192'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'576'%20cy%3D'595'%20r%3D'115'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'86'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\"},\"presentation\":{\"align\":\"center\",\"aspect\":\"photo\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"overlay\",\"overlay\":\"scrim\",\"overlayOpacity\":\"strong\",\"padding\":\"lg\",\"radius\":\"2xl\",\"surface\":\"card\",\"textScale\":\"md\",\"width\":\"full\"},\"schedule\":{\"from\":\"2026-12-01T00:00:00.000Z\",\"timezone\":\"Europe/Madrid\"},\"visible\":true},{\"campaignId\":\"campaign-otono\",\"content\":{\"alt\":\"Composición de la campaña cerrada\",\"ctas\":[],\"description\":\"Su ventana terminó en octubre.\",\"name\":\"Campaña cerrada\",\"title\":\"Campaña cerrada\"},\"id\":\"banner-expired\",\"media\":{\"desktop\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'900'%20viewBox%3D'0%200%201600%20900'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%234c1d95'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%231e1b4b'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'1248'%20cy%3D'252'%20r%3D'180'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'1440'%20cy%3D'558'%20r%3D'108'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'81'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\",\"mobile\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'640'%20height%3D'960'%20viewBox%3D'0%200%20640%20960'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%234c1d95'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%231e1b4b'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'499'%20cy%3D'269'%20r%3D'192'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.16'%2F%3E%3Ccircle%20cx%3D'576'%20cy%3D'595'%20r%3D'115'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.1'%2F%3E%3Ctext%20x%3D'50%25'%20y%3D'50%25'%20text-anchor%3D'middle'%20dominant-baseline%3D'middle'%20font-family%3D'system-ui%2C%20sans-serif'%20font-size%3D'86'%20font-weight%3D'600'%20fill%3D'%23ffffff'%3E%3C%2Ftext%3E%3C%2Fsvg%3E\"},\"presentation\":{\"align\":\"center\",\"aspect\":\"photo\",\"fit\":\"cover\",\"focal\":\"center\",\"height\":\"auto\",\"mode\":\"overlay\",\"overlay\":\"scrim\",\"overlayOpacity\":\"medium\",\"padding\":\"lg\",\"radius\":\"2xl\",\"surface\":\"card\",\"textScale\":\"md\",\"width\":\"full\"},\"schedule\":{\"timezone\":\"Europe/Madrid\",\"to\":\"2026-10-01T00:00:00.000Z\"},\"visible\":true}],\"campaignId\":\"campaign-otono\",\"schemaVersion\":1},\"config\":{\"blockId\":\"home-hero\",\"carousel\":{\"autoplay\":false,\"carouselOnMobile\":false,\"indicators\":true,\"intervalMs\":6000,\"loop\":true,\"peek\":true,\"story\":false,\"visible\":{\"2xl\":3,\"base\":1,\"md\":2}},\"layout\":{\"align\":\"start\",\"gapX\":\"md\",\"gapY\":\"md\",\"maxHeight\":\"lg\",\"maxWidth\":\"full\",\"radius\":\"2xl\"},\"name\":\"Portada · Otoño\",\"presentation\":\"grid\",\"preset\":\"mosaic\",\"refs\":[{\"bannerId\":\"banner-lighting\"},{\"bannerId\":\"banner-winter\"},{\"bannerId\":\"banner-search\"},{\"bannerId\":\"banner-archive\"},{\"bannerId\":\"banner-future\"},{\"bannerId\":\"banner-expired\"}],\"responsiveEnabled\":true,\"rules\":{\"danglingLabel\":\"Referencias sin banner en la campaña: {ids}.\",\"emptyLabel\":\"La campaña no tiene banners: añade uno para ver la composición.\",\"inactiveLabel\":\"Todos los banners están ocultos o fuera de su ventana de programación.\"},\"scheduleAware\":true,\"schemaVersion\":1,\"visible\":true},\"now\":\"2026-11-03T12:00:00.000Z\"}}"
59
+ },
60
+ "universal-main-menu": {
61
+ "elementType": "UniversalMainMenu",
62
+ "registryModule": "../sections/universal-main-menu.client",
63
+ "registryExport": "universalMainMenuRegistry",
64
+ "propsModule": "./content",
65
+ "defaultProps": "{\"data\":{\"categories\":[{\"children\":[{\"children\":[{\"children\":[{\"children\":[{\"children\":[{\"href\":\"#/c/mecanicos\",\"id\":\"pcat_mecanicos\",\"label\":\"Mecánicos\"},{\"href\":\"#/c/membrana\",\"id\":\"pcat_membrana\",\"label\":\"Membrana\"}],\"href\":\"#/c/teclados\",\"id\":\"pcat_teclados\",\"label\":\"Teclados\"},{\"href\":\"#/c/ratones\",\"id\":\"pcat_ratones\",\"label\":\"Ratones\"}],\"id\":\"pcat_accesorios\",\"label\":\"Accesorios\"},{\"href\":\"#/c/consolas\",\"id\":\"pcat_consolas\",\"label\":\"Consolas\"}],\"href\":\"#/c/gaming\",\"id\":\"pcat_gaming\",\"label\":\"Gaming\"},{\"description\":\"Ligeros y silenciosos.\",\"href\":\"#/c/ultrabooks\",\"id\":\"pcat_ultrabooks\",\"label\":\"Ultrabooks\"}],\"count\":84,\"href\":\"#/c/portatiles\",\"id\":\"pcat_portatiles\",\"image\":{\"alt\":\"Portátiles\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Crect%20x%3D%2292%22%20y%3D%2267%22%20width%3D%22216%22%20height%3D%22143%22%20rx%3D%229%22%20fill%3D%22url(%23metal)%22%2F%3E%3Crect%20x%3D%22101%22%20y%3D%2276%22%20width%3D%22198%22%20height%3D%22124%22%20rx%3D%223%22%20fill%3D%22url(%23screen)%22%2F%3E%3Cpath%20d%3D%22M101%20200%20230%2076h69v124Z%22%20fill%3D%22%23fff%22%20opacity%3D%22.07%22%2F%3E%3Cpath%20d%3D%22M92%20210h216l35%2026H57Z%22%20fill%3D%22%23a9aaa7%22%2F%3E%3Cpath%20d%3D%22M57%20236h286l-9%207H66Z%22%20fill%3D%22%23777c79%22%2F%3E%3Cpath%20d%3D%22M170%20213h60l6%207h-72Z%22%20fill%3D%22%23757c79%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Portátiles\"},{\"badge\":{\"label\":\"Nuevo\",\"tone\":\"accent\"},\"count\":96,\"href\":\"#/c/smartphones\",\"id\":\"pcat_smartphones\",\"image\":{\"alt\":\"Smartphones\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cg%20transform%3D%22rotate(12%20200%20150)%22%3E%3Crect%20x%3D%22143%22%20y%3D%2238%22%20width%3D%22118%22%20height%3D%22212%22%20rx%3D%2222%22%20fill%3D%22url(%23metal)%22%2F%3E%3Crect%20x%3D%22149%22%20y%3D%2244%22%20width%3D%22106%22%20height%3D%22200%22%20rx%3D%2218%22%20fill%3D%22url(%23screen)%22%2F%3E%3Ccircle%20cx%3D%22202%22%20cy%3D%22164%22%20r%3D%2250%22%20fill%3D%22%23bbc2b9%22%20opacity%3D%22.24%22%2F%3E%3Crect%20x%3D%22179%22%20y%3D%2250%22%20width%3D%2246%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23151a19%22%2F%3E%3Cpath%20d%3D%22M180%20233h44%22%20stroke%3D%22%23d8dcd6%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\"},\"label\":\"Smartphones\"},{\"children\":[{\"count\":32,\"href\":\"#/c/auriculares\",\"id\":\"pcat_auriculares\",\"label\":\"Auriculares\"},{\"count\":21,\"href\":\"#/c/altavoces\",\"id\":\"pcat_altavoces\",\"label\":\"Altavoces\"},{\"count\":15,\"href\":\"#/c/soundbars\",\"id\":\"pcat_soundbars\",\"label\":\"Barras de sonido\"}],\"count\":68,\"href\":\"#/c/audio\",\"id\":\"pcat_audio\",\"image\":{\"alt\":\"Audio\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M115%20172v-39a85%2085%200%200%201%20170%200v39%22%20fill%3D%22none%22%20stroke%3D%22%23323634%22%20stroke-width%3D%2219%22%2F%3E%3Cpath%20d%3D%22M122%20132a78%2078%200%200%201%20156%200%22%20fill%3D%22none%22%20stroke%3D%22%23777c75%22%20stroke-width%3D%225%22%2F%3E%3Cg%20transform%3D%22rotate(-12%20117%20182)%22%3E%3Crect%20x%3D%2299%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22121%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22rotate(12%20283%20182)%22%3E%3Crect%20x%3D%22262%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22254%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\"},\"label\":\"Audio\"}],\"count\":248,\"description\":\"Lo esencial para conectar, crear y disfrutar.\",\"href\":\"#/c/tecnologia\",\"id\":\"pcat_tecnologia\",\"image\":{\"alt\":\"Tecnología\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Crect%20x%3D%2292%22%20y%3D%2267%22%20width%3D%22216%22%20height%3D%22143%22%20rx%3D%229%22%20fill%3D%22url(%23metal)%22%2F%3E%3Crect%20x%3D%22101%22%20y%3D%2276%22%20width%3D%22198%22%20height%3D%22124%22%20rx%3D%223%22%20fill%3D%22url(%23screen)%22%2F%3E%3Cpath%20d%3D%22M101%20200%20230%2076h69v124Z%22%20fill%3D%22%23fff%22%20opacity%3D%22.07%22%2F%3E%3Cpath%20d%3D%22M92%20210h216l35%2026H57Z%22%20fill%3D%22%23a9aaa7%22%2F%3E%3Cpath%20d%3D%22M57%20236h286l-9%207H66Z%22%20fill%3D%22%23777c79%22%2F%3E%3Cpath%20d%3D%22M170%20213h60l6%207h-72Z%22%20fill%3D%22%23757c79%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Tecnología\"},{\"children\":[{\"children\":[{\"href\":\"#/c/cafeteras\",\"id\":\"pcat_cafeteras\",\"label\":\"Cafeteras\"},{\"href\":\"#/c/robots\",\"id\":\"pcat_robots\",\"label\":\"Robots de cocina\"}],\"href\":\"#/c/cocina\",\"id\":\"pcat_cocina\",\"image\":{\"alt\":\"Cocina\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M259%20111h20a38%2038%200%200%201%200%2076h-20%22%20fill%3D%22none%22%20stroke%3D%22%239b9d91%22%20stroke-width%3D%2214%22%2F%3E%3Cpath%20d%3D%22M127%2094h139v104a34%2034%200%200%201-34%2034h-71a34%2034%200%200%201-34-34Z%22%20fill%3D%22%23afb0a3%22%2F%3E%3Cellipse%20cx%3D%22196%22%20cy%3D%2294%22%20rx%3D%2269%22%20ry%3D%2216%22%20fill%3D%22%2386897c%22%2F%3E%3Cellipse%20cx%3D%22196%22%20cy%3D%2293%22%20rx%3D%2257%22%20ry%3D%2210%22%20fill%3D%22%23565f4f%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Cocina\"},{\"href\":\"#/c/muebles\",\"id\":\"pcat_muebles\",\"image\":{\"alt\":\"Lámpara de sobremesa\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M200%20100v130%22%20stroke%3D%22%23444a40%22%20stroke-width%3D%228%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22235%22%20rx%3D%2253%22%20ry%3D%229%22%20fill%3D%22%23444a40%22%2F%3E%3Cpath%20d%3D%22M129%20122%20163%2052h74l34%2070Z%22%20fill%3D%22%23798575%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2271%22%20ry%3D%2212%22%20fill%3D%22%2358674e%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2240%22%20ry%3D%226%22%20fill%3D%22%23dadbba%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Muebles\"},{\"href\":\"#/c/decoracion\",\"id\":\"pcat_decoracion\",\"label\":\"Decoración\"}],\"count\":186,\"href\":\"#/c/hogar\",\"id\":\"pcat_hogar\",\"image\":{\"alt\":\"Hogar y cocina\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M200%20100v130%22%20stroke%3D%22%23444a40%22%20stroke-width%3D%228%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22235%22%20rx%3D%2253%22%20ry%3D%229%22%20fill%3D%22%23444a40%22%2F%3E%3Cpath%20d%3D%22M129%20122%20163%2052h74l34%2070Z%22%20fill%3D%22%23798575%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2271%22%20ry%3D%2212%22%20fill%3D%22%2358674e%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2240%22%20ry%3D%226%22%20fill%3D%22%23dadbba%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Hogar y cocina\"},{\"children\":[{\"href\":\"#/c/mujer\",\"id\":\"pcat_mujer\",\"label\":\"Mujer\"},{\"href\":\"#/c/hombre\",\"id\":\"pcat_hombre\",\"label\":\"Hombre\"},{\"href\":\"#/c/calzado\",\"id\":\"pcat_calzado\",\"label\":\"Calzado\"}],\"count\":312,\"href\":\"#/c/moda\",\"id\":\"pcat_moda\",\"image\":{\"alt\":\"Moda\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M155%20108V90a45%2045%200%200%201%2090%200v18%22%20fill%3D%22none%22%20stroke%3D%22%236a6358%22%20stroke-width%3D%229%22%2F%3E%3Cpath%20d%3D%22M127%20104h146l15%20131H112Z%22%20fill%3D%22%23a5a08f%22%2F%3E%3Cpath%20d%3D%22M133%20110h134l12%20119H121Z%22%20fill%3D%22%23b6b1a0%22%2F%3E%3Cpath%20d%3D%22M143%20119v97m114-97v97%22%20stroke%3D%22%23938e7e%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M155%20105v31m90-31v31%22%20stroke%3D%22%236a6358%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Moda\"},{\"badge\":{\"label\":\"Hasta −40 %\",\"tone\":\"promo\"},\"children\":[{\"description\":\"Selección editorial del mes.\",\"href\":\"#/c/oferta-1\",\"id\":\"pcat_oferta-1\",\"image\":{\"alt\":\"Destacado del mes\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M115%20172v-39a85%2085%200%200%201%20170%200v39%22%20fill%3D%22none%22%20stroke%3D%22%23323634%22%20stroke-width%3D%2219%22%2F%3E%3Cpath%20d%3D%22M122%20132a78%2078%200%200%201%20156%200%22%20fill%3D%22none%22%20stroke%3D%22%23777c75%22%20stroke-width%3D%225%22%2F%3E%3Cg%20transform%3D%22rotate(-12%20117%20182)%22%3E%3Crect%20x%3D%2299%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22121%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22rotate(12%20283%20182)%22%3E%3Crect%20x%3D%22262%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22254%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\"},\"label\":\"Destacado del mes\"},{\"href\":\"#/c/oferta-2\",\"id\":\"pcat_oferta-2\",\"label\":\"Oferta 2\"},{\"href\":\"#/c/oferta-3\",\"id\":\"pcat_oferta-3\",\"label\":\"Oferta 3\"},{\"href\":\"#/c/oferta-4\",\"id\":\"pcat_oferta-4\",\"label\":\"Oferta 4\"},{\"href\":\"#/c/oferta-5\",\"id\":\"pcat_oferta-5\",\"label\":\"Oferta 5\"},{\"href\":\"#/c/oferta-6\",\"id\":\"pcat_oferta-6\",\"label\":\"Oferta 6\"},{\"href\":\"#/c/oferta-7\",\"id\":\"pcat_oferta-7\",\"label\":\"Oferta 7\"},{\"href\":\"#/c/oferta-8\",\"id\":\"pcat_oferta-8\",\"label\":\"Oferta 8\"},{\"href\":\"#/c/oferta-9\",\"id\":\"pcat_oferta-9\",\"label\":\"Oferta 9\"},{\"href\":\"#/c/oferta-10\",\"id\":\"pcat_oferta-10\",\"label\":\"Oferta 10\"},{\"href\":\"#/c/oferta-11\",\"id\":\"pcat_oferta-11\",\"label\":\"Oferta 11\"},{\"href\":\"#/c/oferta-12\",\"id\":\"pcat_oferta-12\",\"label\":\"Oferta 12\"},{\"href\":\"#/c/oferta-13\",\"id\":\"pcat_oferta-13\",\"label\":\"Oferta 13\"},{\"href\":\"#/c/oferta-14\",\"id\":\"pcat_oferta-14\",\"label\":\"Oferta 14\"},{\"href\":\"#/c/oferta-15\",\"id\":\"pcat_oferta-15\",\"label\":\"Oferta 15\"},{\"href\":\"#/c/oferta-16\",\"id\":\"pcat_oferta-16\",\"label\":\"Oferta 16\"},{\"href\":\"#/c/oferta-17\",\"id\":\"pcat_oferta-17\",\"label\":\"Oferta 17\"},{\"href\":\"#/c/oferta-18\",\"id\":\"pcat_oferta-18\",\"label\":\"Oferta 18\"}],\"href\":\"#/c/ofertas\",\"id\":\"pcat_ofertas\",\"image\":{\"alt\":\"Ofertas\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M115%20172v-39a85%2085%200%200%201%20170%200v39%22%20fill%3D%22none%22%20stroke%3D%22%23323634%22%20stroke-width%3D%2219%22%2F%3E%3Cpath%20d%3D%22M122%20132a78%2078%200%200%201%20156%200%22%20fill%3D%22none%22%20stroke%3D%22%23777c75%22%20stroke-width%3D%225%22%2F%3E%3Cg%20transform%3D%22rotate(-12%20117%20182)%22%3E%3Crect%20x%3D%2299%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22121%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22rotate(12%20283%20182)%22%3E%3Crect%20x%3D%22262%22%20y%3D%22140%22%20width%3D%2239%22%20height%3D%2289%22%20rx%3D%2218%22%20fill%3D%22%23464b47%22%2F%3E%3Crect%20x%3D%22254%22%20y%3D%22147%22%20width%3D%2225%22%20height%3D%2277%22%20rx%3D%2212%22%20fill%3D%22%23232824%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\"},\"label\":\"Ofertas\"},{\"children\":[{\"href\":\"#/c/outlet-1\",\"id\":\"pcat_outlet-1\",\"label\":\"Outlet 1\"},{\"href\":\"#/c/outlet-2\",\"id\":\"pcat_outlet-2\",\"label\":\"Outlet 2\"},{\"href\":\"#/c/outlet-3\",\"id\":\"pcat_outlet-3\",\"label\":\"Outlet 3\"},{\"href\":\"#/c/outlet-4\",\"id\":\"pcat_outlet-4\",\"label\":\"Outlet 4\"},{\"href\":\"#/c/outlet-5\",\"id\":\"pcat_outlet-5\",\"label\":\"Outlet 5\"},{\"href\":\"#/c/outlet-6\",\"id\":\"pcat_outlet-6\",\"label\":\"Outlet 6\"},{\"href\":\"#/c/outlet-7\",\"id\":\"pcat_outlet-7\",\"label\":\"Outlet 7\"},{\"href\":\"#/c/outlet-8\",\"id\":\"pcat_outlet-8\",\"label\":\"Outlet 8\"},{\"href\":\"#/c/outlet-9\",\"id\":\"pcat_outlet-9\",\"label\":\"Outlet 9\"},{\"href\":\"#/c/outlet-10\",\"id\":\"pcat_outlet-10\",\"label\":\"Outlet 10\"},{\"href\":\"#/c/outlet-11\",\"id\":\"pcat_outlet-11\",\"label\":\"Outlet 11\"},{\"href\":\"#/c/outlet-12\",\"id\":\"pcat_outlet-12\",\"label\":\"Outlet 12\"},{\"href\":\"#/c/outlet-13\",\"id\":\"pcat_outlet-13\",\"label\":\"Outlet 13\"},{\"href\":\"#/c/outlet-14\",\"id\":\"pcat_outlet-14\",\"label\":\"Outlet 14\"},{\"href\":\"#/c/outlet-15\",\"id\":\"pcat_outlet-15\",\"label\":\"Outlet 15\"},{\"href\":\"#/c/outlet-16\",\"id\":\"pcat_outlet-16\",\"label\":\"Outlet 16\"},{\"href\":\"#/c/outlet-17\",\"id\":\"pcat_outlet-17\",\"label\":\"Outlet 17\"},{\"href\":\"#/c/outlet-18\",\"id\":\"pcat_outlet-18\",\"label\":\"Outlet 18\"}],\"href\":\"#/c/outlet\",\"id\":\"pcat_outlet\",\"image\":{\"alt\":\"Outlet\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Crect%20x%3D%2292%22%20y%3D%2267%22%20width%3D%22216%22%20height%3D%22143%22%20rx%3D%229%22%20fill%3D%22url(%23metal)%22%2F%3E%3Crect%20x%3D%22101%22%20y%3D%2276%22%20width%3D%22198%22%20height%3D%22124%22%20rx%3D%223%22%20fill%3D%22url(%23screen)%22%2F%3E%3Cpath%20d%3D%22M101%20200%20230%2076h69v124Z%22%20fill%3D%22%23fff%22%20opacity%3D%22.07%22%2F%3E%3Cpath%20d%3D%22M92%20210h216l35%2026H57Z%22%20fill%3D%22%23a9aaa7%22%2F%3E%3Cpath%20d%3D%22M57%20236h286l-9%207H66Z%22%20fill%3D%22%23777c79%22%2F%3E%3Cpath%20d%3D%22M170%20213h60l6%207h-72Z%22%20fill%3D%22%23757c79%22%2F%3E%3C%2Fsvg%3E\"},\"label\":\"Outlet\"},{\"children\":[{\"children\":[{\"href\":\"#/c/batidoras\",\"id\":\"pcat_batidoras\",\"label\":\"Batidoras de vaso y de mano para uso diario\"}],\"href\":\"#/c/preparacion\",\"id\":\"pcat_preparacion\",\"label\":\"Preparación de alimentos y bebidas calientes\"}],\"href\":\"#/c/electrodomesticos\",\"id\":\"pcat_electrodomesticos\",\"label\":\"Electrodomésticos\"},{\"children\":[{\"href\":\"#/c/envio\",\"id\":\"pcat_envio\",\"label\":\"Envío y entrega\"},{\"href\":\"#/c/montaje\",\"id\":\"pcat_montaje\",\"label\":\"Montaje a domicilio\"}],\"id\":\"pcat_servicios\",\"label\":\"Servicios\"},{\"href\":\"#/c/marcas\",\"id\":\"pcat_marcas\",\"label\":\"Marcas\"},{\"id\":\"pcat_ideas\",\"label\":\"Ideas\"}],\"config\":{\"behavior\":{\"closeDelayMs\":160,\"mobilePattern\":\"drill-down\",\"openDelayMs\":200},\"layouts\":{\"bindings\":{\"pcat_hogar\":{\"desktop\":\"columns\",\"options\":{\"columns\":2}},\"pcat_moda\":{\"desktop\":\"visual-grid\",\"mobile\":\"visual-grid\"},\"pcat_ofertas\":{\"desktop\":\"custom\",\"options\":{\"columns\":3,\"featuredId\":\"pcat_oferta-1\"}},\"pcat_tecnologia\":{\"desktop\":\"hybrid\",\"mobile\":\"hybrid\",\"options\":{\"columns\":3,\"imageRatio\":\"landscape\",\"showCounts\":false}}},\"default\":\"hybrid\",\"desktop\":\"hybrid\",\"mobile\":\"hybrid\",\"options\":{\"columns\":{\"columns\":3},\"custom\":{\"columns\":2,\"showDescriptions\":true},\"hybrid\":{\"panelHeight\":\"md\",\"panelWidth\":\"lg\",\"railWidth\":\"normal\",\"showCounts\":false},\"visual-grid\":{\"columns\":3,\"imageRatio\":\"square\",\"showCounts\":false}}},\"transition\":{\"duration\":\"base\",\"level\":\"fade\",\"panel\":\"slide\",\"respectReducedMotion\":true}},\"labels\":{\"back\":\"Volver al nivel anterior\",\"browseLabel\":\"Todo empieza aquí\",\"close\":\"Cerrar menú\",\"empty\":\"No hay categorías disponibles\",\"emptyHint\":\"El catálogo se está actualizando. Vuelve en unos minutos.\",\"escapeLabel\":\"Esc\",\"featured\":\"Destacado\",\"keyboardHint\":\"Explora a tu ritmo. Encuentra lo que va contigo.\",\"levelLabel\":\"{name}, nivel {level}\",\"menuTitle\":\"Explora el catálogo\",\"menuTrigger\":\"Menú\",\"noImage\":\"Sin imagen de {name}\",\"openSubmenu\":\"Abrir {name}\",\"panelLabel\":\"Categorías de {name}\",\"productCount\":\"{count} productos\",\"productCountOne\":\"1 producto\",\"railLabel\":\"Todas las categorías\",\"viewAll\":\"Ver todo {name}\"},\"preview\":{\"defaultOpen\":false,\"openNodeId\":\"pcat_tecnologia\"},\"promotion\":{\"ctaLabel\":\"Descubrir la selección\",\"description\":\"Ideas para hacer tu día un poco más tuyo.\",\"eyebrow\":\"Selección de temporada\",\"href\":\"#/colecciones/temporada\",\"id\":\"seasonal-selection\",\"image\":{\"alt\":\"Lámpara de sobremesa de la selección de temporada\",\"src\":\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23353a3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23141719%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22screen%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%239caaa6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23384b48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%22300%22%20fill%3D%22%23eeedeb%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22245%22%20rx%3D%22105%22%20ry%3D%2210%22%20fill%3D%22%23dedcd8%22%2F%3E%3Cpath%20d%3D%22M200%20100v130%22%20stroke%3D%22%23444a40%22%20stroke-width%3D%228%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22235%22%20rx%3D%2253%22%20ry%3D%229%22%20fill%3D%22%23444a40%22%2F%3E%3Cpath%20d%3D%22M129%20122%20163%2052h74l34%2070Z%22%20fill%3D%22%23798575%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2271%22%20ry%3D%2212%22%20fill%3D%22%2358674e%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22122%22%20rx%3D%2240%22%20ry%3D%226%22%20fill%3D%22%23dadbba%22%2F%3E%3C%2Fsvg%3E\"},\"title\":\"Pequeños cambios. Grandes momentos.\"}}}"
59
66
  }
60
67
  }
61
68
  }
package/bin/storefront.js CHANGED
@@ -52,6 +52,10 @@ import {
52
52
  writeManifest,
53
53
  } from '../scripts/manifest.mjs'
54
54
  import { reconcile } from '../scripts/reconcile.mjs'
55
+ import {
56
+ cleanupScaffoldTemp,
57
+ scaffoldTempEnv,
58
+ } from '../scripts/scaffold-env.mjs'
55
59
  import { preflightManifest } from '../scripts/preflight.mjs'
56
60
  import { scaffoldComposition } from '../scripts/starter.mjs'
57
61
  import {
@@ -791,8 +795,13 @@ async function remainingNonSuiteSkills(opencodeDir) {
791
795
  // Run Yarn under the pinned Corepack version (`yarn@x.y.z`), so the scaffold
792
796
  // and every install use the canonical package manager deterministically rather
793
797
  // than whatever "known good release" Corepack would otherwise pick.
794
- function runYarn(yarnSpec, cmdArgs, cwd) {
795
- const res = spawnSync('corepack', [yarnSpec, ...cmdArgs], { cwd, stdio: 'inherit', shell: false })
798
+ function runYarn(yarnSpec, cmdArgs, cwd, env) {
799
+ const res = spawnSync('corepack', [yarnSpec, ...cmdArgs], {
800
+ cwd,
801
+ stdio: 'inherit',
802
+ shell: false,
803
+ env: env ? { ...process.env, ...env } : process.env,
804
+ })
796
805
  return res.status ?? 1
797
806
  }
798
807
 
@@ -1068,6 +1077,13 @@ async function create(args) {
1068
1077
  }
1069
1078
  if (!(await verifyConsistency())) return 1
1070
1079
 
1080
+ // 1b. Keep Yarn's staging on the target's device. `yarn dlx` installs into
1081
+ // `os.tmpdir()`; when that is a different filesystem than the global
1082
+ // cache, Yarn downgrades `nmMode` to `hardlinks-local` (YN0074) and copies
1083
+ // files it would otherwise hardlink. The directory is removed on exit.
1084
+ const tmpEnv = scaffoldTempEnv(target)
1085
+ if (tmpEnv.TMPDIR) process.once('exit', () => cleanupScaffoldTemp(tmpEnv))
1086
+
1071
1087
  // 2. Next.js base
1072
1088
  const hasPackageJson = existsSync(join(target, 'package.json'))
1073
1089
  if (!hasPackageJson) {
@@ -1083,7 +1099,7 @@ async function create(args) {
1083
1099
  // written in step 3, so network hardening applies to every install. The
1084
1100
  // pinned package manager is forced for the bootstrap too (Corepack), so the
1085
1101
  // whole scaffold runs under the canonical Yarn, not a floating release.
1086
- const status = runYarn(plan.packageManager, ['dlx', `create-next-app@${plan.scaffolder.createNextApp}`, '.', '--ts', '--tailwind', '--app', '--import-alias', '@/*', '--no-turbopack', '--use-yarn', '--skip-install'], target)
1102
+ const status = runYarn(plan.packageManager, ['dlx', `create-next-app@${plan.scaffolder.createNextApp}`, '.', '--ts', '--tailwind', '--app', '--import-alias', '@/*', '--no-turbopack', '--use-yarn', '--skip-install'], target, tmpEnv)
1087
1103
  if (hadOpenCode) {
1088
1104
  await cp(stash, opencodeDir, { recursive: true })
1089
1105
  await rm(stash, { recursive: true, force: true })
@@ -1111,26 +1127,45 @@ async function create(args) {
1111
1127
  )
1112
1128
  await rm(join(target, '.pnp.cjs'), { force: true })
1113
1129
 
1114
- // 3b. Pin the package manager (Corepack reads `packageManager`) and the local
1115
- // candidate. Yarn `resolutions` map each local @thorprovider/* package to
1116
- // its packed tarball while the declared dependency ranges stay honest
1117
- // semver. Written before any install so the whole tree resolves to the
1118
- // local candidate (no publish, no workspace import) under the pinned Yarn.
1130
+ // 3a. Own Yarn project root. When the target sits inside another Yarn project
1131
+ // (e.g. `projects/consumers/*` in the Thor Commerce monorepo), Yarn walks
1132
+ // up and rejects the first install — `shadcn init` aborts with "the nearest
1133
+ // package directory … doesn't seem to be part of the project". An empty
1134
+ // lockfile claims this directory as its own project; the first install
1135
+ // replaces it with a real one. Harmless for a standalone target, and an
1136
+ // existing lockfile is left untouched so resumed scaffolds keep theirs.
1137
+ const lockPath = join(target, 'yarn.lock')
1138
+ if (!existsSync(lockPath)) await writeFile(lockPath, '', 'utf8')
1139
+
1140
+ // 3b. Pin the package manager (Corepack reads `packageManager`), declare the
1141
+ // curated dependencies, and resolve the local candidate. Yarn `resolutions`
1142
+ // map each local @thorprovider/* package to its packed tarball while the
1143
+ // declared dependency ranges stay honest semver. Everything is written
1144
+ // before the first install so one install covers the curated set and the
1145
+ // set `shadcn init` adds — step 5 then only reconciles the tree.
1119
1146
  {
1120
1147
  const pkgPath = join(target, 'package.json')
1121
1148
  const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'))
1122
1149
  pkg.packageManager = plan.packageManager
1123
- if (Object.keys(plan.resolutions).length > 0) {
1124
- pkg.resolutions = { ...(pkg.resolutions ?? {}), ...plan.resolutions }
1125
- }
1150
+ pkg.dependencies = { ...(pkg.dependencies ?? {}), ...plan.dependencies }
1151
+ // `shadcn init` installs the CLI at whatever `latest` resolves to; pin it
1152
+ // through `resolutions` so its own install already lands on the candidate
1153
+ // version and step 4b's exact pin changes nothing in the tree.
1154
+ pkg.resolutions = { shadcn: plan.scaffolder.shadcn, ...plan.resolutions }
1155
+ if (Object.keys(pkg.resolutions).length === 0) delete pkg.resolutions
1126
1156
  await writeFile(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8')
1127
1157
  }
1128
1158
 
1129
- // 4. shadcn base
1159
+ // 4. shadcn base. `shadcn init` declares the packages it needs and installs
1160
+ // them in one pass — and because the curated dependencies are already in
1161
+ // package.json, that single install covers both sets. Installing again
1162
+ // afterwards would link the same tree a second time for a handful of new
1163
+ // packages.
1130
1164
  const shadcnStatus = runYarn(
1131
1165
  plan.packageManager,
1132
1166
  ['dlx', `shadcn@${plan.scaffolder.shadcn}`, 'init', '--template', 'next', '--base', 'base', '--preset', preset, '--no-monorepo', '--no-rtl', '--yes'],
1133
1167
  target,
1168
+ tmpEnv,
1134
1169
  )
1135
1170
  if (shadcnStatus !== 0) {
1136
1171
  console.error('shadcn init failed.')
@@ -1149,13 +1184,13 @@ async function create(args) {
1149
1184
  await writeFile(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8')
1150
1185
  }
1151
1186
 
1152
- // 5. Dependencies — every declared dep at its exact compatible version,
1153
- // including the exact candidate CLI.
1154
- const installDeps = Object.entries(plan.dependencies).map(([dep, version]) => `${dep}@${version}`)
1155
- const addStatus = runYarn(plan.packageManager, ['add', ...installDeps], target)
1156
- if (addStatus !== 0) {
1157
- console.error('yarn add failed.')
1158
- return addStatus
1187
+ // 5. Reconcile — the curated dependencies were declared in 3b and installed by
1188
+ // step 4, and 4b may have tightened the shadcn pin, so this pass normally
1189
+ // links nothing and only records the corrected lockfile entry.
1190
+ const reconcileStatus = runYarn(plan.packageManager, ['install'], target, tmpEnv)
1191
+ if (reconcileStatus !== 0) {
1192
+ console.error('yarn install failed.')
1193
+ return reconcileStatus
1159
1194
  }
1160
1195
 
1161
1196
  // 6. Template copy + placeholder substitution, then reconcile to the manifest.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/storefront",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "Deterministic storefront scaffolder and installable OpenCode skill suite for Thor Commerce (Next.js, @thorprovider/blocks, @thorprovider/adapters, Medusa)",
5
5
  "type": "module",
6
6
  "bin": "bin/storefront.js",
@@ -52,11 +52,13 @@
52
52
  "marketplace-product-card",
53
53
  "checkout-commerce-v1",
54
54
  "mega-menu-universal",
55
- "universal-banner"
55
+ "universal-banner",
56
+ "universal-main-menu"
56
57
  ],
57
58
  "defaultSections": [
58
59
  {
59
60
  "type": "products",
61
+ "variant": "ProductSlider",
60
62
  "after": "benefits"
61
63
  }
62
64
  ],
@@ -51,9 +51,9 @@
51
51
  },
52
52
  {
53
53
  "name": "products",
54
- "description": "Data-bound product presentation (grid or combined grid-and-carousel) whose selection is configured independently per instance",
54
+ "description": "Data-bound product presentation (grid, combined grid-and-carousel, or slider rail) whose selection is configured independently per instance",
55
55
  "elementType": "Products",
56
- "variants": ["ProductGrid", "ProductShowcase1"],
56
+ "variants": ["ProductGrid", "ProductShowcase1", "ProductSlider"],
57
57
  "defaultVariant": "ProductGrid",
58
58
  "dataBound": true,
59
59
  "propsHint": "per-instance selection configured in views/<view>/data.ts sectionSources[id] (canonical category/collection/search/ordering query); heading, description, objective, ctaLabel/ctaHref are editorial content",
@@ -62,7 +62,7 @@
62
62
  "status": "pending",
63
63
  "section": "products",
64
64
  "elementType": "Products",
65
- "variants": ["ProductGrid", "ProductShowcase1"],
65
+ "variants": ["ProductGrid", "ProductShowcase1", "ProductSlider"],
66
66
  "kind": "pending-card",
67
67
  "reason": "Product sections require coordinated editorial copy and host-owned catalog query configuration; that combined card is deferred.",
68
68
  "owner": "Wave 1 — editorial cards"
@@ -356,6 +356,16 @@
356
356
  ],
357
357
  "validator": { "export": "validateUniversalBannerData" }
358
358
  }
359
+ },
360
+ {
361
+ "name": "universal-main-menu",
362
+ "description": "UniversalMainMenu presentation section (delivery universal-main-menu).",
363
+ "elementType": "UniversalMainMenu",
364
+ "variants": ["UniversalMainMenu"],
365
+ "defaultVariant": "UniversalMainMenu",
366
+ "propsHint": "data (categories[], config, labels, promotion, preview)",
367
+ "status": "executable",
368
+ "agent": {"status":"pending","section":"universal-main-menu","elementType":"UniversalMainMenu","variants":["UniversalMainMenu"],"kind":"pending-card","reason":"The menu's data is the shop's catalog taxonomy; an agent-editable card needs a reviewed authoring contract for recursive category trees before automatic configuration is enabled.","owner":"design intake — universal-main-menu"}
359
369
  }
360
370
  ]
361
371
  }
@@ -47,7 +47,7 @@ export const CANDIDATE_TOOLSET = Object.freeze({
47
47
  '@json-render/next': '0.21.0',
48
48
  }),
49
49
  local: Object.freeze({
50
- '@thorprovider/blocks': '4.3.2',
50
+ '@thorprovider/blocks': '4.5.0',
51
51
  '@thorprovider/adapters': '5.6.0',
52
52
  '@thorprovider/runtime': '0.8.0',
53
53
  '@thorprovider/types': '7.7.0',
@@ -59,6 +59,7 @@ export function seedDefaultSections(manifest, { recipes = loadRecipes() } = {})
59
59
  const result = reduceSectionAdd(next, {
60
60
  view: recipe.name,
61
61
  type: seed.type,
62
+ ...(seed.variant === undefined ? {} : { variant: seed.variant }),
62
63
  ...(at === undefined ? {} : { at }),
63
64
  })
64
65
  if (!result.ok) {
@@ -58,6 +58,9 @@ const RULES = [
58
58
  'app/lib/*/account-session.core.ts',
59
59
  'app/lib/*/account-private.core.ts',
60
60
  'app/lib/*/account-user.core.ts',
61
+ // The footer content contract and its neutral defaults are package-owned;
62
+ // a merchant overrides copy through the user-owned shell content seam.
63
+ 'app/lib/*/footer-content.ts',
61
64
  'app/lib/*/account-lifecycle.client.tsx',
62
65
  'app/lib/*/account-boundary.client.tsx',
63
66
  'app/lib/*/account-mutation.client.ts',
@@ -0,0 +1,48 @@
1
+ // Child-process environment for `storefront create`.
2
+ //
3
+ // `yarn dlx` stages its temporary install under `os.tmpdir()`. When that lives
4
+ // on a different device than Yarn's global cache, Yarn downgrades `nmMode` to
5
+ // `hardlinks-local` (warning YN0074) and copies every file it would otherwise
6
+ // hardlink, which turns a cheap scaffold into a burst of disk writes. Pointing
7
+ // `TMPDIR` at a directory beside the target keeps staging and cache on one
8
+ // device, so `hardlinks-global` holds for every install the scaffold runs.
9
+
10
+ import { mkdtempSync, rmSync, statSync } from 'node:fs'
11
+ import { tmpdir } from 'node:os'
12
+ import { dirname, join } from 'node:path'
13
+
14
+ /**
15
+ * Env overrides that keep Yarn staging on the target's device.
16
+ * Returns `{}` when the default temp directory already shares the device, or
17
+ * when the target cannot be inspected.
18
+ */
19
+ export function scaffoldTempEnv(target) {
20
+ if (process.platform === 'win32') return {}
21
+ let targetDevice
22
+ try {
23
+ targetDevice = statSync(target).dev
24
+ } catch {
25
+ return {}
26
+ }
27
+ try {
28
+ if (statSync(tmpdir()).dev === targetDevice) return {}
29
+ } catch {
30
+ return {}
31
+ }
32
+ try {
33
+ return { TMPDIR: mkdtempSync(join(dirname(target), '.storefront-tmp-')) }
34
+ } catch {
35
+ // A read-only parent is not a reason to fail the scaffold.
36
+ return {}
37
+ }
38
+ }
39
+
40
+ /** Remove a directory created by `scaffoldTempEnv`, ignoring failures. */
41
+ export function cleanupScaffoldTemp(env) {
42
+ if (!env?.TMPDIR) return
43
+ try {
44
+ rmSync(env.TMPDIR, { recursive: true, force: true })
45
+ } catch {
46
+ // Best effort: a leftover empty temp directory is not a scaffold failure.
47
+ }
48
+ }
@@ -52,11 +52,13 @@
52
52
  "marketplace-product-card",
53
53
  "checkout-commerce-v1",
54
54
  "mega-menu-universal",
55
- "universal-banner"
55
+ "universal-banner",
56
+ "universal-main-menu"
56
57
  ],
57
58
  "defaultSections": [
58
59
  {
59
60
  "type": "products",
61
+ "variant": "ProductSlider",
60
62
  "after": "benefits"
61
63
  }
62
64
  ],
@@ -51,9 +51,9 @@
51
51
  },
52
52
  {
53
53
  "name": "products",
54
- "description": "Data-bound product presentation (grid or combined grid-and-carousel) whose selection is configured independently per instance",
54
+ "description": "Data-bound product presentation (grid, combined grid-and-carousel, or slider rail) whose selection is configured independently per instance",
55
55
  "elementType": "Products",
56
- "variants": ["ProductGrid", "ProductShowcase1"],
56
+ "variants": ["ProductGrid", "ProductShowcase1", "ProductSlider"],
57
57
  "defaultVariant": "ProductGrid",
58
58
  "dataBound": true,
59
59
  "propsHint": "per-instance selection configured in views/<view>/data.ts sectionSources[id] (canonical category/collection/search/ordering query); heading, description, objective, ctaLabel/ctaHref are editorial content",
@@ -62,7 +62,7 @@
62
62
  "status": "pending",
63
63
  "section": "products",
64
64
  "elementType": "Products",
65
- "variants": ["ProductGrid", "ProductShowcase1"],
65
+ "variants": ["ProductGrid", "ProductShowcase1", "ProductSlider"],
66
66
  "kind": "pending-card",
67
67
  "reason": "Product sections require coordinated editorial copy and host-owned catalog query configuration; that combined card is deferred.",
68
68
  "owner": "Wave 1 — editorial cards"
@@ -356,6 +356,16 @@
356
356
  ],
357
357
  "validator": { "export": "validateUniversalBannerData" }
358
358
  }
359
+ },
360
+ {
361
+ "name": "universal-main-menu",
362
+ "description": "UniversalMainMenu presentation section (delivery universal-main-menu).",
363
+ "elementType": "UniversalMainMenu",
364
+ "variants": ["UniversalMainMenu"],
365
+ "defaultVariant": "UniversalMainMenu",
366
+ "propsHint": "data (categories[], config, labels, promotion, preview)",
367
+ "status": "executable",
368
+ "agent": {"status":"pending","section":"universal-main-menu","elementType":"UniversalMainMenu","variants":["UniversalMainMenu"],"kind":"pending-card","reason":"The menu's data is the shop's catalog taxonomy; an agent-editable card needs a reviewed authoring contract for recursive category trees before automatic configuration is enabled.","owner":"design intake — universal-main-menu"}
359
369
  }
360
370
  ]
361
371
  }
@@ -0,0 +1,136 @@
1
+ // Optional section fragment: universal-main-menu (mirrors recipes/sections.json) — shared contract.
2
+ // Zod mirror of the UniversalMainMenu block contract (delivery universal-main-menu, contract version 4.3.2),
3
+ // shared by the server catalog (universal-main-menu.tsx) and the client registry (universal-main-menu.client.tsx).
4
+ // The React-only callbacks (onNavigate, onOpenChange) are intentionally excluded.
5
+
6
+ import { z } from 'zod'
7
+
8
+ export type universalMainMenuItem = {
9
+ id: string
10
+ label: string
11
+ href?: string
12
+ description?: string
13
+ image?: {
14
+ src: string
15
+ alt: string
16
+ }
17
+ badge?: {
18
+ label: string
19
+ tone: "accent" | "neutral" | "promo"
20
+ }
21
+ count?: number
22
+ children?: universalMainMenuItem[]
23
+ }
24
+
25
+ export const universalMainMenuItemSchema: z.ZodType<universalMainMenuItem> = z.object({
26
+ id: z.string(),
27
+ label: z.string(),
28
+ href: z.string().optional(),
29
+ description: z.string().optional(),
30
+ image: z.object({
31
+ src: z.string(),
32
+ alt: z.string(),
33
+ }).optional(),
34
+ badge: z.object({
35
+ label: z.string(),
36
+ tone: z.enum(["accent", "neutral", "promo"]),
37
+ }).optional(),
38
+ count: z.number().optional(),
39
+ children: z.array(z.lazy(() => universalMainMenuItemSchema)).optional(),
40
+ })
41
+
42
+ export const universalMainMenuDataSchema = z.object({
43
+ categories: z.array(universalMainMenuItemSchema),
44
+ config: z.object({
45
+ layouts: z.object({
46
+ default: z.string(),
47
+ desktop: z.string(),
48
+ mobile: z.string(),
49
+ bindings: z.record(z.string(), z.object({
50
+ desktop: z.string().optional(),
51
+ mobile: z.string().optional(),
52
+ options: z.object({
53
+ columns: z.number().optional(),
54
+ panelWidth: z.string().optional(),
55
+ panelHeight: z.string().optional(),
56
+ imageRatio: z.string().optional(),
57
+ showImages: z.boolean().optional(),
58
+ showDescriptions: z.boolean().optional(),
59
+ showCounts: z.boolean().optional(),
60
+ showBadges: z.boolean().optional(),
61
+ showViewAll: z.boolean().optional(),
62
+ railWidth: z.string().optional(),
63
+ featuredId: z.string().optional(),
64
+ }).optional(),
65
+ })),
66
+ options: z.record(z.string(), z.object({
67
+ columns: z.number().optional(),
68
+ panelWidth: z.string().optional(),
69
+ panelHeight: z.string().optional(),
70
+ imageRatio: z.string().optional(),
71
+ showImages: z.boolean().optional(),
72
+ showDescriptions: z.boolean().optional(),
73
+ showCounts: z.boolean().optional(),
74
+ showBadges: z.boolean().optional(),
75
+ showViewAll: z.boolean().optional(),
76
+ railWidth: z.string().optional(),
77
+ featuredId: z.string().optional(),
78
+ })),
79
+ }),
80
+ behavior: z.object({
81
+ platform: z.string().optional(),
82
+ mobilePattern: z.string().optional(),
83
+ openOnHover: z.boolean().optional(),
84
+ openDelayMs: z.number().optional(),
85
+ closeDelayMs: z.number().optional(),
86
+ direction: z.string().optional(),
87
+ }),
88
+ transition: z.object({
89
+ panel: z.string().optional(),
90
+ level: z.string().optional(),
91
+ duration: z.string().optional(),
92
+ respectReducedMotion: z.boolean().optional(),
93
+ }),
94
+ }),
95
+ labels: z.object({
96
+ menuTrigger: z.string(),
97
+ menuTitle: z.string(),
98
+ close: z.string(),
99
+ back: z.string(),
100
+ openSubmenu: z.string(),
101
+ viewAll: z.string(),
102
+ productCount: z.string(),
103
+ productCountOne: z.string(),
104
+ featured: z.string(),
105
+ empty: z.string(),
106
+ emptyHint: z.string(),
107
+ panelLabel: z.string(),
108
+ railLabel: z.string(),
109
+ levelLabel: z.string(),
110
+ noImage: z.string(),
111
+ browseLabel: z.string().optional(),
112
+ keyboardHint: z.string().optional(),
113
+ escapeLabel: z.string().optional(),
114
+ }),
115
+ promotion: z.object({
116
+ id: z.string(),
117
+ eyebrow: z.string(),
118
+ title: z.string(),
119
+ description: z.string().optional(),
120
+ href: z.string(),
121
+ ctaLabel: z.string(),
122
+ image: z.object({
123
+ src: z.string(),
124
+ alt: z.string(),
125
+ }).optional(),
126
+ categoryIds: z.array(z.string()).optional(),
127
+ }).optional(),
128
+ preview: z.object({
129
+ defaultOpen: z.boolean().optional(),
130
+ openNodeId: z.string().optional(),
131
+ }).optional(),
132
+ })
133
+
134
+ export const universalMainMenuPropsSchema = z.object({
135
+ data: universalMainMenuDataSchema,
136
+ })