@atlaskit/editor-plugin-toolbar 3.0.4 → 3.0.5

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-toolbar
2
2
 
3
+ ## 3.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3254a75cdfb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3254a75cdfb7) -
8
+ [ED-29448] clean up experiment platform_editor_toolbar_aifc_patch_2
9
+ - Updated dependencies
10
+
3
11
  ## 3.0.4
4
12
 
5
13
  ### Patch Changes
@@ -90,7 +90,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
90
90
  }, [editorView, intl, api]);
91
91
  var isOffline = connectivityStateMode === 'offline';
92
92
  var isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof _state.TextSelection;
93
- var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof _state.AllSelection && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true);
93
+ var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof _state.AllSelection;
94
94
  var isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
95
95
  var onPositionCalculated = (0, _react.useCallback)(function (position) {
96
96
  var toolbarTitle = _consts.SELECTION_TOOLBAR_LABEL;
@@ -106,7 +106,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
106
106
  if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && editorToolbarDockingPreference === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
107
107
  return null;
108
108
  }
109
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || (0, _coreUtils.isSSR)()) {
109
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' || (0, _coreUtils.isSSR)()) {
110
110
  return null;
111
111
  }
112
112
  return /*#__PURE__*/_react.default.createElement(_ui.Popup, {
@@ -82,7 +82,7 @@ export const SelectionToolbar = ({
82
82
  }, [editorView, intl, api]);
83
83
  const isOffline = connectivityStateMode === 'offline';
84
84
  const isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof TextSelection;
85
- const isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true);
85
+ const isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection;
86
86
  const isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
87
87
  const onPositionCalculated = useCallback(position => {
88
88
  const toolbarTitle = SELECTION_TOOLBAR_LABEL;
@@ -98,7 +98,7 @@ export const SelectionToolbar = ({
98
98
  if (expValEquals('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && editorToolbarDockingPreference === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
99
99
  return null;
100
100
  }
101
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || isSSR()) {
101
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' || isSSR()) {
102
102
  return null;
103
103
  }
104
104
  return /*#__PURE__*/React.createElement(Popup, {
@@ -82,7 +82,7 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
82
82
  }, [editorView, intl, api]);
83
83
  var isOffline = connectivityStateMode === 'offline';
84
84
  var isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof TextSelection;
85
- var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true);
85
+ var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection;
86
86
  var isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
87
87
  var onPositionCalculated = useCallback(function (position) {
88
88
  var toolbarTitle = SELECTION_TOOLBAR_LABEL;
@@ -98,7 +98,7 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
98
98
  if (expValEquals('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && editorToolbarDockingPreference === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
99
99
  return null;
100
100
  }
101
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || isSSR()) {
101
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' || isSSR()) {
102
102
  return null;
103
103
  }
104
104
  return /*#__PURE__*/React.createElement(Popup, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-toolbar": "^0.12.0",
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.1.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.2.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "bind-event-listener": "^3.0.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"