@atlaskit/editor-plugin-block-controls 1.5.9 → 1.5.11

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
+ ## 1.5.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.5.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [#116393](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116393)
14
+ [`30fa8a58b9dc8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30fa8a58b9dc8) -
15
+ Fix drag handle overlaps with the content when deleting text across lines
16
+
3
17
  ## 1.5.9
4
18
 
5
19
  ### Patch Changes
@@ -53,8 +53,12 @@ var globalStyles = (0, _react.css)({
53
53
  marginTop: '0 !important'
54
54
  }
55
55
  });
56
+ var withDeleteLinesStyleFix = (0, _react.css)((0, _defineProperty2.default)({}, "p[data-drag-handler-anchor-name] .ProseMirror-widget[data-blocks-drag-handle-container=\"true\"]", {
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
58
+ display: 'none !important'
59
+ }));
56
60
  var GlobalStylesWrapper = exports.GlobalStylesWrapper = function GlobalStylesWrapper() {
57
61
  return (0, _react.jsx)(_react.Global, {
58
- styles: [globalStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix]
62
+ styles: [globalStyles, (0, _platformFeatureFlags.fg)('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, (0, _platformFeatureFlags.fg)('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix, (0, _platformFeatureFlags.fg)('platform.editor.elements.drag-and-drop-ed-23932') && withDeleteLinesStyleFix]
59
63
  });
60
64
  };
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import { css, Global, jsx } from '@emotion/react';
4
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
+ import { fg } from '@atlaskit/platform-feature-flags';
5
5
  const extendedHoverZone = css({
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
7
7
  '.block-ctrl-drag-preview [data-drag-handler-anchor-name]::after': {
@@ -52,8 +52,15 @@ const globalStyles = css({
52
52
  marginTop: '0 !important'
53
53
  }
54
54
  });
55
+ const withDeleteLinesStyleFix = css({
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
57
+ [`p[data-drag-handler-anchor-name] .ProseMirror-widget[data-blocks-drag-handle-container="true"]`]: {
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
59
+ display: 'none !important'
60
+ }
61
+ });
55
62
  export const GlobalStylesWrapper = () => {
56
63
  return jsx(Global, {
57
- styles: [globalStyles, getBooleanFF('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, getBooleanFF('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix]
64
+ styles: [globalStyles, fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, fg('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix, fg('platform.editor.elements.drag-and-drop-ed-23932') && withDeleteLinesStyleFix]
58
65
  });
59
66
  };
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css, Global, jsx } from '@emotion/react';
5
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  var extendedHoverZone = css({
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
8
8
  '.block-ctrl-drag-preview [data-drag-handler-anchor-name]::after': {
@@ -45,8 +45,12 @@ var globalStyles = css({
45
45
  marginTop: '0 !important'
46
46
  }
47
47
  });
48
+ var withDeleteLinesStyleFix = css(_defineProperty({}, "p[data-drag-handler-anchor-name] .ProseMirror-widget[data-blocks-drag-handle-container=\"true\"]", {
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
50
+ display: 'none !important'
51
+ }));
48
52
  export var GlobalStylesWrapper = function GlobalStylesWrapper() {
49
53
  return jsx(Global, {
50
- styles: [globalStyles, getBooleanFF('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, getBooleanFF('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix]
54
+ styles: [globalStyles, fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && extendedHoverZone, fg('platform.editor.elements.drag-and-drop-ed-23868') ? withInlineNodeStyleFix : withoutInlineNodeStyleFix, fg('platform.editor.elements.drag-and-drop-ed-23932') && withDeleteLinesStyleFix]
51
55
  });
52
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^39.0.3",
35
- "@atlaskit/editor-common": "^83.5.0",
35
+ "@atlaskit/editor-common": "^84.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.5",
38
38
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
@@ -42,8 +42,8 @@
42
42
  "@atlaskit/editor-tables": "^2.7.0",
43
43
  "@atlaskit/icon": "^22.5.0",
44
44
  "@atlaskit/platform-feature-flags": "^0.3.0",
45
- "@atlaskit/pragmatic-drag-and-drop": "^1.1.0",
46
- "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
45
+ "@atlaskit/pragmatic-drag-and-drop": "^1.2.0",
46
+ "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
47
47
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
48
48
  "@atlaskit/theme": "^12.11.0",
49
49
  "@atlaskit/tokens": "^1.53.0",
@@ -116,6 +116,9 @@
116
116
  },
117
117
  "platform.editor.elements.drag-and-drop-ed-23905": {
118
118
  "type": "boolean"
119
+ },
120
+ "platform.editor.elements.drag-and-drop-ed-23932": {
121
+ "type": "boolean"
119
122
  }
120
123
  }
121
124
  }