@atlaskit/editor-plugin-block-controls 13.1.12 → 13.1.13

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,13 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 13.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0b938a9924936`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b938a9924936) -
8
+ Clean up feature gate `platform_editor_block_menu_jira_patch_2`.
9
+ - Updated dependencies
10
+
3
11
  ## 13.1.12
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ var _blockType = require("@atlaskit/editor-common/block-type");
8
8
  var _selection = require("@atlaskit/editor-common/selection");
9
9
  var _state = require("@atlaskit/editor-prosemirror/state");
10
10
  var _utils = require("@atlaskit/editor-tables/utils");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _main = require("../main");
13
12
  var _getSelection = require("./getSelection");
14
13
  var getMultiSelectionIfPosInside = exports.getMultiSelectionIfPosInside = function getMultiSelectionIfPosInside(api, pos, tr) {
@@ -99,7 +98,7 @@ var mapPreservedSelection = exports.mapPreservedSelection = function mapPreserve
99
98
  // When lastNodeMustBeParagraph inserts a trailing paragraph exactly at the end boundary
100
99
  // of a preserved block selection, keep the mapped end position on the left side of the
101
100
  // inserted paragraph so it is not included in the preserved selection.
102
- var shouldTrimTrailingParagraph = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_jira_patch_2') && tr.getMeta(_blockType.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
101
+ var shouldTrimTrailingParagraph = tr.getMeta(_blockType.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
103
102
  var to = shouldTrimTrailingParagraph ? mapping.map(selection.to, -1) : mapping.map(selection.to);
104
103
  var isSelectionEmpty = from === to;
105
104
  var wasSelectionEmpty = selection.from === selection.to;
@@ -2,7 +2,6 @@ import { INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META } from '@atlaskit/editor-
2
2
  import { expandToBlockRange, isMultiBlockRange } from '@atlaskit/editor-common/selection';
3
3
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { getTableSelectionClosesToPos } from '@atlaskit/editor-tables/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { getBlockControlsMeta, key } from '../main';
7
6
  import { newGetSelection } from './getSelection';
8
7
  export const getMultiSelectionIfPosInside = (api, pos, tr) => {
@@ -95,7 +94,7 @@ export const mapPreservedSelection = (selection, tr) => {
95
94
  // When lastNodeMustBeParagraph inserts a trailing paragraph exactly at the end boundary
96
95
  // of a preserved block selection, keep the mapped end position on the left side of the
97
96
  // inserted paragraph so it is not included in the preserved selection.
98
- const shouldTrimTrailingParagraph = fg('platform_editor_block_menu_jira_patch_2') && tr.getMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
97
+ const shouldTrimTrailingParagraph = tr.getMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
99
98
  const to = shouldTrimTrailingParagraph ? mapping.map(selection.to, -1) : mapping.map(selection.to);
100
99
  const isSelectionEmpty = from === to;
101
100
  const wasSelectionEmpty = selection.from === selection.to;
@@ -2,7 +2,6 @@ import { INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META } from '@atlaskit/editor-
2
2
  import { expandToBlockRange, isMultiBlockRange } from '@atlaskit/editor-common/selection';
3
3
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { getTableSelectionClosesToPos } from '@atlaskit/editor-tables/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { getBlockControlsMeta, key } from '../main';
7
6
  import { newGetSelection } from './getSelection';
8
7
  export var getMultiSelectionIfPosInside = function getMultiSelectionIfPosInside(api, pos, tr) {
@@ -93,7 +92,7 @@ export var mapPreservedSelection = function mapPreservedSelection(selection, tr)
93
92
  // When lastNodeMustBeParagraph inserts a trailing paragraph exactly at the end boundary
94
93
  // of a preserved block selection, keep the mapped end position on the left side of the
95
94
  // inserted paragraph so it is not included in the preserved selection.
96
- var shouldTrimTrailingParagraph = fg('platform_editor_block_menu_jira_patch_2') && tr.getMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
95
+ var shouldTrimTrailingParagraph = tr.getMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META) === true;
97
96
  var to = shouldTrimTrailingParagraph ? mapping.map(selection.to, -1) : mapping.map(selection.to);
98
97
  var isSelectionEmpty = from === to;
99
98
  var wasSelectionEmpty = selection.from === selection.to;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "13.1.12",
3
+ "version": "13.1.13",
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": "^4.1.0",
49
49
  "@atlaskit/primitives": "^20.3.0",
50
50
  "@atlaskit/theme": "^26.1.0",
51
- "@atlaskit/tmp-editor-statsig": "^121.0.0",
51
+ "@atlaskit/tmp-editor-statsig": "^121.1.0",
52
52
  "@atlaskit/tokens": "^15.4.0",
53
53
  "@atlaskit/tooltip": "^23.1.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -130,9 +130,6 @@
130
130
  "platform_editor_table_sticky_header_patch_6": {
131
131
  "type": "boolean"
132
132
  },
133
- "platform_editor_block_menu_jira_patch_2": {
134
- "type": "boolean"
135
- },
136
133
  "confluence_remix_button_right_side_block_fg": {
137
134
  "type": "boolean"
138
135
  },