@atlaskit/navigation-system 2.15.0 → 2.16.0

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,15 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 2.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d219613fe59b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d219613fe59b7) -
8
+ When a `FlyoutMenuItemContent` is open, clicking outside the content will close the flyout. We
9
+ have improved this functionality to make it more resilient to application code that stops events.
10
+
11
+ This change was previously behind a feature flag, which has now been removed.
12
+
3
13
  ## 2.15.0
4
14
 
5
15
  ### Minor Changes
@@ -42,7 +42,7 @@ var FlyoutMenuItemContent = exports.FlyoutMenuItemContent = /*#__PURE__*/(0, _re
42
42
  // code that stops events. We _really_ want to close the flyout whenever
43
43
  // user user clicks outside the flyout content
44
44
  ,
45
- shouldUseCaptureOnOutsideClick: (0, _platformFeatureFlags.fg)('platform_dst_nav4_flyout_use_capture_outside'),
45
+ shouldUseCaptureOnOutsideClick: true,
46
46
  shouldFitViewport: true,
47
47
  testId: containerTestId,
48
48
  xcss: flyoutMenuItemContentStyles.root,
@@ -33,7 +33,7 @@ export const FlyoutMenuItemContent = /*#__PURE__*/forwardRef(({
33
33
  // code that stops events. We _really_ want to close the flyout whenever
34
34
  // user user clicks outside the flyout content
35
35
  ,
36
- shouldUseCaptureOnOutsideClick: fg('platform_dst_nav4_flyout_use_capture_outside'),
36
+ shouldUseCaptureOnOutsideClick: true,
37
37
  shouldFitViewport: true,
38
38
  testId: containerTestId,
39
39
  xcss: flyoutMenuItemContentStyles.root,
@@ -33,7 +33,7 @@ export var FlyoutMenuItemContent = /*#__PURE__*/forwardRef(function (_ref, forwa
33
33
  // code that stops events. We _really_ want to close the flyout whenever
34
34
  // user user clicks outside the flyout content
35
35
  ,
36
- shouldUseCaptureOnOutsideClick: fg('platform_dst_nav4_flyout_use_capture_outside'),
36
+ shouldUseCaptureOnOutsideClick: true,
37
37
  shouldFitViewport: true,
38
38
  testId: containerTestId,
39
39
  xcss: flyoutMenuItemContentStyles.root,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "author": "Atlassian Pty Ltd",
@@ -165,9 +165,6 @@
165
165
  "platform_dst_nav4_layering_in_main_slot_fixes": {
166
166
  "type": "boolean"
167
167
  },
168
- "platform_dst_nav4_flyout_use_capture_outside": {
169
- "type": "boolean"
170
- },
171
168
  "platform_dst_nav4_actionsonhover_focus_fix": {
172
169
  "type": "boolean"
173
170
  },