@atlaskit/tooltip 18.3.0 → 18.4.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 18.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#97315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97315)
14
+ [`9116699f734c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9116699f734c) -
15
+ Add support for React 18.
16
+
3
17
  ## 18.3.0
4
18
 
5
19
  ### Minor Changes
@@ -2,8 +2,8 @@ import React, { useLayoutEffect } from 'react';
2
2
 
3
3
  import { findByTestId, fireEvent } from '@testing-library/dom';
4
4
  import {
5
- InteractionTaskArgs,
6
- PublicInteractionTask,
5
+ type InteractionTaskArgs,
6
+ type PublicInteractionTask,
7
7
  } from 'storybook-addon-performance';
8
8
 
9
9
  import Tooltip from '../src';
@@ -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.3.0"
35
+ packageVersion: "18.4.1"
36
36
  };
37
37
 
38
38
  // Inverts motion direction
@@ -18,7 +18,7 @@ const tooltipZIndex = layers.tooltip();
18
18
  const analyticsAttributes = {
19
19
  componentName: 'tooltip',
20
20
  packageName: "@atlaskit/tooltip",
21
- packageVersion: "18.3.0"
21
+ packageVersion: "18.4.1"
22
22
  };
23
23
 
24
24
  // Inverts motion direction
@@ -22,7 +22,7 @@ var tooltipZIndex = layers.tooltip();
22
22
  var analyticsAttributes = {
23
23
  componentName: 'tooltip',
24
24
  packageName: "@atlaskit/tooltip",
25
- packageVersion: "18.3.0"
25
+ packageVersion: "18.4.1"
26
26
  };
27
27
 
28
28
  // Inverts motion direction
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TooltipPrimitiveProps } from './TooltipPrimitive';
2
+ import { type TooltipPrimitiveProps } from './TooltipPrimitive';
3
3
  export interface TooltipContainerProps extends TooltipPrimitiveProps {
4
4
  }
5
5
  declare const TooltipContainer: import("react").ForwardRefExoticComponent<Pick<TooltipContainerProps, "style" | "className" | "children" | "placement" | "testId" | "onMouseOut" | "onMouseOver" | "id" | "truncate"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { PositionType } from './types';
2
+ import { type CSSProperties, type ReactNode } from 'react';
3
+ import { type PositionType } from './types';
4
4
  export interface TooltipPrimitiveProps {
5
5
  truncate?: boolean;
6
6
  style?: CSSProperties;
@@ -1,4 +1,4 @@
1
- import { FakeMouseElement } from '../utilities';
1
+ import { type FakeMouseElement } from '../utilities';
2
2
  export type Source = {
3
3
  type: 'mouse';
4
4
  mouse: FakeMouseElement;
@@ -1,7 +1,7 @@
1
- import { ComponentType, ReactNode } from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { Placement } from '@atlaskit/popper';
4
- import { TooltipPrimitiveProps } from './TooltipPrimitive';
1
+ import { type ComponentType, type ReactNode } from 'react';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ import { type Placement } from '@atlaskit/popper';
4
+ import { type TooltipPrimitiveProps } from './TooltipPrimitive';
5
5
  export type PositionTypeBase = Placement;
6
6
  export type PositionType = PositionTypeBase | 'mouse';
7
7
  export interface TriggerProps {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TooltipPrimitiveProps } from './TooltipPrimitive';
2
+ import { type TooltipPrimitiveProps } from './TooltipPrimitive';
3
3
  export interface TooltipContainerProps extends TooltipPrimitiveProps {
4
4
  }
5
5
  declare const TooltipContainer: import("react").ForwardRefExoticComponent<Pick<TooltipContainerProps, "style" | "className" | "children" | "placement" | "testId" | "onMouseOut" | "onMouseOver" | "id" | "truncate"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { PositionType } from './types';
2
+ import { type CSSProperties, type ReactNode } from 'react';
3
+ import { type PositionType } from './types';
4
4
  export interface TooltipPrimitiveProps {
5
5
  truncate?: boolean;
6
6
  style?: CSSProperties;
@@ -1,4 +1,4 @@
1
- import { FakeMouseElement } from '../utilities';
1
+ import { type FakeMouseElement } from '../utilities';
2
2
  export type Source = {
3
3
  type: 'mouse';
4
4
  mouse: FakeMouseElement;
@@ -1,7 +1,7 @@
1
- import { ComponentType, ReactNode } from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { Placement } from '@atlaskit/popper';
4
- import { TooltipPrimitiveProps } from './TooltipPrimitive';
1
+ import { type ComponentType, type ReactNode } from 'react';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ import { type Placement } from '@atlaskit/popper';
4
+ import { type TooltipPrimitiveProps } from './TooltipPrimitive';
5
5
  export type PositionTypeBase = Placement;
6
6
  export type PositionType = PositionTypeBase | 'mouse';
7
7
  export interface TriggerProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "18.3.0",
3
+ "version": "18.4.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/"
@@ -28,6 +28,7 @@
28
28
  "jira"
29
29
  ],
30
30
  "releaseModel": "continuous",
31
+ "runReact18": true,
31
32
  "website": {
32
33
  "name": "Tooltip",
33
34
  "category": "Components"
@@ -44,23 +45,23 @@
44
45
  "dependencies": {
45
46
  "@atlaskit/analytics-next": "^9.3.0",
46
47
  "@atlaskit/ds-lib": "^2.3.0",
47
- "@atlaskit/motion": "^1.5.0",
48
- "@atlaskit/popper": "^5.5.0",
49
- "@atlaskit/portal": "^4.4.0",
50
- "@atlaskit/theme": "^12.7.0",
51
- "@atlaskit/tokens": "^1.44.0",
48
+ "@atlaskit/motion": "^1.6.0",
49
+ "@atlaskit/popper": "^6.0.0",
50
+ "@atlaskit/portal": "^4.5.0",
51
+ "@atlaskit/theme": "^12.8.0",
52
+ "@atlaskit/tokens": "^1.49.0",
52
53
  "@babel/runtime": "^7.0.0",
53
54
  "@emotion/react": "^11.7.1",
54
55
  "bind-event-listener": "^3.0.0",
55
56
  "react-uid": "^2.2.0"
56
57
  },
57
58
  "peerDependencies": {
58
- "react": "^16.8.0",
59
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
59
60
  "react-dom": "^16.8.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@af/accessibility-testing": "*",
63
- "@atlaskit/button": "^17.14.0",
64
+ "@atlaskit/button": "^17.16.0",
64
65
  "@atlaskit/ssr": "*",
65
66
  "@atlaskit/visual-regression": "*",
66
67
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",