fix: decorators have another type
Realetive opened this issue ยท 4 comments
Realetive commented
๐ The bug
Hi! Many thanks for your lib.
Decorators in type: 'block'
have another type: https://www.sanity.io/docs/customization#decorators-e6401a8fe843
I think, that it's look like Array<BlockStyle>
instead Array<Field & { blockEditor?: BlockEditor }>
danielroe commented
@Realetive Thanks for catching this!
Realetive commented
Please add name
to BlockStyle
yet. For example in this case:
annotations: [
{
title: 'URL',
name: 'link',
type: 'object',
fields: [
{
title: 'URL',
name: 'href',
type: 'url'
}
]
}
]
danielroe commented
Any better? ๐
Realetive commented
๐ Perfect! Many thanks!