EditorEmittedEvent
EditorEmittedEvent = {
event:FocusEvent<HTMLDivElement,Element>;type:"blurred"; } | {type:"done loading"; } | {type:"editable"; } |ErrorEvent| {event:FocusEvent<HTMLDivElement,Element>;type:"focused"; } | {resolution:InvalidValueResolution|null;type:"invalid value";value:PortableTextBlock[] |undefined; } | {type:"loading"; } |MutationEvent|PatchEvent| {type:"read only"; } | {type:"ready"; } | {selection:EditorSelection;type:"selection"; } | {type:"value changed";value:PortableTextBlock[] |undefined; }
Defined in: packages/editor/src/editor/relay-machine.ts:10
Type declaration
Section titled “Type declaration”{ event: FocusEvent<HTMLDivElement, Element>; type: "blurred"; }
event:
FocusEvent<HTMLDivElement,Element>
type:
"blurred"
{ type: "done loading"; }
type:
"done loading"
{ type: "editable"; }
type:
"editable"
ErrorEvent
{ event: FocusEvent<HTMLDivElement, Element>; type: "focused"; }
event:
FocusEvent<HTMLDivElement,Element>
type:
"focused"
{ resolution: InvalidValueResolution | null; type: "invalid value"; value: PortableTextBlock[] | undefined; }
resolution
Section titled “resolution”resolution:
InvalidValueResolution|null
type:
"invalid value"
value:
PortableTextBlock[] |undefined
{ type: "loading"; }
type:
"loading"
PatchEvent
{ type: "read only"; }
type:
"read only"
{ type: "ready"; }
type:
"ready"
{ selection: EditorSelection; type: "selection"; }
selection
Section titled “selection”selection:
EditorSelection
type:
"selection"
{ type: "value changed"; value: PortableTextBlock[] | undefined; }
type:
"value changed"
value:
PortableTextBlock[] |undefined