@atlaskit/editor-plugin-block-controls 9.0.20 → 9.0.22
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 +14 -0
- package/dist/cjs/ui/consts.js +1 -1
- package/dist/cjs/ui/drag-handle.js +16 -16
- package/dist/cjs/ui/drag-preview.js +2 -3
- package/dist/cjs/ui/drop-target-layout.js +1 -2
- package/dist/cjs/ui/global-styles.js +1 -1
- package/dist/cjs/ui/inline-drop-target.js +1 -2
- package/dist/cjs/ui/quick-insert-button.js +1 -1
- package/dist/es2019/ui/consts.js +1 -1
- package/dist/es2019/ui/drag-handle.js +16 -16
- package/dist/es2019/ui/drag-preview.js +2 -3
- package/dist/es2019/ui/drop-target-layout.js +1 -2
- package/dist/es2019/ui/global-styles.js +1 -1
- package/dist/es2019/ui/inline-drop-target.js +1 -2
- package/dist/es2019/ui/quick-insert-button.js +1 -1
- package/dist/esm/ui/consts.js +1 -1
- package/dist/esm/ui/drag-handle.js +16 -16
- package/dist/esm/ui/drag-preview.js +2 -3
- package/dist/esm/ui/drop-target-layout.js +1 -2
- package/dist/esm/ui/global-styles.js +1 -1
- package/dist/esm/ui/inline-drop-target.js +1 -2
- package/dist/esm/ui/quick-insert-button.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 9.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5892e575833a1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5892e575833a1) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.0.21
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.0.20
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/consts.js
CHANGED
|
@@ -131,7 +131,7 @@ var topPositionAdjustment = exports.topPositionAdjustment = function topPosition
|
|
|
131
131
|
return 0;
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
var dropTargetMarginMap = exports.dropTargetMarginMap = (_dropTargetMarginMap = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_dropTargetMarginMap, -24, "var(--ds-space-negative-300, -24px)"), -20, "var(--ds-space-negative-250, -20px)"), -16, "var(--ds-space-negative-200, -16px)"), -12, "var(--ds-space-negative-150, -12px)"), -8, "var(--ds-space-negative-100, -8px)"), -6, "var(--ds-space-negative-075, -6px)"), -4, "var(--ds-space-negative-050, -4px)"), -2, "var(--ds-space-negative-025, -2px)"), 0, "var(--ds-space-0,
|
|
134
|
+
var dropTargetMarginMap = exports.dropTargetMarginMap = (_dropTargetMarginMap = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_dropTargetMarginMap, -24, "var(--ds-space-negative-300, -24px)"), -20, "var(--ds-space-negative-250, -20px)"), -16, "var(--ds-space-negative-200, -16px)"), -12, "var(--ds-space-negative-150, -12px)"), -8, "var(--ds-space-negative-100, -8px)"), -6, "var(--ds-space-negative-075, -6px)"), -4, "var(--ds-space-negative-050, -4px)"), -2, "var(--ds-space-negative-025, -2px)"), 0, "var(--ds-space-0, 0px)"), 2, "var(--ds-space-025, 2px)"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_dropTargetMarginMap, 4, "var(--ds-space-050, 4px)"), 6, "var(--ds-space-075, 6px)"), 8, "var(--ds-space-100, 8px)"), 12, "var(--ds-space-150, 12px)"), 16, "var(--ds-space-200, 16px)"), 20, "var(--ds-space-250, 20px)"), 24, "var(--ds-space-300, 24px)"));
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* This document serves as a quick reference map for correlating various space matches
|
|
@@ -119,23 +119,23 @@ var dragHandleButtonStyles = (0, _react2.css)({
|
|
|
119
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
120
120
|
borderRadius: _consts2.DRAG_HANDLE_BORDER_RADIUS,
|
|
121
121
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
122
|
-
color: "var(--ds-icon, #
|
|
122
|
+
color: "var(--ds-icon, #292A2E)",
|
|
123
123
|
cursor: 'grab',
|
|
124
124
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
125
125
|
zIndex: _consts2.DRAG_HANDLE_ZINDEX,
|
|
126
126
|
outline: 'none',
|
|
127
127
|
'&:hover': {
|
|
128
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
128
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
129
129
|
},
|
|
130
130
|
'&:active': {
|
|
131
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
131
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
132
132
|
},
|
|
133
133
|
'&:disabled': {
|
|
134
|
-
color: "var(--ds-icon-disabled, #
|
|
134
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
135
135
|
backgroundColor: 'transparent'
|
|
136
136
|
},
|
|
137
137
|
'&:hover:disabled': {
|
|
138
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
138
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
|
|
@@ -172,40 +172,40 @@ var dragHandleButtonStylesOld = (0, _react2.css)({
|
|
|
172
172
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
173
173
|
borderRadius: _consts2.DRAG_HANDLE_BORDER_RADIUS,
|
|
174
174
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
175
|
-
color: "var(--ds-icon, #
|
|
175
|
+
color: "var(--ds-icon, #292A2E)",
|
|
176
176
|
cursor: 'grab',
|
|
177
177
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
178
|
zIndex: _consts2.DRAG_HANDLE_ZINDEX,
|
|
179
179
|
outline: 'none',
|
|
180
180
|
'&:hover': {
|
|
181
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
181
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
182
182
|
},
|
|
183
183
|
'&:active': {
|
|
184
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
184
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
185
185
|
},
|
|
186
186
|
'&:focus': {
|
|
187
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
187
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
188
188
|
},
|
|
189
189
|
'&:disabled': {
|
|
190
|
-
color: "var(--ds-icon-disabled, #
|
|
190
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
191
191
|
backgroundColor: 'transparent'
|
|
192
192
|
},
|
|
193
193
|
'&:hover:disabled': {
|
|
194
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
194
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
var focusedStylesOld = (0, _react2.css)({
|
|
198
198
|
'&:focus': {
|
|
199
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
199
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
var focusedStyles = (0, _react2.css)({
|
|
203
203
|
'&:focus-visible': {
|
|
204
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
204
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
var keyboardFocusedDragHandleStyles = (0, _react2.css)({
|
|
208
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
208
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
209
209
|
});
|
|
210
210
|
var dragHandleContainerStyles = (0, _primitives.xcss)({
|
|
211
211
|
position: 'absolute',
|
|
@@ -295,8 +295,8 @@ var layoutColumnDragHandleStyles = (0, _react2.css)({
|
|
|
295
295
|
transform: 'rotate(90deg)'
|
|
296
296
|
});
|
|
297
297
|
var selectedStyles = (0, _react2.css)({
|
|
298
|
-
backgroundColor: "var(--ds-background-selected, #
|
|
299
|
-
color: "var(--ds-icon-selected, #
|
|
298
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
299
|
+
color: "var(--ds-icon-selected, #1868DB)"
|
|
300
300
|
});
|
|
301
301
|
|
|
302
302
|
// [Chrome only] When selection contains multiple nodes and then drag a drag handle that is within the selection range,
|
|
@@ -7,14 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.dragPreview = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
10
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
11
10
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
11
|
var previewStyle = {
|
|
13
|
-
borderColor: "var(--ds-border,
|
|
12
|
+
borderColor: "var(--ds-border, #0B120E24)",
|
|
14
13
|
borderStyle: 'solid',
|
|
15
14
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
16
15
|
borderWidth: "var(--ds-border-width-selected, 2px)",
|
|
17
|
-
backgroundColor: "var(--ds-skeleton-subtle,
|
|
16
|
+
backgroundColor: "var(--ds-skeleton-subtle, #17171708)"
|
|
18
17
|
};
|
|
19
18
|
var getPreviewContainerDimensionsForSingle = function getPreviewContainerDimensionsForSingle(dom, nodeType) {
|
|
20
19
|
var nodeContainer = dom;
|
|
@@ -12,7 +12,6 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
13
|
var _box = require("@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box");
|
|
14
14
|
var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _decorationsCommon = require("../pm-plugins/decorations-common");
|
|
18
17
|
var _activeAnchorTracker = require("../pm-plugins/utils/active-anchor-tracker");
|
|
@@ -40,7 +39,7 @@ var dropTargetLayoutStyle = (0, _react2.css)({
|
|
|
40
39
|
var dropTargetLayoutHintStyle = (0, _react2.css)({
|
|
41
40
|
height: '100%',
|
|
42
41
|
position: 'relative',
|
|
43
|
-
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused,
|
|
42
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused, #4688EC)"),
|
|
44
43
|
width: 0
|
|
45
44
|
});
|
|
46
45
|
var DropTargetLayout = exports.DropTargetLayout = function DropTargetLayout(props) {
|
|
@@ -284,7 +284,7 @@ var quickInsertStyles = function quickInsertStyles() {
|
|
|
284
284
|
},
|
|
285
285
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
286
286
|
'.blocks-quick-insert-button:focus': {
|
|
287
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
287
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
288
288
|
},
|
|
289
289
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
290
290
|
'.blocks-quick-insert-visible-container': {
|
|
@@ -12,7 +12,6 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
13
|
var _box = require("@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box");
|
|
14
14
|
var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _decorationsCommon = require("../pm-plugins/decorations-common");
|
|
18
17
|
var _activeAnchorTracker = require("../pm-plugins/utils/active-anchor-tracker");
|
|
@@ -59,7 +58,7 @@ var GAP = 4;
|
|
|
59
58
|
var dropTargetLayoutHintStyle = (0, _react2.css)({
|
|
60
59
|
height: '100%',
|
|
61
60
|
position: 'absolute',
|
|
62
|
-
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused,
|
|
61
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused, #4688EC)"),
|
|
63
62
|
width: 0,
|
|
64
63
|
left: 0
|
|
65
64
|
});
|
|
@@ -62,7 +62,7 @@ var stickyButtonStyles = (0, _primitives.xcss)({
|
|
|
62
62
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
63
63
|
},
|
|
64
64
|
':focus': {
|
|
65
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
65
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
package/dist/es2019/ui/consts.js
CHANGED
|
@@ -131,7 +131,7 @@ export const dropTargetMarginMap = {
|
|
|
131
131
|
[-6]: "var(--ds-space-negative-075, -6px)",
|
|
132
132
|
[-4]: "var(--ds-space-negative-050, -4px)",
|
|
133
133
|
[-2]: "var(--ds-space-negative-025, -2px)",
|
|
134
|
-
0: "var(--ds-space-0,
|
|
134
|
+
0: "var(--ds-space-0, 0px)",
|
|
135
135
|
2: "var(--ds-space-025, 2px)",
|
|
136
136
|
4: "var(--ds-space-050, 4px)",
|
|
137
137
|
6: "var(--ds-space-075, 6px)",
|
|
@@ -111,23 +111,23 @@ const dragHandleButtonStyles = css({
|
|
|
111
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
112
112
|
borderRadius: DRAG_HANDLE_BORDER_RADIUS,
|
|
113
113
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
114
|
-
color: "var(--ds-icon, #
|
|
114
|
+
color: "var(--ds-icon, #292A2E)",
|
|
115
115
|
cursor: 'grab',
|
|
116
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
117
117
|
zIndex: DRAG_HANDLE_ZINDEX,
|
|
118
118
|
outline: 'none',
|
|
119
119
|
'&:hover': {
|
|
120
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
120
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
121
121
|
},
|
|
122
122
|
'&:active': {
|
|
123
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
123
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
124
124
|
},
|
|
125
125
|
'&:disabled': {
|
|
126
|
-
color: "var(--ds-icon-disabled, #
|
|
126
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
127
127
|
backgroundColor: 'transparent'
|
|
128
128
|
},
|
|
129
129
|
'&:hover:disabled': {
|
|
130
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
130
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
|
|
@@ -167,40 +167,40 @@ const dragHandleButtonStylesOld = css({
|
|
|
167
167
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
168
168
|
borderRadius: DRAG_HANDLE_BORDER_RADIUS,
|
|
169
169
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
170
|
-
color: "var(--ds-icon, #
|
|
170
|
+
color: "var(--ds-icon, #292A2E)",
|
|
171
171
|
cursor: 'grab',
|
|
172
172
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
173
173
|
zIndex: DRAG_HANDLE_ZINDEX,
|
|
174
174
|
outline: 'none',
|
|
175
175
|
'&:hover': {
|
|
176
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
176
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
177
177
|
},
|
|
178
178
|
'&:active': {
|
|
179
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
179
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
180
180
|
},
|
|
181
181
|
'&:focus': {
|
|
182
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
182
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
183
183
|
},
|
|
184
184
|
'&:disabled': {
|
|
185
|
-
color: "var(--ds-icon-disabled, #
|
|
185
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
186
186
|
backgroundColor: 'transparent'
|
|
187
187
|
},
|
|
188
188
|
'&:hover:disabled': {
|
|
189
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
189
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
const focusedStylesOld = css({
|
|
193
193
|
'&:focus': {
|
|
194
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
194
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
const focusedStyles = css({
|
|
198
198
|
'&:focus-visible': {
|
|
199
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
199
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
const keyboardFocusedDragHandleStyles = css({
|
|
203
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
203
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
204
204
|
});
|
|
205
205
|
const dragHandleContainerStyles = xcss({
|
|
206
206
|
position: 'absolute',
|
|
@@ -290,8 +290,8 @@ const layoutColumnDragHandleStyles = css({
|
|
|
290
290
|
transform: 'rotate(90deg)'
|
|
291
291
|
});
|
|
292
292
|
const selectedStyles = css({
|
|
293
|
-
backgroundColor: "var(--ds-background-selected, #
|
|
294
|
-
color: "var(--ds-icon-selected, #
|
|
293
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
294
|
+
color: "var(--ds-icon-selected, #1868DB)"
|
|
295
295
|
});
|
|
296
296
|
|
|
297
297
|
// [Chrome only] When selection contains multiple nodes and then drag a drag handle that is within the selection range,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
|
-
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
3
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
const previewStyle = {
|
|
5
|
-
borderColor:
|
|
4
|
+
borderColor: "var(--ds-border, #0B120E24)",
|
|
6
5
|
borderStyle: 'solid',
|
|
7
6
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
8
7
|
borderWidth: "var(--ds-border-width-selected, 2px)",
|
|
9
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: "var(--ds-skeleton-subtle, #17171708)"
|
|
10
9
|
};
|
|
11
10
|
const getPreviewContainerDimensionsForSingle = (dom, nodeType) => {
|
|
12
11
|
let nodeContainer = dom;
|
|
@@ -9,7 +9,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
11
11
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
12
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { getNodeAnchor } from '../pm-plugins/decorations-common';
|
|
15
14
|
import { useActiveAnchorTracker } from '../pm-plugins/utils/active-anchor-tracker';
|
|
@@ -31,7 +30,7 @@ const dropTargetLayoutStyle = css({
|
|
|
31
30
|
const dropTargetLayoutHintStyle = css({
|
|
32
31
|
height: '100%',
|
|
33
32
|
position: 'relative',
|
|
34
|
-
borderRight: `${"var(--ds-border-width, 1px)"} dashed ${
|
|
33
|
+
borderRight: `${"var(--ds-border-width, 1px)"} dashed ${"var(--ds-border-focused, #4688EC)"}`,
|
|
35
34
|
width: 0
|
|
36
35
|
});
|
|
37
36
|
export const DropTargetLayout = props => {
|
|
@@ -335,7 +335,7 @@ const quickInsertStyles = () => css({
|
|
|
335
335
|
},
|
|
336
336
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
337
337
|
'.blocks-quick-insert-button:focus': {
|
|
338
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
338
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
339
339
|
},
|
|
340
340
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
341
341
|
'.blocks-quick-insert-visible-container': {
|
|
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
13
13
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
14
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
15
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
15
|
import { getNodeAnchor } from '../pm-plugins/decorations-common';
|
|
17
16
|
import { useActiveAnchorTracker } from '../pm-plugins/utils/active-anchor-tracker';
|
|
@@ -49,7 +48,7 @@ const GAP = 4;
|
|
|
49
48
|
const dropTargetLayoutHintStyle = css({
|
|
50
49
|
height: '100%',
|
|
51
50
|
position: 'absolute',
|
|
52
|
-
borderRight: `${"var(--ds-border-width, 1px)"} dashed ${
|
|
51
|
+
borderRight: `${"var(--ds-border-width, 1px)"} dashed ${"var(--ds-border-focused, #4688EC)"}`,
|
|
53
52
|
width: 0,
|
|
54
53
|
left: 0
|
|
55
54
|
});
|
|
@@ -53,7 +53,7 @@ const stickyButtonStyles = xcss({
|
|
|
53
53
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
54
54
|
},
|
|
55
55
|
':focus': {
|
|
56
|
-
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #
|
|
56
|
+
outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
package/dist/esm/ui/consts.js
CHANGED
|
@@ -124,7 +124,7 @@ export var topPositionAdjustment = function topPositionAdjustment(nodeType) {
|
|
|
124
124
|
return 0;
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
export var dropTargetMarginMap = (_dropTargetMarginMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_dropTargetMarginMap, -24, "var(--ds-space-negative-300, -24px)"), -20, "var(--ds-space-negative-250, -20px)"), -16, "var(--ds-space-negative-200, -16px)"), -12, "var(--ds-space-negative-150, -12px)"), -8, "var(--ds-space-negative-100, -8px)"), -6, "var(--ds-space-negative-075, -6px)"), -4, "var(--ds-space-negative-050, -4px)"), -2, "var(--ds-space-negative-025, -2px)"), 0, "var(--ds-space-0,
|
|
127
|
+
export var dropTargetMarginMap = (_dropTargetMarginMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_dropTargetMarginMap, -24, "var(--ds-space-negative-300, -24px)"), -20, "var(--ds-space-negative-250, -20px)"), -16, "var(--ds-space-negative-200, -16px)"), -12, "var(--ds-space-negative-150, -12px)"), -8, "var(--ds-space-negative-100, -8px)"), -6, "var(--ds-space-negative-075, -6px)"), -4, "var(--ds-space-negative-050, -4px)"), -2, "var(--ds-space-negative-025, -2px)"), 0, "var(--ds-space-0, 0px)"), 2, "var(--ds-space-025, 2px)"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_dropTargetMarginMap, 4, "var(--ds-space-050, 4px)"), 6, "var(--ds-space-075, 6px)"), 8, "var(--ds-space-100, 8px)"), 12, "var(--ds-space-150, 12px)"), 16, "var(--ds-space-200, 16px)"), 20, "var(--ds-space-250, 20px)"), 24, "var(--ds-space-300, 24px)"));
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* This document serves as a quick reference map for correlating various space matches
|
|
@@ -116,23 +116,23 @@ var dragHandleButtonStyles = css({
|
|
|
116
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
117
117
|
borderRadius: DRAG_HANDLE_BORDER_RADIUS,
|
|
118
118
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
119
|
-
color: "var(--ds-icon, #
|
|
119
|
+
color: "var(--ds-icon, #292A2E)",
|
|
120
120
|
cursor: 'grab',
|
|
121
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
122
122
|
zIndex: DRAG_HANDLE_ZINDEX,
|
|
123
123
|
outline: 'none',
|
|
124
124
|
'&:hover': {
|
|
125
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
125
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
126
126
|
},
|
|
127
127
|
'&:active': {
|
|
128
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
128
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
129
129
|
},
|
|
130
130
|
'&:disabled': {
|
|
131
|
-
color: "var(--ds-icon-disabled, #
|
|
131
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
132
132
|
backgroundColor: 'transparent'
|
|
133
133
|
},
|
|
134
134
|
'&:hover:disabled': {
|
|
135
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
135
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
|
|
@@ -169,40 +169,40 @@ var dragHandleButtonStylesOld = css({
|
|
|
169
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
170
170
|
borderRadius: DRAG_HANDLE_BORDER_RADIUS,
|
|
171
171
|
// when platform_editor_controls is enabled, the drag handle color is overridden. Update color here when experiment is cleaned up.
|
|
172
|
-
color: "var(--ds-icon, #
|
|
172
|
+
color: "var(--ds-icon, #292A2E)",
|
|
173
173
|
cursor: 'grab',
|
|
174
174
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
175
175
|
zIndex: DRAG_HANDLE_ZINDEX,
|
|
176
176
|
outline: 'none',
|
|
177
177
|
'&:hover': {
|
|
178
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #
|
|
178
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
179
179
|
},
|
|
180
180
|
'&:active': {
|
|
181
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #
|
|
181
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
182
182
|
},
|
|
183
183
|
'&:focus': {
|
|
184
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
184
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
185
185
|
},
|
|
186
186
|
'&:disabled': {
|
|
187
|
-
color: "var(--ds-icon-disabled, #
|
|
187
|
+
color: "var(--ds-icon-disabled, #080F214A)",
|
|
188
188
|
backgroundColor: 'transparent'
|
|
189
189
|
},
|
|
190
190
|
'&:hover:disabled': {
|
|
191
|
-
backgroundColor: "var(--ds-background-disabled,
|
|
191
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)"
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
var focusedStylesOld = css({
|
|
195
195
|
'&:focus': {
|
|
196
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
196
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
var focusedStyles = css({
|
|
200
200
|
'&:focus-visible': {
|
|
201
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
201
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
var keyboardFocusedDragHandleStyles = css({
|
|
205
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
205
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
206
206
|
});
|
|
207
207
|
var dragHandleContainerStyles = xcss({
|
|
208
208
|
position: 'absolute',
|
|
@@ -292,8 +292,8 @@ var layoutColumnDragHandleStyles = css({
|
|
|
292
292
|
transform: 'rotate(90deg)'
|
|
293
293
|
});
|
|
294
294
|
var selectedStyles = css({
|
|
295
|
-
backgroundColor: "var(--ds-background-selected, #
|
|
296
|
-
color: "var(--ds-icon-selected, #
|
|
295
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
296
|
+
color: "var(--ds-icon-selected, #1868DB)"
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
// [Chrome only] When selection contains multiple nodes and then drag a drag handle that is within the selection range,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
2
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
|
-
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
var previewStyle = {
|
|
6
|
-
borderColor: "var(--ds-border,
|
|
5
|
+
borderColor: "var(--ds-border, #0B120E24)",
|
|
7
6
|
borderStyle: 'solid',
|
|
8
7
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
9
8
|
borderWidth: "var(--ds-border-width-selected, 2px)",
|
|
10
|
-
backgroundColor: "var(--ds-skeleton-subtle,
|
|
9
|
+
backgroundColor: "var(--ds-skeleton-subtle, #17171708)"
|
|
11
10
|
};
|
|
12
11
|
var getPreviewContainerDimensionsForSingle = function getPreviewContainerDimensionsForSingle(dom, nodeType) {
|
|
13
12
|
var nodeContainer = dom;
|
|
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
13
13
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
14
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
15
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
15
|
import { getNodeAnchor } from '../pm-plugins/decorations-common';
|
|
17
16
|
import { useActiveAnchorTracker } from '../pm-plugins/utils/active-anchor-tracker';
|
|
@@ -33,7 +32,7 @@ var dropTargetLayoutStyle = css({
|
|
|
33
32
|
var dropTargetLayoutHintStyle = css({
|
|
34
33
|
height: '100%',
|
|
35
34
|
position: 'relative',
|
|
36
|
-
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused,
|
|
35
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused, #4688EC)"),
|
|
37
36
|
width: 0
|
|
38
37
|
});
|
|
39
38
|
export var DropTargetLayout = function DropTargetLayout(props) {
|
|
@@ -277,7 +277,7 @@ var quickInsertStyles = function quickInsertStyles() {
|
|
|
277
277
|
},
|
|
278
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
279
279
|
'.blocks-quick-insert-button:focus': {
|
|
280
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
280
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
281
281
|
},
|
|
282
282
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
283
283
|
'.blocks-quick-insert-visible-container': {
|
|
@@ -13,7 +13,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
15
15
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
16
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { getNodeAnchor } from '../pm-plugins/decorations-common';
|
|
19
18
|
import { useActiveAnchorTracker } from '../pm-plugins/utils/active-anchor-tracker';
|
|
@@ -51,7 +50,7 @@ var GAP = 4;
|
|
|
51
50
|
var dropTargetLayoutHintStyle = css({
|
|
52
51
|
height: '100%',
|
|
53
52
|
position: 'absolute',
|
|
54
|
-
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused,
|
|
53
|
+
borderRight: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-focused, #4688EC)"),
|
|
55
54
|
width: 0,
|
|
56
55
|
left: 0
|
|
57
56
|
});
|
|
@@ -57,7 +57,7 @@ var stickyButtonStyles = xcss({
|
|
|
57
57
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
58
58
|
},
|
|
59
59
|
':focus': {
|
|
60
|
-
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #
|
|
60
|
+
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.22",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/icon": "^33.
|
|
51
|
-
"@atlaskit/icon-lab": "^6.
|
|
50
|
+
"@atlaskit/icon": "^33.1.0",
|
|
51
|
+
"@atlaskit/icon-lab": "^6.2.0",
|
|
52
52
|
"@atlaskit/link": "^3.3.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
57
|
-
"@atlaskit/primitives": "^18.
|
|
57
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
58
58
|
"@atlaskit/theme": "^22.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
60
|
-
"@atlaskit/tokens": "^11.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^46.1.0",
|
|
60
|
+
"@atlaskit/tokens": "^11.2.0",
|
|
61
61
|
"@atlaskit/tooltip": "^21.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"uuid": "^3.1.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@atlaskit/editor-common": "^112.
|
|
70
|
+
"@atlaskit/editor-common": "^112.10.0",
|
|
71
71
|
"react": "^18.2.0",
|
|
72
72
|
"react-dom": "^18.2.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1"
|