@wangeditor-next/video-module 1.2.4 → 1.3.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.
@@ -9,3 +9,4 @@
9
9
  */
10
10
  export declare const VIDEO_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z\"></path></svg>";
11
11
  export declare const UPLOAD_VIDEO_SVG = "<svg viewBox=\"0 0 1056 1024\"><path d=\"M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z\" p-id=\"6802\"></path><path d=\"M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z\"></path></svg>";
12
+ export declare const PENCIL_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z\"></path></svg>";
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  videoPosterPlaceHolder: string;
14
14
  ok: string;
15
15
  editSize: string;
16
+ edit: string;
16
17
  width: string;
17
18
  height: string;
18
19
  };
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  videoPosterPlaceHolder: string;
14
14
  ok: string;
15
15
  editSize: string;
16
+ edit: string;
16
17
  width: string;
17
18
  height: string;
18
19
  };
@@ -11,6 +11,7 @@ export declare type videoStyle = {
11
11
  };
12
12
  export declare type VideoElement = {
13
13
  type: 'video';
14
+ key?: string;
14
15
  src: string;
15
16
  poster?: string;
16
17
  textAlign?: string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @description editor video menu
3
+ * @author
4
+ */
5
+ import { Node as SlateNode } from 'slate';
6
+ import { IModalMenu, IDomEditor } from '@wangeditor-next/core';
7
+ import { DOMElement } from '../../utils/dom';
8
+ declare class Editvideo implements IModalMenu {
9
+ readonly title: string;
10
+ readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z\"></path></svg>";
11
+ readonly tag = "button";
12
+ readonly showModal = true;
13
+ readonly modalWidth = 300;
14
+ private $content;
15
+ private readonly srcInputId;
16
+ private readonly posterInputId;
17
+ private readonly buttonId;
18
+ private getSelectedVideoNode;
19
+ getValue(editor: IDomEditor): string | boolean;
20
+ isActive(editor: IDomEditor): boolean;
21
+ exec(editor: IDomEditor, value: string | boolean): void;
22
+ isDisabled(editor: IDomEditor): boolean;
23
+ getModalPositionNode(editor: IDomEditor): SlateNode | null;
24
+ getModalContentElem(editor: IDomEditor): DOMElement;
25
+ }
26
+ export default Editvideo;
@@ -5,6 +5,7 @@
5
5
  import InsertVideoMenu from './InsertVideoMenu';
6
6
  import UploadVideoMenu from './UploadVideoMenu';
7
7
  import EditorVideoSizeMenu from './EditVideoSizeMenu';
8
+ import EditorVideoSrcMenu from './EditVideoSrcMenu';
8
9
  export declare const insertVideoMenuConf: {
9
10
  key: string;
10
11
  factory(): InsertVideoMenu;
@@ -23,3 +24,7 @@ export declare const editorVideSizeMenuConf: {
23
24
  key: string;
24
25
  factory(): EditorVideoSizeMenu;
25
26
  };
27
+ export declare const editorVideoSrcMenuConf: {
28
+ key: string;
29
+ factory(): EditorVideoSrcMenu;
30
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/video-module",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "wangEditor video module",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "contributors": [],
@@ -48,5 +48,5 @@
48
48
  "slate": "^0.72.0",
49
49
  "snabbdom": "^3.1.0"
50
50
  },
51
- "gitHead": "d7e089a4d21860eb57bc3f1df07c39e725b1d5fd"
51
+ "gitHead": "a735e4fce203ca5ff50da97c5c49480a47e83ed9"
52
52
  }