Wocart

@wocart/theme v4.1.0


@wocart/theme / index / completePage

Function: completePage()

completePage(theme, page): object

The document with everything it must hold: the surface's required sections, each component's fixed blocks (stored, with an id derived from its owner and name) and each slot's required blocks — a hidden required or fixed block is shown again. Added ids are unique in the document. What was added or corrected is reported.

Parameters

theme

ThemeDefinition

page

PageData

Returns

object

issues

issues: PageDataIssue[]

page

page: PageData