@atlaskit/editor-plugin-floating-toolbar 3.4.0 → 3.5.0

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,18 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#138977](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138977)
8
+ [`3d812d3a14c39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3d812d3a14c39) -
9
+ [ux] Revert "Adds a new temporary floating toolbar's config option to hide any toolbars when any
10
+ table's menu is opened."
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 3.4.0
4
17
 
5
18
  ### Minor Changes
@@ -478,10 +478,6 @@ function floatingToolbarPluginFactory(options) {
478
478
  var handler = floatingToolbarHandlers[index];
479
479
  var config = handler(editorState, intl, providerFactory, activeConfigs);
480
480
  if (config) {
481
- if (config.__suppressAllToolbars && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_3')) {
482
- activeConfigs = undefined;
483
- break;
484
- }
485
481
  activeConfigs.push(sanitizeFloatingToolbarConfig(config));
486
482
  }
487
483
  }
@@ -447,15 +447,11 @@ export function floatingToolbarPluginFactory(options) {
447
447
  } = options;
448
448
  const intl = getIntl();
449
449
  const getConfigWithNodeInfo = editorState => {
450
- let activeConfigs = [];
450
+ const activeConfigs = [];
451
451
  for (let index = 0; index < floatingToolbarHandlers.length; index++) {
452
452
  const handler = floatingToolbarHandlers[index];
453
453
  const config = handler(editorState, intl, providerFactory, activeConfigs);
454
454
  if (config) {
455
- if (config.__suppressAllToolbars && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_3')) {
456
- activeConfigs = undefined;
457
- break;
458
- }
459
455
  activeConfigs.push(sanitizeFloatingToolbarConfig(config));
460
456
  }
461
457
  }
@@ -466,10 +466,6 @@ export function floatingToolbarPluginFactory(options) {
466
466
  var handler = floatingToolbarHandlers[index];
467
467
  var config = handler(editorState, intl, providerFactory, activeConfigs);
468
468
  if (config) {
469
- if (config.__suppressAllToolbars && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_3')) {
470
- activeConfigs = undefined;
471
- break;
472
- }
473
469
  activeConfigs.push(sanitizeFloatingToolbarConfig(config));
474
470
  }
475
471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/menu": "^3.2.0",
46
46
  "@atlaskit/modal-dialog": "^14.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/primitives": "^14.3.0",
48
+ "@atlaskit/primitives": "^14.4.0",
49
49
  "@atlaskit/select": "^20.2.0",
50
50
  "@atlaskit/theme": "^18.0.0",
51
51
  "@atlaskit/tmp-editor-statsig": "^4.6.0",
@@ -137,9 +137,6 @@
137
137
  },
138
138
  "platform_editor_controls_patch_2": {
139
139
  "type": "boolean"
140
- },
141
- "platform_editor_controls_patch_3": {
142
- "type": "boolean"
143
140
  }
144
141
  }
145
142
  }