@atlaskit/editor-plugin-block-controls 11.2.16 → 11.2.17
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
|
+
## 11.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2023cac0fd36f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2023cac0fd36f) -
|
|
8
|
+
Add column drag handle context menu placeholder, gated behind the
|
|
9
|
+
platform_editor_layout_column_menu experiment flag.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 11.2.16
|
|
4
13
|
|
|
5
14
|
### 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.
|
|
3
|
+
"version": "11.2.17",
|
|
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": "^19.0.0",
|
|
58
58
|
"@atlaskit/theme": "^23.2.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^77.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^77.3.0",
|
|
60
60
|
"@atlaskit/tokens": "^13.0.0",
|
|
61
61
|
"@atlaskit/tooltip": "^22.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|