Rich text / foldkit-richtext-dom/toolbar
blockDrag
const · packages/richtext-dom/src/drag.ts:279
const blockDrag: Mount.MountDefinitionWithArgs<
'RichTextBlockDrag',
{
hostId: Schema.String
node: Schema.brand<Schema.NonEmptyString, 'foldkit-richtext/NodeId'>
},
{
readonly _tag: 'MovedBlock'
readonly node: string & Brand<'foldkit-richtext/NodeId'>
readonly to:
| {
readonly before: string & Brand<'foldkit-richtext/NodeId'>
readonly after?: never
}
| {
readonly after: string & Brand<'foldkit-richtext/NodeId'>
readonly before?: never
}
}
>dragBlock as a Mount, for a block handle's grip; its drop is the editor's MovedBlock.