@atlaskit/editor-plugin-block-controls 11.2.16 → 11.2.18

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,20 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 11.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.2.17
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2023cac0fd36f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2023cac0fd36f) -
14
+ Add column drag handle context menu placeholder, gated behind the
15
+ platform_editor_layout_column_menu experiment flag.
16
+ - Updated dependencies
17
+
3
18
  ## 11.2.16
4
19
 
5
20
  ### Patch Changes
@@ -464,6 +464,9 @@ 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', {});
469
+ }
467
470
  var resolvedStartPos = tr.doc.resolve(startPos);
468
471
  var selection = ((_selectionPreservatio = _pluginKey.selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
469
472
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
@@ -512,6 +515,9 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
512
515
  if (startPos === undefined) {
513
516
  return tr;
514
517
  }
518
+ if (nodeType === 'layoutColumn' && (0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true)) {
519
+ tr.setMeta('toggleLayoutColumnMenu', {});
520
+ }
515
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;
516
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;
517
523
  if (tr.selection.empty || !e.shiftKey) {
@@ -439,6 +439,9 @@ 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', {});
444
+ }
442
445
  const resolvedStartPos = tr.doc.resolve(startPos);
443
446
  const selection = ((_selectionPreservatio = selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
444
447
  api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions.attachAnalyticsEvent({
@@ -488,6 +491,9 @@ export const DragHandle = ({
488
491
  if (startPos === undefined) {
489
492
  return tr;
490
493
  }
494
+ if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
495
+ tr.setMeta('toggleLayoutColumnMenu', {});
496
+ }
491
497
  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;
492
498
  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;
493
499
  if (tr.selection.empty || !e.shiftKey) {
@@ -460,6 +460,9 @@ 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', {});
465
+ }
463
466
  var resolvedStartPos = tr.doc.resolve(startPos);
464
467
  var selection = ((_selectionPreservatio = selectionPreservationPluginKey.getState(view.state)) === null || _selectionPreservatio === void 0 ? void 0 : _selectionPreservatio.preservedSelection) || tr.selection;
465
468
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
@@ -508,6 +511,9 @@ export var DragHandle = function DragHandle(_ref) {
508
511
  if (startPos === undefined) {
509
512
  return tr;
510
513
  }
514
+ if (nodeType === 'layoutColumn' && expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
515
+ tr.setMeta('toggleLayoutColumnMenu', {});
516
+ }
511
517
  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;
512
518
  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;
513
519
  if (tr.selection.empty || !e.shiftKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "11.2.16",
3
+ "version": "11.2.18",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,15 +40,15 @@
40
40
  "@atlaskit/editor-plugin-metrics": "^11.0.0",
41
41
  "@atlaskit/editor-plugin-quick-insert": "^10.2.0",
42
42
  "@atlaskit/editor-plugin-selection": "^10.0.0",
43
- "@atlaskit/editor-plugin-toolbar": "^7.0.0",
43
+ "@atlaskit/editor-plugin-toolbar": "^7.1.0",
44
44
  "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
45
45
  "@atlaskit/editor-plugin-user-intent": "^8.1.0",
46
46
  "@atlaskit/editor-plugin-width": "^11.0.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",
50
- "@atlaskit/icon": "^34.4.0",
51
- "@atlaskit/icon-lab": "^6.7.0",
50
+ "@atlaskit/icon": "^34.5.0",
51
+ "@atlaskit/icon-lab": "^6.8.0",
52
52
  "@atlaskit/link": "^3.4.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
@@ -56,9 +56,9 @@
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": "^77.2.0",
59
+ "@atlaskit/tmp-editor-statsig": "^78.0.0",
60
60
  "@atlaskit/tokens": "^13.0.0",
61
- "@atlaskit/tooltip": "^22.0.0",
61
+ "@atlaskit/tooltip": "^22.1.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
64
64
  "bind-event-listener": "^3.0.0",