@atlaskit/tooltip 17.8.0 → 17.8.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 +6 -0
- package/Tooltip/package.json +2 -2
- package/TooltipContainer/package.json +2 -2
- package/TooltipPrimitive/package.json +2 -2
- package/dist/cjs/Tooltip.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/Tooltip.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/Tooltip.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/props-for-extract-react-types.d.ts +1 -1
- package/dist/types/internal/tooltip-manager.d.ts +3 -3
- package/dist/types/types.d.ts +2 -2
- package/package.json +11 -3
- package/types/package.json +2 -2
- package/utilities/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/Tooltip/package.json
CHANGED
package/dist/cjs/Tooltip.js
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/Tooltip.js
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/Tooltip.js
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentType, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { TooltipPrimitiveProps } from '../TooltipPrimitive';
|
|
3
3
|
import { PositionType, PositionTypeBase } from '../types';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
/**
|
|
6
6
|
* The content of the tooltip. It can be either a:
|
|
7
7
|
* 1. `ReactNode`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FakeMouseElement } from '../utilities';
|
|
2
|
-
export
|
|
2
|
+
export type Source = {
|
|
3
3
|
type: 'mouse';
|
|
4
4
|
mouse: FakeMouseElement;
|
|
5
5
|
} | {
|
|
6
6
|
type: 'keyboard';
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Entry = {
|
|
9
9
|
source: Source;
|
|
10
10
|
show: (value: {
|
|
11
11
|
isImmediate: boolean;
|
|
@@ -16,7 +16,7 @@ export declare type Entry = {
|
|
|
16
16
|
delay: number;
|
|
17
17
|
done: () => void;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type API = {
|
|
20
20
|
isActive: () => boolean;
|
|
21
21
|
mousePosition: FakeMouseElement | null;
|
|
22
22
|
requestHide: (value: {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { ComponentType, ReactNode } from 'react';
|
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import { Placement } from '@atlaskit/popper';
|
|
4
4
|
import { TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type PositionTypeBase = Placement;
|
|
6
|
+
export type PositionType = PositionTypeBase | 'mouse';
|
|
7
7
|
export interface TriggerProps {
|
|
8
8
|
onMouseOver: (event: React.MouseEvent<HTMLElement>) => void;
|
|
9
9
|
onMouseOut: (event: React.MouseEvent<HTMLElement>) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tooltip",
|
|
3
|
-
"version": "17.8.
|
|
3
|
+
"version": "17.8.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/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.ts",
|
|
17
25
|
"atlassian": {
|
|
@@ -37,7 +45,7 @@
|
|
|
37
45
|
"@atlaskit/popper": "^5.5.0",
|
|
38
46
|
"@atlaskit/portal": "^4.3.0",
|
|
39
47
|
"@atlaskit/theme": "^12.5.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
41
49
|
"@babel/runtime": "^7.0.0",
|
|
42
50
|
"@emotion/react": "^11.7.1",
|
|
43
51
|
"bind-event-listener": "^2.1.1",
|
|
@@ -63,7 +71,7 @@
|
|
|
63
71
|
"react-dom": "^16.8.0",
|
|
64
72
|
"react-redux": "^5.1.2",
|
|
65
73
|
"storybook-addon-performance": "^0.16.0",
|
|
66
|
-
"typescript": "4.
|
|
74
|
+
"typescript": "~4.9.5",
|
|
67
75
|
"wait-for-expect": "^1.2.0"
|
|
68
76
|
},
|
|
69
77
|
"keywords": [
|
package/types/package.json
CHANGED
package/utilities/package.json
CHANGED