@atlaskit/editor-plugin-selection-extension 10.1.1 → 10.1.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,13 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 10.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8708f328d5db6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8708f328d5db6) -
8
+ Clean up platform_editor_toolbar_aifc_overflow_menu_update feature gate
9
+ - Updated dependencies
10
+
3
11
  ## 10.1.1
4
12
 
5
13
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.registerInlineToolbar = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _toolbar = require("@atlaskit/editor-common/toolbar");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _MenuItem = require("./MenuItem");
12
11
  var _ToolbarButton = require("./ToolbarButton");
13
12
  var _ToolbarMenu = require("./ToolbarMenu");
@@ -100,7 +99,7 @@ var registerInlineToolbar = exports.registerInlineToolbar = function registerInl
100
99
  parents: [{
101
100
  type: 'menu-section',
102
101
  // if we have a custom menu, place items in there, otherwise in the overflow menu
103
- key: getToolbarItem ? menuSectionKey : (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update') ? _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key : _toolbar.SELECTION_EXTENSION_MENU_SECTION.key,
102
+ key: getToolbarItem ? menuSectionKey : _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
104
103
  rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
105
104
  }],
106
105
  component: function component() {
@@ -8,7 +8,6 @@ exports.getToolbarComponents = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _toolbar = require("@atlaskit/editor-common/toolbar");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _MenuItem = require("./toolbar-components/MenuItem");
13
12
  var _registerInlineToolbar = require("./toolbar-components/register-inline-toolbar");
14
13
  var _migrateSelectionExtention = require("./utils/migrate-selection-extention");
@@ -53,45 +52,17 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
53
52
  key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
54
53
  rank: _toolbar.TOOLBAR_RANK[_toolbar.APPS_SECTION.key]
55
54
  }]
56
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [
57
- // also register a section inside the overflow menu for extensions which only have menu items
58
- {
59
- type: _toolbar.SELECTION_EXTENSION_MENU_SECTION.type,
60
- key: _toolbar.SELECTION_EXTENSION_MENU_SECTION.key,
61
- parents: [{
62
- key: _toolbar.OVERFLOW_MENU.key,
63
- type: _toolbar.OVERFLOW_MENU.type,
64
- rank: _toolbar.OVERFLOW_MENU_RANK[_toolbar.SELECTION_EXTENSION_MENU_SECTION.key]
65
- }]
66
- }]), (0, _toConsumableArray2.default)(extensionToolbarComponents), (0, _toConsumableArray2.default)(registerFirstPartyExtensions(api, firstPartyExtensions)), (0, _toConsumableArray2.default)(registerExternalExtensions(api, externalExtensions)));
55
+ }].concat((0, _toConsumableArray2.default)(extensionToolbarComponents), (0, _toConsumableArray2.default)(registerFirstPartyExtensions(api, firstPartyExtensions)), (0, _toConsumableArray2.default)(registerExternalExtensions(api, externalExtensions)));
67
56
  };
68
57
  var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
69
58
  var components = [];
