@atlaskit/editor-toolbar 2.6.41 → 2.6.43

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/cjs/ui/ColorPalette/Color.js +1 -1
  3. package/dist/cjs/ui/ResponsiveContainer.js +1 -1
  4. package/dist/cjs/ui/Toolbar.js +1 -6
  5. package/dist/cjs/ui/ToolbarButton.js +1 -1
  6. package/dist/cjs/ui/ToolbarButtonGroup.js +1 -1
  7. package/dist/cjs/ui/ToolbarColorSwatch.js +1 -1
  8. package/dist/cjs/ui/ToolbarDropdownItem.js +1 -1
  9. package/dist/cjs/ui/ToolbarDropdownMenu.js +4 -2
  10. package/dist/cjs/ui/ToolbarMenuContainer.js +1 -1
  11. package/dist/cjs/ui/ToolbarNestedDropdownMenu.js +1 -1
  12. package/dist/cjs/ui/ToolbarSection.js +1 -1
  13. package/dist/cjs/ui/icons/AIChatIcon.js +1 -1
  14. package/dist/cjs/ui/icons/TextColorIcon.js +1 -1
  15. package/dist/es2019/ui/ColorPalette/Color.js +1 -1
  16. package/dist/es2019/ui/ResponsiveContainer.js +1 -1
  17. package/dist/es2019/ui/Toolbar.js +1 -6
  18. package/dist/es2019/ui/ToolbarButton.js +1 -1
  19. package/dist/es2019/ui/ToolbarButtonGroup.js +1 -1
  20. package/dist/es2019/ui/ToolbarColorSwatch.js +1 -1
  21. package/dist/es2019/ui/ToolbarDropdownItem.js +1 -1
  22. package/dist/es2019/ui/ToolbarDropdownMenu.js +4 -2
  23. package/dist/es2019/ui/ToolbarMenuContainer.js +1 -1
  24. package/dist/es2019/ui/ToolbarNestedDropdownMenu.js +1 -1
  25. package/dist/es2019/ui/ToolbarSection.js +1 -1
  26. package/dist/es2019/ui/icons/AIChatIcon.js +1 -1
  27. package/dist/es2019/ui/icons/TextColorIcon.js +1 -1
  28. package/dist/esm/ui/ColorPalette/Color.js +1 -1
  29. package/dist/esm/ui/ResponsiveContainer.js +1 -1
  30. package/dist/esm/ui/Toolbar.js +1 -6
  31. package/dist/esm/ui/ToolbarButton.js +1 -1
  32. package/dist/esm/ui/ToolbarButtonGroup.js +1 -1
  33. package/dist/esm/ui/ToolbarColorSwatch.js +1 -1
  34. package/dist/esm/ui/ToolbarDropdownItem.js +1 -1
  35. package/dist/esm/ui/ToolbarDropdownMenu.js +4 -2
  36. package/dist/esm/ui/ToolbarMenuContainer.js +1 -1
  37. package/dist/esm/ui/ToolbarNestedDropdownMenu.js +1 -1
  38. package/dist/esm/ui/ToolbarSection.js +1 -1
  39. package/dist/esm/ui/icons/AIChatIcon.js +1 -1
  40. package/dist/esm/ui/icons/TextColorIcon.js +1 -1
  41. package/dist/types/ui/Toolbar.d.ts +2 -4
  42. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.6.43
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f67d7a39831c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f67d7a39831c) -
8
+ Clean up experiment `editor_a11y__primary-toolbar-aria-label_fy27`
9
+ - Updated dependencies
10
+
11
+ ## 2.6.42
12
+
13
+ ### Patch Changes
14
+
15
+ - [`3dd0c115a3c95`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3dd0c115a3c95) -
16
+ Gate absolute positioning of inline toolbar dropdowns behind
17
+ platform_editor_return_focus_after_text_styles_2.
18
+
3
19
  ## 2.6.41
4
20
 
5
21
  ### Patch Changes
@@ -302,7 +318,7 @@
302
318
  The Text styles dropdown now renders inline via `shouldRenderToParent`, which stops the popup
303
319
  focus-trap from returning focus to the trigger on close. `ToolbarDropdownMenu` gains an opt-in
304
320
  `shouldRenderToParent` prop so only the Text styles menu is affected. Gated behind the
