@wangeditor-next/video-module 1.2.1 → 1.2.3
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/CHANGELOG.md +22 -0
- package/dist/css/style.css +1 -11
- package/dist/index.esm.js +17 -1038
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +17 -1044
- package/dist/index.js.map +1 -0
- package/dist/video-module/src/module/custom-types.d.ts +6 -0
- package/dist/video-module/src/module/helper/insert-video.d.ts +1 -1
- package/dist/video-module/src/utils/dom.d.ts +2 -1
- package/package.json +2 -2
|
@@ -5,12 +5,18 @@
|
|
|
5
5
|
declare type EmptyText = {
|
|
6
6
|
text: '';
|
|
7
7
|
};
|
|
8
|
+
export declare type videoStyle = {
|
|
9
|
+
width?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
};
|
|
8
12
|
export declare type VideoElement = {
|
|
9
13
|
type: 'video';
|
|
10
14
|
src: string;
|
|
11
15
|
poster?: string;
|
|
16
|
+
textAlign?: string;
|
|
12
17
|
width?: string;
|
|
13
18
|
height?: string;
|
|
19
|
+
style?: videoStyle;
|
|
14
20
|
children: EmptyText[];
|
|
15
21
|
};
|
|
16
22
|
export {};
|
|
@@ -9,4 +9,4 @@ import { IDomEditor } from '@wangeditor-next/core';
|
|
|
9
9
|
* @param src video src
|
|
10
10
|
* @param poster video poster
|
|
11
11
|
*/
|
|
12
|
-
export default function (editor: IDomEditor, src: string, poster?: string): Promise<void>;
|
|
12
|
+
export default function (editor: IDomEditor, src: string, poster?: string, width?: string, height?: string): Promise<void>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import $, { Dom7Array } from 'dom7';
|
|
6
|
+
import { videoStyle } from '../module/custom-types';
|
|
6
7
|
export { Dom7Array } from 'dom7';
|
|
7
8
|
export default $;
|
|
8
9
|
/**
|
|
@@ -17,7 +18,7 @@ export declare function getTagName($elem: Dom7Array): string;
|
|
|
17
18
|
* @param height height
|
|
18
19
|
* @returns iframe html string with size style
|
|
19
20
|
*/
|
|
20
|
-
export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string): string;
|
|
21
|
+
export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle): string;
|
|
21
22
|
import DOMNode = globalThis.Node;
|
|
22
23
|
import DOMComment = globalThis.Comment;
|
|
23
24
|
import DOMElement = globalThis.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/video-module",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "wangEditor video module",
|
|
5
5
|
"author": "wangfupeng1988 <wangfupeng1988@163.com>",
|
|
6
6
|
"contributors": [],
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"slate": "^0.72.0",
|
|
49
49
|
"snabbdom": "^3.1.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ae145d4d56a1c43e9c611973a0a6f564d4df9ea0"
|
|
52
52
|
}
|