Wocart

@wocart/theme v4.1.0


@wocart/theme / index / setInstanceProps

Function: setInstanceProps()

setInstanceProps(theme, page, id, changes): DocumentEdit

Change an instance's props — a fixed block's too: each value is checked by its field; undefined removes the stored value, so the field falls back to its content-pack text or default.

Parameters

theme

ThemeDefinition

page

PageData

id

string

changes

Readonly<Record<string, JsonValue | undefined>>

Returns

DocumentEdit