@thorprovider/storefront 0.12.0 → 0.13.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/README.md CHANGED
@@ -482,10 +482,15 @@ preset. Its own copy — newsletter, contact, payments, legal, region — comes
482
482
  `GET /store/footer`: a backend that owns the footer serves that shape and the shell drops
483
483
  its defaults. Until then, override individual keys with `footerContent` in
484
484
  `shell/content.ts`; the full contract and its wiring live in
485
- `docs/footer-content-endpoint.md`. The scaffold ships no subscribe callback, so the newsletter form renders
486
- disabled rather than faking a subscription, and no app-store listing or QR image is
487
- invented (the app band hides itself while `apps.links` is empty). Navigation stays
488
- derived from `linkColumns`, so the footer cannot drift from the rest of the chrome.
485
+ `docs/footer-content-endpoint.md`. The scaffold ships no subscribe callback, so the
486
+ newsletter section is left out of the rendered preset (`toUniversalFooterProps` passes the
487
+ commerce sections minus `newsletter`) instead of shipping a disabled form; adding the
488
+ section back is binding `onSubscribe` plus one entry in that list. Region options default to
489
+ a Mercosur set (Español/English/Português, Uruguay…Paraguay, UYU/USD/ARS/BRL) and the
490
+ selectors are presentational: choosing a value emits an action the shell does not consume.
491
+ No app-store listing or QR image is invented (the app band hides itself while `apps.links`
492
+ is empty). Navigation stays derived from `linkColumns`, so the footer cannot drift from the
493
+ rest of the chrome.
489
494
 
490
495
  A view's derived `index.tsx` imports the user-owned `content.ts`/`props.ts`/
491
496
  `data.ts`, so a customization changes real spec/loader output and survives `sync`.
@@ -141,10 +141,28 @@ export const footerContentDefaults: FooterContent = {
141
141
  languageLabel: 'Idioma',
142
142
  countryLabel: 'País',
143
143
  currencyLabel: 'Moneda',
144
- active: 'Español',
145
- languages: [{ value: 'es', label: 'Español' }],
146
- countries: [{ value: 'uy', label: 'Uruguay' }],
147
- currencies: [{ value: 'uyu', label: 'UYU' }],
144
+ active: 'Español · Uruguay · UYU',
145
+ // A backend that owns the footer serves the real lists (`GET /store/footer`);
146
+ // these are the markets a fresh scaffold advertises. The selectors are
147
+ // presentational: choosing a value emits an action the shell does not consume.
148
+ languages: [
149
+ { value: 'es', label: 'Español' },
150
+ { value: 'en', label: 'English' },
151
+ { value: 'pt', label: 'Português' },
152
+ ],
153
+ countries: [
154
+ { value: 'uy', label: 'Uruguay' },
155
+ { value: 'ar', label: 'Argentina' },
156
+ { value: 'br', label: 'Brasil' },
157
+ { value: 'cl', label: 'Chile' },
158
+ { value: 'py', label: 'Paraguay' },
159
+ ],
160
+ currencies: [
161
+ { value: 'uyu', label: 'UYU' },
162
+ { value: 'usd', label: 'USD' },
163
+ { value: 'ars', label: 'ARS' },
164
+ { value: 'brl', label: 'BRL' },
165
+ ],
148
166
  },
149
167
  }
150
168
 
@@ -176,6 +194,25 @@ export interface FooterShellProps {
176
194
  footerContent?: FooterContent
177
195
  }
178
196
 
