@wangeditor-next/core 6.6.2 → 6.7.0
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/dist/index.d.ts +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/upload.d.ts +11 -1
- package/package.json +1 -1
package/dist/upload.d.ts
CHANGED
|
@@ -105,7 +105,16 @@ type ImageElement = {
|
|
|
105
105
|
};
|
|
106
106
|
children: EmptyText[];
|
|
107
107
|
};
|
|
108
|
-
type
|
|
108
|
+
type VideoAttributes = {
|
|
109
|
+
autoplay?: boolean;
|
|
110
|
+
loop?: boolean;
|
|
111
|
+
muted?: boolean;
|
|
112
|
+
playsInline?: boolean;
|
|
113
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
114
|
+
controlsList?: string;
|
|
115
|
+
disablePictureInPicture?: boolean;
|
|
116
|
+
};
|
|
117
|
+
type VideoElement = VideoAttributes & {
|
|
109
118
|
type: 'video';
|
|
110
119
|
key?: string;
|
|
111
120
|
src: string;
|
|
@@ -218,6 +227,7 @@ interface IInsertVideoConfig {
|
|
|
218
227
|
onInsertedVideo: (videoNode: VideoElement) => NodeEntry | Range$1;
|
|
219
228
|
checkVideo: (src: string, poster: string) => string | boolean | undefined;
|
|
220
229
|
parseVideoSrc: (url: string) => string;
|
|
230
|
+
attributes?: VideoAttributes;
|
|
221
231
|
}
|
|
222
232
|
type IUploadVideoConfig = IUploadConfig;
|
|
223
233
|
type IUploadImageConfig = IUploadConfig & {
|