@wangeditor-next/video-module 1.1.4 → 1.2.1
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 +145 -0
- package/LICENSE +21 -0
- package/dist/css/style.css +11 -0
- package/dist/index.esm.js +1038 -0
- package/dist/index.js +1044 -0
- package/dist/video-module/src/constants/svg.d.ts +11 -0
- package/dist/video-module/src/index.d.ts +8 -0
- package/dist/video-module/src/locale/en.d.ts +20 -0
- package/dist/video-module/src/locale/index.d.ts +5 -0
- package/dist/video-module/src/locale/zh-CN.d.ts +20 -0
- package/dist/video-module/src/module/custom-types.d.ts +16 -0
- package/dist/video-module/src/module/elem-to-html.d.ts +11 -0
- package/dist/video-module/src/module/helper/insert-video.d.ts +12 -0
- package/dist/video-module/src/module/helper/upload-videos.d.ts +6 -0
- package/dist/video-module/src/module/index.d.ts +7 -0
- package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +25 -0
- package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +25 -0
- package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +16 -0
- package/dist/video-module/src/module/menu/config.d.ts +33 -0
- package/dist/video-module/src/module/menu/index.d.ts +25 -0
- package/dist/video-module/src/module/parse-elem-html.d.ts +14 -0
- package/dist/video-module/src/module/plugin.d.ts +7 -0
- package/dist/video-module/src/module/pre-parse-html.d.ts +15 -0
- package/dist/video-module/src/module/render-elem.d.ts +13 -0
- package/dist/video-module/src/utils/dom.d.ts +28 -0
- package/dist/video-module/src/utils/util.d.ts +11 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.2.1](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/video-module@1.2.0...@wangeditor-next/video-module@1.2.1) (2024-06-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Performance Improvements
|
|
10
|
+
|
|
11
|
+
* **issue 5259:** video element default center ([9c01d40](https://github.com/cycleccc/wangEditor/commit/9c01d4029dd5a63869e737e579f4a0af50650e1e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 1.2.0 (2024-05-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 部分菜单 disabled ([87f1233](https://github.com/cycleccc/wangEditor/commit/87f12332a087072406c1988dc5cef2eae8335375))
|
|
23
|
+
* 插入图片的 < > 替换 ([5721560](https://github.com/cycleccc/wangEditor/commit/57215609ada8b9d15f5505d1ba52e49707b5b183))
|
|
24
|
+
* 更新各包之间依赖版本 ([75c552c](https://github.com/cycleccc/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
|
|
25
|
+
* 上传视频 - customBrowseAndUpload 缺少 poster ([c24627a](https://github.com/cycleccc/wangEditor/commit/c24627aaa4c173c5d435e3077dfe8f6b4a9a87b1))
|
|
26
|
+
* 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/cycleccc/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
|
|
27
|
+
* 修复视频无法被xml-formatter解析的问题 ([e081518](https://github.com/cycleccc/wangEditor/commit/e08151863628e0241fe4a3d5858cda4c8ea57949)), closes [#101](https://github.com/cycleccc/wangEditor/issues/101) [#95](https://github.com/cycleccc/wangEditor/issues/95) [#70](https://github.com/cycleccc/wangEditor/issues/70) [#69](https://github.com/cycleccc/wangEditor/issues/69)
|
|
28
|
+
* 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/cycleccc/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
|
|
29
|
+
* checkVideo 增加 poster 参数 ([c0402e1](https://github.com/cycleccc/wangEditor/commit/c0402e155470233d256e037d863dab74c026b7f6))
|
|
30
|
+
* customInsert 不触发 onSuccess ([d6f4a1b](https://github.com/cycleccc/wangEditor/commit/d6f4a1b1494864b116a1310cce2d9e8632c92c6f))
|
|
31
|
+
* fix插入视频报错的问题 ([f78b06d](https://github.com/cycleccc/wangEditor/commit/f78b06d7f75c288f306f04fbfec1dfeb1332a861))
|
|
32
|
+
* fix视频插入iframe时报错的问题 ([ad8f9ce](https://github.com/cycleccc/wangEditor/commit/ad8f9cea0f7eae1cb0bc51dba64585be05dfda2f))
|
|
33
|
+
* menu active ([10829e2](https://github.com/cycleccc/wangEditor/commit/10829e2e9e1d864d4900821ee3d5fa516b8cca2a))
|
|
34
|
+
* parse html - v4 video ([8dca822](https://github.com/cycleccc/wangEditor/commit/8dca822f9f1b52fd71dd6e17f0954d6aa016324b))
|
|
35
|
+
* rename es module filename ([1821d4e](https://github.com/cycleccc/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
|
|
36
|
+
* shadow dom 中 modal 输入框异常 ([ef3b199](https://github.com/cycleccc/wangEditor/commit/ef3b199a3e74c6b8ba61ed781e1aa13a1c5acfde))
|
|
37
|
+
* table - elemToHtml ([e36e609](https://github.com/cycleccc/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
|
|
38
|
+
* video - 键盘删除 ([5a6bedd](https://github.com/cycleccc/wangEditor/commit/5a6bedd80fa0d758270731f62115637ad7f313d0))
|
|
39
|
+
* video poster(不想升级大版本,所有暂用 fix 不用 feature) ([5a2aff9](https://github.com/cycleccc/wangEditor/commit/5a2aff92bc23f240bd249a7294874940cfc9f717))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* 表格拖拽列宽 ([46ea2c0](https://github.com/cycleccc/wangEditor/commit/46ea2c0f831b03ebca5fddfd59d682fed0b3476e))
|
|
45
|
+
* 增加 enable disable API(删除 setConfig setMenuConfig API) ([984fc50](https://github.com/cycleccc/wangEditor/commit/984fc50520061fc34ea08f4136bdeb93dee46564))
|
|
46
|
+
* editVideoSize ([375eecb](https://github.com/cycleccc/wangEditor/commit/375eecba826eac681268c55c47bcd922f7157d63))
|
|
47
|
+
* enter menu ([988fc31](https://github.com/cycleccc/wangEditor/commit/988fc31f31de3d37dffbf54abb784cceb8e6118d))
|
|
48
|
+
* i18n ([c11b244](https://github.com/cycleccc/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
|
|
49
|
+
* parse html ([2a5eace](https://github.com/cycleccc/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
|
|
50
|
+
* parse src (link image video) ([715a841](https://github.com/cycleccc/wangEditor/commit/715a841fc6c730ee2b448a1799a07ce778128aad))
|
|
51
|
+
* setHtml ([f4f91b8](https://github.com/cycleccc/wangEditor/commit/f4f91b883298091e3679ca6b206ae0d796003772))
|
|
52
|
+
* toHtml 机制 ([1c4d872](https://github.com/cycleccc/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
|
|
53
|
+
* upload video ([ac8e6f8](https://github.com/cycleccc/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
|
|
54
|
+
* video menu config ([7fa3783](https://github.com/cycleccc/wangEditor/commit/7fa3783c42aa83f7d53c8be34be3c8b7c8a64754))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## [1.1.4](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/video-module@1.1.3...@wangeditor/video-module@1.1.4) (2022-09-27)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @wangeditor/video-module
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [1.1.3](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/video-module@1.1.2...@wangeditor/video-module@1.1.3) (2022-09-15)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* customInsert 不触发 onSuccess ([d6f4a1b](https://github.com/wangeditor-team/wangEditor/commit/d6f4a1b1494864b116a1310cce2d9e8632c92c6f))
|
|
74
|
+
* 上传视频 - customBrowseAndUpload 缺少 poster ([c24627a](https://github.com/wangeditor-team/wangEditor/commit/c24627aaa4c173c5d435e3077dfe8f6b4a9a87b1))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [1.1.2](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/video-module@1.1.1...@wangeditor/video-module@1.1.2) (2022-08-30)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
* checkVideo 增加 poster 参数 ([c0402e1](https://github.com/wangeditor-team/wangEditor/commit/c0402e155470233d256e037d863dab74c026b7f6))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [1.1.1](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/video-module@1.1.0...@wangeditor/video-module@1.1.1) (2022-07-14)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* video poster(不想升级大版本,所有暂用 fix 不用 feature) ([5a2aff9](https://github.com/wangeditor-team/wangEditor/commit/5a2aff92bc23f240bd249a7294874940cfc9f717))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# [1.1.0](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/video-module@1.0.1...@wangeditor/video-module@1.1.0) (2022-05-25)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
* editVideoSize ([375eecb](https://github.com/wangeditor-team/wangEditor/commit/375eecba826eac681268c55c47bcd922f7157d63))
|
|
108
|
+
* enter menu ([988fc31](https://github.com/wangeditor-team/wangEditor/commit/988fc31f31de3d37dffbf54abb784cceb8e6118d))
|
|
109
|
+
* setHtml ([f4f91b8](https://github.com/wangeditor-team/wangEditor/commit/f4f91b883298091e3679ca6b206ae0d796003772))
|
|
110
|
+
* 表格拖拽列宽 ([46ea2c0](https://github.com/wangeditor-team/wangEditor/commit/46ea2c0f831b03ebca5fddfd59d682fed0b3476e))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## 1.0.1 (2022-04-18)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Bug Fixes
|
|
120
|
+
|
|
121
|
+
* 部分菜单 disabled ([87f1233](https://github.com/wangeditor-team/wangEditor/commit/87f12332a087072406c1988dc5cef2eae8335375))
|
|
122
|
+
* 插入图片的 < > 替换 ([5721560](https://github.com/wangeditor-team/wangEditor/commit/57215609ada8b9d15f5505d1ba52e49707b5b183))
|
|
123
|
+
* 更新各包之间依赖版本 ([75c552c](https://github.com/wangeditor-team/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
|
|
124
|
+
* 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/wangeditor-team/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
|
|
125
|
+
* 修复视频无法被xml-formatter解析的问题 ([e081518](https://github.com/wangeditor-team/wangEditor/commit/e08151863628e0241fe4a3d5858cda4c8ea57949)), closes [#101](https://github.com/wangeditor-team/wangEditor/issues/101) [#95](https://github.com/wangeditor-team/wangEditor/issues/95) [#70](https://github.com/wangeditor-team/wangEditor/issues/70) [#69](https://github.com/wangeditor-team/wangEditor/issues/69)
|
|
126
|
+
* 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/wangeditor-team/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
|
|
127
|
+
* fix插入视频报错的问题 ([f78b06d](https://github.com/wangeditor-team/wangEditor/commit/f78b06d7f75c288f306f04fbfec1dfeb1332a861))
|
|
128
|
+
* fix视频插入iframe时报错的问题 ([ad8f9ce](https://github.com/wangeditor-team/wangEditor/commit/ad8f9cea0f7eae1cb0bc51dba64585be05dfda2f))
|
|
129
|
+
* menu active ([10829e2](https://github.com/wangeditor-team/wangEditor/commit/10829e2e9e1d864d4900821ee3d5fa516b8cca2a))
|
|
130
|
+
* parse html - v4 video ([8dca822](https://github.com/wangeditor-team/wangEditor/commit/8dca822f9f1b52fd71dd6e17f0954d6aa016324b))
|
|
131
|
+
* rename es module filename ([1821d4e](https://github.com/wangeditor-team/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
|
|
132
|
+
* shadow dom 中 modal 输入框异常 ([ef3b199](https://github.com/wangeditor-team/wangEditor/commit/ef3b199a3e74c6b8ba61ed781e1aa13a1c5acfde))
|
|
133
|
+
* table - elemToHtml ([e36e609](https://github.com/wangeditor-team/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
|
|
134
|
+
* video - 键盘删除 ([5a6bedd](https://github.com/wangeditor-team/wangEditor/commit/5a6bedd80fa0d758270731f62115637ad7f313d0))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Features
|
|
138
|
+
|
|
139
|
+
* 增加 enable disable API(删除 setConfig setMenuConfig API) ([984fc50](https://github.com/wangeditor-team/wangEditor/commit/984fc50520061fc34ea08f4136bdeb93dee46564))
|
|
140
|
+
* i18n ([c11b244](https://github.com/wangeditor-team/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
|
|
141
|
+
* parse html ([2a5eace](https://github.com/wangeditor-team/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
|
|
142
|
+
* parse src (link image video) ([715a841](https://github.com/wangeditor-team/wangEditor/commit/715a841fc6c730ee2b448a1799a07ce778128aad))
|
|
143
|
+
* toHtml 机制 ([1c4d872](https://github.com/wangeditor-team/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
|
|
144
|
+
* upload video ([ac8e6f8](https://github.com/wangeditor-team/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
|
|
145
|
+
* video menu config ([7fa3783](https://github.com/wangeditor-team/wangEditor/commit/7fa3783c42aa83f7d53c8be34be3c8b7c8a64754))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 - present wangEditor-team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.w-e-textarea-video-container {
|
|
2
|
+
text-align: center;
|
|
3
|
+
border: 1px dashed var(--w-e-textarea-border-color);
|
|
4
|
+
padding: 10px 0;
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
margin-top: 10px;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
background-position: 0px 0px, 10px 10px;
|
|
9
|
+
background-size: 20px 20px;
|
|
10
|
+
background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%), linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
|
|
11
|
+
}
|