@atlaskit/editor-plugin-block-controls 16.0.7 → 16.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-block-controls
2
2
 
3
+ ## 16.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`698eb28037b8a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/698eb28037b8a) -
8
+ Clean up experiment `platform_editor_drag_handle_keyboard_a11y`
9
+ - Updated dependencies
10
+
3
11
  ## 16.0.7
4
12
 
5
13
  ### Patch Changes
@@ -1193,25 +1193,23 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
1193
1193
  if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
1194
1194
  setIsFocused(false);
1195
1195
  }
1196
- if ((0, _expValEquals.expValEquals)('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true)) {
1197
- var _pos = getPos();
1198
- if (_pos !== undefined) {
1199
- var _api$core8;
1200
- api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
1201
- var tr = _ref1.tr;
1202
- tr.setMeta(_main.key, {
1203
- activeNode: {
1204
- pos: _pos,
1205
- anchorName: anchorName,
1206
- nodeType: nodeType,
1207
- handleOptions: {
1208
- isFocused: false
1209
- }
1196
+ var pos = getPos();
1197
+ if (pos !== undefined) {
1198
+ var _api$core8;
1199
+ api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
1200
+ var tr = _ref1.tr;
1201
+ tr.setMeta(_main.key, {
1202
+ activeNode: {
1203
+ pos: pos,
1204
+ anchorName: anchorName,
1205
+ nodeType: nodeType,
1206
+ handleOptions: {
1207
+ isFocused: false
1210
1208
  }
1211
- });
1212
- return tr;
1209
+ }
1213
1210
  });
1214
- }
1211
+ return tr;
1212
+ });
1215
1213
  }
1216
1214
  }
1217
1215
  }, (0, _react2.jsx)(_primitives.Box, {
@@ -1329,7 +1327,7 @@ var DragHandleWithVisibility = exports.DragHandleWithVisibility = function DragH
1329
1327
  return (0, _react2.jsx)(_visibilityContainer.VisibilityContainer, {
1330
1328
  api: api,
1331
1329
  controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
1332
- forceVisibleOnMouseOut: (0, _expValEquals.expValEquals)('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true) && !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1330
+ forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1333
1331
  shouldUseDisplayContents: isLayoutColumn && (0, _platformFeatureFlags.fg)('platform-dst-top-layer-tooltip')
1334
1332
  }, (0, _react2.jsx)(DragHandle, {
1335
1333
  view: view,
@@ -1173,26 +1173,24 @@ export const DragHandle = ({
1173
1173
  if (editorExperiment('platform_editor_block_menu', true)) {
1174
1174
  setIsFocused(false);
1175
1175
  }
1176
- if (expValEquals('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true)) {
1177
- const pos = getPos();
1178
- if (pos !== undefined) {
1179
- var _api$core8;
1180
- api === null || api === void 0 ? void 0 : (_api$core8 = api.core) === null || _api$core8 === void 0 ? void 0 : _api$core8.actions.execute(({
1181
- tr
1182
- }) => {
1183
- tr.setMeta(key, {
1184
- activeNode: {
1185
- pos,
1186
- anchorName,
1187
- nodeType,
1188
- handleOptions: {
1189
- isFocused: false
1190
- }
1176
+ const pos = getPos();
1177
+ if (pos !== undefined) {
1178
+ var _api$core8;
1179
+ api === null || api === void 0 ? void 0 : (_api$core8 = api.core) === null || _api$core8 === void 0 ? void 0 : _api$core8.actions.execute(({
1180
+ tr
1181
+ }) => {
1182
+ tr.setMeta(key, {
1183
+ activeNode: {
1184
+ pos,
1185
+ anchorName,
1186
+ nodeType,
1187
+ handleOptions: {
1188
+ isFocused: false
1191
1189
  }
1192
- });
1193
- return tr;
1190
+ }
1194
1191
  });
1195
- }
1192
+ return tr;
1193
+ });
1196
1194
  }
1197
1195
  }
1198
1196
  }, jsx(Box, {
@@ -1303,7 +1301,7 @@ export const DragHandleWithVisibility = ({
1303
1301
  return jsx(VisibilityContainer, {
1304
1302
  api: api,
1305
1303
  controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
1306
- forceVisibleOnMouseOut: expValEquals('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true) && !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1304
+ forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1307
1305
  shouldUseDisplayContents: isLayoutColumn && fg('platform-dst-top-layer-tooltip')
1308
1306
  }, jsx(DragHandle, {
1309
1307
  view: view,
@@ -1189,25 +1189,23 @@ export var DragHandle = function DragHandle(_ref2) {
1189
1189
  if (editorExperiment('platform_editor_block_menu', true)) {
1190
1190
  setIsFocused(false);
1191
1191
  }
1192
- if (expValEquals('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true)) {
1193
- var _pos = getPos();
1194
- if (_pos !== undefined) {
1195
- var _api$core8;
1196
- api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
1197
- var tr = _ref1.tr;
1198
- tr.setMeta(key, {
1199
- activeNode: {
1200
- pos: _pos,
1201
- anchorName: anchorName,
1202
- nodeType: nodeType,
1203
- handleOptions: {
1204
- isFocused: false
1205
- }
1192
+ var pos = getPos();
1193
+ if (pos !== undefined) {
1194
+ var _api$core8;
1195
+ api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
1196
+ var tr = _ref1.tr;
1197
+ tr.setMeta(key, {
1198
+ activeNode: {
1199
+ pos: pos,
1200
+ anchorName: anchorName,
1201
+ nodeType: nodeType,
1202
+ handleOptions: {
1203
+ isFocused: false
1206
1204
  }
1207
- });
1208
- return tr;
1205
+ }
1209
1206
  });
1210
- }
1207
+ return tr;
1208
+ });
1211
1209
  }
1212
1210
  }
1213
1211
  }, jsx(Box, {
@@ -1325,7 +1323,7 @@ export var DragHandleWithVisibility = function DragHandleWithVisibility(_ref10)
1325
1323
  return jsx(VisibilityContainer, {
1326
1324
  api: api,
1327
1325
  controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
1328
- forceVisibleOnMouseOut: expValEquals('platform_editor_drag_handle_keyboard_a11y', 'isEnabled', true) && !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1326
+ forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
1329
1327
  shouldUseDisplayContents: isLayoutColumn && fg('platform-dst-top-layer-tooltip')
1330
1328
  }, jsx(DragHandle, {
1331
1329
  view: view,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "16.0.7",
3
+ "version": "16.0.8",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.1.0",
51
51
  "@atlaskit/primitives": "^22.2.0",
52
52
  "@atlaskit/theme": "^28.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^152.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^153.0.0",
54
54
  "@atlaskit/tokens": "^16.7.0",
55
55
  "@atlaskit/tooltip": "^24.0.0",
56
56
  "@babel/runtime": "^7.0.0",