@atlaskit/tooltip 20.4.7 → 20.4.8

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/tooltip
2
2
 
3
+ ## 20.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6d3595e270d09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d3595e270d09) -
8
+ Minor fixes to Tooltip's component prop and DropdownMenu types to be more compatible with React
9
+ 18.3.1
10
+ - Updated dependencies
11
+
3
12
  ## 20.4.7
4
13
 
5
14
  ### Patch Changes
@@ -11,9 +11,9 @@ export interface TooltipPrimitiveProps {
11
11
  children: ReactNode;
12
12
  testId?: string;
13
13
  placement: PositionType;
14
- ref: React.Ref<any>;
15
- onMouseOver?: (e: React.MouseEvent<HTMLElement>) => void;
16
- onMouseOut?: (e: React.MouseEvent<HTMLElement>) => void;
14
+ ref?: React.Ref<HTMLDivElement>;
15
+ onMouseOver?: (e: React.MouseEvent<HTMLDivElement>) => void;
16
+ onMouseOut?: (e: React.MouseEvent<HTMLDivElement>) => void;
17
17
  id?: string;
18
18
  }
19
19
  /**
@@ -34,7 +34,7 @@ export interface TooltipProps {
34
34
  /**
35
35
  * Extend `TooltipPrimitive` to create your own tooltip and pass it as component.
36
36
  */
37
- component?: ComponentType<TooltipPrimitiveProps> | React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLElement>>;
37
+ component?: ComponentType<TooltipPrimitiveProps> | React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLDivElement>>;
38
38
  /**
39
39
  * Time in milliseconds to wait before showing and hiding the tooltip. Defaults to 300.
40
40
  */
@@ -11,9 +11,9 @@ export interface TooltipPrimitiveProps {
11
11
  children: ReactNode;
12
12
  testId?: string;
13
13
  placement: PositionType;
14
- ref: React.Ref<any>;
15
- onMouseOver?: (e: React.MouseEvent<HTMLElement>) => void;
16
- onMouseOut?: (e: React.MouseEvent<HTMLElement>) => void;
14
+ ref?: React.Ref<HTMLDivElement>;
15
+ onMouseOver?: (e: React.MouseEvent<HTMLDivElement>) => void;
16
+ onMouseOut?: (e: React.MouseEvent<HTMLDivElement>) => void;
17
17
  id?: string;
18
18
  }
19
19
  /**
@@ -34,7 +34,7 @@ export interface TooltipProps {
34
34
  /**
35
35
  * Extend `TooltipPrimitive` to create your own tooltip and pass it as component.
36
36
  */
37
- component?: ComponentType<TooltipPrimitiveProps> | React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLElement>>;
37
+ component?: ComponentType<TooltipPrimitiveProps> | React.ForwardRefExoticComponent<React.PropsWithoutRef<TooltipPrimitiveProps> & React.RefAttributes<HTMLDivElement>>;
38
38
  /**
39
39
  * Time in milliseconds to wait before showing and hiding the tooltip. Defaults to 300.
40
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.4.7",
3
+ "version": "20.4.8",
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/"
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/button": "^23.4.0",
57
57
  "@atlaskit/css": "^0.14.0",
58
58
  "@atlaskit/docs": "^11.1.0",
59
- "@atlaskit/icon": "^28.2.0",
59
+ "@atlaskit/icon": "^28.3.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
61
  "@atlaskit/primitives": "^14.15.0",
62
62
  "@atlaskit/section-message": "^8.7.0",