@atlaskit/editor-plugin-floating-toolbar 5.1.4 → 5.1.6

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,21 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 5.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#195965](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195965)
8
+ [`7fda5827b37c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7fda5827b37c1) -
9
+ ENGHEALTH-32254 Add aria-label to dropdownButtonItem so that ariaLabel from ai button will be
10
+ passed in
11
+ - Updated dependencies
12
+
13
+ ## 5.1.5
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 5.1.4
4
20
 
5
21
  ### Patch Changes
@@ -27,6 +27,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
27
27
  var _editorPalette = require("@atlaskit/editor-palette");
28
28
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
29
29
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
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 _forceFocus = require("../pm-plugins/force-focus");
@@ -172,6 +173,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
172
173
  ariaHasPopup: item.ariaHasPopup,
173
174
  tabIndex: item.tabIndex,
174
175
  isRadioButton: item.isRadioButton,
176
+ ariaLabel: (0, _expValEquals.expValEquals)('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
175
177
  pulse: item.pulse,
176
178
  spotlightConfig: item.spotlightConfig,
177
179
  interactionName: item.interactionName
@@ -20,6 +20,7 @@ import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/
20
20
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
21
21
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
22
22
  import { fg } from '@atlaskit/platform-feature-flags';
23
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
24
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
24
25
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
25
26
  import { checkShouldForceFocusAndApply, forceFocusSelector } from '../pm-plugins/force-focus';
@@ -154,6 +155,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
154
155
  ariaHasPopup: item.ariaHasPopup,
155
156
  tabIndex: item.tabIndex,
156
157
  isRadioButton: item.isRadioButton,
158
+ ariaLabel: expValEquals('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
157
159
  pulse: item.pulse,
158
160
  spotlightConfig: item.spotlightConfig,
159
161
  interactionName: item.interactionName
@@ -27,6 +27,7 @@ import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/
27
27
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
28
28
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
29
29
  import { fg } from '@atlaskit/platform-feature-flags';
30
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
30
31
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
31
32
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
32
33
  import { checkShouldForceFocusAndApply, forceFocusSelector } from '../pm-plugins/force-focus';
@@ -166,6 +167,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
166
167
  ariaHasPopup: item.ariaHasPopup,
167
168
  tabIndex: item.tabIndex,
168
169
  isRadioButton: item.isRadioButton,
170
+ ariaLabel: expValEquals('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
169
171
  pulse: item.pulse,
170
172
  spotlightConfig: item.spotlightConfig,
171
173
  interactionName: item.interactionName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,20 +36,20 @@
36
36
  "@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-emoji": "^4.2.0",
38
38
  "@atlaskit/editor-plugin-extension": "^6.1.0",
39
- "@atlaskit/editor-plugin-interaction": "^4.0.0",
39
+ "@atlaskit/editor-plugin-interaction": "^5.0.0",
40
40
  "@atlaskit/editor-plugin-table": "^12.1.0",
41
41
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/emoji": "^69.3.0",
44
- "@atlaskit/icon": "^27.8.0",
44
+ "@atlaskit/icon": "^27.9.0",
45
45
  "@atlaskit/menu": "^8.1.0",
46
46
  "@atlaskit/modal-dialog": "^14.3.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.11.0",
49
49
  "@atlaskit/select": "^21.2.0",
50
50
  "@atlaskit/theme": "^19.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^9.21.0",
52
- "@atlaskit/tokens": "^5.6.0",
51
+ "@atlaskit/tmp-editor-statsig": "^9.23.0",
52
+ "@atlaskit/tokens": "^6.0.0",
53
53
  "@atlaskit/tooltip": "^20.4.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",