@atlaskit/editor-plugin-block-controls 4.1.1 → 4.1.3

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,22 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 4.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#193381](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193381)
8
+ [`468cb58f0615b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/468cb58f0615b) -
9
+ ENGHEALTH-32254 Add aria label to buttons for accessibility
10
+ - Updated dependencies
11
+
12
+ ## 4.1.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#192710](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/192710)
17
+ [`b3b30f3bc4453`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3b30f3bc4453) -
18
+ Internal changes to how border radius and border width values are applied. No visual change.
19
+
3
20
  ## 4.1.1
4
21
 
5
22
  ### Patch Changes
@@ -27,6 +27,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
27
  var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
28
28
  var _setCustomNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
29
29
  var _primitives = require("@atlaskit/primitives");
30
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
30
31
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
31
32
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
32
33
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -896,7 +897,8 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
896
897
  onDrop: handleOnDrop,
897
898
  disabled: dragHandleDisabled,
898
899
  "data-editor-block-ctrl-drag-handle": true,
899
- "data-testid": "block-ctrl-drag-handle"
900
+ "data-testid": "block-ctrl-drag-handle",
901
+ "aria-label": (0, _expValEquals.expValEquals)('platform_editor_drag_handle_aria_label', 'isEnabled', true) ? formatMessage(_messages.blockControlsMessages.dragToMove) : ''
900
902
  }, (0, _react2.jsx)(_primitives.Box, {
901
903
  xcss: iconWrapperStyles
902
904
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
@@ -48,7 +48,7 @@ var stickyButtonStyles = (0, _primitives.xcss)({
48
48
  width: "var(--ds-space-300, 24px)",
49
49
  border: 'none',
50
50
  backgroundColor: 'color.background.neutral.subtle',
51
- borderRadius: '50%',
51
+ borderRadius: 'border.radius.circle',
52
52
  zIndex: 'card',
53
53
  outline: 'none',
54
54
  ':hover': {
@@ -25,6 +25,7 @@ import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
25
25
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
26
26
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
27
27
  import { Box, xcss } from '@atlaskit/primitives';
28
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
28
29
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
29
30
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
31
  import Tooltip from '@atlaskit/tooltip';
@@ -887,7 +888,8 @@ export const DragHandle = ({
887
888
  onDrop: handleOnDrop,
888
889
  disabled: dragHandleDisabled,
889
890
  "data-editor-block-ctrl-drag-handle": true,
890
- "data-testid": "block-ctrl-drag-handle"
891
+ "data-testid": "block-ctrl-drag-handle",
892
+ "aria-label": expValEquals('platform_editor_drag_handle_aria_label', 'isEnabled', true) ? formatMessage(blockControlsMessages.dragToMove) : ''
891
893
  }, jsx(Box, {
892
894
  xcss: iconWrapperStyles
893
895
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
@@ -39,7 +39,7 @@ const stickyButtonStyles = xcss({
39
39
  width: "var(--ds-space-300, 24px)",
40
40
  border: 'none',
41
41
  backgroundColor: 'color.background.neutral.subtle',
42
- borderRadius: '50%',
42
+ borderRadius: 'border.radius.circle',
43
43
  zIndex: 'card',
44
44
  outline: 'none',
45
45
  ':hover': {
@@ -30,6 +30,7 @@ import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
30
30
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
31
31
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
32
32
  import { Box, xcss } from '@atlaskit/primitives';
33
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
33
34
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
34
35
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
35
36
  import Tooltip from '@atlaskit/tooltip';
@@ -893,7 +894,8 @@ export var DragHandle = function DragHandle(_ref) {
893
894
  onDrop: handleOnDrop,
894
895
  disabled: dragHandleDisabled,
895
896
  "data-editor-block-ctrl-drag-handle": true,
896
- "data-testid": "block-ctrl-drag-handle"
897
+ "data-testid": "block-ctrl-drag-handle",
898
+ "aria-label": expValEquals('platform_editor_drag_handle_aria_label', 'isEnabled', true) ? formatMessage(blockControlsMessages.dragToMove) : ''
897
899
  }, jsx(Box, {
898
900
  xcss: iconWrapperStyles
899
901
  // eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
@@ -43,7 +43,7 @@ var stickyButtonStyles = xcss({
43
43
  width: "var(--ds-space-300, 24px)",
44
44
  border: 'none',
45
45
  backgroundColor: 'color.background.neutral.subtle',
46
- borderRadius: '50%',
46
+ borderRadius: 'border.radius.circle',
47
47
  zIndex: 'card',
48
48
  outline: 'none',
49
49
  ':hover': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
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.0.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.5.0",
48
48
  "@atlaskit/editor-tables": "^2.9.0",
49
- "@atlaskit/icon": "^27.7.0",
49
+ "@atlaskit/icon": "^27.8.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",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
55
55
  "@atlaskit/primitives": "^14.11.0",
56
56
  "@atlaskit/theme": "^19.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^9.17.0",
57
+ "@atlaskit/tmp-editor-statsig": "^9.19.0",
58
58
  "@atlaskit/tokens": "^5.6.0",
59
59
  "@atlaskit/tooltip": "^20.4.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -66,7 +66,7 @@
66
66
  "uuid": "^3.1.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@atlaskit/editor-common": "^107.12.0",
69
+ "@atlaskit/editor-common": "^107.14.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"