@atlaskit/editor-plugin-panel 1.4.3 → 2.0.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`d9b562bd66f8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9b562bd66f8e) -
14
+ [ux] [ED-23947] restoring the original order of the typeahead menu so that actions, media,
15
+ mentions and emojis are above the fold (in the top 5 results). this change is a major because it
16
+ removes the `getEditorFeatureFlags prop` for plugins. if any consumers who have adopted these
17
+ changes to the public API, they should remove them on their side too.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 1.4.3
4
24
 
5
25
  ### Patch Changes
@@ -51,14 +51,13 @@ var panelPlugin = function panelPlugin(_ref) {
51
51
  },
52
52
  pluginsOptions: {
53
53
  quickInsert: function quickInsert(_ref3) {
54
- var _options$getEditorFea;
55
54
  var formatMessage = _ref3.formatMessage;
56
55
  var quickInsertOptions = [{
57
56
  id: 'infopanel',
58
57
  title: formatMessage(_messages.blockTypeMessages.infoPanel),
59
58
  keywords: ['panel'],
60
59
  description: formatMessage(_messages.blockTypeMessages.infoPanelDescription),
61
- priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
60
+ priority: 800,
62
61
  icon: function icon() {
63
62
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconPanel, null);
64
63
  },
@@ -42,13 +42,12 @@ const panelPlugin = ({
42
42
  quickInsert: ({
43
43
  formatMessage
44
44
  }) => {
45
- var _options$getEditorFea;
46
45
  let quickInsertOptions = [{
47
46
  id: 'infopanel',
48
47
  title: formatMessage(blockTypeMessages.infoPanel),
49
48
  keywords: ['panel'],
50
49
  description: formatMessage(blockTypeMessages.infoPanelDescription),
51
- priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
50
+ priority: 800,
52
51
  icon: () => /*#__PURE__*/React.createElement(IconPanel, null),
53
52
  action(insert, state) {
54
53
  return createPanelAction({
@@ -44,14 +44,13 @@ var panelPlugin = function panelPlugin(_ref) {
44
44
  },
45
45
  pluginsOptions: {
46
46
  quickInsert: function quickInsert(_ref3) {
47
- var _options$getEditorFea;
48
47
  var formatMessage = _ref3.formatMessage;
49
48
  var quickInsertOptions = [{
50
49
  id: 'infopanel',
51
50
  title: formatMessage(blockTypeMessages.infoPanel),
52
51
  keywords: ['panel'],
53
52
  description: formatMessage(blockTypeMessages.infoPanelDescription),
54
- priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
53
+ priority: 800,
55
54
  icon: function icon() {
56
55
  return /*#__PURE__*/React.createElement(IconPanel, null);
57
56
  },
@@ -1,4 +1,4 @@
1
- import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
1
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
@@ -6,7 +6,6 @@ export interface PanelPluginOptions extends LongPressSelectionPluginOptions, Pan
6
6
  export interface PanelPluginConfig {
7
7
  allowCustomPanel?: boolean;
8
8
  allowCustomPanelEdit?: boolean;
9
- getEditorFeatureFlags?: GetEditorFeatureFlags;
10
9
  }
11
10
  export type DomPanelAtrrs = {
12
11
  class: string;
@@ -1,4 +1,4 @@
1
- import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
1
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
@@ -6,7 +6,6 @@ export interface PanelPluginOptions extends LongPressSelectionPluginOptions, Pan
6
6
  export interface PanelPluginConfig {
7
7
  allowCustomPanel?: boolean;
8
8
  allowCustomPanelEdit?: boolean;
9
- getEditorFeatureFlags?: GetEditorFeatureFlags;
10
9
  }
11
10
  export type DomPanelAtrrs = {
12
11
  class: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "1.4.3",
3
+ "version": "2.0.1",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^39.0.3",
37
- "@atlaskit/editor-common": "^83.5.0",
37
+ "@atlaskit/editor-common": "^85.0.0",
38
38
  "@atlaskit/editor-palette": "1.6.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
41
  "@atlaskit/editor-prosemirror": "4.0.1",
42
- "@atlaskit/editor-shared-styles": "^2.12.0",
42
+ "@atlaskit/editor-shared-styles": "^2.13.0",
43
43
  "@atlaskit/emoji": "^67.6.0",
44
- "@atlaskit/icon": "^22.5.0",
44
+ "@atlaskit/icon": "^22.6.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
46
  "@atlaskit/theme": "^12.11.0",
47
47
  "@babel/runtime": "^7.0.0"