@portabletext/editor 1.34.0 → 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.
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/plugin.event-listener.cjs +0 -4
- package/lib/_chunks-cjs/plugin.event-listener.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/plugin.event-listener.js +0 -4
- package/lib/_chunks-es/plugin.event-listener.js.map +1 -1
- package/lib/behaviors/index.d.cts +4 -3
- package/lib/behaviors/index.d.ts +4 -3
- package/lib/index.d.cts +116 -59
- package/lib/index.d.ts +116 -59
- package/lib/plugins/index.d.cts +116 -59
- package/lib/plugins/index.d.ts +116 -59
- package/lib/selectors/index.d.cts +3 -2
- package/lib/selectors/index.d.ts +3 -2
- package/lib/utils/index.d.cts +3 -2
- package/lib/utils/index.d.ts +3 -2
- package/package.json +3 -3
- package/src/behaviors/behavior.types.ts +1 -1
- package/src/converters/converter.types.ts +3 -2
- package/src/editor/plugins/create-with-event-listeners.ts +0 -5
|
@@ -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
|
|
package/lib/behaviors/index.d.ts
CHANGED
|
@@ -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
|
|