305
- `platform_editor_return_focus_after_text_styles` feature flag.
321
+ `platform_editor_return_focus_after_text_styles_2` feature flag.
306
322
 
307
323
  ## 2.4.17
308
324
 
@@ -1,4 +1,4 @@
1
- /* Color.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Color.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-container-queries */
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
@@ -1,4 +1,4 @@
1
- /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
4
4
  "use strict";
@@ -68,22 +68,17 @@ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
68
68
  }
69
69
  return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveWrapper, null, wrappedToolbar);
70
70
  };
71
-
72
- // remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
73
-
74
71
  /**
75
72
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
76
73
  */
77
74
  var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
78
75
  var children = _ref2.children,
79
- label = _ref2.label,
80
76
  breakpointPreset = _ref2.breakpointPreset,
81
77
  testId = _ref2.testId;
82
78
  return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveContainer, {
83
79
  breakpointPreset: breakpointPreset
84
80
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
85
81
  xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
86
- "aria-label": label,
87
82
  "data-toolbar-type": "primary",
88
83
  testId: testId
89
84
  }, children));
@@ -1,4 +1,4 @@
1
- /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -12,6 +12,7 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@compiled/react");
14
14
  var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu"));
15
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
15
16
  var _compiled = require("@atlaskit/primitives/compiled");
16
17
  var _uiContext = require("../hooks/ui-context");
17
18
  var _ToolbarButton = require("./ToolbarButton");
@@ -81,7 +82,8 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
81
82
  },
82
83
  onOpenChange: handleOpenChange,
83
84
  isOpen: menuContext === null || menuContext === void 0 ? void 0 : menuContext.isOpen,
84
- shouldRenderToParent: shouldRenderToParent ? true : undefined
85
+ shouldRenderToParent: shouldRenderToParent ? true : undefined,
86
+ strategy: shouldRenderToParent && (0, _fg.fg)('platform_editor_return_focus_after_text_styles_2') ? 'absolute' : undefined
85
87
  }, children);
86
88
  };
87
89
  var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
@@ -1,4 +1,4 @@
1
- /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  "use strict";
4
4
 
@@ -1,4 +1,4 @@
1
- /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Color.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Color.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./Color.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, memo } from 'react';
@@ -1,4 +1,4 @@
1
- /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-container-queries */
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
@@ -1,4 +1,4 @@
1
- /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
4
4
  import "./Toolbar.compiled.css";
@@ -65,15 +65,11 @@ export const Toolbar = ({
65
65
  }
66
66
  return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, wrappedToolbar);
67
67
  };
68
-
69
- // remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
70
-
71
68
  /**
72
69
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
73
70
  */
74
71
  export const PrimaryToolbar = ({
75
72
  children,
76
- label,
77
73
  breakpointPreset,
78
74
  testId
79
75
  }) => {
@@ -81,7 +77,6 @@ export const PrimaryToolbar = ({
81
77
  breakpointPreset: breakpointPreset
82
78
  }, /*#__PURE__*/React.createElement(Box, {
83
79
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
84
- "aria-label": label,
85
80
  "data-toolbar-type": "primary",
86
81
  testId: testId
87
82
  }, children));
@@ -1,4 +1,4 @@
1
- /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarButton.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarButtonGroup.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarColorSwatch.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./ToolbarDropdownItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,9 +1,10 @@
1
- /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarDropdownMenu.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
6
  import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
8
  import { Box } from '@atlaskit/primitives/compiled';
8
9
  import { useToolbarUI } from '../hooks/ui-context';
9
10
  import { ToolbarButton } from './ToolbarButton';
@@ -74,7 +75,8 @@ const ToolbarDropdownMenuContent = ({
74
75
  },
75
76
  onOpenChange: handleOpenChange,
76
77
  isOpen: menuContext === null || menuContext === void 0 ? void 0 : menuContext.isOpen,
77
- shouldRenderToParent: shouldRenderToParent ? true : undefined
78
+ shouldRenderToParent: shouldRenderToParent ? true : undefined,
79
+ strategy: shouldRenderToParent && fg('platform_editor_return_focus_after_text_styles_2') ? 'absolute' : undefined
78
80
  }, children);
79
81
  };
