@atlaskit/editor-plugin-block-controls 6.3.6 → 6.3.7

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
+ ## 6.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`15efb9ffafdd5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15efb9ffafdd5) -
8
+ [ux] Fix for scroll to top that happened when drag handle is clicked at the bottom of a long page
9
+ in Safari.
10
+ - Updated dependencies
11
+
3
12
  ## 6.3.6
4
13
 
5
14
  ### Patch Changes
@@ -406,7 +406,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
406
406
  // as expected with a node selection. This workaround sets the selection to the node on mouseDown,
407
407
  // but ensures the preview is generated correctly.
408
408
  var handleMouseDown = (0, _react.useCallback)(function () {
409
- if ((0, _experiments.editorExperiment)('advanced_layouts', true)) {
409
+ if ((0, _experiments.editorExperiment)('advanced_layouts', true) && !(0, _platformFeatureFlags.fg)('platform_editor_draghandle_safari_scroll_fix')) {
410
410
  var _buttonRef$current;
411
411
  // prevent native drag and drop.
412
412
  (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 || _buttonRef$current.focus();
@@ -386,7 +386,7 @@ export const DragHandle = ({
386
386
  // as expected with a node selection. This workaround sets the selection to the node on mouseDown,
387
387
  // but ensures the preview is generated correctly.
388
388
  const handleMouseDown = useCallback(() => {
389
- if (editorExperiment('advanced_layouts', true)) {
389
+ if (editorExperiment('advanced_layouts', true) && !fg('platform_editor_draghandle_safari_scroll_fix')) {
390
390
  var _buttonRef$current;
391
391
  // prevent native drag and drop.
392
392
  (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.focus();
@@ -403,7 +403,7 @@ export var DragHandle = function DragHandle(_ref) {
403
403
  // as expected with a node selection. This workaround sets the selection to the node on mouseDown,
404
404
  // but ensures the preview is generated correctly.
405
405
  var handleMouseDown = useCallback(function () {
406
- if (editorExperiment('advanced_layouts', true)) {
406
+ if (editorExperiment('advanced_layouts', true) && !fg('platform_editor_draghandle_safari_scroll_fix')) {
407
407
  var _buttonRef$current;
408
408
  // prevent native drag and drop.
409
409
  (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 || _buttonRef$current.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "6.3.6",
3
+ "version": "6.3.7",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
53
53
  "@atlaskit/primitives": "^14.15.0",
54
54
  "@atlaskit/theme": "^21.0.0",
55
- "@atlaskit/tmp-editor-statsig": "^12.28.0",
55
+ "@atlaskit/tmp-editor-statsig": "^12.29.0",
56
56
  "@atlaskit/tokens": "^6.3.0",
57
57
  "@atlaskit/tooltip": "^20.4.0",
58
58
  "@babel/runtime": "^7.0.0",
@@ -64,7 +64,7 @@
64
64
  "uuid": "^3.1.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@atlaskit/editor-common": "^109.11.0",
67
+ "@atlaskit/editor-common": "^109.13.0",
68
68
  "react": "^18.2.0",
69
69
  "react-dom": "^18.2.0",
70
70
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -164,6 +164,9 @@
164
164
  },
165
165
  "platform_editor_breakout_resizing_widget_fix": {
166
166
  "type": "boolean"
167
+ },
168
+ "platform_editor_draghandle_safari_scroll_fix": {
169
+ "type": "boolean"
167
170
  }
168
171
  }
169
172
  }