197
+ /**
198
+ * The commerce preset's pieces minus `newsletter`.
199
+ *
200
+ * The block renders the newsletter form only when a host binds `onSubscribe`,
201
+ * and the scaffold ships no subscribe endpoint. A visible-but-disabled form
202
+ * reads as broken, so the section is left out until one exists: bind
203
+ * `onSubscribe` in the registry, add `'newsletter'` here, and the preset's form
204
+ * comes back with the copy from `footerContent.newsletter`.
205
+ */
206
+ const commerceSections: NonNullable<UniversalFooterProps['sections']> = [
207
+ 'brand',
208
+ 'nav',
209
+ 'contact',
210
+ 'apps',
211
+ 'payments',
212
+ 'legal',
213
+ 'region',
214
+ ]
215
+
179
216
  /**
180
217
  * Map the shell seam onto the footer block. The commerce preset is fixed: this
181
218
  * is the storefront shell footer, not a chooser. Link columns stay authoritative
@@ -197,6 +234,7 @@ export function toUniversalFooterProps(shell: FooterShellProps): UniversalFooter
197
234
  legal: content.legal,
198
235
  region: content.region,
199
236
  },
237
+ sections: commerceSections,
200
238
  brandAccent: shell.brandAccent,
201
239
  className: shell.className,
202
240
  }
@@ -13,8 +13,9 @@ import { marketplaceProductCardSection } from './marketplace-product-card'
13
13
  import { megaMenuUniversalSection } from './mega-menu-universal'
14
14
  import { productsSection } from './products'
15
15
  import { universalBannerSection } from './universal-banner'
16
+ import { universalMainMenuSection } from './universal-main-menu'
16
17
 
17
- export const sectionModules = [checkoutCommerceV1Section, faqSection, ctaSection, marketplaceProductCardSection, megaMenuUniversalSection, productsSection, universalBannerSection] as const
18
+ export const sectionModules = [checkoutCommerceV1Section, faqSection, ctaSection, marketplaceProductCardSection, megaMenuUniversalSection, productsSection, universalBannerSection, universalMainMenuSection] as const
18
19
 
19
20
  export const sectionCatalog: Record<string, ViewCatalogEntry> = Object.assign(
20
21
  {},
@@ -7,6 +7,7 @@
7
7
  // `variant`. The selection and resolved products arrive through the view state;
8
8
  // this boundary only validates them and wires navigation/purchase callbacks.
9
9
 
10
+ import { UniversalProductSlider, type UniversalProductSliderProps } from '@thorprovider/blocks'
10
11
  import { ProductGrid as ProductGridBlock } from '@thorprovider/blocks/blocks/e-commerce/product-list/product-grid'
11
12
  import ProductShowcase1Block from '@thorprovider/blocks/blocks/e-commerce/product-list/product-showcase-1'
12
13
  import type { ProductPresentation } from '@thorprovider/blocks/contracts'
@@ -15,6 +16,27 @@ import { useSectionObservation } from '../../section-observation'
15
16
  import { productsPropsSchema, type ProductsStatus } from './schema.products'
16
17
  import type { ViewRegistry } from '../types'
17
18
 
19
+ // The merchandising rail reads the same resolved selection as the grid, so the
20
+ // only translation is the presentation shape. Host-owned state (navigation and
21
+ // purchase callbacks) is mapped back to the source product by id, which keeps
22
+ // `lastClicked` and the cart actions identical across variants.
23
+ type SliderProductProp = UniversalProductSliderProps['products'][number]
24
+
25
+ function toSliderProduct(product: ProductPresentation): SliderProductProp {
26
+ return {
27
+ id: product.id,
28
+ name: product.title,
29
+ ...(product.image ? { image: product.image } : {}),
30
+ ...(product.imageAlt ? { imageAlt: product.imageAlt } : {}),
31
+ ...(product.href ? { href: product.href } : {}),
32
+ price: product.price,
33
+ ...(product.compareAtPrice ? { compareAtPrice: product.compareAtPrice } : {}),
34
+ ...(product.rating === undefined ? {} : { rating: product.rating }),
35
+ ...(product.badge ? { badge: product.badge } : {}),
36
+ ...(product.inStock === false ? { availability: 'out-of-stock' as const } : {}),
37
+ }
38
+ }
39
+
18
40
  // Truthful, actionable messages for the non-`ready` states. A failed or
19
41
  // unconfigured section never fabricates products.
20
42
  function sectionStatusMessage(status: ProductsStatus): string {
@@ -82,9 +104,38 @@ export const productsRegistry: ViewRegistry = {
82
104
  onProductClick: openProduct,
83
105
  }
84
106
 
107
+ // The rail's callbacks are typed with its own product shape; map back to the
108
+ // resolved presentation so both variants share one host action path.
109
+ const byId = new Map(parsed.products.map((product) => [String(product.id), product]))
110
+
85
111
  return (
86
112
  <div ref={containerRef}>
87
- {parsed.variant === 'ProductShowcase1' ? (
113
+ {parsed.variant === 'ProductSlider' ? (
114
+ <UniversalProductSlider
115
+ header={{
116
+ title: parsed.heading ?? 'Productos',
117
+ ...(parsed.description ? { description: parsed.description } : {}),
118
+ ...(parsed.ctaLabel
119
+ ? {
120
+ action: {
121
+ label: parsed.ctaLabel,
122
+ ...(parsed.ctaHref ? { href: parsed.ctaHref } : {}),
123
+ variant: 'link' as const,
124
+ },
125
+ }
126
+ : {}),
127
+ }}
128
+ products={parsed.products.map(toSliderProduct)}
129
+ onAddToCart={(product) => {
130
+ const source = byId.get(String(product.id))
131
+ if (source) addToCart(source)
132
+ }}
133
+ onProductClick={(product) => {
134
+ const source = byId.get(String(product.id))
135
+ if (source) openProduct(source)
136
+ }}
137
+ />
138
+ ) : parsed.variant === 'ProductShowcase1' ? (
88
139
  <ProductShowcase1Block
89
140
  {...shared}
90
141
  heading={parsed.heading}
@@ -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
+ })
@@ -0,0 +1,19 @@
1
+ 'use client'
2
+
3
+ // Optional section fragment: universal-main-menu (mirrors recipes/sections.json) — client registry.
4
+ // The matching server-side catalog lives in universal-main-menu.tsx. @thorprovider/blocks ships a
5
+ // 'use client' boundary, but this fragment keeps the explicit client boundary so
6
+ // the section composes identically in any consumer graph.
7
+
8
+ import { UniversalMainMenu } from '@thorprovider/blocks'
9
+ import { universalMainMenuPropsSchema } from './schema.universal-main-menu'
10
+ import type { ViewRegistry } from '../types'
11
+
12
+ export const universalMainMenuRegistry: ViewRegistry = {
13
+ UniversalMainMenu: ({ props }) => {
14
+ const parsed = universalMainMenuPropsSchema.parse(props)
15
+ return (
16
+ <UniversalMainMenu data={parsed.data} />
17
+ )
18
+ },
19
+ }
@@ -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
  }
@@ -127,6 +127,14 @@ const giftsMobile = bannerScene(
127
127
  `<svg xmlns='http://www.w3.org/2000/svg' width='640' height='960' viewBox='0 0 640 960'><rect width='640' height='960' fill='#f3e7e2'/><rect x='0' y='780' width='640' height='180' fill='#e0cdc6'/><rect x='170' y='700' width='300' height='80' rx='12' fill='#d8c2ba'/><rect x='200' y='400' width='240' height='300' rx='26' fill='#a4465c'/><path d='M270 400 Q270 320 320 320 Q370 320 370 400' fill='none' stroke='#7d3346' stroke-width='20'/><rect x='200' y='510' width='240' height='22' fill='#7d3346' opacity='0.5'/><rect x='292' y='484' width='52' height='66' rx='9' fill='#e8c8a0'/></svg>`,
128
128
  )
129
129
 
130
+ // Dining-table scene for the decor tile: oak table, linen runner, plate stack.
131
+ const decorDesktop = bannerScene(
132
+ `<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'><rect width='1600' height='900' fill='#eef1ec'/><rect x='0' y='640' width='1600' height='260' fill='#d5dccf'/><rect x='180' y='470' width='1240' height='190' rx='18' fill='#c9a879'/><rect x='120' y='660' width='60' height='150' rx='10' fill='#a98d63'/><rect x='1420' y='660' width='60' height='150' rx='10' fill='#a98d63'/><rect x='560' y='440' width='480' height='60' rx='8' fill='#f6f2ea'/><g fill='#ffffff' stroke='#cdd6c6' stroke-width='6'><circle cx='430' cy='440' r='110'/><circle cx='760' cy='430' r='86'/><circle cx='1050' cy='445' r='110'/></g><circle cx='430' cy='440' r='60' fill='#e8e3d6'/><circle cx='1050' cy='445' r='60' fill='#e8e3d6'/><g><rect x='1240' y='330' width='90' height='150' rx='16' fill='#b7a184'/><path d='M1265 330 q20 -70 40 0' fill='none' stroke='#8a9b6e' stroke-width='10'/><circle cx='1285' cy='248' r='34' fill='#9daf80'/></g><text x='90' y='140' font-family='system-ui, sans-serif' font-size='40' fill='#7c8778' opacity='0.6'>MESA</text></svg>`,
133
+ )
134
+ const decorMobile = bannerScene(
135
+ `<svg xmlns='http://www.w3.org/2000/svg' width='640' height='960' viewBox='0 0 640 960'><rect width='640' height='960' fill='#eef1ec'/><rect x='0' y='700' width='640' height='260' fill='#d5dccf'/><rect x='40' y='560' width='560' height='170' rx='16' fill='#c9a879'/><rect x='180' y='530' width='280' height='50' rx='8' fill='#f6f2ea'/><g fill='#ffffff' stroke='#cdd6c6' stroke-width='6'><circle cx='230' cy='520' r='80'/><circle cx='430' cy='525' r='80'/></g><g><rect x='470' y='380' width='70' height='120' rx='14' fill='#b7a184'/><path d='M490 380 q16 -54 32 0' fill='none' stroke='#8a9b6e' stroke-width='9'/><circle cx='506' cy='318' r='28' fill='#9daf80'/></g></svg>`,
136
+ )
137
+
130
138
  export const heroBannerData = {
131
139
  campaign: {
132
140
  schemaVersion: 1,
@@ -199,6 +207,9 @@ export const heroBannerData = {
199
207
  padding: 'md',
200
208
  textScale: 'sm',
201
209
  },
210
+ // Desktop: wide tiles with a 224px floor. Each tile owns one cell of the
211
+ // wall, so the floor sets the row height and copy can still grow it.
212
+ responsive: { '2xl': { aspect: 'wide', height: 'adaptive', heightToken: 'md' } },
202
213
  visible: true,
203
214
  },
204
215
  {
@@ -232,6 +243,9 @@ export const heroBannerData = {
232
243
  padding: 'md',
233
244
  textScale: 'sm',
234
245
  },
246
+ // Desktop: wide tiles with a 224px floor. Each tile owns one cell of the
247
+ // wall, so the floor sets the row height and copy can still grow it.
248
+ responsive: { '2xl': { aspect: 'wide', height: 'adaptive', heightToken: 'md' } },
235
249
  visible: true,
236
250
  },
237
251
  {
@@ -265,6 +279,45 @@ export const heroBannerData = {
265
279
  padding: 'md',
266
280
  textScale: 'sm',
267
281
  },
282
+ // Desktop: wide tiles with a 224px floor. Each tile owns one cell of the
283
+ // wall, so the floor sets the row height and copy can still grow it.
284
+ responsive: { '2xl': { aspect: 'wide', height: 'adaptive', heightToken: 'md' } },
285
+ visible: true,
286
+ },
287
+ {
288
+ id: 'banner-mesa-decor',
289
+ campaignId: 'campaign-thor-salon',
290
+ content: {
291
+ name: 'Mesa y textil',
292
+ alt: 'Mesa de roble con mantel de lino, vajilla clara y un jarrón de cerámica',
293
+ title: 'La mesa, a punto',
294
+ description: 'Mantelería de lino, vajilla y cerámica para completar el salón.',
295
+ badge: 'Decoración',
296
+ target: { kind: 'category', id: 'home' },
297
+ ctas: [
298
+ { id: 'cta-mesa', label: 'Ver decoración', target: { kind: 'category', id: 'home' }, tone: 'secondary' },
299
+ ],
300
+ },
301
+ media: { desktop: decorDesktop, mobile: decorMobile },
302
+ presentation: {
303
+ mode: 'overlay',
304
+ width: 'full',
305
+ height: 'auto',
306
+ heightToken: 'sm',
307
+ aspect: 'photo',
308
+ fit: 'cover',
309
+ focal: 'center',
310
+ align: 'start',
311
+ radius: '2xl',
312
+ surface: 'card',
313
+ overlay: 'scrim',
314
+ overlayOpacity: 'light',
315
+ padding: 'md',
316
+ textScale: 'sm',
317
+ },
318
+ // Desktop: wide tiles with a 224px floor. Each tile owns one cell of the
319
+ // wall, so the floor sets the row height and copy can still grow it.
320
+ responsive: { '2xl': { aspect: 'wide', height: 'adaptive', heightToken: 'md' } },
268
321
  visible: true,
269
322
  },
270
323
  ],
@@ -277,20 +330,25 @@ export const heroBannerData = {
277
330
  scheduleAware: true,
278
331
  responsiveEnabled: true,
279
332
  presentation: 'grid',
280
- preset: 'hero-three',
333
+ preset: 'custom',
281
334
  refs: [
282
335
  { bannerId: 'banner-salon-oferta' },
283
336
  { bannerId: 'banner-aurora-deal' },
284
337
  { bannerId: 'banner-nuevas-llegadas' },
285
338
  { bannerId: 'banner-guia-regalo' },
339
+ { bannerId: 'banner-mesa-decor' },
286
340
  ],
287
341
  layout: {
342
+ // Hero at two thirds with a tile beside it, then a row of three. Spans only
343
+ // apply at 2xl; narrower containers drop to one cell per column.
344
+ columns: { base: 1, md: 2, '2xl': 3 },
345
+ spans: [2, 1, 1, 1, 1],
288
346
  gapX: 'md',
289
347
  gapY: 'md',
290
348
  maxWidth: 'full',
291
- // No media cap: the tall hero spans three grid rows, and a capped media
292
- // leaves the rest of the card empty. Each cell sizes its own media.
293
- maxHeight: 'none',
349
+ // Caps every cell at 384px, which is the hero's height in its two-column
350
+ // cell. The tiles keep their 224px floor, so the wall stays near 630px.
351
+ maxHeight: 'xl',
294
352
  align: 'center',
295
353
  radius: '2xl',
296
354
  },
package/bin/storefront.js CHANGED
@@ -64,6 +64,7 @@ import {
64
64
  DEFAULT_REGISTRY,
65
65
  findPack,
66
66
  parseRuntimeCommerceImports,
67
+ REGISTRY_RETRY,
67
68
  verifyPackExports,
68
69
  verifyRegistryToolset,
69
70
  } from '../scripts/candidate.mjs'
@@ -1048,6 +1049,7 @@ async function create(args) {
1048
1049
  cliVersion,
1049
1050
  templatesDir: join(PKG_ROOT, 'assets', 'templates'),
1050
1051
  registry: process.env.STOREFRONT_REGISTRY_URL || DEFAULT_REGISTRY,
1052
+ retry: REGISTRY_RETRY,
1051
1053
  })
1052
1054
  if (!registry.ok) {
1053
1055
  console.error('Refusing to create: the pinned candidate is not installable from the registry.')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/storefront",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
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,10 +47,10 @@ 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.4.0',
51
- '@thorprovider/adapters': '5.6.0',
52
- '@thorprovider/runtime': '0.8.0',
53
- '@thorprovider/types': '7.7.0',
50
+ '@thorprovider/blocks': '4.5.0',
51
+ '@thorprovider/adapters': '5.7.0',
52
+ '@thorprovider/runtime': '0.9.0',
53
+ '@thorprovider/types': '7.8.0',
54
54
  }),
55
55
  })
56
56
 
@@ -431,6 +431,37 @@ export function verifyRegistryArtifact({
431
431
  return { ok: true }
432
432
  }
433
433
 
434
+ /**
435
+ * `npm publish` returns before every registry edge serves the artifacts. A
436
+ * mirror that is still replicating answers 404 for a version that exists, so the
437
+ * acceptance gate polls instead of failing a release that published correctly.
438
+ */
439
+ export const REGISTRY_RETRY = Object.freeze({ attempts: 6, delayMs: 5000 })
440
+
441
+ const defaultSleep = (ms) => new Promise((done) => setTimeout(done, ms))
442
+
443
+ /**
444
+ * Fetch once, then keep asking while the only answer is "not there yet" (404) or
445
+ * the network itself failed. Any other status is a real answer and ends the poll.
446
+ */
447
+ async function fetchUntilAvailable(fetchImpl, url, init, { attempts = 1, delayMs = 0, sleep = defaultSleep } = {}) {
448
+ let response
449
+ let error
450
+ for (let attempt = 1; attempt <= attempts; attempt += 1) {
451
+ error = undefined
452
+ try {
453
+ response = await fetchImpl(url, init)
454
+ } catch (cause) {
455
+ response = undefined
456
+ error = cause
457
+ }
458
+ const unavailable = error !== undefined || response.status === 404
459
+ if (!unavailable || attempt === attempts) break
460
+ await sleep(delayMs * attempt)
461
+ }
462
+ return { response, error }
463
+ }
464
+
434
465
  /**
435
466
  * Resolve one exact pin against the registry. Metadata is always checked; the
436
467
  * tarball is downloaded only when the caller needs to inspect its surface.
@@ -441,13 +472,21 @@ export async function resolveRegistryCandidate({
441
472
  registry = DEFAULT_REGISTRY,
442
473
  fetchImpl = globalThis.fetch,
443
474
  downloadTarball = false,
475
+ retry = { attempts: 1, delayMs: 0 },
476
+ sleep,
444
477
  }) {
445
478
  const url = registryMetadataUrl(name, version, registry)
446
- let response
447
- try {
448
- response = await fetchImpl(url, { headers: { accept: 'application/json' } })
449
- } catch (cause) {
450
- return registryFailure('E_REGISTRY_UNREACHABLE', `${name}@${version}: cannot reach ${url} (${cause.message})`)
479
+ const { response, error: metadataError } = await fetchUntilAvailable(
480
+ fetchImpl,
481
+ url,
482
+ { headers: { accept: 'application/json' } },
483
+ { ...retry, sleep },
484
+ )
485
+ if (!response) {
486
+ return registryFailure(
487
+ 'E_REGISTRY_UNREACHABLE',
488
+ `${name}@${version}: cannot reach ${url} (${metadataError?.message ?? 'no response'})`,
489
+ )
451
490
  }
452
491
  if (response.status === 404) {
453
492
  return registryFailure('E_PIN_UNPUBLISHED', `${name}@${version} is not published on ${registry}`)
@@ -487,13 +526,16 @@ export async function resolveRegistryCandidate({
487
526
  }
488
527
  if (!downloadTarball) return { ok: true, name, version, metadata, tarballUrl }
489
528
 
490
- let tarballResponse
491
- try {
492
- tarballResponse = await fetchImpl(tarballUrl)
493
- } catch (cause) {
529
+ const { response: tarballResponse, error: tarballError } = await fetchUntilAvailable(
530
+ fetchImpl,
531
+ tarballUrl,
532
+ undefined,
533
+ { ...retry, sleep },
534
+ )
535
+ if (!tarballResponse) {
494
536
  return registryFailure(
495
537
  'E_REGISTRY_UNREACHABLE',
496
- `${name}@${version}: cannot download ${tarballUrl} (${cause.message})`,
538
+ `${name}@${version}: cannot download ${tarballUrl} (${tarballError?.message ?? 'no response'})`,
497
539
  )
498
540
  }
499
541
  if (!tarballResponse.ok) {
@@ -532,6 +574,8 @@ export async function verifyRegistryToolset({
532
574
  templatesDir,
533
575
  registry = DEFAULT_REGISTRY,
534
576
  fetchImpl = globalThis.fetch,
577
+ retry = { attempts: 1, delayMs: 0 },
578
+ sleep,
535
579
  }) {
536
580
  const { blockImports, runtimeImports } = collectTemplateSurface(templatesDir)
537
581
  const pins = { ...toolset.local, ...(cliVersion ? { '@thorprovider/storefront': cliVersion } : {}) }
@@ -548,6 +592,8 @@ export async function verifyRegistryToolset({
548
592
  registry,
549
593
  fetchImpl,
550
594
  downloadTarball: inspect,
595
+ retry,
596
+ sleep,
551
597
  })
552
598
  if (!result.ok) {
553
599
  errors.push({ code: result.code, message: result.message })
@@ -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) {
@@ -6,34 +6,44 @@
6
6
  // hardlink, which turns a cheap scaffold into a burst of disk writes. Pointing
7
7
  // `TMPDIR` at a directory beside the target keeps staging and cache on one
8
8
  // device, so `hardlinks-global` holds for every install the scaffold runs.
9
+ //
10
+ // The generated project owns its lockfile: `create` declares the curated
11
+ // dependencies, lets `shadcn init` install, then tightens the CLI pin, so the
12
+ // reconcile pass must be allowed to rewrite the lockfile. Yarn treats `CI=true`
13
+ // as immutable, which turns that reconcile into YN0028 and fails the scaffold
14
+ // inside CI, so the child processes opt out of immutability explicitly.
9
15
 
10
16
  import { mkdtempSync, rmSync, statSync } from 'node:fs'
11
17
  import { tmpdir } from 'node:os'
12
18
  import { dirname, join } from 'node:path'
13
19
 
20
+ /** The scaffold writes the lockfile of the project it creates, never this repo's. */
21
+ const OWNED_LOCKFILE_ENV = { YARN_ENABLE_IMMUTABLE_INSTALLS: 'false' }
22
+
14
23
  /**
15
24
  * 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.
25
+ * Always includes the owned-lockfile opt-out; `TMPDIR` is added only when the
26
+ * default temp directory lives on another device, or when the target cannot be
27
+ * inspected.
18
28
  */
