@atlaskit/editor-plugin-panel 1.4.2 → 2.0.0

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,28 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`d9b562bd66f8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9b562bd66f8e) -
8
+ [ux] [ED-23947] restoring the original order of the typeahead menu so that actions, media,
9
+ mentions and emojis are above the fold (in the top 5 results). this change is a major because it
10
+ removes the `getEditorFeatureFlags prop` for plugins. if any consumers who have adopted these
11
+ changes to the public API, they should remove them on their side too.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 1.4.3
18
+
19
+ ### Patch Changes
20
+
21
+ - [#114548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114548)
22
+ [`8b2d47bffb50e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2d47bffb50e) -
23
+ bump adf-schema version
24
+ - Updated dependencies
25
+
3
26
  ## 1.4.2
4
27
 
5
28
  ### 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.2",
3
+ "version": "2.0.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,8 +33,8 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^38.0.0",
37
- "@atlaskit/editor-common": "^83.4.0",
36
+ "@atlaskit/adf-schema": "^39.0.3",
37
+ "@atlaskit/editor-common": "^84.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",