@atlaskit/editor-plugin-block-controls 3.13.8 → 3.13.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-block-controls
2
2
 
3
+ ## 3.13.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#151481](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151481)
8
+ [`57d45d9fbcb6d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57d45d9fbcb6d) -
9
+ Remove FG platform_editor_controls_sticky_mask
10
+ - Updated dependencies
11
+
3
12
  ## 3.13.8
4
13
 
5
14
  ### Patch Changes
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.shouldMaskNodeControls = exports.shouldBeSticky = exports.getTopPosition = exports.getNodeHeight = exports.getLeftPosition = exports.getControlHeightCSSValue = exports.getControlBottomCSSValue = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
8
  var _consts = require("../../ui/consts");
10
9
  var STICKY_NODES = ['panel', 'table', 'expand', 'layoutSection', 'bodiedExtension'];
@@ -77,6 +76,6 @@ var getControlHeightCSSValue = exports.getControlHeightCSSValue = function getCo
77
76
  var shouldMaskNodeControls = exports.shouldMaskNodeControls = function shouldMaskNodeControls(nodeType, isTopLevelNode) {
78
77
  return (
79
78
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
80
- isTopLevelNode && ['table'].includes(nodeType) && (0, _platformFeatureFlags.fg)('platform_editor_controls_sticky_mask') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
79
+ isTopLevelNode && ['table'].includes(nodeType) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
81
80
  );
82
81
  };
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
2
  import { DRAG_HANDLE_DIVIDER_TOP_ADJUSTMENT, DRAG_HANDLE_H1_TOP_ADJUSTMENT, DRAG_HANDLE_H2_TOP_ADJUSTMENT, DRAG_HANDLE_H4_TOP_ADJUSTMENT, DRAG_HANDLE_H5_TOP_ADJUSTMENT, DRAG_HANDLE_H6_TOP_ADJUSTMENT, DRAG_HANDLE_HEIGHT, DRAG_HANDLE_PARAGRAPH_TOP_ADJUSTMENT, DRAG_HANDLE_WIDTH, dragHandleGap } from '../../ui/consts';
4
3
  const STICKY_NODES = ['panel', 'table', 'expand', 'layoutSection', 'bodiedExtension'];
@@ -69,6 +68,6 @@ export const getControlHeightCSSValue = (nodeHeight, isSticky, isTopLevelNode, f
69
68
  export const shouldMaskNodeControls = (nodeType, isTopLevelNode) => {
70
69
  return (
71
70
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
72
- isTopLevelNode && ['table'].includes(nodeType) && fg('platform_editor_controls_sticky_mask') && editorExperiment('platform_editor_controls', 'variant1')
71
+ isTopLevelNode && ['table'].includes(nodeType) && editorExperiment('platform_editor_controls', 'variant1')
73
72
  );
74
73
  };
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
2
  import { DRAG_HANDLE_DIVIDER_TOP_ADJUSTMENT, DRAG_HANDLE_H1_TOP_ADJUSTMENT, DRAG_HANDLE_H2_TOP_ADJUSTMENT, DRAG_HANDLE_H4_TOP_ADJUSTMENT, DRAG_HANDLE_H5_TOP_ADJUSTMENT, DRAG_HANDLE_H6_TOP_ADJUSTMENT, DRAG_HANDLE_HEIGHT, DRAG_HANDLE_PARAGRAPH_TOP_ADJUSTMENT, DRAG_HANDLE_WIDTH, dragHandleGap } from '../../ui/consts';
4
3
  var STICKY_NODES = ['panel', 'table', 'expand', 'layoutSection', 'bodiedExtension'];
@@ -71,6 +70,6 @@ export var getControlHeightCSSValue = function getControlHeightCSSValue(nodeHeig
71
70
  export var shouldMaskNodeControls = function shouldMaskNodeControls(nodeType, isTopLevelNode) {
72
71
  return (
73
72
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
74
- isTopLevelNode && ['table'].includes(nodeType) && fg('platform_editor_controls_sticky_mask') && editorExperiment('platform_editor_controls', 'variant1')
73
+ isTopLevelNode && ['table'].includes(nodeType) && editorExperiment('platform_editor_controls', 'variant1')
75
74
  );
76
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "3.13.8",
3
+ "version": "3.13.9",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
41
41
  "@atlaskit/editor-plugin-interaction": "^1.0.0",
42
42
  "@atlaskit/editor-plugin-metrics": "^3.4.0",
43
- "@atlaskit/editor-plugin-quick-insert": "^2.4.0",
43
+ "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
44
44
  "@atlaskit/editor-plugin-selection": "^2.2.0",
45
45
  "@atlaskit/editor-plugin-type-ahead": "^2.6.0",
46
46
  "@atlaskit/editor-plugin-user-intent": "^0.1.0",
@@ -178,9 +178,6 @@
178
178
  "platform_editor_user_intent_plugin": {
179
179
  "type": "boolean"
180
180
  },
181
- "platform_editor_controls_sticky_mask": {
182
- "type": "boolean"
183
- },
184
181
  "platform_editor_no_selection_until_interaction": {
185
182
  "type": "boolean"
186
183
  },