@atlaskit/editor-plugin-block-controls 2.22.2 → 2.23.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,26 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 2.23.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112350](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112350)
8
+ [`75d73ae5c1963`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/75d73ae5c1963) -
9
+ Pressing move right shortcut on layout column should not move the cursor to the next node
10
+ - Updated dependencies
11
+
12
+ ## 2.23.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
17
+ [`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
18
+ Bumped editor-prosemirror version to 7.0.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 2.22.2
4
25
 
5
26
  ### Patch Changes
@@ -136,7 +136,8 @@ var moveNodeViaShortcut = exports.moveNodeViaShortcut = function moveNodeViaShor
136
136
 
137
137
  // if the current node is the last node, don't do anything
138
138
  if (_index >= parent.childCount - 1) {
139
- return false;
139
+ // prevent event propagation to avoid moving the cursor and still select the node
140
+ return true;
140
141
  }
141
142
  var moveToEnd = _index === parent.childCount - 2;
142
143
  moveToPos = moveToEnd ? $pos.before() : selection.to + ((nextNode === null || nextNode === void 0 ? void 0 : nextNode.nodeSize) || 1);
@@ -134,7 +134,8 @@ export const moveNodeViaShortcut = (api, direction, formatMessage) => {
134
134
 
135
135
  // if the current node is the last node, don't do anything
136
136
  if (index >= parent.childCount - 1) {
137
- return false;
137
+ // prevent event propagation to avoid moving the cursor and still select the node
138
+ return true;
138
139
  }
139
140
  const moveToEnd = index === parent.childCount - 2;
140
141
  moveToPos = moveToEnd ? $pos.before() : selection.to + ((nextNode === null || nextNode === void 0 ? void 0 : nextNode.nodeSize) || 1);
@@ -130,7 +130,8 @@ export var moveNodeViaShortcut = function moveNodeViaShortcut(api, direction, fo
130
130
 
131
131
  // if the current node is the last node, don't do anything
132
132
  if (_index >= parent.childCount - 1) {
133
- return false;
133
+ // prevent event propagation to avoid moving the cursor and still select the node
134
+ return true;
134
135
  }
135
136
  var moveToEnd = _index === parent.childCount - 2;
136
137
  moveToPos = moveToEnd ? $pos.before() : selection.to + ((nextNode === null || nextNode === void 0 ? void 0 : nextNode.nodeSize) || 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "2.22.2",
3
+ "version": "2.23.1",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,24 +31,24 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@atlaskit/adf-schema": "^46.1.0",
34
- "@atlaskit/editor-common": "^99.9.0",
35
- "@atlaskit/editor-plugin-accessibility-utils": "^1.3.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.11.0",
37
- "@atlaskit/editor-plugin-editor-disabled": "^1.4.0",
38
- "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
39
- "@atlaskit/editor-plugin-quick-insert": "^1.9.0",
40
- "@atlaskit/editor-plugin-width": "^2.0.0",
41
- "@atlaskit/editor-prosemirror": "6.2.1",
34
+ "@atlaskit/editor-common": "^99.10.0",
35
+ "@atlaskit/editor-plugin-accessibility-utils": "^1.4.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.12.0",
37
+ "@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
38
+ "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
39
+ "@atlaskit/editor-plugin-quick-insert": "^1.10.0",
40
+ "@atlaskit/editor-plugin-width": "^2.1.0",
41
+ "@atlaskit/editor-prosemirror": "7.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.2.0",
43
- "@atlaskit/editor-tables": "^2.8.0",
43
+ "@atlaskit/editor-tables": "^2.9.0",
44
44
  "@atlaskit/icon": "^23.7.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.0.0",
46
46
  "@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
47
47
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
48
48
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.2.0",
49
- "@atlaskit/primitives": "^13.4.0",
49
+ "@atlaskit/primitives": "^13.5.0",
50
50
  "@atlaskit/theme": "^15.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^2.43.0",
51
+ "@atlaskit/tmp-editor-statsig": "^2.44.0",
52
52
  "@atlaskit/tokens": "^3.3.0",
53
53
  "@atlaskit/tooltip": "^19.1.0",
54
54
  "@babel/runtime": "^7.0.0",