@atlaskit/editor-plugin-block-controls 3.4.0 → 3.5.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,13 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128788](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128788)
8
+ [`83a4d1ba203b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83a4d1ba203b0) -
9
+ [ux] update icons
10
+
3
11
  ## 3.4.0
4
12
 
5
13
  ### Minor Changes
@@ -20,6 +20,7 @@ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-
20
20
  var _state = require("@atlaskit/editor-prosemirror/state");
21
21
  var _utils = require("@atlaskit/editor-prosemirror/utils");
22
22
  var _dragHandler = _interopRequireDefault(require("@atlaskit/icon/glyph/drag-handler"));
23
+ var _dragHandleVertical = _interopRequireDefault(require("@atlaskit/icon/utility/drag-handle-vertical"));
23
24
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
25
  var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
25
26
  var _setCustomNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
@@ -661,9 +662,11 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
661
662
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
662
663
  ,
663
664
  onDragStart: handleIconDragStart
664
- }, (0, _react2.jsx)(_dragHandler.default, {
665
+ }, (0, _react2.jsx)(_dragHandleVertical.default, {
666
+ spacing: "spacious",
665
667
  label: "",
666
- size: "medium"
668
+ LEGACY_fallbackIcon: _dragHandler.default,
669
+ LEGACY_size: "medium"
667
670
  })))
668
671
  );
669
672
  };
@@ -17,6 +17,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
17
17
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
18
18
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
19
19
  import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
20
+ import DragHandleVerticalIcon from '@atlaskit/icon/utility/drag-handle-vertical';
20
21
  import { fg } from '@atlaskit/platform-feature-flags';
21
22
  import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
22
23
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
@@ -646,9 +647,11 @@ export const DragHandle = ({
646
647
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
647
648
  ,
648
649
  onDragStart: handleIconDragStart
649
- }, jsx(DragHandlerIcon, {
650
+ }, jsx(DragHandleVerticalIcon, {
651
+ spacing: "spacious",
650
652
  label: "",
651
- size: "medium"
653
+ LEGACY_fallbackIcon: DragHandlerIcon,
654
+ LEGACY_size: "medium"
652
655
  })));
653
656
  return !dragHandleDisabled && fg('platform_editor_element_drag_and_drop_ed_23873') ? jsx(Tooltip, {
654
657
  content: jsx(TooltipContentWithMultipleShortcuts, {
@@ -22,6 +22,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
22
22
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
23
23
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
24
24
  import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
25
+ import DragHandleVerticalIcon from '@atlaskit/icon/utility/drag-handle-vertical';
25
26
  import { fg } from '@atlaskit/platform-feature-flags';
26
27
  import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
27
28
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
@@ -658,9 +659,11 @@ export var DragHandle = function DragHandle(_ref) {
658
659
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
659
660
  ,
660
661
  onDragStart: handleIconDragStart
661
- }, jsx(DragHandlerIcon, {
662
+ }, jsx(DragHandleVerticalIcon, {
663
+ spacing: "spacious",
662
664
  label: "",
663
- size: "medium"
665
+ LEGACY_fallbackIcon: DragHandlerIcon,
666
+ LEGACY_size: "medium"
664
667
  })))
665
668
  );
666
669
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",