@atlaskit/editor-plugin-block-controls 9.0.15 → 9.0.17
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/blockControlsPlugin.js +3 -4
- package/dist/cjs/editor-commands/move-node-with-block-menu.js +2 -2
- package/dist/cjs/editor-commands/move-node.js +1 -1
- package/dist/cjs/editor-commands/utils/move-node-utils.js +4 -4
- package/dist/cjs/pm-plugins/handle-mouse-down.js +3 -3
- package/dist/cjs/pm-plugins/handle-mouse-over.js +5 -3
- package/dist/cjs/pm-plugins/main.js +8 -8
- package/dist/cjs/pm-plugins/utils/getSelection.js +3 -3
- package/dist/cjs/ui/drag-handle.js +18 -10
- package/dist/cjs/ui/drop-target.js +12 -4
- package/dist/cjs/ui/global-styles.js +3 -1
- package/dist/cjs/ui/quick-insert-button.js +6 -2
- package/dist/cjs/ui/visibility-container.js +2 -0
- package/dist/es2019/blockControlsPlugin.js +3 -4
- package/dist/es2019/editor-commands/move-node-with-block-menu.js +2 -2
- package/dist/es2019/editor-commands/move-node.js +1 -1
- package/dist/es2019/editor-commands/utils/move-node-utils.js +4 -4
- package/dist/es2019/pm-plugins/handle-mouse-down.js +3 -3
- package/dist/es2019/pm-plugins/handle-mouse-over.js +5 -3
- package/dist/es2019/pm-plugins/main.js +8 -8
- package/dist/es2019/pm-plugins/utils/getSelection.js +3 -3
- package/dist/es2019/ui/drag-handle.js +18 -10
- package/dist/es2019/ui/drop-target.js +12 -4
- package/dist/es2019/ui/global-styles.js +3 -1
- package/dist/es2019/ui/quick-insert-button.js +6 -2
- package/dist/es2019/ui/visibility-container.js +2 -0
- package/dist/esm/blockControlsPlugin.js +3 -4
- package/dist/esm/editor-commands/move-node-with-block-menu.js +2 -2
- package/dist/esm/editor-commands/move-node.js +1 -1
- package/dist/esm/editor-commands/utils/move-node-utils.js +4 -4
- package/dist/esm/pm-plugins/handle-mouse-down.js +3 -3
- package/dist/esm/pm-plugins/handle-mouse-over.js +5 -3
- package/dist/esm/pm-plugins/main.js +8 -8
- package/dist/esm/pm-plugins/utils/getSelection.js +3 -3
- package/dist/esm/ui/drag-handle.js +18 -10
- package/dist/esm/ui/drop-target.js +12 -4
- package/dist/esm/ui/global-styles.js +3 -1
- package/dist/esm/ui/quick-insert-button.js +6 -2
- package/dist/esm/ui/visibility-container.js +2 -0
- package/package.json +2 -2
|
@@ -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
|
},
|
|
@@ -462,7 +462,9 @@ export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
|
462
462
|
var isDragging = expValEquals('platform_editor_block_controls_perf_optimization', 'isEnabled', true) ? isDraggingFromState : false;
|
|
463
463
|
var shouldRenderAnchors = isCSSAnchorSupported() && expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
464
464
|
var toolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
465
|
-
return jsx(Global
|
|
465
|
+
return jsx(Global
|
|
466
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
467
|
+
, {
|
|
466
468
|
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
469
|
exposure: true
|
|
468
470
|
}) ? 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.17",
|
|
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.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^11.1.0",
|
|
61
61
|
"@atlaskit/tooltip": "^21.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|