@atlaskit/tooltip 20.6.0 → 20.7.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,21 @@
1
1
  # @atlaskit/tooltip
2
2
 
3
+ ## 20.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`37dfc45b61aa2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/37dfc45b61aa2) -
8
+ The font size of keyboard shortcuts has been reduced to `10.5px` from `12.25px`. The keyboard
9
+ shortcuts are behind the `platform-dst-tooltip-shortcuts` feature flag.
10
+
11
+ ## 20.6.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`e336b1e1861e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e336b1e1861e5) -
16
+ ts-expect-error was replaced with ts-ignore to fix typecheck issues with help-center local
17
+ consumption
18
+
3
19
  ## 20.6.0
4
20
 
5
21
  ### Minor Changes
@@ -1,5 +1,4 @@
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)}
3
2
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
4
3
  ._zulpv77o{gap:var(--ds-space-025,2px)}
5
4
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
@@ -11,7 +11,7 @@ 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 _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
14
+ shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
15
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
  /**
@@ -489,7 +489,10 @@ function Tooltip(_ref) {
489
489
  _react.default.createElement(_react.default.Fragment, null, children(_objectSpread(_objectSpread({}, tooltipTriggerProps), {}, {
490
490
  'aria-describedby': tooltipIdForHiddenContent,
491
491
  ref: setDirectRef
492
- })), hiddenContent) : /*#__PURE__*/_react.default.createElement(CastTargetContainer, (0, _extends2.default)({}, tooltipTriggerProps, {
492
+ })), hiddenContent) :
493
+ /*#__PURE__*/
494
+ // @ts-ignore
495
+ _react.default.createElement(CastTargetContainer, (0, _extends2.default)({}, tooltipTriggerProps, {
493
496
  ref: setImplicitRefFromChildren
494
497
  /**
495
498
  * TODO: Why is role="presentation" added?
@@ -1,5 +1,4 @@
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)}
3
2
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
4
3
  ._zulpv77o{gap:var(--ds-space-025,2px)}
5
4
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
@@ -3,7 +3,7 @@ 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 _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
6
+ shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
7
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
  /**
@@ -464,7 +464,10 @@ function Tooltip({
464
464
  ...tooltipTriggerProps,
465
465
  'aria-describedby': tooltipIdForHiddenContent,
466
466
  ref: setDirectRef
467
- }), hiddenContent) : /*#__PURE__*/React.createElement(CastTargetContainer, _extends({}, tooltipTriggerProps, {
467
+ }), hiddenContent) :
468
+ /*#__PURE__*/
469
+ // @ts-ignore
470
+ React.createElement(CastTargetContainer, _extends({}, tooltipTriggerProps, {
468
471
  ref: setImplicitRefFromChildren
469
472
  /**
470
473
  * TODO: Why is role="presentation" added?
@@ -1,5 +1,4 @@
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)}
3
2
  ._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
4
3
  ._zulpv77o{gap:var(--ds-space-025,2px)}
5
4
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
@@ -3,7 +3,7 @@ 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 _11c82smr _1e0c1txw _1q511b66 _85i5v77o",
6
+ shortcutSegmentsContainer: "_zulpv77o _1e0c1txw _1q511b66 _85i5v77o",
7
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
  /**
@@ -480,7 +480,10 @@ function Tooltip(_ref) {
480
480
  React.createElement(React.Fragment, null, children(_objectSpread(_objectSpread({}, tooltipTriggerProps), {}, {
481
481
  'aria-describedby': tooltipIdForHiddenContent,
482
482
  ref: setDirectRef
483
- })), hiddenContent) : /*#__PURE__*/React.createElement(CastTargetContainer, _extends({}, tooltipTriggerProps, {
483
+ })), hiddenContent) :
484
+ /*#__PURE__*/
485
+ // @ts-ignore
486
+ React.createElement(CastTargetContainer, _extends({}, tooltipTriggerProps, {
484
487
  ref: setImplicitRefFromChildren
485
488
  /**
486
489
  * TODO: Why is role="presentation" added?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.6.0",
3
+ "version": "20.7.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,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/ds-lib": "^5.1.0",
37
- "@atlaskit/layering": "^3.1.0",
37
+ "@atlaskit/layering": "^3.2.0",
38
38
  "@atlaskit/motion": "^5.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/popper": "^7.1.0",
@@ -58,9 +58,11 @@
58
58
  "@atlaskit/docs": "^11.2.0",
59
59
  "@atlaskit/icon": "^28.5.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
- "@atlaskit/primitives": "^16.0.0",
62
- "@atlaskit/section-message": "^8.7.0",
61
+ "@atlaskit/primitives": "^16.1.0",
62
+ "@atlaskit/section-message": "^8.8.0",
63
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
63
64
  "@atlassian/ssr-tests": "^0.3.0",
65
+ "@atlassian/testing-library": "^0.4.0",
64
66
  "@testing-library/react": "^13.4.0",
65
67
  "react-dom": "^18.2.0",
66
68
  "tiny-invariant": "^1.2.0"