@thorprovider/storefront 0.12.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.
- package/README.md +9 -4
- package/assets/templates/app/lib/__STOREFRONT__/footer-content.ts +42 -4
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/index.ts +2 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/products.client.tsx +52 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.universal-main-menu.ts +136 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-main-menu.client.tsx +19 -0
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/universal-main-menu.tsx +16 -0
- package/assets/templates/views/home/assembly/assembly.json +7 -0
- package/package.json +1 -1
- package/recipes/recipes.json +3 -1
- package/recipes/sections.json +13 -3
- package/scripts/candidate.mjs +1 -1
- package/scripts/default-sections.mjs +1 -0
- package/skills/sf-view-gen/assets/recipes/recipes.json +3 -1
- package/skills/sf-view-gen/assets/recipes/sections.json +13 -3
- package/skills/sf-view-gen/assets/templates/views/sections/schema.universal-main-menu.ts +136 -0
- package/skills/sf-view-gen/assets/templates/views/sections/universal-main-menu.client.tsx +19 -0
- package/skills/sf-view-gen/assets/templates/views/sections/universal-main-menu.tsx +16 -0
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
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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 === '
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thorprovider/storefront",
|
|
3
|
-
"version": "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",
|
package/recipes/recipes.json
CHANGED
|
@@ -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
|
],
|
package/recipes/sections.json
CHANGED
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "products",
|
|
54
|
-
"description": "Data-bound product presentation (grid
|
|
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
|
}
|
package/scripts/candidate.mjs
CHANGED
|
@@ -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.
|
|
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) {
|
|
@@ -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
|
|
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
|
+
}
|