@atlaskit/editor-toolbar 0.14.0 → 0.14.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,12 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d5cf7cd71a821`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d5cf7cd71a821) -
8
+ ED-29124: Fixed format neste menu on top of top toolbar
9
+
3
10
  ## 0.14.0
4
11
 
5
12
  ### Minor Changes
@@ -29,8 +29,11 @@ var ToolbarNestedDropdownMenu = exports.ToolbarNestedDropdownMenu = function Too
29
29
  dropdownTestId = _ref.dropdownTestId,
30
30
  _ref$enableMaxHeight = _ref.enableMaxHeight,
31
31
  enableMaxHeight = _ref$enableMaxHeight === void 0 ? false : _ref$enableMaxHeight,
32
- _onClick = _ref.onClick;
32
+ _onClick = _ref.onClick,
33
+ _ref$shouldFitContain = _ref.shouldFitContainer,
34
+ shouldFitContainer = _ref$shouldFitContain === void 0 ? false : _ref$shouldFitContain;
33
35
  return /*#__PURE__*/React.createElement(_dropdownMenu.default, {
36
+ shouldFitContainer: shouldFitContainer,
34
37
  placement: "right-start",
35
38
  testId: dropdownTestId,
36
39
  trigger: function trigger(triggerProps) {
@@ -19,9 +19,11 @@ export const ToolbarNestedDropdownMenu = ({
19
19
  testId,
20
20
  dropdownTestId,
21
21
  enableMaxHeight = false,
22
- onClick
22
+ onClick,
23
+ shouldFitContainer = false
23
24
  }) => {
24
25
  return /*#__PURE__*/React.createElement(DropdownMenu, {
26
+ shouldFitContainer: shouldFitContainer,
25
27
  placement: "right-start",
26
28
  testId: dropdownTestId,
27
29
  trigger: triggerProps => /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
@@ -20,8 +20,11 @@ export var ToolbarNestedDropdownMenu = function ToolbarNestedDropdownMenu(_ref)
20
20
  dropdownTestId = _ref.dropdownTestId,
21
21
  _ref$enableMaxHeight = _ref.enableMaxHeight,
22
22
  enableMaxHeight = _ref$enableMaxHeight === void 0 ? false : _ref$enableMaxHeight,
23
- _onClick = _ref.onClick;
23
+ _onClick = _ref.onClick,
24
+ _ref$shouldFitContain = _ref.shouldFitContainer,
25
+ shouldFitContainer = _ref$shouldFitContain === void 0 ? false : _ref$shouldFitContain;
24
26
  return /*#__PURE__*/React.createElement(DropdownMenu, {
27
+ shouldFitContainer: shouldFitContainer,
25
28
  placement: "right-start",
26
29
  testId: dropdownTestId,
27
30
  trigger: function trigger(triggerProps) {
@@ -14,8 +14,9 @@ type ToolbarNestedDropdownMenuProps = {
14
14
  enableMaxHeight?: boolean;
15
15
  isDisabled?: boolean;
16
16
  onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
17
+ shouldFitContainer?: boolean;
17
18
  testId?: string;
18
19
  text?: string;
19
20
  };
20
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
21
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
21
22
  export {};
@@ -14,8 +14,9 @@ type ToolbarNestedDropdownMenuProps = {
14
14
  enableMaxHeight?: boolean;
15
15
  isDisabled?: boolean;
16
16
  onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
17
+ shouldFitContainer?: boolean;
17
18
  testId?: string;
18
19
  text?: string;
19
20
  };
20
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
21
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
21
22
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.14.0",
6
+ "version": "0.14.1",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -27,7 +27,7 @@
27
27
  "@atlaskit/dropdown-menu": "^16.3.0",
28
28
  "@atlaskit/icon": "^28.4.0",
29
29
  "@atlaskit/icon-lab": "^5.9.0",
30
- "@atlaskit/logo": "^19.8.0",
30
+ "@atlaskit/logo": "^19.9.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
33
33
  "@atlaskit/popup": "^4.4.0",