@atlaskit/editor-plugin-block-controls 35.0.6 → 35.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 +15 -0
- package/dist/cjs/pm-plugins/handle-mouse-over.js +1 -2
- package/dist/cjs/pm-plugins/handle-sparse-hover-target.js +1 -2
- package/dist/cjs/pm-plugins/main.js +9 -9
- package/dist/es2019/pm-plugins/handle-mouse-over.js +1 -2
- package/dist/es2019/pm-plugins/handle-sparse-hover-target.js +1 -2
- package/dist/es2019/pm-plugins/main.js +9 -9
- package/dist/esm/pm-plugins/handle-mouse-over.js +1 -2
- package/dist/esm/pm-plugins/handle-sparse-hover-target.js +1 -2
- package/dist/esm/pm-plugins/main.js +9 -9
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 35.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 35.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b23a601aac9fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b23a601aac9fd) -
|
|
14
|
+
Clean up feature gate `platform_editor_controls_reliable_anchor_patch_1`, retaining the enabled
|
|
15
|
+
behaviour.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 35.0.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
10
10
|
var _utils = require("@atlaskit/editor-common/selection/utils");
|
|
11
11
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
12
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
14
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
@@ -55,7 +54,7 @@ var isPanelNodeTypeName = function isPanelNodeTypeName(nodeTypeName) {
|
|
|
55
54
|
if (nodeTypeName === 'panel') {
|
|
56
55
|
return true;
|
|
57
56
|
}
|
|
58
|
-
return nodeTypeName === 'panel_c1' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
57
|
+
return nodeTypeName === 'panel_c1' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
59
58
|
};
|
|
60
59
|
|
|
61
60
|
// Block marks (e.g. font-size) wrap paragraphs in an extra div, making parentRootElement
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isSparseHoverSuppressed = exports.handleSparseHoverTarget = void 0;
|
|
7
7
|
var _nodeAnchorProvider = require("@atlaskit/editor-common/node-anchor-provider");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
10
9
|
var _decorationsCommon = require("./decorations-common");
|
|
11
10
|
var OPAQUE_BLOCKS = new Set(['bulletList', 'orderedList', 'taskList', 'decisionList', 'mediaSingle']);
|
|
12
11
|
var EXCLUDED_BLOCKS = new Set(['listItem', 'tableRow', 'tableCell', 'tableHeader', 'caption']);
|
|
13
12
|
var TABLE_CELLS = new Set(['tableCell', 'tableHeader']);
|
|
14
13
|
var isPanelNodeTypeName = function isPanelNodeTypeName(nodeTypeName) {
|
|
15
|
-
return nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
14
|
+
return nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
16
15
|
};
|
|
17
16
|
var redirectParagraphToWrappedMedia = function redirectParagraphToWrappedMedia(view, $target, targetPosition) {
|
|
18
17
|
var node = view.state.doc.nodeAt(targetPosition);
|
|
@@ -274,12 +274,12 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
//
|
|
277
|
+
// DecorationSet.map() validates node decorations as it maps them — one whose range
|
|
278
278
|
// no longer exactly covers a node (e.g. after a split) is dropped rather than left misplaced.
|
|
279
279
|
// Recording that here lets the active-node decoration blocks below re-add only what actually
|
|
280
280
|
// went away, instead of scanning the whole decoration set on every keystroke (VC90).
|
|
281
|
-
// The active-node decorations only exist under the reliable anchor experiment, so
|
|
282
|
-
// scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
281
|
+
// The active-node decorations only exist under the reliable anchor experiment, so this tracking
|
|
282
|
+
// is scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
283
283
|
// below that consume these flags are already inside an `expValEquals` guard for the same
|
|
284
284
|
// experiment, so the exposure is fired there.
|
|
285
285
|
var activeHandleDecDropped = false;
|
|
@@ -287,7 +287,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
287
287
|
|
|
288
288
|
// When steps exist, remap existing decorations, activeNode and multi select positions
|
|
289
289
|
if (tr.docChanged) {
|
|
290
|
-
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
290
|
+
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls_reliable_anchor', 'isEnabled', true)) {
|
|
291
291
|
decorations = decorations.map(tr.mapping, tr.doc, {
|
|
292
292
|
onRemove: function onRemove(spec) {
|
|
293
293
|
if ((spec === null || spec === void 0 ? void 0 : spec.type) === _decorationsDragHandle.TYPE_ACTIVE_HANDLE_DEC) {
|
|
@@ -533,10 +533,10 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
533
533
|
// on that same anchor-name for their own CSS anchor() positioning, so this must still run
|
|
534
534
|
// when such a consumer exists even if the legacy drag handle itself is disabled.
|
|
535
535
|
nodeDecorationRegistry.length > 0) && (0, _expValEquals.expValEquals)('platform_editor_controls_reliable_anchor', 'isEnabled', true) && latestActiveNode) {
|
|
536
|
-
//
|
|
537
|
-
//
|
|
538
|
-
//
|
|
539
|
-
var docChangeInvalidatedNodeDec =
|
|
536
|
+
// A plain doc change does not force a rescan — map() above has already either kept the
|
|
537
|
+
// decoration correctly positioned or dropped it as invalid, so we only need to act when
|
|
538
|
+
// it was actually dropped.
|
|
539
|
+
var docChangeInvalidatedNodeDec = activeHandleDecDropped;
|
|
540
540
|
|
|
541
541
|
// Recreate the drag handle node decoration when the active node changed,
|
|
542
542
|
// its content was modified, or the document changed.
|
|
@@ -566,7 +566,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
566
566
|
// independently of the edit-mode node — e.g. when only editorSizeChanged fires but
|
|
567
567
|
// rootActiveNodeChanged is also true. So we use a separate, broader guard that
|
|
568
568
|
// includes rootActiveNodeChanged to avoid leaving the attribute on a stale root node.
|
|
569
|
-
var needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged ||
|
|
569
|
+
var needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged || activeQuickInsertDecDropped;
|
|
570
570
|
if (needsQuickInsertDecUpdate && latestActiveNode.rootPos !== undefined) {
|
|
571
571
|
var _newState$doc$nodeAt2;
|
|
572
572
|
var rootNodeSize = (_newState$doc$nodeAt2 = newState.doc.nodeAt(latestActiveNode.rootPos)) === null || _newState$doc$nodeAt2 === void 0 ? void 0 : _newState$doc$nodeAt2.nodeSize;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { isMultiBlockSelection } from '@atlaskit/editor-common/selection/utils';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -45,7 +44,7 @@ const isPanelNodeTypeName = nodeTypeName => {
|
|
|
45
44
|
if (nodeTypeName === 'panel') {
|
|
46
45
|
return true;
|
|
47
46
|
}
|
|
48
|
-
return nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
47
|
+
return nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
49
48
|
};
|
|
50
49
|
|
|
51
50
|
// Block marks (e.g. font-size) wrap paragraphs in an extra div, making parentRootElement
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
3
|
import { getNodeTypeWithLevel } from './decorations-common';
|
|
5
4
|
const OPAQUE_BLOCKS = new Set(['bulletList', 'orderedList', 'taskList', 'decisionList', 'mediaSingle']);
|
|
6
5
|
const EXCLUDED_BLOCKS = new Set(['listItem', 'tableRow', 'tableCell', 'tableHeader', 'caption']);
|
|
7
6
|
const TABLE_CELLS = new Set(['tableCell', 'tableHeader']);
|
|
8
|
-
const isPanelNodeTypeName = nodeTypeName => nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
7
|
+
const isPanelNodeTypeName = nodeTypeName => nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
9
8
|
const redirectParagraphToWrappedMedia = (view, $target, targetPosition) => {
|
|
10
9
|
const node = view.state.doc.nodeAt(targetPosition);
|
|
11
10
|
if (!node || node.type.name !== 'paragraph') {
|
|
@@ -267,12 +267,12 @@ export const apply = (api, formatMessage, tr, currentState, newState, nodeViewPo
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
//
|
|
270
|
+
// DecorationSet.map() validates node decorations as it maps them — one whose range
|
|
271
271
|
// no longer exactly covers a node (e.g. after a split) is dropped rather than left misplaced.
|
|
272
272
|
// Recording that here lets the active-node decoration blocks below re-add only what actually
|
|
273
273
|
// went away, instead of scanning the whole decoration set on every keystroke (VC90).
|
|
274
|
-
// The active-node decorations only exist under the reliable anchor experiment, so
|
|
275
|
-
// scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
274
|
+
// The active-node decorations only exist under the reliable anchor experiment, so this tracking
|
|
275
|
+
// is scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
276
276
|
// below that consume these flags are already inside an `expValEquals` guard for the same
|
|
277
277
|
// experiment, so the exposure is fired there.
|
|
278
278
|
let activeHandleDecDropped = false;
|
|
@@ -280,7 +280,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, nodeViewPo
|
|
|
280
280
|
|
|
281
281
|
// When steps exist, remap existing decorations, activeNode and multi select positions
|
|
282
282
|
if (tr.docChanged) {
|
|
283
|
-
if (expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
283
|
+
if (expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)) {
|
|
284
284
|
decorations = decorations.map(tr.mapping, tr.doc, {
|
|
285
285
|
onRemove: spec => {
|
|
286
286
|
if ((spec === null || spec === void 0 ? void 0 : spec.type) === TYPE_ACTIVE_HANDLE_DEC) {
|
|
@@ -498,10 +498,10 @@ export const apply = (api, formatMessage, tr, currentState, newState, nodeViewPo
|
|
|
498
498
|
// on that same anchor-name for their own CSS anchor() positioning, so this must still run
|
|
499
499
|
// when such a consumer exists even if the legacy drag handle itself is disabled.
|
|
500
500
|
nodeDecorationRegistry.length > 0) && expValEquals('platform_editor_controls_reliable_anchor', 'isEnabled', true) && latestActiveNode) {
|
|
501
|
-
//
|
|
502
|
-
//
|
|
503
|
-
//
|
|
504
|
-
const docChangeInvalidatedNodeDec =
|
|
501
|
+
// A plain doc change does not force a rescan — map() above has already either kept the
|
|
502
|
+
// decoration correctly positioned or dropped it as invalid, so we only need to act when
|
|
503
|
+
// it was actually dropped.
|
|
504
|
+
const docChangeInvalidatedNodeDec = activeHandleDecDropped;
|
|
505
505
|
|
|
506
506
|
// Recreate the drag handle node decoration when the active node changed,
|
|
507
507
|
// its content was modified, or the document changed.
|
|
@@ -531,7 +531,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, nodeViewPo
|
|
|
531
531
|
// independently of the edit-mode node — e.g. when only editorSizeChanged fires but
|
|
532
532
|
// rootActiveNodeChanged is also true. So we use a separate, broader guard that
|
|
533
533
|
// includes rootActiveNodeChanged to avoid leaving the attribute on a stale root node.
|
|
534
|
-
const needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged ||
|
|
534
|
+
const needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged || activeQuickInsertDecDropped;
|
|
535
535
|
if (needsQuickInsertDecUpdate && latestActiveNode.rootPos !== undefined) {
|
|
536
536
|
var _newState$doc$nodeAt2;
|
|
537
537
|
const rootNodeSize = (_newState$doc$nodeAt2 = newState.doc.nodeAt(latestActiveNode.rootPos)) === null || _newState$doc$nodeAt2 === void 0 ? void 0 : _newState$doc$nodeAt2.nodeSize;
|
|
@@ -2,7 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
3
|
import { isMultiBlockSelection } from '@atlaskit/editor-common/selection/utils';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -48,7 +47,7 @@ var isPanelNodeTypeName = function isPanelNodeTypeName(nodeTypeName) {
|
|
|
48
47
|
if (nodeTypeName === 'panel') {
|
|
49
48
|
return true;
|
|
50
49
|
}
|
|
51
|
-
return nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
50
|
+
return nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
52
51
|
};
|
|
53
52
|
|
|
54
53
|
// Block marks (e.g. font-size) wrap paragraphs in an extra div, making parentRootElement
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
3
|
import { getNodeTypeWithLevel } from './decorations-common';
|
|
5
4
|
var OPAQUE_BLOCKS = new Set(['bulletList', 'orderedList', 'taskList', 'decisionList', 'mediaSingle']);
|
|
6
5
|
var EXCLUDED_BLOCKS = new Set(['listItem', 'tableRow', 'tableCell', 'tableHeader', 'caption']);
|
|
7
6
|
var TABLE_CELLS = new Set(['tableCell', 'tableHeader']);
|
|
8
7
|
var isPanelNodeTypeName = function isPanelNodeTypeName(nodeTypeName) {
|
|
9
|
-
return nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
8
|
+
return nodeTypeName === 'panel' || nodeTypeName === 'panel_c1' && expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true);
|
|
10
9
|
};
|
|
11
10
|
var redirectParagraphToWrappedMedia = function redirectParagraphToWrappedMedia(view, $target, targetPosition) {
|
|
12
11
|
var node = view.state.doc.nodeAt(targetPosition);
|
|
@@ -267,12 +267,12 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, node
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
//
|
|
270
|
+
// DecorationSet.map() validates node decorations as it maps them — one whose range
|
|
271
271
|
// no longer exactly covers a node (e.g. after a split) is dropped rather than left misplaced.
|
|
272
272
|
// Recording that here lets the active-node decoration blocks below re-add only what actually
|
|
273
273
|
// went away, instead of scanning the whole decoration set on every keystroke (VC90).
|
|
274
|
-
// The active-node decorations only exist under the reliable anchor experiment, so
|
|
275
|
-
// scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
274
|
+
// The active-node decorations only exist under the reliable anchor experiment, so this tracking
|
|
275
|
+
// is scoped to it as well. No-exposure check as this runs on every document change; the blocks
|
|
276
276
|
// below that consume these flags are already inside an `expValEquals` guard for the same
|
|
277
277
|
// experiment, so the exposure is fired there.
|
|
278
278
|
var activeHandleDecDropped = false;
|
|
@@ -280,7 +280,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, node
|
|
|
280
280
|
|
|
281
281
|
// When steps exist, remap existing decorations, activeNode and multi select positions
|
|
282
282
|
if (tr.docChanged) {
|
|
283
|
-
if (expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)
|
|
283
|
+
if (expValEqualsNoExposure('platform_editor_controls_reliable_anchor', 'isEnabled', true)) {
|
|
284
284
|
decorations = decorations.map(tr.mapping, tr.doc, {
|
|
285
285
|
onRemove: function onRemove(spec) {
|
|
286
286
|
if ((spec === null || spec === void 0 ? void 0 : spec.type) === TYPE_ACTIVE_HANDLE_DEC) {
|
|
@@ -526,10 +526,10 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, node
|
|
|
526
526
|
// on that same anchor-name for their own CSS anchor() positioning, so this must still run
|
|
527
527
|
// when such a consumer exists even if the legacy drag handle itself is disabled.
|
|
528
528
|
nodeDecorationRegistry.length > 0) && expValEquals('platform_editor_controls_reliable_anchor', 'isEnabled', true) && latestActiveNode) {
|
|
529
|
-
//
|
|
530
|
-
//
|
|
531
|
-
//
|
|
532
|
-
var docChangeInvalidatedNodeDec =
|
|
529
|
+
// A plain doc change does not force a rescan — map() above has already either kept the
|
|
530
|
+
// decoration correctly positioned or dropped it as invalid, so we only need to act when
|
|
531
|
+
// it was actually dropped.
|
|
532
|
+
var docChangeInvalidatedNodeDec = activeHandleDecDropped;
|
|
533
533
|
|
|
534
534
|
// Recreate the drag handle node decoration when the active node changed,
|
|
535
535
|
// its content was modified, or the document changed.
|
|
@@ -559,7 +559,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, node
|
|
|
559
559
|
// independently of the edit-mode node — e.g. when only editorSizeChanged fires but
|
|
560
560
|
// rootActiveNodeChanged is also true. So we use a separate, broader guard that
|
|
561
561
|
// includes rootActiveNodeChanged to avoid leaving the attribute on a stale root node.
|
|
562
|
-
var needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged ||
|
|
562
|
+
var needsQuickInsertDecUpdate = activeNodeChanged || isActiveNodeModified || rootActiveNodeChanged || activeQuickInsertDecDropped;
|
|
563
563
|
if (needsQuickInsertDecUpdate && latestActiveNode.rootPos !== undefined) {
|
|
564
564
|
var _newState$doc$nodeAt2;
|
|
565
565
|
var rootNodeSize = (_newState$doc$nodeAt2 = newState.doc.nodeAt(latestActiveNode.rootPos)) === null || _newState$doc$nodeAt2 === void 0 ? void 0 : _newState$doc$nodeAt2.nodeSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.8",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/primitives": "^22.9.0",
|
|
60
60
|
"@atlaskit/section-message": "^10.3.0",
|
|
61
61
|
"@atlaskit/theme": "^28.2.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^278.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^20.15.0",
|
|
64
64
|
"@atlaskit/tooltip": "^24.4.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -83,9 +83,6 @@
|
|
|
83
83
|
"platform_editor_maui_jira_updates": {
|
|
84
84
|
"type": "boolean"
|
|
85
85
|
},
|
|
86
|
-
"platform_editor_controls_reliable_anchor_patch_1": {
|
|
87
|
-
"type": "boolean"
|
|
88
|
-
},
|
|
89
86
|
"platform_editor_controls_reliable_anchor_patch_2": {
|
|
90
87
|
"type": "boolean"
|
|
91
88
|
},
|