@atlaskit/editor-plugin-selection-toolbar 13.0.7 → 13.0.8

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
+ ## 13.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8465eeaf9cc9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8465eeaf9cc9f) -
8
+ Clean up experiment `platform_editor_user_preference_override`
9
+ - Updated dependencies
10
+
3
11
  ## 13.0.7
4
12
 
5
13
  ### Patch Changes
@@ -14,7 +14,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
14
14
  var _utils = require("@atlaskit/editor-common/utils");
15
15
  var _state = require("@atlaskit/editor-prosemirror/state");
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
18
  var _commands = require("./pm-plugins/commands");
20
19
  var _pluginKey = require("./pm-plugins/plugin-key");
@@ -84,9 +83,6 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
84
83
  */
85
84
  overrideToolbarDocking: function overrideToolbarDocking(toolbarDocking) {
86
85
  var _api$userPreferences, _api$core$actions$exe;
87
- if (!(0, _expValEquals.expValEquals)('platform_editor_user_preference_override', 'isEnabled', true)) {
88
- return false;
89
- }
90
86
  var command = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.commands.overrideUserPreference('toolbarDockingPosition', toolbarDocking);
91
87
  if (!command) {
92
88
  return false;
@@ -98,9 +94,6 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
98
94
  */
99
95
  clearToolbarDockingOverride: function clearToolbarDockingOverride() {
100
96
  var _api$userPreferences2, _api$core$actions$exe2;
101
- if (!(0, _expValEquals.expValEquals)('platform_editor_user_preference_override', 'isEnabled', true)) {
102
- return false;
103
- }
104
97
  var command = api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.commands.clearOverrideUserPreference('toolbarDockingPosition');
105
98
  if (!command) {
106
99
  return false;
@@ -5,7 +5,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { calculateToolbarPositionAboveSelection, calculateToolbarPositionOnCellSelection, calculateToolbarPositionTrackHead } from '@atlaskit/editor-common/utils';
6
6
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  import { setToolbarDocking, toggleToolbar, updateToolbarDocking, forceToolbarDockingWithoutAnalytics } from './pm-plugins/commands';
11
10
  import { selectionToolbarPluginKey } from './pm-plugins/plugin-key';
@@ -77,9 +76,6 @@ export const selectionToolbarPlugin = ({
77
76
  */
78
77
  overrideToolbarDocking: toolbarDocking => {
79
78
  var _api$userPreferences, _api$core$actions$exe;
80
- if (!expValEquals('platform_editor_user_preference_override', 'isEnabled', true)) {
81
- return false;
82
- }
83
79
  const command = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.commands.overrideUserPreference('toolbarDockingPosition', toolbarDocking);
84
80
  if (!command) {
85
81
  return false;
@@ -91,9 +87,6 @@ export const selectionToolbarPlugin = ({
91
87
  */
92
88
  clearToolbarDockingOverride: () => {
93
89
  var _api$userPreferences2, _api$core$actions$exe2;
94
- if (!expValEquals('platform_editor_user_preference_override', 'isEnabled', true)) {
95
- return false;
96
- }
97
90
  const command = api === null || api === void 0 ? void 0 : (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.commands.clearOverrideUserPreference('toolbarDockingPosition');
98
91
  if (!command) {
99
92
  return false;
@@ -9,7 +9,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
9
9
  import { calculateToolbarPositionAboveSelection, calculateToolbarPositionOnCellSelection, calculateToolbarPositionTrackHead } from '@atlaskit/editor-common/utils';
10
10
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
13
  import { setToolbarDocking as _setToolbarDocking, toggleToolbar, updateToolbarDocking, forceToolbarDockingWithoutAnalytics as _forceToolbarDockingWithoutAnalytics } from './pm-plugins/commands';
15
14
  import { selectionToolbarPluginKey } from './pm-plugins/plugin-key';
@@ -77,9 +76,6 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
77
76
  */
78
77
  overrideToolbarDocking: function overrideToolbarDocking(toolbarDocking) {
79
78
  var _api$userPreferences, _api$core$actions$exe;
80
- if (!expValEquals('platform_editor_user_preference_override', 'isEnabled', true)) {
81
- return false;
82
- }
83
79
  var command = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.commands.overrideUserPreference('toolbarDockingPosition', toolbarDocking);
84
80
  if (!command) {
85
81
  return false;
@@ -91,9 +87,6 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
91
87
  */
92
88
  clearToolbarDockingOverride: function clearToolbarDockingOverride() {
93
89
  var _api$userPreferences2, _api$core$actions$exe2;
94
- if (!expValEquals('platform_editor_user_preference_override', 'isEnabled', true)) {
95
- return false;
96
- }
97
90
  var command = api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : _api$userPreferences2.commands.clearOverrideUserPreference('toolbarDockingPosition');
98
91
  if (!command) {
99
92
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "13.0.7",
3
+ "version": "13.0.8",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,13 +37,13 @@
37
37
  "@atlaskit/icon-lab": "^7.1.0",
38
38
  "@atlaskit/menu": "^9.0.0",
39
39
  "@atlaskit/platform-feature-flags": "^2.0.0",
40
- "@atlaskit/tmp-editor-statsig": "^111.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^112.0.0",
41
41
  "@atlaskit/tokens": "^15.0.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "bind-event-listener": "^3.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^116.11.0",
46
+ "@atlaskit/editor-common": "^116.12.0",
47
47
  "react": "^18.2.0",
48
48
  "react-dom": "^18.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"