SyntheticBehaviorEvent
SyntheticBehaviorEvent: {
annotation
: {name
:string
;value
: {}; };type
:"annotation.add"
; } | {annotation
: {name
:string
; };type
:"annotation.remove"
; } | {annotation
: {name
:string
;value
: {}; };type
:"annotation.toggle"
; } | {[props: string]
:unknown
;at
: [KeyedSegment
];type
:"block.set"
; } | {at
: [KeyedSegment
];props
:string
[];type
:"block.unset"
; } | {type
:"blur"
; } | {data
:string
;dataTransfer
:DataTransfer
;mimeType
:MIMEType
;type
:"data transfer.set"
; } | {decorator
:string
;type
:"decorator.add"
; } | {decorator
:string
;type
:"decorator.remove"
; } | {decorator
:string
;type
:"decorator.toggle"
; } | {selection
:NonNullable
<EditorSelection
>;type
:"delete"
; } | {type
:"delete.backward"
;unit
:TextUnit
; } | {blockPath
: [KeyedSegment
];type
:"delete.block"
; } | {type
:"delete.forward"
;unit
:TextUnit
; } | {anchor
:BlockOffset
;focus
:BlockOffset
;type
:"delete.text"
; } | {type
:"focus"
; } | {blocks
:PortableTextBlock
[];type
:"insert.blocks"
; } | {blockObject
: {name
:string
;value
: {}; };placement
:"auto"
|"after"
|"before"
;type
:"insert.block object"
; } | {inlineObject
: {name
:string
;value
: {}; };type
:"insert.inline object"
; } | {type
:"insert.break"
; } | {type
:"insert.soft break"
; } | {block
:PortableTextBlock
;placement
:"auto"
|"after"
|"before"
;type
:"insert.block"
; } | {annotations
:object
[];decorators
:string
[];text
:string
;type
:"insert.span"
; } | {options
:TextInsertTextOptions
;text
:string
;type
:"insert.text"
; } | {placement
:"auto"
|"after"
|"before"
;textBlock
: {children
:PortableTextTextBlock
["children"
]; };type
:"insert.text block"
; } | {listItem
:string
;type
:"list item.add"
; } | {listItem
:string
;type
:"list item.remove"
; } | {listItem
:string
;type
:"list item.toggle"
; } | {at
: [KeyedSegment
];to
: [KeyedSegment
];type
:"move.block"
; } | {at
: [KeyedSegment
];type
:"move.block down"
; } | {at
: [KeyedSegment
];type
:"move.block up"
; } | {selection
:EditorSelection
;type
:"select"
; } | {type
:"select.previous block"
; } | {type
:"select.next block"
; } | {style
:string
;type
:"style.add"
; } | {style
:string
;type
:"style.remove"
; } | {style
:string
;type
:"style.toggle"
; } | {at
: [KeyedSegment
];level
:number
;listItem
:string
;style
:string
;type
:"text block.set"
; } | {at
: [KeyedSegment
];props
: ("level"
|"listItem"
|"style"
)[];type
:"text block.unset"
; } |PickFromUnion
<ConverterEvent
,"type"
,"deserialization.failure"
|"deserialization.success"
|"serialization.failure"
|"serialization.success"
> &object
Defined in: behaviors/behavior.types.ts:17