@atlaskit/editor-toolbar 2.8.39 → 2.8.40
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
|
@@ -15,7 +15,9 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _css = require("@atlaskit/css");
|
|
17
17
|
var _dropdownMenuItem = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item"));
|
|
18
|
-
var
|
|
18
|
+
var _anchor = require("@atlaskit/primitives/compiled/anchor");
|
|
19
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
20
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
19
21
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
20
22
|
var _excluded = ["children", "data-testid", "aria-haspopup", "aria-disabled", "aria-pressed", "aria-keyshortcuts", "onClick", "onBlur", "onFocus", "onMouseEnter", "onMouseLeave", "tabIndex", "href", "target", "rel", "title", "itemRole"],
|
|
21
23
|
_excluded2 = ["onClick", "onBlur", "onFocus", "onMouseEnter", "onMouseLeave", "elemBefore", "elemAfter", "elemAfterText", "isSelected", "children", "isDisabled", "hasNestedDropdownMenu", "triggerRef", "title", "shouldTitleWrap", "testId", "ariaKeyshortcuts", "href", "target", "rel", "role"];
|
|
@@ -46,7 +48,7 @@ var CustomDropdownMenuItemButton = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
46
48
|
title = _ref.title,
|
|
47
49
|
dataExtensionItemKey = _ref['data-extension-item-key'],
|
|
48
50
|
itemRole = _ref.itemRole;
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_pressable.Pressable, {
|
|
50
52
|
role: itemRole || 'menuitem',
|
|
51
53
|
testId: testId,
|
|
52
54
|
xcss: (0, _css.cx)(styles.toolbarDropdownItem, ariaDisabled ? styles.disabled : ariaPressed ? styles.selected : styles.enabled),
|
|
@@ -86,7 +88,7 @@ var CustomDropdownMenuItemAnchor = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
86
88
|
title = _ref2.title,
|
|
87
89
|
itemRole = _ref2.itemRole,
|
|
88
90
|
dataAttributes = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
89
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
91
|
+
return /*#__PURE__*/_react.default.createElement(_anchor.Anchor, (0, _extends2.default)({
|
|
90
92
|
role: itemRole || 'menuitem',
|
|
91
93
|
testId: testId,
|
|
92
94
|
xcss: (0, _css.cx)(styles.toolbarDropdownItem, styles.anchor, ariaDisabled ? styles.disabled : ariaPressed ? styles.selected : styles.enabled),
|
|
@@ -180,7 +182,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
|
|
|
180
182
|
title: title,
|
|
181
183
|
shouldTitleWrap: shouldTitleWrap
|
|
182
184
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
183
|
-
}, dataAttributes), children, elemAfterText ? /*#__PURE__*/_react.default.createElement(
|
|
185
|
+
}, dataAttributes), children, elemAfterText ? /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
184
186
|
as: "span",
|
|
185
187
|
xcss: styles.elemAfterText
|
|
186
188
|
}, elemAfterText) : null);
|
|
@@ -5,7 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { forwardRef, isValidElement, cloneElement } from 'react';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
8
|
-
import { Anchor
|
|
8
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
9
11
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
10
12
|
const styles = {
|
|
11
13
|
toolbarDropdownItem: "_11c8fhey _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
|
|
@@ -11,7 +11,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
import React, { forwardRef, isValidElement, cloneElement } from 'react';
|
|
12
12
|
import { cx } from '@atlaskit/css';
|
|
13
13
|
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
14
|
-
import { Anchor
|
|
14
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
15
17
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
16
18
|
var styles = {
|
|
17
19
|
toolbarDropdownItem: "_11c8fhey _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.8.
|
|
6
|
+
"version": "2.8.40",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"website": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/popup": "^10.0.0",
|
|
46
46
|
"@atlaskit/primitives": "^22.6.0",
|
|
47
47
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^243.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^20.6.0",
|
|
50
50
|
"@atlaskit/tooltip": "^24.4.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|