@atlaskit/editor-plugin-toolbar 15.0.11 → 16.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,19 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d37dc7e55d62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d37dc7e55d62) -
8
+ Clean up shipped experiment `platform_editor_block_menu`
9
+ - Updated dependencies
10
+
11
+ ## 16.0.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 15.0.11
4
18
 
5
19
  ### Patch Changes
@@ -22,7 +22,6 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
22
22
  var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
23
23
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
24
24
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
25
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
26
25
  var _consts = require("../consts");
27
26
  var _keyboardConfig = require("./keyboard-config");
28
27
  var _utils2 = require("./utils");
@@ -99,7 +98,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
99
98
  if (selectionToolbarConfigEnabled && disableSelectionToolbarWhenPinned || !components || !toolbar) {
100
99
  return null;
101
100
  }
102
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) ||
101
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' ||
103
102
  // hide toolbar when user intent is not default, except when it's dragHandleSelected without cell selection
104
103
  (0, _visibility.isSelectionToolbarSuppressedByUserIntent)(currentUserIntent, isCellSelection) || (0, _coreUtils.isSSR)()) {
105
104
  return null;
@@ -15,7 +15,6 @@ import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useTool
15
15
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
16
16
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
19
18
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
20
19
  import { getKeyboardNavigationConfig } from './keyboard-config';
21
20
  import { getDomRefFromSelection } from './utils';
@@ -92,7 +91,7 @@ export const SelectionToolbar = ({
92
91
  if (selectionToolbarConfigEnabled && disableSelectionToolbarWhenPinned || !components || !toolbar) {
93
92
  return null;
94
93
  }
95
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && editorExperiment('platform_editor_block_menu', true) ||
94
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' ||
96
95
  // hide toolbar when user intent is not default, except when it's dragHandleSelected without cell selection
97
96
  isSelectionToolbarSuppressedByUserIntent(currentUserIntent, isCellSelection) || isSSR()) {
98
97
  return null;
@@ -15,7 +15,6 @@ import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useTool
15
15
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
16
16
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
19
18
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
20
19
  import { getKeyboardNavigationConfig } from './keyboard-config';
21
20
  import { getDomRefFromSelection } from './utils';
@@ -91,7 +90,7 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
91
90
  if (selectionToolbarConfigEnabled && disableSelectionToolbarWhenPinned || !components || !toolbar) {
92
91
  return null;
93
92
  }
94
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && editorExperiment('platform_editor_block_menu', true) ||
93
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' ||
95
94
  // hide toolbar when user intent is not default, except when it's dragHandleSelected without cell selection
96
95
  isSelectionToolbarSuppressedByUserIntent(currentUserIntent, isCellSelection) || isSSR()) {
97
96
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "15.0.11",
3
+ "version": "16.0.1",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,24 +21,24 @@
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
23
  "@atlaskit/browser-apis": "^1.2.0",
24
- "@atlaskit/editor-plugin-analytics": "^18.0.0",
25
- "@atlaskit/editor-plugin-connectivity": "^18.0.0",
26
- "@atlaskit/editor-plugin-editor-viewmode": "^20.0.0",
27
- "@atlaskit/editor-plugin-selection": "^18.0.0",
28
- "@atlaskit/editor-plugin-user-intent": "^16.0.0",
29
- "@atlaskit/editor-plugin-user-preferences": "^16.0.0",
30
- "@atlaskit/editor-prosemirror": "^8.0.0",
24
+ "@atlaskit/editor-plugin-analytics": "^19.0.0",
25
+ "@atlaskit/editor-plugin-connectivity": "^19.0.0",
26
+ "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
27
+ "@atlaskit/editor-plugin-selection": "^19.0.0",
28
+ "@atlaskit/editor-plugin-user-intent": "^17.0.0",
29
+ "@atlaskit/editor-plugin-user-preferences": "^17.0.0",
30
+ "@atlaskit/editor-prosemirror": "^9.0.0",
31
31
  "@atlaskit/editor-shared-styles": "^4.3.0",
32
32
  "@atlaskit/editor-toolbar": "^2.6.0",
33
33
  "@atlaskit/editor-toolbar-model": "^1.2.0",
34
34
  "@atlaskit/platform-feature-experiments": "^0.3.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.2.0",
36
- "@atlaskit/tmp-editor-statsig": "^199.0.0",
36
+ "@atlaskit/tmp-editor-statsig": "^200.0.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "bind-event-listener": "^3.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@atlaskit/editor-common": "^122.11.0",
41
+ "@atlaskit/editor-common": "^123.0.0",
42
42
  "react": "^18.2.0 || ^19.2.0",
43
43
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
44
44
  },