@atlaskit/editor-plugin-floating-toolbar 4.1.0 → 4.1.2

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
+ ## 4.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#151316](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151316)
8
+ [`a690cef2c18f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a690cef2c18f0) -
9
+ [ux] Uses aria-expanded for floating toolbar dropdowns with where trigger button has an icon.
10
+
11
+ ## 4.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#150643](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150643)
16
+ [`ac4a612b39bbf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac4a612b39bbf) -
17
+ [ux] Sets aria-expanded and aria-haspopup for the dropdown-overflow following a11y best practice
18
+
3
19
  ## 4.1.0
4
20
 
5
21
  ### Minor Changes
@@ -18,6 +18,8 @@ var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
19
19
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
20
20
  var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
21
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
23
  var _Divider = require("./Divider");
22
24
  var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
23
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -171,6 +173,7 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
171
173
  selected: isOpen,
172
174
  disabled: disabled,
173
175
  tooltipContent: tooltip,
176
+ ariaHasPopup: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? true : undefined,
174
177
  onMount: onMount,
175
178
  pulse: pulse,
176
179
  spotlightConfig: spotlightConfig
@@ -13,6 +13,8 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
13
13
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
14
14
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
15
15
  import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
16
+ import { fg } from '@atlaskit/platform-feature-flags';
17
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
18
  import { Divider } from './Divider';
17
19
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
18
20
 
@@ -152,6 +154,7 @@ export default class Dropdown extends Component {
152
154
  selected: isOpen,
153
155
  disabled: disabled,
154
156
  tooltipContent: tooltip,
157
+ ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
155
158
  onMount: onMount,
156
159
  pulse: pulse,
157
160
  spotlightConfig: spotlightConfig
@@ -22,6 +22,8 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
22
22
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
23
23
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
24
24
  import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
25
+ import { fg } from '@atlaskit/platform-feature-flags';
26
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
25
27
  import { Divider } from './Divider';
26
28
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
27
29
 
@@ -166,6 +168,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
166
168
  selected: isOpen,
167
169
  disabled: disabled,
168
170
  tooltipContent: tooltip,
171
+ ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
169
172
  onMount: onMount,
170
173
  pulse: pulse,
171
174
  spotlightConfig: spotlightConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,7 +28,7 @@
28
28
  "@atlaskit/adf-utils": "^19.19.0",
29
29
  "@atlaskit/button": "^23.0.0",
30
30
  "@atlaskit/checkbox": "^17.1.0",
31
- "@atlaskit/editor-common": "^104.0.0",
31
+ "@atlaskit/editor-common": "^104.1.0",
32
32
  "@atlaskit/editor-palette": "^2.1.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
34
34
  "@atlaskit/editor-plugin-context-panel": "^4.1.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/editor-plugin-user-intent": "^0.1.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/emoji": "^69.1.0",
46
- "@atlaskit/icon": "^25.6.0",
46
+ "@atlaskit/icon": "^25.7.0",
47
47
  "@atlaskit/menu": "^5.0.0",
48
48
  "@atlaskit/modal-dialog": "^14.1.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/primitives": "^14.7.0",
51
51
  "@atlaskit/select": "^20.4.0",
52
52
  "@atlaskit/theme": "^18.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^4.16.0",
53
+ "@atlaskit/tmp-editor-statsig": "^4.17.0",
54
54
  "@atlaskit/tokens": "^4.8.0",
55
55
  "@atlaskit/tooltip": "^20.0.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -145,6 +145,9 @@
145
145
  },
146
146
  "platform_editor_controls_patch_analytics_2": {
147
147
  "type": "boolean"
148
+ },
149
+ "platform_editor_controls_patch_8": {
150
+ "type": "boolean"
148
151
  }
149
152
  }
150
153
  }