@atlaskit/dropdown-menu 11.0.0 → 11.0.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 +7 -0
- package/dist/cjs/dropdown-menu.js +1 -0
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/dropdown-menu.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/dropdown-menu.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/checkbox/dropdown-item-checkbox-group.d.ts +1 -0
- package/dist/types/checkbox/dropdown-item-checkbox.d.ts +1 -0
- package/dist/types/dropdown-menu-item.d.ts +1 -0
- package/dist/types/dropdown-menu.d.ts +1 -0
- package/dist/types/internal/components/menu-wrapper.d.ts +1 -0
- package/dist/types/radio/dropdown-item-radio.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 11.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c2dd770a743`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2dd770a743) - Add new prop which controls is outside click should be bound using capture
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 11.0.0
|
|
4
11
|
|
|
5
12
|
### Major Changes
|
|
@@ -171,6 +171,7 @@ var DropdownMenu = function DropdownMenu(props) {
|
|
|
171
171
|
fallbackPlacements: fallbackPlacements,
|
|
172
172
|
testId: testId && "".concat(testId, "--content"),
|
|
173
173
|
trigger: renderTrigger,
|
|
174
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
174
175
|
content: function content(_ref) {
|
|
175
176
|
var setInitialFocusRef = _ref.setInitialFocusRef;
|
|
176
177
|
return (0, _core.jsx)(_focusManager.default, null, (0, _core.jsx)(_menuWrapper.default, {
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,18 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _dropdownMenu.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "DropdownItemGroup", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _dropdownMenuItemGroup.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
8
|
Object.defineProperty(exports, "DropdownItem", {
|
|
21
9
|
enumerable: true,
|
|
22
10
|
get: function get() {
|
|
@@ -35,6 +23,12 @@ Object.defineProperty(exports, "DropdownItemCheckboxGroup", {
|
|
|
35
23
|
return _dropdownItemCheckboxGroup.default;
|
|
36
24
|
}
|
|
37
25
|
});
|
|
26
|
+
Object.defineProperty(exports, "DropdownItemGroup", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _dropdownMenuItemGroup.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
38
32
|
Object.defineProperty(exports, "DropdownItemRadio", {
|
|
39
33
|
enumerable: true,
|
|
40
34
|
get: function get() {
|
|
@@ -47,6 +41,12 @@ Object.defineProperty(exports, "DropdownItemRadioGroup", {
|
|
|
47
41
|
return _dropdownItemRadioGroup.default;
|
|
48
42
|
}
|
|
49
43
|
});
|
|
44
|
+
Object.defineProperty(exports, "default", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _dropdownMenu.default;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
50
|
|
|
51
51
|
var _dropdownMenu = _interopRequireDefault(require("./dropdown-menu"));
|
|
52
52
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -130,6 +130,7 @@ const DropdownMenu = props => {
|
|
|
130
130
|
fallbackPlacements: fallbackPlacements,
|
|
131
131
|
testId: testId && `${testId}--content`,
|
|
132
132
|
trigger: renderTrigger,
|
|
133
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
133
134
|
content: ({
|
|
134
135
|
setInitialFocusRef
|
|
135
136
|
}) => jsx(FocusManager, null, jsx(MenuWrapper, {
|
package/dist/es2019/version.json
CHANGED
|
@@ -145,6 +145,7 @@ var DropdownMenu = function DropdownMenu(props) {
|
|
|
145
145
|
fallbackPlacements: fallbackPlacements,
|
|
146
146
|
testId: testId && "".concat(testId, "--content"),
|
|
147
147
|
trigger: renderTrigger,
|
|
148
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
148
149
|
content: function content(_ref) {
|
|
149
150
|
var setInitialFocusRef = _ref.setInitialFocusRef;
|
|
150
151
|
return jsx(FocusManager, null, jsx(MenuWrapper, {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
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/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/ds-lib": "^1.1.0",
|
|
29
29
|
"@atlaskit/icon": "^21.9.0",
|
|
30
30
|
"@atlaskit/menu": "^1.0.0",
|
|
31
|
-
"@atlaskit/popup": "^1.
|
|
31
|
+
"@atlaskit/popup": "^1.2.0",
|
|
32
32
|
"@atlaskit/spinner": "^15.0.0",
|
|
33
33
|
"@atlaskit/theme": "^12.0.0",
|
|
34
34
|
"@atlaskit/tokens": "^0.4.0",
|