@atlaskit/dropdown-menu 11.9.1 → 11.9.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,17 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 11.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f42d723da8c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f42d723da8c) - always render role="menuitemcheckbox"
8
+
9
+ ## 11.9.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
14
+
3
15
  ## 11.9.1
4
16
 
5
17
  ### Patch Changes
@@ -16,7 +16,6 @@ var _buttonItem = _interopRequireDefault(require("@atlaskit/menu/button-item"));
16
16
  var _useCheckboxState3 = _interopRequireDefault(require("../internal/hooks/use-checkbox-state"));
17
17
  var _useRegisterItemWithFocusManager = _interopRequireDefault(require("../internal/hooks/use-register-item-with-focus-manager"));
18
18
  var _getIconColors = _interopRequireDefault(require("../internal/utils/get-icon-colors"));
19
- var _isVoiceOverSupported = _interopRequireDefault(require("../internal/utils/is-voice-over-supported"));
20
19
  var _excluded = ["id", "isSelected", "defaultSelected", "onClick", "shouldTitleWrap", "shouldDescriptionWrap"];
21
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
21
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -69,7 +68,7 @@ var DropdownItemCheckbox = function DropdownItemCheckbox(props) {
69
68
  return /*#__PURE__*/_react.default.createElement(_buttonItem.default, (0, _extends2.default)({
70
69
  id: id,
71
70
  onClick: onClickHandler,
72
- role: (0, _isVoiceOverSupported.default)() ? 'checkbox' : 'menuitemcheckbox',
71
+ role: "menuitemcheckbox",
73
72
  "aria-checked": selected,
74
73
  shouldTitleWrap: shouldTitleWrap,
75
74
  shouldDescriptionWrap: shouldDescriptionWrap,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.9.1",
3
+ "version": "11.9.3",
4
4
  "sideEffects": false
5
5
  }
@@ -6,7 +6,6 @@ import ButtonItem from '@atlaskit/menu/button-item';
6
6
  import useCheckboxState from '../internal/hooks/use-checkbox-state';
7
7
  import useRegisterItemWithFocusManager from '../internal/hooks/use-register-item-with-focus-manager';
8
8
  import getIconColors from '../internal/utils/get-icon-colors';
9
- import isVoiceOverSupported from '../internal/utils/is-voice-over-supported';
10
9
  /**
11
10
  * __Dropdown item checkbox__
12
11
  *
@@ -47,7 +46,7 @@ const DropdownItemCheckbox = props => {
47
46
  return /*#__PURE__*/React.createElement(ButtonItem, _extends({
48
47
  id: id,
49
48
  onClick: onClickHandler,
50
- role: isVoiceOverSupported() ? 'checkbox' : 'menuitemcheckbox',
49
+ role: "menuitemcheckbox",
51
50
  "aria-checked": selected,
52
51
  shouldTitleWrap: shouldTitleWrap,
53
52
  shouldDescriptionWrap: shouldDescriptionWrap,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.9.1",
3
+ "version": "11.9.3",
4
4
  "sideEffects": false
5
5
  }
@@ -9,7 +9,6 @@ import ButtonItem from '@atlaskit/menu/button-item';
9
9
  import useCheckboxState from '../internal/hooks/use-checkbox-state';
10
10
  import useRegisterItemWithFocusManager from '../internal/hooks/use-register-item-with-focus-manager';
11
11
  import getIconColors from '../internal/utils/get-icon-colors';
12
- import isVoiceOverSupported from '../internal/utils/is-voice-over-supported';
13
12
  /**
14
13
  * __Dropdown item checkbox__
15
14
  *
@@ -59,7 +58,7 @@ var DropdownItemCheckbox = function DropdownItemCheckbox(props) {
59
58
  return /*#__PURE__*/React.createElement(ButtonItem, _extends({
60
59
  id: id,
61
60
  onClick: onClickHandler,
62
- role: isVoiceOverSupported() ? 'checkbox' : 'menuitemcheckbox',
61
+ role: "menuitemcheckbox",
63
62
  "aria-checked": selected,
64
63
  shouldTitleWrap: shouldTitleWrap,
65
64
  shouldDescriptionWrap: shouldDescriptionWrap,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.9.1",
3
+ "version": "11.9.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.9.1",
3
+ "version": "11.9.3",
4
4
  "description": "A dropdown menu displays a list of actions or options to a user.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/popup": "^1.6.0",
40
40
  "@atlaskit/spinner": "^15.5.0",
41
41
  "@atlaskit/theme": "^12.5.0",
42
- "@atlaskit/tokens": "^1.4.0",
42
+ "@atlaskit/tokens": "^1.5.0",
43
43
  "@atlaskit/visually-hidden": "^1.2.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {
53
53
  "@atlaskit/avatar": "^21.3.0",
54
54
  "@atlaskit/docs": "*",
55
- "@atlaskit/ds-explorations": "^2.1.0",
55
+ "@atlaskit/ds-explorations": "^2.2.0",
56
56
  "@atlaskit/heading": "^1.3.0",
57
57
  "@atlaskit/lozenge": "11.4.2",
58
58
  "@atlaskit/modal-dialog": "^12.5.0",
@@ -67,6 +67,7 @@
67
67
  "@testing-library/dom": "^8.17.1",
68
68
  "@testing-library/react": "^12.1.5",
69
69
  "@testing-library/react-hooks": "^8.0.1",
70
+ "jest-axe": "^4.0.0",
70
71
  "jscodeshift": "^0.13.0",
71
72
  "raf-stub": "^2.0.1",
72
73
  "react-dom": "^16.8.0",