19
29
  export function scaffoldTempEnv(target) {
20
- if (process.platform === 'win32') return {}
30
+ if (process.platform === 'win32') return { ...OWNED_LOCKFILE_ENV }
21
31
  let targetDevice
22
32
  try {
23
33
  targetDevice = statSync(target).dev
24
34
  } catch {
25
- return {}
35
+ return { ...OWNED_LOCKFILE_ENV }
26
36
  }
27
37
  try {
28
- if (statSync(tmpdir()).dev === targetDevice) return {}
38
+ if (statSync(tmpdir()).dev === targetDevice) return { ...OWNED_LOCKFILE_ENV }
29
39
  } catch {
30
- return {}
40
+ return { ...OWNED_LOCKFILE_ENV }
31
41
  }
32
42
  try {
33
- return { TMPDIR: mkdtempSync(join(dirname(target), '.storefront-tmp-')) }
43
+ return { ...OWNED_LOCKFILE_ENV, TMPDIR: mkdtempSync(join(dirname(target), '.storefront-tmp-')) }
34
44
  } catch {
35
45
  // A read-only parent is not a reason to fail the scaffold.
36
- return {}
46
+ return { ...OWNED_LOCKFILE_ENV }
37
47
  }
38
48
  }
39
49
 
@@ -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
+ })
@@ -0,0 +1,19 @@
1
+ 'use client'
2
+
3
+ // Optional section fragment: universal-main-menu (mirrors recipes/sections.json) — client registry.
4
+ // The matching server-side catalog lives in universal-main-menu.tsx. @thorprovider/blocks ships a
5
+ // 'use client' boundary, but this fragment keeps the explicit client boundary so
6
+ // the section composes identically in any consumer graph.
7
+
8
+ import { UniversalMainMenu } from '@thorprovider/blocks'
9
+ import { universalMainMenuPropsSchema } from './schema.universal-main-menu'
10
+ import type { ViewRegistry } from '../types'
11
+
12
+ export const universalMainMenuRegistry: ViewRegistry = {
13
+ UniversalMainMenu: ({ props }) => {
14
+ const parsed = universalMainMenuPropsSchema.parse(props)
15
+ return (
16
+ <UniversalMainMenu data={parsed.data} />
17
+ )
18
+ },
19
+ }
@@ -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
+ }