@atlaskit/editor-plugin-table 14.1.0 → 14.1.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,13 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 14.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`99f67e6caf2b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99f67e6caf2b2) -
8
+ Add aria-label to table floating insert buttons to address button-name A11Y violation
9
+ - Updated dependencies
10
+
3
11
  ## 14.1.0
4
12
 
5
13
  ### Minor Changes
@@ -14,6 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _styles = require("@atlaskit/editor-common/styles");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
18
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
18
19
  var _types = require("../../types");
19
20
  var _consts = require("../consts");
@@ -144,7 +145,8 @@ var InsertButton = function InsertButton(_ref3) {
144
145
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
145
146
  ,
146
147
  className: _types.TableCssClassName.CONTROLS_INSERT_BUTTON,
147
- onMouseDown: onMouseDown
148
+ onMouseDown: onMouseDown,
149
+ "aria-label": (0, _expValEquals.expValEquals)('platform_editor_fix_button_name_violation_in_table', 'isEnabled', true) ? formatMessage(tooltipMessageByType(type)) : undefined
148
150
  }, /*#__PURE__*/_react.default.createElement("svg", {
149
151
  className: _types.TableCssClassName.CONTROLS_BUTTON_ICON
150
152
  }, /*#__PURE__*/_react.default.createElement("path", {
@@ -8,6 +8,7 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import { tableMarginTop } from '@atlaskit/editor-common/styles';
9
9
  import { closestElement } from '@atlaskit/editor-common/utils';
10
10
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
11
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
12
  import Tooltip from '@atlaskit/tooltip';
12
13
  import { TableCssClassName as ClassName } from '../../types';
13
14
  import { tableToolbarSize } from '../consts';
@@ -149,7 +150,8 @@ const InsertButton = ({
149
150
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
150
151
  ,
151
152
  className: ClassName.CONTROLS_INSERT_BUTTON,
152
- onMouseDown: onMouseDown
153
+ onMouseDown: onMouseDown,
154
+ "aria-label": expValEquals('platform_editor_fix_button_name_violation_in_table', 'isEnabled', true) ? formatMessage(tooltipMessageByType(type)) : undefined
153
155
  }, /*#__PURE__*/React.createElement("svg", {
154
156
  className: ClassName.CONTROLS_BUTTON_ICON
155
157
  }, /*#__PURE__*/React.createElement("path", {
@@ -9,6 +9,7 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { tableMarginTop } from '@atlaskit/editor-common/styles';
10
10
  import { closestElement } from '@atlaskit/editor-common/utils';
11
11
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
13
  import Tooltip from '@atlaskit/tooltip';
13
14
  import { TableCssClassName as ClassName } from '../../types';
14
15
  import { tableToolbarSize } from '../consts';
@@ -137,7 +138,8 @@ var InsertButton = function InsertButton(_ref3) {
137
138
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
138
139
  ,
139
140
  className: ClassName.CONTROLS_INSERT_BUTTON,
140
- onMouseDown: onMouseDown
141
+ onMouseDown: onMouseDown,
142
+ "aria-label": expValEquals('platform_editor_fix_button_name_violation_in_table', 'isEnabled', true) ? formatMessage(tooltipMessageByType(type)) : undefined
141
143
  }, /*#__PURE__*/React.createElement("svg", {
142
144
  className: ClassName.CONTROLS_BUTTON_ICON
143
145
  }, /*#__PURE__*/React.createElement("path", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/primitives": "^14.14.0",
60
60
  "@atlaskit/react-ufo": "^4.6.0",
61
61
  "@atlaskit/theme": "^21.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
62
+ "@atlaskit/tmp-editor-statsig": "^12.16.0",
63
63
  "@atlaskit/toggle": "^15.1.0",
64
64
  "@atlaskit/tokens": "^6.3.0",
65
65
  "@atlaskit/tooltip": "^20.4.0",