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
{ event
: FocusEvent
<HTMLDivElement
, Element
>; type
: "blurred"
; }
event
event:
FocusEvent
<HTMLDivElement
,Element
>
type
type:
"blurred"
{ type
: "done loading"
; }
type
type:
"done loading"
{ type
: "editable"
; }
type
type:
"editable"
ErrorEvent
{ event
: FocusEvent
<HTMLDivElement
, Element
>; type
: "focused"
; }
event
event:
FocusEvent
<HTMLDivElement
,Element
>
type
type:
"focused"
{ resolution
: InvalidValueResolution
| null
; type
: "invalid value"
; value
: PortableTextBlock
[] | undefined
; }
resolution
resolution:
InvalidValueResolution
|null
type
type:
"invalid value"
value
value:
PortableTextBlock
[] |undefined
{ type
: "loading"
; }
type
type:
"loading"
PatchEvent
{ type
: "read only"
; }
type
type:
"read only"
{ type
: "ready"
; }
type
type:
"ready"
{ selection
: EditorSelection
; type
: "selection"
; }
selection
selection:
EditorSelection
type
type:
"selection"
{ type
: "value changed"
; value
: PortableTextBlock
[] | undefined
; }
type
type:
"value changed"
value
value:
PortableTextBlock
[] |undefined