@atlaskit/editor-plugin-floating-toolbar 28.0.7 → 29.0.1

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
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 29.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be1dd1cd5c9e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be1dd1cd5c9e2) -
8
+ Forward leading icons for extension contextual toolbar dropdowns.
9
+ - Updated dependencies
10
+
11
+ ## 29.0.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 28.0.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 28.0.7
4
24
 
5
25
  ### Patch Changes
@@ -237,10 +237,12 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
237
237
  item.disabled = true;
238
238
  }
239
239
  if ('type' in item && item.type === 'dropdown') {
240
+ var IconBefore = item.iconBefore;
240
241
  children.push( /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
241
242
  key: item.id,
242
243
  title: item.title,
243
244
  icon: item.icon,
245
+ iconBefore: IconBefore ? /*#__PURE__*/_react.default.createElement(IconBefore, null) : undefined,
244
246
  dispatchCommand: dispatchCommand || function () {},
245
247
  options: item.options,
246
248
  disabled: item.disabled,
@@ -159,10 +159,12 @@ export const ExtensionsPlaceholder = props => {
159
159
  item.disabled = true;
160
160
  }
161
161
  if ('type' in item && item.type === 'dropdown') {
162
+ const IconBefore = item.iconBefore;
162
163
  children.push( /*#__PURE__*/React.createElement(Dropdown, {
163
164
  key: item.id,
164
165
  title: item.title,
165
166
  icon: item.icon,
167
+ iconBefore: IconBefore ? /*#__PURE__*/React.createElement(IconBefore, null) : undefined,
166
168
  dispatchCommand: dispatchCommand || (() => {}),
167
169
  options: item.options,
168
170
  disabled: item.disabled,
@@ -227,10 +227,12 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
227
227
  item.disabled = true;
228
228
  }
229
229
  if ('type' in item && item.type === 'dropdown') {
230
+ var IconBefore = item.iconBefore;
230
231
  children.push( /*#__PURE__*/React.createElement(Dropdown, {
231
232
  key: item.id,
232
233
  title: item.title,
233
234
  icon: item.icon,
235
+ iconBefore: IconBefore ? /*#__PURE__*/React.createElement(IconBefore, null) : undefined,
234
236
  dispatchCommand: dispatchCommand || function () {},
235
237
  options: item.options,
236
238
  disabled: item.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "28.0.7",
3
+ "version": "29.0.1",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,16 +25,16 @@
25
25
  "@atlaskit/button": "^25.4.0",
26
26
  "@atlaskit/checkbox": "^19.3.0",
27
27
  "@atlaskit/editor-palette": "^3.5.0",
28
- "@atlaskit/editor-plugin-analytics": "^26.0.0",
29
- "@atlaskit/editor-plugin-context-panel": "^28.0.0",
30
- "@atlaskit/editor-plugin-copy-button": "^26.0.0",
31
- "@atlaskit/editor-plugin-decorations": "^26.0.0",
32
- "@atlaskit/editor-plugin-editor-disabled": "^26.0.0",
33
- "@atlaskit/editor-plugin-editor-viewmode": "^28.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^27.0.0",
35
- "@atlaskit/editor-plugin-extension": "^29.0.0",
36
- "@atlaskit/editor-plugin-interaction": "^40.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^24.0.0",
28
+ "@atlaskit/editor-plugin-analytics": "^27.0.0",
29
+ "@atlaskit/editor-plugin-context-panel": "^29.0.0",
30
+ "@atlaskit/editor-plugin-copy-button": "^27.0.0",
31
+ "@atlaskit/editor-plugin-decorations": "^27.0.0",
32
+ "@atlaskit/editor-plugin-editor-disabled": "^27.0.0",
33
+ "@atlaskit/editor-plugin-editor-viewmode": "^29.0.0",
34
+ "@atlaskit/editor-plugin-emoji": "^28.0.0",
35
+ "@atlaskit/editor-plugin-extension": "^30.0.0",
36
+ "@atlaskit/editor-plugin-interaction": "^41.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^25.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^9.0.0",
39
39
  "@atlaskit/emoji": "^72.5.0",
40
40
  "@atlaskit/icon": "^38.0.0",
@@ -44,8 +44,8 @@
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/primitives": "^22.5.0",
46
46
  "@atlaskit/select": "^23.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^234.0.0",
48
- "@atlaskit/tokens": "^20.4.0",
47
+ "@atlaskit/tmp-editor-statsig": "^235.0.0",
48
+ "@atlaskit/tokens": "^20.5.0",
49
49
  "@atlaskit/tooltip": "^24.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -56,7 +56,7 @@
56
56
  "react-loosely-lazy": "^1.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^130.5.0",
59
+ "@atlaskit/editor-common": "^131.0.0",
60
60
  "react": "^18.2.0 || ^19.2.0",
61
61
  "react-dom": "^18.2.0 || ^19.2.0",
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"