@atlaskit/tooltip 20.2.2 → 20.3.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,18 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 20.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157650](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157650)
8
+ [`3696befec09c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3696befec09c1) -
9
+ Minor refactor to the logic for marking a tooltip layer as "open" to the experimental open layer
10
+ observer. This change was previously behind a feature flag, which has now been cleaned up.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 20.2.2
4
17
 
5
18
  ### Patch Changes
@@ -33,7 +33,7 @@ var tooltipZIndex = _constants.layers.tooltip();
33
33
  var analyticsAttributes = {
34
34
  componentName: 'tooltip',
35
35
  packageName: "@atlaskit/tooltip",
36
- packageVersion: "20.2.2"
36
+ packageVersion: "20.3.0"
37
37
  };
38
38
 
39
39
  // Inverts motion direction
@@ -419,7 +419,7 @@ function Tooltip(_ref) {
419
419
  }, []);
420
420
  (0, _openLayerObserver.useNotifyOpenLayerObserver)({
421
421
  // Layer is only visually open if both the tooltip popup (container) and children are rendered.
422
- isOpen: shouldRenderTooltipPopup && ((0, _platformFeatureFlags.fg)('platform_dst_open_layer_observer_close_layers') ? shouldRenderTooltipChildren : true),
422
+ isOpen: shouldRenderTooltipPopup && shouldRenderTooltipChildren,
423
423
  /**
424
424
  * We don't strictly need to provide an onClose callback at this time, as there is
425
425
  * already code that handles hiding the tooltip when a drag is started (and the only
@@ -20,7 +20,7 @@ const tooltipZIndex = layers.tooltip();
20
20
  const analyticsAttributes = {
21
21
  componentName: 'tooltip',
22
22
  packageName: "@atlaskit/tooltip",
23
- packageVersion: "20.2.2"
23
+ packageVersion: "20.3.0"
24
24
  };
25
25
 
26
26
  // Inverts motion direction
@@ -395,7 +395,7 @@ function Tooltip({
395
395
  }, []);
396
396
  useNotifyOpenLayerObserver({
397
397
  // Layer is only visually open if both the tooltip popup (container) and children are rendered.
398
- isOpen: shouldRenderTooltipPopup && (fg('platform_dst_open_layer_observer_close_layers') ? shouldRenderTooltipChildren : true),
398
+ isOpen: shouldRenderTooltipPopup && shouldRenderTooltipChildren,
399
399
  /**
400
400
  * We don't strictly need to provide an onClose callback at this time, as there is
401
401
  * already code that handles hiding the tooltip when a drag is started (and the only
@@ -24,7 +24,7 @@ var tooltipZIndex = layers.tooltip();
24
24
  var analyticsAttributes = {
25
25
  componentName: 'tooltip',
26
26
  packageName: "@atlaskit/tooltip",
27
- packageVersion: "20.2.2"
27
+ packageVersion: "20.3.0"
28
28
  };
29
29
 
30
30
  // Inverts motion direction
@@ -410,7 +410,7 @@ function Tooltip(_ref) {
410
410
  }, []);
411
411
  useNotifyOpenLayerObserver({
412
412
  // Layer is only visually open if both the tooltip popup (container) and children are rendered.
413
- isOpen: shouldRenderTooltipPopup && (fg('platform_dst_open_layer_observer_close_layers') ? shouldRenderTooltipChildren : true),
413
+ isOpen: shouldRenderTooltipPopup && shouldRenderTooltipChildren,
414
414
  /**
415
415
  * We don't strictly need to provide an onClose callback at this time, as there is
416
416
  * already code that handles hiding the tooltip when a drag is started (and the only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.2.2",
3
+ "version": "20.3.0",
4
4
  "description": "A tooltip is a floating, non-actionable label used to explain a user interface element or feature.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^11.1.0",
45
45
  "@atlaskit/ds-lib": "^4.0.0",
46
- "@atlaskit/layering": "^2.1.0",
46
+ "@atlaskit/layering": "^2.2.0",
47
47
  "@atlaskit/motion": "^5.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/popper": "^7.0.0",
@@ -101,9 +101,6 @@
101
101
  },
102
102
  "homepage": "https://atlassian.design/components/tooltip/",
103
103
  "platform-feature-flags": {
104
- "platform_dst_open_layer_observer_close_layers": {
105
- "type": "boolean"
106
- },
107
104
  "platform-tooltip-focus-visible": {
108
105
  "type": "boolean"
109
106
  },