Function: toPuckData()
toPuckData(
version):PuckData
Defined in: toPuckData.ts:9
A Nubbin draft as Puck's Data: each root becomes a top-level component in roots order,
children nested inline through toPuckComponent, and the document's meta becomes
root.props. The inverse is fromPuckData, and nothing else in the studio translates
between the two shapes.
Parameters
version
DocumentVersion