@atlaskit/editor-plugin-block-controls 11.2.19 → 11.3.0

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,18 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 11.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`89a8af72aa2c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89a8af72aa2c9) -
8
+ Add reusable toolbar menu container and render the layout column menu in a popup
9
+
10
+ ## 11.2.20
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 11.2.19
4
17
 
5
18
  ### Patch Changes
@@ -464,8 +464,10 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
464
464
  if (startPos === undefined) {
465
465
  return tr;
466
466
  }
467
- if (nodeType === 'layoutColumn' && (0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true)) {
468
- tr.setMeta('toggleLayoutColumnMenu', {});
467
+ if (nodeType === 'layoutColumn' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)) {
468
+ tr.setMeta('toggleLayoutColumnMenu', {
469
+ isOpen: true
470
+ });
469
471
  }
470
472
  var resolvedStartPos = tr.doc.resolve(startPos);
471
473
  var selection = ((_selectionPreservatio = _pluginKey.selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
@@ -515,8 +517,10 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
515
517
  if (startPos === undefined) {
516
518
  return tr;
517
519
  }
518
- if (nodeType === 'layoutColumn' && (0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true)) {
519
- tr.setMeta('toggleLayoutColumnMenu', {});
520
+ if (nodeType === 'layoutColumn' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)) {
521
+ tr.setMeta('toggleLayoutColumnMenu', {
522
+ isOpen: true
523
+ });
520
524
  }
521
525
  var mSelect = api === null || api === void 0 || (_api$blockControls$sh = api.blockControls.sharedState.currentState()) === null || _api$blockControls$sh === void 0 ? void 0 : _api$blockControls$sh.multiSelectDnD;
522
526
  var $anchor = (mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) !== undefined ? tr.doc.resolve(mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) : tr.selection.$anchor;
@@ -439,8 +439,10 @@ export const DragHandle = ({
439
439
  if (startPos === undefined) {
440
440
  return tr;
441
441
  }
442
- if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
443
- tr.setMeta('toggleLayoutColumnMenu', {});
442
+ if (nodeType === 'layoutColumn' && expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)) {
443
+ tr.setMeta('toggleLayoutColumnMenu', {
444
+ isOpen: true
445
+ });
444
446
  }
445
447
  const resolvedStartPos = tr.doc.resolve(startPos);
446
448
  const selection = ((_selectionPreservatio = selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
@@ -491,8 +493,10 @@ export const DragHandle = ({
491
493
  if (startPos === undefined) {
492
494
  return tr;
493
495
  }
494
- if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
495
- tr.setMeta('toggleLayoutColumnMenu', {});
496
+ if (nodeType === 'layoutColumn' && expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)) {
497
+ tr.setMeta('toggleLayoutColumnMenu', {
498
+ isOpen: true
499
+ });
496
500
  }
497
501
  const mSelect = api === null || api === void 0 ? void 0 : (_api$blockControls$sh = api.blockControls.sharedState.currentState()) === null || _api$blockControls$sh === void 0 ? void 0 : _api$blockControls$sh.multiSelectDnD;
498
502
  const $anchor = (mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) !== undefined ? tr.doc.resolve(mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) : tr.selection.$anchor;
@@ -460,8 +460,10 @@ export var DragHandle = function DragHandle(_ref) {
460
460
  if (startPos === undefined) {
461
461
  return tr;
462
462
  }
463
- if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
464
- tr.setMeta('toggleLayoutColumnMenu', {});
463
+ if (nodeType === 'layoutColumn' && expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)) {
464
+ tr.setMeta('toggleLayoutColumnMenu', {
465
+ isOpen: true
466
+ });
465
467
  }
466
468
  var resolvedStartPos = tr.doc.resolve(startPos);
467
469
  var selection = ((_selectionPreservatio = selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
@@ -511,8 +513,10 @@ export var DragHandle = function DragHandle(_ref) {
511
513
  if (startPos === undefined) {
512
514
  return tr;
513
515
  }
514
- if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
515
- tr.setMeta('toggleLayoutColumnMenu', {});
516
+ if (nodeType === 'layoutColumn' && expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)) {
517
+ tr.setMeta('toggleLayoutColumnMenu', {
518
+ isOpen: true
519
+ });
516
520
  }
517
521
  var mSelect = api === null || api === void 0 || (_api$blockControls$sh = api.blockControls.sharedState.currentState()) === null || _api$blockControls$sh === void 0 ? void 0 : _api$blockControls$sh.multiSelectDnD;
518
522
  var $anchor = (mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) !== undefined ? tr.doc.resolve(mSelect === null || mSelect === void 0 ? void 0 : mSelect.anchor) : tr.selection.$anchor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "11.2.19",
3
+ "version": "11.3.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,18 +32,18 @@
32
32
  "@atlaskit/button": "^23.11.0",
33
33
  "@atlaskit/editor-plugin-accessibility-utils": "^10.1.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^10.0.0",
35
- "@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
36
- "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
37
- "@atlaskit/editor-plugin-feature-flags": "^9.0.0",
38
- "@atlaskit/editor-plugin-interaction": "^19.0.0",
39
- "@atlaskit/editor-plugin-limited-mode": "^7.1.0",
40
- "@atlaskit/editor-plugin-metrics": "^11.0.0",
41
- "@atlaskit/editor-plugin-quick-insert": "^10.2.0",
42
- "@atlaskit/editor-plugin-selection": "^10.0.0",
43
- "@atlaskit/editor-plugin-toolbar": "^7.1.0",
44
- "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
45
- "@atlaskit/editor-plugin-user-intent": "^8.1.0",
46
- "@atlaskit/editor-plugin-width": "^11.0.0",
35
+ "@atlaskit/editor-plugin-editor-disabled": "^10.1.0",
36
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.1.0",
37
+ "@atlaskit/editor-plugin-feature-flags": "^9.1.0",
38
+ "@atlaskit/editor-plugin-interaction": "^19.1.0",
39
+ "@atlaskit/editor-plugin-limited-mode": "^7.2.0",
40
+ "@atlaskit/editor-plugin-metrics": "^11.1.0",
41
+ "@atlaskit/editor-plugin-quick-insert": "^10.4.0",
42
+ "@atlaskit/editor-plugin-selection": "^10.1.0",
43
+ "@atlaskit/editor-plugin-toolbar": "^7.3.0",
44
+ "@atlaskit/editor-plugin-type-ahead": "^10.1.0",
45
+ "@atlaskit/editor-plugin-user-intent": "^8.2.0",
46
+ "@atlaskit/editor-plugin-width": "^11.1.0",
47
47
  "@atlaskit/editor-prosemirror": "^7.3.0",
48
48
  "@atlaskit/editor-shared-styles": "^3.10.0",
49
49
  "@atlaskit/editor-tables": "^2.9.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
57
57
  "@atlaskit/primitives": "^19.0.0",
58
58
  "@atlaskit/theme": "^23.2.0",
59
- "@atlaskit/tmp-editor-statsig": "^79.0.0",
59
+ "@atlaskit/tmp-editor-statsig": "^80.0.0",
60
60
  "@atlaskit/tokens": "^13.0.0",
61
61
  "@atlaskit/tooltip": "^22.2.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": "^114.29.0",
70
+ "@atlaskit/editor-common": "^114.30.0",
71
71
  "react": "^18.2.0",
72
72
  "react-dom": "^18.2.0",
73
73
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"