@portabletext/editor 1.49.11 → 1.49.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@ export type EditorEmittedEvent =
18
18
  | {
19
19
  type: 'editable'
20
20
  }
21
+ | ErrorEvent
21
22
  | {
22
23
  type: 'focused'
23
24
  event: FocusEvent<HTMLDivElement, Element>
@@ -47,6 +48,16 @@ export type EditorEmittedEvent =
47
48
  value: Array<PortableTextBlock> | undefined
48
49
  }
49
50
 
51
+ /**
52
+ * @deprecated The event is no longer emitted
53
+ */
54
+ type ErrorEvent = {
55
+ type: 'error'
56
+ name: string
57
+ description: string
58
+ data: unknown
59
+ }
60
+
50
61
  export type InternalEditorEmittedEvent = EditorEmittedEvent | UnsetEvent
51
62
 
52
63
  /**