@atlaskit/tooltip 18.5.0 → 18.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 +15 -0
- package/__perf__/default.tsx +1 -1
- package/dist/cjs/Tooltip.js +2 -2
- package/dist/cjs/TooltipContainer.js +1 -1
- package/dist/cjs/TooltipPrimitive.js +2 -1
- package/dist/es2019/Tooltip.js +3 -2
- package/dist/es2019/TooltipContainer.js +1 -1
- package/dist/es2019/TooltipPrimitive.js +1 -1
- package/dist/esm/Tooltip.js +2 -2
- package/dist/esm/TooltipContainer.js +1 -1
- package/dist/esm/TooltipPrimitive.js +1 -1
- package/dist/types/TooltipPrimitive.d.ts +1 -1
- package/dist/types/types.d.ts +5 -2
- package/dist/types-ts4.5/TooltipPrimitive.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +5 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/tooltip
|
|
2
2
|
|
|
3
|
+
## 18.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 18.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#114683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114683)
|
|
14
|
+
[`ff0815316ab38`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff0815316ab38) -
|
|
15
|
+
Removes usage of custom theme button in places where its API is not being used and the default
|
|
16
|
+
button is able to be used instead. This should give a slight performance (runtime) improvement.
|
|
17
|
+
|
|
3
18
|
## 18.5.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/__perf__/default.tsx
CHANGED
package/dist/cjs/Tooltip.js
CHANGED
|
@@ -32,7 +32,7 @@ var tooltipZIndex = _constants.layers.tooltip();
|
|
|
32
32
|
var analyticsAttributes = {
|
|
33
33
|
componentName: 'tooltip',
|
|
34
34
|
packageName: "@atlaskit/tooltip",
|
|
35
|
-
packageVersion: "18.5.
|
|
35
|
+
packageVersion: "18.5.2"
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// Inverts motion direction
|
|
@@ -460,7 +460,7 @@ function Tooltip(_ref) {
|
|
|
460
460
|
/**
|
|
461
461
|
* "Tooltip" classname is a hook used by tests to manipulate
|
|
462
462
|
* and hide tooltips, including in VR snapshots
|
|
463
|
-
|
|
463
|
+
*/
|
|
464
464
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
465
465
|
,
|
|
466
466
|
className: "Tooltip ".concat(className),
|
|
@@ -11,8 +11,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
var _TooltipPrimitive = _interopRequireDefault(require("./TooltipPrimitive"));
|
|
12
12
|
/**
|
|
13
13
|
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
14
15
|
*/
|
|
15
|
-
/** @jsx jsx */
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
|
|
@@ -12,7 +12,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
|
-
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
var VAR_PRIMITIVE_ZINDEX = 'tooltipPrimitiveZindex';
|
|
17
18
|
var primitiveStyles = (0, _react2.css)({
|
|
18
19
|
zindex: "var(".concat(VAR_PRIMITIVE_ZINDEX, ")"),
|
package/dist/es2019/Tooltip.js
CHANGED
|
@@ -18,7 +18,7 @@ const tooltipZIndex = layers.tooltip();
|
|
|
18
18
|
const analyticsAttributes = {
|
|
19
19
|
componentName: 'tooltip',
|
|
20
20
|
packageName: "@atlaskit/tooltip",
|
|
21
|
-
packageVersion: "18.5.
|
|
21
|
+
packageVersion: "18.5.2"
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// Inverts motion direction
|
|
@@ -42,6 +42,7 @@ function Tooltip({
|
|
|
42
42
|
mousePosition = 'bottom',
|
|
43
43
|
content,
|
|
44
44
|
truncate = false,
|
|
45
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
45
46
|
component: Container = TooltipContainer,
|
|
46
47
|
tag: TargetContainer = 'div',
|
|
47
48
|
testId,
|
|
@@ -437,7 +438,7 @@ function Tooltip({
|
|
|
437
438
|
/**
|
|
438
439
|
* "Tooltip" classname is a hook used by tests to manipulate
|
|
439
440
|
* and hide tooltips, including in VR snapshots
|
|
440
|
-
|
|
441
|
+
*/
|
|
441
442
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
442
443
|
,
|
|
443
444
|
className: `Tooltip ${className}`,
|
package/dist/esm/Tooltip.js
CHANGED
|
@@ -22,7 +22,7 @@ var tooltipZIndex = layers.tooltip();
|
|
|
22
22
|
var analyticsAttributes = {
|
|
23
23
|
componentName: 'tooltip',
|
|
24
24
|
packageName: "@atlaskit/tooltip",
|
|
25
|
-
packageVersion: "18.5.
|
|
25
|
+
packageVersion: "18.5.2"
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// Inverts motion direction
|
|
@@ -450,7 +450,7 @@ function Tooltip(_ref) {
|
|
|
450
450
|
/**
|
|
451
451
|
* "Tooltip" classname is a hook used by tests to manipulate
|
|
452
452
|
* and hide tooltips, including in VR snapshots
|
|
453
|
-
|
|
453
|
+
*/
|
|
454
454
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
455
455
|
,
|
|
456
456
|
className: "Tooltip ".concat(className),
|
|
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
package/dist/types/types.d.ts
CHANGED
|
@@ -93,9 +93,12 @@ export interface TooltipProps {
|
|
|
93
93
|
/**
|
|
94
94
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
95
95
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
-
* serving as a hook for automated tests.
|
|
96
|
+
* serving as a hook for automated tests.
|
|
97
|
+
*/
|
|
97
98
|
testId?: string;
|
|
98
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Analytics context metadata.
|
|
101
|
+
*/
|
|
99
102
|
analyticsContext?: Record<string, any>;
|
|
100
103
|
/**
|
|
101
104
|
* Use this to define the strategy of popper.
|
|
@@ -93,9 +93,12 @@ export interface TooltipProps {
|
|
|
93
93
|
/**
|
|
94
94
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
95
95
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
-
* serving as a hook for automated tests.
|
|
96
|
+
* serving as a hook for automated tests.
|
|
97
|
+
*/
|
|
97
98
|
testId?: string;
|
|
98
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Analytics context metadata.
|
|
101
|
+
*/
|
|
99
102
|
analyticsContext?: Record<string, any>;
|
|
100
103
|
/**
|
|
101
104
|
* Use this to define the strategy of popper.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tooltip",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.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/"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"./utilities": "./src/utilities.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@atlaskit/analytics-next": "^
|
|
46
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
48
|
-
"@atlaskit/motion": "^1.
|
|
49
|
-
"@atlaskit/popper": "^6.
|
|
50
|
-
"@atlaskit/portal": "^4.
|
|
51
|
-
"@atlaskit/theme": "^12.
|
|
52
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/motion": "^1.7.0",
|
|
49
|
+
"@atlaskit/popper": "^6.1.0",
|
|
50
|
+
"@atlaskit/portal": "^4.6.0",
|
|
51
|
+
"@atlaskit/theme": "^12.11.0",
|
|
52
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1",
|
|
55
55
|
"bind-event-listener": "^3.0.0",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@af/accessibility-testing": "*",
|
|
64
|
-
"@atlaskit/button": "^
|
|
64
|
+
"@atlaskit/button": "^19.1.0",
|
|
65
65
|
"@atlaskit/ssr": "*",
|
|
66
66
|
"@atlaskit/visual-regression": "*",
|
|
67
67
|
"@emotion/styled": "^11.0.0",
|
|
68
|
-
"@testing-library/dom": "^
|
|
68
|
+
"@testing-library/dom": "^10.1.0",
|
|
69
69
|
"@testing-library/react": "^12.1.5",
|
|
70
70
|
"@types/react-redux": "^5.0.0",
|
|
71
71
|
"jest-in-case": "^1.0.2",
|