@atlaskit/editor-plugin-selection-extension 7.2.1 → 8.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,12 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`63fe1593adb21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63fe1593adb21) -
8
+ EDITOR-2772 Remove support for unused `section` config on selection extensions
9
+
3
10
  ## 7.2.1
4
11
 
5
12
  ### Patch Changes
@@ -125,11 +125,11 @@ export type ExtensionConfiguration = {
125
125
  source: ExtensionSource;
126
126
  };
127
127
  export type GetToolbarItemFn = () => ExtensionToolbarItemConfiguration;
128
- export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration | ExtensionMenuSectionConfiguration>;
129
- export type GetMenuItemFn = () => Omit<ExtensionMenuItemConfiguration, 'section'>;
128
+ export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration>;
129
+ export type GetMenuItemFn = () => ExtensionMenuItemConfiguration;
130
130
  export type BlockMenuItemConfiguration = Omit<ExtensionMenuItemConfiguration, 'contentComponent'>;
131
- export type GetBlockMenuItemFn = () => Omit<BlockMenuItemConfiguration, 'section'>;
132
- export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration | ExtensionMenuSectionConfiguration>;
131
+ export type GetBlockMenuItemFn = () => BlockMenuItemConfiguration;
132
+ export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration>;
133
133
  export type ToolbarExtensionConfiguration = {
134
134
  getMenuItems?: GetMenuItemsFn;
135
135
  getToolbarItem?: GetToolbarItemFn;
@@ -162,17 +162,5 @@ export type ExtensionMenuItemConfiguration = {
162
162
  label: string;
163
163
  };
164
164
  onClick?: () => void;
165
- /**
166
- * Optional menu-section to declare grouping - only used for menu items
167
- */
168
- section?: {
169
- key: string;
170
- rank: number;
171
- };
172
- };
173
- export type ExtensionMenuSectionConfiguration = {
174
- key: string;
175
- rank: number;
176
- title?: string;
177
165
  };
178
166
  export {};
@@ -125,11 +125,11 @@ export type ExtensionConfiguration = {
125
125
  source: ExtensionSource;
126
126
  };
127
127
  export type GetToolbarItemFn = () => ExtensionToolbarItemConfiguration;
128
- export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration | ExtensionMenuSectionConfiguration>;
129
- export type GetMenuItemFn = () => Omit<ExtensionMenuItemConfiguration, 'section'>;
128
+ export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration>;
129
+ export type GetMenuItemFn = () => ExtensionMenuItemConfiguration;
130
130
  export type BlockMenuItemConfiguration = Omit<ExtensionMenuItemConfiguration, 'contentComponent'>;
131
- export type GetBlockMenuItemFn = () => Omit<BlockMenuItemConfiguration, 'section'>;
132
- export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration | ExtensionMenuSectionConfiguration>;
131
+ export type GetBlockMenuItemFn = () => BlockMenuItemConfiguration;
132
+ export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration>;
133
133
  export type ToolbarExtensionConfiguration = {
134
134
  getMenuItems?: GetMenuItemsFn;
135
135
  getToolbarItem?: GetToolbarItemFn;
@@ -162,17 +162,5 @@ export type ExtensionMenuItemConfiguration = {
162
162
  label: string;
163
163
  };
164
164
  onClick?: () => void;
165
- /**
166
- * Optional menu-section to declare grouping - only used for menu items
167
- */
168
- section?: {
169
- key: string;
170
- rank: number;
171
- };
172
- };
173
- export type ExtensionMenuSectionConfiguration = {
174
- key: string;
175
- rank: number;
176
- title?: string;
177
165
  };
178
166
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "7.2.1",
3
+ "version": "8.0.0",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",