@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/upload.d.ts CHANGED
@@ -105,7 +105,16 @@ type ImageElement = {
105
105
  };
106
106
  children: EmptyText[];
107
107
  };
108
- type VideoElement = {
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 & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/core",
3
- "version": "6.6.2",
3
+ "version": "6.7.0",
4
4
  "description": "wangEditor core",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "type": "module",