@atlaskit/editor-plugin-block-menu 3.0.0 → 3.0.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73f45bc07b4c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73f45bc07b4c6) -
|
|
8
|
+
ED-29240: Fixed not able to delete table when it is last element
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -35,8 +35,8 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
|
|
|
35
35
|
} else if ((0, _utils.isTableSelected)(selection)) {
|
|
36
36
|
var table = (0, _utils.findTable)(selection);
|
|
37
37
|
if (table) {
|
|
38
|
-
from = table.
|
|
39
|
-
to = table.
|
|
38
|
+
from = table.pos;
|
|
39
|
+
to = table.pos + table.node.nodeSize;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
tr.deleteRange(from, to);
|
|
@@ -29,8 +29,8 @@ const DeleteDropdownItemContent = ({
|
|
|
29
29
|
} else if (isTableSelected(selection)) {
|
|
30
30
|
const table = findTable(selection);
|
|
31
31
|
if (table) {
|
|
32
|
-
from = table.
|
|
33
|
-
to = table.
|
|
32
|
+
from = table.pos;
|
|
33
|
+
to = table.pos + table.node.nodeSize;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
tr.deleteRange(from, to);
|
|
@@ -26,8 +26,8 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
|
|
|
26
26
|
} else if (isTableSelected(selection)) {
|
|
27
27
|
var table = findTable(selection);
|
|
28
28
|
if (table) {
|
|
29
|
-
from = table.
|
|
30
|
-
to = table.
|
|
29
|
+
from = table.pos;
|
|
30
|
+
to = table.pos + table.node.nodeSize;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
tr.deleteRange(from, to);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^109.
|
|
49
|
+
"@atlaskit/editor-common": "^109.2.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
52
52
|
},
|