@atlaskit/editor-toolbar 0.17.13 → 0.18.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,17 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6d7eaf7a84ff3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d7eaf7a84ff3) -
8
+ ToolbarTooltip now supports displaying shortcuts in the tooltip, through the new shortcut prop. It
9
+ is passed through to the Tooltip's shortcut prop.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.17.13
4
16
 
5
17
  ### Patch Changes
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
10
10
  var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
11
11
  var content = _ref.content,
12
+ shortcut = _ref.shortcut,
12
13
  children = _ref.children,
13
14
  _ref$position = _ref.position,
14
15
  position = _ref$position === void 0 ? 'top' : _ref$position,
@@ -16,6 +17,7 @@ var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
16
17
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
17
18
  content: content,
18
19
  position: position,
19
- delay: delay
20
+ delay: delay,
21
+ shortcut: shortcut
20
22
  }, children);
21
23
  };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import Tooltip from '@atlaskit/tooltip';
3
3
  export const ToolbarTooltip = ({
4
4
  content,
5
+ shortcut,
5
6
  children,
6
7
  position = 'top',
7
8
  delay
@@ -9,6 +10,7 @@ export const ToolbarTooltip = ({
9
10
  return /*#__PURE__*/React.createElement(Tooltip, {
10
11
  content: content,
11
12
  position: position,
12
- delay: delay
13
+ delay: delay,
14
+ shortcut: shortcut
13
15
  }, children);
14
16
  };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import Tooltip from '@atlaskit/tooltip';
3
3
  export var ToolbarTooltip = function ToolbarTooltip(_ref) {
4
4
  var content = _ref.content,
5
+ shortcut = _ref.shortcut,
5
6
  children = _ref.children,
6
7
  _ref$position = _ref.position,
7
8
  position = _ref$position === void 0 ? 'top' : _ref$position,
@@ -9,6 +10,7 @@ export var ToolbarTooltip = function ToolbarTooltip(_ref) {
9
10
  return /*#__PURE__*/React.createElement(Tooltip, {
10
11
  content: content,
11
12
  position: position,
12
- delay: delay
13
+ delay: delay,
14
+ shortcut: shortcut
13
15
  }, children);
14
16
  };
@@ -5,6 +5,7 @@ type ToolbarTooltipProps = {
5
5
  content: React.ReactNode;
6
6
  delay?: number;
7
7
  position?: PositionType;
8
+ shortcut?: string[];
8
9
  };
9
- export declare const ToolbarTooltip: ({ content, children, position, delay, }: ToolbarTooltipProps) => React.JSX.Element;
10
+ export declare const ToolbarTooltip: ({ content, shortcut, children, position, delay, }: ToolbarTooltipProps) => React.JSX.Element;
10
11
  export {};
@@ -5,6 +5,7 @@ type ToolbarTooltipProps = {
5
5
  content: React.ReactNode;
6
6
  delay?: number;
7
7
  position?: PositionType;
8
+ shortcut?: string[];
8
9
  };
9
- export declare const ToolbarTooltip: ({ content, children, position, delay, }: ToolbarTooltipProps) => React.JSX.Element;
10
+ export declare const ToolbarTooltip: ({ content, shortcut, children, position, delay, }: ToolbarTooltipProps) => React.JSX.Element;
10
11
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.17.13",
6
+ "version": "0.18.0",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",