@atlaskit/editor-plugin-floating-toolbar 1.13.12 → 1.13.14
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 +17 -0
- package/dist/cjs/ui/Dropdown.js +11 -4
- package/dist/cjs/ui/Toolbar.js +1 -1
- package/dist/es2019/ui/Dropdown.js +11 -4
- package/dist/es2019/ui/Toolbar.js +1 -1
- package/dist/esm/ui/Dropdown.js +11 -4
- package/dist/esm/ui/Toolbar.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.13.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152594)
|
|
8
|
+
[`4f17733c95c94`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f17733c95c94) -
|
|
9
|
+
[ux] ED-25093: Migrated media toolbar to use the new icons
|
|
10
|
+
|
|
11
|
+
## 1.13.13
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#152399](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152399)
|
|
16
|
+
[`fbd7217f0cb51`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbd7217f0cb51) -
|
|
17
|
+
[ux] ED-25092: Migrated table toolbar icons
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 1.13.12
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/ui/Dropdown.js
CHANGED
|
@@ -18,6 +18,7 @@ var _react2 = require("@emotion/react");
|
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
19
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
20
20
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
21
|
+
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
21
22
|
var _Divider = require("./Divider");
|
|
22
23
|
var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
|
|
23
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -45,8 +46,11 @@ var CompositeIcon = function CompositeIcon(_ref) {
|
|
|
45
46
|
css: iconGroup
|
|
46
47
|
}, icon, (0, _react2.jsx)("span", {
|
|
47
48
|
css: dropdownExpandContainer
|
|
48
|
-
}, (0, _react2.jsx)(
|
|
49
|
-
|
|
49
|
+
}, (0, _react2.jsx)(_chevronDown2.default, {
|
|
50
|
+
color: "currentColor",
|
|
51
|
+
spacing: "spacious",
|
|
52
|
+
label: "Expand dropdown menu",
|
|
53
|
+
LEGACY_fallbackIcon: _chevronDown.default
|
|
50
54
|
})));
|
|
51
55
|
};
|
|
52
56
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -163,8 +167,11 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
163
167
|
testId: buttonTestId,
|
|
164
168
|
iconAfter: (0, _react2.jsx)("span", {
|
|
165
169
|
css: dropdownExpandContainer
|
|
166
|
-
}, (0, _react2.jsx)(
|
|
167
|
-
|
|
170
|
+
}, (0, _react2.jsx)(_chevronDown2.default, {
|
|
171
|
+
color: "currentColor",
|
|
172
|
+
spacing: "spacious",
|
|
173
|
+
label: "Expand dropdown menu",
|
|
174
|
+
LEGACY_fallbackIcon: _chevronDown.default
|
|
168
175
|
})),
|
|
169
176
|
icon: iconBefore,
|
|
170
177
|
onClick: this.toggleOpen,
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -111,7 +111,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
111
111
|
title: item.title,
|
|
112
112
|
href: item.href,
|
|
113
113
|
icon: item.icon ? item.iconFallback ? (0, _react2.jsx)(ButtonIcon, {
|
|
114
|
-
color: "var(--ds-icon, #44546F)",
|
|
114
|
+
color: item.disabled ? "var(--ds-icon-disabled, #091E424F)" : "var(--ds-icon, #44546F)",
|
|
115
115
|
spacing: "spacious",
|
|
116
116
|
label: item.title,
|
|
117
117
|
LEGACY_fallbackIcon: item.iconFallback,
|
|
@@ -12,6 +12,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
12
12
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
15
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
15
16
|
import { Divider } from './Divider';
|
|
16
17
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
17
18
|
|
|
@@ -30,8 +31,11 @@ const CompositeIcon = ({
|
|
|
30
31
|
css: iconGroup
|
|
31
32
|
}, icon, jsx("span", {
|
|
32
33
|
css: dropdownExpandContainer
|
|
33
|
-
}, jsx(
|
|
34
|
-
|
|
34
|
+
}, jsx(ChevronDownIcon, {
|
|
35
|
+
color: "currentColor",
|
|
36
|
+
spacing: "spacious",
|
|
37
|
+
label: "Expand dropdown menu",
|
|
38
|
+
LEGACY_fallbackIcon: ExpandIcon
|
|
35
39
|
})));
|
|
36
40
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
37
41
|
export default class Dropdown extends Component {
|
|
@@ -142,8 +146,11 @@ export default class Dropdown extends Component {
|
|
|
142
146
|
testId: buttonTestId,
|
|
143
147
|
iconAfter: jsx("span", {
|
|
144
148
|
css: dropdownExpandContainer
|
|
145
|
-
}, jsx(
|
|
146
|
-
|
|
149
|
+
}, jsx(ChevronDownIcon, {
|
|
150
|
+
color: "currentColor",
|
|
151
|
+
spacing: "spacious",
|
|
152
|
+
label: "Expand dropdown menu",
|
|
153
|
+
LEGACY_fallbackIcon: ExpandIcon
|
|
147
154
|
})),
|
|
148
155
|
icon: iconBefore,
|
|
149
156
|
onClick: this.toggleOpen,
|
|
@@ -99,7 +99,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
99
99
|
title: item.title,
|
|
100
100
|
href: item.href,
|
|
101
101
|
icon: item.icon ? item.iconFallback ? jsx(ButtonIcon, {
|
|
102
|
-
color: "var(--ds-icon, #44546F)",
|
|
102
|
+
color: item.disabled ? "var(--ds-icon-disabled, #091E424F)" : "var(--ds-icon, #44546F)",
|
|
103
103
|
spacing: "spacious",
|
|
104
104
|
label: item.title,
|
|
105
105
|
LEGACY_fallbackIcon: item.iconFallback,
|
package/dist/esm/ui/Dropdown.js
CHANGED
|
@@ -22,6 +22,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
22
22
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
23
23
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
24
24
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
25
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
25
26
|
import { Divider } from './Divider';
|
|
26
27
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
27
28
|
|
|
@@ -40,8 +41,11 @@ var CompositeIcon = function CompositeIcon(_ref) {
|
|
|
40
41
|
css: iconGroup
|
|
41
42
|
}, icon, jsx("span", {
|
|
42
43
|
css: dropdownExpandContainer
|
|
43
|
-
}, jsx(
|
|
44
|
-
|
|
44
|
+
}, jsx(ChevronDownIcon, {
|
|
45
|
+
color: "currentColor",
|
|
46
|
+
spacing: "spacious",
|
|
47
|
+
label: "Expand dropdown menu",
|
|
48
|
+
LEGACY_fallbackIcon: ExpandIcon
|
|
45
49
|
})));
|
|
46
50
|
};
|
|
47
51
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -158,8 +162,11 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
158
162
|
testId: buttonTestId,
|
|
159
163
|
iconAfter: jsx("span", {
|
|
160
164
|
css: dropdownExpandContainer
|
|
161
|
-
}, jsx(
|
|
162
|
-
|
|
165
|
+
}, jsx(ChevronDownIcon, {
|
|
166
|
+
color: "currentColor",
|
|
167
|
+
spacing: "spacious",
|
|
168
|
+
label: "Expand dropdown menu",
|
|
169
|
+
LEGACY_fallbackIcon: ExpandIcon
|
|
163
170
|
})),
|
|
164
171
|
icon: iconBefore,
|
|
165
172
|
onClick: this.toggleOpen,
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -104,7 +104,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
104
104
|
title: item.title,
|
|
105
105
|
href: item.href,
|
|
106
106
|
icon: item.icon ? item.iconFallback ? jsx(ButtonIcon, {
|
|
107
|
-
color: "var(--ds-icon, #44546F)",
|
|
107
|
+
color: item.disabled ? "var(--ds-icon-disabled, #091E424F)" : "var(--ds-icon, #44546F)",
|
|
108
108
|
spacing: "spacious",
|
|
109
109
|
label: item.title,
|
|
110
110
|
LEGACY_fallbackIcon: item.iconFallback,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.14",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@atlaskit/adf-utils": "^19.9.0",
|
|
27
27
|
"@atlaskit/button": "^20.2.0",
|
|
28
28
|
"@atlaskit/checkbox": "^14.0.0",
|
|
29
|
-
"@atlaskit/editor-common": "^93.
|
|
29
|
+
"@atlaskit/editor-common": "^93.5.0",
|
|
30
30
|
"@atlaskit/editor-palette": "1.6.1",
|
|
31
|
-
"@atlaskit/editor-plugin-block-controls": "^2.
|
|
31
|
+
"@atlaskit/editor-plugin-block-controls": "^2.6.0",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^1.3.0",
|
|
33
33
|
"@atlaskit/editor-plugin-copy-button": "^1.3.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|