Framework: Browser API

Working with the current document

// Get the currently loaded livingdocs-framework document
const livingdoc = doc.editor.livingdoc

// Get the design of the document
const design = livingdoc.design

Working with designs

// Get all component identifiers of a design as an array
doc.design.get('timeline').list()

// Get an individual component template
doc.design.get('timeline').get('peephole')