@atlaskit/editor-plugin-expand 1.9.1 → 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-expand
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.9.2
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.9.1
4
27
 
5
28
  ### 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.1",
3
+ "version": "2.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,9 +33,9 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^38.0.0",
37
- "@atlaskit/button": "^18.0.0",
38
- "@atlaskit/editor-common": "^83.4.0",
36
+ "@atlaskit/adf-schema": "^39.0.3",
37
+ "@atlaskit/button": "^18.1.0",
38
+ "@atlaskit/editor-common": "^84.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",