@wangeditor-next/list-module 1.1.2 → 1.1.4-alpha.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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
+ ## [1.1.4-alpha.0](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.3...@wangeditor-next/list-module@1.1.4-alpha.0) (2024-07-25)
7
+
8
+ **Note:** Version bump only for package @wangeditor-next/list-module
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.1.3](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.1...@wangeditor-next/list-module@1.1.3) (2024-07-15)
15
+
16
+
17
+ ### Performance Improvements
18
+
19
+ * **list module:** rewrite list module insertBreak ([cdf2154](https://github.com/cycleccc/wangEditor/commit/cdf2154dba4e92669f6211e6ac375f2a026fd58d))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.1.2](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.1...@wangeditor-next/list-module@1.1.2) (2024-07-14)
7
26
 
8
27
 
@@ -55,17 +74,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55
74
 
56
75
 
57
76
 
58
- ## [1.0.5](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/list-module@1.0.4...@wangeditor/list-module@1.0.5) (2022-09-27)
77
+ ## [1.0.5](https://github.com/cycleccc/wangEditor/compare/@wangeditor/list-module@1.0.4...@wangeditor/list-module@1.0.5) (2022-09-27)
59
78
 
60
79
 
61
80
  ### Bug Fixes
62
81
 
63
- * list-item - 遇到 style 是 toHtml 出错 ([9854308](https://github.com/wangeditor-team/wangEditor/commit/98543083a1cb09207aceb2a4d8f3c1ce020b106d))
82
+ * list-item - 遇到 style 是 toHtml 出错 ([9854308](https://github.com/cycleccc/wangEditor/commit/98543083a1cb09207aceb2a4d8f3c1ce020b106d))
64
83
 
65
84
 
66
85
 
67
86
 
68
87
 
69
- ## [1.0.4](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/list-module@1.0.3...@wangeditor/list-module@1.0.4) (2022-09-27)
88
+ ## [1.0.4](https://github.com/cycleccc/wangEditor/compare/@wangeditor/list-module@1.0.3...@wangeditor/list-module@1.0.4) (2022-09-27)
70
89
 
71
90
  **Note:** Version bump only for package @wangeditor/list-module
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # wangEditor list-module
2
-
3
- List module built in [wangEditor](https://www.wangeditor.com/) by default.
1
+ # wangEditor list-module
2
+
3
+ List module built in [wangeditor-next](https://cycleccc.github.io/docs/) by default.
package/dist/index.esm.js CHANGED
@@ -71,9 +71,6 @@ function genPreSymbol(level) {
71
71
  */
72
72
  function getOrderedItemNumber(editor, elem) {
73
73
  var _a = elem, type = _a.type, _b = _a.level, level = _b === void 0 ? 0 : _b, _c = _a.ordered, ordered = _c === void 0 ? false : _c;
74
- if (!ordered) {
75
- return -1; // 不是有序列表
76
- }
77
74
  var num = 1; // 默认值 1
78
75
  var curElem = elem;
79
76
  var curPath = DomEditor.findPath(editor, curElem);
@@ -156,7 +153,7 @@ var renderListItemConf = {
156
153
  renderElem: renderListElem,
157
154
  };
158
155
 
159
- /*! *****************************************************************************
156
+ /******************************************************************************
160
157
  Copyright (c) Microsoft Corporation.
161
158
 
162
159
  Permission to use, copy, modify, and/or distribute this software for any
@@ -170,7 +167,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
170
167
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
171
168
  PERFORMANCE OF THIS SOFTWARE.
172
169
  ***************************************************************************** */
173
- /* global Reflect, Promise */
170
+ /* global Reflect, Promise, SuppressedError, Symbol */
174
171
 
175
172
  var extendStatics = function(d, b) {
176
173
  extendStatics = Object.setPrototypeOf ||
@@ -226,7 +223,12 @@ function __read(o, n) {
226
223
  finally { if (e) throw e.error; }
227
224
  }
228
225
  return ar;
229
- }
226
+ }
227
+
228
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
229
+ var e = new Error(message);
230
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
231
+ };
230
232
 
231
233
  /**
232
234
  * @description table menu helpers
package/dist/index.js CHANGED
@@ -76,9 +76,6 @@
76
76
  */
77
77
  function getOrderedItemNumber(editor, elem) {
78
78
  var _a = elem, type = _a.type, _b = _a.level, level = _b === void 0 ? 0 : _b, _c = _a.ordered, ordered = _c === void 0 ? false : _c;
79
- if (!ordered) {
80
- return -1; // 不是有序列表
81
- }
82
79
  var num = 1; // 默认值 1
83
80
  var curElem = elem;
84
81
  var curPath = core.DomEditor.findPath(editor, curElem);
@@ -161,7 +158,7 @@
161
158
  renderElem: renderListElem,
162
159
  };
163
160
 
164
- /*! *****************************************************************************
161
+ /******************************************************************************
165
162
  Copyright (c) Microsoft Corporation.
166
163
 
167
164
  Permission to use, copy, modify, and/or distribute this software for any
@@ -175,7 +172,7 @@
175
172
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
176
173
  PERFORMANCE OF THIS SOFTWARE.
177
174
  ***************************************************************************** */
178
- /* global Reflect, Promise */
175
+ /* global Reflect, Promise, SuppressedError, Symbol */
179
176
 
180
177
  var extendStatics = function(d, b) {
181
178
  extendStatics = Object.setPrototypeOf ||
@@ -231,7 +228,12 @@
231
228
  finally { if (e) throw e.error; }
232
229
  }
233
230
  return ar;
234
- }
231
+ }
232
+
233
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
234
+ var e = new Error(message);
235
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
236
+ };
235
237
 
236
238
  /**
237
239
  * @description table menu helpers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/list-module",
3
- "version": "1.1.2",
3
+ "version": "1.1.4-alpha.0",
4
4
  "description": "wangEditor list module",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "contributors": [],
@@ -45,5 +45,5 @@
45
45
  "slate": "^0.72.0",
46
46
  "snabbdom": "^3.1.0"
47
47
  },
48
- "gitHead": "5d55ac379a7f66a17894d7a7e224a76bca2642c7"
48
+ "gitHead": "f1f99fe27bf74e20f0098aa1f43d39b9bcacf352"
49
49
  }