@atlaskit/editor-plugin-block-controls 2.1.0 → 2.1.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 +12 -0
- package/dist/cjs/ui/drag-handle.js +4 -2
- package/dist/es2019/ui/drag-handle.js +4 -2
- package/dist/esm/ui/drag-handle.js +4 -2
- package/package.json +4 -4
- package/.eslintrc.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143310](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143310)
|
|
8
|
+
[`f55df006dcd59`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f55df006dcd59) -
|
|
9
|
+
ED-24822 - Add padding to panels with no icon and unhide drag handle in first bodied node
|
|
10
|
+
- [#142323](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142323)
|
|
11
|
+
[`e21459718836f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e21459718836f) -
|
|
12
|
+
ED-24925 update nested drag handler tooltip
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -329,7 +329,7 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
}, [buttonRef, handleOptions === null || handleOptions === void 0 ? void 0 : handleOptions.isFocused, view]);
|
|
332
|
-
var helpDescriptors = [{
|
|
332
|
+
var helpDescriptors = isTopLevelNode ? [{
|
|
333
333
|
description: formatMessage(_messages.blockControlsMessages.dragToMove)
|
|
334
334
|
}, {
|
|
335
335
|
description: formatMessage(_messages.blockControlsMessages.moveUp),
|
|
@@ -337,6 +337,8 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
337
337
|
}, {
|
|
338
338
|
description: formatMessage(_messages.blockControlsMessages.moveDown),
|
|
339
339
|
keymap: _keymaps.dragToMoveDown
|
|
340
|
+
}] : [{
|
|
341
|
+
description: formatMessage(_messages.blockControlsMessages.dragToMove)
|
|
340
342
|
}];
|
|
341
343
|
var message = helpDescriptors.map(function (descriptor) {
|
|
342
344
|
return descriptor.keymap ? [descriptor.description, (0, _keymaps.getAriaKeyshortcuts)(descriptor.keymap)] : [descriptor.description];
|
|
@@ -361,7 +363,7 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
361
363
|
}))
|
|
362
364
|
);
|
|
363
365
|
};
|
|
364
|
-
return
|
|
366
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_element_drag_and_drop_ed_23873') ? (0, _react2.jsx)(_tooltip.default, {
|
|
365
367
|
content: (0, _react2.jsx)(_keymaps.TooltipContentWithMultipleShortcuts, {
|
|
366
368
|
helpDescriptors: helpDescriptors
|
|
367
369
|
}),
|
|
@@ -313,7 +313,7 @@ const DragHandleInternal = ({
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
}, [buttonRef, handleOptions === null || handleOptions === void 0 ? void 0 : handleOptions.isFocused, view]);
|
|
316
|
-
const helpDescriptors = [{
|
|
316
|
+
const helpDescriptors = isTopLevelNode ? [{
|
|
317
317
|
description: formatMessage(blockControlsMessages.dragToMove)
|
|
318
318
|
}, {
|
|
319
319
|
description: formatMessage(blockControlsMessages.moveUp),
|
|
@@ -321,6 +321,8 @@ const DragHandleInternal = ({
|
|
|
321
321
|
}, {
|
|
322
322
|
description: formatMessage(blockControlsMessages.moveDown),
|
|
323
323
|
keymap: dragToMoveDown
|
|
324
|
+
}] : [{
|
|
325
|
+
description: formatMessage(blockControlsMessages.dragToMove)
|
|
324
326
|
}];
|
|
325
327
|
const message = helpDescriptors.map(descriptor => {
|
|
326
328
|
return descriptor.keymap ? [descriptor.description, getAriaKeyshortcuts(descriptor.keymap)] : [descriptor.description];
|
|
@@ -342,7 +344,7 @@ const DragHandleInternal = ({
|
|
|
342
344
|
label: "",
|
|
343
345
|
size: "medium"
|
|
344
346
|
}));
|
|
345
|
-
return
|
|
347
|
+
return fg('platform_editor_element_drag_and_drop_ed_23873') ? jsx(Tooltip, {
|
|
346
348
|
content: jsx(TooltipContentWithMultipleShortcuts, {
|
|
347
349
|
helpDescriptors: helpDescriptors
|
|
348
350
|
}),
|
|
@@ -320,7 +320,7 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
}, [buttonRef, handleOptions === null || handleOptions === void 0 ? void 0 : handleOptions.isFocused, view]);
|
|
323
|
-
var helpDescriptors = [{
|
|
323
|
+
var helpDescriptors = isTopLevelNode ? [{
|
|
324
324
|
description: formatMessage(blockControlsMessages.dragToMove)
|
|
325
325
|
}, {
|
|
326
326
|
description: formatMessage(blockControlsMessages.moveUp),
|
|
@@ -328,6 +328,8 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
328
328
|
}, {
|
|
329
329
|
description: formatMessage(blockControlsMessages.moveDown),
|
|
330
330
|
keymap: dragToMoveDown
|
|
331
|
+
}] : [{
|
|
332
|
+
description: formatMessage(blockControlsMessages.dragToMove)
|
|
331
333
|
}];
|
|
332
334
|
var message = helpDescriptors.map(function (descriptor) {
|
|
333
335
|
return descriptor.keymap ? [descriptor.description, getAriaKeyshortcuts(descriptor.keymap)] : [descriptor.description];
|
|
@@ -352,7 +354,7 @@ var DragHandleInternal = function DragHandleInternal(_ref) {
|
|
|
352
354
|
}))
|
|
353
355
|
);
|
|
354
356
|
};
|
|
355
|
-
return
|
|
357
|
+
return fg('platform_editor_element_drag_and_drop_ed_23873') ? jsx(Tooltip, {
|
|
356
358
|
content: jsx(TooltipContentWithMultipleShortcuts, {
|
|
357
359
|
helpDescriptors: helpDescriptors
|
|
358
360
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
34
|
-
"@atlaskit/editor-common": "^90.
|
|
34
|
+
"@atlaskit/editor-common": "^90.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/pragmatic-drag-and-drop": "^1.3.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
49
|
-
"@atlaskit/primitives": "^12.
|
|
49
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
50
50
|
"@atlaskit/theme": "^13.0.0",
|
|
51
51
|
"@atlaskit/tmp-editor-statsig": "^2.1.0",
|
|
52
|
-
"@atlaskit/tokens": "^1.
|
|
52
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
53
53
|
"@atlaskit/tooltip": "^18.7.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
package/.eslintrc.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
-
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
-
},
|
|
6
|
-
overrides: [
|
|
7
|
-
{
|
|
8
|
-
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
|
9
|
-
rules: {
|
|
10
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
};
|