@portabletext/editor 1.33.6 → 1.34.1

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.
@@ -120,18 +120,19 @@ declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
120
120
  declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
121
121
  | {
122
122
  type: 'serialize'
123
- originEvent: 'copy' | 'cut' | 'unknown'
123
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
124
124
  }
125
125
  | {
126
126
  type: 'serialization.failure'
127
127
  mimeType: TMIMEType
128
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
128
129
  reason: string
129
130
  }
130
131
  | {
131
132
  type: 'serialization.success'
132
133
  data: string
133
134
  mimeType: TMIMEType
134
- originEvent: 'copy' | 'cut' | 'unknown'
135
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
135
136
  }
136
137
  | {
137
138
  type: 'deserialize'
@@ -925,7 +926,7 @@ export declare type NativeBehaviorEvent =
925
926
  }
926
927
  | {
927
928
  type: 'serialize'
928
- originEvent: 'copy' | 'cut' | 'unknown'
929
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
929
930
  dataTransfer: DataTransfer
930
931
  }
931
932
 
@@ -1022,7 +1023,10 @@ export declare type SyntheticBehaviorEvent =
1022
1023
  | {
1023
1024
  type: 'decorator.add'
1024
1025
  decorator: string
1025
- selection?: NonNullable<EditorSelection>
1026
+ offsets?: {
1027
+ anchor: BlockOffset
1028
+ focus: BlockOffset
1029
+ }
1026
1030
  }
1027
1031
  | {
1028
1032
  type: 'decorator.remove'
@@ -120,18 +120,19 @@ declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
120
120
  declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
121
121
  | {
122
122
  type: 'serialize'
123
- originEvent: 'copy' | 'cut' | 'unknown'
123
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
124
124
  }
125
125
  | {
126
126
  type: 'serialization.failure'
127
127
  mimeType: TMIMEType
128
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
128
129
  reason: string
129
130
  }
130
131
  | {
131
132
  type: 'serialization.success'
132
133
  data: string
133
134
  mimeType: TMIMEType
134
- originEvent: 'copy' | 'cut' | 'unknown'
135
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
135
136
  }
136
137
  | {
137
138
  type: 'deserialize'
@@ -925,7 +926,7 @@ export declare type NativeBehaviorEvent =
925
926
  }
926
927
  | {
927
928
  type: 'serialize'
928
- originEvent: 'copy' | 'cut' | 'unknown'
929
+ originEvent: 'copy' | 'cut' | 'drag' | 'unknown'
929
930
  dataTransfer: DataTransfer
930
931
  }
931
932
 
@@ -1022,7 +1023,10 @@ export declare type SyntheticBehaviorEvent =
1022
1023
  | {
1023
1024
  type: 'decorator.add'
1024
1025
  decorator: string
1025
- selection?: NonNullable<EditorSelection>
1026
+ offsets?: {
1027
+ anchor: BlockOffset
1028
+ focus: BlockOffset
1029
+ }
1026
1030
  }
1027
1031
  | {
1028
1032
  type: 'decorator.remove'