@atlaskit/editor-plugin-floating-toolbar 1.13.13 → 1.13.15
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 +16 -0
- package/dist/cjs/ui/Dropdown.js +11 -4
- package/dist/cjs/ui/EmojiPickerButton.js +6 -1
- package/dist/es2019/ui/Dropdown.js +11 -4
- package/dist/es2019/ui/EmojiPickerButton.js +6 -1
- package/dist/esm/ui/Dropdown.js +11 -4
- package/dist/esm/ui/EmojiPickerButton.js +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.13.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152823)
|
|
8
|
+
[`0ec705650807f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ec705650807f) -
|
|
9
|
+
[ux] ED-25090: ED-25090: Migrated link toolbar and panel toolbar to use the new icons
|
|
10
|
+
|
|
11
|
+
## 1.13.14
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#152594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152594)
|
|
16
|
+
[`4f17733c95c94`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f17733c95c94) -
|
|
17
|
+
[ux] ED-25093: Migrated media toolbar to use the new icons
|
|
18
|
+
|
|
3
19
|
## 1.13.13
|
|
4
20
|
|
|
5
21
|
### 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,
|
|
@@ -13,6 +13,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
13
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
15
15
|
var _emoji = require("@atlaskit/emoji");
|
|
16
|
+
var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/core/emoji-add"));
|
|
16
17
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
17
18
|
var _EditorEmojiAddIcon = _interopRequireDefault(require("./EditorEmojiAddIcon"));
|
|
18
19
|
/**
|
|
@@ -128,6 +129,10 @@ var EmojiPickerButton = exports.EmojiPickerButton = function EmojiPickerButton(p
|
|
|
128
129
|
ref: buttonRef,
|
|
129
130
|
isSelected: props.isSelected,
|
|
130
131
|
"aria-label": title,
|
|
131
|
-
iconBefore: (0, _react2.jsx)(
|
|
132
|
+
iconBefore: (0, _react2.jsx)(_emojiAdd.default, {
|
|
133
|
+
color: "currentColor",
|
|
134
|
+
LEGACY_fallbackIcon: _EditorEmojiAddIcon.default,
|
|
135
|
+
label: "emoji-picker-button"
|
|
136
|
+
})
|
|
132
137
|
})), renderPopup());
|
|
133
138
|
};
|
|
@@ -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,
|
|
@@ -11,6 +11,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
11
11
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
12
12
|
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
13
13
|
import { EmojiPicker } from '@atlaskit/emoji';
|
|
14
|
+
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
14
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
16
|
import EditorEmojiAddIcon from './EditorEmojiAddIcon';
|
|
16
17
|
|
|
@@ -116,6 +117,10 @@ export const EmojiPickerButton = props => {
|
|
|
116
117
|
ref: buttonRef,
|
|
117
118
|
isSelected: props.isSelected,
|
|
118
119
|
"aria-label": title,
|
|
119
|
-
iconBefore: jsx(
|
|
120
|
+
iconBefore: jsx(EmojiAddIcon, {
|
|
121
|
+
color: "currentColor",
|
|
122
|
+
LEGACY_fallbackIcon: EditorEmojiAddIcon,
|
|
123
|
+
label: "emoji-picker-button"
|
|
124
|
+
})
|
|
120
125
|
})), renderPopup());
|
|
121
126
|
};
|
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,
|
|
@@ -12,6 +12,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
12
12
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
14
14
|
import { EmojiPicker } from '@atlaskit/emoji';
|
|
15
|
+
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
17
|
import EditorEmojiAddIcon from './EditorEmojiAddIcon';
|
|
17
18
|
|
|
@@ -121,6 +122,10 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
121
122
|
ref: buttonRef,
|
|
122
123
|
isSelected: props.isSelected,
|
|
123
124
|
"aria-label": title,
|
|
124
|
-
iconBefore: jsx(
|
|
125
|
+
iconBefore: jsx(EmojiAddIcon, {
|
|
126
|
+
color: "currentColor",
|
|
127
|
+
LEGACY_fallbackIcon: EditorEmojiAddIcon,
|
|
128
|
+
label: "emoji-picker-button"
|
|
129
|
+
})
|
|
125
130
|
})), renderPopup());
|
|
126
131
|
};
|
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.15",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
41
|
"@atlaskit/emoji": "^67.8.0",
|
|
42
42
|
"@atlaskit/icon": "^22.22.0",
|
|
43
|
-
"@atlaskit/menu": "^2.
|
|
43
|
+
"@atlaskit/menu": "^2.13.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/primitives": "^12.2.0",
|