@atlaskit/editor-plugin-extension 5.3.6 → 5.3.7
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
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 5.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#153256](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153256)
|
|
8
|
+
[`3644fbe36073d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3644fbe36073d) -
|
|
9
|
+
[ux] When ViewAll dropdown closes via ESC key press or submenus close via ESC or Enter, the focus
|
|
10
|
+
is set on ViewAll button.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 5.3.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -304,6 +304,10 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
|
|
|
304
304
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
|
+
|
|
308
|
+
// testId is required to show focus on trigger button on ESC key press
|
|
309
|
+
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
310
|
+
var testId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'extension-overflow-dropdown-trigger' : undefined;
|
|
307
311
|
return {
|
|
308
312
|
title: 'Extension floating controls',
|
|
309
313
|
// Ignored via go/ees005
|
|
@@ -358,6 +362,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
|
|
|
358
362
|
separator: breakoutItems.length > 0 ? 'both' : 'end'
|
|
359
363
|
}, {
|
|
360
364
|
type: 'overflow-dropdown',
|
|
365
|
+
testId: testId,
|
|
361
366
|
options: [_objectSpread({
|
|
362
367
|
title: formatMessage(_messages.default.copyToClipboard),
|
|
363
368
|
onClick: function onClick() {
|
|
@@ -297,6 +297,10 @@ export const getToolbarConfig = ({
|
|
|
297
297
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
298
298
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
299
299
|
});
|
|
300
|
+
|
|
301
|
+
// testId is required to show focus on trigger button on ESC key press
|
|
302
|
+
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
303
|
+
const testId = fg('platform_editor_controls_patch_8') ? 'extension-overflow-dropdown-trigger' : undefined;
|
|
300
304
|
return {
|
|
301
305
|
title: 'Extension floating controls',
|
|
302
306
|
// Ignored via go/ees005
|
|
@@ -345,6 +349,7 @@ export const getToolbarConfig = ({
|
|
|
345
349
|
separator: breakoutItems.length > 0 ? 'both' : 'end'
|
|
346
350
|
}, {
|
|
347
351
|
type: 'overflow-dropdown',
|
|
352
|
+
testId,
|
|
348
353
|
options: [{
|
|
349
354
|
title: formatMessage(commonMessages.copyToClipboard),
|
|
350
355
|
onClick: () => {
|
|
@@ -298,6 +298,10 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
|
298
298
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
|
+
|
|
302
|
+
// testId is required to show focus on trigger button on ESC key press
|
|
303
|
+
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
304
|
+
var testId = fg('platform_editor_controls_patch_8') ? 'extension-overflow-dropdown-trigger' : undefined;
|
|
301
305
|
return {
|
|
302
306
|
title: 'Extension floating controls',
|
|
303
307
|
// Ignored via go/ees005
|
|
@@ -352,6 +356,7 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
|
352
356
|
separator: breakoutItems.length > 0 ? 'both' : 'end'
|
|
353
357
|
}, {
|
|
354
358
|
type: 'overflow-dropdown',
|
|
359
|
+
testId: testId,
|
|
355
360
|
options: [_objectSpread({
|
|
356
361
|
title: formatMessage(commonMessages.copyToClipboard),
|
|
357
362
|
onClick: function onClick() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/button": "^23.0.0",
|
|
33
33
|
"@atlaskit/checkbox": "^17.1.0",
|
|
34
34
|
"@atlaskit/datetime-picker": "^17.0.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^105.0.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -127,6 +127,9 @@
|
|
|
127
127
|
},
|
|
128
128
|
"platform_editor_controls_patch_analytics_2": {
|
|
129
129
|
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"platform_editor_controls_patch_8": {
|
|
132
|
+
"type": "boolean"
|
|
130
133
|
}
|
|
131
134
|
},
|
|
132
135
|
"stricter": {
|