@atlaskit/editor-plugin-panel 4.4.0 → 4.4.2

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-panel
2
2
 
3
+ ## 4.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#153256](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153256)
14
+ [`3644fbe36073d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3644fbe36073d) -
15
+ [ux] When ViewAll dropdown closes via ESC key press or submenus close via ESC or Enter, the focus
16
+ is set on ViewAll button.
17
+ - Updated dependencies
18
+
3
19
  ## 4.4.0
4
20
 
5
21
  ### Minor Changes
@@ -26,6 +26,7 @@ var _successEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/
26
26
  var _warningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning--editor-warning"));
27
27
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
28
28
  var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
29
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
30
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
30
31
  var _actions = require("../editor-actions/actions");
31
32
  var _utils2 = require("../pm-plugins/utils/utils");
@@ -293,11 +294,15 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
293
294
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
294
295
  };
295
296
  };
297
+ // testId is required to show focus on trigger button on ESC key press
298
+ // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
299
+ var testId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
296
300
  var overflowMenuConfig = [{
297
301
  type: 'separator',
298
302
  fullHeight: true
299
303
  }, {
300
304
  type: 'overflow-dropdown',
305
+ testId: testId,
301
306
  options: [_objectSpread({
302
307
  title: formatMessage(_messages.default.copyToClipboard),
303
308
  onClick: function onClick() {
@@ -17,6 +17,7 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
17
17
  import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
18
18
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
19
19
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
20
+ import { fg } from '@atlaskit/platform-feature-flags';
20
21
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
21
22
  import { changePanelType, removePanel } from '../editor-actions/actions';
22
23
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -271,11 +272,15 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
271
272
  onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
272
273
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
273
274
  });
275
+ // testId is required to show focus on trigger button on ESC key press
276
+ // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
277
+ const testId = fg('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
274
278
  const overflowMenuConfig = [{
275
279
  type: 'separator',
276
280
  fullHeight: true
277
281
  }, {
278
282
  type: 'overflow-dropdown',
283
+ testId,
279
284
  options: [{
280
285
  title: formatMessage(commonMessages.copyToClipboard),
281
286
  onClick: () => {
@@ -20,6 +20,7 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
20
20
  import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
21
21
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
22
22
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
23
+ import { fg } from '@atlaskit/platform-feature-flags';
23
24
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
24
25
  import { changePanelType, removePanel } from '../editor-actions/actions';
25
26
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -283,11 +284,15 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
283
284
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
284
285
  };
285
286
  };
287
+ // testId is required to show focus on trigger button on ESC key press
288
+ // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
289
+ var testId = fg('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
286
290
  var overflowMenuConfig = [{
287
291
  type: 'separator',
288
292
  fullHeight: true
289
293
  }, {
290
294
  type: 'overflow-dropdown',
295
+ testId: testId,
291
296
  options: [_objectSpread({
292
297
  title: formatMessage(commonMessages.copyToClipboard),
293
298
  onClick: function onClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,19 +32,19 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.6.0",
35
- "@atlaskit/editor-common": "^104.1.0",
35
+ "@atlaskit/editor-common": "^105.10.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
- "@atlaskit/editor-plugin-analytics": "^2.2.0",
37
+ "@atlaskit/editor-plugin-analytics": "^2.3.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
39
- "@atlaskit/editor-plugin-emoji": "^3.6.0",
39
+ "@atlaskit/editor-plugin-emoji": "^3.7.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
42
- "@atlaskit/emoji": "^69.1.0",
43
- "@atlaskit/icon": "^26.0.0",
42
+ "@atlaskit/emoji": "^69.2.0",
43
+ "@atlaskit/icon": "^26.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/theme": "^18.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^4.19.0",
47
- "@atlaskit/tokens": "^4.8.0",
46
+ "@atlaskit/tmp-editor-statsig": "^5.0.0",
47
+ "@atlaskit/tokens": "^4.9.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "uuid": "^3.1.0"
50
50
  },
@@ -104,6 +104,9 @@
104
104
  },
105
105
  "platform_editor_controls_patch_analytics_2": {
106
106
  "type": "boolean"
107
+ },
108
+ "platform_editor_controls_patch_8": {
109
+ "type": "boolean"
107
110
  }
108
111
  },
109
112
  "stricter": {