@atlaskit/tooltip 20.5.1 → 20.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
+ ## 20.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6915142a30a40`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6915142a30a40) -
8
+ The tooltip keyboard shortcut component has been updated to protect against global styles in apps,
9
+ by unsetting styles. Minor tweaks to the keyboard shortcut styling have also been made - font
10
+ size, height, and center alignment.
11
+
12
+ The `shortcut` prop is still behind the feature flag `platform-dst-tooltip-shortcuts`.
13
+
14
+ ## 20.5.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 20.5.1
4
21
 
5
22
  ### Patch Changes
@@ -995,7 +1012,6 @@
995
1012
  [`d36905cfe9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d36905cfe9) - Fixed
996
1013
  incorrect function signature for onShow and onHide props, and added improved typing for these
997
1014
  props.
998
-
999
1015
  - **old:** analyticsEvent was the first argument
1000
1016
  - **change:** analyticsEvent became the second argument unintentionally (bug introduced 17.0.0)
1001
1017
  - **now:** restoring old behavior, analyticsEvent as the first argument
@@ -1045,7 +1061,6 @@
1045
1061
  - [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424)
1046
1062
  [`83586f015e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83586f015e) - Tooltip
1047
1063
  has been refactored to improve performance and be compliant with the lite-mode specification.
1048
-
1049
1064
  - Removed `react-transition-group` in favor of `@atlaskit/motion` to reduce bundle size
1050
1065
  - Removed `react-node-resolver` because of its use of `React.findDOMNode` which has been marked as
1051
1066
  deprecated by the React team (more below...)
@@ -1203,7 +1218,6 @@
1203
1218
 
1204
1219
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1205
1220
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1206
-
1207
1221
  - @atlaskit/docs@8.3.2
1208
1222
  - @atlaskit/visual-regression@0.1.9
1209
1223
  - @atlaskit/analytics-next@6.3.5
@@ -1413,12 +1427,10 @@
1413
1427
  safety. Flow types are no longer provided. No behavioural changes.
1414
1428
 
1415
1429
  **Breaking changes**
1416
-
1417
1430
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
1418
1431
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
1419
1432
 
1420
1433
  **Breaking changes to TypeScript annotations**
1421
-
1422
1434
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
1423
1435
  props as a generic type.
1424
1436
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -1518,7 +1530,6 @@
1518
1530
  ### Major Changes
1519
1531
 
1520
1532
  - [major][67f06f58dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f06f58dd):
1521
-
1522
1533
  - @atlaskit/tooltip has been converted to Typescript. Typescript consumers will now get static
1523
1534
  type safety. Flow types are no longer provided. No API or behavioural changes.
1524
1535
 
@@ -1534,7 +1545,6 @@
1534
1545
  ## 14.0.2
1535
1546
 
1536
1547
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
1537
-
1538
1548
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
1539
1549
  Request #5942 for details
1540
1550
 
@@ -1547,7 +1557,6 @@
1547
1557
  ## 14.0.0
1548
1558
 
1549
1559
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
1550
-
1551
1560
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
1552
1561
  this package, please ensure you use at least this version of react and react-dom.
1553
1562
 
@@ -1603,7 +1612,6 @@
1603
1612
  ## 13.0.0
1604
1613
 
1605
1614
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
1606
-
1607
1615
  - Drop ES5 from all the flow modules
1608
1616
 
1609
1617
  ### Dropping CJS support in all @atlaskit packages
@@ -1648,7 +1656,6 @@
1648
1656
  ## 12.1.17
1649
1657
 
1650
1658
  - [patch][c4edb3ab4d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c4edb3ab4d):
1651
-
1652
1659
  - Move tooltip to render popper in portal to maintain ref that Popper needs to initially position
1653
1660
  the tooltip
1654
1661
 
@@ -1670,7 +1677,6 @@
1670
1677
  ## 12.1.14
1671
1678
 
1672
1679
  - [patch][8f179c4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8f179c4):
1673
-
1674
1680
  - Remove scroll listener in componentWillMount in Tooltip to fix potential memory leak from
1675
1681
  'close' tooltip not properly unmounting when hiding Examples modal via the X button
1676
1682
 
@@ -1726,7 +1732,6 @@
1726
1732
  ## 12.1.7
1727
1733
 
1728
1734
  - [patch][3b03f52](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3b03f52):
1729
-
1730
1735
  - Use @atlaskit/popper internally instead of a custom approach to position management
1731
1736
 
1732
1737
  ## 12.1.6
