@atlaskit/editor-plugin-floating-toolbar 4.1.15 → 4.1.16

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,14 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 4.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#156549](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/156549)
8
+ [`82ccacbc259a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82ccacbc259a8) -
9
+ Remove autoconvert feature flagged code
10
+ - Updated dependencies
11
+
3
12
  ## 4.1.15
4
13
 
5
14
  ### Patch Changes
@@ -195,42 +195,32 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
195
195
  if (isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(item.key)) {
196
196
  item.disabled = true;
197
197
  }
198
- if ((0, _platformFeatureFlags.fg)('forge-ui-macro-autoconvert')) {
199
- if ('type' in item && item.type === 'dropdown') {
200
- children.push( /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
201
- key: item.id,
202
- title: item.title,
203
- icon: item.icon,
204
- dispatchCommand: dispatchCommand || function () {},
205
- options: item.options,
206
- disabled: item.disabled,
207
- tooltip: item.tooltip,
208
- hideExpandIcon: item.hideExpandIcon,
209
- mountPoint: popupsMountPoint,
210
- boundariesElement: popupsBoundariesElement,
211
- scrollableElement: popupsScrollableElement,
212
- dropdownWidth: item.dropdownWidth,
213
- showSelected: item.showSelected,
214
- buttonTestId: item.testId,
215
- editorView: editorView,
216
- setDisableParentScroll: scrollable ? setDisableScroll : undefined,
217
- dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && "".concat(item.id, "-dropdownList"),
218
- alignDropdownWithToolbar: alignDropdownWithToolbar,
219
- onToggle: item.onToggle,
220
- footer: item.footer,
221
- onMount: item.onMount,
222
- onClick: item.onClick,
223
- pulse: item.pulse
224
- }));
225
- } else {
226
- children.push( /*#__PURE__*/_react.default.createElement(ExtensionButton, {
227
- node: node,
228
- item: item,
229
- editorView: editorView,
230
- applyChangeToContextPanel: applyChangeToContextPanel,
231
- extensionApi: extensionApi
232
- }));
233
- }
198
+ if ('type' in item && item.type === 'dropdown') {
199
+ children.push( /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
200
+ key: item.id,
201
+ title: item.title,
202
+ icon: item.icon,
203
+ dispatchCommand: dispatchCommand || function () {},
204
+ options: item.options,
205
+ disabled: item.disabled,
206
+ tooltip: item.tooltip,
207
+ hideExpandIcon: item.hideExpandIcon,
208
+ mountPoint: popupsMountPoint,
209
+ boundariesElement: popupsBoundariesElement,
210
+ scrollableElement: popupsScrollableElement,
211
+ dropdownWidth: item.dropdownWidth,
212
+ showSelected: item.showSelected,
213
+ buttonTestId: item.testId,
214
+ editorView: editorView,
215
+ setDisableParentScroll: scrollable ? setDisableScroll : undefined,
216
+ dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && "".concat(item.id, "-dropdownList"),
217
+ alignDropdownWithToolbar: alignDropdownWithToolbar,
218
+ onToggle: item.onToggle,
219
+ footer: item.footer,
220
+ onMount: item.onMount,
221
+ onClick: item.onClick,
222
+ pulse: item.pulse
223
+ }));
234
224
  } else {
235
225
  children.push( /*#__PURE__*/_react.default.createElement(ExtensionButton, {
236
226
  node: node,
@@ -118,42 +118,32 @@ export const ExtensionsPlaceholder = props => {
118
118
  if (isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(item.key)) {
119
119
  item.disabled = true;
120
120
  }
121
- if (fg('forge-ui-macro-autoconvert')) {
122
- if ('type' in item && item.type === 'dropdown') {
123
- children.push( /*#__PURE__*/React.createElement(Dropdown, {
124
- key: item.id,
125
- title: item.title,
126
- icon: item.icon,
127
- dispatchCommand: dispatchCommand || (() => {}),
128
- options: item.options,
129
- disabled: item.disabled,
130
- tooltip: item.tooltip,
131
- hideExpandIcon: item.hideExpandIcon,
132
- mountPoint: popupsMountPoint,
133
- boundariesElement: popupsBoundariesElement,
134
- scrollableElement: popupsScrollableElement,
135
- dropdownWidth: item.dropdownWidth,
136
- showSelected: item.showSelected,
137
- buttonTestId: item.testId,
138
- editorView: editorView,
139
- setDisableParentScroll: scrollable ? setDisableScroll : undefined,
140
- dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && `${item.id}-dropdownList`,
141
- alignDropdownWithToolbar: alignDropdownWithToolbar,
142
- onToggle: item.onToggle,
143
- footer: item.footer,
144
- onMount: item.onMount,
145
- onClick: item.onClick,
146
- pulse: item.pulse
147
- }));
148
- } else {
149
- children.push( /*#__PURE__*/React.createElement(ExtensionButton, {
150
- node: node,
151
- item: item,
152
- editorView: editorView,
153
- applyChangeToContextPanel: applyChangeToContextPanel,
154
- extensionApi: extensionApi
155
- }));
156
- }
121
+ if ('type' in item && item.type === 'dropdown') {
122
+ children.push( /*#__PURE__*/React.createElement(Dropdown, {
123
+ key: item.id,
124
+ title: item.title,
125
+ icon: item.icon,
126
+ dispatchCommand: dispatchCommand || (() => {}),
127
+ options: item.options,
128
+ disabled: item.disabled,
129
+ tooltip: item.tooltip,
130
+ hideExpandIcon: item.hideExpandIcon,
131
+ mountPoint: popupsMountPoint,
132
+ boundariesElement: popupsBoundariesElement,
133
+ scrollableElement: popupsScrollableElement,
134
+ dropdownWidth: item.dropdownWidth,
135
+ showSelected: item.showSelected,
136
+ buttonTestId: item.testId,
137
+ editorView: editorView,
138
+ setDisableParentScroll: scrollable ? setDisableScroll : undefined,
139
+ dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && `${item.id}-dropdownList`,
140
+ alignDropdownWithToolbar: alignDropdownWithToolbar,
141
+ onToggle: item.onToggle,
142
+ footer: item.footer,
143
+ onMount: item.onMount,
144
+ onClick: item.onClick,
145
+ pulse: item.pulse
146
+ }));
157
147
  } else {
158
148
  children.push( /*#__PURE__*/React.createElement(ExtensionButton, {
159
149
  node: node,
@@ -186,42 +186,32 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
186
186
  if (isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(item.key)) {
187
187
  item.disabled = true;
188
188
  }
189
- if (fg('forge-ui-macro-autoconvert')) {
190
- if ('type' in item && item.type === 'dropdown') {
191
- children.push( /*#__PURE__*/React.createElement(Dropdown, {
192
- key: item.id,
193
- title: item.title,
194
- icon: item.icon,
195
- dispatchCommand: dispatchCommand || function () {},
196
- options: item.options,
197
- disabled: item.disabled,
198
- tooltip: item.tooltip,
199
- hideExpandIcon: item.hideExpandIcon,
200
- mountPoint: popupsMountPoint,
201
- boundariesElement: popupsBoundariesElement,
202
- scrollableElement: popupsScrollableElement,
203
- dropdownWidth: item.dropdownWidth,
204
- showSelected: item.showSelected,
205
- buttonTestId: item.testId,
206
- editorView: editorView,
207
- setDisableParentScroll: scrollable ? setDisableScroll : undefined,
208
- dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && "".concat(item.id, "-dropdownList"),
209
- alignDropdownWithToolbar: alignDropdownWithToolbar,
210
- onToggle: item.onToggle,
211
- footer: item.footer,
212
- onMount: item.onMount,
213
- onClick: item.onClick,
214
- pulse: item.pulse
215
- }));
216
- } else {
217
- children.push( /*#__PURE__*/React.createElement(ExtensionButton, {
218
- node: node,
219
- item: item,
220
- editorView: editorView,
221
- applyChangeToContextPanel: applyChangeToContextPanel,
222
- extensionApi: extensionApi
223
- }));
224
- }
189
+ if ('type' in item && item.type === 'dropdown') {
190
+ children.push( /*#__PURE__*/React.createElement(Dropdown, {
191
+ key: item.id,
192
+ title: item.title,
193
+ icon: item.icon,
194
+ dispatchCommand: dispatchCommand || function () {},
195
+ options: item.options,
196
+ disabled: item.disabled,
197
+ tooltip: item.tooltip,
198
+ hideExpandIcon: item.hideExpandIcon,
199
+ mountPoint: popupsMountPoint,
200
+ boundariesElement: popupsBoundariesElement,
201
+ scrollableElement: popupsScrollableElement,
202
+ dropdownWidth: item.dropdownWidth,
203
+ showSelected: item.showSelected,
204
+ buttonTestId: item.testId,
205
+ editorView: editorView,
206
+ setDisableParentScroll: scrollable ? setDisableScroll : undefined,
207
+ dropdownListId: (item === null || item === void 0 ? void 0 : item.id) && "".concat(item.id, "-dropdownList"),
208
+ alignDropdownWithToolbar: alignDropdownWithToolbar,
209
+ onToggle: item.onToggle,
210
+ footer: item.footer,
211
+ onMount: item.onMount,
212
+ onClick: item.onClick,
213
+ pulse: item.pulse
214
+ }));
225
215
  } else {
226
216
  children.push( /*#__PURE__*/React.createElement(ExtensionButton, {
227
217
  node: node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "4.1.15",
3
+ "version": "4.1.16",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/primitives": "^14.8.0",
51
51
  "@atlaskit/select": "^20.6.0",
52
52
  "@atlaskit/theme": "^18.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^5.7.0",
53
+ "@atlaskit/tmp-editor-statsig": "^5.8.0",
54
54
  "@atlaskit/tokens": "^5.0.0",
55
55
  "@atlaskit/tooltip": "^20.2.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -125,9 +125,6 @@
125
125
  "platform_editor_use_nested_table_pm_nodes": {
126
126
  "type": "boolean"
127
127
  },
128
- "forge-ui-macro-autoconvert": {
129
- "type": "boolean"
130
- },
131
128
  "editor_a11y_remove_redundant_wrap_icon_label": {
132
129
  "type": "boolean"
133
130
  },