70
- if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update')) {
71
- components.push({
72
- type: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
73
- key: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
74
- parents: [{
75
- type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
76
- key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
77
- rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
78
- }],
79
- component: function component() {
80
- return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
81
- api: api,
82
- extensionMenuItems: extensions
83
- });
84
- }
85
- });
86
- return components;
87
- }
88
59
  components.push({
89
- type: 'menu-item',
90
- key: 'first-party-extensions-menu-item',
60
+ type: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
61
+ key: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
91
62
  parents: [{
92
- type: 'menu-section',
93
- key: _toolbar.SELECTION_EXTENSION_MENU_SECTION.key,
94
- rank: 100
63
+ type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
64
+ key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
65
+ rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
95
66
  }],
96
67
  component: function component() {
97
68
  return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
@@ -104,31 +75,13 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
104
75
  };
105
76
  var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
106
77
  var components = [];
107
- if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update')) {
108
- components.push({
109
- type: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.type,
110
- key: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key,
111
- parents: [{
112
- type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
113
- key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
114
- rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key]
115
- }],
116
- component: function component() {
117
- return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
118
- api: api,
119
- extensionMenuItems: extensions
120
- });
121
- }
122
- });
123
- return components;
124
- }
125
78
  components.push({
126
- type: 'menu-item',
127
- key: 'external-extensions-menu-item',
79
+ type: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.type,
80
+ key: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key,
128
81
  parents: [{
129
- type: 'menu-section',
130
- key: _toolbar.SELECTION_EXTENSION_MENU_SECTION.key,
131
- rank: 200
82
+ type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
83
+ key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
84
+ rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key]
132
85
  }],
133
86
  component: function component() {
134
87
  return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { SELECTION_EXTENSION_MENU_SECTION, APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
3
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
4
3
  import { MenuItem } from './MenuItem';
5
4
  import { ToolbarButton } from './ToolbarButton';
6
5
  import { ToolbarMenu } from './ToolbarMenu';
@@ -96,7 +95,7 @@ export const registerInlineToolbar = ({
96
95
  parents: [{
97
96
  type: 'menu-section',
98
97
  // if we have a custom menu, place items in there, otherwise in the overflow menu
99
- key: getToolbarItem ? menuSectionKey : fg('platform_editor_toolbar_aifc_overflow_menu_update') ? OVERFLOW_EXTENSIONS_MENU_SECTION.key : SELECTION_EXTENSION_MENU_SECTION.key,
98
+ key: getToolbarItem ? menuSectionKey : OVERFLOW_EXTENSIONS_MENU_SECTION.key,
100
99
  rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
101
100
  }],
102
101
  component: () => {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, OVERFLOW_MENU, OVERFLOW_MENU_RANK, SELECTION_EXTENSION_MENU_SECTION, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
3
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
4
3
  import { MenuItem } from './toolbar-components/MenuItem';
5
4
  import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
6
5
  import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
@@ -36,45 +35,17 @@ export const getToolbarComponents = ({
36
35
  key: TOOLBARS.PRIMARY_TOOLBAR,
37
36
  rank: TOOLBAR_RANK[APPS_SECTION.key]
38
37
  }]
39
- }, ...(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [
40
- // also register a section inside the overflow menu for extensions which only have menu items
41
- {
42
- type: SELECTION_EXTENSION_MENU_SECTION.type,
43
- key: SELECTION_EXTENSION_MENU_SECTION.key,
44
- parents: [{
45
- key: OVERFLOW_MENU.key,
46
- type: OVERFLOW_MENU.type,
47
- rank: OVERFLOW_MENU_RANK[SELECTION_EXTENSION_MENU_SECTION.key]
48
- }]
49
- }]), ...extensionToolbarComponents, ...registerFirstPartyExtensions(api, firstPartyExtensions), ...registerExternalExtensions(api, externalExtensions)];
38
+ }, ...extensionToolbarComponents, ...registerFirstPartyExtensions(api, firstPartyExtensions), ...registerExternalExtensions(api, externalExtensions)];
50
39
  };
51
40
  const registerFirstPartyExtensions = (api, extensions) => {
52
41
  const components = [];
53
- if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
54
- components.push({
55
- type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
56
- key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
57
- parents: [{
58
- type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
59
- key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
60
- rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
61
- }],
62
- component: () => {
63
- return /*#__PURE__*/React.createElement(MenuItem, {
64
- api: api,
65
- extensionMenuItems: extensions
66
- });
67
- }
68
- });
69
- return components;
70
- }
71
42
  components.push({
72
- type: 'menu-item',
73
- key: 'first-party-extensions-menu-item',
43
+ type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
44
+ key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
74
45
  parents: [{
75
- type: 'menu-section',
76
- key: SELECTION_EXTENSION_MENU_SECTION.key,
77
- rank: 100
46
+ type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
47
+ key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
48
+ rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
78
49
  }],
79
50
  component: () => {
80
51
  return /*#__PURE__*/React.createElement(MenuItem, {
@@ -87,31 +58,13 @@ const registerFirstPartyExtensions = (api, extensions) => {
87
58
  };
88
59
  const registerExternalExtensions = (api, extensions) => {
89
60
  const components = [];
90
- if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
91
- components.push({
92
- type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
93
- key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
94
- parents: [{
95
- type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
96
- key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
97
- rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
98
- }],
99
- component: () => {
100
- return /*#__PURE__*/React.createElement(MenuItem, {
101
- api: api,
102
- extensionMenuItems: extensions
103
- });
104
- }
105
- });
106
- return components;
107
- }
108
61
  components.push({
109
- type: 'menu-item',
110
- key: 'external-extensions-menu-item',
62
+ type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
63
+ key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
111
64
  parents: [{
112
- type: 'menu-section',
113
- key: SELECTION_EXTENSION_MENU_SECTION.key,
114
- rank: 200
65
+ type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
66
+ key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
67
+ rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
115
68
  }],
116
69
  component: () => {
117
70
  return /*#__PURE__*/React.createElement(MenuItem, {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { SELECTION_EXTENSION_MENU_SECTION, APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
3
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
4
3
  import { MenuItem } from './MenuItem';
5
4
  import { ToolbarButton } from './ToolbarButton';
6
5
  import { ToolbarMenu } from './ToolbarMenu';
@@ -93,7 +92,7 @@ export var registerInlineToolbar = function registerInlineToolbar(_ref) {
93
92
  parents: [{
94
93
  type: 'menu-section',
95
94
  // if we have a custom menu, place items in there, otherwise in the overflow menu
96
- key: getToolbarItem ? menuSectionKey : fg('platform_editor_toolbar_aifc_overflow_menu_update') ? OVERFLOW_EXTENSIONS_MENU_SECTION.key : SELECTION_EXTENSION_MENU_SECTION.key,
95
+ key: getToolbarItem ? menuSectionKey : OVERFLOW_EXTENSIONS_MENU_SECTION.key,
97
96
  rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
98
97
  }],
99
98
  component: function component() {
@@ -1,7 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
- import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, OVERFLOW_MENU, OVERFLOW_MENU_RANK, SELECTION_EXTENSION_MENU_SECTION, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
4
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
5
4
  import { MenuItem } from './toolbar-components/MenuItem';
6
5
  import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
7
6
  import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
@@ -46,45 +45,17 @@ export var getToolbarComponents = function getToolbarComponents(_ref) {
46
45
  key: TOOLBARS.PRIMARY_TOOLBAR,
47
46
  rank: TOOLBAR_RANK[APPS_SECTION.key]
48
47
  }]
49
- }].concat(_toConsumableArray(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [
50
- // also register a section inside the overflow menu for extensions which only have menu items
51
- {
52
- type: SELECTION_EXTENSION_MENU_SECTION.type,
53
- key: SELECTION_EXTENSION_MENU_SECTION.key,
54
- parents: [{
55
- key: OVERFLOW_MENU.key,
56
- type: OVERFLOW_MENU.type,
57
- rank: OVERFLOW_MENU_RANK[SELECTION_EXTENSION_MENU_SECTION.key]
58
- }]
59
- }]), _toConsumableArray(extensionToolbarComponents), _toConsumableArray(registerFirstPartyExtensions(api, firstPartyExtensions)), _toConsumableArray(registerExternalExtensions(api, externalExtensions)));
48
+ }].concat(_toConsumableArray(extensionToolbarComponents), _toConsumableArray(registerFirstPartyExtensions(api, firstPartyExtensions)), _toConsumableArray(registerExternalExtensions(api, externalExtensions)));
60
49
  };
61
50
  var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
62
51
  var components = [];
63
- if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
64
- components.push({
65
- type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
66
- key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
67
- parents: [{
68
- type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
69
- key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
70
- rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
71
- }],
72
- component: function component() {
73
- return /*#__PURE__*/React.createElement(MenuItem, {
74
- api: api,
75
- extensionMenuItems: extensions
76
- });
77
- }
78
- });
79
- return components;
80
- }
81
52
  components.push({
82
- type: 'menu-item',
83
- key: 'first-party-extensions-menu-item',
53
+ type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
54
+ key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
84
55
  parents: [{
85
- type: 'menu-section',
86
- key: SELECTION_EXTENSION_MENU_SECTION.key,
87
- rank: 100
56
+ type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
57
+ key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
58
+ rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
88
59
  }],
89
60
  component: function component() {
90
61
  return /*#__PURE__*/React.createElement(MenuItem, {
@@ -97,31 +68,13 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
97
68
  };
98
69
  var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
99
70
  var components = [];
100
- if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
101
- components.push({
102
- type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
103
- key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
104
- parents: [{
105
- type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
106
- key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
107
- rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
108
- }],
109
- component: function component() {
110
- return /*#__PURE__*/React.createElement(MenuItem, {
111
- api: api,
112
- extensionMenuItems: extensions
113
- });
114
- }
115
- });
116
- return components;
117
- }
118
71
  components.push({
119
- type: 'menu-item',
120
- key: 'external-extensions-menu-item',
72
+ type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
73
+ key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
121
74
  parents: [{
122
- type: 'menu-section',
123
- key: SELECTION_EXTENSION_MENU_SECTION.key,
124
- rank: 200
75
+ type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
76
+ key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
77
+ rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
125
78
  }],
126
79
  component: function component() {
127
80
  return /*#__PURE__*/React.createElement(MenuItem, {
@@ -1,31 +1,32 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
2
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { type SelectionExtensionPluginState } from '../types';
4
+ import { type ExtensionMenuItemConfiguration, type SelectionExtension, type SelectionExtensionCoords, type SelectionExtensionPluginState, type SelectionExtensionSelectionInfo } from '../types';
4
5
  export declare const selectionExtensionPluginKey: PluginKey<SelectionExtensionPluginState>;
5
6
  export declare const createPlugin: () => SafePlugin<SelectionExtensionPluginState | {
6
7
  activeExtension: any;
7
8
  docChangedAfterClick?: boolean;
8
9
  nodePos?: number;
9
- selectedNode?: import("prosemirror-model").Node;
10
+ selectedNode?: Node;
10
11
  startTrackChanges?: boolean;
11
12
  } | {
12
- selectedNode: any;
13
- nodePos: any;
14
- startTrackChanges: boolean;
15
- docChangedAfterClick: boolean;
16
13
  activeExtension?: {
17
- coords: import("../types").SelectionExtensionCoords;
18
- extension: import("../types").SelectionExtension | import("../types").ExtensionMenuItemConfiguration;
19
- selection: import("../types").SelectionExtensionSelectionInfo;
14
+ coords: SelectionExtensionCoords;
15
+ extension: SelectionExtension | ExtensionMenuItemConfiguration;
16
+ selection: SelectionExtensionSelectionInfo;
20
17
  };
18
+ docChangedAfterClick: boolean;
19
+ nodePos: any;
20
+ selectedNode: any;
21
+ startTrackChanges: boolean;
21
22
  } | {
22
- startTrackChanges: any;
23
23
  activeExtension?: {
24
- coords: import("../types").SelectionExtensionCoords;
25
- extension: import("../types").SelectionExtension | import("../types").ExtensionMenuItemConfiguration;
26
- selection: import("../types").SelectionExtensionSelectionInfo;
24
+ coords: SelectionExtensionCoords;
25
+ extension: SelectionExtension | ExtensionMenuItemConfiguration;
26
+ selection: SelectionExtensionSelectionInfo;
27
27
  };
28
28
  docChangedAfterClick?: boolean;
29
29
  nodePos?: number;
30
- selectedNode?: import("prosemirror-model").Node;
30
+ selectedNode?: Node;
31
+ startTrackChanges: any;
31
32
  }>;
@@ -1,31 +1,32 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
2
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { type SelectionExtensionPluginState } from '../types';
4
+ import { type ExtensionMenuItemConfiguration, type SelectionExtension, type SelectionExtensionCoords, type SelectionExtensionPluginState, type SelectionExtensionSelectionInfo } from '../types';
4
5
  export declare const selectionExtensionPluginKey: PluginKey<SelectionExtensionPluginState>;
5
6
  export declare const createPlugin: () => SafePlugin<SelectionExtensionPluginState | {
6
7
  activeExtension: any;
7
8
  docChangedAfterClick?: boolean;
8
9
  nodePos?: number;
9
- selectedNode?: import("prosemirror-model").Node;
10
+ selectedNode?: Node;
10
11
  startTrackChanges?: boolean;
11
12
  } | {
12
- selectedNode: any;
13
- nodePos: any;
14
- startTrackChanges: boolean;
15
- docChangedAfterClick: boolean;
16
13
  activeExtension?: {
17
- coords: import("../types").SelectionExtensionCoords;
18
- extension: import("../types").SelectionExtension | import("../types").ExtensionMenuItemConfiguration;
19
- selection: import("../types").SelectionExtensionSelectionInfo;
14
+ coords: SelectionExtensionCoords;
15
+ extension: SelectionExtension | ExtensionMenuItemConfiguration;
16
+ selection: SelectionExtensionSelectionInfo;
20
17
  };
18
+ docChangedAfterClick: boolean;
19
+ nodePos: any;
20
+ selectedNode: any;
21
+ startTrackChanges: boolean;
21
22
  } | {
22
- startTrackChanges: any;
23
23
  activeExtension?: {
24
- coords: import("../types").SelectionExtensionCoords;
25
- extension: import("../types").SelectionExtension | import("../types").ExtensionMenuItemConfiguration;
26
- selection: import("../types").SelectionExtensionSelectionInfo;
24
+ coords: SelectionExtensionCoords;
25
+ extension: SelectionExtension | ExtensionMenuItemConfiguration;
26
+ selection: SelectionExtensionSelectionInfo;
27
27
  };
28
28
  docChangedAfterClick?: boolean;
29
29
  nodePos?: number;
30
- selectedNode?: import("prosemirror-model").Node;
30
+ selectedNode?: Node;
31
+ startTrackChanges: any;
31
32
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-utils": "^19.26.0",
35
+ "@atlaskit/adf-utils": "^19.27.0",
36
36
  "@atlaskit/css": "^0.19.0",
37
37
  "@atlaskit/editor-json-transformer": "^8.31.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
@@ -53,8 +53,8 @@
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
55
55
  "@atlaskit/primitives": "^17.1.0",
56
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
57
- "@atlaskit/tokens": "^10.0.0",
56
+ "@atlaskit/tmp-editor-statsig": "^16.28.0",
57
+ "@atlaskit/tokens": "^10.1.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "lodash": "^4.17.21",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -116,9 +116,6 @@
116
116
  },
117
117
  "platform_editor_selection_extension_improvement": {
118
118
  "type": "boolean"
119
- },
120
- "platform_editor_toolbar_aifc_overflow_menu_update": {
121
- "type": "boolean"
122
119
  }
123
120
  }
124
121
  }