@wocart/theme / index / duplicateInstance
Function: duplicateInstance()
duplicateInstance(
theme,page,id,newId):DocumentEdit
Copy an instance and everything inside it right after the original, every
copied instance with an id from newId. List items keep their ids: they
are unique within their list, not the document. A fixed block is never
copied.
Parameters
theme
page
id
string
newId
() => string