@atlaskit/editor-plugin-block-controls 2.15.2 → 2.15.3
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
|
@@ -8,10 +8,12 @@ var _browser = require("@atlaskit/editor-common/browser");
|
|
|
8
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
var previewStyle = {
|
|
11
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
11
12
|
borderColor: (0, _platformFeatureFlags.fg)('platform_editor_elements_drag_and_drop_ed_23189') ? "var(--ds-border, ".concat(_colors.N30, ")") : "var(--ds-border-focused, ".concat(_colors.B200, ")"),
|
|
12
13
|
borderStyle: 'solid',
|
|
13
14
|
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
14
15
|
borderWidth: "var(--ds-border-width-outline, 2px)",
|
|
16
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
15
17
|
backgroundColor: (0, _platformFeatureFlags.fg)('platform_editor_elements_drag_and_drop_ed_23189') ? "var(--ds-skeleton-subtle, ".concat(_colors.N20, ")") : "var(--ds-blanket-selected, #388BFF14)"
|
|
16
18
|
};
|
|
17
19
|
var dragPreview = exports.dragPreview = function dragPreview(container, dom, nodeType) {
|
|
@@ -2,10 +2,12 @@ import { browser } from '@atlaskit/editor-common/browser';
|
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
3
|
import { B200, N20, N30 } from '@atlaskit/theme/colors';
|
|
4
4
|
const previewStyle = {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
5
6
|
borderColor: fg('platform_editor_elements_drag_and_drop_ed_23189') ? `var(--ds-border, ${N30})` : `var(--ds-border-focused, ${B200})`,
|
|
6
7
|
borderStyle: 'solid',
|
|
7
8
|
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
8
9
|
borderWidth: "var(--ds-border-width-outline, 2px)",
|
|
10
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
9
11
|
backgroundColor: fg('platform_editor_elements_drag_and_drop_ed_23189') ? `var(--ds-skeleton-subtle, ${N20})` : "var(--ds-blanket-selected, #388BFF14)"
|
|
10
12
|
};
|
|
11
13
|
export const dragPreview = (container, dom, nodeType) => {
|
|
@@ -2,10 +2,12 @@ import { browser } from '@atlaskit/editor-common/browser';
|
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
3
|
import { B200, N20, N30 } from '@atlaskit/theme/colors';
|
|
4
4
|
var previewStyle = {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
5
6
|
borderColor: fg('platform_editor_elements_drag_and_drop_ed_23189') ? "var(--ds-border, ".concat(N30, ")") : "var(--ds-border-focused, ".concat(B200, ")"),
|
|
6
7
|
borderStyle: 'solid',
|
|
7
8
|
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
8
9
|
borderWidth: "var(--ds-border-width-outline, 2px)",
|
|
10
|
+
// eslint-disable-next-line @atlaskit/platform/no-module-level-eval
|
|
9
11
|
backgroundColor: fg('platform_editor_elements_drag_and_drop_ed_23189') ? "var(--ds-skeleton-subtle, ".concat(N20, ")") : "var(--ds-blanket-selected, #388BFF14)"
|
|
10
12
|
};
|
|
11
13
|
export var dragPreview = function dragPreview(container, dom, nodeType) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.3",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/theme": "^14.0.0",
|
|
51
51
|
"@atlaskit/tmp-editor-statsig": "^2.25.0",
|
|
52
52
|
"@atlaskit/tokens": "^2.4.0",
|
|
53
|
-
"@atlaskit/tooltip": "^
|
|
53
|
+
"@atlaskit/tooltip": "^19.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
56
56
|
"bind-event-listener": "^3.0.0",
|