@atlaskit/editor-plugin-extension 5.3.5 → 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,21 @@
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
+
13
+ ## 5.3.6
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 5.3.5
4
20
 
5
21
  ### 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.5",
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": "^104.0.0",
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",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/empty-state": "^10.0.0",
48
48
  "@atlaskit/form": "^12.0.0",
49
49
  "@atlaskit/heading": "^5.2.0",
50
- "@atlaskit/icon": "^25.6.0",
50
+ "@atlaskit/icon": "^26.0.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/primitives": "^14.7.0",
53
53
  "@atlaskit/radio": "^8.1.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/textarea": "^8.0.0",
60
60
  "@atlaskit/textfield": "^8.0.0",
61
61
  "@atlaskit/theme": "^18.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^4.16.0",
62
+ "@atlaskit/tmp-editor-statsig": "^4.19.0",
63
63
  "@atlaskit/toggle": "^15.0.0",
64
64
  "@atlaskit/tokens": "^4.8.0",
65
65
  "@atlaskit/tooltip": "^20.0.0",
@@ -113,9 +113,6 @@
113
113
  }
114
114
  },
115
115
  "platform-feature-flags": {
116
- "platform_editor_legacy_content_macro": {
117
- "type": "boolean"
118
- },
119
116
  "platform_editor_ai_object_sidebar_injection": {
120
117
  "type": "boolean"
121
118
  },
@@ -130,6 +127,9 @@
130
127
  },
131
128
  "platform_editor_controls_patch_analytics_2": {
132
129
  "type": "boolean"
130
+ },
131
+ "platform_editor_controls_patch_8": {
132
+ "type": "boolean"
133
133
  }
134
134
  },
135
135
  "stricter": {