SyntheticBehaviorEvent
SyntheticBehaviorEvent = {
annotation: {name:string;value: {[prop:string]:unknown; }; };type:StrictExtract<SyntheticBehaviorEventType,"annotation.add">; } | {annotation: {name:string; };type:StrictExtract<SyntheticBehaviorEventType,"annotation.remove">; } | {at:BlockPath;props:Record<string,unknown>;type:StrictExtract<SyntheticBehaviorEventType,"block.set">; } | {at:BlockPath;props:string[];type:StrictExtract<SyntheticBehaviorEventType,"block.unset">; } | {at:ChildPath;props: {[prop:string]:unknown; };type:StrictExtract<SyntheticBehaviorEventType,"child.set">; } | {at:ChildPath;props:string[];type:StrictExtract<SyntheticBehaviorEventType,"child.unset">; } | {at?: {anchor:BlockOffset;focus:BlockOffset; };decorator:string;type:StrictExtract<SyntheticBehaviorEventType,"decorator.add">; } | {decorator:string;type:StrictExtract<SyntheticBehaviorEventType,"decorator.remove">; } | {at:NonNullable<EditorSelection>;direction?:"backward"|"forward";type:StrictExtract<SyntheticBehaviorEventType,"delete">;unit?:"character"|"word"|"line"|"block"; } | {type:StrictExtract<SyntheticBehaviorEventType,"history.redo">; } | {type:StrictExtract<SyntheticBehaviorEventType,"history.undo">; } | {block:BlockWithOptionalKey;placement:InsertPlacement;select?:"start"|"end"|"none";type:StrictExtract<SyntheticBehaviorEventType,"insert.block">; } | {child:ChildWithOptionalKey;type:StrictExtract<SyntheticBehaviorEventType,"insert.child">; } | {text:string;type:StrictExtract<SyntheticBehaviorEventType,"insert.text">; } | {distance:number;type:StrictExtract<SyntheticBehaviorEventType,"move.backward">; } | {at:BlockPath;to:BlockPath;type:StrictExtract<SyntheticBehaviorEventType,"move.block">; } | {distance:number;type:StrictExtract<SyntheticBehaviorEventType,"move.forward">; } | {at:EditorSelection;type:StrictExtract<SyntheticBehaviorEventType,"select">; } |AbstractBehaviorEvent
Defined in: behavior.types.event.ts:95
Type declaration
Section titled “Type declaration”{ annotation: { name: string; value: {[prop: string]: unknown; }; }; type: StrictExtract<SyntheticBehaviorEventType, "annotation.add">; }
annotation
Section titled “annotation”annotation:
object
annotation.name
Section titled “annotation.name”name:
string
annotation.value
Section titled “annotation.value”value:
object
Index Signature
Section titled “Index Signature”[prop: string]: unknown
type:
StrictExtract<SyntheticBehaviorEventType,"annotation.add">
{ annotation: { name: string; }; type: StrictExtract<SyntheticBehaviorEventType, "annotation.remove">; }
annotation
Section titled “annotation”annotation:
object
annotation.name
Section titled “annotation.name”name:
string
type:
StrictExtract<SyntheticBehaviorEventType,"annotation.remove">
{ at: BlockPath; props: Record<string, unknown>; type: StrictExtract<SyntheticBehaviorEventType, "block.set">; }
at:
BlockPath
props:
Record<string,unknown>
type:
StrictExtract<SyntheticBehaviorEventType,"block.set">
{ at: BlockPath; props: string[]; type: StrictExtract<SyntheticBehaviorEventType, "block.unset">; }
at:
BlockPath
props:
string[]
type:
StrictExtract<SyntheticBehaviorEventType,"block.unset">
{ at: ChildPath; props: {[prop: string]: unknown; }; type: StrictExtract<SyntheticBehaviorEventType, "child.set">; }
at:
ChildPath
props:
object
Index Signature
Section titled “Index Signature”[prop: string]: unknown
type:
StrictExtract<SyntheticBehaviorEventType,"child.set">
{ at: ChildPath; props: string[]; type: StrictExtract<SyntheticBehaviorEventType, "child.unset">; }
at:
ChildPath
props:
string[]
type:
StrictExtract<SyntheticBehaviorEventType,"child.unset">
{ at?: { anchor: BlockOffset; focus: BlockOffset; }; decorator: string; type: StrictExtract<SyntheticBehaviorEventType, "decorator.add">; }
optionalat:object
at.anchor
Section titled “at.anchor”anchor:
BlockOffset
at.focus
Section titled “at.focus”focus:
BlockOffset
decorator
Section titled “decorator”decorator:
string
type:
StrictExtract<SyntheticBehaviorEventType,"decorator.add">
{ decorator: string; type: StrictExtract<SyntheticBehaviorEventType, "decorator.remove">; }
decorator
Section titled “decorator”decorator:
string
type:
StrictExtract<SyntheticBehaviorEventType,"decorator.remove">
{ at: NonNullable<EditorSelection>; direction?: "backward" | "forward"; type: StrictExtract<SyntheticBehaviorEventType, "delete">; unit?: "character" | "word" | "line" | "block"; }
at:
NonNullable<EditorSelection>
direction?
Section titled “direction?”
optionaldirection:"backward"|"forward"
Defaults to forward deletion.
type:
StrictExtract<SyntheticBehaviorEventType,"delete">
optionalunit:"character"|"word"|"line"|"block"
Defaults to character deletion.
{ type: StrictExtract<SyntheticBehaviorEventType, "history.redo">; }
type:
StrictExtract<SyntheticBehaviorEventType,"history.redo">
{ type: StrictExtract<SyntheticBehaviorEventType, "history.undo">; }
type:
StrictExtract<SyntheticBehaviorEventType,"history.undo">
{ block: BlockWithOptionalKey; placement: InsertPlacement; select?: "start" | "end" | "none"; type: StrictExtract<SyntheticBehaviorEventType, "insert.block">; }
block:
BlockWithOptionalKey
placement
Section titled “placement”placement:
InsertPlacement
select?
Section titled “select?”
optionalselect:"start"|"end"|"none"
type:
StrictExtract<SyntheticBehaviorEventType,"insert.block">
{ child: ChildWithOptionalKey; type: StrictExtract<SyntheticBehaviorEventType, "insert.child">; }
child:
ChildWithOptionalKey
type:
StrictExtract<SyntheticBehaviorEventType,"insert.child">
{ text: string; type: StrictExtract<SyntheticBehaviorEventType, "insert.text">; }
text:
string
type:
StrictExtract<SyntheticBehaviorEventType,"insert.text">
{ distance: number; type: StrictExtract<SyntheticBehaviorEventType, "move.backward">; }
distance
Section titled “distance”distance:
number
type:
StrictExtract<SyntheticBehaviorEventType,"move.backward">
{ at: BlockPath; to: BlockPath; type: StrictExtract<SyntheticBehaviorEventType, "move.block">; }
at:
BlockPath
to:
BlockPath
type:
StrictExtract<SyntheticBehaviorEventType,"move.block">
{ distance: number; type: StrictExtract<SyntheticBehaviorEventType, "move.forward">; }
distance
Section titled “distance”distance:
number
type:
StrictExtract<SyntheticBehaviorEventType,"move.forward">
{ at: EditorSelection; type: StrictExtract<SyntheticBehaviorEventType, "select">; }
at:
EditorSelection
type:
StrictExtract<SyntheticBehaviorEventType,"select">
AbstractBehaviorEvent