@wocart/theme / index / AreaSpec
Interface: AreaSpec
A part every page shares — a header, a footer — composed of sections like a
page and edited once for the whole store. Its document is stored as the
surface area:<key>.
Properties
document?
optionaldocument?:PageData
The theme's shipped document for the area (surface area:<key>).
key
key:
string
Lowercase kebab-case, unique among the theme's areas.
label
label:
LocalizedText
max?
optionalmax?:number
At most this many sections (1–50).
required?
optionalrequired?: readonlyRequiredBlock[]
Sections the area must hold, as a surface's required.