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

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,26 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#122895](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122895)
8
+ [`49b8c7658f3b5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/49b8c7658f3b5) -
9
+ [ED-24173] bump @atlaskit/adf-schema to 40.3.0 and @atlassian/adf-schema-json to 1.18.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.7.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [#123621](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123621)
20
+ [`4184bd66727cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4184bd66727cb) -
21
+ Update drag preview opacity on windows
22
+ - Updated dependencies
23
+
3
24
  ## 1.7.1
4
25
 
5
26
  ### 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.8.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,9 +31,9 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^39.0.3",
35
- "@atlaskit/editor-common": "^86.5.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.4.0",
34
+ "@atlaskit/adf-schema": "^40.3.0",
35
+ "@atlaskit/editor-common": "^86.7.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.5.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.5",
38
38
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
39
  "@atlaskit/editor-plugin-width": "^1.1.0",