@atlaskit/tooltip 20.5.0 → 20.5.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,19 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 20.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`39e543109ec09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39e543109ec09) -
14
+ add type info to forwardRef components
15
+ - Updated dependencies
16
+
3
17
  ## 20.5.0
4
18
 
5
19
  ### Minor Changes
@@ -987,7 +1001,6 @@
987
1001
  [`d36905cfe9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d36905cfe9) - Fixed
988
1002
  incorrect function signature for onShow and onHide props, and added improved typing for these
989
1003
  props.
990
-
991
1004
  - **old:** analyticsEvent was the first argument
992
1005
  - **change:** analyticsEvent became the second argument unintentionally (bug introduced 17.0.0)
993
1006
  - **now:** restoring old behavior, analyticsEvent as the first argument
@@ -1037,7 +1050,6 @@
1037
1050
  - [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424)
1038
1051
  [`83586f015e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83586f015e) - Tooltip
1039
1052
  has been refactored to improve performance and be compliant with the lite-mode specification.
1040
-
1041
1053
  - Removed `react-transition-group` in favor of `@atlaskit/motion` to reduce bundle size
1042
1054
  - Removed `react-node-resolver` because of its use of `React.findDOMNode` which has been marked as
1043
1055
  deprecated by the React team (more below...)
@@ -1195,7 +1207,6 @@
1195
1207
 
1196
1208
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1197
1209
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1198
-
1199
1210
  - @atlaskit/docs@8.3.2
1200
1211
  - @atlaskit/visual-regression@0.1.9
1201
1212
  - @atlaskit/analytics-next@6.3.5
@@ -1405,12 +1416,10 @@
1405
1416
  safety. Flow types are no longer provided. No behavioural changes.
1406
1417
 
1407
1418
  **Breaking changes**
1408
-
1409
1419
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
1410
1420
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
1411
1421
 
1412
1422
  **Breaking changes to TypeScript annotations**
1413
-
1414
1423
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
1415
1424
  props as a generic type.
1416
1425
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -1510,7 +1519,6 @@
1510
1519
  ### Major Changes
1511
1520
 
1512
1521
  - [major][67f06f58dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f06f58dd):
1513
-
1514
1522
  - @atlaskit/tooltip has been converted to Typescript. Typescript consumers will now get static
1515
1523
  type safety. Flow types are no longer provided. No API or behavioural changes.
1516
1524
 
@@ -1526,7 +1534,6 @@
1526
1534
  ## 14.0.2
1527
1535
 
1528
1536
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
1529
-
1530
1537
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
1531
1538
  Request #5942 for details
1532
1539
 
@@ -1539,7 +1546,6 @@
1539
1546
  ## 14.0.0
1540
1547
 
1541
1548
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
1542
-
1543
1549
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
1544
1550
  this package, please ensure you use at least this version of react and react-dom.
1545
1551
 
@@ -1595,7 +1601,6 @@
1595
1601
  ## 13.0.0
1596
1602
 
1597
1603
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
1598
-
1599
1604
  - Drop ES5 from all the flow modules
1600
1605
 
1601
1606
  ### Dropping CJS support in all @atlaskit packages
@@ -1640,7 +1645,6 @@
1640
1645
  ## 12.1.17
1641
1646
 
1642
1647
  - [patch][c4edb3ab4d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c4edb3ab4d):
1643
-
1644
1648
  - Move tooltip to render popper in portal to maintain ref that Popper needs to initially position
1645
1649
  the tooltip
1646
1650
 
@@ -1662,7 +1666,6 @@
1662
1666
  ## 12.1.14
1663
1667
 
1664
1668
  - [patch][8f179c4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8f179c4):
1665
-
1666
1669
  - Remove scroll listener in componentWillMount in Tooltip to fix potential memory leak from
1667
1670
  'close' tooltip not properly unmounting when hiding Examples modal via the X button
1668
1671
 
@@ -1718,7 +1721,6 @@
1718
1721
  ## 12.1.7
1719
1722
 
1720
1723
  - [patch][3b03f52](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3b03f52):
1721
-
1722
1724
  - Use @atlaskit/popper internally instead of a custom approach to position management
1723
1725
 
1724
1726
  ## 12.1.6
@@ -40,9 +40,9 @@ var TooltipPrimitive = /*#__PURE__*/(0, _react.forwardRef)(function TooltipPrimi
40
40
  ,
41
41
  className: (0, _runtime.ax)(["_80om73ad", className])
42
42
  // Because the tooltip should not be focusable, there is no reason to have key events.
43
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
43
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
44
44
  onMouseOut: onMouseOut
45
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
45
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
46
46
  onMouseOver: onMouseOver,
47
47
  "data-placement": placement,
48
48
  "data-testid": testId,
@@ -33,9 +33,9 @@ const TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive({
33
33
  ,
34
34
  className: ax(["_80om73ad", className])
35
35
  // Because the tooltip should not be focusable, there is no reason to have key events.
36
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
36
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
37
37
  onMouseOut: onMouseOut
38
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
38
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
39
39
  onMouseOver: onMouseOver,
40
40
  "data-placement": placement,
41
41
  "data-testid": testId,
@@ -32,9 +32,9 @@ var TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive(_ref, r
32
32
  ,
33
33
  className: ax(["_80om73ad", className])
34
34
  // Because the tooltip should not be focusable, there is no reason to have key events.
35
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
35
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
36
36
  onMouseOut: onMouseOut
37
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
37
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
38
38
  onMouseOver: onMouseOver,
39
39
  "data-placement": placement,
40
40
  "data-testid": testId,
@@ -5,5 +5,5 @@ export interface TooltipContainerProps extends TooltipPrimitiveProps {
5
5
  * Used as the default tooltip container component for the exported `Tooltip` component.
6
6
  * Adds some styles to the tooltip primitive.
7
7
  */
8
- declare const TooltipContainer: import("react").ForwardRefExoticComponent<Omit<TooltipContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ declare const TooltipContainer: React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipContainerProps> & React.RefAttributes<HTMLDivElement>>;
9
9
  export default TooltipContainer;
@@ -20,5 +20,5 @@ export interface TooltipPrimitiveProps {
20
20
  /**
21
21
  * The lower level component for rendering a tooltip.
22
22
  */
23
- declare const TooltipPrimitive: import("react").ForwardRefExoticComponent<Omit<TooltipPrimitiveProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
23
+ declare const TooltipPrimitive: React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLDivElement>>;
24
24
  export default TooltipPrimitive;
@@ -5,5 +5,5 @@ export interface TooltipContainerProps extends TooltipPrimitiveProps {
5
5
  * Used as the default tooltip container component for the exported `Tooltip` component.
6
6
  * Adds some styles to the tooltip primitive.
7
7
  */
8
- declare const TooltipContainer: import("react").ForwardRefExoticComponent<Omit<TooltipContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ declare const TooltipContainer: React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipContainerProps> & React.RefAttributes<HTMLDivElement>>;
9
9
  export default TooltipContainer;
@@ -20,5 +20,5 @@ export interface TooltipPrimitiveProps {
20
20
  /**
21
21
  * The lower level component for rendering a tooltip.
22
22
  */
23
- declare const TooltipPrimitive: import("react").ForwardRefExoticComponent<Omit<TooltipPrimitiveProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
23
+ declare const TooltipPrimitive: React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLDivElement>>;
24
24
  export default TooltipPrimitive;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.5.0",
3
+ "version": "20.5.2",
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/"
@@ -34,15 +34,15 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/ds-lib": "^5.1.0",
37
- "@atlaskit/layering": "^3.0.0",
37
+ "@atlaskit/layering": "^3.1.0",
38
38
  "@atlaskit/motion": "^5.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/popper": "^7.1.0",
41
41
  "@atlaskit/portal": "^5.1.0",
42
42
  "@atlaskit/theme": "^21.0.0",
43
- "@atlaskit/tokens": "^6.4.0",
43
+ "@atlaskit/tokens": "^7.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
- "@compiled/react": "^0.18.3",
45
+ "@compiled/react": "^0.18.6",
46
46
  "bind-event-listener": "^3.0.0"
47
47
  },
48
48
  "peerDependencies": {
@@ -53,12 +53,12 @@
53
53
  "@af/accessibility-testing": "workspace:^",
54
54
  "@af/integration-testing": "workspace:^",
55
55
  "@af/visual-regression": "workspace:^",
56
- "@atlaskit/button": "^23.4.0",
57
- "@atlaskit/css": "^0.14.0",
58
- "@atlaskit/docs": "^11.1.0",
59
- "@atlaskit/icon": "^28.3.0",
56
+ "@atlaskit/button": "^23.5.0",
57
+ "@atlaskit/css": "^0.15.0",
58
+ "@atlaskit/docs": "^11.2.0",
59
+ "@atlaskit/icon": "^28.5.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
- "@atlaskit/primitives": "^14.15.0",
61
+ "@atlaskit/primitives": "^15.0.0",
62
62
  "@atlaskit/section-message": "^8.7.0",
63
63
  "@atlassian/ssr-tests": "^0.3.0",
64
64
  "@testing-library/react": "^13.4.0",