@atlaskit/tooltip 18.7.0 → 18.7.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 18.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
8
+ [`cd16d91b93dff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd16d91b93dff) -
9
+ We are testing an internal change to use an ID generator compatible with both React 16 and
10
+ React 18. If these changes are successful, it will be rolled out in a later release.
11
+
12
+ ## 18.7.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 18.7.0
4
19
 
5
20
  ### Minor 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.7.0"
35
+ packageVersion: "18.7.2"
36
36
  };
37
37
 
38
38
  // Inverts motion direction
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = useUniqueId;
7
- var _reactUid = require("react-uid");
7
+ var _reactUid = require("@atlaskit/ds-lib/react-uid");
8
+ /**
9
+ * Generates unique ID.
10
+ */
8
11
  function useUniqueId(prefix, shouldRenderId) {
9
- var seed = (0, _reactUid.useUIDSeed)();
12
+ var seed = (0, _reactUid.useIdSeed)();
10
13
  return shouldRenderId ? "".concat(seed(prefix)) : undefined;
11
14
  }
@@ -18,7 +18,7 @@ const tooltipZIndex = layers.tooltip();
18
18
  const analyticsAttributes = {
19
19
  componentName: 'tooltip',
20
20
  packageName: "@atlaskit/tooltip",
21
- packageVersion: "18.7.0"
21
+ packageVersion: "18.7.2"
22
22
  };
23
23
 
24
24
  // Inverts motion direction
@@ -1,5 +1,9 @@
1
- import { useUIDSeed } from 'react-uid';
1
+ import { useIdSeed } from '@atlaskit/ds-lib/react-uid';
2
+
3
+ /**
4
+ * Generates unique ID.
5
+ */
2
6
  export default function useUniqueId(prefix, shouldRenderId) {
3
- const seed = useUIDSeed();
7
+ const seed = useIdSeed();
4
8
  return shouldRenderId ? `${seed(prefix)}` : undefined;
5
9
  }
@@ -22,7 +22,7 @@ var tooltipZIndex = layers.tooltip();
22
22
  var analyticsAttributes = {
23
23
  componentName: 'tooltip',
24
24
  packageName: "@atlaskit/tooltip",
25
- packageVersion: "18.7.0"
25
+ packageVersion: "18.7.2"
26
26
  };
27
27
 
28
28
  // Inverts motion direction
@@ -1,5 +1,9 @@
1
- import { useUIDSeed } from 'react-uid';
1
+ import { useIdSeed } from '@atlaskit/ds-lib/react-uid';
2
+
3
+ /**
4
+ * Generates unique ID.
5
+ */
2
6
  export default function useUniqueId(prefix, shouldRenderId) {
3
- var seed = useUIDSeed();
7
+ var seed = useIdSeed();
4
8
  return shouldRenderId ? "".concat(seed(prefix)) : undefined;
5
9
  }
@@ -1 +1,4 @@
1
+ /**
2
+ * Generates unique ID.
3
+ */
1
4
  export default function useUniqueId(prefix: string, shouldRenderId: boolean): string | undefined;
@@ -1 +1,4 @@
1
+ /**
2
+ * Generates unique ID.
3
+ */
1
4
  export default function useUniqueId(prefix: string, shouldRenderId: boolean): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "18.7.0",
3
+ "version": "18.7.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/"
@@ -44,16 +44,15 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/analytics-next": "^10.1.0",
47
- "@atlaskit/ds-lib": "^2.4.0",
47
+ "@atlaskit/ds-lib": "^2.5.0",
48
48
  "@atlaskit/motion": "^1.9.0",
49
49
  "@atlaskit/popper": "^6.2.0",
50
- "@atlaskit/portal": "^4.8.0",
51
- "@atlaskit/theme": "^12.12.0",
52
- "@atlaskit/tokens": "^1.58.0",
50
+ "@atlaskit/portal": "^4.9.0",
51
+ "@atlaskit/theme": "^13.0.0",
52
+ "@atlaskit/tokens": "^1.59.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
55
- "bind-event-listener": "^3.0.0",
56
- "react-uid": "^2.2.0"
55
+ "bind-event-listener": "^3.0.0"
57
56
  },
58
57
  "peerDependencies": {
59
58
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -61,7 +60,7 @@
61
60
  },
62
61
  "devDependencies": {
63
62
  "@af/accessibility-testing": "*",
64
- "@atlaskit/button": "^19.2.0",
63
+ "@atlaskit/button": "^20.1.0",
65
64
  "@atlaskit/ssr": "*",
66
65
  "@atlaskit/visual-regression": "*",
67
66
  "@emotion/styled": "^11.0.0",