@atlaskit/editor-plugin-block-controls 7.5.9 → 7.5.10
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 +7 -0
- package/dist/cjs/pm-plugins/decorations-drag-handle.js +1 -1
- package/dist/cjs/pm-plugins/decorations-quick-insert-button.js +1 -1
- package/dist/es2019/pm-plugins/decorations-drag-handle.js +1 -1
- package/dist/es2019/pm-plugins/decorations-quick-insert-button.js +1 -1
- package/dist/esm/pm-plugins/decorations-drag-handle.js +1 -1
- package/dist/esm/pm-plugins/decorations-quick-insert-button.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 7.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a2263cbfb6899`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2263cbfb6899) -
|
|
8
|
+
[FG-CLEANUP] platform_editor_breakout_resizing_widget_fix
|
|
9
|
+
|
|
3
10
|
## 7.5.9
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -60,7 +60,7 @@ var dragHandleDecoration = exports.dragHandleDecoration = function dragHandleDec
|
|
|
60
60
|
* Exclude 'breakout' on purpose, so the widgets render at the top of the document to avoid z-index issues
|
|
61
61
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
62
62
|
*/
|
|
63
|
-
marks: (0,
|
|
63
|
+
marks: (0, _marks.getActiveBlockMarks)(editorState, pos),
|
|
64
64
|
destroy: function destroy(node) {
|
|
65
65
|
unbind && unbind();
|
|
66
66
|
if ((0, _experiments.editorExperiment)('platform_editor_block_control_optimise_render', true) && node instanceof HTMLElement) {
|
|
@@ -45,7 +45,7 @@ var quickInsertButtonDecoration = exports.quickInsertButtonDecoration = function
|
|
|
45
45
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
-
marks: (0,
|
|
48
|
+
marks: (0, _marks.getActiveBlockMarks)(editorState, rootPos),
|
|
49
49
|
destroy: function destroy(_) {
|
|
50
50
|
if ((0, _platformFeatureFlags.fg)('platform_editor_fix_widget_destroy')) {
|
|
51
51
|
nodeViewPortalProviderAPI.remove(key);
|
|
@@ -51,7 +51,7 @@ export const dragHandleDecoration = ({
|
|
|
51
51
|
* Exclude 'breakout' on purpose, so the widgets render at the top of the document to avoid z-index issues
|
|
52
52
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
53
53
|
*/
|
|
54
|
-
marks:
|
|
54
|
+
marks: getActiveBlockMarks(editorState, pos),
|
|
55
55
|
destroy: node => {
|
|
56
56
|
unbind && unbind();
|
|
57
57
|
if (editorExperiment('platform_editor_block_control_optimise_render', true) && node instanceof HTMLElement) {
|
|
@@ -36,7 +36,7 @@ export const quickInsertButtonDecoration = ({
|
|
|
36
36
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
|
-
marks:
|
|
39
|
+
marks: getActiveBlockMarks(editorState, rootPos),
|
|
40
40
|
destroy: _ => {
|
|
41
41
|
if (fg('platform_editor_fix_widget_destroy')) {
|
|
42
42
|
nodeViewPortalProviderAPI.remove(key);
|
|
@@ -52,7 +52,7 @@ export var dragHandleDecoration = function dragHandleDecoration(_ref) {
|
|
|
52
52
|
* Exclude 'breakout' on purpose, so the widgets render at the top of the document to avoid z-index issues
|
|
53
53
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
54
54
|
*/
|
|
55
|
-
marks:
|
|
55
|
+
marks: getActiveBlockMarks(editorState, pos),
|
|
56
56
|
destroy: function destroy(node) {
|
|
57
57
|
unbind && unbind();
|
|
58
58
|
if (editorExperiment('platform_editor_block_control_optimise_render', true) && node instanceof HTMLElement) {
|
|
@@ -37,7 +37,7 @@ export var quickInsertButtonDecoration = function quickInsertButtonDecoration(_r
|
|
|
37
37
|
* Other block marks must be added, otherwise PM will split the DOM elements causing mutations and re-draws
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
marks:
|
|
40
|
+
marks: getActiveBlockMarks(editorState, rootPos),
|
|
41
41
|
destroy: function destroy(_) {
|
|
42
42
|
if (fg('platform_editor_fix_widget_destroy')) {
|
|
43
43
|
nodeViewPortalProviderAPI.remove(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.10",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -148,9 +148,6 @@
|
|
|
148
148
|
"editor_native_anchor_remove_decoration_in_apply": {
|
|
149
149
|
"type": "boolean"
|
|
150
150
|
},
|
|
151
|
-
"platform_editor_breakout_resizing_widget_fix": {
|
|
152
|
-
"type": "boolean"
|
|
153
|
-
},
|
|
154
151
|
"platform_editor_content_mode_button_mvp": {
|
|
155
152
|
"type": "boolean"
|
|
156
153
|
},
|