@wangeditor-next/editor 5.3.4 → 5.3.6
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 +16 -0
- package/dist/index.esm.js +85 -33
- package/dist/index.js +85 -33
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.3.6](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.5...@wangeditor-next/editor@5.3.6) (2024-07-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.3.5](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.4.0...@wangeditor-next/editor@5.3.5) (2024-07-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [5.3.4](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.4.0...@wangeditor-next/editor@5.3.4) (2024-07-14)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @wangeditor-next/editor
|
package/dist/index.esm.js
CHANGED
|
@@ -17751,7 +17751,7 @@ var shouldClear = op => {
|
|
|
17751
17751
|
return true;
|
|
17752
17752
|
};
|
|
17753
17753
|
|
|
17754
|
-
|
|
17754
|
+
/******************************************************************************
|
|
17755
17755
|
Copyright (c) Microsoft Corporation.
|
|
17756
17756
|
|
|
17757
17757
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -17765,7 +17765,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17765
17765
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17766
17766
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17767
17767
|
***************************************************************************** */
|
|
17768
|
-
/* global Reflect, Promise */
|
|
17768
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
17769
17769
|
|
|
17770
17770
|
var extendStatics$2 = function(d, b) {
|
|
17771
17771
|
extendStatics$2 = Object.setPrototypeOf ||
|
|
@@ -17822,11 +17822,20 @@ function __read$6(o, n) {
|
|
|
17822
17822
|
return ar;
|
|
17823
17823
|
}
|
|
17824
17824
|
|
|
17825
|
-
function __spreadArray$1(to, from) {
|
|
17826
|
-
for (var i = 0,
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17825
|
+
function __spreadArray$1(to, from, pack) {
|
|
17826
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17827
|
+
if (ar || !(i in from)) {
|
|
17828
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17829
|
+
ar[i] = from[i];
|
|
17830
|
+
}
|
|
17831
|
+
}
|
|
17832
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
17833
|
+
}
|
|
17834
|
+
|
|
17835
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
17836
|
+
var e = new Error(message);
|
|
17837
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
17838
|
+
};
|
|
17830
17839
|
|
|
17831
17840
|
/**
|
|
17832
17841
|
* An auto-incrementing identifier for keys.
|
|
@@ -20261,9 +20270,13 @@ var withContent = function (editor) {
|
|
|
20261
20270
|
if (!DomEditor.isSelectedEmptyParagraph(e)) {
|
|
20262
20271
|
// 当前不是空行,且 非 inline - 则换行
|
|
20263
20272
|
if (display.indexOf('inline') < 0) {
|
|
20264
|
-
|
|
20265
|
-
|
|
20266
|
-
|
|
20273
|
+
if (index >= 1) {
|
|
20274
|
+
var prevEl = domNodes[index - 1];
|
|
20275
|
+
// 如果是 list 列表需要多插入一个回车,模拟双回车删除空 list
|
|
20276
|
+
if ('matches' in prevEl &&
|
|
20277
|
+
prevEl.matches('ul:not([data-w-e-type]),ol:not([data-w-e-type])')) {
|
|
20278
|
+
e.insertBreak();
|
|
20279
|
+
}
|
|
20267
20280
|
}
|
|
20268
20281
|
e.insertBreak();
|
|
20269
20282
|
}
|
|
@@ -27749,7 +27762,7 @@ var parseParagraphHtmlConf = {
|
|
|
27749
27762
|
parseElemHtml: parseParagraphHtml,
|
|
27750
27763
|
};
|
|
27751
27764
|
|
|
27752
|
-
|
|
27765
|
+
/******************************************************************************
|
|
27753
27766
|
Copyright (c) Microsoft Corporation.
|
|
27754
27767
|
|
|
27755
27768
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -27763,7 +27776,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
27763
27776
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27764
27777
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27765
27778
|
***************************************************************************** */
|
|
27766
|
-
/* global Reflect, Promise */
|
|
27779
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
27767
27780
|
|
|
27768
27781
|
var extendStatics$1 = function(d, b) {
|
|
27769
27782
|
extendStatics$1 = Object.setPrototypeOf ||
|
|
@@ -27807,7 +27820,7 @@ function __generator$3(thisArg, body) {
|
|
|
27807
27820
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
27808
27821
|
function step(op) {
|
|
27809
27822
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27810
|
-
while (_) try {
|
|
27823
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
27811
27824
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
27812
27825
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
27813
27826
|
switch (op[0]) {
|
|
@@ -27856,7 +27869,12 @@ function __read$5(o, n) {
|
|
|
27856
27869
|
finally { if (e) throw e.error; }
|
|
27857
27870
|
}
|
|
27858
27871
|
return ar;
|
|
27859
|
-
}
|
|
27872
|
+
}
|
|
27873
|
+
|
|
27874
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
27875
|
+
var e = new Error(message);
|
|
27876
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
27877
|
+
};
|
|
27860
27878
|
|
|
27861
27879
|
/**
|
|
27862
27880
|
* @description editor 插件,重写 editor API
|
|
@@ -33512,7 +33530,7 @@ var renderListItemConf = {
|
|
|
33512
33530
|
renderElem: renderListElem,
|
|
33513
33531
|
};
|
|
33514
33532
|
|
|
33515
|
-
|
|
33533
|
+
/******************************************************************************
|
|
33516
33534
|
Copyright (c) Microsoft Corporation.
|
|
33517
33535
|
|
|
33518
33536
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -33526,7 +33544,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
33526
33544
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
33527
33545
|
PERFORMANCE OF THIS SOFTWARE.
|
|
33528
33546
|
***************************************************************************** */
|
|
33529
|
-
/* global Reflect, Promise */
|
|
33547
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
33530
33548
|
|
|
33531
33549
|
var extendStatics = function(d, b) {
|
|
33532
33550
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -33582,7 +33600,12 @@ function __read$4(o, n) {
|
|
|
33582
33600
|
finally { if (e) throw e.error; }
|
|
33583
33601
|
}
|
|
33584
33602
|
return ar;
|
|
33585
|
-
}
|
|
33603
|
+
}
|
|
33604
|
+
|
|
33605
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
33606
|
+
var e = new Error(message);
|
|
33607
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33608
|
+
};
|
|
33586
33609
|
|
|
33587
33610
|
/**
|
|
33588
33611
|
* @description table menu helpers
|
|
@@ -34203,7 +34226,7 @@ var zhResources$3 = {
|
|
|
34203
34226
|
i18nAddResources('en', enResources$3);
|
|
34204
34227
|
i18nAddResources('zh-CN', zhResources$3);
|
|
34205
34228
|
|
|
34206
|
-
|
|
34229
|
+
/******************************************************************************
|
|
34207
34230
|
Copyright (c) Microsoft Corporation.
|
|
34208
34231
|
|
|
34209
34232
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -34235,7 +34258,7 @@ function __generator$2(thisArg, body) {
|
|
|
34235
34258
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34236
34259
|
function step(op) {
|
|
34237
34260
|
if (f) throw new TypeError("Generator is already executing.");
|
|
34238
|
-
while (_) try {
|
|
34261
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
34239
34262
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34240
34263
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34241
34264
|
switch (op[0]) {
|
|
@@ -34286,11 +34309,20 @@ function __read$3(o, n) {
|
|
|
34286
34309
|
return ar;
|
|
34287
34310
|
}
|
|
34288
34311
|
|
|
34289
|
-
function __spreadArray(to, from) {
|
|
34290
|
-
for (var i = 0,
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
|
|
34312
|
+
function __spreadArray(to, from, pack) {
|
|
34313
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
34314
|
+
if (ar || !(i in from)) {
|
|
34315
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
34316
|
+
ar[i] = from[i];
|
|
34317
|
+
}
|
|
34318
|
+
}
|
|
34319
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
34320
|
+
}
|
|
34321
|
+
|
|
34322
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
34323
|
+
var e = new Error(message);
|
|
34324
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
34325
|
+
};
|
|
34294
34326
|
|
|
34295
34327
|
/** Weak reference between the `Editor` and the selected elements */
|
|
34296
34328
|
var EDITOR_TO_SELECTION = new WeakMap();
|
|
@@ -36599,7 +36631,7 @@ var zhResources$2 = {
|
|
|
36599
36631
|
i18nAddResources('en', enResources$2);
|
|
36600
36632
|
i18nAddResources('zh-CN', zhResources$2);
|
|
36601
36633
|
|
|
36602
|
-
|
|
36634
|
+
/******************************************************************************
|
|
36603
36635
|
Copyright (c) Microsoft Corporation.
|
|
36604
36636
|
|
|
36605
36637
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -36641,7 +36673,7 @@ function __generator$1(thisArg, body) {
|
|
|
36641
36673
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
36642
36674
|
function step(op) {
|
|
36643
36675
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36644
|
-
while (_) try {
|
|
36676
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
36645
36677
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
36646
36678
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
36647
36679
|
switch (op[0]) {
|
|
@@ -36698,7 +36730,12 @@ function __asyncValues$1(o) {
|
|
|
36698
36730
|
return m ? m.call(o) : (o = typeof __values$2 === "function" ? __values$2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
36699
36731
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
36700
36732
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
36701
|
-
}
|
|
36733
|
+
}
|
|
36734
|
+
|
|
36735
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
36736
|
+
var e = new Error(message);
|
|
36737
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
36738
|
+
};
|
|
36702
36739
|
|
|
36703
36740
|
/**
|
|
36704
36741
|
* @description editor 插件,重写 editor API
|
|
@@ -37771,7 +37808,7 @@ var zhResources$1 = {
|
|
|
37771
37808
|
i18nAddResources('en', enResources$1);
|
|
37772
37809
|
i18nAddResources('zh-CN', zhResources$1);
|
|
37773
37810
|
|
|
37774
|
-
|
|
37811
|
+
/******************************************************************************
|
|
37775
37812
|
Copyright (c) Microsoft Corporation.
|
|
37776
37813
|
|
|
37777
37814
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -37813,7 +37850,7 @@ function __generator(thisArg, body) {
|
|
|
37813
37850
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37814
37851
|
function step(op) {
|
|
37815
37852
|
if (f) throw new TypeError("Generator is already executing.");
|
|
37816
|
-
while (_) try {
|
|
37853
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37817
37854
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
37818
37855
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
37819
37856
|
switch (op[0]) {
|
|
@@ -37870,7 +37907,12 @@ function __asyncValues(o) {
|
|
|
37870
37907
|
return m ? m.call(o) : (o = typeof __values$1 === "function" ? __values$1(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
37871
37908
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
37872
37909
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
37873
|
-
}
|
|
37910
|
+
}
|
|
37911
|
+
|
|
37912
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
37913
|
+
var e = new Error(message);
|
|
37914
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37915
|
+
};
|
|
37874
37916
|
|
|
37875
37917
|
/**
|
|
37876
37918
|
* @description 上传文件
|
|
@@ -42989,7 +43031,7 @@ var codeHighlightModule = {
|
|
|
42989
43031
|
elemsToHtml: [codeToHtmlConf],
|
|
42990
43032
|
};
|
|
42991
43033
|
|
|
42992
|
-
|
|
43034
|
+
/******************************************************************************
|
|
42993
43035
|
Copyright (c) Microsoft Corporation.
|
|
42994
43036
|
|
|
42995
43037
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -43031,7 +43073,12 @@ function __read(o, n) {
|
|
|
43031
43073
|
finally { if (e) throw e.error; }
|
|
43032
43074
|
}
|
|
43033
43075
|
return ar;
|
|
43034
|
-
}
|
|
43076
|
+
}
|
|
43077
|
+
|
|
43078
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43079
|
+
var e = new Error(message);
|
|
43080
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43081
|
+
};
|
|
43035
43082
|
|
|
43036
43083
|
/**
|
|
43037
43084
|
* @description code-highlight decorate
|
|
@@ -43093,7 +43140,7 @@ var codeHighLightDecorate = function (nodeEntry) {
|
|
|
43093
43140
|
return ranges;
|
|
43094
43141
|
};
|
|
43095
43142
|
|
|
43096
|
-
|
|
43143
|
+
/******************************************************************************
|
|
43097
43144
|
Copyright (c) Microsoft Corporation.
|
|
43098
43145
|
|
|
43099
43146
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -43117,6 +43164,11 @@ var __assign = function() {
|
|
|
43117
43164
|
return t;
|
|
43118
43165
|
};
|
|
43119
43166
|
return __assign.apply(this, arguments);
|
|
43167
|
+
};
|
|
43168
|
+
|
|
43169
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43170
|
+
var e = new Error(message);
|
|
43171
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43120
43172
|
};
|
|
43121
43173
|
|
|
43122
43174
|
/**
|
package/dist/index.js
CHANGED
|
@@ -21944,7 +21944,7 @@
|
|
|
21944
21944
|
};
|
|
21945
21945
|
var withHistory_1 = withHistory;
|
|
21946
21946
|
|
|
21947
|
-
|
|
21947
|
+
/******************************************************************************
|
|
21948
21948
|
Copyright (c) Microsoft Corporation.
|
|
21949
21949
|
|
|
21950
21950
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -21958,7 +21958,7 @@
|
|
|
21958
21958
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
21959
21959
|
PERFORMANCE OF THIS SOFTWARE.
|
|
21960
21960
|
***************************************************************************** */
|
|
21961
|
-
/* global Reflect, Promise */
|
|
21961
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
21962
21962
|
|
|
21963
21963
|
var extendStatics = function(d, b) {
|
|
21964
21964
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -22015,11 +22015,20 @@
|
|
|
22015
22015
|
return ar;
|
|
22016
22016
|
}
|
|
22017
22017
|
|
|
22018
|
-
function __spreadArray(to, from) {
|
|
22019
|
-
for (var i = 0,
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
|
|
22018
|
+
function __spreadArray(to, from, pack) {
|
|
22019
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
22020
|
+
if (ar || !(i in from)) {
|
|
22021
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
22022
|
+
ar[i] = from[i];
|
|
22023
|
+
}
|
|
22024
|
+
}
|
|
22025
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
22026
|
+
}
|
|
22027
|
+
|
|
22028
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
22029
|
+
var e = new Error(message);
|
|
22030
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
22031
|
+
};
|
|
22023
22032
|
|
|
22024
22033
|
/**
|
|
22025
22034
|
* An auto-incrementing identifier for keys.
|
|
@@ -24454,9 +24463,13 @@
|
|
|
24454
24463
|
if (!DomEditor.isSelectedEmptyParagraph(e)) {
|
|
24455
24464
|
// 当前不是空行,且 非 inline - 则换行
|
|
24456
24465
|
if (display.indexOf('inline') < 0) {
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24466
|
+
if (index >= 1) {
|
|
24467
|
+
var prevEl = domNodes[index - 1];
|
|
24468
|
+
// 如果是 list 列表需要多插入一个回车,模拟双回车删除空 list
|
|
24469
|
+
if ('matches' in prevEl &&
|
|
24470
|
+
prevEl.matches('ul:not([data-w-e-type]),ol:not([data-w-e-type])')) {
|
|
24471
|
+
e.insertBreak();
|
|
24472
|
+
}
|
|
24460
24473
|
}
|
|
24461
24474
|
e.insertBreak();
|
|
24462
24475
|
}
|
|
@@ -32080,7 +32093,7 @@
|
|
|
32080
32093
|
parseElemHtml: parseParagraphHtml,
|
|
32081
32094
|
};
|
|
32082
32095
|
|
|
32083
|
-
|
|
32096
|
+
/******************************************************************************
|
|
32084
32097
|
Copyright (c) Microsoft Corporation.
|
|
32085
32098
|
|
|
32086
32099
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -32094,7 +32107,7 @@
|
|
|
32094
32107
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
32095
32108
|
PERFORMANCE OF THIS SOFTWARE.
|
|
32096
32109
|
***************************************************************************** */
|
|
32097
|
-
/* global Reflect, Promise */
|
|
32110
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
32098
32111
|
|
|
32099
32112
|
var extendStatics = function(d, b) {
|
|
32100
32113
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -32138,7 +32151,7 @@
|
|
|
32138
32151
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
32139
32152
|
function step(op) {
|
|
32140
32153
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32141
|
-
while (_) try {
|
|
32154
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32142
32155
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32143
32156
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
32144
32157
|
switch (op[0]) {
|
|
@@ -32187,7 +32200,12 @@
|
|
|
32187
32200
|
finally { if (e) throw e.error; }
|
|
32188
32201
|
}
|
|
32189
32202
|
return ar;
|
|
32190
|
-
}
|
|
32203
|
+
}
|
|
32204
|
+
|
|
32205
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
32206
|
+
var e = new Error(message);
|
|
32207
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
32208
|
+
};
|
|
32191
32209
|
|
|
32192
32210
|
/**
|
|
32193
32211
|
* @description editor 插件,重写 editor API
|
|
@@ -37863,7 +37881,7 @@
|
|
|
37863
37881
|
renderElem: renderListElem,
|
|
37864
37882
|
};
|
|
37865
37883
|
|
|
37866
|
-
|
|
37884
|
+
/******************************************************************************
|
|
37867
37885
|
Copyright (c) Microsoft Corporation.
|
|
37868
37886
|
|
|
37869
37887
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -37877,7 +37895,7 @@
|
|
|
37877
37895
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37878
37896
|
PERFORMANCE OF THIS SOFTWARE.
|
|
37879
37897
|
***************************************************************************** */
|
|
37880
|
-
/* global Reflect, Promise */
|
|
37898
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
37881
37899
|
|
|
37882
37900
|
var extendStatics = function(d, b) {
|
|
37883
37901
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -37933,7 +37951,12 @@
|
|
|
37933
37951
|
finally { if (e) throw e.error; }
|
|
37934
37952
|
}
|
|
37935
37953
|
return ar;
|
|
37936
|
-
}
|
|
37954
|
+
}
|
|
37955
|
+
|
|
37956
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
37957
|
+
var e = new Error(message);
|
|
37958
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37959
|
+
};
|
|
37937
37960
|
|
|
37938
37961
|
/**
|
|
37939
37962
|
* @description table menu helpers
|
|
@@ -38574,7 +38597,7 @@
|
|
|
38574
38597
|
core.i18nAddResources('en', enResources);
|
|
38575
38598
|
core.i18nAddResources('zh-CN', zhResources);
|
|
38576
38599
|
|
|
38577
|
-
|
|
38600
|
+
/******************************************************************************
|
|
38578
38601
|
Copyright (c) Microsoft Corporation.
|
|
38579
38602
|
|
|
38580
38603
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -38606,7 +38629,7 @@
|
|
|
38606
38629
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38607
38630
|
function step(op) {
|
|
38608
38631
|
if (f) throw new TypeError("Generator is already executing.");
|
|
38609
|
-
while (_) try {
|
|
38632
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
38610
38633
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38611
38634
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
38612
38635
|
switch (op[0]) {
|
|
@@ -38657,11 +38680,20 @@
|
|
|
38657
38680
|
return ar;
|
|
38658
38681
|
}
|
|
38659
38682
|
|
|
38660
|
-
function __spreadArray(to, from) {
|
|
38661
|
-
for (var i = 0,
|
|
38662
|
-
|
|
38663
|
-
|
|
38664
|
-
|
|
38683
|
+
function __spreadArray(to, from, pack) {
|
|
38684
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
38685
|
+
if (ar || !(i in from)) {
|
|
38686
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
38687
|
+
ar[i] = from[i];
|
|
38688
|
+
}
|
|
38689
|
+
}
|
|
38690
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
38691
|
+
}
|
|
38692
|
+
|
|
38693
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
38694
|
+
var e = new Error(message);
|
|
38695
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
38696
|
+
};
|
|
38665
38697
|
|
|
38666
38698
|
/** Weak reference between the `Editor` and the selected elements */
|
|
38667
38699
|
var EDITOR_TO_SELECTION = new WeakMap();
|
|
@@ -40988,7 +41020,7 @@
|
|
|
40988
41020
|
core.i18nAddResources('en', enResources);
|
|
40989
41021
|
core.i18nAddResources('zh-CN', zhResources);
|
|
40990
41022
|
|
|
40991
|
-
|
|
41023
|
+
/******************************************************************************
|
|
40992
41024
|
Copyright (c) Microsoft Corporation.
|
|
40993
41025
|
|
|
40994
41026
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -41030,7 +41062,7 @@
|
|
|
41030
41062
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
41031
41063
|
function step(op) {
|
|
41032
41064
|
if (f) throw new TypeError("Generator is already executing.");
|
|
41033
|
-
while (_) try {
|
|
41065
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41034
41066
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
41035
41067
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
41036
41068
|
switch (op[0]) {
|
|
@@ -41087,7 +41119,12 @@
|
|
|
41087
41119
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
41088
41120
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
41089
41121
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
41090
|
-
}
|
|
41122
|
+
}
|
|
41123
|
+
|
|
41124
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
41125
|
+
var e = new Error(message);
|
|
41126
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
41127
|
+
};
|
|
41091
41128
|
|
|
41092
41129
|
/**
|
|
41093
41130
|
* @description editor 插件,重写 editor API
|
|
@@ -42178,7 +42215,7 @@
|
|
|
42178
42215
|
core.i18nAddResources('en', enResources);
|
|
42179
42216
|
core.i18nAddResources('zh-CN', zhResources);
|
|
42180
42217
|
|
|
42181
|
-
|
|
42218
|
+
/******************************************************************************
|
|
42182
42219
|
Copyright (c) Microsoft Corporation.
|
|
42183
42220
|
|
|
42184
42221
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -42220,7 +42257,7 @@
|
|
|
42220
42257
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42221
42258
|
function step(op) {
|
|
42222
42259
|
if (f) throw new TypeError("Generator is already executing.");
|
|
42223
|
-
while (_) try {
|
|
42260
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42224
42261
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42225
42262
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
42226
42263
|
switch (op[0]) {
|
|
@@ -42277,7 +42314,12 @@
|
|
|
42277
42314
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
42278
42315
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
42279
42316
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
42280
|
-
}
|
|
42317
|
+
}
|
|
42318
|
+
|
|
42319
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
42320
|
+
var e = new Error(message);
|
|
42321
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
42322
|
+
};
|
|
42281
42323
|
|
|
42282
42324
|
/**
|
|
42283
42325
|
* @description 上传文件
|
|
@@ -47414,7 +47456,7 @@
|
|
|
47414
47456
|
elemsToHtml: [codeToHtmlConf],
|
|
47415
47457
|
};
|
|
47416
47458
|
|
|
47417
|
-
|
|
47459
|
+
/******************************************************************************
|
|
47418
47460
|
Copyright (c) Microsoft Corporation.
|
|
47419
47461
|
|
|
47420
47462
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -47456,7 +47498,12 @@
|
|
|
47456
47498
|
finally { if (e) throw e.error; }
|
|
47457
47499
|
}
|
|
47458
47500
|
return ar;
|
|
47459
|
-
}
|
|
47501
|
+
}
|
|
47502
|
+
|
|
47503
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
47504
|
+
var e = new Error(message);
|
|
47505
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
47506
|
+
};
|
|
47460
47507
|
|
|
47461
47508
|
/**
|
|
47462
47509
|
* @description code-highlight decorate
|
|
@@ -47526,7 +47573,7 @@
|
|
|
47526
47573
|
}));
|
|
47527
47574
|
});
|
|
47528
47575
|
|
|
47529
|
-
|
|
47576
|
+
/******************************************************************************
|
|
47530
47577
|
Copyright (c) Microsoft Corporation.
|
|
47531
47578
|
|
|
47532
47579
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -47550,6 +47597,11 @@
|
|
|
47550
47597
|
return t;
|
|
47551
47598
|
};
|
|
47552
47599
|
return __assign.apply(this, arguments);
|
|
47600
|
+
};
|
|
47601
|
+
|
|
47602
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
47603
|
+
var e = new Error(message);
|
|
47604
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
47553
47605
|
};
|
|
47554
47606
|
|
|
47555
47607
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.6",
|
|
4
4
|
"description": "Web rich text editor, Web 富文本编辑器",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wangeditor",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@uppy/core": "^2.1.1",
|
|
52
52
|
"@uppy/xhr-upload": "^2.0.3",
|
|
53
|
-
"@wangeditor-next/basic-modules": "^1.3.
|
|
53
|
+
"@wangeditor-next/basic-modules": "^1.3.2",
|
|
54
54
|
"@wangeditor-next/code-highlight": "^1.2.1",
|
|
55
|
-
"@wangeditor-next/core": "^1.5.
|
|
56
|
-
"@wangeditor-next/list-module": "^1.1.
|
|
57
|
-
"@wangeditor-next/table-module": "^1.3.
|
|
55
|
+
"@wangeditor-next/core": "^1.5.2",
|
|
56
|
+
"@wangeditor-next/list-module": "^1.1.3",
|
|
57
|
+
"@wangeditor-next/table-module": "^1.3.3",
|
|
58
58
|
"@wangeditor-next/upload-image-module": "^1.1.1",
|
|
59
59
|
"@wangeditor-next/video-module": "^1.3.0",
|
|
60
60
|
"dom7": "^3.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"slate": "^0.72.0",
|
|
71
71
|
"snabbdom": "^3.1.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "b879359ca034eddc96c779de8dc91775097de1c1"
|
|
74
74
|
}
|