@wangeditor-next/editor 5.3.15-experimental.15 → 5.3.15-experimental.22
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 +8 -0
- package/LICENSE +21 -21
- package/dist/index.esm.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.15](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.14...@wangeditor-next/editor@5.3.15) (2024-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [5.3.14](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.13...@wangeditor-next/editor@5.3.14) (2024-08-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @wangeditor-next/editor
|
package/LICENSE
CHANGED
|
@@ -1,21 +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.
|
|
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.
|
package/dist/index.esm.js
CHANGED
|
@@ -34592,7 +34592,6 @@ var TableCursor = {
|
|
|
34592
34592
|
/** Clears the selection from the table */
|
|
34593
34593
|
unselect: function (editor) {
|
|
34594
34594
|
// const matrix = EDITOR_TO_SELECTION.get(editor);
|
|
34595
|
-
var _a;
|
|
34596
34595
|
// if (!matrix?.length) {
|
|
34597
34596
|
// return;
|
|
34598
34597
|
// }
|
|
@@ -34615,7 +34614,7 @@ var TableCursor = {
|
|
|
34615
34614
|
EDITOR_TO_SELECTION_SET.delete(editor);
|
|
34616
34615
|
EDITOR_TO_SELECTION.delete(editor);
|
|
34617
34616
|
// 清除选区
|
|
34618
|
-
|
|
34617
|
+
// document.getSelection()?.removeAllRanges()
|
|
34619
34618
|
},
|
|
34620
34619
|
/**
|
|
34621
34620
|
* Checks whether a given cell is part of the current table selection.
|
|
@@ -34631,6 +34630,7 @@ var TableCursor = {
|
|
|
34631
34630
|
};
|
|
34632
34631
|
|
|
34633
34632
|
function withSelection(editor) {
|
|
34633
|
+
var e = editor;
|
|
34634
34634
|
var apply = editor.apply;
|
|
34635
34635
|
editor.apply = function (op) {
|
|
34636
34636
|
if (!Operation.isSelectionOperation(op) || !op.newProperties) {
|
|
@@ -34641,6 +34641,7 @@ function withSelection(editor) {
|
|
|
34641
34641
|
var selection = __assign$3(__assign$3({}, editor.selection), op.newProperties);
|
|
34642
34642
|
if (!Range.isRange(selection)) {
|
|
34643
34643
|
TableCursor.unselect(editor);
|
|
34644
|
+
e.deselect();
|
|
34644
34645
|
return apply(op);
|
|
34645
34646
|
}
|
|
34646
34647
|
var _a = __read$3(Editor.nodes(editor, {
|
|
@@ -34659,6 +34660,7 @@ function withSelection(editor) {
|
|
|
34659
34660
|
var _d = __read$3(toEntry, 2), toPath = _d[1];
|
|
34660
34661
|
if (Path.equals(fromPath, toPath) || !hasCommon(editor, [fromPath, toPath], 'table')) {
|
|
34661
34662
|
TableCursor.unselect(editor);
|
|
34663
|
+
e.deselect();
|
|
34662
34664
|
return apply(op);
|
|
34663
34665
|
}
|
|
34664
34666
|
// TODO: perf: could be improved by passing a Span [fromPath, toPath]
|
package/dist/index.js
CHANGED
|
@@ -38963,7 +38963,6 @@
|
|
|
38963
38963
|
/** Clears the selection from the table */
|
|
38964
38964
|
unselect: function (editor) {
|
|
38965
38965
|
// const matrix = EDITOR_TO_SELECTION.get(editor);
|
|
38966
|
-
var _a;
|
|
38967
38966
|
// if (!matrix?.length) {
|
|
38968
38967
|
// return;
|
|
38969
38968
|
// }
|
|
@@ -38986,7 +38985,7 @@
|
|
|
38986
38985
|
EDITOR_TO_SELECTION_SET.delete(editor);
|
|
38987
38986
|
EDITOR_TO_SELECTION.delete(editor);
|
|
38988
38987
|
// 清除选区
|
|
38989
|
-
|
|
38988
|
+
// document.getSelection()?.removeAllRanges()
|
|
38990
38989
|
},
|
|
38991
38990
|
/**
|
|
38992
38991
|
* Checks whether a given cell is part of the current table selection.
|
|
@@ -39002,6 +39001,7 @@
|
|
|
39002
39001
|
};
|
|
39003
39002
|
|
|
39004
39003
|
function withSelection(editor) {
|
|
39004
|
+
var e = editor;
|
|
39005
39005
|
var apply = editor.apply;
|
|
39006
39006
|
editor.apply = function (op) {
|
|
39007
39007
|
if (!slate.Operation.isSelectionOperation(op) || !op.newProperties) {
|
|
@@ -39012,6 +39012,7 @@
|
|
|
39012
39012
|
var selection = __assign(__assign({}, editor.selection), op.newProperties);
|
|
39013
39013
|
if (!slate.Range.isRange(selection)) {
|
|
39014
39014
|
TableCursor.unselect(editor);
|
|
39015
|
+
e.deselect();
|
|
39015
39016
|
return apply(op);
|
|
39016
39017
|
}
|
|
39017
39018
|
var _a = __read(slate.Editor.nodes(editor, {
|
|
@@ -39030,6 +39031,7 @@
|
|
|
39030
39031
|
var _d = __read(toEntry, 2), toPath = _d[1];
|
|
39031
39032
|
if (slate.Path.equals(fromPath, toPath) || !hasCommon(editor, [fromPath, toPath], 'table')) {
|
|
39032
39033
|
TableCursor.unselect(editor);
|
|
39034
|
+
e.deselect();
|
|
39033
39035
|
return apply(op);
|
|
39034
39036
|
}
|
|
39035
39037
|
// TODO: perf: could be improved by passing a Span [fromPath, toPath]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor",
|
|
3
|
-
"version": "5.3.15-experimental.
|
|
3
|
+
"version": "5.3.15-experimental.22+a8a71327",
|
|
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.8
|
|
53
|
+
"@wangeditor-next/basic-modules": "^1.3.8",
|
|
54
54
|
"@wangeditor-next/code-highlight": "^1.2.1",
|
|
55
55
|
"@wangeditor-next/core": "^1.5.6",
|
|
56
56
|
"@wangeditor-next/list-module": "^1.1.5",
|
|
57
|
-
"@wangeditor-next/table-module": "^1.3.
|
|
57
|
+
"@wangeditor-next/table-module": "^1.3.9-experimental.22+a8a71327",
|
|
58
58
|
"@wangeditor-next/upload-image-module": "^1.1.2",
|
|
59
59
|
"@wangeditor-next/video-module": "^1.3.4",
|
|
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": "a8a71327522eec9fff37e2b022c0996bb6e150e4"
|
|
74
74
|
}
|