@atlaskit/editor-plugin-annotation 1.19.0 → 1.19.1

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,12 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 1.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5f08e90d0ca00`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5f08e90d0ca00) -
8
+ [ED-24638] Fix: comment button in selection toolbar disappears after dropping
9
+
3
10
  ## 1.19.0
4
11
 
5
12
  ### Minor Changes
@@ -212,6 +212,13 @@ var inlineCommentPlugin = exports.inlineCommentPlugin = function inlineCommentPl
212
212
  hideToolbar(view.state, view.dispatch)();
213
213
  }
214
214
  return false;
215
+ },
216
+ dragstart: function dragstart(view, event) {
217
+ // Mouseup won't be triggered after dropping
218
+ // Hence, update the mouse data to cancel selecting when drag starts
219
+ if ((0, _platformFeatureFlags.fg)('platform_editor_element_drag_and_drop_ed_24638')) {
220
+ return onMouseUp(view.state, view.dispatch)(event);
221
+ }
215
222
  }
216
223
  },
217
224
  decorations: function decorations(state) {
@@ -151,6 +151,13 @@ export const inlineCommentPlugin = options => {
151
151
  hideToolbar(view.state, view.dispatch)();
152
152
  }
153
153
  return false;
154
+ },
155
+ dragstart: (view, event) => {
156
+ // Mouseup won't be triggered after dropping
157
+ // Hence, update the mouse data to cancel selecting when drag starts
158
+ if (fg('platform_editor_element_drag_and_drop_ed_24638')) {
159
+ return onMouseUp(view.state, view.dispatch)(event);
160
+ }
154
161
  }
155
162
  },
156
163
  decorations(state) {
@@ -205,6 +205,13 @@ export var inlineCommentPlugin = function inlineCommentPlugin(options) {
205
205
  hideToolbar(view.state, view.dispatch)();
206
206
  }
207
207
  return false;
208
+ },
209
+ dragstart: function dragstart(view, event) {
210
+ // Mouseup won't be triggered after dropping
211
+ // Hence, update the mouse data to cancel selecting when drag starts
212
+ if (fg('platform_editor_element_drag_and_drop_ed_24638')) {
213
+ return onMouseUp(view.state, view.dispatch)(event);
214
+ }
208
215
  }
209
216
  },
210
217
  decorations: function decorations(state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^40.8.1",
36
- "@atlaskit/editor-common": "^87.6.0",
36
+ "@atlaskit/editor-common": "^87.13.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.7.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode-effects": "^1.1.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
40
40
  "@atlaskit/editor-prosemirror": "5.0.1",
41
- "@atlaskit/icon": "^22.11.0",
41
+ "@atlaskit/icon": "^22.14.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
@@ -91,6 +91,9 @@
91
91
  "platform-feature-flags": {
92
92
  "editor_inline_comments_on_inline_nodes": {
93
93
  "type": "boolean"
94
+ },
95
+ "platform_editor_element_drag_and_drop_ed_24638": {
96
+ "type": "boolean"
94
97
  }
95
98
  }
96
99
  }