@atlaskit/editor-plugin-block-controls 26.0.2 → 27.0.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 +14 -0
- package/dist/cjs/blockControlsPlugin.js +1 -1
- package/dist/cjs/editor-commands/move-node.js +1 -1
- package/dist/es2019/blockControlsPlugin.js +1 -1
- package/dist/es2019/editor-commands/move-node.js +1 -1
- package/dist/esm/blockControlsPlugin.js +1 -1
- package/dist/esm/editor-commands/move-node.js +1 -1
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 27.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`daf8bd93659e4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/daf8bd93659e4) -
|
|
8
|
+
Clean up experiment `platform_editor_fix_table_move_shortcut`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 26.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 26.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -401,7 +401,7 @@ var blockControlsPlugin = exports.blockControlsPlugin = function blockControlsPl
|
|
|
401
401
|
var $from = $expandedAnchor.min($expandedHead);
|
|
402
402
|
var $to = $expandedAnchor.max($expandedHead);
|
|
403
403
|
var expandedNormalisedSel;
|
|
404
|
-
if (
|
|
404
|
+
if ($from.nodeAfter && $from.nodeAfter === $to.nodeBefore) {
|
|
405
405
|
// Single node
|
|
406
406
|
(0, _getSelection.selectNode)(tr, $from.pos, $from.nodeAfter.type.name, api);
|
|
407
407
|
expandedNormalisedSel = tr.selection;
|
|
@@ -180,7 +180,7 @@ var moveNodeViaShortcut = exports.moveNodeViaShortcut = function moveNodeViaShor
|
|
|
180
180
|
var LAYOUT_COL_DEPTH = 3;
|
|
181
181
|
hoistedPos = state.doc.resolve(from).before(LAYOUT_COL_DEPTH);
|
|
182
182
|
}
|
|
183
|
-
var table = (0,
|
|
183
|
+
var table = (0, _utils3.isTableSelected)(selection) ? (0, _utils3.findTable)(selection) : undefined;
|
|
184
184
|
var currentNodePos;
|
|
185
185
|
if (table) {
|
|
186
186
|
currentNodePos = table.pos;
|
|
@@ -399,7 +399,7 @@ export const blockControlsPlugin = ({
|
|
|
399
399
|
const $from = $expandedAnchor.min($expandedHead);
|
|
400
400
|
const $to = $expandedAnchor.max($expandedHead);
|
|
401
401
|
let expandedNormalisedSel;
|
|
402
|
-
if (
|
|
402
|
+
if ($from.nodeAfter && $from.nodeAfter === $to.nodeBefore) {
|
|
403
403
|
// Single node
|
|
404
404
|
selectNode(tr, $from.pos, $from.nodeAfter.type.name, api);
|
|
405
405
|
expandedNormalisedSel = tr.selection;
|
|
@@ -177,7 +177,7 @@ export const moveNodeViaShortcut = (api, direction, formatMessage) => {
|
|
|
177
177
|
const LAYOUT_COL_DEPTH = 3;
|
|
178
178
|
hoistedPos = state.doc.resolve(from).before(LAYOUT_COL_DEPTH);
|
|
179
179
|
}
|
|
180
|
-
const table =
|
|
180
|
+
const table = isTableSelected(selection) ? findTable(selection) : undefined;
|
|
181
181
|
let currentNodePos;
|
|
182
182
|
if (table) {
|
|
183
183
|
currentNodePos = table.pos;
|
|
@@ -394,7 +394,7 @@ export var blockControlsPlugin = function blockControlsPlugin(_ref) {
|
|
|
394
394
|
var $from = $expandedAnchor.min($expandedHead);
|
|
395
395
|
var $to = $expandedAnchor.max($expandedHead);
|
|
396
396
|
var expandedNormalisedSel;
|
|
397
|
-
if (
|
|
397
|
+
if ($from.nodeAfter && $from.nodeAfter === $to.nodeBefore) {
|
|
398
398
|
// Single node
|
|
399
399
|
selectNode(tr, $from.pos, $from.nodeAfter.type.name, api);
|
|
400
400
|
expandedNormalisedSel = tr.selection;
|
|
@@ -174,7 +174,7 @@ export var moveNodeViaShortcut = function moveNodeViaShortcut(api, direction, fo
|
|
|
174
174
|
var LAYOUT_COL_DEPTH = 3;
|
|
175
175
|
hoistedPos = state.doc.resolve(from).before(LAYOUT_COL_DEPTH);
|
|
176
176
|
}
|
|
177
|
-
var table =
|
|
177
|
+
var table = isTableSelected(selection) ? findTable(selection) : undefined;
|
|
178
178
|
var currentNodePos;
|
|
179
179
|
if (table) {
|
|
180
180
|
currentNodePos = table.pos;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"@atlaskit/button": "^25.4.0",
|
|
30
30
|
"@atlaskit/css": "^1.1.0",
|
|
31
31
|
"@atlaskit/docs": "^12.3.0",
|
|
32
|
-
"@atlaskit/editor-plugin-accessibility-utils": "^
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-block-collapse": "^
|
|
35
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
36
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
37
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
38
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
39
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
40
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
41
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
42
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
43
|
-
"@atlaskit/editor-plugin-show-diff": "^
|
|
44
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
45
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
46
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
47
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
48
|
-
"@atlaskit/editor-plugin-width": "^
|
|
32
|
+
"@atlaskit/editor-plugin-accessibility-utils": "^26.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^26.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-block-collapse": "^12.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-editor-disabled": "^26.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^28.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-feature-flags": "^25.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-interaction": "^40.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-limited-mode": "^23.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-metrics": "^27.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-quick-insert": "^26.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-selection": "^26.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-show-diff": "^24.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-toolbar": "^23.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-type-ahead": "^27.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^20.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-user-intent": "^24.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-width": "^27.0.0",
|
|
49
49
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
50
50
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
51
51
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@atlaskit/primitives": "^22.5.0",
|
|
62
62
|
"@atlaskit/section-message": "^10.2.0",
|
|
63
63
|
"@atlaskit/theme": "^28.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
-
"@atlaskit/tokens": "^20.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^227.0.0",
|
|
65
|
+
"@atlaskit/tokens": "^20.4.0",
|
|
66
66
|
"@atlaskit/tooltip": "^24.4.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@compiled/react": "^1.0.2",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^11.1.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^
|
|
76
|
+
"@atlaskit/editor-common": "^130.0.0",
|
|
77
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
79
79
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|