@atlaskit/dropdown-menu 12.10.1 → 12.10.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,14 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 12.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#99952](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99952)
8
+ [`1e7e09d75d5c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1e7e09d75d5c) -
9
+ Support to close popup corrrectly when clicking iframe using layering under feature flag
10
+ - Updated dependencies
11
+
3
12
  ## 12.10.1
4
13
 
5
14
  ### Patch Changes
@@ -145,7 +145,8 @@ var DropdownMenu = function DropdownMenu(_ref) {
145
145
  });
146
146
  }, [itemRef, onOpenChange, isLocalOpen, setLocalIsOpen]);
147
147
  var handleOnClose = (0, _react.useCallback)(function (event) {
148
- if (event.key !== 'Escape' && event.key !== 'Tab' && event.target.closest("[id^=".concat(_useGeneratedId.PREFIX, "] [aria-haspopup]"))) {
148
+ var _event$target, _event$target$closest;
149
+ if (event.key !== 'Escape' && event.key !== 'Tab' && (_event$target = event.target) !== null && _event$target !== void 0 && (_event$target$closest = _event$target.closest) !== null && _event$target$closest !== void 0 && _event$target$closest.call(_event$target, "[id^=".concat(_useGeneratedId.PREFIX, "] [aria-haspopup]"))) {
149
150
  // Check if it is within dropdown and it is a trigger button
150
151
  // if it is a nested dropdown, clicking trigger won't close the dropdown
151
152
  // Dropdown can be closed by pressing Escape, Tab or Shift + Tab
@@ -114,7 +114,8 @@ const DropdownMenu = ({
114
114
  });
115
115
  }, [itemRef, onOpenChange, isLocalOpen, setLocalIsOpen]);
116
116
  const handleOnClose = useCallback(event => {
117
- if (event.key !== 'Escape' && event.key !== 'Tab' && event.target.closest(`[id^=${PREFIX}] [aria-haspopup]`)) {
117
+ var _event$target, _event$target$closest;
118
+ if (event.key !== 'Escape' && event.key !== 'Tab' && (_event$target = event.target) !== null && _event$target !== void 0 && (_event$target$closest = _event$target.closest) !== null && _event$target$closest !== void 0 && _event$target$closest.call(_event$target, `[id^=${PREFIX}] [aria-haspopup]`)) {
118
119
  // Check if it is within dropdown and it is a trigger button
119
120
  // if it is a nested dropdown, clicking trigger won't close the dropdown
120
121
  // Dropdown can be closed by pressing Escape, Tab or Shift + Tab
@@ -135,7 +135,8 @@ var DropdownMenu = function DropdownMenu(_ref) {
135
135
  });
136
136
  }, [itemRef, onOpenChange, isLocalOpen, setLocalIsOpen]);
137
137
  var handleOnClose = useCallback(function (event) {
138
- if (event.key !== 'Escape' && event.key !== 'Tab' && event.target.closest("[id^=".concat(PREFIX, "] [aria-haspopup]"))) {
138
+ var _event$target, _event$target$closest;
139
+ if (event.key !== 'Escape' && event.key !== 'Tab' && (_event$target = event.target) !== null && _event$target !== void 0 && (_event$target$closest = _event$target.closest) !== null && _event$target$closest !== void 0 && _event$target$closest.call(_event$target, "[id^=".concat(PREFIX, "] [aria-haspopup]"))) {
139
140
  // Check if it is within dropdown and it is a trigger button
140
141
  // if it is a nested dropdown, clicking trigger won't close the dropdown
141
142
  // Dropdown can be closed by pressing Escape, Tab or Shift + Tab
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "12.10.1",
3
+ "version": "12.10.2",
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/"
@@ -30,14 +30,14 @@
30
30
  "@atlaskit/button": "^17.14.0",
31
31
  "@atlaskit/codemod-utils": "^4.2.0",
32
32
  "@atlaskit/ds-lib": "^2.3.0",
33
- "@atlaskit/icon": "^22.1.0",
33
+ "@atlaskit/icon": "^22.2.0",
34
34
  "@atlaskit/layering": "^0.3.0",
35
35
  "@atlaskit/menu": "^2.2.0",
36
36
  "@atlaskit/popup": "^1.17.0",
37
- "@atlaskit/primitives": "^6.0.0",
37
+ "@atlaskit/primitives": "^6.1.0",
38
38
  "@atlaskit/spinner": "^16.1.0",
39
- "@atlaskit/theme": "^12.7.0",
40
- "@atlaskit/tokens": "^1.45.0",
39
+ "@atlaskit/theme": "^12.8.0",
40
+ "@atlaskit/tokens": "^1.48.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1",
43
43
  "bind-event-listener": "^3.0.0"
@@ -51,7 +51,7 @@
51
51
  "@af/integration-testing": "*",
52
52
  "@af/visual-regression": "*",
53
53
  "@atlaskit/modal-dialog": "^12.13.0",
54
- "@atlaskit/toggle": "^13.0.0",
54
+ "@atlaskit/toggle": "^13.1.0",
55
55
  "@atlaskit/visual-regression": "*",
56
56
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
57
57
  "@atlassian/feature-flags-test-utils": "*",