@atlaskit/editor-plugin-block-controls 13.1.11 → 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,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 13.1.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 13.1.11
|
|
4
18
|
|
|
5
19
|
### 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 =
|
|
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 =
|
|
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 =
|
|
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.
|
|
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",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
41
41
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
42
|
-
"@atlaskit/icon": "^36.
|
|
43
|
-
"@atlaskit/icon-lab": "^7.
|
|
42
|
+
"@atlaskit/icon": "^36.2.0",
|
|
43
|
+
"@atlaskit/icon-lab": "^7.3.0",
|
|
44
44
|
"@atlaskit/link": "^4.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
46
46
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
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": "^
|
|
52
|
-
"@atlaskit/tokens": "^15.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^121.1.0",
|
|
52
|
+
"@atlaskit/tokens": "^15.4.0",
|
|
53
53
|
"@atlaskit/tooltip": "^23.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"uuid": "^3.1.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^116.
|
|
62
|
+
"@atlaskit/editor-common": "^116.22.0",
|
|
63
63
|
"react": "^18.2.0",
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"react-intl": "^5.25.1 || ^6.0.0 || ^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
|
},
|