@atlaskit/editor-plugin-block-controls 9.0.16 → 9.0.18
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/drag-handle.js +12 -4
- package/dist/cjs/ui/drop-target.js +12 -4
- package/dist/cjs/ui/global-styles.js +18 -10
- package/dist/cjs/ui/quick-insert-button.js +6 -2
- package/dist/cjs/ui/visibility-container.js +2 -0
- package/dist/es2019/ui/drag-handle.js +12 -4
- package/dist/es2019/ui/drop-target.js +12 -4
- package/dist/es2019/ui/global-styles.js +24 -16
- package/dist/es2019/ui/quick-insert-button.js +6 -2
- package/dist/es2019/ui/visibility-container.js +2 -0
- package/dist/esm/ui/drag-handle.js +12 -4
- package/dist/esm/ui/drop-target.js +12 -4
- package/dist/esm/ui/global-styles.js +18 -10
- package/dist/esm/ui/quick-insert-button.js +6 -2
- package/dist/esm/ui/visibility-container.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 9.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bd008993d07cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd008993d07cd) -
|
|
8
|
+
Reuse the same selectors for determinig hover locations and location to draw drag handle
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.0.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.0.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1172,7 +1172,9 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref3) {
|
|
|
1172
1172
|
return (0, _react2.jsx)(_primitives.Box
|
|
1173
1173
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1174
1174
|
, {
|
|
1175
|
-
style: (0, _experiments.editorExperiment)('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1175
|
+
style: (0, _experiments.editorExperiment)('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1176
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1177
|
+
,
|
|
1176
1178
|
xcss: [dragHandleContainerStyles],
|
|
1177
1179
|
as: "span",
|
|
1178
1180
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1183,7 +1185,9 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref3) {
|
|
|
1183
1185
|
helpDescriptors: helpDescriptors
|
|
1184
1186
|
}),
|
|
1185
1187
|
ignoreTooltipPointerEvents: true,
|
|
1186
|
-
position: 'top'
|
|
1188
|
+
position: 'top'
|
|
1189
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1190
|
+
,
|
|
1187
1191
|
onShow: function onShow() {
|
|
1188
1192
|
var _api$accessibilityUti;
|
|
1189
1193
|
api === null || api === void 0 || (_api$accessibilityUti = api.accessibilityUtils) === null || _api$accessibilityUti === void 0 || _api$accessibilityUti.actions.ariaNotify(message, {
|
|
@@ -1198,7 +1202,9 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref3) {
|
|
|
1198
1202
|
return (0, _react2.jsx)(_primitives.Box
|
|
1199
1203
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1200
1204
|
, {
|
|
1201
|
-
style: (0, _experiments.editorExperiment)('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1205
|
+
style: (0, _experiments.editorExperiment)('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1206
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1207
|
+
,
|
|
1202
1208
|
xcss: [dragHandleContainerStyles],
|
|
1203
1209
|
as: "span",
|
|
1204
1210
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1213,7 +1219,9 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref3) {
|
|
|
1213
1219
|
content: (0, _react2.jsx)(_keymaps.TooltipContentWithMultipleShortcuts, {
|
|
1214
1220
|
helpDescriptors: helpDescriptors
|
|
1215
1221
|
}),
|
|
1216
|
-
ignoreTooltipPointerEvents: true
|
|
1222
|
+
ignoreTooltipPointerEvents: true
|
|
1223
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1224
|
+
,
|
|
1217
1225
|
onShow: function onShow() {
|
|
1218
1226
|
var _api$accessibilityUti2;
|
|
1219
1227
|
api === null || api === void 0 || (_api$accessibilityUti2 = api.accessibilityUtils) === null || _api$accessibilityUti2 === void 0 || _api$accessibilityUti2.actions.ariaNotify(message, {
|
|
@@ -242,10 +242,14 @@ var DropTarget = exports.DropTarget = function DropTarget(props) {
|
|
|
242
242
|
width: isNestedDropTarget ? 'unset' : '100%'
|
|
243
243
|
}, EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_WIDTH, isNestedDropTarget ? '100%' : "".concat(lineLength || DEFAULT_DROP_INDICATOR_WIDTH, "px")), EDITOR_BLOCK_CONTROLS_DROP_TARGET_LEFT_MARGIN, isNestedDropTarget ? (0, _consts.getNestedNodeLeftPaddingMargin)(parentNode === null || parentNode === void 0 ? void 0 : parentNode.type.name) : '0'), EDITOR_BLOCK_CONTROLS_DROP_TARGET_ZINDEX, _constants.layers.navigation());
|
|
244
244
|
var isShowInlineDropTarget = (0, _inlineDropTarget.shouldAllowInlineDropTarget)(isNestedDropTarget, nextNode, isSameLayout, activeNode, parentNode);
|
|
245
|
-
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(HoverZone
|
|
245
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(HoverZone
|
|
246
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
247
|
+
, {
|
|
246
248
|
onDragEnter: function onDragEnter() {
|
|
247
249
|
return setIsDraggedOver(true);
|
|
248
|
-
}
|
|
250
|
+
}
|
|
251
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
252
|
+
,
|
|
249
253
|
onDragLeave: function onDragLeave() {
|
|
250
254
|
return setIsDraggedOver(false);
|
|
251
255
|
},
|
|
@@ -270,10 +274,14 @@ var DropTarget = exports.DropTarget = function DropTarget(props) {
|
|
|
270
274
|
"data-testid": "block-ctrl-drop-indicator"
|
|
271
275
|
}, (0, _react2.jsx)(_box.DropIndicator, {
|
|
272
276
|
edge: "bottom"
|
|
273
|
-
}))), dropTargetStyle !== 'remainingHeight' && (0, _react2.jsx)(HoverZone
|
|
277
|
+
}))), dropTargetStyle !== 'remainingHeight' && (0, _react2.jsx)(HoverZone
|
|
278
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
279
|
+
, {
|
|
274
280
|
onDragEnter: function onDragEnter() {
|
|
275
281
|
return setIsDraggedOver(true);
|
|
276
|
-
}
|
|
282
|
+
}
|
|
283
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
284
|
+
,
|
|
277
285
|
onDragLeave: function onDragLeave() {
|
|
278
286
|
return setIsDraggedOver(false);
|
|
279
287
|
},
|
|
@@ -32,6 +32,12 @@ var dragHandlerAnchorSelector = '[data-drag-handler-anchor-name]:not([data-drag-
|
|
|
32
32
|
* Disregards anchors that can not have handles next to them, and so shouldn't have an extended hover zone
|
|
33
33
|
*/
|
|
34
34
|
var dragHandlerAnchorSelectorNext = "[".concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "]:not([data-prosemirror-node-name=\"tableRow\"], [data-prosemirror-node-name=\"tableCell\"], [data-prosemirror-node-name=\"tableHeader\"], [data-prosemirror-node-name=\"media\"], [data-prosemirror-node-inline=\"true\"])");
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Extended version that also excludes descendants of taskList.
|
|
38
|
+
* preventing the ::after hover zone from blocking checkbox inputs in blockTaskItem nodes.
|
|
39
|
+
*/
|
|
40
|
+
var dragHandlerAnchorSelectorWithTaskExclusion = "[".concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "]:not([data-prosemirror-node-name=\"tableRow\"], [data-prosemirror-node-name=\"tableCell\"], [data-prosemirror-node-name=\"tableHeader\"], [data-prosemirror-node-name=\"media\"], [data-prosemirror-node-inline=\"true\"], [data-prosemirror-node-name=\"taskList\"] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])");
|
|
35
41
|
var gutterPaddingWidth = function gutterPaddingWidth() {
|
|
36
42
|
return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px") : '100%';
|
|
37
43
|
};
|
|
@@ -96,10 +102,10 @@ var extendedHoverZone = function extendedHoverZone() {
|
|
|
96
102
|
}));
|
|
97
103
|
};
|
|
98
104
|
var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
99
|
-
return (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".block-ctrl-drag-preview ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
105
|
+
return (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".block-ctrl-drag-preview ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
100
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
101
107
|
display: 'none !important'
|
|
102
|
-
}), '.ProseMirror', (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&& ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
108
|
+
}), '.ProseMirror', (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&& ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
103
109
|
content: '""',
|
|
104
110
|
position: 'absolute',
|
|
105
111
|
top: 0,
|
|
@@ -110,7 +116,7 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
110
116
|
height: '100%',
|
|
111
117
|
cursor: 'default',
|
|
112
118
|
zIndex: 1
|
|
113
|
-
}), "&& ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
119
|
+
}), "&& ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
114
120
|
content: '""',
|
|
115
121
|
position: 'absolute',
|
|
116
122
|
top: 0,
|
|
@@ -122,7 +128,7 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
122
128
|
cursor: 'default',
|
|
123
129
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
124
130
|
zIndex: -1
|
|
125
|
-
}), "&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
131
|
+
}), "&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
126
132
|
content: '""',
|
|
127
133
|
position: 'absolute',
|
|
128
134
|
top: 0,
|
|
@@ -133,13 +139,13 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
133
139
|
zIndex: 1
|
|
134
140
|
})), 'hr[data-drag-handler-anchor-name]', {
|
|
135
141
|
overflow: 'visible'
|
|
136
|
-
}), "[data-blocks-drag-handle-container=\"true\"] + ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
142
|
+
}), "[data-blocks-drag-handle-container=\"true\"] + ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
137
143
|
display: 'none'
|
|
138
144
|
}));
|
|
139
145
|
};
|
|
140
146
|
var layoutColumnExtendedHoverZone = (0, _react.css)({
|
|
141
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
142
|
-
'.ProseMirror': (0, _defineProperty2.default)({}, "&&& ".concat(dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
148
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, "&&& ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
143
149
|
content: '""',
|
|
144
150
|
position: 'absolute',
|
|
145
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -154,7 +160,7 @@ var layoutColumnExtendedHoverZone = (0, _react.css)({
|
|
|
154
160
|
});
|
|
155
161
|
var layoutColumnWithoutHoverZone = (0, _react.css)({
|
|
156
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
157
|
-
'.ProseMirror': (0, _defineProperty2.default)({}, "&&& ".concat(dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
163
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, "&&& ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
158
164
|
display: 'none'
|
|
159
165
|
})
|
|
160
166
|
});
|
|
@@ -169,7 +175,7 @@ var extendHoverZoneReduced = (0, _react.css)({
|
|
|
169
175
|
});
|
|
170
176
|
var extendHoverZoneReducedNext = (0, _react.css)({
|
|
171
177
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
172
|
-
'.ProseMirror': (0, _defineProperty2.default)({}, "> ".concat(dragHandlerAnchorSelectorNext, "::after"), (0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
|
|
178
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, "> ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), (0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
|
|
173
179
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
174
180
|
left: "-".concat(_editorSharedStyles.akEditorGutterPaddingReduced, "px"),
|
|
175
181
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -185,7 +191,7 @@ var extendedDragZone = (0, _react.css)({
|
|
|
185
191
|
});
|
|
186
192
|
var extendedDragZoneNext = (0, _react.css)({
|
|
187
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
188
|
-
'.ProseMirror': (0, _defineProperty2.default)({}, "&& ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
194
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, "&& ".concat((0, _expValEquals.expValEquals)('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "] [").concat(_domAttrName.NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
189
195
|
width: 'var(--ak-editor-max-container-width)',
|
|
190
196
|
left: "calc((100% - var(--ak-editor-max-container-width))/2)"
|
|
191
197
|
})
|
|
@@ -469,7 +475,9 @@ var GlobalStylesWrapper = exports.GlobalStylesWrapper = function GlobalStylesWra
|
|
|
469
475
|
var isDragging = (0, _expValEquals.expValEquals)('platform_editor_block_controls_perf_optimization', 'isEnabled', true) ? isDraggingFromState : false;
|
|
470
476
|
var shouldRenderAnchors = (0, _styles.isCSSAnchorSupported)() && (0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
471
477
|
var toolbarFlagsEnabled = (0, _toolbarFlagCheck.areToolbarFlagsEnabled)(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
472
|
-
return (0, _react.jsx)(_react.Global
|
|
478
|
+
return (0, _react.jsx)(_react.Global
|
|
479
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
480
|
+
, {
|
|
473
481
|
styles: [globalStyles(), globalDnDStyle, (0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedHoverZoneNext() : extendedHoverZone(), isDragging && ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedDragZoneNext : extendedDragZone), (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
474
482
|
exposure: true
|
|
475
483
|
}) ? (0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendHoverZoneReducedNext : extendHoverZoneReduced : undefined,
|
|
@@ -341,7 +341,9 @@ var TypeAheadControl = exports.TypeAheadControl = function TypeAheadControl(_ref
|
|
|
341
341
|
}, (0, _react2.jsx)(_primitives.Pressable, {
|
|
342
342
|
testId: "editor-quick-insert-button",
|
|
343
343
|
type: "button",
|
|
344
|
-
"aria-label": formatMessage(_messages.blockControlsMessages.insert)
|
|
344
|
+
"aria-label": formatMessage(_messages.blockControlsMessages.insert)
|
|
345
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
346
|
+
,
|
|
345
347
|
xcss: [stickyButtonStyles, ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) && stickyButtonDenseModeStyles],
|
|
346
348
|
onClick: handleQuickInsert,
|
|
347
349
|
onMouseDown: handleMouseDown
|
|
@@ -354,7 +356,9 @@ var TypeAheadControl = exports.TypeAheadControl = function TypeAheadControl(_ref
|
|
|
354
356
|
return (0, _react2.jsx)(_primitives.Box
|
|
355
357
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
356
358
|
, {
|
|
357
|
-
style: positionStyles
|
|
359
|
+
style: positionStyles
|
|
360
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
361
|
+
,
|
|
358
362
|
xcss: [containerStaticStyles]
|
|
359
363
|
}, (0, _react2.jsx)("span", {
|
|
360
364
|
css: [tooltipContainerStyles, (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _platformFeatureFlags.fg)('platform_editor_table_sticky_header_patch_6') ? tooltipContainerImprovedStylesStickyHeader : tooltipContainerStylesStickyHeader, (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _platformFeatureFlags.fg)('platform_editor_table_sticky_header_patch_6') ? tooltipContainerStylesImprovedStickyHeaderWithMarksFix : tooltipContainerStylesStickyHeaderWithMarksFix]
|
|
@@ -124,6 +124,8 @@ var VisibilityContainer = exports.VisibilityContainer = function VisibilityConta
|
|
|
124
124
|
css: [baseStylesCSS, shouldHide ? hiddenStylesCSS : visibleStylesCSS]
|
|
125
125
|
}, children);
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
129
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
128
130
|
xcss: [baseStyles, shouldHide ? hiddenStyles : visibleStyles]
|
|
129
131
|
}, children);
|
|
@@ -1151,7 +1151,9 @@ export const DragHandle = ({
|
|
|
1151
1151
|
const stickyWithTooltip = () => jsx(Box
|
|
1152
1152
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1153
1153
|
, {
|
|
1154
|
-
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1154
|
+
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1156
|
+
,
|
|
1155
1157
|
xcss: [dragHandleContainerStyles],
|
|
1156
1158
|
as: "span",
|
|
1157
1159
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1162,7 +1164,9 @@ export const DragHandle = ({
|
|
|
1162
1164
|
helpDescriptors: helpDescriptors
|
|
1163
1165
|
}),
|
|
1164
1166
|
ignoreTooltipPointerEvents: true,
|
|
1165
|
-
position: 'top'
|
|
1167
|
+
position: 'top'
|
|
1168
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1169
|
+
,
|
|
1166
1170
|
onShow: () => {
|
|
1167
1171
|
var _api$accessibilityUti;
|
|
1168
1172
|
api === null || api === void 0 ? void 0 : (_api$accessibilityUti = api.accessibilityUtils) === null || _api$accessibilityUti === void 0 ? void 0 : _api$accessibilityUti.actions.ariaNotify(message, {
|
|
@@ -1175,7 +1179,9 @@ export const DragHandle = ({
|
|
|
1175
1179
|
const stickyWithoutTooltip = () => jsx(Box
|
|
1176
1180
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1177
1181
|
, {
|
|
1178
|
-
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1182
|
+
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1184
|
+
,
|
|
1179
1185
|
xcss: [dragHandleContainerStyles],
|
|
1180
1186
|
as: "span",
|
|
1181
1187
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1188,7 +1194,9 @@ export const DragHandle = ({
|
|
|
1188
1194
|
content: jsx(TooltipContentWithMultipleShortcuts, {
|
|
1189
1195
|
helpDescriptors: helpDescriptors
|
|
1190
1196
|
}),
|
|
1191
|
-
ignoreTooltipPointerEvents: true
|
|
1197
|
+
ignoreTooltipPointerEvents: true
|
|
1198
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1199
|
+
,
|
|
1192
1200
|
onShow: () => {
|
|
1193
1201
|
var _api$accessibilityUti2;
|
|
1194
1202
|
api === null || api === void 0 ? void 0 : (_api$accessibilityUti2 = api.accessibilityUtils) === null || _api$accessibilityUti2 === void 0 ? void 0 : _api$accessibilityUti2.actions.ariaNotify(message, {
|
|
@@ -235,8 +235,12 @@ export const DropTarget = props => {
|
|
|
235
235
|
[EDITOR_BLOCK_CONTROLS_DROP_TARGET_ZINDEX]: layers.navigation()
|
|
236
236
|
};
|
|
237
237
|
const isShowInlineDropTarget = shouldAllowInlineDropTarget(isNestedDropTarget, nextNode, isSameLayout, activeNode, parentNode);
|
|
238
|
-
return jsx(Fragment, null, jsx(HoverZone
|
|
239
|
-
|
|
238
|
+
return jsx(Fragment, null, jsx(HoverZone
|
|
239
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
240
|
+
, {
|
|
241
|
+
onDragEnter: () => setIsDraggedOver(true)
|
|
242
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
243
|
+
,
|
|
240
244
|
onDragLeave: () => setIsDraggedOver(false),
|
|
241
245
|
onDrop: onDrop,
|
|
242
246
|
node: prevNode,
|
|
@@ -259,8 +263,12 @@ export const DropTarget = props => {
|
|
|
259
263
|
"data-testid": "block-ctrl-drop-indicator"
|
|
260
264
|
}, jsx(DropIndicator, {
|
|
261
265
|
edge: "bottom"
|
|
262
|
-
}))), dropTargetStyle !== 'remainingHeight' && jsx(HoverZone
|
|
263
|
-
|
|
266
|
+
}))), dropTargetStyle !== 'remainingHeight' && jsx(HoverZone
|
|
267
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
268
|
+
, {
|
|
269
|
+
onDragEnter: () => setIsDraggedOver(true)
|
|
270
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
271
|
+
,
|
|
264
272
|
onDragLeave: () => setIsDraggedOver(false),
|
|
265
273
|
onDrop: onDrop,
|
|
266
274
|
node: nextNode,
|
|
@@ -24,6 +24,12 @@ const dragHandlerAnchorSelector = '[data-drag-handler-anchor-name]:not([data-dra
|
|
|
24
24
|
* Disregards anchors that can not have handles next to them, and so shouldn't have an extended hover zone
|
|
25
25
|
*/
|
|
26
26
|
const dragHandlerAnchorSelectorNext = `[${NODE_ANCHOR_ATTR_NAME}]:not([data-prosemirror-node-name="tableRow"], [data-prosemirror-node-name="tableCell"], [data-prosemirror-node-name="tableHeader"], [data-prosemirror-node-name="media"], [data-prosemirror-node-inline="true"])`;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Extended version that also excludes descendants of taskList.
|
|
30
|
+
* preventing the ::after hover zone from blocking checkbox inputs in blockTaskItem nodes.
|
|
31
|
+
*/
|
|
32
|
+
const dragHandlerAnchorSelectorWithTaskExclusion = `[${NODE_ANCHOR_ATTR_NAME}]:not([data-prosemirror-node-name="tableRow"], [data-prosemirror-node-name="tableCell"], [data-prosemirror-node-name="tableHeader"], [data-prosemirror-node-name="media"], [data-prosemirror-node-inline="true"], [data-prosemirror-node-name="taskList"] [${NODE_ANCHOR_ATTR_NAME}])`;
|
|
27
33
|
const gutterPaddingWidth = () => editorExperiment('platform_editor_controls', 'variant1') ? `${akEditorGutterPaddingDynamic()}px` : '100%';
|
|
28
34
|
const gutterPaddingLeft = () => editorExperiment('platform_editor_controls', 'variant1') ? `-${akEditorGutterPaddingDynamic()}px` : '-100px';
|
|
29
35
|
const extendedHoverZone = () => css({
|
|
@@ -103,15 +109,15 @@ const extendedHoverZone = () => css({
|
|
|
103
109
|
}
|
|
104
110
|
});
|
|
105
111
|
const extendedHoverZoneNext = () => css({
|
|
106
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
107
|
-
[`.block-ctrl-drag-preview ${dragHandlerAnchorSelectorNext}::after`]: {
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
113
|
+
[`.block-ctrl-drag-preview ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}::after`]: {
|
|
108
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
109
115
|
display: 'none !important'
|
|
110
116
|
},
|
|
111
117
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
112
118
|
'.ProseMirror': {
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
114
|
-
[`&& ${dragHandlerAnchorSelectorNext}::after`]: {
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
120
|
+
[`&& ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}::after`]: {
|
|
115
121
|
content: '""',
|
|
116
122
|
position: 'absolute',
|
|
117
123
|
top: 0,
|
|
@@ -126,7 +132,7 @@ const extendedHoverZoneNext = () => css({
|
|
|
126
132
|
// Top level depth hover zone should extend to gutter padding area
|
|
127
133
|
// we select the top level by using NOT nested anchor selector
|
|
128
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
129
|
-
[`&& ${dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
135
|
+
[`&& ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
130
136
|
content: '""',
|
|
131
137
|
position: 'absolute',
|
|
132
138
|
top: 0,
|
|
@@ -139,8 +145,8 @@ const extendedHoverZoneNext = () => css({
|
|
|
139
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
140
146
|
zIndex: -1
|
|
141
147
|
},
|
|
142
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
143
|
-
[`&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ${dragHandlerAnchorSelectorNext}::after`]: {
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
149
|
+
[`&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}::after`]: {
|
|
144
150
|
content: '""',
|
|
145
151
|
position: 'absolute',
|
|
146
152
|
top: 0,
|
|
@@ -158,7 +164,7 @@ const extendedHoverZoneNext = () => css({
|
|
|
158
164
|
},
|
|
159
165
|
//Hide pseudo element at top depth level. Leave for nested depths to prevent mouseover loop.
|
|
160
166
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
161
|
-
[`[data-blocks-drag-handle-container="true"] + ${dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
167
|
+
[`[data-blocks-drag-handle-container="true"] + ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
162
168
|
display: 'none'
|
|
163
169
|
}
|
|
164
170
|
});
|
|
@@ -166,8 +172,8 @@ const layoutColumnExtendedHoverZone = css({
|
|
|
166
172
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
167
173
|
'.ProseMirror': {
|
|
168
174
|
// hover zone for layout column should be placed near the top of the column (where drag handle is)
|
|
169
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
170
|
-
[`&&& ${dragHandlerAnchorSelectorNext}[data-layout-column]::after`]: {
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
176
|
+
[`&&& ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}[data-layout-column]::after`]: {
|
|
171
177
|
content: '""',
|
|
172
178
|
position: 'absolute',
|
|
173
179
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -185,8 +191,8 @@ const layoutColumnWithoutHoverZone = css({
|
|
|
185
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
186
192
|
'.ProseMirror': {
|
|
187
193
|
// when advanced_layouts is off, layout columns should not have hover zones, because there aren't any drag handles for layout columns
|
|
188
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
189
|
-
[`&&& ${dragHandlerAnchorSelectorNext}[data-layout-column]::after`]: {
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
195
|
+
[`&&& ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}[data-layout-column]::after`]: {
|
|
190
196
|
display: 'none'
|
|
191
197
|
}
|
|
192
198
|
}
|
|
@@ -209,8 +215,8 @@ const extendHoverZoneReduced = css({
|
|
|
209
215
|
const extendHoverZoneReducedNext = css({
|
|
210
216
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
211
217
|
'.ProseMirror': {
|
|
212
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
213
|
-
[`> ${dragHandlerAnchorSelectorNext}::after`]: {
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
219
|
+
[`> ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}::after`]: {
|
|
214
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
215
221
|
[`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
|
|
216
222
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -235,7 +241,7 @@ const extendedDragZoneNext = css({
|
|
|
235
241
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
236
242
|
'.ProseMirror': {
|
|
237
243
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
238
|
-
[`&& ${dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
244
|
+
[`&& ${expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext}:not([${NODE_ANCHOR_ATTR_NAME}] [${NODE_ANCHOR_ATTR_NAME}])::after`]: {
|
|
239
245
|
width: 'var(--ak-editor-max-container-width)',
|
|
240
246
|
left: `calc((100% - var(--ak-editor-max-container-width))/2)`
|
|
241
247
|
}
|
|
@@ -555,7 +561,9 @@ export const GlobalStylesWrapper = ({
|
|
|
555
561
|
const isDragging = expValEquals('platform_editor_block_controls_perf_optimization', 'isEnabled', true) ? isDraggingFromState : false;
|
|
556
562
|
const shouldRenderAnchors = isCSSAnchorSupported() && expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
557
563
|
const toolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
558
|
-
return jsx(Global
|
|
564
|
+
return jsx(Global
|
|
565
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
566
|
+
, {
|
|
559
567
|
styles: [globalStyles(), globalDnDStyle, expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedHoverZoneNext() : extendedHoverZone(), isDragging && (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedDragZoneNext : extendedDragZone), editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
560
568
|
exposure: true
|
|
561
569
|
}) ? expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendHoverZoneReducedNext : extendHoverZoneReduced : undefined,
|
|
@@ -337,7 +337,9 @@ export const TypeAheadControl = ({
|
|
|
337
337
|
}, jsx(Pressable, {
|
|
338
338
|
testId: "editor-quick-insert-button",
|
|
339
339
|
type: "button",
|
|
340
|
-
"aria-label": formatMessage(messages.insert)
|
|
340
|
+
"aria-label": formatMessage(messages.insert)
|
|
341
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
342
|
+
,
|
|
341
343
|
xcss: [stickyButtonStyles, (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && stickyButtonDenseModeStyles],
|
|
342
344
|
onClick: handleQuickInsert,
|
|
343
345
|
onMouseDown: handleMouseDown
|
|
@@ -349,7 +351,9 @@ export const TypeAheadControl = ({
|
|
|
349
351
|
return jsx(Box
|
|
350
352
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
351
353
|
, {
|
|
352
|
-
style: positionStyles
|
|
354
|
+
style: positionStyles
|
|
355
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
356
|
+
,
|
|
353
357
|
xcss: [containerStaticStyles]
|
|
354
358
|
}, jsx("span", {
|
|
355
359
|
css: [tooltipContainerStyles, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_6') ? tooltipContainerImprovedStylesStickyHeader : tooltipContainerStylesStickyHeader, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_6') ? tooltipContainerStylesImprovedStickyHeaderWithMarksFix : tooltipContainerStylesStickyHeaderWithMarksFix]
|
|
@@ -112,6 +112,8 @@ export const VisibilityContainer = ({
|
|
|
112
112
|
css: [baseStylesCSS, shouldHide ? hiddenStylesCSS : visibleStylesCSS]
|
|
113
113
|
}, children);
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
117
|
return jsx(Box, {
|
|
116
118
|
xcss: [baseStyles, shouldHide ? hiddenStyles : visibleStyles]
|
|
117
119
|
}, children);
|
|
@@ -1169,7 +1169,9 @@ export var DragHandle = function DragHandle(_ref3) {
|
|
|
1169
1169
|
return jsx(Box
|
|
1170
1170
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1171
1171
|
, {
|
|
1172
|
-
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1172
|
+
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1173
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1174
|
+
,
|
|
1173
1175
|
xcss: [dragHandleContainerStyles],
|
|
1174
1176
|
as: "span",
|
|
1175
1177
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1180,7 +1182,9 @@ export var DragHandle = function DragHandle(_ref3) {
|
|
|
1180
1182
|
helpDescriptors: helpDescriptors
|
|
1181
1183
|
}),
|
|
1182
1184
|
ignoreTooltipPointerEvents: true,
|
|
1183
|
-
position: 'top'
|
|
1185
|
+
position: 'top'
|
|
1186
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1187
|
+
,
|
|
1184
1188
|
onShow: function onShow() {
|
|
1185
1189
|
var _api$accessibilityUti;
|
|
1186
1190
|
api === null || api === void 0 || (_api$accessibilityUti = api.accessibilityUtils) === null || _api$accessibilityUti === void 0 || _api$accessibilityUti.actions.ariaNotify(message, {
|
|
@@ -1195,7 +1199,9 @@ export var DragHandle = function DragHandle(_ref3) {
|
|
|
1195
1199
|
return jsx(Box
|
|
1196
1200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1197
1201
|
, {
|
|
1198
|
-
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1202
|
+
style: editorExperiment('platform_editor_block_control_optimise_render', true) ? positionStyles : positionStylesOld
|
|
1203
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1204
|
+
,
|
|
1199
1205
|
xcss: [dragHandleContainerStyles],
|
|
1200
1206
|
as: "span",
|
|
1201
1207
|
testId: "block-ctrl-drag-handle-container"
|
|
@@ -1210,7 +1216,9 @@ export var DragHandle = function DragHandle(_ref3) {
|
|
|
1210
1216
|
content: jsx(TooltipContentWithMultipleShortcuts, {
|
|
1211
1217
|
helpDescriptors: helpDescriptors
|
|
1212
1218
|
}),
|
|
1213
|
-
ignoreTooltipPointerEvents: true
|
|
1219
|
+
ignoreTooltipPointerEvents: true
|
|
1220
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1221
|
+
,
|
|
1214
1222
|
onShow: function onShow() {
|
|
1215
1223
|
var _api$accessibilityUti2;
|
|
1216
1224
|
api === null || api === void 0 || (_api$accessibilityUti2 = api.accessibilityUtils) === null || _api$accessibilityUti2 === void 0 || _api$accessibilityUti2.actions.ariaNotify(message, {
|
|
@@ -234,10 +234,14 @@ export var DropTarget = function DropTarget(props) {
|
|
|
234
234
|
width: isNestedDropTarget ? 'unset' : '100%'
|
|
235
235
|
}, EDITOR_BLOCK_CONTROLS_DROP_INDICATOR_WIDTH, isNestedDropTarget ? '100%' : "".concat(lineLength || DEFAULT_DROP_INDICATOR_WIDTH, "px")), EDITOR_BLOCK_CONTROLS_DROP_TARGET_LEFT_MARGIN, isNestedDropTarget ? getNestedNodeLeftPaddingMargin(parentNode === null || parentNode === void 0 ? void 0 : parentNode.type.name) : '0'), EDITOR_BLOCK_CONTROLS_DROP_TARGET_ZINDEX, layers.navigation());
|
|
236
236
|
var isShowInlineDropTarget = shouldAllowInlineDropTarget(isNestedDropTarget, nextNode, isSameLayout, activeNode, parentNode);
|
|
237
|
-
return jsx(Fragment, null, jsx(HoverZone
|
|
237
|
+
return jsx(Fragment, null, jsx(HoverZone
|
|
238
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
239
|
+
, {
|
|
238
240
|
onDragEnter: function onDragEnter() {
|
|
239
241
|
return setIsDraggedOver(true);
|
|
240
|
-
}
|
|
242
|
+
}
|
|
243
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
244
|
+
,
|
|
241
245
|
onDragLeave: function onDragLeave() {
|
|
242
246
|
return setIsDraggedOver(false);
|
|
243
247
|
},
|
|
@@ -262,10 +266,14 @@ export var DropTarget = function DropTarget(props) {
|
|
|
262
266
|
"data-testid": "block-ctrl-drop-indicator"
|
|
263
267
|
}, jsx(DropIndicator, {
|
|
264
268
|
edge: "bottom"
|
|
265
|
-
}))), dropTargetStyle !== 'remainingHeight' && jsx(HoverZone
|
|
269
|
+
}))), dropTargetStyle !== 'remainingHeight' && jsx(HoverZone
|
|
270
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
271
|
+
, {
|
|
266
272
|
onDragEnter: function onDragEnter() {
|
|
267
273
|
return setIsDraggedOver(true);
|
|
268
|
-
}
|
|
274
|
+
}
|
|
275
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
276
|
+
,
|
|
269
277
|
onDragLeave: function onDragLeave() {
|
|
270
278
|
return setIsDraggedOver(false);
|
|
271
279
|
},
|
|
@@ -25,6 +25,12 @@ var dragHandlerAnchorSelector = '[data-drag-handler-anchor-name]:not([data-drag-
|
|
|
25
25
|
* Disregards anchors that can not have handles next to them, and so shouldn't have an extended hover zone
|
|
26
26
|
*/
|
|
27
27
|
var dragHandlerAnchorSelectorNext = "[".concat(NODE_ANCHOR_ATTR_NAME, "]:not([data-prosemirror-node-name=\"tableRow\"], [data-prosemirror-node-name=\"tableCell\"], [data-prosemirror-node-name=\"tableHeader\"], [data-prosemirror-node-name=\"media\"], [data-prosemirror-node-inline=\"true\"])");
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Extended version that also excludes descendants of taskList.
|
|
31
|
+
* preventing the ::after hover zone from blocking checkbox inputs in blockTaskItem nodes.
|
|
32
|
+
*/
|
|
33
|
+
var dragHandlerAnchorSelectorWithTaskExclusion = "[".concat(NODE_ANCHOR_ATTR_NAME, "]:not([data-prosemirror-node-name=\"tableRow\"], [data-prosemirror-node-name=\"tableCell\"], [data-prosemirror-node-name=\"tableHeader\"], [data-prosemirror-node-name=\"media\"], [data-prosemirror-node-inline=\"true\"], [data-prosemirror-node-name=\"taskList\"] [").concat(NODE_ANCHOR_ATTR_NAME, "])");
|
|
28
34
|
var gutterPaddingWidth = function gutterPaddingWidth() {
|
|
29
35
|
return editorExperiment('platform_editor_controls', 'variant1') ? "".concat(akEditorGutterPaddingDynamic(), "px") : '100%';
|
|
30
36
|
};
|
|
@@ -89,10 +95,10 @@ var extendedHoverZone = function extendedHoverZone() {
|
|
|
89
95
|
}));
|
|
90
96
|
};
|
|
91
97
|
var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
92
|
-
return css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".block-ctrl-drag-preview ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
98
|
+
return css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".block-ctrl-drag-preview ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
93
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
94
100
|
display: 'none !important'
|
|
95
|
-
}), '.ProseMirror', _defineProperty(_defineProperty(_defineProperty({}, "&& ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
101
|
+
}), '.ProseMirror', _defineProperty(_defineProperty(_defineProperty({}, "&& ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
96
102
|
content: '""',
|
|
97
103
|
position: 'absolute',
|
|
98
104
|
top: 0,
|
|
@@ -103,7 +109,7 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
103
109
|
height: '100%',
|
|
104
110
|
cursor: 'default',
|
|
105
111
|
zIndex: 1
|
|
106
|
-
}), "&& ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
112
|
+
}), "&& ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
107
113
|
content: '""',
|
|
108
114
|
position: 'absolute',
|
|
109
115
|
top: 0,
|
|
@@ -115,7 +121,7 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
115
121
|
cursor: 'default',
|
|
116
122
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
117
123
|
zIndex: -1
|
|
118
|
-
}), "&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ".concat(dragHandlerAnchorSelectorNext, "::after"), {
|
|
124
|
+
}), "&& :is(.pm-table-cell-content-wrap, .pm-table-header-content-wrap) > ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), {
|
|
119
125
|
content: '""',
|
|
120
126
|
position: 'absolute',
|
|
121
127
|
top: 0,
|
|
@@ -126,13 +132,13 @@ var extendedHoverZoneNext = function extendedHoverZoneNext() {
|
|
|
126
132
|
zIndex: 1
|
|
127
133
|
})), 'hr[data-drag-handler-anchor-name]', {
|
|
128
134
|
overflow: 'visible'
|
|
129
|
-
}), "[data-blocks-drag-handle-container=\"true\"] + ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
135
|
+
}), "[data-blocks-drag-handle-container=\"true\"] + ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
130
136
|
display: 'none'
|
|
131
137
|
}));
|
|
132
138
|
};
|
|
133
139
|
var layoutColumnExtendedHoverZone = css({
|
|
134
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
135
|
-
'.ProseMirror': _defineProperty({}, "&&& ".concat(dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
141
|
+
'.ProseMirror': _defineProperty({}, "&&& ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
136
142
|
content: '""',
|
|
137
143
|
position: 'absolute',
|
|
138
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -147,7 +153,7 @@ var layoutColumnExtendedHoverZone = css({
|
|
|
147
153
|
});
|
|
148
154
|
var layoutColumnWithoutHoverZone = css({
|
|
149
155
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
150
|
-
'.ProseMirror': _defineProperty({}, "&&& ".concat(dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
156
|
+
'.ProseMirror': _defineProperty({}, "&&& ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "[data-layout-column]::after"), {
|
|
151
157
|
display: 'none'
|
|
152
158
|
})
|
|
153
159
|
});
|
|
@@ -162,7 +168,7 @@ var extendHoverZoneReduced = css({
|
|
|
162
168
|
});
|
|
163
169
|
var extendHoverZoneReducedNext = css({
|
|
164
170
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
165
|
-
'.ProseMirror': _defineProperty({}, "> ".concat(dragHandlerAnchorSelectorNext, "::after"), _defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
|
|
171
|
+
'.ProseMirror': _defineProperty({}, "> ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, "::after"), _defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
|
|
166
172
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
167
173
|
left: "-".concat(akEditorGutterPaddingReduced, "px"),
|
|
168
174
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -178,7 +184,7 @@ var extendedDragZone = css({
|
|
|
178
184
|
});
|
|
179
185
|
var extendedDragZoneNext = css({
|
|
180
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
181
|
-
'.ProseMirror': _defineProperty({}, "&& ".concat(dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
187
|
+
'.ProseMirror': _defineProperty({}, "&& ".concat(expValEquals('platform_editor_unify_native_dnd_selectors', 'isEnabled', true) ? dragHandlerAnchorSelectorWithTaskExclusion : dragHandlerAnchorSelectorNext, ":not([").concat(NODE_ANCHOR_ATTR_NAME, "] [").concat(NODE_ANCHOR_ATTR_NAME, "])::after"), {
|
|
182
188
|
width: 'var(--ak-editor-max-container-width)',
|
|
183
189
|
left: "calc((100% - var(--ak-editor-max-container-width))/2)"
|
|
184
190
|
})
|
|
@@ -462,7 +468,9 @@ export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
|
462
468
|
var isDragging = expValEquals('platform_editor_block_controls_perf_optimization', 'isEnabled', true) ? isDraggingFromState : false;
|
|
463
469
|
var shouldRenderAnchors = isCSSAnchorSupported() && expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
464
470
|
var toolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
465
|
-
return jsx(Global
|
|
471
|
+
return jsx(Global
|
|
472
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
473
|
+
, {
|
|
466
474
|
styles: [globalStyles(), globalDnDStyle, expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedHoverZoneNext() : extendedHoverZone(), isDragging && (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendedDragZoneNext : extendedDragZone), editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
467
475
|
exposure: true
|
|
468
476
|
}) ? expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? extendHoverZoneReducedNext : extendHoverZoneReduced : undefined,
|
|
@@ -336,7 +336,9 @@ export var TypeAheadControl = function TypeAheadControl(_ref) {
|
|
|
336
336
|
}, jsx(Pressable, {
|
|
337
337
|
testId: "editor-quick-insert-button",
|
|
338
338
|
type: "button",
|
|
339
|
-
"aria-label": formatMessage(messages.insert)
|
|
339
|
+
"aria-label": formatMessage(messages.insert)
|
|
340
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
341
|
+
,
|
|
340
342
|
xcss: [stickyButtonStyles, (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) && stickyButtonDenseModeStyles],
|
|
341
343
|
onClick: handleQuickInsert,
|
|
342
344
|
onMouseDown: handleMouseDown
|
|
@@ -349,7 +351,9 @@ export var TypeAheadControl = function TypeAheadControl(_ref) {
|
|
|
349
351
|
return jsx(Box
|
|
350
352
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
351
353
|
, {
|
|
352
|
-
style: positionStyles
|
|
354
|
+
style: positionStyles
|
|
355
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
356
|
+
,
|
|
353
357
|
xcss: [containerStaticStyles]
|
|
354
358
|
}, jsx("span", {
|
|
355
359
|
css: [tooltipContainerStyles, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_6') ? tooltipContainerImprovedStylesStickyHeader : tooltipContainerStylesStickyHeader, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_6') ? tooltipContainerStylesImprovedStickyHeaderWithMarksFix : tooltipContainerStylesStickyHeaderWithMarksFix]
|
|
@@ -113,6 +113,8 @@ export var VisibilityContainer = function VisibilityContainer(_ref) {
|
|
|
113
113
|
css: [baseStylesCSS, shouldHide ? hiddenStylesCSS : visibleStylesCSS]
|
|
114
114
|
}, children);
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
116
118
|
return jsx(Box, {
|
|
117
119
|
xcss: [baseStyles, shouldHide ? hiddenStyles : visibleStyles]
|
|
118
120
|
}, children);
|
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.18",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
57
57
|
"@atlaskit/primitives": "^18.0.0",
|
|
58
58
|
"@atlaskit/theme": "^22.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^44.2.0",
|
|
60
60
|
"@atlaskit/tokens": "^11.1.0",
|
|
61
61
|
"@atlaskit/tooltip": "^21.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -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.8.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"
|