@atlaskit/editor-plugin-block-controls 9.0.7 → 9.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,12 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 9.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`57160c29bc79d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57160c29bc79d) -
8
+ Fix exposure for remix button block
9
+
3
10
  ## 9.0.7
4
11
 
5
12
  ### Patch Changes
@@ -13,6 +13,7 @@ var _uuid = _interopRequireDefault(require("uuid"));
13
13
  var _view = require("@atlaskit/editor-prosemirror/view");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
18
  var _dragHandle = require("../ui/drag-handle");
18
19
  var _decorationsCommon = require("./decorations-common");
@@ -85,7 +86,7 @@ var dragHandleDecoration = exports.dragHandleDecoration = function dragHandleDec
85
86
  var element = document.createElement('span');
86
87
  // inline decoration causes focus issues when refocusing Editor into first line
87
88
  element.style.display = 'block';
88
- if ((0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) {
89
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)) {
89
90
  element.setAttribute('data-blocks-decorator-widget', 'true');
90
91
  }
91
92
  element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
@@ -10,6 +10,7 @@ var _uuid = _interopRequireDefault(require("uuid"));
10
10
  var _view = require("@atlaskit/editor-prosemirror/view");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
13
14
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
15
  var _quickInsertButton = require("../ui/quick-insert-button");
15
16
  var _marks = require("./utils/marks");
@@ -76,7 +77,7 @@ var quickInsertButtonDecoration = exports.quickInsertButtonDecoration = function
76
77
  }
77
78
  element.contentEditable = 'false';
78
79
  element.setAttribute('data-blocks-quick-insert-container', 'true');
79
- if ((0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) {
80
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)) {
80
81
  element.setAttribute('data-blocks-quick-insert-button', 'true');
81
82
  }
82
83
  element.setAttribute('data-testid', 'block-ctrl-quick-insert-button');
@@ -63,7 +63,7 @@ var handleMouseOver = exports.handleMouseOver = function handleMouseOver(view, e
63
63
  // We shouldn't be firing mouse over transactions when the editor is disabled,
64
64
  // except in view mode when right-side controls are enabled (show controls on block hover)
65
65
  var rightSideControlsEnabled = (_api$blockControls$sh = api === null || api === void 0 || (_api$blockControls2 = api.blockControls) === null || _api$blockControls2 === void 0 || (_api$blockControls2 = _api$blockControls2.sharedState.currentState()) === null || _api$blockControls2 === void 0 ? void 0 : _api$blockControls2.rightSideControlsEnabled) !== null && _api$blockControls$sh !== void 0 ? _api$blockControls$sh : false;
66
- if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)))) {
66
+ if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)))) {
67
67
  return false;
68
68
  }
69
69
 
@@ -89,7 +89,7 @@ var handleMouseOver = exports.handleMouseOver = function handleMouseOver(view, e
89
89
 
90
90
  // When hovering over the right-edge button (rendered in a portal outside the block), resolve the
91
91
  // block from the container's anchor so activeNode stays set and the button remains visible.
92
- if (!rootElement && rightSideControlsEnabled && (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) {
92
+ if (!rootElement && rightSideControlsEnabled && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)) {
93
93
  var rightEdgeContainer = target === null || target === void 0 ? void 0 : target.closest('[data-blocks-right-edge-button-container]');
94
94
  if (rightEdgeContainer) {
95
95
  var anchor = rightEdgeContainer.getAttribute('data-blocks-right-edge-button-anchor');
@@ -468,7 +468,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
468
468
  _iterator.f();
469
469
  }
470
470
  }
471
- if (rightSideControlsEnabled && isViewMode && (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) {
471
+ if (rightSideControlsEnabled && isViewMode && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)) {
472
472
  var _iterator2 = _createForOfIteratorHelper(nodeDecorationRegistry),
473
473
  _step2;
474
474
  try {
@@ -650,7 +650,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
650
650
  } finally {
651
651
  _iterator5.f();
652
652
  }
653
- } else if (isViewMode && rightSideControlsEnabled && (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) {
653
+ } else if (isViewMode && rightSideControlsEnabled && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true)) {
654
654
  // Remove view-mode right-side decorations when no active node
655
655
  var _iterator6 = _createForOfIteratorHelper(nodeDecorationRegistry),
656
656
  _step6;
@@ -811,8 +811,9 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
811
811
  var isDisabled = api === null || api === void 0 || (_api$editorDisabled = api.editorDisabled) === null || _api$editorDisabled === void 0 || (_api$editorDisabled = _api$editorDisabled.sharedState.currentState()) === null || _api$editorDisabled === void 0 ? void 0 : _api$editorDisabled.editorDisabled;
812
812
  if (isDisabled) {
813
813
  var _api$editorViewMode2;
814
+ var remixRightSideEnabled = rightSideControlsEnabled && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true);
814
815
  // Hide decorations when disabled, except in view mode when right-side controls are enabled
815
- if (!(rightSideControlsEnabled && (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true)) || (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) !== 'view') {
816
+ if (!remixRightSideEnabled || (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) !== 'view') {
816
817
  return;
817
818
  }
818
819
  }
@@ -1124,7 +1124,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref3) {
1124
1124
  onDrop: handleOnDrop,
1125
1125
  disabled: dragHandleDisabled,
1126
1126
  "data-editor-block-ctrl-drag-handle": true,
1127
- "data-blocks-drag-handle": (0, _expValEquals.expValEquals)('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1127
+ "data-blocks-drag-handle": (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1128
1128
  "data-testid": "block-ctrl-drag-handle",
1129
1129
  "aria-label": dragHandleAriaLabel,
1130
1130
  onBlur: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) ? function () {
@@ -6,6 +6,7 @@ import uuid from 'uuid';
6
6
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
11
  import { DragHandle, DragHandleWithVisibility } from '../ui/drag-handle';
11
12
  import { TYPE_HANDLE_DEC, TYPE_NODE_DEC, unmountDecorations } from './decorations-common';
@@ -76,7 +77,7 @@ export const dragHandleDecoration = ({
76
77
  const element = document.createElement('span');
77
78
  // inline decoration causes focus issues when refocusing Editor into first line
78
79
  element.style.display = 'block';
79
- if (expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
80
+ if (expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
80
81
  element.setAttribute('data-blocks-decorator-widget', 'true');
81
82
  }
82
83
  element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
@@ -4,6 +4,7 @@ import uuid from 'uuid';
4
4
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
9
  import { QuickInsertWithVisibility } from '../ui/quick-insert-button';
9
10
  import { getActiveBlockMarks } from './utils/marks';
@@ -67,7 +68,7 @@ export const quickInsertButtonDecoration = ({
67
68
  }
68
69
  element.contentEditable = 'false';
69
70
  element.setAttribute('data-blocks-quick-insert-container', 'true');
70
- if (expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
71
+ if (expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
71
72
  element.setAttribute('data-blocks-quick-insert-button', 'true');
72
73
  }
73
74
  element.setAttribute('data-testid', 'block-ctrl-quick-insert-button');
@@ -55,7 +55,7 @@ export const handleMouseOver = (view, event, api) => {
55
55
  // We shouldn't be firing mouse over transactions when the editor is disabled,
56
56
  // except in view mode when right-side controls are enabled (show controls on block hover)
57
57
  const rightSideControlsEnabled = (_api$blockControls$sh = api === null || api === void 0 ? void 0 : (_api$blockControls2 = api.blockControls) === null || _api$blockControls2 === void 0 ? void 0 : (_api$blockControls2$s = _api$blockControls2.sharedState.currentState()) === null || _api$blockControls2$s === void 0 ? void 0 : _api$blockControls2$s.rightSideControlsEnabled) !== null && _api$blockControls$sh !== void 0 ? _api$blockControls$sh : false;
58
- if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)))) {
58
+ if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)))) {
59
59
  return false;
60
60
  }
61
61
 
@@ -81,7 +81,7 @@ export const handleMouseOver = (view, event, api) => {
81
81
 
82
82
  // When hovering over the right-edge button (rendered in a portal outside the block), resolve the
83
83
  // block from the container's anchor so activeNode stays set and the button remains visible.
84
- if (!rootElement && rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
84
+ if (!rootElement && rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
85
85
  const rightEdgeContainer = target === null || target === void 0 ? void 0 : target.closest('[data-blocks-right-edge-button-container]');
86
86
  if (rightEdgeContainer) {
87
87
  const anchor = rightEdgeContainer.getAttribute('data-blocks-right-edge-button-anchor');
@@ -444,7 +444,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, flags, nod
444
444
  decorations = decorations.remove(old);
445
445
  }
446
446
  }
447
- if (rightSideControlsEnabled && isViewMode && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
447
+ if (rightSideControlsEnabled && isViewMode && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
448
448
  for (const factory of nodeDecorationRegistry) {
449
449
  if (factory.showInViewMode) {
450
450
  var _activeNode1, _activeNode10;
@@ -564,7 +564,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, flags, nod
564
564
  decorations = decorations.add(newState.doc, [dec]);
565
565
  }
566
566
  }
567
- } else if (isViewMode && rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
567
+ } else if (isViewMode && rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
568
568
  // Remove view-mode right-side decorations when no active node
569
569
  for (const factory of nodeDecorationRegistry) {
570
570
  if (factory.showInViewMode) {
@@ -710,8 +710,9 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI, nodeDecora
710
710
  const isDisabled = api === null || api === void 0 ? void 0 : (_api$editorDisabled = api.editorDisabled) === null || _api$editorDisabled === void 0 ? void 0 : (_api$editorDisabled$s = _api$editorDisabled.sharedState.currentState()) === null || _api$editorDisabled$s === void 0 ? void 0 : _api$editorDisabled$s.editorDisabled;
711
711
  if (isDisabled) {
712
712
  var _api$editorViewMode2, _api$editorViewMode2$;
713
+ const remixRightSideEnabled = rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true);
713
714
  // Hide decorations when disabled, except in view mode when right-side controls are enabled
714
- if (!(rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) || (api === null || api === void 0 ? void 0 : (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : (_api$editorViewMode2$ = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2$ === void 0 ? void 0 : _api$editorViewMode2$.mode) !== 'view') {
715
+ if (!remixRightSideEnabled || (api === null || api === void 0 ? void 0 : (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : (_api$editorViewMode2$ = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2$ === void 0 ? void 0 : _api$editorViewMode2$.mode) !== 'view') {
715
716
  return;
716
717
  }
717
718
  }
@@ -1112,7 +1112,7 @@ export const DragHandle = ({
1112
1112
  onDrop: handleOnDrop,
1113
1113
  disabled: dragHandleDisabled,
1114
1114
  "data-editor-block-ctrl-drag-handle": true,
1115
- "data-blocks-drag-handle": expValEquals('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1115
+ "data-blocks-drag-handle": expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1116
1116
  "data-testid": "block-ctrl-drag-handle",
1117
1117
  "aria-label": dragHandleAriaLabel,
1118
1118
  onBlur: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? () => setIsFocused(false) : undefined
@@ -7,6 +7,7 @@ import uuid from 'uuid';
7
7
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
10
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
12
  import { DragHandle, DragHandleWithVisibility } from '../ui/drag-handle';
12
13
  import { TYPE_HANDLE_DEC, TYPE_NODE_DEC, unmountDecorations } from './decorations-common';
@@ -77,7 +78,7 @@ export var dragHandleDecoration = function dragHandleDecoration(_ref) {
77
78
  var element = document.createElement('span');
78
79
  // inline decoration causes focus issues when refocusing Editor into first line
79
80
  element.style.display = 'block';
80
- if (expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
81
+ if (expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
81
82
  element.setAttribute('data-blocks-decorator-widget', 'true');
82
83
  }
83
84
  element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
@@ -4,6 +4,7 @@ import uuid from 'uuid';
4
4
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
9
  import { QuickInsertWithVisibility } from '../ui/quick-insert-button';
9
10
  import { getActiveBlockMarks } from './utils/marks';
@@ -68,7 +69,7 @@ export var quickInsertButtonDecoration = function quickInsertButtonDecoration(_r
68
69
  }
69
70
  element.contentEditable = 'false';
70
71
  element.setAttribute('data-blocks-quick-insert-container', 'true');
71
- if (expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
72
+ if (expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
72
73
  element.setAttribute('data-blocks-quick-insert-button', 'true');
73
74
  }
74
75
  element.setAttribute('data-testid', 'block-ctrl-quick-insert-button');
@@ -56,7 +56,7 @@ export var handleMouseOver = function handleMouseOver(view, event, api) {
56
56
  // We shouldn't be firing mouse over transactions when the editor is disabled,
57
57
  // except in view mode when right-side controls are enabled (show controls on block hover)
58
58
  var rightSideControlsEnabled = (_api$blockControls$sh = api === null || api === void 0 || (_api$blockControls2 = api.blockControls) === null || _api$blockControls2 === void 0 || (_api$blockControls2 = _api$blockControls2.sharedState.currentState()) === null || _api$blockControls2 === void 0 ? void 0 : _api$blockControls2.rightSideControlsEnabled) !== null && _api$blockControls$sh !== void 0 ? _api$blockControls$sh : false;
59
- if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)))) {
59
+ if (editorDisabled && (!isViewMode || !(rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)))) {
60
60
  return false;
61
61
  }
62
62
 
@@ -82,7 +82,7 @@ export var handleMouseOver = function handleMouseOver(view, event, api) {
82
82
 
83
83
  // When hovering over the right-edge button (rendered in a portal outside the block), resolve the
84
84
  // block from the container's anchor so activeNode stays set and the button remains visible.
85
- if (!rootElement && rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
85
+ if (!rootElement && rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
86
86
  var rightEdgeContainer = target === null || target === void 0 ? void 0 : target.closest('[data-blocks-right-edge-button-container]');
87
87
  if (rightEdgeContainer) {
88
88
  var anchor = rightEdgeContainer.getAttribute('data-blocks-right-edge-button-anchor');
@@ -461,7 +461,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, flag
461
461
  _iterator.f();
462
462
  }
463
463
  }
464
- if (rightSideControlsEnabled && isViewMode && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
464
+ if (rightSideControlsEnabled && isViewMode && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
465
465
  var _iterator2 = _createForOfIteratorHelper(nodeDecorationRegistry),
466
466
  _step2;
467
467
  try {
@@ -643,7 +643,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, flag
643
643
  } finally {
644
644
  _iterator5.f();
645
645
  }
646
- } else if (isViewMode && rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) {
646
+ } else if (isViewMode && rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true)) {
647
647
  // Remove view-mode right-side decorations when no active node
648
648
  var _iterator6 = _createForOfIteratorHelper(nodeDecorationRegistry),
649
649
  _step6;
@@ -805,8 +805,9 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
805
805
  var isDisabled = api === null || api === void 0 || (_api$editorDisabled = api.editorDisabled) === null || _api$editorDisabled === void 0 || (_api$editorDisabled = _api$editorDisabled.sharedState.currentState()) === null || _api$editorDisabled === void 0 ? void 0 : _api$editorDisabled.editorDisabled;
806
806
  if (isDisabled) {
807
807
  var _api$editorViewMode2;
808
+ var remixRightSideEnabled = rightSideControlsEnabled && expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true);
808
809
  // Hide decorations when disabled, except in view mode when right-side controls are enabled
809
- if (!(rightSideControlsEnabled && expValEquals('confluence_remix_icon_right_side', 'isEnabled', true)) || (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) !== 'view') {
810
+ if (!remixRightSideEnabled || (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) !== 'view') {
810
811
  return;
811
812
  }
812
813
  }
@@ -1121,7 +1121,7 @@ export var DragHandle = function DragHandle(_ref3) {
1121
1121
  onDrop: handleOnDrop,
1122
1122
  disabled: dragHandleDisabled,
1123
1123
  "data-editor-block-ctrl-drag-handle": true,
1124
- "data-blocks-drag-handle": expValEquals('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1124
+ "data-blocks-drag-handle": expValEqualsNoExposure('confluence_remix_icon_right_side', 'isEnabled', true) || undefined,
1125
1125
  "data-testid": "block-ctrl-drag-handle",
1126
1126
  "aria-label": dragHandleAriaLabel,
1127
1127
  onBlur: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "9.0.7",
3
+ "version": "9.0.8",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
57
57
  "@atlaskit/primitives": "^18.0.0",
58
58
  "@atlaskit/theme": "^22.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^40.2.0",
59
+ "@atlaskit/tmp-editor-statsig": "^40.3.0",
60
60
  "@atlaskit/tokens": "^11.1.0",
61
61
  "@atlaskit/tooltip": "^20.14.0",
62
62
  "@babel/runtime": "^7.0.0",
@@ -67,7 +67,7 @@
67
67
  "uuid": "^3.1.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@atlaskit/editor-common": "^112.4.0",
70
+ "@atlaskit/editor-common": "^112.5.0",
71
71
  "react": "^18.2.0",
72
72
  "react-dom": "^18.2.0",
73
73
  "react-intl-next": "npm:react-intl@^5.18.1"