@atlaskit/tooltip 18.5.1 → 18.6.0

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,22 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 18.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8b8090800a35d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b8090800a35d) -
8
+ Bump peer dependency for react-dom to include version 17 and 18.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 18.5.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 18.5.1
4
21
 
5
22
  ### Patch Changes
@@ -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.1"
35
+ packageVersion: "18.6.0"
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
- */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
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, ")"),
@@ -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.1"
21
+ packageVersion: "18.6.0"
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}`,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { forwardRef } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { forwardRef } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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.1"
25
+ packageVersion: "18.6.0"
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),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { forwardRef } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type CSSProperties, type ReactNode } from 'react';
6
6
  import { type PositionType } from './types';
7
7
  export interface TooltipPrimitiveProps {
@@ -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
- /** Analytics context metadata. */
99
+ /**
100
+ * Analytics context metadata.
101
+ */
99
102
  analyticsContext?: Record<string, any>;
100
103
  /**
101
104
  * Use this to define the strategy of popper.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type CSSProperties, type ReactNode } from 'react';
6
6
  import { type PositionType } from './types';
7
7
  export interface TooltipPrimitiveProps {
@@ -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
- /** Analytics context metadata. */
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.1",
3
+ "version": "18.6.0",
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": "^9.3.0",
46
+ "@atlaskit/analytics-next": "^10.0.0",
47
47
  "@atlaskit/ds-lib": "^2.3.0",
48
- "@atlaskit/motion": "^1.7.0",
48
+ "@atlaskit/motion": "^1.8.0",
49
49
  "@atlaskit/popper": "^6.1.0",
50
- "@atlaskit/portal": "^4.6.0",
50
+ "@atlaskit/portal": "^4.7.0",
51
51
  "@atlaskit/theme": "^12.11.0",
52
- "@atlaskit/tokens": "^1.53.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",
@@ -57,15 +57,15 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
60
- "react-dom": "^16.8.0"
60
+ "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@af/accessibility-testing": "*",
64
- "@atlaskit/button": "^18.0.0",
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": "^8.17.1",
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",