@atlaskit/editor-plugin-expand 1.9.2 → 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-expand
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.9.2
4
24
 
5
25
  ### Patch Changes
@@ -62,7 +62,6 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
62
62
  pluginsOptions: {
63
63
  floatingToolbar: (0, _toolbar.getToolbarConfig)(api),
64
64
  quickInsert: function quickInsert(_ref3) {
65
- var _options$getEditorFea;
66
65
  var formatMessage = _ref3.formatMessage;
67
66
  if (options && options.allowInsertion !== true) {
68
67
  return [];
@@ -72,7 +71,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
72
71
  title: formatMessage(_messages.toolbarInsertBlockMessages.expand),
73
72
  description: formatMessage(_messages.toolbarInsertBlockMessages.expandDescription),
74
73
  keywords: ['accordion', 'collapse'],
75
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
74
+ priority: 600,
76
75
  icon: function icon() {
77
76
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconExpand, null);
78
77
  },
@@ -55,7 +55,6 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
55
55
  pluginsOptions: {
56
56
  floatingToolbar: (0, _toolbar.getToolbarConfig)(api),
57
57
  quickInsert: function quickInsert(_ref3) {
58
- var _options$getEditorFea;
59
58
  var formatMessage = _ref3.formatMessage;
60
59
  if (options && options.allowInsertion !== true) {
61
60
  return [];
@@ -65,7 +64,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
65
64
  title: formatMessage(_messages.toolbarInsertBlockMessages.expand),
66
65
  description: formatMessage(_messages.toolbarInsertBlockMessages.expandDescription),
67
66
  keywords: ['accordion', 'collapse'],
68
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
67
+ priority: 600,
69
68
  icon: function icon() {
70
69
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconExpand, null);
71
70
  },
@@ -50,7 +50,6 @@ export const expandPlugin = ({
50
50
  quickInsert: ({
51
51
  formatMessage
52
52
  }) => {
53
- var _options$getEditorFea;
54
53
  if (options && options.allowInsertion !== true) {
55
54
  return [];
56
55
  }
@@ -59,7 +58,7 @@ export const expandPlugin = ({
59
58
  title: formatMessage(messages.expand),
60
59
  description: formatMessage(messages.expandDescription),
61
60
  keywords: ['accordion', 'collapse'],
62
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
61
+ priority: 600,
63
62
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
64
63
  action(insert, state) {
65
64
  var _api$analytics2;
@@ -49,7 +49,6 @@ export const expandPlugin = ({
49
49
  quickInsert: ({
50
50
  formatMessage
51
51
  }) => {
52
- var _options$getEditorFea;
53
52
  if (options && options.allowInsertion !== true) {
54
53
  return [];
55
54
  }
@@ -58,7 +57,7 @@ export const expandPlugin = ({
58
57
  title: formatMessage(messages.expand),
59
58
  description: formatMessage(messages.expandDescription),
60
59
  keywords: ['accordion', 'collapse'],
61
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
60
+ priority: 600,
62
61
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
63
62
  action(insert, state) {
64
63
  var _api$analytics2;
@@ -49,7 +49,6 @@ export var expandPlugin = function expandPlugin(_ref) {
49
49
  pluginsOptions: {
50
50
  floatingToolbar: getToolbarConfig(api),
51
51
  quickInsert: function quickInsert(_ref3) {
52
- var _options$getEditorFea;
53
52
  var formatMessage = _ref3.formatMessage;
54
53
  if (options && options.allowInsertion !== true) {
55
54
  return [];
@@ -59,7 +58,7 @@ export var expandPlugin = function expandPlugin(_ref) {
59
58
  title: formatMessage(messages.expand),
60
59
  description: formatMessage(messages.expandDescription),
61
60
  keywords: ['accordion', 'collapse'],
62
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
61
+ priority: 600,
63
62
  icon: function icon() {
64
63
  return /*#__PURE__*/React.createElement(IconExpand, null);
65
64
  },
@@ -48,7 +48,6 @@ export var expandPlugin = function expandPlugin(_ref) {
48
48
  pluginsOptions: {
49
49
  floatingToolbar: getToolbarConfig(api),
50
50
  quickInsert: function quickInsert(_ref3) {
51
- var _options$getEditorFea;
52
51
  var formatMessage = _ref3.formatMessage;
53
52
  if (options && options.allowInsertion !== true) {
54
53
  return [];
@@ -58,7 +57,7 @@ export var expandPlugin = function expandPlugin(_ref) {
58
57
  title: formatMessage(messages.expand),
59
58
  description: formatMessage(messages.expandDescription),
60
59
  keywords: ['accordion', 'collapse'],
61
- priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
60
+ priority: 600,
62
61
  icon: function icon() {
63
62
  return /*#__PURE__*/React.createElement(IconExpand, null);
64
63
  },
@@ -1,4 +1,4 @@
1
- import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
4
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -33,7 +33,6 @@ export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
33
33
  * @default false
34
34
  */
35
35
  __livePage?: boolean;
36
- getEditorFeatureFlags?: GetEditorFeatureFlags;
37
36
  }
38
37
  export type ExpandPlugin = NextEditorPlugin<'expand', {
39
38
  pluginConfiguration: ExpandPluginOptions | undefined;
@@ -1,4 +1,4 @@
1
- import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
4
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -33,7 +33,6 @@ export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
33
33
  * @default false
34
34
  */
35
35
  __livePage?: boolean;
36
- getEditorFeatureFlags?: GetEditorFeatureFlags;
37
36
  }
38
37
  export type ExpandPlugin = NextEditorPlugin<'expand', {
39
38
  pluginConfiguration: ExpandPluginOptions | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "1.9.2",
3
+ "version": "2.0.1",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,17 +34,17 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^39.0.3",
37
- "@atlaskit/button": "^18.0.0",
38
- "@atlaskit/editor-common": "^83.5.0",
37
+ "@atlaskit/button": "^18.4.0",
38
+ "@atlaskit/editor-common": "^85.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
42
42
  "@atlaskit/editor-plugin-selection": "^1.2.0",
43
43
  "@atlaskit/editor-plugin-selection-marker": "^1.3.0",
44
44
  "@atlaskit/editor-prosemirror": "4.0.1",
45
- "@atlaskit/editor-shared-styles": "^2.12.0",
45
+ "@atlaskit/editor-shared-styles": "^2.13.0",
46
46
  "@atlaskit/editor-tables": "^2.7.0",
47
- "@atlaskit/icon": "^22.5.0",
47
+ "@atlaskit/icon": "^22.6.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/tooltip": "^18.5.0",
50
50
  "@babel/runtime": "^7.0.0",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/editor-plugin-content-insertion": "^1.4.0",
62
62
  "@atlaskit/editor-plugin-guideline": "^1.1.0",
63
63
  "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
64
- "@atlaskit/editor-plugin-table": "^7.19.0",
64
+ "@atlaskit/editor-plugin-table": "^7.20.0",
65
65
  "@atlaskit/editor-plugin-type-ahead": "^1.4.0",
66
66
  "@atlaskit/editor-plugin-width": "^1.1.0",
67
67
  "@testing-library/react": "^12.1.5",