@atlaskit/editor-plugin-block-controls 29.0.0 → 29.0.1
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 +6 -0
- package/dist/cjs/pm-plugins/handle-sparse-hover-target.js +2 -2
- package/dist/cjs/pm-plugins/sparse-gutter-hover.js +2 -2
- package/dist/cjs/ui/drag-handle.js +7 -5
- package/dist/cjs/ui/quick-insert-button.js +10 -6
- package/dist/cjs/ui/visibility-container.js +9 -6
- package/dist/es2019/pm-plugins/handle-sparse-hover-target.js +1 -1
- package/dist/es2019/pm-plugins/sparse-gutter-hover.js +1 -1
- package/dist/es2019/ui/drag-handle.js +3 -1
- package/dist/es2019/ui/quick-insert-button.js +5 -1
- package/dist/es2019/ui/visibility-container.js +3 -1
- package/dist/esm/pm-plugins/handle-sparse-hover-target.js +1 -1
- package/dist/esm/pm-plugins/sparse-gutter-hover.js +1 -1
- package/dist/esm/ui/drag-handle.js +3 -1
- package/dist/esm/ui/quick-insert-button.js +5 -1
- package/dist/esm/ui/visibility-container.js +3 -1
- package/dist/types/pm-plugins/sparse-gutter-hover.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isSparseHoverSuppressed = exports.handleSparseHoverTarget = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _nodeAnchorProvider = require("@atlaskit/editor-common/node-anchor-provider");
|
|
8
8
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
9
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
10
10
|
var _decorationsCommon = require("./decorations-common");
|
|
@@ -45,7 +45,7 @@ var redirectParagraphToWrappedMedia = function redirectParagraphToWrappedMedia(v
|
|
|
45
45
|
/** Whether hovering must not show block controls under sparse surfaces. */
|
|
46
46
|
var isSparseHoverSuppressed = exports.isSparseHoverSuppressed = function isSparseHoverSuppressed(view, api) {
|
|
47
47
|
var _api$limitedMode, _getNodeIdProvider, _api$typeAhead, _api$editorDisabled$s, _api$editorDisabled, _api$editorViewMode, _api$showDiff$sharedS, _api$showDiff, _api$userIntent;
|
|
48
|
-
if (api !== null && api !== void 0 && (_api$limitedMode = api.limitedMode) !== null && _api$limitedMode !== void 0 && (_api$limitedMode = _api$limitedMode.sharedState.currentState()) !== null && _api$limitedMode !== void 0 && _api$limitedMode.enabled || (_getNodeIdProvider = (0,
|
|
48
|
+
if (api !== null && api !== void 0 && (_api$limitedMode = api.limitedMode) !== null && _api$limitedMode !== void 0 && (_api$limitedMode = _api$limitedMode.sharedState.currentState()) !== null && _api$limitedMode !== void 0 && _api$limitedMode.enabled || (_getNodeIdProvider = (0, _nodeAnchorProvider.getNodeIdProvider)(view)) !== null && _getNodeIdProvider !== void 0 && _getNodeIdProvider.isLimitedMode()) {
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
var controls = api === null || api === void 0 ? void 0 : api.blockControls.sharedState.currentState();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isPossibleGutterElement = exports.createGutterBlockFinder = exports.bindSparseGutterHover = void 0;
|
|
7
7
|
var _bindEventListener = require("bind-event-listener");
|
|
8
|
-
var
|
|
8
|
+
var _dragHandle = require("@atlaskit/editor-common/styles/drag-handle");
|
|
9
9
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
10
10
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
11
11
|
var _consts = require("../ui/consts");
|
|
@@ -20,7 +20,7 @@ var LAYOUT_SECTION_SELECTOR = '[data-prosemirror-node-name="layoutSection"]';
|
|
|
20
20
|
var LAYOUT_COLUMN_SELECTOR = '[data-prosemirror-node-name="layoutColumn"]';
|
|
21
21
|
|
|
22
22
|
// `layoutColumnExtendedHoverZone` is a DRAG_HANDLE_WIDTH-tall strip centred on the column's top edge.
|
|
23
|
-
var LAYOUT_COLUMN_STRIP_REACH =
|
|
23
|
+
var LAYOUT_COLUMN_STRIP_REACH = _dragHandle.DRAG_HANDLE_WIDTH / 2;
|
|
24
24
|
var isBlockElement = function isBlockElement(element) {
|
|
25
25
|
return element.getAttribute('data-prosemirror-node-block') === 'true';
|
|
26
26
|
};
|
|
@@ -26,7 +26,8 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
|
|
|
26
26
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
27
27
|
var _elementAdapter = require("@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter");
|
|
28
28
|
var _setCustomNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview");
|
|
29
|
-
var
|
|
29
|
+
var _box = require("@atlaskit/primitives/box");
|
|
30
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
30
31
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
31
32
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
32
33
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
@@ -51,7 +52,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
51
52
|
* @jsx jsx
|
|
52
53
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
53
54
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
54
|
-
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
56
|
+
var iconWrapperStyles = (0, _xcss.xcss)({
|
|
55
57
|
display: 'flex',
|
|
56
58
|
justifyContent: 'center',
|
|
57
59
|
alignItems: 'center'
|
|
@@ -200,7 +202,7 @@ var focusedStyles = (0, _react2.css)({
|
|
|
200
202
|
var keyboardFocusedDragHandleStyles = (0, _react2.css)({
|
|
201
203
|
outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
|
|
202
204
|
});
|
|
203
|
-
var dragHandleContainerStyles = (0,
|
|
205
|
+
var dragHandleContainerStyles = (0, _xcss.xcss)({
|
|
204
206
|
position: 'absolute',
|
|
205
207
|
boxSizing: 'border-box'
|
|
206
208
|
});
|
|
@@ -1069,7 +1071,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
|
|
|
1069
1071
|
});
|
|
1070
1072
|
}
|
|
1071
1073
|
}
|
|
1072
|
-
}, (0, _react2.jsx)(
|
|
1074
|
+
}, (0, _react2.jsx)(_box.Box, {
|
|
1073
1075
|
xcss: iconWrapperStyles
|
|
1074
1076
|
// eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
|
|
1075
1077
|
,
|
|
@@ -1082,7 +1084,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
|
|
|
1082
1084
|
);
|
|
1083
1085
|
};
|
|
1084
1086
|
var stickyWithTooltip = function stickyWithTooltip() {
|
|
1085
|
-
return (0, _react2.jsx)(
|
|
1087
|
+
return (0, _react2.jsx)(_box.Box
|
|
1086
1088
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
1087
1089
|
, {
|
|
1088
1090
|
style: positionStylesOld
|
|
@@ -20,7 +20,9 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
|
20
20
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
21
21
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
22
22
|
var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
|
|
23
|
-
var
|
|
23
|
+
var _box = require("@atlaskit/primitives/box");
|
|
24
|
+
var _pressable = require("@atlaskit/primitives/pressable");
|
|
25
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
24
26
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
27
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
26
28
|
var _decorationsCommon = require("../pm-plugins/decorations-common");
|
|
@@ -39,8 +41,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
39
41
|
* @jsx jsx
|
|
40
42
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
41
43
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
42
46
|
var TEXT_PARENT_TYPES = ['paragraph', 'heading', 'blockquote', 'taskItem', 'decisionItem'];
|
|
43
|
-
var stickyButtonStyles = (0,
|
|
47
|
+
var stickyButtonStyles = (0, _xcss.xcss)({
|
|
44
48
|
top: '0',
|
|
45
49
|
position: 'sticky',
|
|
46
50
|
boxSizing: 'border-box',
|
|
@@ -69,13 +73,13 @@ var stickyButtonStyles = (0, _primitives.xcss)({
|
|
|
69
73
|
// Calculate scaled dimensions based on the base font size using CSS calc()
|
|
70
74
|
// Default font size is 16px, scale proportionally
|
|
71
75
|
// Standard: 16px -> 24px x 24px, Dense: 13px -> ~18.5px x ~18.5px
|
|
72
|
-
var stickyButtonDenseModeStyles = (0,
|
|
76
|
+
var stickyButtonDenseModeStyles = (0, _xcss.xcss)({
|
|
73
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
74
78
|
height: (0, _constants.relativeSizeToBaseFontSize)(_consts.QUICK_INSERT_HEIGHT),
|
|
75
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
76
80
|
width: (0, _constants.relativeSizeToBaseFontSize)(_consts.QUICK_INSERT_WIDTH)
|
|
77
81
|
});
|
|
78
|
-
var containerStaticStyles = (0,
|
|
82
|
+
var containerStaticStyles = (0, _xcss.xcss)({
|
|
79
83
|
position: 'absolute',
|
|
80
84
|
zIndex: 'card'
|
|
81
85
|
});
|
|
@@ -370,7 +374,7 @@ var TypeAheadControl = exports.TypeAheadControl = function TypeAheadControl(_ref
|
|
|
370
374
|
content: (0, _react2.jsx)(_keymaps.ToolTipContent, {
|
|
371
375
|
description: formatMessage(_blockControls.messages.insert)
|
|
372
376
|
})
|
|
373
|
-
}, (0, _react2.jsx)(
|
|
377
|
+
}, (0, _react2.jsx)(_pressable.Pressable, {
|
|
374
378
|
testId: "editor-quick-insert-button",
|
|
375
379
|
type: "button",
|
|
376
380
|
"aria-label": formatMessage(_blockControls.messages.insert)
|
|
@@ -385,7 +389,7 @@ var TypeAheadControl = exports.TypeAheadControl = function TypeAheadControl(_ref
|
|
|
385
389
|
size: "small"
|
|
386
390
|
})));
|
|
387
391
|
};
|
|
388
|
-
return (0, _react2.jsx)(
|
|
392
|
+
return (0, _react2.jsx)(_box.Box
|
|
389
393
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
390
394
|
, {
|
|
391
395
|
style: positionStyles
|
|
@@ -12,7 +12,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
14
14
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
15
|
-
var
|
|
15
|
+
var _box = require("@atlaskit/primitives/box");
|
|
16
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
16
17
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
19
|
/**
|
|
@@ -24,19 +25,21 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
24
25
|
|
|
25
26
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
27
|
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
29
|
+
|
|
27
30
|
var RIGHT_CONTROL_HIDE_DELAY_MS = 150;
|
|
28
|
-
var baseStyles = (0,
|
|
31
|
+
var baseStyles = (0, _xcss.xcss)({
|
|
29
32
|
transition: 'opacity 0.1s ease-in-out, visibility 0.1s ease-in-out'
|
|
30
33
|
});
|
|
31
|
-
var visibleStyles = (0,
|
|
34
|
+
var visibleStyles = (0, _xcss.xcss)({
|
|
32
35
|
opacity: 1,
|
|
33
36
|
visibility: 'visible'
|
|
34
37
|
});
|
|
35
|
-
var hiddenStyles = (0,
|
|
38
|
+
var hiddenStyles = (0, _xcss.xcss)({
|
|
36
39
|
opacity: 0,
|
|
37
40
|
visibility: 'hidden'
|
|
38
41
|
});
|
|
39
|
-
var displayContentsStyles = (0,
|
|
42
|
+
var displayContentsStyles = (0, _xcss.xcss)({
|
|
40
43
|
display: 'contents'
|
|
41
44
|
});
|
|
42
45
|
var baseStylesCSS = (0, _react2.css)((0, _defineProperty2.default)({
|
|
@@ -159,7 +162,7 @@ var VisibilityWrapper = exports.VisibilityWrapper = function VisibilityWrapper(_
|
|
|
159
162
|
css: [baseStylesCSS, shouldHide ? hiddenStylesCSS : visibleStylesCSS, shouldUseDisplayContents && displayContentsStylesCSS]
|
|
160
163
|
}, children);
|
|
161
164
|
}
|
|
162
|
-
return (0, _react2.jsx)(
|
|
165
|
+
return (0, _react2.jsx)(_box.Box
|
|
163
166
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
164
167
|
, {
|
|
165
168
|
xcss: [baseStyles, shouldHide ? hiddenStyles : visibleStyles, shouldUseDisplayContents && displayContentsStyles]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
|
|
1
|
+
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
4
|
import { getNodeTypeWithLevel } from './decorations-common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bind } from 'bind-event-listener';
|
|
2
|
-
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
3
3
|
import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced } from '@atlaskit/editor-shared-styles/constants';
|
|
4
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
5
|
import { BLOCK_CONTROLS_SURFACE_SELECTOR, DRAG_HANDLE_MAX_WIDTH_PLUS_GAP } from '../ui/consts';
|
|
@@ -23,7 +23,9 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
23
23
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
24
24
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
|
-
import { Box
|
|
26
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
28
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
27
29
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
28
30
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
29
31
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -17,7 +17,11 @@ import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/const
|
|
|
17
17
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
18
18
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
|
-
import { Box
|
|
20
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
22
|
+
import { Pressable } from '@atlaskit/primitives/pressable';
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
24
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
21
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
26
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
23
27
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
@@ -9,7 +9,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
10
|
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
|
-
import { Box
|
|
12
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
13
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
14
16
|
const RIGHT_CONTROL_HIDE_DELAY_MS = 150;
|
|
15
17
|
const baseStyles = xcss({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
|
|
1
|
+
import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
4
|
import { getNodeTypeWithLevel } from './decorations-common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bind } from 'bind-event-listener';
|
|
2
|
-
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { DRAG_HANDLE_WIDTH } from '@atlaskit/editor-common/styles/drag-handle';
|
|
3
3
|
import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced } from '@atlaskit/editor-shared-styles/constants';
|
|
4
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
5
|
import { BLOCK_CONTROLS_SURFACE_SELECTOR, DRAG_HANDLE_MAX_WIDTH_PLUS_GAP } from '../ui/consts';
|
|
@@ -28,7 +28,9 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
28
28
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
29
29
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
31
|
-
import { Box
|
|
31
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
33
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
32
34
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
33
35
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
34
36
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -21,7 +21,11 @@ import { relativeSizeToBaseFontSize } from '@atlaskit/editor-shared-styles/const
|
|
|
21
21
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
22
22
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
24
|
-
import { Box
|
|
24
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
|
+
import { Pressable } from '@atlaskit/primitives/pressable';
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
28
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
25
29
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
26
30
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
27
31
|
import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
|
|
@@ -11,7 +11,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
12
|
import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
15
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
16
18
|
var RIGHT_CONTROL_HIDE_DELAY_MS = 150;
|
|
17
19
|
var baseStyles = xcss({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.1",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/primitives": "^22.6.0",
|
|
62
62
|
"@atlaskit/section-message": "^10.2.0",
|
|
63
63
|
"@atlaskit/theme": "^28.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^241.0.0",
|
|
65
65
|
"@atlaskit/tokens": "^20.6.0",
|
|
66
66
|
"@atlaskit/tooltip": "^24.4.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|