@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 CHANGED
@@ -226,7 +226,16 @@ type ImageElement = {
226
226
  };
227
227
  children: EmptyText[];
228
228
  };
229
- type VideoElement = {
229
+ type VideoAttributes = {
230
+ autoplay?: boolean;
231
+ loop?: boolean;
232
+ muted?: boolean;
233
+ playsInline?: boolean;
234
+ preload?: 'none' | 'metadata' | 'auto';
235
+ controlsList?: string;
236
+ disablePictureInPicture?: boolean;
237
+ };
238
+ type VideoElement = VideoAttributes & {
230
239
  type: 'video';
231
240
  key?: string;
232
241
  src: string;
@@ -361,6 +370,7 @@ interface IInsertVideoConfig {
361
370
  onInsertedVideo: (videoNode: VideoElement) => NodeEntry | Range$1;
362
371
  checkVideo: (src: string, poster: string) => string | boolean | undefined;
363
372
  parseVideoSrc: (url: string) => string;
373
+ attributes?: VideoAttributes;
364
374
  }
365
375
  type IUploadVideoConfig = IUploadConfig;
366
376
  type IUploadImageConfig = IUploadConfig & {