@@ -40,9 +40,9 @@ var TooltipPrimitive = /*#__PURE__*/(0, _react.forwardRef)(function TooltipPrimi
40
40
  ,
41
41
  className: (0, _runtime.ax)(["_80om73ad", className])
42
42
  // Because the tooltip should not be focusable, there is no reason to have key events.
43
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
43
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
44
44
  onMouseOut: onMouseOut
45
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
45
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
46
46
  onMouseOver: onMouseOver,
47
47
  "data-placement": placement,
48
48
  "data-testid": testId,
@@ -1,12 +1,27 @@
1
1
  ._11c81u0j{font:var(--ds-font-code,normal 400 .875em/1 ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
2
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
3
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
3
4
  ._zulpv77o{gap:var(--ds-space-025,2px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._1dqonqa1{border-style:solid}
6
7
  ._1h6d7jlr{border-color:var(--ds-border-bold,#758195)}
8
+ ._1254n7od{-webkit-box-shadow:unset}
9
+ ._12l2n7od{margin-inline-end:unset}
10
+ ._16qsn7od{box-shadow:unset}
7
11
  ._1e0c1txw{display:flex}
12
+ ._1pfhn7od{margin-block-start:unset}
8
13
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
9
14
  ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
15
+ ._1ul9n7od{min-width:unset}
16
+ ._4cvr1h6o{align-items:center}
17
+ ._4t3i1k92{height:1.25rem}
18
+ ._6rthn7od{margin-block-end:unset}
10
19
  ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._ahbqn7od{margin-inline-start:unset}
21
+ ._bfhk261p{background-color:unset!important}
11
22
  ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
23
+ ._cgnln7od{-moz-box-shadow:unset}
24
+ ._syazn7od{color:unset}
25
+ ._vchhusvi{box-sizing:border-box}
26
+ ._w19jn7od{text-shadow:unset}
12
27
  ._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
@@ -11,8 +11,8 @@ var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
13
  var styles = {
14
- shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
15
- shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7"
14
+ shortcutSegmentsContainer: "_zulpv77o _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
15
+ shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1e0c1txw _4cvr1h6o _4t3i1k92 _vchhusvi _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7 _16qsn7od _1254n7od _cgnln7od _syazn7od _ahbqn7od _12l2n7od _1pfhn7od _6rthn7od _1ul9n7od _w19jn7od _bfhk261p"
16
16
  };
17
17
  /**
18
18
  * __Tooltip shortcut__
@@ -33,9 +33,9 @@ const TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive({
33
33
  ,
34
34
  className: ax(["_80om73ad", className])
35
35
  // Because the tooltip should not be focusable, there is no reason to have key events.
36
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
36
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
37
37
  onMouseOut: onMouseOut
38
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
38
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
39
39
  onMouseOver: onMouseOver,
40
40
  "data-placement": placement,
41
41
  "data-testid": testId,
@@ -1,12 +1,27 @@
1
1
  ._11c81u0j{font:var(--ds-font-code,normal 400 .875em/1 ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
2
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
3
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
3
4
  ._zulpv77o{gap:var(--ds-space-025,2px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._1dqonqa1{border-style:solid}
6
7
  ._1h6d7jlr{border-color:var(--ds-border-bold,#758195)}
8
+ ._1254n7od{-webkit-box-shadow:unset}
9
+ ._12l2n7od{margin-inline-end:unset}
10
+ ._16qsn7od{box-shadow:unset}
7
11
  ._1e0c1txw{display:flex}
12
+ ._1pfhn7od{margin-block-start:unset}
8
13
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
9
14
  ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
15
+ ._1ul9n7od{min-width:unset}
16
+ ._4cvr1h6o{align-items:center}
17
+ ._4t3i1k92{height:1.25rem}
18
+ ._6rthn7od{margin-block-end:unset}
10
19
  ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._ahbqn7od{margin-inline-start:unset}
21
+ ._bfhk261p{background-color:unset!important}
11
22
  ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
23
+ ._cgnln7od{-moz-box-shadow:unset}
24
+ ._syazn7od{color:unset}
25
+ ._vchhusvi{box-sizing:border-box}
26
+ ._w19jn7od{text-shadow:unset}
12
27
  ._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
@@ -3,8 +3,8 @@ import "./tooltip-shortcut.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  const styles = {
6
- shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
7
- shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7"
6
+ shortcutSegmentsContainer: "_zulpv77o _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
7
+ shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1e0c1txw _4cvr1h6o _4t3i1k92 _vchhusvi _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7 _16qsn7od _1254n7od _cgnln7od _syazn7od _ahbqn7od _12l2n7od _1pfhn7od _6rthn7od _1ul9n7od _w19jn7od _bfhk261p"
8
8
  };
9
9
  /**
10
10
  * __Tooltip shortcut__
@@ -32,9 +32,9 @@ var TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive(_ref, r
32
32
  ,
33
33
  className: ax(["_80om73ad", className])
34
34
  // Because the tooltip should not be focusable, there is no reason to have key events.
35
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
35
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
36
36
  onMouseOut: onMouseOut
37
- /* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
37
+ /* eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events */,
38
38
  onMouseOver: onMouseOver,
39
39
  "data-placement": placement,
40
40
  "data-testid": testId,
@@ -1,12 +1,27 @@
1
1
  ._11c81u0j{font:var(--ds-font-code,normal 400 .875em/1 ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
2
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
3
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
3
4
  ._zulpv77o{gap:var(--ds-space-025,2px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._1dqonqa1{border-style:solid}
6
7
  ._1h6d7jlr{border-color:var(--ds-border-bold,#758195)}
8
+ ._1254n7od{-webkit-box-shadow:unset}
9
+ ._12l2n7od{margin-inline-end:unset}
10
+ ._16qsn7od{box-shadow:unset}
7
11
  ._1e0c1txw{display:flex}
12
+ ._1pfhn7od{margin-block-start:unset}
8
13
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
9
14
  ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
15
+ ._1ul9n7od{min-width:unset}
16
+ ._4cvr1h6o{align-items:center}
17
+ ._4t3i1k92{height:1.25rem}
18
+ ._6rthn7od{margin-block-end:unset}
10
19
  ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._ahbqn7od{margin-inline-start:unset}
21
+ ._bfhk261p{background-color:unset!important}
11
22
  ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
23
+ ._cgnln7od{-moz-box-shadow:unset}
24
+ ._syazn7od{color:unset}
25
+ ._vchhusvi{box-sizing:border-box}
26
+ ._w19jn7od{text-shadow:unset}
12
27
  ._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
@@ -3,8 +3,8 @@ import "./tooltip-shortcut.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  var styles = {
6
- shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
7
- shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7"
6
+ shortcutSegmentsContainer: "_zulpv77o _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
7
+ shortcutSegment: "_11c81u0j _2rkolb4i _1dqonqa1 _189ee4h9 _1h6d7jlr _1e0c1txw _4cvr1h6o _4t3i1k92 _vchhusvi _1q51v77o _85i5v77o _bozg12x7 _y4ti12x7 _16qsn7od _1254n7od _cgnln7od _syazn7od _ahbqn7od _12l2n7od _1pfhn7od _6rthn7od _1ul9n7od _w19jn7od _bfhk261p"
8
8
  };
9
9
  /**
10
10
  * __Tooltip shortcut__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.5.1",
3
+ "version": "20.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/"
@@ -34,15 +34,15 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/ds-lib": "^5.1.0",
37
- "@atlaskit/layering": "^3.0.0",
37
+ "@atlaskit/layering": "^3.1.0",
38
38
  "@atlaskit/motion": "^5.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/popper": "^7.1.0",
41
41
  "@atlaskit/portal": "^5.1.0",
42
42
  "@atlaskit/theme": "^21.0.0",
43
- "@atlaskit/tokens": "^6.4.0",
43
+ "@atlaskit/tokens": "^7.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
- "@compiled/react": "^0.18.3",
45
+ "@compiled/react": "^0.18.6",
46
46
  "bind-event-listener": "^3.0.0"
47
47
  },
48
48
  "peerDependencies": {
@@ -53,12 +53,12 @@
53
53
  "@af/accessibility-testing": "workspace:^",
54
54
  "@af/integration-testing": "workspace:^",
55
55
  "@af/visual-regression": "workspace:^",
56
- "@atlaskit/button": "^23.4.0",
57
- "@atlaskit/css": "^0.14.0",
58
- "@atlaskit/docs": "^11.1.0",
59
- "@atlaskit/icon": "^28.3.0",
56
+ "@atlaskit/button": "^23.5.0",
57
+ "@atlaskit/css": "^0.15.0",
58
+ "@atlaskit/docs": "^11.2.0",
59
+ "@atlaskit/icon": "^28.5.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
- "@atlaskit/primitives": "^14.15.0",
61
+ "@atlaskit/primitives": "^16.0.0",
62
62
  "@atlaskit/section-message": "^8.7.0",
63
63
  "@atlassian/ssr-tests": "^0.3.0",
64
64
  "@testing-library/react": "^13.4.0",