@atlaskit/editor-toolbar 2.6.41 → 2.6.42
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 +9 -1
- package/dist/cjs/ui/ColorPalette/Color.js +1 -1
- package/dist/cjs/ui/ResponsiveContainer.js +1 -1
- package/dist/cjs/ui/Toolbar.js +1 -1
- package/dist/cjs/ui/ToolbarButton.js +1 -1
- package/dist/cjs/ui/ToolbarButtonGroup.js +1 -1
- package/dist/cjs/ui/ToolbarColorSwatch.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownItem.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownMenu.js +4 -2
- package/dist/cjs/ui/ToolbarMenuContainer.js +1 -1
- package/dist/cjs/ui/ToolbarNestedDropdownMenu.js +1 -1
- package/dist/cjs/ui/ToolbarSection.js +1 -1
- package/dist/cjs/ui/icons/AIChatIcon.js +1 -1
- package/dist/cjs/ui/icons/TextColorIcon.js +1 -1
- package/dist/es2019/ui/ColorPalette/Color.js +1 -1
- package/dist/es2019/ui/ResponsiveContainer.js +1 -1
- package/dist/es2019/ui/Toolbar.js +1 -1
- package/dist/es2019/ui/ToolbarButton.js +1 -1
- package/dist/es2019/ui/ToolbarButtonGroup.js +1 -1
- package/dist/es2019/ui/ToolbarColorSwatch.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownItem.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownMenu.js +4 -2
- package/dist/es2019/ui/ToolbarMenuContainer.js +1 -1
- package/dist/es2019/ui/ToolbarNestedDropdownMenu.js +1 -1
- package/dist/es2019/ui/ToolbarSection.js +1 -1
- package/dist/es2019/ui/icons/AIChatIcon.js +1 -1
- package/dist/es2019/ui/icons/TextColorIcon.js +1 -1
- package/dist/esm/ui/ColorPalette/Color.js +1 -1
- package/dist/esm/ui/ResponsiveContainer.js +1 -1
- package/dist/esm/ui/Toolbar.js +1 -1
- package/dist/esm/ui/ToolbarButton.js +1 -1
- package/dist/esm/ui/ToolbarButtonGroup.js +1 -1
- package/dist/esm/ui/ToolbarColorSwatch.js +1 -1
- package/dist/esm/ui/ToolbarDropdownItem.js +1 -1
- package/dist/esm/ui/ToolbarDropdownMenu.js +4 -2
- package/dist/esm/ui/ToolbarMenuContainer.js +1 -1
- package/dist/esm/ui/ToolbarNestedDropdownMenu.js +1 -1
- package/dist/esm/ui/ToolbarSection.js +1 -1
- package/dist/esm/ui/icons/AIChatIcon.js +1 -1
- package/dist/esm/ui/icons/TextColorIcon.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 2.6.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3dd0c115a3c95`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3dd0c115a3c95) -
|
|
8
|
+
Gate absolute positioning of inline toolbar dropdowns behind
|
|
9
|
+
platform_editor_return_focus_after_text_styles_2.
|
|
10
|
+
|
|
3
11
|
## 2.6.41
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -302,7 +310,7 @@
|
|
|
302
310
|
The Text styles dropdown now renders inline via `shouldRenderToParent`, which stops the popup
|
|
303
311
|
focus-trap from returning focus to the trigger on close. `ToolbarDropdownMenu` gains an opt-in
|
|
304
312
|
`shouldRenderToParent` prop so only the Text styles menu is affected. Gated behind the
|
|
305
|
-
`
|
|
313
|
+
`platform_editor_return_focus_after_text_styles_2` feature flag.
|
|
306
314
|
|
|
307
315
|
## 2.4.17
|
|
308
316
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.
|
|
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 */
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Toolbar.tsx generated by @compiled/babel-plugin v3.0.
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.
|
|
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
|
-
/* ToolbarNestedDropdownMenu.tsx generated by @compiled/babel-plugin v3.0.
|
|
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
|
-
/* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.
|
|
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
|
+
/* 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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.
|
|
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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
-
/* ResponsiveContainer.tsx generated by @compiled/babel-plugin v3.0.
|
|
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 */
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Toolbar.tsx generated by @compiled/babel-plugin v3.0.
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarButton.tsx generated by @compiled/babel-plugin v3.0.
|
|
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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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
|
+
/* 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';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.6.
|
|
6
|
+
"version": "2.6.42",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"react-compiler": {
|
|
@@ -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
|
}
|