80
82
  export const ToolbarDropdownMenu = ({
@@ -1,4 +1,4 @@
1
- /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarMenuContainer.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import "./ToolbarNestedDropdownMenu.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarSection.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./AIChatIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./TextColorIcon.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* Color.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Color.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./Color.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, memo } from 'react';
@@ -1,4 +1,4 @@
1
- /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-container-queries */
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
@@ -1,4 +1,4 @@
1
- /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* Toolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
4
4
  import "./Toolbar.compiled.css";
@@ -61,22 +61,17 @@ export var Toolbar = function Toolbar(_ref) {
61
61
  }
62
62
  return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, wrappedToolbar);
63
63
  };
64
-
65
- // remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
66
-
67
64
  /**
68
65
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
69
66
  */
70
67
  export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
71
68
  var children = _ref2.children,
72
- label = _ref2.label,
73
69
  breakpointPreset = _ref2.breakpointPreset,
74
70
  testId = _ref2.testId;
75
71
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
76
72
  breakpointPreset: breakpointPreset
77
73
  }, /*#__PURE__*/React.createElement(Box, {
78
74
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
79
- "aria-label": label,
80
75
  "data-toolbar-type": "primary",
81
76
  testId: testId
82
77
  }, children));
@@ -1,4 +1,4 @@
1
- /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarButton.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarButtonGroup.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarButtonGroup.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarColorSwatch.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarColorSwatch.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -1,9 +1,10 @@
1
- /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarDropdownMenu.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
6
  import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
8
  import { Box } from '@atlaskit/primitives/compiled';
8
9
  import { useToolbarUI } from '../hooks/ui-context';
9
10
  import { ToolbarButton } from './ToolbarButton';
@@ -72,7 +73,8 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
72
73
  },
73
74
  onOpenChange: handleOpenChange,
74
75
  isOpen: menuContext === null || menuContext === void 0 ? void 0 : menuContext.isOpen,
75
- shouldRenderToParent: shouldRenderToParent ? true : undefined
76
+ shouldRenderToParent: shouldRenderToParent ? true : undefined,
77
+ strategy: shouldRenderToParent && fg('platform_editor_return_focus_after_text_styles_2') ? 'absolute' : undefined
76
78
  }, children);
77
79
  };
78
80
  export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
@@ -1,4 +1,4 @@
1
- /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarMenuContainer.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import "./ToolbarNestedDropdownMenu.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ToolbarSection.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ToolbarSection.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* AIChatIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./AIChatIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* TextColorIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./TextColorIcon.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -18,11 +18,9 @@ type ToolbarProps = {
18
18
  * @note: Responsiveness support replies on container query with container editor-area and media query
19
19
  */
20
20
  export declare const Toolbar: ({ children, label, actionSubjectId, testId, }: ToolbarProps) => React.JSX.Element;
21
- type PrimaryToolbarProps = Omit<ToolbarProps, 'label'> & ResponsiveContainerProps & {
22
- label?: string;
23
- };
21
+ type PrimaryToolbarProps = Omit<ToolbarProps, 'label'> & ResponsiveContainerProps;
24
22
  /**
25
23
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
26
24
  */
27
- export declare const PrimaryToolbar: ({ children, label, breakpointPreset, testId, }: PrimaryToolbarProps) => React.JSX.Element;
25
+ export declare const PrimaryToolbar: ({ children, breakpointPreset, testId, }: PrimaryToolbarProps) => React.JSX.Element;
28
26
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.6.41",
6
+ "version": "2.6.43",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "react-compiler": {
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/popup": "^6.3.0",
41
41
  "@atlaskit/primitives": "^22.5.0",
42
42
  "@atlaskit/react-compiler-gating": "^0.2.0",
43
- "@atlaskit/tmp-editor-statsig": "^197.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^198.0.0",
44
44
  "@atlaskit/tokens": "^17.0.0",
45
45
  "@atlaskit/tooltip": "^24.3.0",
46
46
  "@babel/runtime": "^7.0.0",
@@ -65,6 +65,9 @@
65
65
  },
66
66
  "platform_editor_lovability_text_bg_color_patch_1": {
67
67
  "type": "boolean"
68
+ },
69
+ "platform_editor_return_focus_after_text_styles_2": {
70
+ "type": "boolean"
68
71
  }
69
72
  }
70
73
  }