@atlaskit/tooltip 20.2.2 → 20.3.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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 20.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#157650](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157650)
14
+ [`3696befec09c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3696befec09c1) -
15
+ Minor refactor to the logic for marking a tooltip layer as "open" to the experimental open layer
16
+ observer. This change was previously behind a feature flag, which has now been cleaned up.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 20.2.2
4
23
 
5
24
  ### 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.1"
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.1"
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.1"
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.1",
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,13 +43,13 @@
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": "^3.0.0",
47
47
  "@atlaskit/motion": "^5.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/popper": "^7.0.0",
50
50
  "@atlaskit/portal": "^5.1.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tokens": "^5.0.0",
52
+ "@atlaskit/tokens": "^5.1.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@compiled/react": "^0.18.3",
55
55
  "bind-event-listener": "^3.0.0"
@@ -101,15 +101,15 @@
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
  },
110
107
  "platform-component-visual-refresh": {
111
108
  "type": "boolean",
112
109
  "referenceOnly": true
110
+ },
111
+ "should-render-to-parent-should-be-true-design-syst": {
112
+ "type": "boolean"
113
113
  }
114
114
  }
115
115
  }