@atlaskit/editor-plugin-block-controls 2.15.7 → 2.15.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,14 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 2.15.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#177496](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/177496)
8
+ [`dfb96360f8958`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dfb96360f8958) -
9
+ Remove optimise-apply-dnd experiment
10
+ - Updated dependencies
11
+
3
12
  ## 2.15.7
4
13
 
5
14
  ### Patch Changes
@@ -430,12 +430,8 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
430
430
  var isAdvancedLayoutEnabled = (0, _experiments.editorExperiment)('advanced_layouts', true, {
431
431
  exposure: true
432
432
  });
433
- var isOptimisedApply = isNestedEnabled && (0, _experiments.editorExperiment)('optimised-apply-dnd', true, {
434
- exposure: true
435
- });
436
433
  var flags = {
437
- isNestedEnabled: isNestedEnabled,
438
- isOptimisedApply: isOptimisedApply
434
+ isNestedEnabled: isNestedEnabled
439
435
  };
440
436
  var anchorRectCache;
441
437
  if (!(0, _anchorUtils.isAnchorSupported)() && (0, _platformFeatureFlags.fg)('platform_editor_drag_and_drop_target_v2')) {
@@ -448,7 +444,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
448
444
  return initialState;
449
445
  },
450
446
  apply: function apply(tr, currentState, oldState, newState) {
451
- if (isOptimisedApply) {
447
+ if (isNestedEnabled) {
452
448
  return newApply(api, formatMessage, tr, currentState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
453
449
  }
454
450
  return oldApply(api, formatMessage, tr, currentState, oldState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
@@ -405,12 +405,8 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI) => {
405
405
  const isAdvancedLayoutEnabled = editorExperiment('advanced_layouts', true, {
406
406
  exposure: true
407
407
  });
408
- const isOptimisedApply = isNestedEnabled && editorExperiment('optimised-apply-dnd', true, {
409
- exposure: true
410
- });
411
408
  const flags = {
412
- isNestedEnabled,
413
- isOptimisedApply
409
+ isNestedEnabled
414
410
  };
415
411
  let anchorRectCache;
416
412
  if (!isAnchorSupported() && fg('platform_editor_drag_and_drop_target_v2')) {
@@ -423,7 +419,7 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI) => {
423
419
  return initialState;
424
420
  },
425
421
  apply(tr, currentState, oldState, newState) {
426
- if (isOptimisedApply) {
422
+ if (isNestedEnabled) {
427
423
  return newApply(api, formatMessage, tr, currentState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
428
424
  }
429
425
  return oldApply(api, formatMessage, tr, currentState, oldState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
@@ -423,12 +423,8 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
423
423
  var isAdvancedLayoutEnabled = editorExperiment('advanced_layouts', true, {
424
424
  exposure: true
425
425
  });
426
- var isOptimisedApply = isNestedEnabled && editorExperiment('optimised-apply-dnd', true, {
427
- exposure: true
428
- });
429
426
  var flags = {
430
- isNestedEnabled: isNestedEnabled,
431
- isOptimisedApply: isOptimisedApply
427
+ isNestedEnabled: isNestedEnabled
432
428
  };
433
429
  var anchorRectCache;
434
430
  if (!isAnchorSupported() && fg('platform_editor_drag_and_drop_target_v2')) {
@@ -441,7 +437,7 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
441
437
  return initialState;
442
438
  },
443
439
  apply: function apply(tr, currentState, oldState, newState) {
444
- if (isOptimisedApply) {
440
+ if (isNestedEnabled) {
445
441
  return newApply(api, formatMessage, tr, currentState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
446
442
  }
447
443
  return oldApply(api, formatMessage, tr, currentState, oldState, newState, flags, nodeViewPortalProviderAPI, anchorRectCache);
@@ -10,7 +10,6 @@ import { AnchorRectCache } from './utils/anchor-utils';
10
10
  export declare const key: PluginKey<PluginState>;
11
11
  export interface FlagType {
12
12
  isNestedEnabled: boolean;
13
- isOptimisedApply: boolean;
14
13
  }
15
14
  export declare const newApply: (api: ExtractInjectionAPI<BlockControlsPlugin> | undefined, formatMessage: IntlShape['formatMessage'], tr: ReadonlyTransaction, currentState: PluginState, newState: EditorState, flags: FlagType, nodeViewPortalProviderAPI: PortalProviderAPI, anchorRectCache?: AnchorRectCache) => {
16
15
  decorations: DecorationSet;
@@ -10,7 +10,6 @@ import { AnchorRectCache } from './utils/anchor-utils';
10
10
  export declare const key: PluginKey<PluginState>;
11
11
  export interface FlagType {
12
12
  isNestedEnabled: boolean;
13
- isOptimisedApply: boolean;
14
13
  }
15
14
  export declare const newApply: (api: ExtractInjectionAPI<BlockControlsPlugin> | undefined, formatMessage: IntlShape['formatMessage'], tr: ReadonlyTransaction, currentState: PluginState, newState: EditorState, flags: FlagType, nodeViewPortalProviderAPI: PortalProviderAPI, anchorRectCache?: AnchorRectCache) => {
16
15
  decorations: DecorationSet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "2.15.7",
3
+ "version": "2.15.8",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
49
49
  "@atlaskit/primitives": "^13.3.0",
50
50
  "@atlaskit/theme": "^14.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^2.26.0",
51
+ "@atlaskit/tmp-editor-statsig": "^2.27.0",
52
52
  "@atlaskit/tokens": "^2.4.0",
53
53
  "@atlaskit/tooltip": "^19.0.0",
54
54
  "@babel/runtime": "^7.0.0",