@atlaskit/editor-core 207.12.1 → 207.12.2

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-core
2
2
 
3
+ ## 207.12.2
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
  ## 207.12.1
4
13
 
5
14
  ### Patch Changes
@@ -88,11 +88,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
88
88
  interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
89
89
  }
90
90
  var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
91
- // When platform_editor_offline_banner_toolbar_position is enabled we use a different method to
91
+ // When platform_editor_controls_performance_fixes is enabled we use a different method to
92
92
  // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
93
93
  // data-editor-primary-toolbar-hidden on the content area
94
94
  // NOTE: When tidying, this function and the data attribute can be removed
95
- if (!props.isEditorToolbarHidden || (0, _platformFeatureFlags.fg)('platform_editor_offline_banner_toolbar_position')) {
95
+ if (!props.isEditorToolbarHidden || (0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', true)) {
96
96
  return false;
97
97
  }
98
98
  return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "207.12.1";
8
+ var version = exports.version = "207.12.2";
@@ -72,11 +72,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
72
72
  interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
73
73
  }
74
74
  const shouldSetHiddenDataAttribute = () => {
75
- // When platform_editor_offline_banner_toolbar_position is enabled we use a different method to
75
+ // When platform_editor_controls_performance_fixes is enabled we use a different method to
76
76
  // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
77
77
  // data-editor-primary-toolbar-hidden on the content area
78
78
  // NOTE: When tidying, this function and the data attribute can be removed
79
- if (!props.isEditorToolbarHidden || fg('platform_editor_offline_banner_toolbar_position')) {
79
+ if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
80
80
  return false;
81
81
  }
82
82
  return editorExperiment('platform_editor_controls', 'variant1');
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "207.12.1";
2
+ export const version = "207.12.2";
@@ -77,11 +77,11 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
77
77
  interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
78
78
  }
79
79
  var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
80
- // When platform_editor_offline_banner_toolbar_position is enabled we use a different method to
80
+ // When platform_editor_controls_performance_fixes is enabled we use a different method to
81
81
  // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
82
82
  // data-editor-primary-toolbar-hidden on the content area
83
83
  // NOTE: When tidying, this function and the data attribute can be removed
84
- if (!props.isEditorToolbarHidden || fg('platform_editor_offline_banner_toolbar_position')) {
84
+ if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
85
85
  return false;
86
86
  }
87
87
  return editorExperiment('platform_editor_controls', 'variant1');
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "207.12.1";
2
+ export var version = "207.12.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "207.12.1",
3
+ "version": "207.12.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
63
63
  "@atlaskit/react-ufo": "^3.13.0",
64
64
  "@atlaskit/task-decision": "^19.2.0",
65
- "@atlaskit/tmp-editor-statsig": "^5.3.0",
65
+ "@atlaskit/tmp-editor-statsig": "^5.4.0",
66
66
  "@atlaskit/tokens": "^4.9.0",
67
67
  "@atlaskit/tooltip": "^20.2.0",
68
68
  "@atlaskit/width-detector": "^5.0.0",
@@ -199,10 +199,6 @@
199
199
  "type": "boolean",
200
200
  "referenceOnly": true
201
201
  },
202
- "platform_editor_offline_banner_toolbar_position": {
203
- "type": "boolean",
204
- "referenceOnly": true
205
- },
206
202
  "platform_editor_disable_instrumented_plugin": {
207
203
  "type": "boolean"
208
204
  },