@atlaskit/editor-plugin-selection-toolbar 8.0.0 → 8.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,13 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`490ba37f8d25b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/490ba37f8d25b) -
8
+ Clean up platform_editor_lcm_toolbar_docking_fix feature flag
9
+ - Updated dependencies
10
+
3
11
  ## 8.0.0
4
12
 
5
13
  ### Patch Changes
@@ -109,11 +109,8 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
109
109
  forceToolbarDockingWithoutAnalytics: function forceToolbarDockingWithoutAnalytics(toolbarDocking) {
110
110
  var _api$core$actions$exe6;
111
111
  if ((0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
112
- if ((0, _platformFeatureFlags.fg)('platform_editor_lcm_toolbar_docking_fix')) {
113
- var _api$core$actions$exe5, _api$userPreferences2;
114
- // to avoid nested gate. Will remove when cleaning up platform_editor_lcm_toolbar_docking_fix
115
- return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
116
- }
112
+ var _api$core$actions$exe5, _api$userPreferences2;
113
+ return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
117
114
  }
118
115
  return (_api$core$actions$exe6 = api === null || api === void 0 ? void 0 : api.core.actions.execute((0, _commands.forceToolbarDockingWithoutAnalytics)({
119
116
  toolbarDocking: toolbarDocking,
@@ -102,11 +102,8 @@ export const selectionToolbarPlugin = ({
102
102
  forceToolbarDockingWithoutAnalytics: toolbarDocking => {
103
103
  var _api$core$actions$exe6;
104
104
  if (fg('platform_editor_use_preferences_plugin')) {
105
- if (fg('platform_editor_lcm_toolbar_docking_fix')) {
106
- var _api$core$actions$exe5, _api$userPreferences2;
107
- // to avoid nested gate. Will remove when cleaning up platform_editor_lcm_toolbar_docking_fix
108
- return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
109
- }
105
+ var _api$core$actions$exe5, _api$userPreferences2;
106
+ return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
110
107
  }
111
108
  return (_api$core$actions$exe6 = api === null || api === void 0 ? void 0 : api.core.actions.execute(forceToolbarDockingWithoutAnalytics({
112
109
  toolbarDocking,
@@ -102,11 +102,8 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
102
102
  forceToolbarDockingWithoutAnalytics: function forceToolbarDockingWithoutAnalytics(toolbarDocking) {
103
103
  var _api$core$actions$exe6;
104
104
  if (fg('platform_editor_use_preferences_plugin')) {
105
- if (fg('platform_editor_lcm_toolbar_docking_fix')) {
106
- var _api$core$actions$exe5, _api$userPreferences2;
107
- // to avoid nested gate. Will remove when cleaning up platform_editor_lcm_toolbar_docking_fix
108
- return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
109
- }
105
+ var _api$core$actions$exe5, _api$userPreferences2;
106
+ return (_api$core$actions$exe5 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.actions.updateUserPreference('toolbarDockingPosition', toolbarDocking))) !== null && _api$core$actions$exe5 !== void 0 ? _api$core$actions$exe5 : false;
110
107
  }
111
108
  return (_api$core$actions$exe6 = api === null || api === void 0 ? void 0 : api.core.actions.execute(_forceToolbarDockingWithoutAnalytics({
112
109
  toolbarDocking: toolbarDocking,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -106,9 +106,6 @@
106
106
  "platform_editor_toolbar_aifc_patch_7": {
107
107
  "type": "boolean"
108
108
  },
109
- "platform_editor_lcm_toolbar_docking_fix": {
110
- "type": "boolean"
111
- },
112
109
  "platform_editor_migrate_toolbar_docking": {
113
110
  "type": "boolean"
114
111
  },