Skip to content

v0.9.7

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Apr 14:54
  • Add Edit.link and Edit.links to create link values in the Edit api. These
    are currently not optimally typed and will be improved in the future.

    const imageField = Field.link('Image', {
      fields: {
        alt: Field.text('Alt text')
      }
    })
    const imageValue = Edit.link(imageField)
      .addImage(imageId, {alt: 'An image'})
      .value()