Skip to content

BehaviorActionIntend

BehaviorActionIntend: SyntheticBehaviorEvent | { event: SyntheticBehaviorEvent | CustomBehaviorEvent; type: "raise"; } | { annotation: { name: string; value: {}; }; type: "annotation.toggle"; } | { decorator: string; type: "decorator.add"; } | { decorator: string; type: "decorator.remove"; } | { annotations: object[]; decorators: string[]; text: string; type: "insert.span"; } | { placement: "auto" | "after" | "before"; textBlock: { children: PortableTextTextBlock["children"]; }; type: "insert.text block"; } | { listItem: string; type: "list item.add"; } | { listItem: string; type: "list item.remove"; } | { at: [KeyedSegment]; to: [KeyedSegment]; type: "move.block"; } | { at: [KeyedSegment]; type: "move.block down"; } | { at: [KeyedSegment]; type: "move.block up"; } | { type: "noop"; } | { blockPath: [KeyedSegment]; type: "delete.block"; } | { anchor: BlockOffset; focus: BlockOffset; type: "delete.text"; } | { effect: () => void; type: "effect"; } | { type: "select.previous block"; } | { type: "select.next block"; } | { style: string; type: "style.add"; } | { style: string; type: "style.remove"; } | { at: [KeyedSegment]; level: number; listItem: string; style: string; type: "text block.set"; } | { at: [KeyedSegment]; props: ("level" | "listItem" | "style")[]; type: "text block.unset"; }

Defined in

packages/editor/src/behaviors/behavior.types.ts:129