@atlaskit/editor-plugin-block-controls 7.14.1 → 7.15.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
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 7.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
8
+ Migrated and cleaned up legacy iconography usage.
9
+
10
+ ### Patch Changes
11
+
12
+ - [`e4dce058a2b52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4dce058a2b52) -
13
+ EDITOR-3793 Stop preserving selection on block menu close
14
+ - Updated dependencies
15
+
3
16
  ## 7.14.1
4
17
 
5
18
  ### Patch Changes
@@ -102,6 +102,9 @@ var blockControlsPlugin = exports.blockControlsPlugin = function blockControlsPl
102
102
  tr: tr
103
103
  });
104
104
  }
105
+ (0, _editorCommands.stopPreservingSelection)({
106
+ tr: tr
107
+ });
105
108
  return tr;
106
109
  }
107
110
 
@@ -24,7 +24,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
24
24
  var _utils = require("@atlaskit/editor-prosemirror/utils");
25
25
  var _consts = require("@atlaskit/editor-shared-styles/consts");
26
26
  var _dragHandleVertical = _interopRequireDefault(require("@atlaskit/icon/core/drag-handle-vertical"));
27
- var _dragHandler = _interopRequireDefault(require("@atlaskit/icon/glyph/drag-handler"));
28
27
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
28
  var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
30
29
  var _setCustomNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
@@ -1049,8 +1048,6 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
1049
1048
  }, (0, _react2.jsx)(_dragHandleVertical.default, {
1050
1049
  spacing: "spacious",
1051
1050
  label: "",
1052
- LEGACY_fallbackIcon: _dragHandler.default,
1053
- LEGACY_size: "medium",
1054
1051
  size: "small"
1055
1052
  })))
1056
1053
  );
@@ -92,6 +92,9 @@ export const blockControlsPlugin = ({
92
92
  tr
93
93
  });
94
94
  }
95
+ stopPreservingSelection({
96
+ tr
97
+ });
95
98
  return tr;
96
99
  }
97
100
 
@@ -21,7 +21,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
21
21
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
22
22
  import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/consts';
23
23
  import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
24
- import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
25
24
  import { fg } from '@atlaskit/platform-feature-flags';
26
25
  import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
27
26
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
@@ -1034,8 +1033,6 @@ export const DragHandle = ({
1034
1033
  }, jsx(DragHandleVerticalIcon, {
1035
1034
  spacing: "spacious",
1036
1035
  label: "",
1037
- LEGACY_fallbackIcon: DragHandlerIcon,
1038
- LEGACY_size: "medium",
1039
1036
  size: "small"
1040
1037
  })));
1041
1038
  const stickyWithTooltip = () => jsx(Box
@@ -95,6 +95,9 @@ export var blockControlsPlugin = function blockControlsPlugin(_ref) {
95
95
  tr: tr
96
96
  });
97
97
  }
98
+ _stopPreservingSelection({
99
+ tr: tr
100
+ });
98
101
  return tr;
99
102
  }
100
103
 
@@ -26,7 +26,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
26
26
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
27
27
  import { akEditorFullPageNarrowBreakout, akEditorTableToolbarSize, relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/consts';
28
28
  import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
29
- import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
30
29
  import { fg } from '@atlaskit/platform-feature-flags';
31
30
  import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
32
31
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
@@ -1046,8 +1045,6 @@ export var DragHandle = function DragHandle(_ref2) {
1046
1045
  }, jsx(DragHandleVerticalIcon, {
1047
1046
  spacing: "spacious",
1048
1047
  label: "",
1049
- LEGACY_fallbackIcon: DragHandlerIcon,
1050
- LEGACY_size: "medium",
1051
1048
  size: "small"
1052
1049
  })))
1053
1050
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "7.14.1",
3
+ "version": "7.15.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/editor-prosemirror": "^7.2.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.10.0",
48
48
  "@atlaskit/editor-tables": "^2.9.0",
49
- "@atlaskit/icon": "^29.1.0",
49
+ "@atlaskit/icon": "^29.2.0",
50
50
  "@atlaskit/link": "^3.2.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/primitives": "^16.4.0",
56
56
  "@atlaskit/theme": "^21.0.0",
57
57
  "@atlaskit/tmp-editor-statsig": "^15.12.0",
58
- "@atlaskit/tokens": "^8.5.0",
58
+ "@atlaskit/tokens": "^8.6.0",
59
59
  "@atlaskit/tooltip": "^20.11.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@emotion/react": "^11.7.1",
@@ -66,7 +66,7 @@
66
66
  "uuid": "^3.1.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@atlaskit/editor-common": "^110.44.0",
69
+ "@atlaskit/editor-common": "^110.45.0",
70
70
  "react": "^18.2.0",
71
71
  "react-dom": "^18.2.0",
72
72
  "react-intl-next": "npm:react-intl@^5.18.1"