@atlaskit/editor-plugin-block-controls 16.0.7 → 16.0.9
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 +16 -18
- package/dist/es2019/ui/drag-handle.js +17 -19
- package/dist/esm/ui/drag-handle.js +16 -18
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 16.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.0.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`698eb28037b8a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/698eb28037b8a) -
|
|
14
|
+
Clean up experiment `platform_editor_drag_handle_keyboard_a11y`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 16.0.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1193,25 +1193,23 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
|
|
|
1193
1193
|
if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
|
|
1194
1194
|
setIsFocused(false);
|
|
1195
1195
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
isFocused: false
|
|
1209
|
-
}
|
|
1196
|
+
var pos = getPos();
|
|
1197
|
+
if (pos !== undefined) {
|
|
1198
|
+
var _api$core8;
|
|
1199
|
+
api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
|
|
1200
|
+
var tr = _ref1.tr;
|
|
1201
|
+
tr.setMeta(_main.key, {
|
|
1202
|
+
activeNode: {
|
|
1203
|
+
pos: pos,
|
|
1204
|
+
anchorName: anchorName,
|
|
1205
|
+
nodeType: nodeType,
|
|
1206
|
+
handleOptions: {
|
|
1207
|
+
isFocused: false
|
|
1210
1208
|
}
|
|
1211
|
-
}
|
|
1212
|
-
return tr;
|
|
1209
|
+
}
|
|
1213
1210
|
});
|
|
1214
|
-
|
|
1211
|
+
return tr;
|
|
1212
|
+
});
|
|
1215
1213
|
}
|
|
1216
1214
|
}
|
|
1217
1215
|
}, (0, _react2.jsx)(_primitives.Box, {
|
|
@@ -1329,7 +1327,7 @@ var DragHandleWithVisibility = exports.DragHandleWithVisibility = function DragH
|
|
|
1329
1327
|
return (0, _react2.jsx)(_visibilityContainer.VisibilityContainer, {
|
|
1330
1328
|
api: api,
|
|
1331
1329
|
controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
|
|
1332
|
-
forceVisibleOnMouseOut:
|
|
1330
|
+
forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
|
|
1333
1331
|
shouldUseDisplayContents: isLayoutColumn && (0, _platformFeatureFlags.fg)('platform-dst-top-layer-tooltip')
|
|
1334
1332
|
}, (0, _react2.jsx)(DragHandle, {
|
|
1335
1333
|
view: view,
|
|
@@ -1173,26 +1173,24 @@ export const DragHandle = ({
|
|
|
1173
1173
|
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
1174
1174
|
setIsFocused(false);
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
isFocused: false
|
|
1190
|
-
}
|
|
1176
|
+
const pos = getPos();
|
|
1177
|
+
if (pos !== undefined) {
|
|
1178
|
+
var _api$core8;
|
|
1179
|
+
api === null || api === void 0 ? void 0 : (_api$core8 = api.core) === null || _api$core8 === void 0 ? void 0 : _api$core8.actions.execute(({
|
|
1180
|
+
tr
|
|
1181
|
+
}) => {
|
|
1182
|
+
tr.setMeta(key, {
|
|
1183
|
+
activeNode: {
|
|
1184
|
+
pos,
|
|
1185
|
+
anchorName,
|
|
1186
|
+
nodeType,
|
|
1187
|
+
handleOptions: {
|
|
1188
|
+
isFocused: false
|
|
1191
1189
|
}
|
|
1192
|
-
}
|
|
1193
|
-
return tr;
|
|
1190
|
+
}
|
|
1194
1191
|
});
|
|
1195
|
-
|
|
1192
|
+
return tr;
|
|
1193
|
+
});
|
|
1196
1194
|
}
|
|
1197
1195
|
}
|
|
1198
1196
|
}, jsx(Box, {
|
|
@@ -1303,7 +1301,7 @@ export const DragHandleWithVisibility = ({
|
|
|
1303
1301
|
return jsx(VisibilityContainer, {
|
|
1304
1302
|
api: api,
|
|
1305
1303
|
controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
|
|
1306
|
-
forceVisibleOnMouseOut:
|
|
1304
|
+
forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
|
|
1307
1305
|
shouldUseDisplayContents: isLayoutColumn && fg('platform-dst-top-layer-tooltip')
|
|
1308
1306
|
}, jsx(DragHandle, {
|
|
1309
1307
|
view: view,
|
|
@@ -1189,25 +1189,23 @@ export var DragHandle = function DragHandle(_ref2) {
|
|
|
1189
1189
|
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
1190
1190
|
setIsFocused(false);
|
|
1191
1191
|
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
isFocused: false
|
|
1205
|
-
}
|
|
1192
|
+
var pos = getPos();
|
|
1193
|
+
if (pos !== undefined) {
|
|
1194
|
+
var _api$core8;
|
|
1195
|
+
api === null || api === void 0 || (_api$core8 = api.core) === null || _api$core8 === void 0 || _api$core8.actions.execute(function (_ref1) {
|
|
1196
|
+
var tr = _ref1.tr;
|
|
1197
|
+
tr.setMeta(key, {
|
|
1198
|
+
activeNode: {
|
|
1199
|
+
pos: pos,
|
|
1200
|
+
anchorName: anchorName,
|
|
1201
|
+
nodeType: nodeType,
|
|
1202
|
+
handleOptions: {
|
|
1203
|
+
isFocused: false
|
|
1206
1204
|
}
|
|
1207
|
-
}
|
|
1208
|
-
return tr;
|
|
1205
|
+
}
|
|
1209
1206
|
});
|
|
1210
|
-
|
|
1207
|
+
return tr;
|
|
1208
|
+
});
|
|
1211
1209
|
}
|
|
1212
1210
|
}
|
|
1213
1211
|
}, jsx(Box, {
|
|
@@ -1325,7 +1323,7 @@ export var DragHandleWithVisibility = function DragHandleWithVisibility(_ref10)
|
|
|
1325
1323
|
return jsx(VisibilityContainer, {
|
|
1326
1324
|
api: api,
|
|
1327
1325
|
controlSide: !isLayoutColumn && !skipControlSideRestriction && rightSideControlsEnabled ? 'left' : undefined,
|
|
1328
|
-
forceVisibleOnMouseOut:
|
|
1326
|
+
forceVisibleOnMouseOut: !!(handleOptions !== null && handleOptions !== void 0 && handleOptions.isFocused),
|
|
1329
1327
|
shouldUseDisplayContents: isLayoutColumn && fg('platform-dst-top-layer-tooltip')
|
|
1330
1328
|
}, jsx(DragHandle, {
|
|
1331
1329
|
view: view,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.9",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
|
|
49
|
-
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.
|
|
49
|
+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.1.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.1.0",
|
|
51
|
-
"@atlaskit/primitives": "^22.
|
|
51
|
+
"@atlaskit/primitives": "^22.3.0",
|
|
52
52
|
"@atlaskit/theme": "^28.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^154.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^16.7.0",
|
|
55
|
-
"@atlaskit/tooltip": "^24.
|
|
55
|
+
"@atlaskit/tooltip": "^24.1.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1",
|
|
58
58
|
"bind-event-listener": "^3.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"uuid": "^3.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^119.
|
|
64
|
+
"@atlaskit/editor-common": "^119.10.0",
|
|
65
65
|
"react": "^18.2.0 || ^19.2.0",
|
|
66
66
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
67
67
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|