@atlaskit/editor-toolbar 2.6.35 → 2.6.36
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 +8 -0
- package/dist/cjs/ui/ToolbarDropdownItem.js +3 -3
- package/dist/cjs/ui/ToolbarDropdownMenu.js +2 -3
- package/dist/es2019/ui/ToolbarDropdownItem.js +3 -3
- package/dist/es2019/ui/ToolbarDropdownMenu.js +2 -3
- package/dist/esm/ui/ToolbarDropdownItem.js +3 -3
- package/dist/esm/ui/ToolbarDropdownMenu.js +2 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 2.6.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b3f788656e6f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3f788656e6f9) -
|
|
8
|
+
[FFCLEANUP-91521] clean up references to `platform_editor_renderer_toolbar_updates`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 2.6.35
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -68,7 +68,7 @@ var CustomDropdownMenuItemButton = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
68
68
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
69
69
|
"data-toolbar-component": "menu-item",
|
|
70
70
|
ref: ref,
|
|
71
|
-
title:
|
|
71
|
+
title: title,
|
|
72
72
|
"data-extension-item-key": (0, _fg.fg)('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
|
73
73
|
}, children);
|
|
74
74
|
});
|
|
@@ -182,13 +182,13 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
|
|
|
182
182
|
rel: rel
|
|
183
183
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
184
184
|
,
|
|
185
|
-
component: href ?
|
|
185
|
+
component: href ? CustomDropdownMenuItemAnchor : CustomDropdownMenuItemButton,
|
|
186
186
|
testId: testId,
|
|
187
187
|
"data-toolbar-component": "menu-item",
|
|
188
188
|
title: title,
|
|
189
189
|
shouldTitleWrap: shouldTitleWrap
|
|
190
190
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
191
|
-
},
|
|
191
|
+
}, dataAttributes), children, elemAfterText ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
192
192
|
as: "span",
|
|
193
193
|
xcss: styles.elemAfterText
|
|
194
194
|
}, elemAfterText) : null);
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _react2 = require("@compiled/react");
|
|
14
14
|
var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu"));
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _uiContext = require("../hooks/ui-context");
|
|
18
17
|
var _ToolbarButton = require("./ToolbarButton");
|
|
19
18
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
@@ -67,7 +66,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
67
66
|
triggerProps.onClick && triggerProps.onClick(e);
|
|
68
67
|
},
|
|
69
68
|
onFocus: triggerProps.onFocus,
|
|
70
|
-
id:
|
|
69
|
+
id: id,
|
|
71
70
|
testId: testId,
|
|
72
71
|
iconBefore: iconBefore,
|
|
73
72
|
isDisabled: isDisabled,
|
|
@@ -102,7 +101,7 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
|
|
|
102
101
|
return /*#__PURE__*/_react.default.createElement(ToolbarDropdownMenuContent, {
|
|
103
102
|
iconBefore: iconBefore,
|
|
104
103
|
isDisabled: isDisabled,
|
|
105
|
-
id:
|
|
104
|
+
id: id,
|
|
106
105
|
testId: testId,
|
|
107
106
|
label: label,
|
|
108
107
|
onClick: onClick,
|
|
@@ -53,7 +53,7 @@ const CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(({
|
|
|
53
53
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
54
54
|
"data-toolbar-component": "menu-item",
|
|
55
55
|
ref: ref,
|
|
56
|
-
title:
|
|
56
|
+
title: title,
|
|
57
57
|
"data-extension-item-key": fg('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
|
58
58
|
}, children));
|
|
59
59
|
const CustomDropdownMenuItemAnchor = /*#__PURE__*/forwardRef(({
|
|
@@ -166,13 +166,13 @@ export const ToolbarDropdownItem = ({
|
|
|
166
166
|
rel: rel
|
|
167
167
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
168
168
|
,
|
|
169
|
-
component: href ?
|
|
169
|
+
component: href ? CustomDropdownMenuItemAnchor : CustomDropdownMenuItemButton,
|
|
170
170
|
testId: testId,
|
|
171
171
|
"data-toolbar-component": "menu-item",
|
|
172
172
|
title: title,
|
|
173
173
|
shouldTitleWrap: shouldTitleWrap
|
|
174
174
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
175
|
-
},
|
|
175
|
+
}, dataAttributes), children, elemAfterText ? /*#__PURE__*/React.createElement(Box, {
|
|
176
176
|
as: "span",
|
|
177
177
|
xcss: styles.elemAfterText
|
|
178
178
|
}, elemAfterText) : null);
|
|
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
10
9
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
10
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
@@ -60,7 +59,7 @@ const ToolbarDropdownMenuContent = ({
|
|
|
60
59
|
triggerProps.onClick && triggerProps.onClick(e);
|
|
61
60
|
},
|
|
62
61
|
onFocus: triggerProps.onFocus,
|
|
63
|
-
id:
|
|
62
|
+
id: id,
|
|
64
63
|
testId: testId,
|
|
65
64
|
iconBefore: iconBefore,
|
|
66
65
|
isDisabled: isDisabled,
|
|
@@ -94,7 +93,7 @@ export const ToolbarDropdownMenu = ({
|
|
|
94
93
|
return /*#__PURE__*/React.createElement(ToolbarDropdownMenuContent, {
|
|
95
94
|
iconBefore: iconBefore,
|
|
96
95
|
isDisabled: isDisabled,
|
|
97
|
-
id:
|
|
96
|
+
id: id,
|
|
98
97
|
testId: testId,
|
|
99
98
|
label: label,
|
|
100
99
|
onClick: onClick,
|
|
@@ -59,7 +59,7 @@ var CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
59
59
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
60
60
|
"data-toolbar-component": "menu-item",
|
|
61
61
|
ref: ref,
|
|
62
|
-
title:
|
|
62
|
+
title: title,
|
|
63
63
|
"data-extension-item-key": fg('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
|
64
64
|
}, children);
|
|
65
65
|
});
|
|
@@ -173,13 +173,13 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref3) {
|
|
|
173
173
|
rel: rel
|
|
174
174
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
175
175
|
,
|
|
176
|
-
component: href ?
|
|
176
|
+
component: href ? CustomDropdownMenuItemAnchor : CustomDropdownMenuItemButton,
|
|
177
177
|
testId: testId,
|
|
178
178
|
"data-toolbar-component": "menu-item",
|
|
179
179
|
title: title,
|
|
180
180
|
shouldTitleWrap: shouldTitleWrap
|
|
181
181
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
182
|
-
},
|
|
182
|
+
}, dataAttributes), children, elemAfterText ? /*#__PURE__*/React.createElement(Box, {
|
|
183
183
|
as: "span",
|
|
184
184
|
xcss: styles.elemAfterText
|
|
185
185
|
}, elemAfterText) : null);
|
|
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
10
9
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
10
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
@@ -58,7 +57,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
58
57
|
triggerProps.onClick && triggerProps.onClick(e);
|
|
59
58
|
},
|
|
60
59
|
onFocus: triggerProps.onFocus,
|
|
61
|
-
id:
|
|
60
|
+
id: id,
|
|
62
61
|
testId: testId,
|
|
63
62
|
iconBefore: iconBefore,
|
|
64
63
|
isDisabled: isDisabled,
|
|
@@ -93,7 +92,7 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
|
|
|
93
92
|
return /*#__PURE__*/React.createElement(ToolbarDropdownMenuContent, {
|
|
94
93
|
iconBefore: iconBefore,
|
|
95
94
|
isDisabled: isDisabled,
|
|
96
|
-
id:
|
|
95
|
+
id: id,
|
|
97
96
|
testId: testId,
|
|
98
97
|
label: label,
|
|
99
98
|
onClick: onClick,
|
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.36",
|
|
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": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^192.0.0",
|
|
44
44
|
"@atlaskit/tokens": "^16.12.0",
|
|
45
45
|
"@atlaskit/tooltip": "^24.3.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|