@atlaskit/editor-plugin-selection-toolbar 3.6.8 → 3.6.9

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,14 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 3.6.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#161893](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161893)
8
+ [`432e1c30874a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/432e1c30874a0) -
9
+ controls performance gating switch to experiment
10
+ - Updated dependencies
11
+
3
12
  ## 3.6.8
4
13
 
5
14
  ### Patch Changes
@@ -11,6 +11,7 @@ var _react = require("react");
11
11
  var _bindEventListener = require("bind-event-listener");
12
12
  var _monitoring = require("@atlaskit/editor-common/monitoring");
13
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
15
  var PageVisibilityWatcher = exports.PageVisibilityWatcher = function PageVisibilityWatcher(_ref) {
15
16
  var api = _ref.api,
16
17
  userPreferencesProvider = _ref.userPreferencesProvider;
@@ -92,7 +93,7 @@ var PageVisibilityWatcher = exports.PageVisibilityWatcher = function PageVisibil
92
93
  return _ref2.apply(this, arguments);
93
94
  };
94
95
  }();
95
- if (!(0, _platformFeatureFlags.fg)('platform_disable_docking_preference_request')) {
96
+ if ((0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', false)) {
96
97
  refreshPrefrerence();
97
98
  }
98
99
  return (0, _bindEventListener.bind)(document, {
@@ -2,6 +2,7 @@ import { useEffect } from 'react';
2
2
  import { bind } from 'bind-event-listener';
3
3
  import { logException } from '@atlaskit/editor-common/monitoring';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
6
  export const PageVisibilityWatcher = ({
6
7
  api,
7
8
  userPreferencesProvider
@@ -41,7 +42,7 @@ export const PageVisibilityWatcher = ({
41
42
  api === null || api === void 0 ? void 0 : (_api$selectionToolbar4 = api.selectionToolbar) === null || _api$selectionToolbar4 === void 0 ? void 0 : (_api$selectionToolbar5 = _api$selectionToolbar4.actions) === null || _api$selectionToolbar5 === void 0 ? void 0 : (_api$selectionToolbar6 = _api$selectionToolbar5.refreshToolbarDocking) === null || _api$selectionToolbar6 === void 0 ? void 0 : _api$selectionToolbar6.call(_api$selectionToolbar5);
42
43
  }
43
44
  };
44
- if (!fg('platform_disable_docking_preference_request')) {
45
+ if (editorExperiment('platform_editor_controls_performance_fixes', false)) {
45
46
  refreshPrefrerence();
46
47
  }
47
48
  return bind(document, {
@@ -4,6 +4,7 @@ import { useEffect } from 'react';
4
4
  import { bind } from 'bind-event-listener';
5
5
  import { logException } from '@atlaskit/editor-common/monitoring';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
8
  export var PageVisibilityWatcher = function PageVisibilityWatcher(_ref) {
8
9
  var api = _ref.api,
9
10
  userPreferencesProvider = _ref.userPreferencesProvider;
@@ -85,7 +86,7 @@ export var PageVisibilityWatcher = function PageVisibilityWatcher(_ref) {
85
86
  return _ref2.apply(this, arguments);
86
87
  };
87
88
  }();
88
- if (!fg('platform_disable_docking_preference_request')) {
89
+ if (editorExperiment('platform_editor_controls_performance_fixes', false)) {
89
90
  refreshPrefrerence();
90
91
  }
91
92
  return bind(document, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "3.6.8",
3
+ "version": "3.6.9",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/icon-lab": "^4.17.0",
45
45
  "@atlaskit/menu": "^8.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^5.2.0",
47
+ "@atlaskit/tmp-editor-statsig": "^5.4.0",
48
48
  "@atlaskit/tokens": "^4.9.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
@@ -112,9 +112,6 @@
112
112
  },
113
113
  "platform_editor_controls_patch_8": {
114
114
  "type": "boolean"
115
- },
116
- "platform_disable_docking_preference_request": {
117
- "type": "boolean"
118
115
  }
119
116
  }
120
117
  }