@atlaskit/editor-plugin-block-controls 1.7.1 → 1.7.2

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
+ ## 1.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123621](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123621)
8
+ [`4184bd66727cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4184bd66727cb) -
9
+ Update drag preview opacity on windows
10
+ - Updated dependencies
11
+
3
12
  ## 1.7.1
4
13
 
5
14
  ### Patch Changes
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.dragPreview = void 0;
7
+ var _utils = require("@atlaskit/editor-common/utils");
7
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
9
  var _colors = require("@atlaskit/theme/colors");
9
10
  var previewStyle = {
@@ -52,7 +53,7 @@ var dragPreview = exports.dragPreview = function dragPreview(container, dom, nod
52
53
  clonedDom.style.marginRight = '0';
53
54
  clonedDom.style.marginBottom = '0';
54
55
  clonedDom.style.boxShadow = 'none';
55
- clonedDom.style.opacity = (0, _platformFeatureFlags.fg)('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
56
+ clonedDom.style.opacity = _utils.browser.windows ? '1' : (0, _platformFeatureFlags.fg)('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
56
57
  parent.appendChild(clonedDom);
57
58
  }
58
59
  container.appendChild(parent);
@@ -1,3 +1,4 @@
1
+ import { browser } from '@atlaskit/editor-common/utils';
1
2
  import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { B200, N20, N30 } from '@atlaskit/theme/colors';
3
4
  const previewStyle = {
@@ -46,7 +47,7 @@ export const dragPreview = (container, dom, nodeType) => {
46
47
  clonedDom.style.marginRight = '0';
47
48
  clonedDom.style.marginBottom = '0';
48
49
  clonedDom.style.boxShadow = 'none';
49
- clonedDom.style.opacity = fg('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
50
+ clonedDom.style.opacity = browser.windows ? '1' : fg('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
50
51
  parent.appendChild(clonedDom);
51
52
  }
52
53
  container.appendChild(parent);
@@ -1,3 +1,4 @@
1
+ import { browser } from '@atlaskit/editor-common/utils';
1
2
  import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { B200, N20, N30 } from '@atlaskit/theme/colors';
3
4
  var previewStyle = {
@@ -46,7 +47,7 @@ export var dragPreview = function dragPreview(container, dom, nodeType) {
46
47
  clonedDom.style.marginRight = '0';
47
48
  clonedDom.style.marginBottom = '0';
48
49
  clonedDom.style.boxShadow = 'none';
49
- clonedDom.style.opacity = fg('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
50
+ clonedDom.style.opacity = browser.windows ? '1' : fg('platform_editor_elements_drag_and_drop_ed_23189') ? '0.31' : '0.4';
50
51
  parent.appendChild(clonedDom);
51
52
  }
52
53
  container.appendChild(parent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
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": "^86.5.0",
35
+ "@atlaskit/editor-common": "^86.6.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",